/* My Nexus polish (Claude BFD92, 9 Oct 2026). Loaded after nx.css.
   Home shortcuts as a sleek grid (no counts). On phones and tablets: greeting sits higher, a cleaner search, one shared
   top bar for every tab's search / filters / view switch, Smart Nexus without boxes, and centred token tiles. */

/* Home: a grid of buttons that open each section */
.nx-glance { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.nx-glance button { display: grid; justify-items: center; align-content: center; gap: 9px; min-height: 92px; padding: 14px 8px; text-align: center; }
.nx-glance i { width: 40px; height: 40px; border-radius: 12px; }
.nx-glance i svg { width: 19px; height: 19px; }
.nx-glance span { color: #e4e4e7; font: 600 13px Inter, sans-serif; letter-spacing: 0; white-space: nowrap; }
.nx-glance button:hover span { color: #fff; }
@media (max-width: 1280px) { .nx-glance { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

@media (max-width: 1080px) {
  /* Greeting higher up, a bit smaller */
  .mb .mb-main.nx { padding-top: 20px; }   /* the site header already takes its own space here */
  .nx-hero { gap: 14px; margin-bottom: 16px; }
  .nx-me { gap: 14px; }
  .nx-av { width: 48px; height: 48px; font-size: 20px; }
  .nx-hero h1 { font-size: 23px; }
  .nx-hero p { margin-top: 2px; font-size: 13px; line-height: 1.45; }

  /* Search: full width, calm */
  .nx-search { width: 100%; height: 48px; margin: 0 0 18px; padding: 0 14px; border-radius: 14px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
  .nx-search svg { width: 18px; height: 18px; flex: none; }
  .nx-search input { font-size: 15px; }
  .nx-search input::placeholder { color: #71717a; }
  .nx-search kbd { display: none; }
  /* Everywhere but Home (and search results) each tab has its own search in its top bar */
  #nxApp:has(.nx-view[data-view="home"][hidden]):has(.nx-view[data-view="search"][hidden]) .nx-hero { display: none; }   /* each tab is its own page; the greeting lives on Home */

  /* Home grid: three across */
  .nx-glance { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 26px; }
  .nx-glance button { min-height: 84px; padding: 12px 6px; border-radius: 16px; }
  .nx-glance span { font-size: 12px; }

  /* One top bar for every tab: search on top, filters left, view switch right; sticks under the site header */
  .nx-head { gap: 10px; margin-bottom: 14px; }
  .nx-head h2 { font-size: 24px; }
  .nx-head p { font-size: 13.5px; line-height: 1.5; }
  .nx-head > .nx-filter, .nx-head > .nx-seg { position: sticky; top: 64px; z-index: 15; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: calc(100% + 24px); margin: 2px -12px 0; padding: 10px 12px;
    border: 0; border-radius: 0; background: rgba(4,4,10,.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
  .nx-head > .nx-seg { gap: 4px; }
  .nx-filter .nx-fdiv { display: none !important; }
  .nx-filter .nx-mini-search { order: -1; flex: 1 1 100%; width: auto; max-width: none; height: 42px; padding: 0 12px; border-radius: 12px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
  .nx-filter .nx-mini-search input { font-size: 14.5px; }
  .nx-filter .nx-seg, .nx-head > .nx-seg { padding: 3px; border-radius: 11px; background: rgba(255,255,255,.04); box-shadow: none; }
  .nx-filter .nx-seg:not(.nx-icseg) { flex: 0 1 auto; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .nx-filter .nx-seg::-webkit-scrollbar { display: none; }
  .nx-filter .nx-seg button, .nx-head > .nx-seg button { flex: none; height: 30px; padding: 0 12px; font-size: 12.5px; }
  .nx-filter .nx-icseg { order: 10; margin-left: auto; }
  .nx-filter .nx-icseg button { width: 34px; padding: 0 !important; }

  /* Smart Nexus: no boxes, sections fold with a thin line between them */
  [data-view="smart"] .nx-block { margin: 0; padding: 4px 0; border-radius: 0; background: none; box-shadow: none; border-bottom: 1px solid rgba(255,255,255,.07); }
  [data-view="smart"] .nx-block:first-child { border-top: 1px solid rgba(255,255,255,.07); }
  [data-view="smart"] .nx-fold > h3 { min-height: 52px; margin: 0 !important; font-size: 15.5px; }
  [data-view="smart"] .nx-fold.open > h3 { margin-bottom: 6px !important; }
  [data-view="smart"] .nx-fold.open { padding-bottom: 18px; }
  [data-view="smart"] .nx-tones { display: block; margin: 0 0 12px; }
  [data-view="smart"] .nx-tones label { display: block; border-bottom: 1px solid rgba(255,255,255,.06); }
  [data-view="smart"] .nx-tones label:last-child { border-bottom: 0; }
  [data-view="smart"] .nx-tones span { position: relative; padding: 12px 36px 12px 2px; border-radius: 0; background: none; box-shadow: none; }
  [data-view="smart"] .nx-tones input:checked + span { background: none; box-shadow: none; }
  [data-view="smart"] .nx-tones input:checked + span b { color: rgb(var(--acc)); }
  [data-view="smart"] .nx-tones input:checked + span::after { content: ""; position: absolute; right: 8px; top: 50%; width: 6px; height: 11px; margin-top: -8px; border: solid rgb(var(--acc)); border-width: 0 2px 2px 0; transform: rotate(45deg); }
  [data-view="smart"] .nx-rows .nx-row { padding-left: 2px; padding-right: 2px; }
  [data-view="smart"] .nx-row:has(.nx-seg) { flex-wrap: wrap; }
  [data-view="smart"] .nx-row:has(.nx-seg) > .nx-seg { display: flex; width: 100%; }
  [data-view="smart"] .nx-row:has(.nx-seg) > .nx-seg label { flex: 1; }
  [data-view="smart"] .nx-row:has(.nx-seg) > .nx-seg label span { justify-content: center; width: 100%; }

  /* Usage: tokens centred, no boxes */
  .nx-tokens-h { flex-direction: column; align-items: center; margin-top: 34px; text-align: center; }
  .nx-tokens-h > div { width: 100%; }
  .nx-tokens { gap: 0; }
  .nx-token-row, .nx-token-row:first-child { grid-template-columns: 1fr 1fr; justify-items: stretch; gap: 8px; padding: 16px 0; border: 0; border-radius: 0; background: none; box-shadow: none; border-top: 1px solid rgba(255,255,255,.07); text-align: center; }
  .nx-token-row:first-child > .nx-token { grid-column: 1 / -1; justify-self: center; width: min(260px, 100%); }
  .nx-token-who { grid-column: 1 / -1; margin-bottom: 4px; }
  .nx-token { grid-template-columns: 1fr; grid-template-rows: auto; justify-items: center; row-gap: 4px; padding: 12px 8px; text-align: center; }
  .nx-token-ic { grid-row: auto; }
  .nx-token b { font-size: 20px; }
  .nx-token-hint { text-align: center; }
}
@media (max-width: 380px) { .nx-glance span { font-size: 11px; } }
