/* The WRAPPER must be the sticky element: #sh-bar lives inside the
   63px #site-header div, and a sticky child can never leave its
   parent — the bar scrolled away with it (Sammy 2026-09-04, 'the
   sidebar is moving'). Sticking the wrapper fixes every page. */
#site-header{position:sticky;top:0;z-index:60}
#sh-bar{position:sticky;top:0;z-index:60;backdrop-filter:blur(18px);  background:var(--bg-glass);border-bottom:1px solid var(--line);  font-family:var(--font-body,Inter,sans-serif);line-height:1.5}#sh-in{max-width:1600px;margin:0 auto;padding:0 24px;display:flex;  align-items:center;gap:10px;height:62px}#sh-in .sh-logo{display:flex;align-items:center;gap:9px;flex:0 0 auto}#sh-in .sh-logo img{height:48px;width:auto;display:block}#sh-sp{flex:1}.sh-link{font-size:13px;color:var(--tx2);font-weight:500;padding:8px 11px;  border-radius:9px;text-decoration:none;white-space:nowrap;  transition:background .14s,color .14s}.sh-link:hover{background:var(--surf2);color:var(--tx)}.sh-link.on{color:var(--tx);background:var(--surf2)}#sh-auth{position:relative;flex:0 0 auto;min-width:172px;display:inline-flex;justify-content:flex-end;align-items:center}.sh-acct{display:inline-flex;align-items:center;gap:8px;background:transparent;  border:1px solid var(--line2);border-radius:99px;padding:4px 11px 4px 4px;  color:var(--tx);font:inherit;font-size:13px;cursor:pointer;  transition:background .14s}.sh-acct:hover{background:var(--surf2)}.sh-av{width:26px;height:26px;border-radius:50%;object-fit:cover;display:block;  background:var(--line2)}.sh-av.fb{display:flex;align-items:center;justify-content:center;font-size:12px;  font-weight:700;color:var(--tx)}.sh-name{max-width:11ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sh-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:210px;  background:var(--surf2);border:1px solid var(--line2);border-radius:12px;padding:6px;  box-shadow:0 12px 34px var(--shade);z-index:70}.sh-menu .sh-sep{margin:4px -6px}.sh-av,.sh-chev{flex:none}.sh-item .ic{flex:none}.sh-item .ic,.sh-chev{vertical-align:-.2em}.sh-chev{transition:transform .16s}.sh-acct[aria-expanded="true"] .sh-chev{transform:rotate(180deg)}.sh-acct.on{background:var(--surf2)}.sh-acct[aria-expanded="true"]{background:var(--surf2)}
/* THE nav item. The header dropdown and the /account sidebar are one component
   (static/js/site-header.js nav()); this is its one row style: 14px, radius 10,
   live's 15px icon at .85, a 40px touch target, a hairline between groups. Colours
   come from the page's tokens; the fallback is the member pages' value, for
   the pages that declare none (the menu audit, MN-06). */
.sh-item{display:flex;align-items:center;gap:10px;min-height:40px;padding:9px 12px;border-radius:10px;font-size:14px;font-weight:400;line-height:1.4;color:var(--tx2);text-decoration:none;transition:background .13s,color .13s}
.sh-item svg{width:15px;height:15px;flex:none;opacity:.85}
.sh-item:hover{background:var(--sh-hov);color:var(--tx)}
.sh-item.on{background:var(--sh-on);color:var(--tx);font-weight:600}
.sh-sep{height:1px;background:var(--line);margin:4px 0}
.sh-menu{--sh-hov:var(--line);--sh-on:var(--line)}
nav.sh-side{display:flex;flex-direction:column;gap:2px;--sh-hov:var(--surf);--sh-on:var(--surf2)}
@media (max-width:820px){
  nav.sh-side{flex-direction:row;flex-wrap:wrap;gap:6px}
  nav.sh-side .sh-sep{display:none}
  nav.sh-side .sh-item{white-space:nowrap;padding:8px 12px}
}
.sh-flag{width:18px;height:13px;border-radius:2.5px;vertical-align:-2px;margin-right:6px;flex:none;box-shadow:0 0 0 1px rgba(255,255,255,.2)}.sh-lang{display:inline-flex;align-items:center}.sh-steam{background:transparent;border:1px solid var(--line);color:var(--tx);border-radius:8px;padding:6px 11px;  display:inline-flex;align-items:center}.sh-steam:hover{background:var(--surf2);color:var(--tx)}.sh-long{white-space:pre}#sh-bar a:focus-visible,#sh-bar button:focus-visible{outline:2px solid var(--accent);  outline-offset:2px}@media (min-width:1240px){#sh-in{max-width:1600px;padding:0 24px}}@media (max-width:720px){  #sh-in{gap:4px;padding:0 12px;height:56px}  #sh-in .sh-logo img{height:30px}  .sh-link{padding:7px 8px;font-size:12px}
  #sh-auth{min-width:150px}  .sh-hideable{display:none}  .sh-name{max-width:7ch}}@media (max-width:600px){  #sh-in{min-width:0}  #sh-in .sh-logo img{height:24px;max-width:116px;width:auto}  #sh-auth{flex:0 1 auto;min-width:0}  .sh-acct{min-width:0;max-width:38vw;padding-right:8px}  .sh-name{max-width:none;min-width:0;overflow:hidden;text-overflow:ellipsis;    white-space:nowrap}  .sh-link{padding:6px 7px;font-size:12px;min-height:40px;align-items:center}
  .sh-link:not(.sh-hideable){display:inline-flex}
  .sh-logo{min-height:40px;display:inline-flex;align-items:center}  .sh-long{display:none}}
/* 721-1040px (tablets, small laptops): the full bar needed 958px (EN) and
   1006px (ID) — the 363px logo is most of it — and every page scrolled
   sideways (measured on live main, 2026-10-01). The logo steps down to
   32px, the sign-in label drops " with Steam", the gaps tighten and the
   Telegram help link hides (it is in the footer); Guide and Track Order stay. */
@media (min-width:721px) and (max-width:1040px){
  #sh-in .sh-logo img{height:32px}
  #sh-in{gap:6px}
  .sh-help,.sh-long{display:none}
}
/* Under 400px the bar carries Track Order, sign-in and the language (Guide
   hides — the FAQ sends people to Track Order): the flag goes (the code
   stays), the gaps tighten and the logo steps down, proportions kept.
   Measured: 343px needed in 312 at 360 before; fits with room after. */
@media (max-width:400px){
  .sh-flag{display:none}
  #sh-in{gap:2px}
  #sh-in .sh-logo img{max-width:104px;object-fit:contain;object-position:left center}}
/* THE container. Header, footer and any full-width band share this one rule.
   Four times in one session the header and footer widths drifted apart,
   because the number lived in three files — Sammy: "i already ask you many
   times". Nothing else may declare a max-width for a page-spanning band:
   tools/style_audit.py fails if app/partials.py grows one back. */
#sh-in,.sf-grid,.sf-bot,.sh-ops-in{max-width:1600px;margin-left:auto;margin-right:auto;
  padding-left:24px;padding-right:24px}
/* Operations notice: L0.6 status tint, L0.7 reading face, L0.8 left axis,
   L0.11 existing palette/type tokens. A normal-flow sibling below the header. */
.sh-operations{background:var(--amb-g);border-bottom:1px solid var(--amb-line);color:var(--amb-tx);
  font-family:var(--font-body);font-size:var(--fs-sm);line-height:var(--lh-ui);text-align:left}
.sh-operations[hidden]{display:none}
.sh-ops-in{padding-top:12px;padding-bottom:12px}
.sh-ops-title{display:block;font-family:var(--font-body);font-size:var(--fs-md);font-weight:600}
.sh-ops-body{margin:4px 0 0;color:var(--tx);font-size:var(--fs-sm)}
/* PLAN-44: unread dot on the account avatar (shown while the Inbox has unread items).
   The brand colour, 8px, with a 2px ring in the header's own background so it reads on the avatar. */
.sh-acct{position:relative}
.sh-dot{position:absolute;top:1px;left:21px;width:8px;height:8px;box-sizing:content-box;border-radius:50%;
  background:var(--gold);border:2px solid var(--bg);pointer-events:none}
/* The bonus chip (owner 2026-10-29, option F, DECIDED 2): a small pill in the brand's reward
   colour, between the name and the chevron, while a bonus is waiting with no bound Telegram
   chat. It never shrinks -- only .sh-name does (MN-18) -- and reuses the existing reward tokens
   (wash, border, text): no new colour, no new hex. */
.sh-chip{flex:none;background:var(--gold-g);border:1px solid var(--gold-line);color:var(--gold);
  border-radius:999px;font-size:10px;font-weight:700;line-height:1;padding:3px 7px;white-space:nowrap}

/* The dropdown's bonus notice card (DECIDED 3): the FIRST child of the open menu, never of the
   /account sidebar. Same reward tokens as the chip above for the 1px border + faint wash;
   radius matches the menu rows (.sh-item is radius 10). Line 1 is --tx, 13px/600, must not wrap
   (width 210 - the menu's own padding leaves enough room); line 2 is the Telegram glyph plus an
   --accent link (L0.5: no underline at rest, underline on hover/keyboard focus). Inline flow, not
   flex, for line 2: with only two flex children, flex-wrap sends the whole text span to its own
   line the moment it does not fit, orphaning the glyph alone above it (lead's review, 2026-10-29
   screenshots). Inline keeps the glyph and the first words of the text on one line, like any
   icon-leading paragraph, and only the overflow words wrap underneath. */
.sh-bonuscard{display:flex;flex-direction:column;gap:4px;width:100%;appearance:none;
  text-align:left;background:var(--gold-g);border:1px solid var(--gold-line);border-radius:10px;
  padding:10px 12px;margin-bottom:6px;font:inherit;color:inherit;cursor:pointer}
.sh-bc-l1{font-size:13px;font-weight:600;color:var(--tx);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sh-bc-l2{font-size:12px;line-height:1.3;color:var(--accent);text-decoration:none}
.sh-bc-l2 svg{display:inline-block;flex:none;width:14px;height:14px;vertical-align:-2px;margin-right:6px}
.sh-bonuscard:hover .sh-bc-l2,.sh-bonuscard:focus-visible .sh-bc-l2{text-decoration:underline}

/* The chip adds ~54px (text + padding + border + the row's own gap) to the account button, right
   at the two spots the bar's px budget was already measured to the pixel (the 721-1040px tablet
   drop and the sub-400px clamp, comments above): hidden there, same as .sh-help/.sh-long/.sh-flag
   in those same two blocks -- the dropdown's card still carries the full notice once opened. */
@media (min-width:721px) and (max-width:1040px){.sh-chip{display:none}}
@media (max-width:400px){.sh-chip{display:none}}
/* D1 fallback (lead's decision, 2026-10-29): at exactly the two widths above where .sh-chip is
   hidden, nothing replaced the bonus signal -- a phone buyer (most buyers, measured) got no
   notice until they opened the menu. .sh-dot-bonus reuses the existing unread dot's own shape
   and reward-token colour (same .sh-dot rule above, no new hex): JS only creates this element
   while a bonus is waiting AND there is no unread dot already (never two dots -- see
   site-header.js paintDot), so it is CSS-driven: hidden by default, shown only inside the same
   two media queries that hide
   the chip, and a resize needs no JS. Where the chip is visible the dot stays inbox-unread only. */
.sh-dot-bonus{display:none}
@media (min-width:721px) and (max-width:1040px){.sh-dot-bonus{display:block}}
@media (max-width:400px){.sh-dot-bonus{display:block}}
