@font-face { font-family: "ROG"; src: local("ROG Fonts"), local("ROGFonts-Regular"), url("/fonts/ROGFonts.woff2") format("woff2"), url("/fonts/ROGFonts.otf") format("opentype"); font-display: swap; }

:root {
  --bg: #08080a; --panel: #121215; --panel2: #1a1a1f; --line: #2b2b31; --grey: #8d8d96; --dim: #55555d; --white: #f5f5f6;
  --red: #ff0029; --l0: #3a3a41; --l1: #22c55e; --l2: #facc15; --l3: #ff1f3d; --l4: #9a0014;
  --rog: "ROG", "Tektur", "Roboto Condensed", system-ui, sans-serif;
  --txt: "Roboto Condensed", system-ui, "Segoe UI", sans-serif;
  --cut: 16px;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--white); font: 15px/1.35 var(--txt); min-height: 100vh;
  background-image: repeating-linear-gradient(115deg, transparent 0 46px, rgba(255,255,255,.018) 46px 47px);
  padding-bottom: env(safe-area-inset-bottom);
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
.lv0 { --sev: var(--l0); } .lv1 { --sev: var(--l1); } .lv2 { --sev: var(--l2); } .lv3 { --sev: var(--l3); } .lv4 { --sev: var(--l4); }

/* ---------- header */
.top { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px;
  padding: 20px 16px; background: rgba(8,8,10,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 180px; height: 3px; background: var(--red); clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.brand { display: flex; align-items: center; gap: 10px; flex: 1 1 0; } /* grows into free space; the tools wrap to a second row only when the title cannot fit beside them */
.logo { height: 44px; width: auto; }
.wm-text { display: flex; flex-direction: column; gap: 3px; }
.wm-text small { font-size: 11px; font-weight: 700; letter-spacing: .22em; color: var(--red); line-height: 1.25; }
.logo + .wordmark b { display: none; }
.wordmark { display: flex; align-items: center; gap: 9px; font-family: var(--rog); letter-spacing: .08em; }
.wordmark b { font-size: 22px; font-weight: 900; color: var(--red); }
.wordmark i { width: 5px; height: 40px; background: var(--white); transform: skewX(-22deg); box-shadow: 10px 0 0 var(--red); margin-right: 12px; flex: none; }
.wordmark span { font-size: 26px; font-weight: 700; line-height: 1.05; }
.tools { display: flex; align-items: center; gap: 6px; flex: none; margin-left: auto; }
.live { display: flex; align-items: center; gap: 6px; color: var(--grey); font-size: 12px; margin-right: 4px; white-space: nowrap; }
.live i { width: 8px; height: 8px; background: var(--l1); transform: skewX(-22deg); animation: blink 2s infinite; }
.live.off i { background: var(--dim); animation: none; }
.icon-btn { position: relative; width: 38px; height: 38px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.icon-btn:hover { background: var(--panel2); color: var(--red); }
.icon-btn[hidden], .live[hidden] { display: none; }

/* ---------- team log in */
.login-btn { height: 38px; padding: 0 18px; background: var(--red); color: #fff; font-family: var(--rog); font-size: 12px; font-weight: 700; letter-spacing: .12em; white-space: nowrap;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.login-btn:hover { filter: brightness(1.2); }
.login-btn.in { background: var(--panel); border: 1px solid var(--line); color: var(--grey); }
.login-btn.in:hover { color: var(--white); }
.login-btn.big { height: 48px; padding: 0 34px; font-size: 15px; margin-top: 18px; }
.login-btn[hidden] { display: none; }
.locked .soon-icon svg { color: var(--red); }
dialog.login { margin: auto; padding: 0; border: 0; background: transparent; overflow: visible; max-width: none; max-height: none; }
dialog.login::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(3px); }
.lg { position: relative; display: flex; flex-direction: column; gap: 14px; width: min(400px, calc(100vw - 32px)); height: 330px; padding: 46px 30px 26px; overflow: hidden;
  background: var(--panel); border-top: 4px solid var(--red); color: var(--white);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px)); }
.lg-label { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--rog); font-weight: 700; font-size: 26px; letter-spacing: .14em; color: #fff; opacity: 0; pointer-events: none; }
.lg-f { display: block; }
.lg-f span { display: block; margin-bottom: 5px; font-family: var(--rog); font-size: 11px; letter-spacing: .14em; color: var(--grey); }
.lg-f input { width: 100%; height: 44px; padding: 0 14px; background: #0b0b0d; border: 1px solid var(--line); border-left: 4px solid var(--red); color: var(--white); font: inherit; font-size: 16px; outline: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); }
.lg-f .lg-pw { position: relative; display: block; margin: 0; min-height: 0; }
.lg-pw input { padding-right: 48px; }
.lg-eye { position: absolute; top: 0; right: 0; width: 46px; height: 44px; display: grid; place-items: center; color: var(--grey); }
.lg-eye:hover, .lg-eye.on { color: var(--white); }
.lg-eye svg { width: 20px; height: 20px; }
.lg-f input:focus { border-color: var(--red); background: #121216; }
.lg-err { min-height: 18px; margin: -4px 0 0; color: #ff5c70; font-size: 13px; }
.lg-go { margin-top: auto; height: 44px; background: var(--red); color: #fff; font-family: var(--rog); font-size: 14px; font-weight: 700; letter-spacing: .14em;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.lg-go:hover { filter: brightness(1.2); }
.lg-x { position: absolute; top: 8px; right: 30px; width: 30px; height: 30px; color: var(--grey); font-size: 22px; line-height: 1; }
.lg-x:hover { color: var(--white); }
/* the button grows into the panel, its label fades, then the two boxes and the Enter button arrive in turn */
.lg.play { animation: lgGrow .2s cubic-bezier(.2, .8, .2, 1) backwards; }
.lg.play .lg-label { animation: lgLabel .2s ease-out backwards; }
/* steps s1 / s2 / s3 are added by the script as each label finishes unscrambling */
.lg .f1, .lg .f2, .lg .lg-go, .lg .lg-x { opacity: 0; transform: translateY(12px); transition: opacity .17s ease-out, transform .17s ease-out; }
.lg.s1 .f1, .lg.s1 .lg-x, .lg.s2 .f2, .lg.s3 .lg-go { opacity: 1; transform: none; }
.lg .lg-go { transition-duration: .3s; }
.lg-f span { min-height: 14px; white-space: nowrap; }
.lg.shake { animation: lgShake .35s; }
@keyframes lgGrow { from { width: 130px; height: 40px; padding: 0; background: var(--red); border-top-color: var(--red); clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); } }
@keyframes lgLabel { 0% { opacity: 1; font-size: 13px; } 45% { opacity: 1; } 100% { opacity: 0; font-size: 26px; } }
@keyframes lgShake { 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
/* ---------- settings (admin): same panel, labels and buttons as the log in */
.lg.ad { height: auto; min-height: 330px; max-height: calc(100vh - 32px); }
.lg.ad.wide { width: min(720px, calc(100vw - 32px)); }
.lg.ad.play { animation-name: adGrow; }
@keyframes adGrow { from { width: 130px; min-height: 40px; max-height: 40px; padding: 0; background: var(--red); border-top-color: var(--red); clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); } }
.ad .st { opacity: 0; transform: translateY(12px); transition: opacity .17s ease-out, transform .17s ease-out; }
.ad .st.in { opacity: 1; transform: none; }
.ad-form { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.ad-title { min-height: 20px; font-family: var(--rog); font-size: 16px; letter-spacing: .14em; color: var(--white); white-space: nowrap; }
.ad-head { display: flex; align-items: center; gap: 10px; margin-top: -22px; padding-right: 40px; }
.ad-back { width: 34px; height: 34px; display: grid; place-items: center; color: var(--grey); background: #0b0b0d; border: 1px solid var(--line); flex: none;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.ad-back:hover { color: var(--white); border-color: var(--red); }
.ad-body { display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.ad-note { color: var(--grey); font-size: 13px; line-height: 1.45; }
.ad-note b { color: var(--white); }
.ad .lg-err.ok { color: var(--l1); }
.ad .lg-err { margin: 0; overflow-wrap: anywhere; }
.ad .lg-go { flex: none; min-height: 44px; padding: 0 22px; }
.ad .lg-go.ghost { background: var(--panel2); color: var(--grey); }
.ad-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.ad input, .ad select, .ad textarea { background: #0b0b0d; border: 1px solid var(--line); border-left: 4px solid var(--red); color: var(--white); font: inherit; font-size: 15px; outline: none; min-width: 0; }
.ad input:focus, .ad select:focus, .ad textarea:focus { border-color: var(--red); background: #121216; }
.ad .pin { font-family: var(--rog); font-size: 26px; letter-spacing: .5em; text-align: center; padding-left: .5em; }
.ad-menu { display: grid; gap: 8px; }
.ad-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 14px; background: #0b0b0d; border: 1px solid var(--line); border-left: 4px solid var(--red); color: var(--white); text-align: left; cursor: pointer; flex: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); }
.ad-item:hover, .ad-item:focus-visible { background: #17171c; border-color: var(--red); outline: none; }
.ad-item span { flex: 1; min-height: 14px; font-family: var(--rog); font-size: 12px; letter-spacing: .14em; white-space: nowrap; }
.ad-item svg { width: 18px; height: 18px; color: var(--grey); }
.ad-item svg:first-child { color: var(--red); }
.ad-item.add { border-style: dashed; border-left-style: solid; color: var(--grey); }
.ad-btn { height: 38px; padding: 0 16px; background: var(--red); color: #fff; font-family: var(--rog); font-size: 11px; font-weight: 700; letter-spacing: .12em;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.ad-btn:hover { filter: brightness(1.2); }
.ad-sel { display: flex; align-items: center; gap: 12px; }
.ad-sel span, .an-period, .an-th { font-family: var(--rog); font-size: 11px; letter-spacing: .14em; color: var(--grey); }
.ad-sel select { flex: 1; height: 42px; padding: 0 10px; }
.ad-check { display: flex; align-items: center; gap: 8px; color: var(--grey); font-size: 13px; cursor: pointer; }
.ad-check input { width: 16px; height: 16px; accent-color: var(--red); }
/* analytics */
.an-period { color: var(--white); font-size: 15px; margin-bottom: 10px; }
.an-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.an-tiles div { padding: 10px 14px; background: #0b0b0d; border-left: 4px solid var(--red); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); }
.an-tiles b { display: block; font-family: var(--rog); font-size: 20px; white-space: nowrap; line-height: 1.1; }
.an-tiles small { font-size: 11px; letter-spacing: .14em; color: var(--grey); }
.an-table { display: grid; gap: 2px; margin-bottom: 12px; }
.an-row { display: grid; grid-template-columns: minmax(110px, 1.1fr) 1.6fr 110px 116px; align-items: center; gap: 12px; padding: 7px 10px; background: #0b0b0d; font-size: 14px; }
.an-row:not(.an-th):hover { background: #17171c; }
.an-row.an-th { background: none; padding-bottom: 2px; font-size: 10px; letter-spacing: .08em; align-items: end; }
.an-row.an-th > span { white-space: normal !important; line-height: 1.3; }
.an-row > span:nth-child(n+3) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.an-row.zero { color: var(--dim); }
.an-bar { display: flex; align-items: center; gap: 8px; min-width: 0; }
.an-bar i { flex: none; height: 10px; min-width: 2px; max-width: calc(100% - 96px); background: #d9d9de; clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.an-row.zero .an-bar i { background: var(--line); }
.an-bar b { font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* passwords */
.pw-row { display: grid; grid-template-columns: minmax(120px, 1fr) 1.1fr 1.1fr auto; align-items: center; gap: 4px 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.pw-row b { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.pw-row input { height: 38px; padding: 0 10px; }
.pw-msg { grid-column: 2 / -1; min-height: 0; font-size: 12px; color: var(--dim); }
.pw-msg.ok { color: var(--l1); } .pw-msg.bad { color: #ff5c70; }
/* product lines / categories */
.le-row { display: grid; gap: 4px; padding: 8px 0; border-top: 1px solid var(--line); }
.le-top { display: flex; gap: 4px; }
.le-top button { width: 38px; height: 38px; display: grid; place-items: center; background: #0b0b0d; border: 1px solid var(--line); color: var(--grey); flex: none; }
.le-top button:hover:not(:disabled) { color: var(--white); border-color: var(--red); }
.le-top button:disabled { opacity: .3; cursor: default; }
.le-name { flex: 1; height: 38px; padding: 0 10px; font-weight: 700; }
.ad .le-links { width: 100%; padding: 8px 10px; font-size: 13px; line-height: 1.5; resize: vertical; border-left-color: var(--line); white-space: pre; overflow-x: auto; }
.icon-btn.spin svg { animation: spin 1s linear infinite; }
.icon-btn em { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; background: var(--red); transform: skewX(-22deg); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- product lines */
.lines { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 6px; padding: 12px 22px 10px; max-width: 1500px; margin: 0 auto; }
.line { min-width: 0; transform: skewX(-18deg); background: var(--panel); border: 1px solid var(--line); color: var(--dim); padding: 0; }
.line > span { display: flex; align-items: center; justify-content: center; gap: 7px; height: 100%; padding: 8px 10px; transform: skewX(18deg); font-weight: 700; font-size: 13px; letter-spacing: .06em; line-height: 1.15; text-align: center; text-transform: uppercase; }
.line.on { background: var(--red); border-color: var(--red); color: #fff; }
.line.sel:not(.on) { border-color: var(--grey); color: var(--grey); }
.line svg { width: 17px; height: 17px; }

.archive { display: flex; align-items: center; gap: 12px; margin: 0 16px 10px; padding: 8px 14px; background: var(--panel2); border-left: 4px solid var(--white); font-family: var(--rog); font-size: 12px; letter-spacing: .1em; }
.archive span { color: var(--grey); } .archive b { flex: 1; }
.archive button { background: var(--red); padding: 5px 14px; font-family: var(--rog); font-size: 12px; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }

main { padding: 0 16px 24px; max-width: 1500px; margin: 0 auto; }

/* ---------- immediate action summary */
.hero { margin-bottom: 18px; }
.hero .wk { animation: wkPulse 2.8s ease-in-out infinite; }
@keyframes wkPulse { 0%, 100% { opacity: 1; box-shadow: none; } 50% { opacity: .5; } }
.wk { flex: none; margin: 0 6px 0 0 !important; padding: 4px 12px; background: var(--white); color: #000 !important; font-family: var(--rog); font-size: 13px !important; font-weight: 700; letter-spacing: .1em; white-space: nowrap;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.wk-cat { flex: none; margin: 0 8px 0 2px !important; font-family: var(--rog); font-size: 14px !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--white) !important; white-space: nowrap; }
.hero-clear { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.hero-clear .ok { display: flex; align-items: center; gap: 8px; font-family: var(--rog); font-size: 12px; letter-spacing: .1em; color: var(--grey); margin-right: auto; }
.hero-clear .ok svg { color: var(--l1); width: 24px; height: 24px; }
.meter { display: flex; gap: 3px; }
.meter div { transform: skewX(-18deg); min-width: 56px; padding: 5px 12px; background: var(--panel2); border-bottom: 3px solid var(--sev); text-align: center; }
.meter b { display: block; transform: skewX(18deg); font-family: var(--rog); font-size: 18px; color: var(--sev); }
.meter .lv4 b { color: #ff5c70; }
.meter .zero b { color: var(--dim); }
.hero-alert { position: relative; padding: 16px; background: linear-gradient(115deg, #3a0008 0%, #16090b 55%, var(--panel) 100%); border: 1px solid var(--l4); border-left: 6px solid var(--red);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%); overflow: hidden; }
.hero-alert::before { content: ""; position: absolute; inset: 0 0 auto auto; width: 46%; height: 100%; opacity: .5; pointer-events: none;
  background: repeating-linear-gradient(115deg, transparent 0 14px, rgba(255,0,41,.16) 14px 20px); mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
.hero-head { position: relative; display: flex; align-items: center; gap: 10px; font-family: var(--rog); letter-spacing: .1em; font-size: 14px; margin-bottom: 12px; }
.hero-head svg { color: var(--red); width: 26px; height: 26px; animation: blink 1.2s infinite; }
.hero-head b { margin-left: auto; font-size: 26px; color: var(--red); }
.hero-group { position: relative; margin-top: 10px; }
.hero-group h4 { display: flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .14em; color: var(--grey); text-transform: uppercase; margin-bottom: 6px; }
.hero-group h4 svg { width: 15px; height: 15px; }
.hero-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.hcard { display: flex; align-items: center; gap: 10px; text-align: left; background: rgba(0,0,0,.55); border: 1px solid #5a0010; padding: 8px 12px 8px 8px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.hcard:hover { border-color: var(--red); }
.hcard img, .hcard .ph { width: 64px; height: 48px; object-fit: contain; background: #4a4a52; flex: none; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.hcard div { min-width: 0; flex: 1; }
.hcard strong { display: block; font-family: var(--rog); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcard small { color: var(--grey); font-size: 12px; }
.hcard b { font-family: var(--rog); font-size: 22px; color: var(--red); }

/* ---------- category tabs */
.browse { display: flex; align-items: flex-start; gap: 14px; }
.browse-main { flex: 1; min-width: 0; }
.cat-title { margin: 0 0 14px; text-align: center; font-family: var(--rog); font-size: 22px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--white); }
.cat-title:empty { display: none; }
.cats { display: flex; flex-direction: column; gap: 4px; flex: none; width: 76px; position: sticky; top: 8px; }
.cat { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 14px 4px; background: var(--panel); color: var(--grey);
  border-left: 3px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); }
.cat svg { width: 30px; height: 30px; }
.cat.on { background: var(--panel2); color: var(--white); border-left-color: var(--red); }
/* the active category: icon at double size, pulsing slowly */
.cat.on svg { width: 60px; height: 60px; animation: pulse 2.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.86); opacity: .55; } }
svg.brand text { fill: currentColor; stroke: none; font-family: Arial, Helvetica, sans-serif; font-weight: 900; }
svg.brand path { fill: currentColor; stroke: none; }
svg.fine { stroke-width: 1; }
.cat em { font-style: normal; font-family: var(--rog); font-size: 12px; padding: 1px 8px; background: var(--sev); color: #000; transform: skewX(-18deg); }
.cat em.lv0 { color: var(--white); } .cat em.lv3, .cat em.lv4 { color: #fff; }

.legend { display: flex; flex-direction: column; gap: 8px; width: fit-content; max-width: 100%; margin: 22px auto 0; font-size: 16.5px; color: var(--grey); letter-spacing: .06em; text-transform: uppercase; }
.legend span { display: flex; align-items: center; gap: 10px; }
.legend i { width: 22px; height: 13px; background: var(--sev); transform: skewX(-22deg); flex: none; }
.legend b { color: var(--white); font-weight: 400; }

/* ---------- product tiles */
.grid { --cut: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); gap: 16px; min-height: 120px; }
.tile { position: relative; aspect-ratio: 4 / 3; padding: 1px; background: var(--l0); text-align: left;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: transform .15s, filter .15s; }
.tile:hover, .tile:focus-visible { transform: translateY(-3px); filter: brightness(1.15); outline: none; }
/* severity = top edge only: green / yellow breathe slowly, red / dark red fire a fast streak left to right */
.edge { position: absolute; z-index: 2; top: 0; left: 0; right: 0; height: 8px; background: var(--sev); overflow: hidden; }
.edge::after { content: ""; position: absolute; inset: 0; }
.tile.lv1 .edge, .tile.lv2 .edge { animation: breathe 3.6s ease-in-out infinite; }
.tile.lv1::after, .tile.lv2::after { content: ""; position: absolute; z-index: 1; top: 0; left: 0; right: 0; height: 34px; pointer-events: none;
  background: linear-gradient(180deg, var(--sev), transparent); opacity: .1; animation: glow 3.6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes glow { 0%, 100% { opacity: .04; } 50% { opacity: .42; } }
.tile.lv3 .edge::after, .tile.lv4 .edge::after { width: 45%; inset: 0 auto 0 0; background: linear-gradient(90deg, transparent, #fff 70%, #fff); animation: shoot .75s linear infinite; }
.tile.lv4 .edge { height: 10px; }
.tile.lv1::after, .tile.lv2::after { height: 64px; }
.tile.lv4 .edge::after { animation-duration: .45s; }
@keyframes shoot { from { transform: translateX(-110%); } to { transform: translateX(330%); } }
.tile-in { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: #0d0d10;
  clip-path: polygon(0 0, calc(100% - var(--cut) + 1px) 0, 100% calc(var(--cut) - 1px), 100% 100%, calc(var(--cut) - 1px) 100%, 0 calc(100% - var(--cut) + 1px)); }
.tile-in { background: radial-gradient(circle at 50% 42%, #5a5a63 0%, #2a2a30 48%, #121215 100%); }
.tile-in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14px 20px; }
.tile-in .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--line); background: repeating-linear-gradient(115deg, #0d0d10 0 18px, #131317 18px 19px); }
.tile-in .ph svg { width: 54px; height: 54px; }
.tile-in::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.3)); }
/* one strip along the top: reporter count flowing straight into the product name */
.tile .head { position: absolute; z-index: 2; top: 8px; left: 1px; right: 1px; display: flex; align-items: stretch; background: rgba(8,8,10,.82); }
.tile.lv4 .head { top: 10px; }
.tile .name { flex: 1; min-width: 0; display: flex; align-items: center; padding: 8px 36px 8px 10px;
  font-family: var(--rog); font-weight: 700; font-size: clamp(15px, 1.5vw, 21px); letter-spacing: .06em; line-height: 1.2; text-transform: uppercase; text-shadow: 0 2px 8px #000; }
.tile .count { flex: none; display: flex; align-items: center; gap: 7px; padding: 6px 26px 6px 14px; background: var(--sev); color: #000;
  font-family: var(--rog); font-size: 24px; font-weight: 700; clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%); }
.tile .count svg { width: 22px; height: 22px; stroke-width: 2.4; }
.tile.lv3 .count, .tile.lv4 .count { color: #fff; }
.tile .tag { position: absolute; z-index: 2; right: 16px; bottom: 12px; font-size: 16px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sev); }
.tile.lv4 .tag { color: #ff5c70; } .tile.lv0 .tag { color: var(--dim); }
.empty { grid-column: 1 / -1; display: grid; place-items: center; gap: 8px; padding: 46px 0; color: var(--dim); border: 1px dashed var(--line); }
.empty svg { width: 40px; height: 40px; }

/* ---------- coming soon */
.soon-box { display: grid; place-items: center; gap: 12px; padding: 70px 20px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 18px;
  background-image: repeating-linear-gradient(115deg, transparent 0 22px, rgba(255,255,255,.025) 22px 23px);
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px)); }
.soon-icon svg { width: 64px; height: 64px; color: var(--dim); stroke-width: 1.2; }
.soon-box h2 { font-family: var(--rog); letter-spacing: .1em; text-transform: uppercase; font-size: 18px; color: var(--grey); }
.soon-box p { font-family: var(--rog); font-size: 13px; letter-spacing: .3em; color: var(--red); padding: 6px 22px; border: 1px solid var(--red); transform: skewX(-18deg); }

/* ---------- weekly records */
.history { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); }
.history h3 { display: flex; align-items: center; gap: 8px; font-family: var(--rog); font-size: 12px; letter-spacing: .14em; color: var(--grey); margin-bottom: 10px; }
.weeks { display: flex; gap: 6px; overflow-x: auto; padding: 2px 8px 10px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.week { flex: none; min-width: 124px; padding: 8px 16px; background: var(--panel); border: 1px solid var(--line); transform: skewX(-14deg); text-align: left; }
.week > div { transform: skewX(14deg); }
.week.on { border-color: var(--red); background: var(--panel2); }
.week b { display: block; font-family: var(--rog); font-size: 14px; letter-spacing: .06em; }
.week small { color: var(--grey); font-size: 11px; white-space: nowrap; }
.week .bar { display: flex; height: 5px; margin-top: 6px; gap: 1px; background: var(--line); }
.week .bar i { background: var(--sev); }
.week .now { color: var(--red); font-size: 10px; letter-spacing: .12em; margin-left: 6px; }
/* a finished year: one long folder tile across the page, which opens to show that year's weeks */
.years { display: grid; gap: 8px; margin-top: 6px; }
.year { width: 100%; padding: 0; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--red); text-align: left;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); }
.year:hover, .year.open { background: var(--panel2); }
.year > span { display: flex; align-items: center; gap: 14px; padding: 14px 26px 14px 16px; }
.year svg { width: 24px; height: 24px; color: var(--grey); }
.year svg:last-child { width: 18px; height: 18px; transition: transform .15s; }
.year.open svg:last-child { transform: rotate(90deg); }
.year b { font-family: var(--rog); font-size: 20px; letter-spacing: .1em; }
.year small { color: var(--grey); font-size: 11px; letter-spacing: .14em; white-space: nowrap; }
.year .bar { flex: 1; display: flex; height: 5px; gap: 1px; background: var(--line); min-width: 20px; }
.year .bar i { background: var(--sev); }
.years .weeks { padding-top: 2px; }

.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 14px 16px 22px; color: var(--dim); font-size: 12px; max-width: 1500px; margin: 0 auto; }
.foot[hidden] { display: none; }
.foot a { display: inline-flex; align-items: center; gap: 4px; color: var(--grey); border-bottom: 1px solid var(--line); }
.foot a:hover { color: var(--white); } .foot a.bad { color: var(--l3); } .foot svg { width: 12px; height: 12px; }
.foot .sp { margin-left: auto; }

/* ---------- detail sheet */
.sheet { border: 0; padding: 0; background: none; color: var(--white); width: min(860px, 100vw - 24px); max-width: none; max-height: min(88vh, 900px); margin: auto; overflow: visible; }
.sheet::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(3px); }
.sheet-in { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--sev, var(--line)); max-height: inherit; overflow-y: auto;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%); }
.sh-head { position: relative; min-height: 132px; display: flex; align-items: flex-end; padding: 14px 18px; overflow: hidden; background: #0d0d10; }
.sh-head { background: radial-gradient(circle at 78% 50%, #5a5a63 0%, #26262b 40%, #0d0d10 80%); }
.sh-head img { position: absolute; right: 60px; top: 0; height: 100%; width: 46%; object-fit: contain; padding: 6px; }
.sh-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.85) 20%, rgba(0,0,0,0) 70%); }
.sh-head > div { position: relative; z-index: 1; min-width: 0; }
.sh-head h2 { font-family: var(--rog); font-size: clamp(16px, 3vw, 24px); letter-spacing: .07em; text-transform: uppercase; }
.pill { display: inline-block; margin-top: 6px; padding: 3px 14px; background: var(--sev); color: #000; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.pill.lv0, .pill.lv3, .pill.lv4 { color: #fff; }
.x { position: absolute; z-index: 2; top: 10px; right: 30px; width: 34px; height: 34px; display: grid; place-items: center; background: rgba(0,0,0,.6); border: 1px solid var(--line); }
.x:hover { color: var(--red); border-color: var(--red); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.col { background: var(--panel); padding: 14px 16px 18px; min-width: 0; }
.col h3 { display: flex; align-items: center; gap: 8px; font-family: var(--rog); font-size: 12px; letter-spacing: .16em; color: var(--grey); margin-bottom: 12px; }
.col h3::after { content: ""; flex: 1; height: 8px; background: repeating-linear-gradient(115deg, var(--line) 0 2px, transparent 2px 7px); }
.issue { padding: 10px 0 12px; border-top: 1px solid var(--line); }
.issue:first-of-type { border-top: 0; padding-top: 0; }
.issue-top { display: flex; align-items: center; gap: 10px; }
.issue-top .n { min-width: 46px; padding: 2px 10px; background: var(--sev); color: #000; font-family: var(--rog); font-size: 18px; font-weight: 700; text-align: center; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.lv3 > .issue-top .n, .lv4 > .issue-top .n { color: #fff; }
.issue-top strong { flex: 1; font-size: 15px; letter-spacing: .03em; }
.issue-top small { color: var(--sev); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-align: right; }
.lv4 > .issue-top small { color: #ff5c70; }
.steps { display: flex; gap: 3px; margin: 8px 0; }
.steps i { flex: 1; height: 4px; background: var(--line); transform: skewX(-30deg); } .steps i.f { background: var(--sev); }
.sum { margin: 2px 0 8px; color: #c4c4cb; font-size: 14px; line-height: 1.4; }
.ctx { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; }
.chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 4px 12px 4px 9px; background: var(--panel2); border-left: 3px solid var(--grey); font-size: 12px; color: var(--white);
  clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%); }
.chip svg { width: 13px; height: 13px; }
.chip.staff { border-left-color: #00d5ff; } .chip.staff svg { color: #00d5ff; }
.chip.ok { border-left-color: var(--l1); } .chip.ok svg:first-child { color: var(--l1); }
.chip.az { border-left-color: #ff9900; } .chip.az svg:first-child { color: #ff9900; }
.fix { display: flex; gap: 8px; margin: 0 0 9px; padding: 8px 10px; background: rgba(34, 197, 94, .08); border-left: 3px solid var(--l1); color: #d6d6dc; font-size: 14px; line-height: 1.4; }
.fix svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--l1); }
.fix b { color: var(--l1); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; margin-right: 4px; }
.chip.dim { color: var(--dim); border-left-color: var(--line); }
a.chip:hover { background: #24242b; }
.link em.solved { color: var(--l1); padding-right: 0; }
.links { display: grid; gap: 4px; }
.link { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: var(--panel2); border-left: 3px solid var(--red); font-size: 13px; min-width: 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.link:hover { background: #24242b; }
.link span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link em { display: flex; align-items: center; gap: 3px; font-style: normal; color: var(--grey); font-size: 11px; padding-right: 6px; }
.link svg { width: 14px; height: 14px; } .link > svg { color: var(--red); }
.none { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 13px; }
.none svg { color: var(--l1); }
.amz { padding: 12px 18px 4px; border-top: 1px solid var(--line); }
.chip.rate { border-left-color: #ff9900; gap: 7px; } .chip.rate b { font-size: 13px; } .chip.rate small { color: var(--grey); font-size: 11px; }
.stars { position: relative; display: inline-block; font-size: 13px; line-height: 1; letter-spacing: 1px; color: #3a3a42; }
.stars::before { content: "\2605\2605\2605\2605\2605"; }
.stars::after { content: "\2605\2605\2605\2605\2605"; position: absolute; left: 0; top: 0; width: var(--r); overflow: hidden; white-space: nowrap; color: #ff9900; }
.src-title { margin: 0; padding: 12px 18px 10px; border-bottom: 1px solid var(--line); font-family: var(--rog); font-size: 24px; letter-spacing: .1em; color: var(--red); }
.az-login { margin-left: 12px; padding: 4px 14px; background: #ff9900; color: #000; font-family: "Roboto Condensed", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.az-login:hover { background: #ffb340; }
.amz h4 { margin: 6px 0 6px; font-size: 11px; letter-spacing: .14em; color: var(--grey); }
.revs { display: grid; gap: 4px; margin-bottom: 6px; }
.rev { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--panel2); border-left: 3px solid #ff9900; color: var(--white); font-size: 13px; }
.rev:hover { background: #24242b; }
.rev svg { width: 14px; height: 14px; flex: none; color: #ff9900; } .rev svg:last-child { color: var(--grey); }
.rev span { flex: 1; min-width: 0; } .rev b { display: block; } .rev small { color: var(--grey); font-size: 12px; }
.amz.media h3 { color: var(--white); }
.rev.med { border-left-color: var(--grey); } .rev.med svg:first-child { color: var(--grey); }
.rev.med.hit { border-left-color: var(--red); } .rev.med.hit svg:first-child { color: var(--red); }
.rev.med b { white-space: normal; }
.amz.reddit h3 { color: #ff4500; }
.az-login.rd-login { background: #ff4500; color: #fff; } .az-login.rd-login:hover { background: #ff6a33; }
.rev.rd { border-left-color: var(--grey); } .rev.rd svg:first-child { color: var(--grey); }
.rev.rd.hit { border-left-color: #ff4500; } .rev.rd.hit svg:first-child { color: #ff4500; }
.rev.rd b { white-space: normal; }
.rev em { display: flex; align-items: center; gap: 3px; font-style: normal; color: var(--grey); font-size: 12px; white-space: nowrap; } .rev em svg { width: 13px; height: 13px; color: var(--grey) !important; }
.chip.rdc { border-left-color: #ff4500; } .chip.rdc svg:first-child { color: #ff4500; }
.amz-note { margin: 0 0 8px; color: var(--dim); font-size: 12px; }
.amz h3 { margin: 0 0 8px; font-family: var(--rog); font-size: 24px; letter-spacing: .1em; color: #ff9900; }
.sh-foot { display: flex; justify-content: space-between; gap: 10px; padding: 10px 18px 14px; color: var(--dim); font-size: 12px; border-top: 1px solid var(--line); }
.sh-foot a { color: var(--grey); display: inline-flex; gap: 4px; align-items: center; } .sh-foot svg { width: 12px; height: 12px; }

/* ---------- notifications */
.panel { position: fixed; z-index: 30; top: 82px; right: 12px; width: min(360px, calc(100vw - 24px)); max-height: 70vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 14px;
  box-shadow: 0 20px 50px #000; }
.panel h4 { font-family: var(--rog); font-size: 11px; letter-spacing: .14em; color: var(--grey); margin: 0 0 8px; }
.thr { display: flex; gap: 3px; margin-bottom: 12px; padding-left: 4px; }
.thr button { flex: 1; transform: skewX(-18deg); padding: 7px 4px; background: var(--panel2); border-bottom: 3px solid var(--sev); color: var(--grey); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.thr button span { display: block; transform: skewX(18deg); }
.thr button.on { background: var(--sev); color: #000; } .thr button.on.lv3, .thr button.on.lv4 { color: #fff; }
/* one sliding switch per alert level */
.sw-list { display: grid; gap: 2px; margin-bottom: 10px; }
.sw { display: flex; align-items: center; gap: 12px; padding: 9px 10px 9px 12px; background: var(--panel2); border-left: 4px solid var(--sev); cursor: pointer; }
.sw > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sw b { font-family: var(--rog); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.sw small { color: var(--grey); font-size: 11px; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw i { position: relative; width: 44px; height: 22px; flex: none; background: #2a2a30; border: 1px solid var(--line); border-radius: 11px; transition: background .2s, border-color .2s; }
.sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--grey); transition: transform .2s, background .2s; }
.sw input:checked + i { background: var(--sev); border-color: var(--sev); }
.sw input:checked + i::after { transform: translateX(22px); background: #fff; }
.sw input:focus-visible + i { outline: 2px solid var(--white); outline-offset: 2px; }
.sw-note { color: var(--grey); font-size: 12px; line-height: 1.45; margin: 0 0 10px; }
.sw-note:empty { display: none; }
.sw-btns { display: flex; gap: 8px; } .sw-btns .perm { flex: 1; }
.perm.alt { background: var(--panel2); border: 1px solid var(--line); }
.perm { width: 100%; margin-bottom: 12px; padding: 9px; background: var(--red); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.alert { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.alert i { width: 6px; align-self: stretch; background: var(--sev); transform: skewX(-12deg); flex: none; }
.alert div { flex: 1; min-width: 0; } .alert strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alert small { color: var(--grey); } .alert b { font-family: var(--rog); color: var(--sev); }
.toasts { position: fixed; z-index: 40; right: 12px; bottom: 12px; display: grid; gap: 8px; width: min(360px, calc(100vw - 24px)); }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--panel2); border-left: 5px solid var(--sev); box-shadow: 0 12px 30px #000; animation: in .25s; text-align: left;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.toast div { flex: 1; min-width: 0; } .toast strong { display: block; font-family: var(--rog); font-size: 11px; letter-spacing: .1em; color: var(--sev); text-transform: uppercase; }
.toast.lv4 strong { color: #ff5c70; }
@keyframes in { from { transform: translateX(30px); opacity: 0; } }
.demo { position: fixed; z-index: 50; left: 0; bottom: 0; padding: 3px 14px 3px 8px; background: var(--l2); color: #000; font-size: 11px; font-weight: 700; letter-spacing: .12em; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%); }

/* ---------- mobile */
@media (max-width: 640px) {
  .wordmark span { font-size: 15px; letter-spacing: .04em; }
  .wm-text small { font-size: 8.5px; letter-spacing: .14em; }
  .logo { height: 32px; }
  .top { column-gap: 8px; } .brand { gap: 6px; } .wordmark { gap: 6px; } .tools { gap: 5px; }
  .wordmark b { font-size: 18px; } .wordmark i { height: 28px; margin-right: 8px; }
  .live b { display: none; }
  .login-btn { padding: 0 10px; font-size: 10px; letter-spacing: .06em; }  .lines { padding: 10px 16px 8px; gap: 4px; }
  .line { transform: skewX(-10deg); }
  .line > span { flex-direction: column; gap: 3px; padding: 6px 3px; transform: skewX(10deg); font-size: 9.5px; letter-spacing: .02em; }
  .browse { gap: 8px; }
  .cats { width: 52px; }
  .cat { gap: 5px; padding: 10px 2px; }
  .cat svg { width: 24px; height: 24px; }
  .cat.on svg { width: 44px; height: 44px; }
  .cat em { font-size: 10px; padding: 0 6px; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .tile .name { font-size: 15px; padding: 6px 30px 6px 8px; }
  .cols { grid-template-columns: 1fr; }
  .lg.ad { padding: 46px 18px 22px; }
  .pw-row { grid-template-columns: 1fr 1fr; } .pw-row b { grid-column: 1 / -1; } .pw-row .ad-btn { grid-column: 1 / -1; } .pw-msg { grid-column: 1 / -1; }
  .an-row { grid-template-columns: minmax(70px, 1fr) 1fr 60px 62px; gap: 6px; font-size: 12px; } .an-row.an-th { font-size: 8px; letter-spacing: 0; } .an-tiles { grid-template-columns: 1fr; }
  .sheet { width: 100vw; max-height: 92vh; margin: auto 0 0; }
  .sheet-in { max-height: 92vh; }
  .hero-clear .ok { width: 100%; } .meter { width: 100%; padding-left: 6px; } .meter div { flex: 1; min-width: 0; padding: 5px 4px; }
  .foot .sp { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
