@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',system-ui,sans-serif;color:#15334a;background:#f5f8fb;font-synthesis:none;--blue:#1274c4;--line:#dfe8ef}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #efb74b;outline-offset:4px}[hidden]{display:none!important}.skip-link{position:fixed;top:-60px;left:20px;z-index:100;background:white;padding:12px}.skip-link:focus{top:12px}.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.header-inner{max-width:1480px;margin:auto;min-height:88px;display:flex;align-items:center;gap:45px;padding:12px 40px}.brand{display:flex;gap:10px;align-items:center;font-family:Manrope,system-ui,sans-serif;font-size:25px;font-weight:800;color:#0872b8;letter-spacing:-1px}.brand img{width:40px;height:40px;object-fit:contain}.brand-caption{display:block;font-family:'DM Sans',sans-serif;font-size:10px;color:#718391;font-weight:500;letter-spacing:1px;margin-top:3px}.desktop-nav{display:flex;gap:8px;margin:auto}.nav-link{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 18px;border-radius:10px;color:#63798a;font-size:14px;font-weight:600}.nav-link svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7}.nav-link:hover{background:#f3f7fb}.nav-link[aria-current=page]{color:#126fb4;background:#eaf4fc}.header-actions{display:flex;align-items:center;gap:14px}.session-label{max-width:120px;overflow:hidden;text-overflow:ellipsis;font-size:12px;color:#667b8c}.button{border:0;border-radius:9px;background:var(--blue);color:white;padding:14px 23px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:24px;min-height:46px}.button:hover{background:#0a61a8}.button:disabled{opacity:.6;cursor:wait}.button.secondary{background:#fff;color:var(--blue);border:1px solid #c8ddeb;padding:10px 18px}.welcome{max-width:1240px;margin:auto;min-height:640px;display:grid;grid-template-columns:1fr 1fr;gap:85px;align-items:center;padding:75px 40px 90px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:2px;color:#1482a7}h1,h2{font-family:Manrope,system-ui,sans-serif}h1{font-size:clamp(34px,4.2vw,58px);letter-spacing:-2.2px;line-height:1.13;font-weight:800;margin:22px 0}.welcome-copy>p,.login-intro p{font-size:17px;line-height:1.8;color:#6d8292;max-width:400px}.welcome-copy .button{margin-top:20px}.welcome-note{display:block;margin-top:20px;font-size:12px;color:#8194a2}.welcome-cards{display:grid;grid-template-columns:1fr 1fr;gap:18px;transform:rotate(-2deg)}.feature-card{padding:27px 25px;border-radius:18px;border:1px solid #e1eaf1;background:white;box-shadow:0 16px 40px #254d6b08}.feature-card:nth-child(2){background:#e8f4ed;margin-top:35px;margin-bottom:-10px;border-color:#d6eadd}.feature-card h2{font-size:19px;line-height:1.35;margin:20px 0 10px;letter-spacing:-.4px}.feature-card p{color:#778b99;line-height:1.7;font-size:13px}.feature-icon{font-size:32px;color:#137bb3}.feature-card.wide{grid-column:1/-1;display:flex;gap:25px;align-items:center;background:#edf4fb;margin-top:15px}.wide h2{margin-top:0}.wide p{margin-bottom:0}main{min-height:calc(100dvh - 245px)}.empty-state{padding:100px 24px;text-align:center;min-height:550px}.empty-state h1{font-size:38px}.empty-state p{color:#728694;margin-bottom:30px}.site-footer{border-top:1px solid var(--line);background:white}.footer-inner{max-width:1480px;margin:auto;padding:34px 40px;display:flex;gap:30px;align-items:center;justify-content:space-between}.footer-brand{font-size:21px;font-weight:800;color:#0872b8;letter-spacing:-1px}.footer-inner p,.footer-inner>span{font-size:12px;color:#8395a1}.footer-inner nav{display:flex;gap:25px;font-size:12px;color:#637c8d}.mobile-nav{display:none}#component-area{position:relative;height:calc(100dvh - 90px);min-height:580px}iframe.component-frame{display:block;border:0;background:#f5f8fb;width:100%;height:100%}.component-pane{height:100%;position:relative}.component-loading{position:absolute;inset:0;background:#f5f8fb;display:grid;place-content:center;text-align:center;color:#6b8294;z-index:2}.component-loading::before{content:'';display:block;width:28px;height:28px;border:3px solid #d8e8f4;border-top-color:var(--blue);border-radius:50%;animation:spin .8s linear infinite;margin:0 auto 18px}@keyframes spin{to{transform:rotate(360deg)}}.login-wrap{max-width:1050px;margin:60px auto 80px;background:white;border:1px solid var(--line);border-radius:20px;overflow:hidden;display:grid;grid-template-columns:1fr 1fr}.login-intro{background:#e7f2fa;padding:65px 40px}.login-intro h1{font-size:43px}.login-wrap form{padding:40px;display:flex;flex-direction:column;gap:18px}.login-wrap h2{font-size:23px;margin:0}.login-wrap form>p{font-size:13px;color:#718797;margin:0}.login-wrap label{font-size:13px;display:flex;flex-direction:column;gap:10px;font-weight:600}.login-wrap input{width:100%;min-width:0;padding:13px;border:1px solid #d5e0e8;border-radius:7px;background:#fcfdfe}.password-field{display:flex;align-items:center;position:relative}.password-field input{padding-right:65px}.password-field button{position:absolute;right:10px;border:0;background:none;font-size:12px;color:#54768c}.login-wrap form>a,.signup-copy a{color:var(--blue);font-size:12px}.login-wrap #login-error{color:#b63a3a;line-height:1.5}#app-status{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#15334a;color:white;border-radius:8px;padding:14px 22px;z-index:80;max-width:90vw;font-size:13px}dialog{border:1px solid var(--line);border-radius:15px;padding:0;width:min(1120px,94vw);height:88dvh;max-height:94dvh;overflow:hidden}dialog::backdrop{background:#132b4777;backdrop-filter:blur(3px)}.dialog-heading{height:72px;padding:12px 24px;border-bottom:1px solid var(--line);display:flex;flex-direction:column;justify-content:center;gap:5px}.dialog-heading h2{font-size:16px;margin:0}.dialog-heading span{font-size:11px;color:#6c8190}#methods-content{height:calc(100% - 72px)}
@media(min-width:1600px){#component-area{max-width:1600px;margin:auto;border-inline:1px solid var(--line)}}
@media(max-width:1050px){.header-inner{gap:15px;padding:12px 24px}.nav-link{padding:12px}.brand-caption,.session-label{display:none}.welcome{gap:35px}.footer-inner{flex-wrap:wrap}.welcome-cards{gap:12px}.feature-card{padding:22px 18px}}
@media(max-width:700px){body{padding-bottom:calc(68px + env(safe-area-inset-bottom))}.header-inner{min-height:72px;padding:12px 20px;justify-content:space-between}.brand{font-size:23px}.brand img{width:32px;height:32px}.desktop-nav{display:none}.header-actions .button{padding:8px 14px;font-size:12px;min-height:38px}.welcome{padding:45px 24px 55px;display:block;min-height:0}.welcome h1{font-size:43px}.welcome-copy>p{font-size:15px}.welcome-cards{margin-top:45px;transform:none;gap:12px}.feature-card h2{font-size:16px}.feature-card p{font-size:12px}.feature-card:nth-child(2){margin-top:20px}.footer-inner{padding:28px 24px;gap:20px}.footer-inner nav{gap:20px}.footer-inner>span{width:100%}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:30;justify-content:space-around;background:white;border-top:1px solid var(--line);padding:5px 8px calc(5px + env(safe-area-inset-bottom))}.mobile-nav .nav-link{flex:1;flex-direction:column;gap:4px;font-size:10px;padding:10px 8px}.mobile-nav svg{width:21px;height:21px}.login-wrap{margin:24px 16px;display:block}.login-intro{padding:26px}.login-intro h1{font-size:30px;margin:12px 0}.login-intro p{font-size:13px}.login-wrap form{padding:28px 24px}.empty-state{min-height:440px;padding:70px 22px}#component-area{height:calc(100dvh - 141px - env(safe-area-inset-bottom));min-height:400px}#app-status{bottom:90px}dialog{width:100vw;max-width:100vw;height:calc(100dvh - 75px);max-height:calc(100dvh - 75px);border-radius:12px}.dialog-heading{padding:12px 16px}.dialog-heading span{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}

/* Keep embedded documents inside the available browser viewport at every size. */
#component-area{min-height:0;width:100%;min-width:0;max-width:none;border-inline:0;margin-inline:0}
.component-pane,.component-frame{min-width:0;max-width:100%}
.header-inner,.footer-inner{width:100%;min-width:0}
@media(min-width:701px){#component-area{height:calc(100dvh - 89px)}}
@media(max-width:700px){#component-area{height:calc(100dvh - 141px - env(safe-area-inset-bottom));min-height:0}}
dialog.location-dialog{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);margin:0;width:min(400px,calc(100vw - 32px));height:max-content;min-height:0;max-height:calc(100dvh - 40px);overflow:auto;padding:22px;border:1px solid #e2eaf0;border-radius:16px;box-shadow:0 16px 60px #15334a26}.location-dialog::backdrop{background:#15334a66;backdrop-filter:blur(2px)}.location-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.location-dialog h2{margin:0;font-size:19px;letter-spacing:-.5px;outline:none}.location-heading p{margin:5px 0 16px;color:#758896;font-size:12px;line-height:1.5}.location-close{border:0;border-radius:50%;width:28px;height:28px;background:#f1f5f8;color:#708695;font-size:22px;line-height:1;flex-shrink:0}.location-dialog .locate-button{width:100%;min-height:40px;padding:9px 14px;gap:9px;font-size:13px}.locate-button span{font-size:21px;line-height:1}.location-dialog .location-disclosure{color:#7b8e9b;font-size:10px;line-height:1.5;margin:8px 0 0}.location-divider{display:flex;align-items:center;gap:10px;color:#94a3ad;font-size:10px;margin:16px 0 12px}.location-divider:before,.location-divider:after{content:'';height:1px;flex:1;background:var(--line)}.location-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.location-dialog label{display:block;min-width:0;font-size:11px;font-weight:600;margin:0}.location-dialog input,.location-dialog select{display:block;width:100%;min-width:0;height:39px;padding:8px 10px;margin-top:6px;border:1px solid #d5e0e8;border-radius:7px;background:white;color:#15334a;font-size:12px}.location-address{margin-top:13px}.location-address summary{cursor:pointer;font-size:11px;color:#53768f}.location-address summary span{color:#9aa8b1;font-size:10px}.location-dialog .location-error{color:#ac3d34;font-size:11px;line-height:1.5;margin:10px 0 0}.location-error:empty{display:none}.location-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px;padding-top:14px;border-top:1px solid #edf1f4}.location-actions .button{font-size:12px;min-height:36px;padding:8px 15px}.location-credit{display:block;margin-top:12px;font-size:9px;color:#94a4af;text-align:center}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:380px){dialog.location-dialog{padding:18px}.location-fields{grid-template-columns:1fr;gap:12px}}

#methods-dialog{box-shadow:none;border:0;background:#fff;overflow:hidden}#methods-dialog .dialog-heading{display:none}#methods-dialog #methods-content{height:100%}#methods-dialog.workspace-methods{border-left:1px solid var(--line)}
@media(min-width:1024px){body.has-shop-preview{overflow:hidden}body.has-shop-preview #main #component-area{position:fixed;inset:0;z-index:60;width:100%;height:100dvh;margin:0;border:0}}
/* Compact website header: mark, location, search, navigation, profile. */
.header-inner{max-width:1800px;gap:18px;padding:12px 28px;min-height:80px}.brand{flex:none}.brand img{width:40px;height:40px}.header-location{display:flex;align-items:center;gap:7px;max-width:170px;min-width:90px;padding:8px 0;border:0;background:none;color:#527282;font-size:12px;text-align:left}.header-location>span:first-of-type{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.site-header svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;flex:none}.marketplace-search{display:flex;flex:1;min-width:170px;align-items:center;gap:9px;padding:5px 6px 5px 13px;border:1px solid #dce7ed;border-radius:10px;background:#f8fbfc;color:#168383}.marketplace-search input{width:100%;min-width:0;outline:none;border:0;background:transparent;font-size:13px;color:#173b4b}.marketplace-search button{height:34px;width:34px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:#168383;flex:none}.marketplace-search button:last-child{background:#e7f5f1}.desktop-nav{margin:0;gap:2px;flex:none}.desktop-nav .nav-link{padding:11px 9px;gap:6px;font-size:12px}.header-actions{flex:none;gap:0}#profile-menu{position:relative}#profile-menu>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:6px;color:#527282;padding:10px;border:1px solid #e0e9ef;border-radius:10px}#profile-menu>summary::-webkit-details-marker{display:none}.profile-dropdown{position:absolute;right:0;top:calc(100% + 12px);width:240px;padding:16px;background:white;border:1px solid #e0e9ef;border-radius:12px;box-shadow:0 12px 30px #16374a20;display:flex;flex-direction:column;gap:10px}.profile-caption{font-size:10px;color:#8195a2}.profile-dropdown .session-label{display:block;max-width:none;font-size:12px;overflow-wrap:anywhere;white-space:normal;color:#294d63}.profile-dropdown a,.profile-dropdown button{padding:10px;border:0;border-radius:7px;background:#f6f9fc;text-align:left;font-size:12px}.profile-dropdown button{color:#b14d4d}
/* One responsive grid keeps the controls together instead of separating them
   with a flexible empty spacer. Search remains capped on large displays. */
.header-inner{display:grid;grid-template-areas:"brand location search nav profile";grid-template-columns:40px minmax(100px,150px) minmax(240px,440px) max-content 48px;justify-content:center;align-items:center;gap:18px;max-width:1360px;min-height:80px;padding:14px 24px;margin-inline:auto;flex-wrap:nowrap}
.header-inner>.brand{grid-area:brand}.header-location{grid-area:location;min-width:0;max-width:100%;min-height:44px;margin:0;font-size:12px}.marketplace-search{grid-area:search;flex:none;min-width:0;width:100%;height:44px;margin:0;padding:2px 3px 2px 12px;gap:8px}.marketplace-search input{font-size:13px}.marketplace-search button{width:38px;height:38px}.desktop-nav{grid-area:nav;display:flex;order:0;width:auto;margin:0;gap:2px;justify-content:center}.desktop-nav .nav-link{min-height:44px;padding:10px 9px;white-space:nowrap}.header-actions{grid-area:profile;margin:0;justify-content:flex-end}#profile-menu>summary{min-width:44px;min-height:44px;padding:10px 7px;justify-content:center}.header-inner:has(#header-search[hidden]){grid-template-areas:"brand nav profile";grid-template-columns:40px 1fr auto}.profile-dropdown{max-width:calc(100vw - 32px)}
@media(min-width:701px) and (max-width:1100px){.header-inner{grid-template-areas:"brand location search profile" "nav nav nav nav";grid-template-columns:40px minmax(100px,150px) minmax(180px,1fr) 48px;gap:10px 16px;padding:12px 24px;max-width:1000px}.desktop-nav{gap:8px}.desktop-nav .nav-link{padding-inline:18px}.header-inner:has(#header-search[hidden]){grid-template-areas:"brand nav profile";grid-template-columns:40px 1fr auto}}
@media(max-width:700px){.header-inner{grid-template-areas:"brand location profile" "search search search";grid-template-columns:36px minmax(0,1fr) 44px;gap:10px 12px;padding:12px 16px;min-height:0;max-width:100%}.brand img{width:36px;height:36px}.header-location{flex:none;font-size:12px;max-width:230px}.marketplace-search{order:0;flex-basis:auto;height:44px}.marketplace-search input{font-size:16px}.desktop-nav{display:none}.header-inner:has(#header-search[hidden]){grid-template-areas:"brand profile";grid-template-columns:36px 1fr}.profile-dropdown{width:230px}.mobile-nav .nav-link{min-height:54px}.site-header .header-actions .button{min-height:44px}}
@media(max-width:360px){.header-inner{padding-inline:12px;column-gap:9px}.header-location{font-size:11px}.marketplace-search{gap:5px}.marketplace-search button{width:36px}}
/* Guest Sign in and the signed-in menu each get their actual width. */
.header-inner{grid-template-columns:40px minmax(100px,150px) minmax(200px,440px) max-content max-content}
.header-actions{min-width:0}.header-actions #header-signin{white-space:nowrap;min-height:44px;padding:10px 16px}
@media(min-width:701px) and (max-width:1100px){.header-inner{grid-template-columns:40px minmax(100px,150px) minmax(160px,1fr) max-content}}
@media(max-width:700px){.header-inner{grid-template-columns:36px minmax(0,1fr) max-content}.header-actions #header-signin{padding-inline:13px}}
body #main #component-area{height:calc(100dvh - var(--site-header-height,80px) - var(--bottom-nav-height,0px));min-height:0}
/* Footer links and contact match the live website, with a compact web layout. */
.site-footer{background:#fff;border-top:1px solid #e1e9ef}.site-footer .footer-inner{display:block;max-width:1360px;margin:0 auto;padding:30px 24px 22px}.footer-main{display:flex;align-items:center;gap:28px;justify-content:space-between;padding-bottom:24px}.site-footer .footer-brand{display:inline-flex;align-items:center;gap:9px;flex:none;font-size:21px;letter-spacing:-.8px}.footer-brand img{width:29px;height:29px;object-fit:contain}.site-footer .footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 26px;font-size:12px;color:#587182}.footer-links a{padding-block:8px}.footer-links a:hover,.footer-contact:hover{color:#117bb8;text-decoration:underline;text-underline-offset:4px}.footer-top{display:flex;align-items:center;gap:10px;border:1px solid #dfe8ee;border-radius:8px;background:#f9fbfc;color:#537486;padding:10px 13px;white-space:nowrap;min-height:42px;font-size:11px}.footer-top span{font-size:18px}.footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:18px;border-top:1px solid #edf1f4}.site-footer .footer-bottom p{margin:0;color:#8496a2;font-size:11px}.footer-contact{display:flex;align-items:center;gap:8px;font-size:11px;color:#608194;overflow-wrap:anywhere}.footer-contact svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.6;flex:none}#back-to-top{position:fixed;right:22px;bottom:calc(var(--bottom-nav-height,0px) + 20px);z-index:35;width:44px;height:44px;display:grid;place-items:center;border:1px solid #c4e7e8;border-radius:12px;background:#20b4c6;color:#fff;box-shadow:0 5px 18px #1745581a}#back-to-top:hover{background:#1299ad}#back-to-top svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}@media(max-width:900px){.footer-main{flex-wrap:wrap;gap:16px}.site-footer .footer-links{order:3;width:100%;justify-content:flex-start;gap:10px 28px}.footer-top{margin-left:auto}}@media(max-width:500px){.site-footer .footer-inner{padding:24px 20px 20px}.footer-main{padding-bottom:18px}.site-footer .footer-links{display:grid;grid-template-columns:1fr 1fr;gap:4px 18px;font-size:12px}.footer-bottom{align-items:flex-start;flex-direction:column;gap:12px}.site-footer .footer-brand{font-size:19px}.footer-top{padding:8px 11px}#back-to-top{right:14px;bottom:calc(var(--bottom-nav-height,0px) + 14px)}}

/* Desktop website chrome follows the active component's content edges.
   Everything at 700px and below retains its existing phone presentation. */
@media(min-width:701px){
  .site-header,.site-footer{font-family:var(--web-page-font,-apple-system,BlinkMacSystemFont,"Segoe UI",ui-sans-serif,system-ui,sans-serif)}
  .site-header .brand,.site-header .brand-caption,.site-footer .footer-brand{font-family:inherit}
  body{display:flex;flex-direction:column;min-height:100dvh}
  .site-header,.site-footer{flex-shrink:0}
  body #main{flex:1;min-height:0}
  .header-inner,.site-footer .footer-inner{
    width:var(--web-page-width,calc(100% - 48px));max-width:none;
    margin-left:var(--web-page-left,24px);margin-right:0;padding-inline:0;
  }
  .header-inner{grid-template-areas:"brand location search nav profile";grid-template-columns:40px minmax(80px,150px) minmax(120px,1fr) max-content max-content;justify-content:stretch;gap:18px}
  .desktop-nav{flex-wrap:wrap}
  body[data-compact-header="true"] .header-inner{
    grid-template-areas:"brand location search profile" "nav nav nav nav";
    grid-template-columns:40px minmax(60px,150px) minmax(80px,1fr) max-content;
    gap:10px 12px;
  }
  body[data-compact-header="true"] .desktop-nav{gap:2px}
  body[data-compact-header="true"] .desktop-nav .nav-link{padding-inline:9px}
  .footer-main,.footer-bottom{flex-wrap:wrap}
  .site-footer .footer-links{max-width:100%;margin-left:auto}
  .footer-contact{min-width:0}
  body #main #component-area{
    height:max(240px,calc(100dvh - var(--site-header-height,80px) - var(--site-footer-height,140px)));
  }
  #back-to-top{bottom:calc(var(--site-footer-height,140px) + 16px)}
}

/* Desktop navigation stays prominent beside a bounded search field. */
@media(min-width:1024px){
  .header-inner{
    grid-template-areas:"brand location search spacer nav profile";
    grid-template-columns:40px minmax(80px,140px) minmax(200px,520px) minmax(0,1fr) max-content max-content;
    gap:16px;
  }
  .marketplace-search{max-width:520px;height:48px;border-color:#d6e3e9;background:#f7fafb}
  .marketplace-search input{font-size:14px}
  .desktop-nav{gap:6px;flex-wrap:nowrap}
  .desktop-nav .nav-link{
    min-height:48px;padding:11px 13px;gap:8px;border:1px solid transparent;
    color:#365365;font-size:14px;font-weight:650;border-radius:12px;
  }
  .desktop-nav .nav-link svg{width:22px;height:22px;stroke-width:1.9}
  .desktop-nav .nav-link:hover{color:#076f9c;background:#f0f7fb;border-color:#deedf4}
  .desktop-nav .nav-link[aria-current=page],.desktop-nav .nav-link[aria-expanded=true]{
    color:#086caa;background:#e7f3fc;border-color:#c4dfef;
    box-shadow:inset 0 -2px 0 #198cbb;
  }
  #profile-menu>summary{min-height:48px;min-width:48px;color:#365365;background:#f8fbfc}
  body[data-compact-header="true"] .desktop-nav{gap:6px}
  body[data-compact-header="true"] .desktop-nav .nav-link{padding-inline:13px}
}

/* Home is a scrolling marketplace page; its footer follows all discovery sections. */
@media(min-width:1024px){
body.home-page-flow #main #component-area{
  height:max(calc(100dvh - var(--site-header-height,80px) - var(--bottom-nav-height,0px)),var(--home-content-height,0px));
}
body.home-page-flow #back-to-top{bottom:calc(var(--bottom-nav-height,0px) + 16px)}
}

/* One chat document stays mounted independently of marketplace navigation. */
#chat-area.chat-window{
  position:fixed;z-index:70;display:flex;flex-direction:column;
  width:460px;height:640px;min-width:0;min-height:0;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);
  margin:0;overflow:hidden;background:#fff;border:1px solid #dce6eb;border-radius:14px;
  box-shadow:0 12px 48px #16374a38,0 2px 8px #16374a14;
  font-family:var(--web-page-font,-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif);
}
.chat-window-header{height:52px;min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px 8px 16px;border-bottom:1px solid #e3ecef;background:#fff;cursor:grab;touch-action:none;user-select:none;outline-offset:-3px}
@media(min-width:1024px){
  .chat-window-header:focus{outline:none}
  .chat-window-header:focus-visible{background:#f0f6f7}
}
.chat-window-heading{display:flex;align-items:center;gap:10px;min-width:0;font-size:14px;color:#183b4a}
.chat-window-heading>svg{width:20px;height:20px;fill:none;stroke:#168b96;stroke-width:1.7}
.chat-window-controls{display:flex;gap:4px;flex:none}
.chat-window-controls button{display:grid;place-items:center;width:32px;height:32px;min-height:32px;padding:0;border:0;border-radius:7px;background:transparent;color:#55727f}
.chat-window-controls button:hover{background:#edf5f7;color:#157b88}
.chat-window-controls button[data-chat-action="close"]:hover{color:#b93040;background:#fff0f1}
.chat-window-controls svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.chat-window-controls .chat-restore-icon{display:none}
@media(min-width:1024px){
  #chat-area[data-mode="maximised"] .chat-maximise-icon{display:none}
  #chat-area[data-mode="maximised"] .chat-restore-icon{display:block}
  #chat-area[data-mode="maximised"] [data-chat-action="maximise"]{background:#e7f5f1;color:#087b83}
}
.chat-window-content{position:relative;flex:1;min-height:0;background:#f6f8fb}
#chat-area.chat-window #chat-frame{display:block;width:100%;height:100%;border:0;background:#fff}
.chat-window-status{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px;padding:28px;color:#607d8a;text-align:center;font-size:14px;background:#f7fafc}
.chat-window-status .button{font-size:13px;min-height:40px}
#chat-area[data-mode="minimised"] .chat-window-content{display:none}
#chat-area[data-mode="minimised"] .chat-window-header{border:0}
#chat-area[data-mode="maximised"]{border-radius:10px}
#chat-area[data-mode="maximised"] .chat-window-header{cursor:default}
#chat-area[data-dragging="true"] .chat-window-header{cursor:grabbing}
#chat-area[data-dragging="true"] iframe{pointer-events:none}
