/* Responsive chrome and shared Toolbox tokens, after feature and brand styles. */
:root{--on-brand:#fff}
.toolbox-shell{--brand:#47d994;--brand-text:#6fe3ab;--brand-soft:rgba(71,217,148,.14);--focus:#6fe3ab;display:grid;grid-template-columns:256px minmax(0,1fr);min-width:0;font-size:15px;line-height:1.5}
:root[data-theme=light] .toolbox-shell{--brand-text:#146443;--brand-soft:#e3f7ec;--muted:#5d6d63;--focus:#146443}
.toolbox-shell :is(h1,h2,h3,h4),.toolbox-shell .kpi-card strong{font-family:'Bricolage Grotesque','DM Sans',sans-serif;letter-spacing:-.02em}
.toolbox-shell .workspace{min-width:0;padding-bottom:32px}
.toolbox-shell :is(.panel,.card){border-radius:18px;background:var(--surface)}
.toolbox-shell .kpi-card{border-radius:16px;background:var(--surface)}
.toolbox-shell .primary,body>dialog .primary{background:var(--brand);color:var(--on-brand)!important}
.toolbox-shell .primary:hover{background:var(--brand);filter:brightness(.97)}
.toolbox-shell :is(button,a,input,select,textarea):focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.toolbox-shell .eyebrow,.toolbox-shell .text-button{color:var(--brand-text)}
:root[data-theme=light] .toolbox-shell .status.draft{color:var(--warning-text)}
/* Legacy foreground accents share the readable token; brand fills retain --brand. */
.toolbox-shell :is(.guide-attention-card small,.guide-benefit-icon,.guide-checkmark,.status:not(.draft,.warning,.invalid,.expired),.notice:not(.error),.claim-result .status-copy,.claim-success>span,.empty-events>span,.allowance-pill,.event-row-qr:hover,.booking-empty>span,.booking-setup>span,.booking-scanner-icon,.booking-scan-feedback strong,.community-roster-count,.community-role-badge.is-admin,.community-member-identity>span,.referral-code-value,.referral-code-chip,.bundle-summary,.bundle-code,.link-btn){color:var(--brand-text)}
.toolbox-shell .sidebar{width:auto;min-width:0;padding:18px 14px;gap:14px;z-index:20}
.toolbox-shell .sidebar-brand{min-height:44px;padding:2px 6px;gap:8px}
.toolbox-shell .sidebar-brand .sidebar-logo-tile{width:70px;height:38px;flex:0 0 70px;border:0;padding:0;background:transparent}
.toolbox-shell .sidebar-brand .sidebar-logo-tile img{width:66px;height:34px;object-fit:contain}
.toolbox-shell .sidebar-brand #toolbox-brand-copy{border:0;padding:0;font-size:11px;line-height:1.25}
.toolbox-shell .sidebar-brand .adventure-logo-tile{width:45px;flex-basis:45px}
.toolbox-shell .sidebar-brand .adventure-brand-logo{width:40px;max-width:40px;border:0;padding:0}
.shell-workspace-card{min-width:0;flex:none;border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:10px}
.shell-manage{display:block;color:var(--muted);font-size:11px;margin-bottom:6px}
.shell-workspace-row{display:flex;align-items:center;gap:10px;min-width:0}
.shell-avatar{width:38px;height:38px;flex:0 0 38px;border-radius:11px;background:var(--brand);color:var(--on-brand);display:grid;place-items:center;font-weight:800}
.toolbox-shell .workspace-identity{display:grid;gap:2px;margin:0;overflow-wrap:anywhere;hyphens:auto;font-size:12px}
.workspace-identity strong{font-size:14px;line-height:1.3;color:var(--text)}
.workspace-identity span{color:var(--muted)}
.shell-workspace-switch{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:12px}
.shell-workspace-switch select{width:100%;min-width:0;border:1px solid var(--line);background:var(--surface-2);color:var(--text);border-radius:8px;padding:6px}
.shell-workspace-card>a{display:block;color:var(--brand-text);font-size:12px;margin-top:6px;text-decoration:none}
.toolbox-shell .sidebar nav{flex:1;overflow-y:auto;min-height:0}
.toolbox-shell .sidebar nav p{margin:12px 10px 6px}
.toolbox-shell .sidebar nav :is(a,button){display:flex;align-items:center;gap:11px;width:100%;min-height:40px;padding:8px 10px;border:0;border-radius:10px;background:transparent;color:var(--text);text-decoration:none;font:600 14px/1.25 'DM Sans',sans-serif;cursor:pointer;text-align:left}
.toolbox-shell .sidebar nav :is(a,button).active{background:var(--brand-soft);color:var(--brand-text);box-shadow:none}
.toolbox-shell .sidebar nav :is(a,button):hover{background:var(--surface-2)}
.toolbox-shell .sidebar nav .locked{opacity:1;cursor:pointer}
.toolbox-shell .nav-icon{width:24px;height:24px;flex:0 0 24px;display:grid;place-items:center;font-size:21px}
.toolbox-shell .nav-icon svg{width:24px;height:24px}
.toolbox-shell .sidebar nav :is(.nav-label,.nav-mask){width:auto;flex:1;min-width:0;font-size:inherit;text-align:left}
.toolbox-shell .nav-label,.toolbox-shell .nav-mask{overflow-wrap:anywhere}
.toolbox-shell .sidebar nav em{font-size:10px;color:var(--muted)}
.toolbox-shell [data-count-badge]{color:#fff;background:#c24e35;border-radius:99px;font-size:11px;font-weight:800;padding:1px 7px}
.shell-sidebar-footer{flex:none;display:grid;gap:10px;min-width:0}
.toolbox-shell .sidebar #toolbox-install{width:auto;max-width:100%;margin:0;padding:12px;border-radius:14px;box-shadow:none;background:var(--surface-2)}
.toolbox-shell .sidebar .install-heading img{display:none}
.toolbox-shell .sidebar .install-heading h2{font-size:13px;line-height:1.3}
.toolbox-shell .sidebar .install-heading p,.toolbox-shell .sidebar .install-hint{font-size:11px}
.toolbox-shell .sidebar .install-actions{flex-wrap:wrap;gap:6px}
.toolbox-shell .sidebar .install-actions button{font-size:11px;padding:6px}
.toolbox-shell .sidebar-account{display:grid;grid-template-columns:minmax(0,1fr) 32px;align-items:center;gap:4px 8px;padding:8px 0 0;margin:0}
.toolbox-shell .sidebar-email{grid-column:1/-1;font-size:11px}
.toolbox-shell .sidebar-account #sidebar-toggle{display:grid;place-items:center;width:32px;height:32px;min-height:32px;flex:none;color:var(--muted)}
.toolbox-shell .sidebar-account #sidebar-toggle svg{width:24px;height:24px}
.toolbox-shell .sidebar-account #sign-out{font-size:11px;min-height:36px}
.toolbox-shell .topbar{min-height:76px;height:auto;padding:14px 28px;gap:12px;flex-wrap:wrap}
.toolbox-shell .top-actions{align-items:center;flex-wrap:wrap;gap:12px}
.toolbox-shell .toolbox-locales{display:flex;border:1px solid var(--line);border-radius:10px}
.toolbox-shell .toolbox-locales a{display:grid;place-items:center;min-height:36px;padding:6px 9px;color:var(--muted);font-size:12px;text-decoration:none}
.toolbox-shell .toolbox-locales a[aria-current=page]{background:var(--brand-soft);color:var(--brand-text)}
.shell-theme{display:flex;gap:2px;padding:4px;background:var(--surface-2);border-radius:11px}
.shell-theme button{min-height:36px;border:0;border-radius:8px;padding:6px 10px;font-size:12px;color:var(--muted);background:transparent;cursor:pointer}
.shell-theme button[aria-pressed=true]{background:var(--surface);color:var(--text);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.toolbox-shell [data-toolbox-bottom],.toolbox-shell [data-toolbox-phone-top]{display:none}
@media(min-width:1025px){
 html[data-guide-open]:not([data-tour-compact]) .toolbox-shell{grid-template-columns:256px minmax(0,1fr) 324px}
 html[data-guide-open][data-sidebar-mode=icons]:not([data-tour-compact]) .toolbox-shell{grid-template-columns:76px minmax(0,1fr) 324px}
 :root[data-sidebar-mode=icons] .toolbox-shell{grid-template-columns:76px minmax(0,1fr)}
 :root[data-sidebar-mode=icons] .toolbox-shell .sidebar{padding:12px;gap:2px}
 :root[data-sidebar-mode=icons] .toolbox-shell .sidebar-brand{padding:0;min-height:44px}
 :root[data-sidebar-mode=icons] .sidebar .sidebar-compact-logo{display:block;width:40px;height:40px;border-radius:10px}
 :root[data-sidebar-mode=icons] .sidebar :is(.sidebar-logo-tile,#toolbox-brand-copy,.shell-manage,.workspace-identity,.shell-workspace-switch>span,.shell-workspace-card>a,.sidebar-email,.sidebar-sign-out-label,.guide-roadmap,nav p,nav em,#toolbox-install){display:none!important}
 :root[data-sidebar-mode=icons] .shell-workspace-card{position:relative;padding:6px;border:0;background:transparent}
 :root[data-sidebar-mode=icons] .shell-workspace-switch{position:absolute;inset:0;margin:0}
 :root[data-sidebar-mode=icons] .shell-workspace-switch select{height:100%;opacity:0;cursor:pointer}
 :root[data-sidebar-mode=icons] .shell-workspace-card:focus-within{outline:3px solid var(--focus);outline-offset:1px;border-radius:11px}
 :root[data-sidebar-mode=icons] .toolbox-shell .sidebar nav{overflow-x:hidden;scrollbar-width:none}
 :root[data-sidebar-mode=icons] .toolbox-shell .sidebar nav::-webkit-scrollbar{width:0;height:0}
 :root[data-sidebar-mode=icons] .toolbox-shell .sidebar nav :is(a,button){position:relative;min-height:44px;justify-content:center;padding:10px 0;gap:0}
 :root[data-sidebar-mode=icons] .toolbox-shell .sidebar nav :is(.nav-label,.nav-mask){position:fixed;left:80px;top:var(--tooltip-top,0);width:1px;height:1px;overflow:hidden;clip-path:inset(50%);flex:none}
 :root[data-sidebar-mode=icons] .toolbox-shell .sidebar [data-nav-id]:is(:hover,:focus) :is(.nav-label,.nav-mask){width:max-content;height:auto;max-width:240px;clip-path:none;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--text);z-index:50;box-shadow:var(--shadow);pointer-events:none}
 :root[data-sidebar-mode=icons] .sidebar .nav-lock-icon{position:absolute;right:0;bottom:4px;width:11px;height:11px}
 :root[data-sidebar-mode=icons] .toolbox-shell .sidebar-account{grid-template-columns:44px;justify-content:center;gap:4px}
 :root[data-sidebar-mode=icons] .toolbox-shell .sidebar-sign-out-icon{display:block;width:22px;height:22px}
 :root[data-sidebar-mode=icons] .toolbox-shell .sidebar-account :is(#sign-out,#sidebar-toggle){display:grid;place-items:center;width:44px;min-height:44px}
 :root[data-sidebar-mode=icons] .sidebar-toggle-chevron{transform:translateX(30px) scaleX(-1)}
}
/* Mehr ends above the live bottom bar and scrolls independently. */
.toolbox-shell #toolbox-more{position:fixed;inset:0 0 var(--toolbox-bottom-height,0px);z-index:29;background:var(--bg);color:var(--text);overflow:hidden;display:flex;flex-direction:column}
.toolbox-shell #toolbox-more[hidden]{display:none}
#toolbox-more [hidden]{display:none}
#toolbox-more>header{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding:20px 24px}
#toolbox-more h2{font-size:24px;margin:0}
#toolbox-more [data-more-close]{min-width:44px;min-height:44px;font-size:28px;padding:0;background:var(--surface);border:1px solid var(--line);border-radius:12px;color:var(--text)}
.shell-more-body{overflow:auto;overscroll-behavior:contain;padding:20px 24px 32px;max-width:760px;width:100%;margin:auto;box-sizing:border-box}
.shell-more-body>nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 8px}
.shell-more-body>nav>h3{grid-column:1/-1}
#toolbox-more .shell-workspace-card{margin:0 0 20px;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:16px}
#toolbox-more h3{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.07em;margin:24px 0 8px}
#toolbox-more nav>a,#toolbox-more nav>button,#toolbox-more [data-conditional-claim]>a,#toolbox-more details>a{display:flex;align-items:center;gap:8px;min-height:48px;width:100%;padding:10px 8px;box-sizing:border-box;color:var(--text);background:transparent;border:0;border-radius:10px;text-decoration:none;font:600 14px/1.4 'DM Sans',sans-serif;text-align:left}
#toolbox-more .nav-icon{display:grid;place-items:center;width:24px;height:24px;flex:none}
#toolbox-more .nav-label{min-width:0;overflow-wrap:anywhere}
#toolbox-more [data-count-badge]{margin-left:0;flex:none}
.sidebar-account [data-shell-install]{grid-column:1/-1;display:flex;align-items:center;gap:8px;width:100%;min-width:0;font-size:11px}
@media(min-width:1025px){
 :root[data-sidebar-mode=icons] .sidebar-account [data-shell-install]{width:44px;height:44px;padding:10px;justify-content:center}
 :root[data-sidebar-mode=icons] .toolbox-shell .sidebar-account{padding-top:0}
 :root[data-sidebar-mode=icons] .sidebar-account [data-shell-install] .nav-label{position:fixed;left:80px;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
 :root[data-sidebar-mode=icons] .sidebar-account [data-shell-install]:is(:hover,:focus) .nav-label{width:max-content;height:auto;max-width:240px;clip-path:none;padding:8px 12px;background:var(--surface);border:1px solid var(--line);border-radius:10px;z-index:50;pointer-events:none}
}
#toolbox-more .nav-icon svg{width:24px;height:24px}
#toolbox-more .nav-lock-icon{width:16px;height:16px;margin-left:auto;color:var(--muted)}
#toolbox-more .nav-mask{flex:1}
#toolbox-more em{font-size:11px;margin-left:auto}
[data-count-badge]{background:#c24e35;color:#fff;font:700 11px/1.4 'DM Sans',sans-serif;border-radius:999px;min-width:18px;padding:1px 4px;text-align:center;margin-left:auto}
#toolbox-more a:hover,#toolbox-more button:hover{background:var(--brand-soft)}
.shell-more-settings{border-top:1px solid var(--line);margin-top:24px}
.shell-more-settings>button,.shell-more-settings>a{display:flex;align-items:center;min-height:48px;width:100%;box-sizing:border-box;padding:12px;color:var(--text);font:600 16px/1.4 'DM Sans',sans-serif;text-align:left;text-decoration:none;background:transparent;border:0;border-radius:10px}
#toolbox-more .toolbox-locales{display:flex;gap:8px}
#toolbox-more .toolbox-locales>a{width:auto;flex:1;justify-content:center;border:1px solid var(--line)}
#toolbox-more .shell-theme{display:flex;width:100%}
#toolbox-more .shell-theme button{flex:1;min-height:44px}
@media(max-width:390px){#toolbox-more>header{padding:16px}.shell-more-body{padding:16px 16px 28px}#toolbox-more h2{font-size:22px}#toolbox-more .shell-more-body>nav :is(a,button){gap:6px;padding-inline:6px}}
@media(min-width:1025px) and (max-width:1279px){
 .toolbox-shell #sidebar-toggle{visibility:hidden;pointer-events:none}
}
@media(max-width:1024px){
 .toolbox-shell{grid-template-columns:minmax(0,1fr)}
 .toolbox-shell .sidebar,.toolbox-shell .topbar{display:none}
 .toolbox-shell .workspace{padding-bottom:calc(92px + env(safe-area-inset-bottom))}
 .toolbox-shell [data-toolbox-phone-top]{display:flex;align-items:center;gap:10px;min-width:0;padding:12px 16px;background:var(--bg);border-bottom:1px solid var(--line)}
 .phone-workspace{position:relative;flex:1;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;cursor:pointer}
 .phone-workspace small{grid-column:1/-1;color:var(--muted);font-size:12px}
 .phone-workspace strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px}
 .phone-workspace select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
 .phone-workspace:focus-within{outline:3px solid var(--focus);outline-offset:3px;border-radius:4px}
 .toolbox-shell .shell-event-round{display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0;border-radius:50%;font-size:26px;line-height:1}
 .toolbox-shell [data-toolbox-bottom]{display:grid;grid-template-columns:repeat(5,auto);position:fixed;inset:auto 0 0;z-index:30;background:var(--surface);border-top:1px solid var(--line);padding:8px 4px calc(8px + env(safe-area-inset-bottom))}
 .toolbox-shell [data-toolbox-bottom] [data-nav-id]{position:relative;min-width:0;min-height:48px;display:flex;flex-direction:column;gap:3px;align-items:center;text-align:center;padding:4px 2px;border:0;border-radius:10px;background:transparent;color:var(--muted);font:700 11px/1.2 'DM Sans',sans-serif;white-space:nowrap;overflow-wrap:normal;text-decoration:none;cursor:pointer}
 .toolbox-shell [data-toolbox-bottom] [aria-current=page]{color:var(--brand-text);background:var(--brand-soft)}
 .toolbox-shell [data-toolbox-bottom] .nav-icon{height:24px;width:24px}
 .toolbox-shell [data-toolbox-bottom] .nav-lock-icon{position:absolute;width:11px;height:11px;top:16px;right:calc(50% - 18px)}
 .toolbox-shell [data-toolbox-bottom] em{display:none}
 .toolbox-shell [data-toolbox-bottom] [data-count-badge]{position:absolute;top:0;right:12%}
 .toolbox-shell .workspace>.view{padding-top:24px}
}

@media (max-width:340px){.toolbox-shell [data-toolbox-bottom] [data-nav-id]{font-size:10px}}
