.tokens-hub-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.tokens-hub-switch{display:flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:999px;background:var(--surface-2)}
.tokens-hub-switch button{font:inherit;font-size:13px;padding:8px 16px;border:0;border-radius:999px;background:transparent;color:var(--muted);cursor:pointer;white-space:nowrap}
.tokens-hub-switch button[aria-pressed="true"]{color:var(--ink);background:var(--surface);box-shadow:0 1px 4px #0001}
.tokens-section-label,.tokens-settings-wrap{display:none}
.tokens-action{font:inherit;font-size:13px;padding:9px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);color:var(--ink);cursor:pointer}
#view-tokens #view-pons{margin:0;padding:0;max-width:none;width:100%;min-height:0}
#view-tokens #view-pons .pons-head{margin-top:0}
.tokens-hub-head button:focus-visible,.tokens-settings button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:700px){
  .tokens-hub-head{margin-bottom:12px;position:relative;z-index:12}
  .tokens-hub-head>.tokens-hub-switch,#tokensDesktopRefresh{display:none!important}
  .tokens-section-label{display:block;font:500 18px/1.4 var(--display)}
  .tokens-settings-wrap{display:block;position:relative}
  #tokensSettingsToggle{display:grid;place-items:center;width:38px;height:38px;padding:9px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);color:var(--ink);cursor:pointer}
  #tokensSettingsToggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6}
  .tokens-settings{position:absolute;right:0;top:calc(100% + 8px);width:260px;max-width:calc(100vw - 32px);padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:0 12px 36px #0003;color:var(--ink)}
  .tokens-settings[hidden]{display:none}
  .tokens-settings h2{margin:0 0 12px;font:500 14px/1.4 var(--display)}
  .tokens-settings .tokens-hub-switch{border-radius:12px}
  .tokens-settings .tokens-hub-switch button{flex:1;font-size:12px;padding:9px 7px;border-radius:9px}
  .tokens-active-setting{display:flex;align-items:center;gap:9px;margin:16px 0;font:400 13px/1.5 var(--body)}
  .tokens-active-setting:has(input:disabled){opacity:.5}
  .tokens-active-setting input{accent-color:var(--accent);width:16px;height:16px}
  #tokensMenuRefresh{width:100%;min-height:38px}
  #view-tokens .tokens-toolbar{gap:10px}
}
/* Compact floating alerts; the launchpad cards themselves are unchanged. */
.grad-toast.grad-compact{width:320px;padding:12px;border-radius:16px;overflow:hidden}
.grad-compact .grad-card-head{margin-bottom:8px;gap:6px}
.grad-compact .grad-event{font-size:11px;line-height:16px}
.grad-compact .grad-identity{gap:9px}
.grad-compact .grad-avatar{width:32px;height:32px;font-size:13px}
.grad-compact .grad-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.grad-compact .grad-symbol{font-size:14px;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.grad-compact .grad-fullname{font-size:11px;line-height:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.grad-compact .grad-open{padding:0;width:32px;min-width:32px;height:32px;min-height:32px;border-radius:9px}
.grad-compact .grad-review-rating{font:500 12px/18px var(--body);color:var(--accent);white-space:nowrap}
.grad-compact .grad-close{width:26px;height:26px}
@media(max-width:600px){.grad-toast.grad-compact{width:300px;max-width:calc(100vw - 24px)}}

/* Keep mobile settings beside the ranking controls, in a separate box. */
@media(max-width:700px){
  .tokens-hub-head{display:none}
  html[data-theme] #view-tokens .tokens-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 32px;column-gap:8px}
  html[data-theme] #view-tokens .tokens-modes{grid-column:1;grid-row:1;width:100%;min-width:0}
  html[data-theme] #view-tokens .tokens-modes button{padding-left:7px;padding-right:7px;font-size:11px}
  #view-tokens .tokens-toolbar>.tokens-settings-wrap{grid-column:2;grid-row:1}
  #view-tokens .tokens-search{grid-column:1 / -1;width:100%;margin-left:0;max-width:none}
  #view-tokens .tokens-settings-wrap{position:relative;z-index:12;flex-shrink:0}
  #tokensSettingsToggle{width:32px;height:32px;padding:7px;border-radius:10px}
  #tokensSettingsToggle svg{stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}
  #view-tokens #view-pons .pons-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
  #view-tokens #view-pons .pons-head>div:first-child{min-width:0}
  #view-tokens #view-pons .pons-head>.tokens-settings-wrap{margin-top:4px}
}
