@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--sh-bg); color: var(--sh-text); font-family: 'Inter', system-ui, sans-serif; scroll-behavior: smooth; }
a { color: var(--sh-accent); text-decoration: none; }
a:hover { color: var(--sh-accent-hover); }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { overflow-wrap: break-word; }
[id] { scroll-margin-top: 76px; }
img, svg { max-width: 100%; }
.page { min-height: 100vh; display: flex; flex-direction: column; }
/* horizontal padding is set with longhand properties so section classes
   (which set vertical padding) can never clobber the gutters via shorthand */
.container { max-width: 1280px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.site-logo { filter: invert(1) brightness(2); opacity: 0.85; }
html[data-theme='light'] .site-logo { filter: none; opacity: 0.8; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--sh-topbar-bg); border-bottom: 1px solid var(--sh-topbar-border); }
/* direct child only — the mega menu nests its own .container inside the topbar */
.topbar > .container { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo-link { display: flex; align-items: center; }
.topbar .site-logo { height: 30px; width: auto; }
.topnav { display: flex; align-items: center; gap: 4px; }
.nav-link { color: var(--sh-sidebar-link); font-size: 0.9rem; font-weight: 500; padding: 6px 12px; border-radius: 5px; }
.nav-link:hover { color: var(--sh-sidebar-link-hover); background: var(--sh-sideabr-active-hover); }
.nav-link.active { color: var(--sh-sidebar-active-text); background: var(--sh-sidebar-active-bg); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.nav-status { display: inline-flex; align-items: center; gap: 7px; }
.nav-status .ext { font-size: 12px; color: var(--sh-text-muted); }

/* ---------- mega menus (one per nav section) ---------- */
.nav-item.has-mega { align-self: stretch; display: flex; align-items: center; }
.nav-caret { font-size: 14px; color: var(--sh-text-muted); transition: transform 150ms ease; }
.has-mega:hover .nav-caret, .has-mega:focus-within .nav-caret { transform: rotate(180deg); }
.has-mega > .nav-link { display: inline-flex; align-items: center; gap: 4px; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--sh-sidebar-bg);
        border-bottom: 1px solid var(--sh-border-strong); box-shadow: 0 18px 40px rgba(0,0,0,0.45);
        opacity: 0; visibility: hidden; transform: translateY(-6px);
        transition: opacity 140ms ease, transform 140ms ease, visibility 140ms; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-inner { max-width: 1280px; margin: 0 auto; padding: 30px 32px 34px; display: grid; grid-template-columns: 280px 1fr; gap: 44px; }
.mega-aside { display: flex; flex-direction: column; gap: 10px; padding-right: 44px; border-right: 1px solid var(--sh-border); }
.mega-kicker { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sh-accent); }
.mega-title { font-size: 1.1rem; font-weight: 600; color: var(--sh-text); }
.mega-aside p { font-size: 0.83rem; color: var(--sh-text-secondary); line-height: 1.55; flex: 1; }
.mega-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--sh-accent); }
.mega-cta iconify-icon { transition: transform 140ms ease; }
.mega-cta:hover iconify-icon { transform: translateX(3px); }
.mega-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 14px; align-content: start; }
.mega-items.cols-2 { grid-template-columns: repeat(2, 1fr); }
.mega-item { display: flex; align-items: flex-start; gap: 12px; padding: 11px 12px; border-radius: 8px; transition: background 120ms ease; }
.mega-item:hover { background: var(--sh-sideabr-active-hover); }
.mi-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--sh-accent-subtle); border: 1px solid rgba(233, 144, 20, 0.22); color: var(--sh-accent); display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.mi-text { display: flex; flex-direction: column; min-width: 0; }
.mi-title { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--sh-text); }
.mi-title .ext { font-size: 11px; color: var(--sh-text-muted); }
.mi-desc { font-size: 0.76rem; color: var(--sh-text-secondary); line-height: 1.45; margin-top: 2px; }

/* hamburger (hidden on desktop) */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 4px; width: 42px; height: 36px; padding: 0 10px; background: none; border: 1px solid var(--sh-border-strong); border-radius: 6px; cursor: pointer; flex: none; }
.nav-toggle span { display: block; height: 2px; border-radius: 1px; background: var(--sh-text); transition: transform 150ms ease, opacity 150ms ease; }
.topbar.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.topbar.open .nav-toggle span:nth-child(2) { opacity: 0; }
.topbar.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- sections & bands ---------- */
.section { padding-top: 72px; padding-bottom: 72px; }
.section-tight { padding-top: 64px; padding-bottom: 64px; }
.hero { padding-top: 84px; padding-bottom: 76px; }
.hero-band { background: var(--sh-bg-secondary); border-bottom: 1px solid var(--sh-border); }
.band { background: var(--sh-bg-secondary); border-top: 1px solid var(--sh-border); border-bottom: 1px solid var(--sh-border); }
.band-dark { background: var(--sh-sidebar-bg); }
.bt { border-top: 1px solid var(--sh-border); }

.section-head { max-width: 620px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.4rem, 2vw + 1rem, 1.75rem); font-weight: 600; margin-bottom: 10px; }
.section-head p { color: var(--sh-text-secondary); line-height: 1.6; text-wrap: pretty; }

/* ---------- typography helpers (fluid) ---------- */
.display { font-size: clamp(2rem, 4.5vw + 0.9rem, 3rem); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; text-wrap: pretty; }
.title { font-size: clamp(1.75rem, 3.2vw + 0.9rem, 2.5rem); font-weight: 700; letter-spacing: -0.02em; text-wrap: pretty; }
.heading-2 { font-size: clamp(1.4rem, 2vw + 1rem, 1.75rem); font-weight: 600; }
.sub { font-size: 1.05rem; color: var(--sh-text-secondary); line-height: 1.65; text-wrap: pretty; }
.body-copy { color: var(--sh-text-secondary); line-height: 1.65; text-wrap: pretty; }
.note { font-size: 0.85rem; color: var(--sh-text-muted); }
.footnote { font-size: 0.82rem; color: var(--sh-text-muted); margin-top: 20px; }

/* ---------- layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
/* grid/flex children default to min-width:auto and refuse to shrink — the root cause of most overflow */
.split > *, .plat > *, .gs-grid > *, .grid > *, .rows > * { min-width: 0; }
.split-hero { grid-template-columns: 1.15fr 0.85fr; }
.split-card { gap: 48px; padding: 40px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { gap: 14px; }
.grid { display: grid; gap: 16px; }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); align-items: stretch; }
.btn-row { display: flex; gap: 12px; margin-top: 8px; }
.btn-lg { padding: 10px 20px; font-size: 0.95rem; }

/* ---------- status dots ---------- */
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.dot-ok { background: var(--sh-success); box-shadow: 0 0 6px var(--sh-success); }
.dot-info { background: var(--sh-info); box-shadow: 0 0 6px var(--sh-info); }
.dot-warn { background: var(--sh-warning); box-shadow: 0 0 6px var(--sh-warning); }
.dot-danger { background: var(--sh-danger); box-shadow: 0 0 6px var(--sh-danger); }
.dot-muted { background: var(--sh-text-muted); box-shadow: 0 0 6px var(--sh-text-muted); }
.dot-accent { background: var(--sh-accent); }
.dot-silver { background: #9ca3af; }
.dot-plain { box-shadow: none; }
.dot-lg { width: 8px; height: 8px; }

/* ---------- pills (platform-style: status dot inside, like portal badges) ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 500; padding: 2px 9px; border-radius: 20px; white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill-ok { color: var(--sh-success); background: var(--sh-success-subtle); }
.pill-info { color: var(--sh-info); background: var(--sh-info-subtle); }
.pill-warn { color: var(--sh-warning); background: var(--sh-warning-subtle); }
.pill-danger { color: var(--sh-danger); background: var(--sh-danger-subtle); }
.pill-accent { color: var(--sh-accent); background: var(--sh-accent-subtle); }
.pill-silver { color: #9ca3af; background: rgba(156, 163, 175, 0.12); }

/* ---------- list rows ---------- */
.rows { display: flex; flex-direction: column; gap: 6px; }
.rows-loose { gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; background: var(--sh-bg); border: 1px solid var(--sh-border); border-radius: 5px; padding: 9px 13px; }
.row iconify-icon { font-size: 16px; color: var(--sh-text-secondary); flex: none; }
.row .name { flex: 1; min-width: 0; font-size: 0.84rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .meta { font-size: 0.72rem; color: var(--sh-text-muted); white-space: nowrap; }
.row .id { flex: 1; min-width: 0; }
.row .id .name { flex: none; }
.row .status { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; flex: none; }
.row .status .dot { width: 6px; height: 6px; }
.text-ok { color: var(--sh-success); }
.text-muted { color: var(--sh-text-muted); }
.row-click { cursor: pointer; }
.hover-border { transition: border-color 150ms ease; }
.hover-border:hover { border-color: var(--sh-accent); }

/* ---------- panels (card with label header) ---------- */
.panel { padding: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.panel-head .sh-label { margin: 0; }

/* ---------- feature / tile cards ---------- */
.feature > iconify-icon { font-size: 22px; color: var(--sh-accent); margin-bottom: 10px; }
.feature h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; }
.feature p { font-size: 0.85rem; line-height: 1.55; color: var(--sh-text-secondary); }
.step-num { font-size: 0.75rem; color: var(--sh-accent); margin-bottom: 10px; }
.tile { display: block; padding: 20px; color: var(--sh-text); }
.tile-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tile-head iconify-icon { font-size: 20px; color: var(--sh-accent); }
.tile-head span { font-weight: 600; font-size: 0.95rem; }
.tile p { font-size: 0.85rem; line-height: 1.55; color: var(--sh-text-secondary); }
.tile-head .tile-ext { margin-left: auto; font-size: 14px; color: var(--sh-text-muted); }

/* ---------- platform rack embeds (home hero, platform page) ----------
   Uses the real platform bezel components from design-system.css; these
   overrides just let the fixed-width rack flow inside marketing columns. */
.hero-rack .sh-rack, .panel .sh-rack { width: 100%; min-width: 0; }
.sh-bezel-led.replicating { background: var(--sh-info); box-shadow: 0 0 6px var(--sh-info); }
.panel .sh-rack { margin-top: 2px; }
.legend { display: flex; justify-content: center; gap: 18px; font-size: 0.75rem; color: var(--sh-text-secondary); }
.legend span { display: flex; align-items: center; gap: 6px; }
.badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 4px 12px; border: 1px solid var(--sh-border-strong); border-radius: 20px; font-size: 0.8rem; color: var(--sh-text-secondary); }
.trust { display: flex; gap: 24px; margin-top: 12px; font-size: 0.8rem; color: var(--sh-text-muted); }

/* ---------- platform sections ---------- */
.plat { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 48px 0; border-bottom: 1px solid var(--sh-border); }
.plat:last-child { border-bottom: none; }
.plat-text { display: flex; flex-direction: column; gap: 12px; }
.plat.mock-left .plat-text { order: 2; }
.plat.mock-left .sh-card { order: 1; }
.plat-label { display: flex; align-items: center; gap: 10px; }
.plat-label iconify-icon { font-size: 20px; color: var(--sh-accent); }
.plat-label .sh-label { margin: 0; }
.plat h2 { font-size: clamp(1.3rem, 1.6vw + 0.9rem, 1.6rem); font-weight: 600; }
.points { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.points li { display: flex; gap: 10px; align-items: baseline; font-size: 0.88rem; color: var(--sh-text-secondary); }
.points li::before { content: '·'; color: var(--sh-accent); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.toc-pill { font-size: 0.82rem; font-weight: 500; color: var(--sh-text-secondary); border: 1px solid var(--sh-border-strong); border-radius: 20px; padding: 5px 14px; }
.toc-pill:hover { color: var(--sh-accent); border-color: var(--sh-accent); }

/* ---------- MSP partner-portal mock (home, for-msps) ---------- */
.msp-stats .sh-stat { padding: 14px 16px; }
.msp-stats .sh-stat-value { font-size: 1.4rem; }
.msp-stats .sh-stat-sub { font-size: 0.75rem; }
.cust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cust-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 9px; }
.cust-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cust-head .name { font-size: 0.92rem; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cust-sub { font-size: 0.78rem; color: var(--sh-text-secondary); }
.cust-stats { display: flex; gap: 26px; margin-top: 2px; }
.cust-stat .lbl { display: block; font-size: 0.62rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--sh-text-muted); }
.cust-stat .val { font-size: 1.05rem; font-weight: 700; }
.cust-foot { border-top: 1px solid var(--sh-border); padding-top: 9px; margin-top: 2px; font-size: 0.74rem; color: var(--sh-text-muted); }
/* nested inside a split-card: drop to page background for contrast */
.split-card .msp-stats, .split-card .cust-card { background: var(--sh-bg); }

/* ---------- tiers (for-msps) ---------- */
.tier { display: flex; flex-direction: column; gap: 10px; }
.tier-head { display: flex; align-items: center; gap: 8px; }
.tier-head h3 { font-size: 0.95rem; font-weight: 600; }
.tier-featured { border-color: var(--sh-accent); }
.perks { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; margin-top: 2px; }
.perks li { display: flex; gap: 8px; align-items: baseline; font-size: 0.8rem; line-height: 1.45; color: var(--sh-text-secondary); }
.perks li::before { content: '·'; color: var(--sh-accent); }

/* ---------- white-label login mock (for-msps) ---------- */
.mock-login-wrap { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.mock-login { width: 100%; max-width: 380px; background: #141414; border: 1px solid var(--sh-border-strong); border-radius: 12px; padding: 32px 28px; box-shadow: var(--sh-shadow-lg); display: flex; flex-direction: column; gap: 14px; box-sizing: border-box; }
.mock-login .brand { text-align: center; margin-bottom: 6px; }
.mock-login .brand-name { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.08em; color: rgba(255,255,255,0.92); }
.mock-login .brand-sub { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-top: 4px; }
.mock-login .field { height: 36px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10); border-radius: 5px; display: flex; align-items: center; padding: 0 12px; font-size: 0.8rem; color: rgba(255,255,255,0.25); }
.mock-login .submit { height: 36px; background: var(--sh-info); border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 600; color: #fff; }
.mock-caption { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--sh-text-muted); }

/* ---------- get started ---------- */
.gs-grid { display: grid; grid-template-columns: 1fr 520px; gap: 72px; align-items: start; }
.how { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.how-step { display: flex; gap: 14px; align-items: baseline; }
.how-step .num { font-size: 0.78rem; color: var(--sh-accent); min-width: 22px; }
.how-step h3 { font-weight: 600; font-size: 0.92rem; }
.how-step p { font-size: 0.85rem; color: var(--sh-text-secondary); line-height: 1.55; }
.finder { padding: 24px; }
.finder h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }
.finder > p { font-size: 0.85rem; color: var(--sh-text-secondary); margin-bottom: 16px; }
.finder .sh-select { margin-bottom: 16px; }
.partner-card { background: var(--sh-bg); border: 1px solid var(--sh-border); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.partner-top { display: flex; align-items: center; gap: 10px; }
.partner-top .name { flex: 1; font-size: 0.92rem; font-weight: 600; }
.partner-top a.name { color: var(--sh-text); }
.partner-top a.name:hover { color: var(--sh-accent); }
.partner-meta { display: flex; align-items: center; gap: 14px; }
.partner-loc { display: flex; align-items: center; gap: 5px; font-size: 0.78rem; color: var(--sh-text-secondary); }
.partner-loc iconify-icon { font-size: 14px; }
.partner-scope { font-size: 0.72rem; color: var(--sh-text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.partner-meta .sh-btn { margin-left: auto; }

/* ---------- partner inquiry (for-msps) ---------- */
.apply-grid { grid-template-columns: 1fr 520px; align-items: start; }
.apply-card { padding: 24px; }
.apply-card h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }
.apply-card > p { font-size: 0.85rem; color: var(--sh-text-secondary); margin-bottom: 16px; }
.apply-card .opt { font-weight: 400; color: var(--sh-text-muted); }
.apply-card textarea.sh-input { resize: vertical; min-height: 84px; line-height: 1.5; }
.apply-submit { width: 100%; justify-content: center; margin-top: 4px; }
.apply-note { margin-top: 10px; text-align: center; }
#pf-error { margin-bottom: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apply-done { text-align: center; padding: 40px 12px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.apply-done iconify-icon { font-size: 40px; color: var(--sh-success); }
.apply-done h2 { margin: 0; }
.apply-done p { font-size: 0.88rem; color: var(--sh-text-secondary); max-width: 34ch; margin: 0; }

/* ---------- CTA & footer ---------- */
.cta { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.cta h2 { font-size: clamp(1.45rem, 2.4vw + 0.9rem, 1.9rem); font-weight: 600; }
.cta p { max-width: 52ch; line-height: 1.6; color: var(--sh-text-secondary); text-wrap: pretty; }
.footer { background: var(--sh-sidebar-bg); border-top: 1px solid var(--sh-sidebar-border); margin-top: auto; }
.footer .container { padding-top: 28px; padding-bottom: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer .site-logo { height: 24px; width: auto; }
.footer nav { display: flex; gap: 20px; font-size: 0.82rem; }
.foot-link { color: var(--sh-sidebar-link); }
.foot-link:hover { color: var(--sh-sidebar-link-hover); }
.copyright { font-size: 0.78rem; color: var(--sh-text-muted); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .split, .split-hero, .plat, .gs-grid, .apply-grid { grid-template-columns: 1fr; gap: 36px; }
  .split-card { padding: 24px; }
  .plat { padding: 40px 0; }
  .plat.mock-left .plat-text { order: 1; }
  .plat.mock-left .sh-card { order: 2; }
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 56px; padding-bottom: 56px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .section-tight { padding-top: 48px; padding-bottom: 48px; }
  .footer .container { flex-direction: column; gap: 14px; }
  .footer nav { flex-wrap: wrap; justify-content: center; }
  .btn-row, .trust, .legend { flex-wrap: wrap; }
}

/* mobile navigation: collapse to hamburger */
@media (max-width: 860px) {
  .topbar > .container { height: auto; min-height: 56px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .nav-toggle { display: flex; }
  .topnav, .topbar-actions { display: none; }
  .topbar.open .topnav { display: flex; flex-direction: column; align-items: stretch; order: 3; width: 100%; gap: 2px; padding: 10px 0 6px; border-top: 1px solid var(--sh-border); margin-top: 10px; }
  .topbar.open .nav-link { display: block; padding: 11px 12px; font-size: 1rem; }
  .nav-item.has-mega { display: block; align-self: auto; }
  .mega { display: none; }
  .nav-caret { display: none; }
  .topbar.open .topbar-actions { display: flex; order: 4; width: 100%; gap: 10px; padding: 6px 0 8px; }
  .topbar.open .topbar-actions .sh-btn { flex: 1; justify-content: center; }
}

@media (max-width: 640px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .hero, .section, .section-tight { padding-top: 44px; padding-bottom: 44px; }
  .split, .plat, .gs-grid, .apply-grid { gap: 28px; }
  .split-card { padding: 20px; }
  .finder, .apply-card { padding: 18px; }
  .mock-login { padding: 24px 20px; }
  .row .meta { display: none; }
  .partner-meta { flex-wrap: wrap; row-gap: 8px; }
  .trust { gap: 8px 20px; }
  .legend { gap: 10px 14px; }
  .cust-grid { grid-template-columns: 1fr; }
  .msp-stats { flex-wrap: wrap; }
  .msp-stats .sh-stat { min-width: 45%; }
  .sh-bezel-specs { overflow: hidden; text-overflow: ellipsis; }
}

@media (max-width: 480px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .sh-bezel-vents { display: none; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .sh-btn { justify-content: center; text-align: center; }
  .panel { padding: 14px; }
  .row { padding: 9px 10px; gap: 8px; }
  .pill { padding: 2px 7px; }
  .toc { gap: 6px; }
  .toc-pill { padding: 4px 11px; font-size: 0.78rem; }
}
