/* Guest shell only: authenticated workspaces keep their established layout. */
#guestPages[hidden]{display:none!important}.guest-landing #vrWorkspacePanels,.guest-landing #vrWorkspaceTools{display:none!important}
#guestPages{width:100%;max-width:1600px;margin-inline:auto;padding:16px;overflow:visible;--text:#eee2c7;--muted:#b7becb;--gold:#dfc68f;--line:#424653}
.guest-landing #workspaceMain{display:block!important;overflow:auto!important;min-height:0}
.guest-landing .home-hub{height:auto!important;min-height:0!important;max-width:1600px;margin:auto}
.guest-landing .home-workspace{max-height:1100px;min-height:0}.guest-landing .home-hub .home-plan-list{min-height:0}
.guest-landing .home-hub .home-intro-search{cursor:pointer}.guest-landing .home-hub .home-intro-search strong:after{content:'  ↗'}
.guest-landing .home-hub .home-intro-search small{display:none}
.guest-header-ad,.guest-tools,.guest-create,.guest-sidebar-ad,.guest-home-nav,.guest-soon{display:none}
.guest-workspace .nav-character{display:none!important}
.guest-workspace .character-strip{height:68px!important;min-height:68px!important;display:flex!important;align-items:center;gap:12px;padding:8px 16px!important}
.guest-workspace .character-strip .brand{flex:0 1 365px!important;min-width:170px!important}
.guest-workspace .guest-header-ad{display:flex;flex:1 1 220px;min-width:100px;max-width:none;height:48px;border:1px solid #68573c;border-radius:5px;align-items:center;justify-content:center;flex-direction:column;gap:5px;background:#161b22;color:#b4ab98;font:10px 'Segoe UI',sans-serif}
.guest-header-ad small,.guest-sidebar-ad small{letter-spacing:.12em;font-size:9px;color:#b7a17e}
.guest-workspace .guest-tools{display:block;position:relative;flex:none}
.guest-tools>summary,.guest-create{list-style:none;min-height:42px;padding:11px 14px;border:1px solid #8c7451;border-radius:6px;background:#2c2531;color:#eeddb7;font:600 12px/18px 'Segoe UI',sans-serif;white-space:nowrap;cursor:pointer;text-decoration:none}
.guest-tools>div{position:absolute;z-index:1000;right:0;top:calc(100% + 8px);width:220px;background:#202733;border:1px solid #a38757;border-radius:6px;box-shadow:0 12px 40px #0008;padding:6px}
.guest-tools>div>:is(button,a){display:block;width:100%;text-align:left;border:0;background:transparent;padding:12px;color:#eee2c7;border-radius:4px;cursor:pointer;text-decoration:none;font:inherit;box-sizing:border-box}
.guest-tools>div>:is(button,a):hover,.guest-tools>div>a:focus-visible{background:#3a3344}.guest-tools summary::-webkit-details-marker{display:none}
.guest-workspace .guest-create{display:block;background:linear-gradient(#e3c98e,#c4a670);color:#241b12}
.guest-workspace .tb-navigation,.guest-workspace .tb-addon-download .tb-addon-availability{display:none!important}
.guest-workspace .header-actions{flex:0 0 auto!important;margin:0!important}.guest-workspace .header-actions .ac-account-trigger{min-height:42px!important}
.guest-workspace #spotlightTrigger{flex:0 0 auto!important;min-height:42px!important;margin:0!important}
.guest-workspace .tb-addon-download{min-height:42px!important;flex:0 0 auto!important}
.guest-workspace .guest-home-nav{display:flex}
.guest-workspace .guest-soon{display:inline;font-size:9px;color:#c1aa80;margin-left:auto}
.guest-workspace .guest-sidebar-ad{display:flex;min-height:100px;max-height:360px;flex:1;align-items:center;justify-content:space-between;flex-direction:column;margin:12px;padding:12px 8px;border:1px solid #66563b;border-radius:5px;color:#aba798;font-size:10px;text-align:center}
.guest-context-dialog{background:#202633;color:#eee2c7;border:1px solid #b0955e;border-radius:8px;width:min(680px,calc(100% - 24px));padding:22px;max-height:85dvh;overflow:auto}
.guest-context-dialog::backdrop{background:#05070a99}.guest-context-dialog>header{display:flex;align-items:center;justify-content:space-between}.guest-context-dialog h2{font:26px Georgia,serif;color:#e5c88a}
.guest-context-dialog .header-build{display:flex!important;flex-wrap:wrap!important;gap:12px!important;margin-top:20px!important;width:100%!important}.guest-context-dialog .header-build>*{flex:none}
.guest-workspace .navigation{display:flex;flex-direction:column}
.guest-signup-layout{display:grid;grid-template-columns:1fr 1fr;max-width:1100px;margin:24px auto;border:1px solid #796349;border-radius:12px;overflow:hidden;background:#202632}
.guest-signup-art{position:relative;isolation:isolate;min-height:570px;padding:40px;display:flex;flex-direction:column;justify-content:flex-end;background:#151e28}
.guest-signup-art>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.guest-signup-art:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent,#111924);z-index:-1}
.guest-signup-art h1{font:40px/1.1 Georgia,serif;color:#ead5a1}.guest-signup-art p{color:#d9d6cc;line-height:1.5}
.guest-signup-panel{padding:36px;display:flex;flex-direction:column;gap:18px}.guest-signup-panel h2{font:30px Georgia,serif;color:#e5c78e}.guest-signup-panel p{line-height:1.6;color:#bfc7d3}
.guest-primary,.guest-provider-list button,.guest-text{min-height:44px;padding:10px 14px;border:1px solid #847256;border-radius:6px;background:#302b39;color:#eee0be;font:600 14px/1.4 'Segoe UI',sans-serif;cursor:pointer}
.guest-primary{background:#d9bd80;color:#211b13}.guest-provider-list{display:grid;gap:8px}.guest-provider-list>span{font-size:12px;text-align:center;color:#bbb2a2}.guest-provider-list button:disabled{opacity:.65;cursor:not-allowed}.guest-text{background:transparent}.guest-auth-error{color:#f0b0a0!important}

html[data-vr-text-size="larger"] .guest-workspace :is(.home-hub p,.home-hub small,.home-hub a,.home-hub button,.guest-signup-panel p,.guest-provider-list button){font-size:18px!important;line-height:1.5!important}
html[data-vr-text-size="larger"] .guest-workspace .home-hub h3{font-size:clamp(30px,2.7vh,48px)!important}
html[data-vr-text-size="larger"] .guest-workspace :is(#viewContent p,#viewContent label,#viewContent button,#viewContent td,#viewContent input,#viewContent select){font-size:18px!important;line-height:1.45!important}
html[data-vr-motion="reduced"] *,html[data-vr-motion="reduced"] *:before,html[data-vr-motion="reduced"] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(prefers-reduced-motion:reduce){html:not([data-vr-motion="system"]) *{scroll-behavior:auto!important}}
@media(max-height:1000px){.guest-workspace .guest-sidebar-ad{display:none}}
@media(max-width:1200px){.guest-workspace .guest-header-ad{display:none}.guest-workspace .character-strip .brand{flex:1 1 auto!important}.guest-landing .home-workspace{min-height:0;max-height:none}}
@media(max-width:920px){
 .guest-workspace .character-strip{height:auto!important;min-height:60px!important;flex-wrap:wrap!important;gap:6px;padding:8px!important}
 .guest-workspace .character-strip .brand{flex:1 1 100%!important;max-width:350px!important;height:36px!important;margin:auto!important}
 .guest-workspace .character-strip .tb-wordmark{height:30px!important;width:auto!important}.guest-workspace .guest-create{padding:10px;font-size:11px}
 .guest-workspace .guest-tools>summary{padding:10px;font-size:11px}.guest-workspace #spotlightTrigger kbd{display:none}.guest-workspace .guest-sidebar-ad{display:none}
 #guestPages{padding:12px}.guest-landing .home-workspace{display:flex;flex-direction:column}.guest-signup-layout{grid-template-columns:1fr;margin:0}.guest-signup-art{min-height:180px;padding:24px}.guest-signup-art h1{font-size:30px}.guest-signup-panel{padding:22px}
}
@media(max-width:400px){.guest-workspace .tb-addon-download .tb-button-label{display:none!important}.guest-workspace .tb-addon-download{width:38px!important;min-width:38px!important}.guest-workspace .guest-create{font-size:10px!important;padding:10px 8px!important}.guest-landing .home-intro{display:flex!important;flex-wrap:wrap!important}.guest-landing .home-intro-title{flex:1 1 100%}.guest-landing .home-intro-journey{border:0!important;padding:0!important}.guest-landing .home-intro-search{order:3;flex-basis:100%}.guest-landing .home-intro h1{font-size:25px!important}}

#guestDraftNotice{padding:12px;margin:10px;border:1px solid #c9ad70;border-radius:6px;background:#282632;color:#eee0bf}#guestDraftNotice button{padding:8px 12px;margin:8px 8px 0 0}

html[data-vr-text-size="larger"] .guest-workspace :is(.home-hub h1,#viewTitle){font-size:36px!important;white-space:normal}

/* Guest journal: one main reading scroller, with a bounded independent index. */
@media(min-width:1101px){
 body.guest-workspace[data-view="quests"] #viewContent{overflow:auto!important}
 body.guest-workspace[data-view="quests"] .qex-workspace{height:auto!important;max-height:none!important;align-items:start}
 body.guest-workspace[data-view="quests"] :is(.qex-detail,.qex-map-slot){overflow:visible!important;max-height:none!important}
 body.guest-workspace[data-view="quests"] .qex-journal-rows{max-height:55vh;overflow:auto}
}

.guest-workspace .guest-tools{overflow:visible!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
.guest-workspace .guest-tools>summary{margin:0!important}
.guest-workspace .guest-soon{display:block;margin:2px 0 0;font-size:9px;line-height:11px;color:#c1aa80}
.guest-landing .home-hub :is(h1,h2,h3){font-family:Georgia,'Times New Roman',serif!important}

.guest-landing .home-hub :is(h1,h2,h3){font-weight:400!important}
.guest-workspace .navigation>.vr-sidebar-actions{margin-top:auto}
.guest-workspace .guest-sidebar-ad{max-height:465px}
#guestPages,.guest-landing .home-hub,.guest-landing .home-intro,.guest-landing .home-workspace,.guest-landing .home-explore,.guest-landing .home-plan,.guest-landing .home-plan-list{min-width:0;max-width:100%;box-sizing:border-box}
@media(max-width:920px){
 .guest-landing .home-intro{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%;gap:10px}
 .guest-landing .home-intro>*{grid-column:1!important;grid-row:auto!important;min-width:0;max-width:100%}
 .guest-landing .home-intro h1{white-space:normal!important}
 .guest-landing .home-intro-search{width:100%!important;min-width:0!important;max-width:100%!important;order:0}
 .guest-landing .home-intro-search>span{min-width:0;width:100%}
 .guest-landing .home-intro-journey{justify-self:start;padding:0!important;border:0!important}
 .guest-landing .home-atlas,.guest-landing .home-shortcuts,.guest-landing .home-destination{min-width:0;max-width:100%}
}

/* Guest connection access lives in Tools on compact screens. Existing connected
   and authenticated controls remain in their original nodes and regain their
   normal styling as soon as guest-workspace is removed. */
.guest-workspace .character-strip .cp-mobile-trigger{display:none!important}
@media(max-width:920px){
 .guest-workspace .navigation>.vr-sidebar-actions,
 .guest-workspace .navigation>.nav-bottom{display:none!important}
}
@media(max-width:600px){
 html.vr-compact.vr-topbar body.guest-workspace .character-strip{
  display:grid!important;grid-template-columns:minmax(42px,.8fr) minmax(45px,.9fr) 32px minmax(52px,1fr) minmax(88px,1.55fr);
  grid-template-rows:36px 40px;column-gap:5px;row-gap:6px;padding:6px 8px!important;
  height:94px!important;min-height:94px!important;align-items:stretch;
 }
 .guest-workspace .character-strip .brand{
  grid-column:1/-1;grid-row:1;width:min(280px,100%)!important;min-width:0!important;max-width:100%!important;
  height:36px!important;margin:0 auto!important;justify-self:center;
 }
 .guest-workspace .character-strip #spotlightTrigger{grid-column:1;grid-row:2}
 .guest-workspace .character-strip .guest-tools{grid-column:2;grid-row:2;width:100%;min-width:0}
 .guest-workspace .character-strip .tb-addon-download{grid-column:3;grid-row:2}
 .guest-workspace .character-strip .header-actions{grid-column:4;grid-row:2;width:100%!important;min-width:0!important;max-width:none!important}
 .guest-workspace .character-strip .guest-create{grid-column:5;grid-row:2}
 html.vr-compact.vr-topbar body.guest-workspace .character-strip :is(#spotlightTrigger,.tb-addon-download,.ac-account-trigger,.guest-create){
  box-sizing:border-box;min-width:0!important;max-width:none!important;width:100%!important;
  height:40px!important;min-height:40px!important;max-height:40px!important;padding:4px!important;
  font-size:11px!important;line-height:14px!important;margin:0!important;
 }
 .guest-workspace .guest-tools>div{left:0;right:auto;width:240px;max-width:calc(100vw - 80px)}
 .guest-workspace .guest-tools>summary{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:3px;width:100%;height:40px;min-height:40px;padding:4px;font-size:11px;line-height:14px}
 .guest-workspace .header-actions .ac-account-trigger .tb-control-icon{display:none}
 .guest-workspace .header-actions .ac-account-trigger .tb-button-label{font-size:11px!important;line-height:14px!important}
 .guest-workspace .tb-addon-download .tb-control-icon{width:20px!important;height:20px!important}
 .guest-workspace .tb-addon-download .tb-button-label{display:none!important}
 .guest-workspace .guest-create{display:flex;align-items:center;justify-content:center;white-space:normal;text-align:center}
}

/* Bound the guest landing canvas after the inherited annotation rules. The
   1599px composition stays fluid; wider windows gain margins, not wider cards. */
body.guest-workspace.guest-landing #guestPages{
 width:100%;max-width:1600px;margin-inline:auto;
}
@media(min-width:1201px) and (min-height:900px){
 body.guest-workspace.guest-landing #guestHome{
  height:min(1100px,calc(100dvh - 120px))!important;min-height:0!important;
  grid-template-rows:62px minmax(0,1fr) 90px 42px;gap:16px;align-content:stretch;
 }
 body.guest-workspace.guest-landing #guestHome .home-workspace{
  height:100%;min-height:0;max-height:none;align-items:stretch;gap:24px;
 }
 body.guest-workspace.guest-landing #guestHome :is(.home-explore,.home-plan,.home-plan-list,.home-shortcuts){
  height:100%;min-height:0;
 }
 body.guest-workspace.guest-landing #guestHome .home-explore{grid-template-rows:minmax(0,1.1fr) minmax(0,1fr);gap:16px}
 body.guest-workspace.guest-landing #guestHome .home-plan{grid-template-rows:minmax(0,1fr)}
 body.guest-workspace.guest-landing #guestHome .home-plan-list{grid-template-rows:repeat(4,minmax(0,1fr));gap:16px}
 body.guest-workspace.guest-landing #guestHome .home-plan-row{height:auto;min-height:0}
 body.guest-workspace.guest-landing #guestHome .home-atlas{display:flex;flex-direction:column;height:100%;min-height:0}
 body.guest-workspace.guest-landing #guestHome .home-atlas-open{height:auto;min-height:0;flex:1}
 body.guest-workspace.guest-landing #guestHome .home-destination{height:100%;min-height:0;grid-template-rows:minmax(0,1fr) auto}
 body.guest-workspace.guest-landing #guestHome .home-destination>img{height:100%;min-height:0;max-height:100%}
 body.guest-workspace.guest-landing #guestHome .home-utilities{min-height:0;gap:24px}
 body.guest-workspace.guest-landing #guestHome .home-foot{min-height:0;align-items:center}
 /* Reading preferences may need more space; never clip enlarged text to a
    one-screen target. The width cap remains in force. */
 html[data-vr-text-size="larger"] body.guest-workspace.guest-landing #guestHome{
  height:auto!important;grid-template-rows:auto auto auto auto;
 }
 html[data-vr-text-size="larger"] body.guest-workspace.guest-landing #guestHome .home-plan-list{grid-template-rows:repeat(4,minmax(140px,auto))}
}

/* Match the guest Tools disclosure to the surrounding branded action tiles. */
.guest-workspace .guest-tools>summary{box-sizing:border-box;display:grid;grid-template-columns:1fr 8px;grid-template-rows:26px 14px;align-items:center;justify-items:center;gap:1px 0;width:var(--tb-button-width,72px);height:50px;min-height:50px;padding:4px 7px;border:1px solid #776886;border-radius:7px;background:linear-gradient(180deg,#332b41,#242231);box-shadow:inset 0 1px 0 #e3c98e18,0 2px 4px #0005;color:#f0e2c5;font:650 12px/15px 'Segoe UI','Trebuchet MS',sans-serif;text-shadow:0 1px 1px #0009;transition:background .15s,border-color .15s,box-shadow .15s}
.guest-workspace .guest-tools-icon{grid-column:1/-1;display:block;box-sizing:border-box;width:26px;height:26px;object-fit:cover;border:1px solid #c5a777;border-radius:5px;box-shadow:0 1px 3px #0008}
.guest-workspace .guest-tools-chevron{grid-column:2;grid-row:2;font-size:13px;color:#c6af83;line-height:1;transition:transform .15s}
.guest-workspace .guest-tools>summary:hover{border-color:#c5a777;background:linear-gradient(180deg,#44374e,#302839)}
.guest-workspace .guest-tools>summary:focus-visible{outline:2px solid #efd39b;outline-offset:3px}
.guest-workspace .guest-tools[open]>summary{border-color:#d8b875;background:linear-gradient(180deg,#49394b,#342938);box-shadow:inset 0 0 0 1px #e3c98e24,0 2px 4px #0005}
.guest-workspace .guest-tools[open] .guest-tools-chevron{transform:rotate(180deg)}
@media(max-width:600px){
 .guest-workspace .guest-tools>summary{height:40px;min-height:40px;grid-template-columns:18px auto;grid-template-rows:1fr;width:100%;gap:3px;padding:3px;font-size:11px;line-height:14px}
 .guest-workspace .guest-tools-icon{grid-column:auto;width:18px;height:18px;border-radius:3px}
 .guest-workspace .guest-tools-chevron{display:none}
}

/* Home is a destination for resolved accounts and guests. */
.navigation .guest-home-nav{display:flex}
.home-bank-action{flex:none}
.home-account .home-bank-action .button{display:inline-flex;align-items:center;gap:6px}
@media(max-width:680px){.home-hub .home-account .home-bank-action{grid-column:2;grid-row:2;justify-self:start}}

.home-account .home-bank-action .button{border:1px solid #4d5665;border-radius:6px;background:#242d39;text-decoration:none}

/* Sidebar and mobile destination availability */
.guest-workspace .guest-soon{font-size:11px;line-height:14px}
.vr-screens-panel .guest-soon{display:block;margin-top:2px;font-size:11px;line-height:14px;color:#c1aa80}
