/* Field notes: print-like hierarchy, phosphor green, short purposeful motion. */
:root { --canvas: #f3f5f2; --surface: #ffffff; --ink: #24362e; --line: #dce4de; --field-lime: #d7ed9e; --field-deep: #19352b; --field-paper: #f3f5f2; }
body[data-view="public"] { background-color: var(--canvas); background-image: none; }
.sidebar { background: var(--canvas); border-right-color: #dce4de; }
.brand { color: #263b31; }
.brand-mark { border-color: #859a78; border-radius: 6px; color: #476340; background: #e8efdf; }
.brand-sub { color: #64756a; }
.side-caption { color: #637267; font-size: 12px; letter-spacing: 0; }
.nav-item { color: #46564c; }
.nav-icon { color: #687b6d; }
.nav-item:hover { color: #233a2e; background: #e8ede7; }
.nav-item.active, .gsap-ready .nav-active-indicator { color: #263d30; background: #e5efda; box-shadow: none; }
.nav-item.active .nav-icon { color: #405d3c; }
.nav-index { color: #637267; font-size: 11px; }
.sidebar-bottom { border-top-color: #dce4de; }
.online { color: #526856; font-size: 11px; }
.online i { background: #678b4f; }
.sidebar-bottom p { color: #5e7063; font-size: 12px; }
.nav-item .nav-index { font-variant-numeric: tabular-nums; }
.topbar { background: var(--canvas); border-bottom-color: #dce4de; }
.topbar .muted, .phase-label { color: #5f7065; }
.page > .field-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 275px; align-items: center; gap: 26px; min-height: 210px; padding: 26px 29px; margin: 0 0 26px; border: 1px solid #dce4de; border-radius: 6px; background: #edf1ea; overflow: hidden; }
.page > .field-hero::before { content: ''; position: absolute; top: 0; left: 0; width: 72px; height: 3px; background: #789d50; }
.page > .field-hero > :first-child { position: relative; z-index: 1; min-width: 0; }
.page > .field-hero :is(.eyebrow) { font-size: 12px; letter-spacing: 0; color: #5c7160; }
.page > .field-hero h1 { font-size: 28px; line-height: 1.3; letter-spacing: 0; color: #203d2f; margin: 11px 0 13px; }
.page > .field-hero p { display: block; font-size: 14px; color: #5e7062; line-height: 1.7; margin: 0; max-width: 610px; }
.field-hero > :is(.hero-stamp, .hero-tag, .archive-emblem, .intel-terminal-tag) { display: none; }
.field-hero > a.secondary { position: absolute; right: 30px; bottom: 18px; z-index: 3; }
.field-hero .archive-hero-links { margin-top: 14px; gap: 14px; font-size: 11px; }
#page-community > .field-hero { padding: 26px 29px; margin-bottom: 26px; }
#page-community > .field-hero h1 { font-size: 28px; margin: 11px 0 13px; }
#page-community > .field-hero p { display: block; }
.field-art { position: relative; align-self: stretch; min-height: 156px; background: #1d382d; color: #c8df9a; overflow: hidden; border-radius: 6px; isolation: isolate; }
.field-art-grid { display: none; }
.field-diagram { position: absolute; top: 50%; left: -13px; width: 265px; height: 170px; margin-top: -85px; stroke: #bfd59b70; stroke-width: .8; }
.field-diagram .field-trace { stroke: #ddf3a8; stroke-width: 1.4; }
.field-diagram .field-node, .field-diagram .field-bar { fill: #cde4a1; stroke: none; }
.field-index { position: absolute; right: 14px; top: 16px; font: 600 40px/.9 Arial, sans-serif; letter-spacing: 0; color: #dcf3a116; -webkit-text-stroke: 1px #d5e8b44a; }
.field-code { position: absolute; left: 18px; bottom: 28px; font: 11px/1.2 Consolas, monospace; letter-spacing: 0; white-space: pre; }
.field-caption { position: absolute; left: 18px; bottom: 12px; font-size: 11px; color: #b2c69f; letter-spacing: 0; }
.field-art-corner { position: absolute; right: 12px; bottom: 12px; width: 14px; height: 14px; border-right: 1px solid #d4e8a35a; border-bottom: 1px solid #d4e8a35a; }
#page-planner > .field-hero { padding: 0 0 20px; min-height: 130px; grid-template-columns: minmax(0, 1fr) 195px; border: 0; border-bottom: 1px solid #d4dfca; border-radius: 0; background: transparent; }
#page-planner > .field-hero::before { display: none; }
#page-planner > .field-hero .field-art { min-height: 115px; background: transparent; }
#page-planner > .field-hero .field-diagram { stroke: #708b5c60; left: -35px; }
#page-planner > .field-hero .field-trace { stroke: #6b8a42; }
#page-planner > .field-hero .field-node { fill: #6b8a42; }
#page-planner > .field-hero .field-index { color: #607c4310; -webkit-text-stroke-color: #78965a80; }
#page-planner > .field-hero .field-code { color: #718a59; bottom: 15px; left: auto; right: 15px; }
#page-planner > .field-hero .field-caption, #page-planner > .field-hero .field-art-corner { display: none; }
#page-planner .real-banner.mission-stage { min-height: 355px; border-radius: 14px 2px 14px 2px; }
#page-planner .mission-stage h2 { font-size: 32px; margin-top: 20px; line-height: 1.25; letter-spacing: 0; }
#page-planner .mission-copy h2 > span:last-child { color: #d7ed9e; }
.mission-place strong { font-size: 30px; }
.mission-watermark { color: #e1f4b20d; }
.mission-map-list button { transition: color .22s, background .22s; }
.mission-map-list button img { border-radius: 4px 1px 4px 1px; }
.mission-stage .mission-map-indicator { background: #d7ed9e; }
.home-passwords { border-radius: 6px; }
.real-board > .home-passwords { background: #fcfdf7; border-color: #d5dfcb; }
.real-board .home-password-card { background: #f3f6ed; border-radius: 5px; }
.panel, .archive-card, .music-score-card { border-color: #d5dfcb; border-radius: 6px; }
.archive-picture { background: radial-gradient(ellipse at center, #e7eedf, #f2f5ec); }
.archive-card h3 { letter-spacing: -.02em; }
.primary { border-radius: 5px 1px 5px 1px; background: #284d35; border-color: #284d35; }
.primary:hover { background: #375f3e; border-color: #375f3e; }
.secondary { border-radius: 5px 1px 5px 1px; }
.loadout-tabs button { border-radius: 7px 2px 7px 2px; }
.loadout-tabs button[aria-selected="true"] { border-color: #8faa68; background: #e7efda; box-shadow: inset 3px 0 #6d8c49; }
.gun-browse-panel { background: #fbfcf7; border-radius: 10px 2px 10px 2px; border-color: #d2dec8; }
.gun-overview-row, .gun-scheme-row { position: relative; border-radius: 7px 2px 7px 2px; border-color: #d9e1d1; }
.gun-overview-row:hover, .gun-scheme-row:hover { border-color: #9cb57f; background: #f1f5e8; }
.gun-row-picture { border-radius: 5px; background: radial-gradient(ellipse, #e2ebd5, #f4f6ee); }
.gun-coverage-cell > strong { color: #577d38; font-variant-numeric: tabular-nums; }
.gun-ranking { border-radius: 10px 2px 10px 2px; }
.gun-ranking ol > li:first-child { background: #e8f0d9; }
#tools-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0; background: transparent; border: 0; border-radius: 0; margin: 24px 0; isolation: isolate; }
#tools-tabs > .motion-tab-indicator { display: none; }
#tools-tabs > button { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: 28px 20px; column-gap: 14px; align-content: center; align-items: center; min-height: 100px; padding: 20px 18px; margin: 0; border: 1px solid #dce4de; border-radius: 6px; text-align: left; background: #ffffff; color: #38533a; transition: background-color .25s, border-color .25s, color .25s; overflow: hidden; }
#tools-tabs > button.active { background: #e5efda; border-color: #b7cba6; color: #263d30; box-shadow: none; }
#tools-tabs > button:hover:not(.active) { border-color: #8fac6f; background: #eaf1de; }
.field-tool-icon { grid-column: 1; grid-row: 1 / 3; width: 33px; height: 33px; stroke: #6b8952; stroke-width: 1.3; }
.active > .field-tool-icon { stroke: #526f43; }
.field-tool-name { grid-column: 2; grid-row: 1; font-size: 13px; font-weight: 650; position: relative; z-index: 1; }
#tools-tabs button > small { grid-column: 2; grid-row: 2; font-size: 11px; color: #5e7062; position: relative; z-index: 1; }
#tools-tabs button.active > small { color: #526852; }
.field-tool-index { position: absolute; top: 9px; right: 11px; font: 11px/1 Consolas, monospace; color: #637267; opacity: .75; }
.field-pixels { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; opacity: 0; }
.field-interactive { position: relative; isolation: isolate; }
.field-spotlight { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; z-index: 4; opacity: 0; }
.field-spot-fill, .field-spot-rim { position: absolute; top: 0; left: 0; width: 360px; height: 360px; border-radius: 50%; pointer-events: none; }
.field-spot-fill { background: radial-gradient(circle, #a8cc7250 0, #bfd59820 36%, transparent 70%); opacity: .65; }
.field-spot-edge { position: absolute; inset: 0; padding: 1px; border-radius: inherit; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; }
.field-spot-rim { background: radial-gradient(circle, #9dbb64, transparent 68%); opacity: .9; }
.field-interactive:focus-within { outline-offset: 3px; }
.page:has(.field-hero) .asset-launcher { border-radius: 10px 2px 10px 2px; background: #f9fcf2; }
@media (min-width: 1101px) {
  .sidebar { width: 224px; }
  .page > .field-hero h1 { max-width: 720px; }
}
@media (max-width: 1200px) {
  .page > .field-hero { grid-template-columns: minmax(0, 1fr) 215px; gap: 20px; padding: 23px; }
  .field-diagram { left: -35px; }
  #tools-tabs > button { padding: 17px 13px; column-gap: 9px; }
  .field-tool-name { font-size: 12px; }
}
@media (min-width: 821px) and (max-width: 1100px) {
  /* The native title already names each compact navigation icon. The former
     off-canvas pseudo tooltip widened the scroll container even when faded. */
  .nav-item::after { content: none; }
}
@media (max-width: 820px) {
  .page > .field-hero { min-height: 176px; grid-template-columns: minmax(0, 1fr) 160px; padding: 21px; gap: 14px; margin-bottom: 22px; }
  #page-community > .field-hero { padding: 21px; }
  .field-art { min-height: 137px; }
  .field-diagram { left: -48px; opacity: .75; }
  .field-index { font-size: 40px; }
  .field-code { font-size: 11px; left: 12px; }
  .field-caption { left: 12px; font-size: 11px; }
  #page-planner > .field-hero { grid-template-columns: minmax(0, 1fr) 110px; min-height: 117px; }
  #page-planner > .field-hero .field-art { min-height: 108px; }
  #page-planner > .field-hero .field-diagram { left: -80px; opacity: .5; }
  #tools-tabs { gap: 9px; }
  #tools-tabs > button { min-height: 102px; grid-template-columns: 1fr; grid-template-rows: 31px 22px 20px; padding: 13px; }
  .field-tool-icon { width: 25px; height: 25px; grid-row: 1; }
  .field-tool-name { grid-column: 1; grid-row: 2; }
  #tools-tabs button > small { grid-column: 1; grid-row: 3; font-size: 11px; }
}
@media (max-width: 540px) {
  .page > .field-hero { min-height: 168px; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 22px 19px; border-radius: 10px 2px 10px 2px; }
  .page > .field-hero h1, #page-community > .field-hero h1 { font-size: 24px; max-width: none; margin: 10px 0; text-wrap: balance; }
  #page-community > .field-hero { padding: 22px 19px; }
  .page > .field-hero p { font-size: 12px; padding-right: 12px; }
  .page > .field-hero .eyebrow { font-size: 11px; }
  .field-hero > .field-art { display: none; }
  .field-hero > a.secondary { position: relative; right: auto; bottom: auto; justify-self: start; margin-top: 12px; font-size: 11px; }
  #page-planner > .field-hero { display: block; padding: 0 0 20px; min-height: 0; }
  #page-planner > .field-hero h1 { max-width: none; font-size: 24px; }
  #page-planner > .field-hero p { font-size: 12px; }
  #page-planner .real-banner.mission-stage { min-height: 417px; border-radius: 11px 2px 11px 2px; }
  #page-planner .mission-stage h2 { font-size: 28px; max-width: 275px; letter-spacing: 0; }
  #page-planner .mission-watermark { display: none; }
  #tools-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px 0; }
  #tools-tabs > button { min-height: 86px; padding: 15px 12px; grid-template-columns: 26px minmax(0, 1fr); grid-template-rows: 24px 18px; column-gap: 10px; }
  .field-tool-icon { grid-row: 1/3; width: 26px; height: 26px; }
  .field-tool-name { grid-column: 2; grid-row: 1; font-size: 12px; }
  #tools-tabs button > small { grid-column: 2; grid-row: 2; font-size: 11px; }
  .field-tool-index { font-size: 11px; right: 8px; top: 8px; }
}
/* REFINEMENT */
@media (prefers-reduced-motion: reduce) {
  .field-pixels, .field-spotlight { display: none; }
  #tools-tabs > button, .mission-map-list button { transition: none; }
}

/* Second pass: denser public information and a calmer, more legible library. */
.page > .field-hero { min-height: 176px; padding: 23px 26px; }
.page > .field-hero h1 { font-size: 28px; }
.field-art { min-height: 128px; }
.field-code { bottom: 24px; }
.field-caption { bottom: 10px; }
.page :is(.eyebrow, .gun-row-label, .archive-source) { color: #53674e; }
.page .field-hint, .page .archive-source, .page .community-count { color: #53674e; }
.page .music-conversion-note, .page .home-password-foot { color: #53674e; }
.mission-map-list { scroll-snap-type: x proximity; overscroll-behavior-inline: contain; }
.mission-map-list button { scroll-snap-align: center; }
.mission-map-list button:focus-visible { outline: 2px solid #e1f0b5; outline-offset: -3px; }
.nav-item:focus-visible { outline: 2px solid #c5df91; outline-offset: -3px; }
:is(.field-tool-name, .gun-featured-name, .gun-scheme-main h3 button, .gun-filter-chip, .gun-ranking-item, .gun-selected-chip, .text-button):focus-visible { outline: 2px solid #678648; outline-offset: 4px; border-radius: 2px; }
.field-tool-name { pointer-events: none; }
.gun-workflow { display: flex; align-items: center; gap: 0; list-style: none; margin: 23px 0 14px; padding: 0; }
.gun-workflow > li { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: #859278; }
.gun-workflow > li:not(:last-child)::after { content: ''; height: 1px; background: #d2ddc7; flex: 1; margin: 0 17px; }
.gun-workflow > li > span:first-child { font: 13px Consolas,monospace; color: #81966d; }
.gun-workflow strong { display: block; font-size: 12px; font-weight: 600; }
.gun-workflow small { display: block; font-size: 11px; margin-top: 3px; white-space: nowrap; }
.gun-workflow > li.is-current { color: #2c4b2c; }
.gun-workflow > li.is-current > span:first-child { display: grid; place-items: center; width: 28px; height: 28px; background: #e1eccf; border-radius: 50%; color: #476938; }
.gun-workflow > li.is-complete { color: #5e7d47; }
.gun-workflow > li.is-complete > span:first-child::after { content: ' ✓'; }
.gun-content-layout { grid-template-columns: minmax(0,1fr) 278px; gap: 24px; }
#page-community .community-filters { padding: 15px 17px; gap: 10px; border-color: #d5decc; }
#page-community .community-filters .field { font-size: 10px; }
#page-community .community-filters :is(input,select,.primary) { min-height: 39px; font-size: 11px; }
#page-community .community-filters .field input { font-size: 12px; }
#page-community .community-filters > .primary { padding: 9px 15px; }
.gun-browse-panel { position: sticky; top: 66px; z-index: 30; padding: 0 17px 13px; box-shadow: 0 8px 20px -20px #2b492f7d; backdrop-filter: blur(15px); background: #f9fcf5f5; }
.gun-browse-top { border-bottom-color: #d7e1cb; }
.gun-browse-tabs button { padding: 14px 0 11px; font-size: 12px; }
.gun-browse-intro { display: flex; align-items: baseline; gap: 11px; padding: 12px 0 9px; }
.gun-browse-intro strong { font-size: 11px; color: #425c36; font-weight: 650; }
.gun-browse-intro small { font-size: 9px; color: #788b68; }
.gun-browse-options { margin-top: 0; max-height: 80px; scrollbar-width: thin; scrollbar-color: #bfcca9 transparent; }
.gun-filter-chip { min-height: 35px; border-color: #d6e0ca; font-size: 11px; border-radius: 4px 1px 4px 1px; color: #4b6440; }
.gun-filter-chip.active { background: #e0eccf; border-color: #8eac6c; color: #2e4a29; box-shadow: inset 2px 0 #71924c; }
.gun-selected-chip { font-size: 10px; color: #416234; background: #e6eed9; border-color: #c5d5ae; border-radius: 3px; }
.gun-more-streamers { display: none; align-items: center; gap: 7px; min-height: 36px; margin-top: 9px; font-size: 11px; color: #526f40; cursor: pointer; }
.gun-more-streamers:not([hidden]) { display: flex; }
.gun-more-streamers input { accent-color: #65814a; }
.gun-more-streamers > span:last-child { margin-left: auto; font-size: 19px; color: #7b9660; }
.gun-content-main .gun-result-heading { margin-top: 15px; }
.gun-content-main .gun-result-heading h2 { font-size: 22px; letter-spacing: -.035em; }
.gun-content-main .community-count { font-size: 10px; margin: 11px 0; }
.gun-content-main .gun-overview-row { min-height: 140px; grid-template-columns: minmax(140px,1fr) minmax(145px,.9fr) 111px; gap: 12px 17px; padding: 15px 13px; margin-bottom: 8px; border: 1px solid #dbe3d1; background: #fbfcf8; }
.gun-content-main .gun-overview-row:nth-child(odd) { background: #fbfcf8; }
.gun-content-main .gun-weapon-cell { grid-column: 1; grid-row: 1 / 3; }
.gun-content-main .gun-row-picture { height: 85px; border: 0; background: radial-gradient(ellipse at 50% 50%,#e7eedc,transparent 77%); }
.gun-content-main .gun-weapon-cell strong { font-size: 14px; }
.gun-content-main .gun-coverage-cell { grid-column: 2; grid-row: 1; padding: 0; align-self: start; }
.gun-coverage-cell > strong { font-size: 20px; }
.gun-coverage-cell > span { font-size: 11px; }
.gun-content-main .gun-featured-cell { grid-column: 3; grid-row: 1; }
.gun-featured-name { font-size: 11px; text-align: left; line-height: 1.65; }
.gun-content-main .gun-overview-action { grid-column: 2 / 4; grid-row: 2; flex-direction: row; justify-content: space-between; align-items: center; border-top: 1px dashed #d7e0ca; padding-top: 10px; }
.gun-content-main .gun-overview-action .secondary { flex: 0 0 185px; justify-content: center; gap: 19px; border-color: #c9d8b7; border-radius: 5px 1px 5px 1px; color: #3e5d2e; }
.gun-overview-action > small { font-size: 9px; }
.gun-scheme-row { padding: 17px 15px; margin-bottom: 8px; border: 1px solid #dbe3d1; background: #fbfcf8; }
.gun-scheme-price strong { font-size: 24px; color: #315727; }
.gun-scheme-price > small { font-size: 11px; color: #6b7f58; }
.gun-row-actions > .primary { min-height: 39px; }
.gun-row-actions .text-button { min-height: 32px; padding: 5px; }
.gun-ranking { position: static; margin-top: 25px; border-radius: 8px 2px 8px 2px; }
.gun-ranking-heading { padding: 15px 17px 9px; }
.gun-ranking-heading h2 { font-size: 16px; }
.gun-ranking-heading > span { font-size: 23px; }
.gun-ranking ol { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 15px; padding: 9px 15px; }
.gun-ranking-item { padding: 12px 0; grid-template-columns: 22px 51px minmax(0,1fr) 31px; }
.gun-rank-image { height: 34px; }
.gun-ranking ol > li:first-child { background: transparent; }
.gun-ranking-tabs button { min-height: 36px; }
.gun-ranking-foot { padding: 12px 17px; }
.gun-content-main .community-pagination { margin: 18px 0; }
.gun-content-main .community-pagination button { min-height: 39px; }
.music-score-cards { max-height: 390px; overscroll-behavior: contain; }
.music-score-card { border-radius: 5px 1px 5px 1px; }
.music-score-card.active { background: #e3eed3; box-shadow: inset 3px 0 #668648; }
.music-score-toolbar .field select { font-size: 11px; }
.music-score-toolbar > .primary { min-height: 39px; }
#page-tools .tool-view { scroll-margin-top: 190px; }
#quick-nav-dialog { border-radius: 13px 3px 13px 3px; }
.quick-nav-option { min-height: 62px; }
.quick-nav-option[aria-selected="true"] { background: #e3eed3; border-color: #c4d6ae; }
@media (max-width: 1100px) {
  .gun-browse-panel { top: 62px; }
  .gun-content-main .gun-overview-row { grid-template-columns: minmax(0,1fr) minmax(125px,1fr); }
  .gun-content-main .gun-weapon-cell { grid-column: 1; grid-row: 1; }
  .gun-content-main .gun-coverage-cell { grid-column: 2; grid-row: 1; }
  .gun-content-main .gun-featured-cell { grid-column: 1; grid-row: 2; }
  .gun-content-main .gun-overview-action { grid-column: 2; grid-row: 2; flex-direction: column; align-items: stretch; border: 0; padding: 0; }
  .gun-content-main .gun-overview-action .secondary { flex: 0; }
}
@media (max-width: 820px) {
  .page > .field-hero { min-height: 156px; padding: 21px; }
  #tools-tabs { position: sticky; top: 132px; z-index: 31; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; margin: 18px -16px 22px; padding: 10px 16px; background: #f1f5e9f2; border-block: 1px solid #d8e2cd; box-shadow: 0 7px 17px -17px #29462e; backdrop-filter: blur(16px); }
  #tools-tabs > button { min-height: 59px; padding: 9px 5px; display: flex; justify-content: center; gap: 7px; border-radius: 5px; }
  .field-tool-icon { width: 21px; height: 21px; }
  .field-tool-name { font-size: 10px; white-space: nowrap; }
  #tools-tabs button > small, .field-tool-index { display: none; }
  .music-score-cards { max-height: 360px; }
  .music-console { scroll-margin-top: 200px; }
  .gun-content-main .gun-overview-row { padding: 13px; }
  .gun-ranking { margin-top: 20px; }
}
@media (max-width: 620px) {
  .page > .field-hero { min-height: 152px; }
  #page-planner > .field-hero { min-height: 0; }
  .gun-workflow { margin-top: 19px; }
  .gun-workflow > li { gap: 7px; }
  .gun-workflow > li:not(:last-child)::after { margin: 0 8px; }
  .gun-workflow strong { font-size: 11px; }
  .gun-workflow small { font-size: 11px; white-space: normal; line-height: 1.6; }
  .gun-workflow > li.is-current > span:first-child { flex: 0 0 24px; width: 24px; height: 24px; font-size: 10px; }
  .gun-browse-panel { top: 126px; padding: 0 12px 9px; }
  #page-community .gun-browse-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; margin-top: 7px; background: #e9efdf; padding: 3px; border-radius: 5px; }
  #page-community .gun-browse-tabs button { padding: 9px 5px; font-size: 11px; min-height: 37px; }
  .gun-browse-top { border: 0; }
  .gun-browse-top > .text-button { font-size: 10px; min-height: 37px; }
  .gun-browse-intro { padding: 10px 0 7px; }
  #community-source-tools[data-browse="streamer"] .gun-browse-options { display: flex; gap: 6px; overflow-x: auto; flex-wrap: nowrap; max-height: 68px; padding-bottom: 3px; }
  #community-source-tools[data-browse="streamer"] .gun-filter-chip { flex: 0 0 150px; min-height: 59px; }
  #community-source-tools[data-browse="streamer"]:has(.gun-more-streamers .is-expanded) .gun-browse-options { flex-wrap: wrap; max-height: 205px; overflow-y: auto; }
  #community-source-tools[data-browse="streamer"] .gun-more-streamers.is-expanded + .gun-browse-options { max-height: 205px; flex-wrap: wrap; overflow-y: auto; }
  .gun-more-streamers { margin-top: 5px; }
  .gun-content-main .gun-result-heading h2 { font-size: 20px; }
  .gun-content-main .gun-overview-row { grid-template-columns: minmax(0,1fr) 115px; gap: 11px; }
  .gun-content-main .gun-featured-cell { grid-column: 1; grid-row: 2; }
  .gun-content-main .gun-overview-action { grid-column: 2; grid-row: 2; }
  .gun-content-main .gun-row-picture { height: 76px; }
  .gun-content-main .gun-scheme-row { grid-template-columns: 85px minmax(0,1fr); }
  .gun-scheme-main h3 { font-size: 14px; }
  .gun-scheme-price strong { font-size: 23px; }
  .gun-row-actions > .primary { min-height: 42px; }
  .gun-ranking ol { display: flex; gap: 16px; padding: 10px 15px; overflow-x: auto; }
  .gun-ranking ol > li { flex: 0 0 245px; }
  .gun-ranking-item { padding: 10px 0; min-height: 68px; }
  .music-score-cards { max-height: 390px; }
  #page-tools .tool-view { scroll-margin-top: 194px; }
}
@media (prefers-reduced-motion: reduce) {
  #tools-tabs [data-tool], .gun-browse-panel { backdrop-filter: none; }
}

/* App-screen refinements: flatter surfaces, clearer type and a shorter phone shell. */
body { background-image: none; background-color: #f3f5f2; }
.brand-sub, .side-caption { color: #53674e; font-size: 11px; }
footer { color: #53674e; }
footer .icp-link { color: inherit; border-bottom: 1px solid currentColor; text-underline-offset: 3px; }
.page :where(small, .field-hint, .eyebrow, .gun-row-label, .gun-rank-streamer, .gun-streamer-choice > span, .build-tags span, .gun-overview-action > small, .gun-selected-chip, .gun-scheme-price > span, .gun-featured-intro, .gun-briefing-basis) {
  font-size: max(11px, min(12px, .78em));
}
#page-community .gun-workflow > li,
#page-community .gun-workflow > li > span:first-child,
#page-community .gun-browse-intro small,
#page-community .gun-overview-action > small,
#page-community .community-count {
  color: #53674e;
}
#page-community .gun-result-heading > span,
#page-community .archive-tab:not(.active),
#page-community .build-tags span {
  color: #53674e;
}
#page-community .gun-table-head,
#page-community .community-pagination .text-button,
#page-community .gun-ranking-foot summary,
#page-community .gun-browse-top > .text-button {
  color: #4c634b;
}
#page-community .gun-browse-intro small,
#page-community .gun-overview-action > small { font-size: 11px; }
#page-community .build-tags span { font-size: 11px; }
#page-community .gun-content-main .community-count { font-size: 12px; }
.primary { box-shadow: none; }
.gun-row-picture, .gun-content-main .gun-row-picture { background: #e7eedc; }
#page-community .gun-browse-panel { background: #f7f9f3; border: 1px solid #d8e1d2; box-shadow: none; backdrop-filter: none; }
#page-community .gun-ranking-heading .eyebrow { display: none; }
#page-community .hero-tag,
#page-community .gun-browse-tabs button,
#page-community .gun-coverage-cell > small,
#page-community .gun-row-label,
#page-community .gun-featured-intro { color: #53674e; }
#page-community .gun-workflow { color: #53674e; }
#page-community .gun-featured-name, #page-community .gun-browse-intro small { color: #53674e; }
#page-community .gun-browse-intro small { font-size: 11px; }
#page-community .community-count { font-size: 11px; color: #53674e; }
#page-community .community-filters .field { font-size: 11px; }
#page-community .gun-overview-action > small { font-size: 11px; }
#page-community .gun-browse-top > .text-button { font-size: 11px; }
#page-community .gun-ranking-foot { font-size: 11px; }
#page-community :is(.community-count, .community-section-note, .community-pagination, .gun-browse-intro, .gun-ranking-foot, .gun-selected-chip, .gun-scheme-price > small, .gun-scheme-price > span, .gun-row-author > span, .gun-rank-copy small, .gun-workflow) { color: #53674e; }
#page-community #community-search { box-shadow: none; }
#page-community :is(.archive-tab, .gun-browse-tabs button, .gun-filter-chip, .gun-ranking-tabs button, .community-actions button, .community-filters button) { box-shadow: none; }
#page-community .gun-workflow :is(strong, small, > span:first-child) { font-variant-numeric: tabular-nums; }
#page-community .gun-content-layout, #page-community .gun-content-layout * { font-variant-numeric: tabular-nums; }
.community-filter-fields { display: contents; }
.community-filter-toggle { display: none; }

@media (max-width: 1100px) {
  #page-community .gun-content-layout { grid-template-columns: minmax(0, 1fr); }
  #page-community .gun-content-main { order: 1; }
  #page-community .gun-ranking { order: 2; }
  #page-community .gun-workflow > li, #page-community .gun-workflow > li > span:nth-child(2) { min-width: 0; }
  #page-community .gun-workflow small { white-space: normal; line-height: 1.6; }
}

@media (max-width: 820px) {
  .sidebar nav { display: none; }
  .sidebar { padding-block: 10px; }
  #page-community .gun-browse-panel { top: 120px; }
  #community-search { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; padding: 12px; }
  #community-search > .field:first-child { grid-column: 1; grid-row: 1; min-width: 0; }
  #community-search > .primary { grid-column: 2; grid-row: 1; min-height: 44px; padding-inline: 13px; }
  #community-search .community-filter-toggle { display: flex; grid-column: 1 / -1; grid-row: 2; align-items: center; justify-content: space-between; width: 100%; min-height: 40px; padding: 8px 2px; border: 0; border-top: 1px solid #d8e1d2; background: transparent; color: #53674e; text-align: left; }
  #community-search .community-filter-toggle::after { content: '＋'; font-size: 17px; }
  #community-search .community-filter-toggle[aria-expanded="true"]::after { content: '−'; }
  #community-search .community-filter-fields { display: none; grid-column: 1 / -1; grid-row: 3; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #community-search .community-filter-fields.is-expanded { display: grid; }
  #community-search .community-filter-fields > .field { min-width: 0; }
  #community-source-tools:not([data-browse="streamer"]) .gun-browse-options { display: flex; flex-wrap: nowrap; max-height: none; gap: 6px; overflow-x: auto; overscroll-behavior-inline: contain; padding-bottom: 5px; }
  #community-source-tools:not([data-browse="streamer"]) .gun-filter-chip { flex: 0 0 auto; }
}

@media (max-width: 540px) {
  .topbar { height: 48px; }
  .quick-nav-trigger { min-width: 44px; min-height: 40px; justify-content: center; }
  #quick-nav-dialog { inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  #quick-nav-dialog::backdrop { backdrop-filter: none; }
  #page-community > .field-hero { min-height: 0; margin-bottom: 12px; padding: 13px 16px; }
  #page-community > .field-hero h1 { font-size: 23px; line-height: 1.35; margin: 6px 0; }
  #page-community > .field-hero p { font-size: 11px; line-height: 1.55; }
  #page-community .gun-workflow { display: none; }
  #page-community .gun-library-toolbar { gap: 8px; margin-bottom: 10px; }
  #page-community .gun-library-toolbar .archive-tab { min-height: 42px; padding: 9px 11px; }
  #page-community .gun-library-toolbar .community-actions button { min-height: 42px; }
  #page-community .gun-browse-tabs button { min-height: 44px; }
  #page-community .gun-filter-chip { min-height: 44px; padding-inline: 11px; }
  #community-search .community-filter-toggle { min-height: 44px; }
  #page-community .gun-browse-panel { top: 100px; padding: 0 12px 9px; }
}

.gun-mobile-browse-toggle { display: none; }
@media (max-width: 620px) {
  #page-community > .field-hero { min-height: 0; margin-bottom: 8px; padding: 10px 12px; grid-template-columns: minmax(0, 1fr); }
  #page-community > .field-hero .eyebrow,
  #page-community > .field-hero p { display: none; }
  #page-community > .field-hero h1 { margin: 0; font-size: 22px; line-height: 1.3; }
  #page-community .gun-library-toolbar { flex-wrap: nowrap; gap: 4px; margin-bottom: 6px; }
  #page-community .gun-library-toolbar .archive-tabs { width: auto; min-width: 0; flex: 1 1 auto; }
  #page-community .gun-library-toolbar .archive-tab { min-height: 40px; padding: 6px 5px; font-size: 11px; white-space: nowrap; }
  #page-community .gun-library-toolbar .community-actions { width: auto; flex: 0 0 auto; gap: 4px; margin: 0; }
  #page-community .gun-library-toolbar .community-actions button { flex: 0 0 auto; min-height: 40px; padding: 6px 8px; font-size: 11px; white-space: nowrap; }
  #page-community .gun-browse-intro { display: none; }
  #page-community .gun-browse-panel { padding-bottom: 6px; }
  #page-community .gun-mobile-browse-toggle { display: flex; width: 100%; min-height: 40px; align-items: center; justify-content: space-between; padding: 0 3px; border: 0; border-top: 1px solid #d8e1d2; background: transparent; color: #53674e; font-size: 12px; text-align: left; }
  #page-community .gun-mobile-browse-toggle span:last-child { color: #53674e; }
  #community-browse-options[hidden] { display: none !important; }
  #community-source-tools .gun-browse-options:not([hidden]) { max-height: 148px; overflow-x: hidden; overflow-y: auto; flex-wrap: wrap; }
  #community-search { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: 44px auto; align-items: center; gap: 7px; padding: 10px; }
  #community-search > .field:first-child { grid-column: 1; grid-row: 1; gap: 0; font-size: 0; }
  #community-search > .field:first-child input { min-height: 44px; padding-inline: 10px; font-size: 13px; }
  #community-search > .primary { grid-column: 2; grid-row: 1; width: auto; min-height: 44px; padding-inline: 12px; }
  #community-search .community-filter-toggle { grid-column: 3; grid-row: 1; width: auto; min-height: 44px; padding: 8px; border: 1px solid #d8e1d2; border-radius: 4px; }
  #community-search .community-filter-fields { grid-column: 1 / -1; grid-row: 2; }
  #page-community .gun-content-main .gun-result-heading { margin: 8px 0 4px; }
  #page-community .gun-content-main .community-count { line-height: 1.4; margin: 5px 0; }
}
@media (max-width: 360px) {
  #page-community > .field-hero h1 { font-size: 20px; }
  #page-community .gun-library-toolbar .archive-tab { font-size: 10px; }
  #page-community .gun-library-toolbar .community-actions button { padding-inline: 6px; font-size: 10px; }
  #community-search { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 44px 40px auto; }
  #community-search > .field:first-child { grid-column: 1 / -1; grid-row: 1; }
  #community-search > .primary { grid-column: 1; grid-row: 2; justify-self: start; min-height: 40px; }
  #community-search .community-filter-toggle { grid-column: 2; grid-row: 2; justify-self: end; min-height: 40px; }
  #community-search .community-filter-fields { grid-row: 3; }
}
