#qtop .tkh-header-more{order:9;align-self:stretch;margin-right:-8px}#qtop .tkh-header-more>summary{width:var(--v3-plus-width);height:var(--v3-header-height);min-height:var(--v3-header-height);padding:0;display:flex;align-items:center;justify-content:center;border:0;border-left:1px solid var(--line);border-radius:0}#qtop .tkh-header-more>summary>svg{width:24px;height:24px;stroke-width:1.6}#qtop .qref-header-more .tkh-header-menu{max-height:calc(100dvh - 90px);overflow-y:auto}#qtop .qref-header-more .tkh-menu-control{font-weight:400}.qref-header-more .tkh-menu-control svg{flex:none}
body.qloa-ui-aligned #qtop>.qch-write-trigger{order:10}
/* Only an opt-in command with a connected menu proxy loses its original slot. */
@media(min-width:769px){body:not(.mobile-app) .qref-plus-source,body:not(.mobile-app) .qref-plus-group-empty{display:none!important}}
#qtop .tkh-header-menu .gs-bell{display:flex;position:relative;width:100%}
#qtop .tkh-header-menu [aria-disabled=true]{opacity:.45;cursor:default}
#qtop .qvh-view{min-height:32px;border:1px solid var(--line);border-radius:6px;background:var(--base);padding:5px 10px;gap:8px}
#qtop .tkh-header-menu .tkh-create-control{font-weight:600;border-bottom:1px solid var(--line);border-radius:0;margin-bottom:4px;padding-bottom:12px;min-height:44px;color:var(--ink)}
#qtop .tkh-header-menu .at-context-link>span{display:block}
#qtop .qref-options-chevron{margin-left:auto;display:flex}#qtop .qref-options-chevron svg{width:14px;height:14px;transition:transform .2s}#qtop [data-qref-options-trigger][aria-expanded=true] .qref-options-chevron svg{transform:rotate(180deg)}
#qtop .qref-inline-options[open]{position:static;inset:auto;display:block;width:100%;max-width:none;max-height:none;margin:0;padding:8px 0 0;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none;background:transparent;color:var(--ink);overflow:visible}
#qtop .qref-inline-options>header{display:none}#qtop .qref-inline-options .qvm-actions{padding:0}#qtop .qref-inline-options .qvm-pref-label{margin:10px 4px 4px;font-size:12px}#qtop .qref-inline-options select{width:100%;min-height:36px}
#qtop .qref-social-options-body:not([hidden]){display:grid;gap:4px;margin:0;padding:8px 0 0 12px;border-top:1px solid var(--line)}
#qtop .tkh-header-more>summary{position:relative;overflow:hidden;isolation:isolate;background:var(--base)}
#qtop .tkh-header-more>summary{cursor:pointer;box-sizing:border-box;flex:none}
#qtop .tkh-header-more>summary>*{pointer-events:none}
#qtop .tkh-header-more>summary>svg{position:relative;z-index:2}
#qtop .tkh-header-more>summary::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:var(--v3-action-gradient);background-size:var(--v3-action-gradient-size);opacity:0;transition:opacity .2s;animation:qch-header-drift var(--v3-action-drift) ease-in-out infinite alternate}
#qtop .tkh-header-more>summary .qch-write-particles{opacity:0;transition:opacity .2s}
#qtop .tkh-header-more>summary:hover::before,#qtop .tkh-header-more>summary:focus-visible::before,#qtop .tkh-header-more[open]>summary::before{opacity:1}
#qtop .tkh-header-more>summary:hover .qch-write-particles,#qtop .tkh-header-more>summary:focus-visible .qch-write-particles,#qtop .tkh-header-more[open]>summary .qch-write-particles{opacity:1}
#qtop .tkh-header-more[open]>summary .qch-write-particles>i{animation-name:qch-particle-flow;animation-duration:calc(3.8s + var(--p)*.3s)}
@media(prefers-reduced-motion:reduce){#qtop .tkh-header-more>summary::before{animation:none;transition:none}#qtop .tkh-header-more>summary .qch-write-particles{display:none}}
/* One continuous sheet starts under Message and stops at the left edge of +. */
#qtop.qref-actions-background:has(>.qch-write-trigger){position:relative;isolation:isolate;z-index:50}
#qtop.qref-actions-background:has(>.qch-write-trigger)::before{content:'';position:absolute;right:0;top:0;bottom:0;width:var(--qref-actions-span,0px);z-index:-1;pointer-events:none;background:var(--v3-action-gradient);background-size:var(--v3-action-gradient-size);animation:qch-header-drift var(--v3-action-drift) ease-in-out infinite alternate;clip-path:inset(0 0 0 calc(100% - var(--qref-message-span,var(--v3-message-width))));transition:clip-path .42s cubic-bezier(.2,.8,.2,1)}
#qtop.qref-actions-background:has(.tkh-header-more>summary:hover,.tkh-header-more[open],.tkh-header-more>summary:focus-visible)::before{clip-path:inset(0)}
/* Message stays compact even when a previously focused/open + keeps its state. */
#qtop.qref-actions-background:has(>button.qch-write-trigger:hover)::before{clip-path:inset(0 0 0 calc(100% - var(--qref-message-span,var(--v3-message-width))))}
#qtop.qref-actions-background>.qch-write-trigger,#qtop.qref-actions-background .tkh-header-more>summary{background:transparent}
#qtop.qref-actions-background>.qch-write-trigger::before,#qtop.qref-actions-background .tkh-header-more>summary::before{display:none}
@media(prefers-reduced-motion:reduce){#qtop.qref-actions-background::before{animation:none!important;transition:none!important}}
/* Native view links share one presentation; view controls stay below the header. */
/* The active tab joins the landing search sheet; data blocks keep their surface. */
body.qloa-ui-aligned #main .tkh-hero{background:var(--base)}
@media(min-width:769px){.qref-view-source{display:none!important}}
.qref-single-view{display:none!important}
.qref-viewbar{display:flex;align-items:center;flex:none;min-width:0;height:var(--v3-viewbar-height);min-height:var(--v3-viewbar-height);border:0;background:var(--surface)}
.qref-viewbar>.qref-view-tabs{flex:1;min-width:0;border-bottom:0}
.qref-viewbar>.qref-view-tabs:empty{display:none}
.qref-viewbar:has(>.qref-view-tabs:empty){justify-content:flex-end}
.qref-viewbar:has(>.qref-view-tabs:empty):has(>.qref-view-controls:empty){display:none}
.qref-view-controls{display:flex;align-items:center;gap:6px;padding:0 12px;flex:none}
.qref-view-controls:empty{display:none}
.qref-view-controls button{font-size:var(--v3-control-font);min-width:32px}
.qref-view-tabs{display:flex;align-items:flex-end;gap:4px;height:var(--v3-viewbar-height);min-height:var(--v3-viewbar-height);flex:none;padding:8px 12px 0;border:0;background:var(--surface);overflow-x:auto;scrollbar-width:none;box-shadow:none}
.qref-view-tabs>a,.qref-view-tabs>button{display:flex;align-items:center;justify-content:center;gap:8px;height:var(--v3-tab-height);min-height:var(--v3-tab-height);padding:0 12px;margin:0;border:1px solid transparent;border-bottom:0;border-radius:var(--v3-tab-radius) var(--v3-tab-radius) 0 0;background:transparent;font-size:var(--v3-control-font);line-height:1.5;color:var(--muted);white-space:nowrap;flex:none}
.qref-view-tabs>a>svg,.qref-view-tabs>button>svg{width:16px;height:16px;flex:none}
.qref-view-tabs>a:hover,.qref-view-tabs>button:hover{background:var(--elevated);color:var(--ink)}
.qref-view-tabs>a[aria-current="page"],.qref-view-tabs>button[aria-pressed="true"],.qref-view-tabs>.active,.qref-view-tabs>.btn-primary,.qref-native-tabs>a[aria-current]:not([aria-current="false"]){background:var(--base);border-color:var(--line);border-bottom:0;color:var(--ink);font-weight:600;box-shadow:none}
.qref-view-tabs>a:focus-visible,.qref-view-tabs>button:focus-visible{outline:2px solid var(--ink);outline-offset:-3px}
.qref-view-tabs>.wb-view-tab{display:flex;align-items:flex-end;flex:none;border:0}
.qref-view-tabs>.wb-view-tab>button.tab{height:36px;padding:0 12px;margin:0;border:1px solid transparent;border-bottom:0;border-radius:var(--v3-tab-radius) var(--v3-tab-radius) 0 0;background:transparent;font-size:var(--v3-control-font);white-space:nowrap;color:var(--muted)}
.qref-view-tabs>.wb-view-tab>button[aria-current="page"]{background:var(--base);border-color:var(--line);border-bottom:0;color:var(--ink);font-weight:600}
/* Native record and response tabs retain their owners; only their sheet geometry changes. */
.qref-view-tabs.crw-nav,.qref-view-tabs.crw-subnav{gap:4px;padding:8px 12px 0;border:0;min-height:44px}
.qref-view-tabs.crw-nav>a,.qref-view-tabs.crw-subnav>a{height:var(--v3-tab-height);min-height:var(--v3-tab-height);border-bottom:0;padding:0 12px;font-size:var(--v3-control-font)}
.qref-native-tabs.qref-view-tabs{gap:4px;align-items:flex-end;flex-wrap:nowrap;padding:8px 12px 0;border:0;background:var(--surface);box-shadow:none;overflow-x:auto}
.qref-native-tabs.qref-view-tabs>:is(a,button){height:var(--v3-tab-height);min-height:var(--v3-tab-height);padding:0 12px;margin:0;border:1px solid transparent;border-bottom:0;border-radius:var(--v3-tab-radius) var(--v3-tab-radius) 0 0;background:transparent;color:var(--muted);font-size:var(--v3-control-font);box-shadow:none}
.qref-native-tabs.qref-view-tabs>:is(.active,.selected,.btn-primary,[aria-pressed=true],[aria-selected=true],[aria-current]):not([aria-current=false]){background:var(--base);border-color:var(--line);color:var(--ink);font-weight:600}
.qref-view-tabs>.wb-view-tab>button.tab.active{background:var(--base);border-color:var(--line);color:var(--ink);font-weight:600}
.qref-editor-tabs-shell{height:var(--v3-viewbar-height);min-height:var(--v3-viewbar-height);padding:0;border:0;background:var(--surface)}.qref-editor-tabs-shell>nav{flex:1;min-width:0}
.qloa-ui-aligned #drawer :is(.trks-detail-tabs,.fbs-detail-tabs){display:flex;align-items:flex-end;gap:4px;height:var(--v3-viewbar-height);min-height:var(--v3-viewbar-height);flex:none;padding:8px 12px 0;border:0;background:var(--surface);box-shadow:none;overflow-x:auto;scrollbar-width:none}
.qloa-ui-aligned #drawer :is(.trks-detail-tabs,.fbs-detail-tabs)>button{height:var(--v3-tab-height);min-height:var(--v3-tab-height);padding:0 12px;border:1px solid transparent;border-bottom:0;border-radius:var(--v3-tab-radius) var(--v3-tab-radius) 0 0;background:transparent;color:var(--muted)}
.qloa-ui-aligned #drawer :is(.trks-detail-tabs,.fbs-detail-tabs)>button[aria-selected=true]{background:var(--base);border-color:var(--line);color:var(--ink);font-weight:600}
.qref-social-local-views{display:inline-flex;align-items:center;gap:8px;flex:none;max-width:100%;color:var(--muted);font-size:var(--v3-control-font)}
.qref-social-local-views>select{height:32px;min-height:32px;max-width:220px;border:1px solid var(--line);border-radius:6px;background:var(--base);color:var(--ink);padding:0 28px 0 10px;font-size:var(--v3-control-font)}
.qref-social-local-views>select:disabled{opacity:1;color:var(--muted);cursor:default}
.qloa-ui-aligned .tks-compose-heading.qcu-channel-heading{height:var(--v3-viewbar-height);min-height:var(--v3-viewbar-height);flex:none;padding:8px 8px 0;border:0;box-sizing:border-box}
.qloa-ui-aligned .qcu-channel-heading>[role=tablist]{margin-bottom:0}
.qloa-ui-aligned .qcu-channel-heading>[role=tablist]>.btn{height:var(--v3-tab-height);min-height:var(--v3-tab-height);border-bottom:0;border-radius:var(--v3-tab-radius) var(--v3-tab-radius) 0 0;font-size:var(--v3-control-font)}
.qloa-ui-aligned .qcu-channel-heading>.icon-btn{align-self:center;margin-bottom:8px}
@media(max-width:768px){.qref-native-tabs,.qref-editor-tabs-shell{height:var(--v3-mobile-viewbar-height);min-height:var(--v3-mobile-viewbar-height)}.qref-native-tabs.qref-view-tabs>:is(a,button),.qref-view-tabs>.wb-view-tab>button.tab,.qref-view-tabs.crw-nav>a,.qref-view-tabs.crw-subnav>a{height:var(--v3-viewbar-height);min-height:var(--v3-viewbar-height)}.qref-view-tabs.crw-nav,.qref-view-tabs.crw-subnav{height:var(--v3-mobile-viewbar-height);min-height:var(--v3-mobile-viewbar-height)}.qloa-ui-aligned .tks-compose-heading.qcu-channel-heading{height:var(--v3-mobile-viewbar-height);min-height:var(--v3-mobile-viewbar-height)}.qloa-ui-aligned .qcu-channel-heading>[role=tablist]>.btn{height:var(--v3-viewbar-height);min-height:var(--v3-viewbar-height)}.qloa-ui-aligned #drawer :is(.trks-detail-tabs,.fbs-detail-tabs){height:var(--v3-mobile-viewbar-height);min-height:var(--v3-mobile-viewbar-height)}.qloa-ui-aligned #drawer :is(.trks-detail-tabs,.fbs-detail-tabs)>button{height:var(--v3-viewbar-height);min-height:var(--v3-viewbar-height);font-size:var(--v3-control-font)!important}}
.qref-route-history{display:flex;align-items:center;gap:4px;flex:none;margin-right:4px}
#qtop .qref-route-history>button{display:flex;align-items:center;justify-content:center;flex:none;width:32px;height:32px;min-height:32px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--ink);cursor:pointer}
#qtop .qref-route-history>button>svg{width:16px;height:16px;pointer-events:none}
#qtop .qref-route-history>button:hover:not(:disabled){background:var(--elevated)}
#qtop .qref-route-history>button:disabled{color:var(--muted);opacity:.35;cursor:default}
#qtop .qref-route-history>button:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
@media(max-width:768px){#qtop .qref-route-history>button{width:44px;height:var(--v3-viewbar-height);min-height:var(--v3-viewbar-height)}.qref-route-history{gap:0;margin-right:0}}
.qref-planning-actions{display:flex;justify-content:flex-end;padding:10px 12px;border-bottom:1px solid var(--line)}
.qref-filter-trigger{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:32px;padding:6px 10px;border:1px solid var(--line);border-radius:6px;background:var(--base);color:var(--ink);font-size:var(--v3-control-font);line-height:1.2;white-space:nowrap}
.qref-filter-trigger>svg{width:16px;height:16px;flex:none}
@media(min-width:769px){
 .qvm-menu.qref-filter-surface,dialog#drawer[data-client-surface=menu].qref-filter-surface{width:360px!important;max-width:calc(100vw - 24px)!important;border:1px solid var(--line);border-radius:10px!important;background:var(--base);box-shadow:0 12px 40px #0002;font-size:var(--v3-control-font)}
 .qvm-menu.qref-filter-surface{padding:0}
 .qvm-menu.qref-filter-surface>header,.qref-filter-surface[data-client-surface=menu] .csurface-head{padding:10px 12px;min-height:52px;border-bottom:1px solid var(--line);font-size:14px}
 .qvm-menu.qref-filter-surface>form,.qvm-menu.qref-filter-surface>div,.qvm-menu.qref-filter-surface>nav,.qref-filter-surface[data-client-surface=menu] .csurface-body{padding:12px}
 .qref-filter-surface[data-client-surface=menu] .csurface-head h2{font-size:14px}
 .qref-filter-surface[data-client-surface=menu] .csurface-close{width:32px;min-width:32px;height:32px}
 .qref-filter-surface :is(select,input:not([type=checkbox]):not([type=radio])){min-height:36px;font-size:var(--v3-control-font)}
 .sh-popover:has(#ss-account-filter){width:360px!important;border:1px solid var(--line);border-radius:10px;background:var(--base);box-shadow:0 12px 40px #0002;font-size:var(--v3-control-font)}
 .sh-popover:has(#ss-account-filter)>header{padding:10px 12px;min-height:52px;border-bottom:1px solid var(--line);font-size:14px}
 .sh-popover:has(#ss-account-filter) .sh-filter-fields{padding:12px}
 .sh-popover:has(#ss-account-filter) select{min-height:36px;font-size:var(--v3-control-font)}
}

.qref-option-sources[hidden]{display:none!important}.qref-option-commands+.qref-option-settings{padding-top:6px;margin-top:6px;border-top:1px solid var(--line)}#qtop .qref-inline-options .qvm-nav{grid-template-columns:1fr}#qtop .qref-inline-options .qvm-nav :is(a,button){font-size:12px;padding:8px 6px;min-height:36px}
/* Offer navigation is represented once by the persistent sub-tabs. */
body.qloa-ui-aligned .oo-page .oc-heading-actions > a[hidden]{display:none!important}
