:root {
  --ink: #151922;
  --muted: #667085;
  --soft: #98a2b3;
  --line: #e7eaf0;
  --panel: #ffffff;
  --bg: #f3f5f8;
  --sidebar: #10141c;
  --sidebar-2: #181d27;
  --brand: #1778ff;
  --cyan: #06b6d4;
  --mint: #72eac9;
  --pink: #f04477;
  --violet: #7c6df2;
  --green: #12b76a;
  --orange: #f79009;
  --shadow: 0 10px 36px rgba(16, 24, 40, .07);
  --radius: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.app-shell { min-height: 100vh; }

.auth-gate { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; overflow: auto; padding: 28px 16px; color: #eaf0f8; background: radial-gradient(circle at 18% 15%, rgba(114,234,201,.16), transparent 30%), radial-gradient(circle at 85% 85%, rgba(23,120,255,.17), transparent 34%), #0d121a; }
.auth-card { position: relative; z-index: 2; width: min(430px,100%); padding: 30px; border: 1px solid rgba(255,255,255,.1); border-radius: 22px; background: rgba(20,27,38,.92); box-shadow: 0 35px 90px rgba(0,0,0,.38); backdrop-filter: blur(20px); }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.auth-brand strong { display: block; color: #fff; font-size: 16px; }
.auth-brand small { display: block; margin-top: 3px; color: #718095; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.auth-pane h1 { margin: 6px 0; color: #fff; font-size: 24px; letter-spacing: -.03em; }
.auth-pane > p { margin: 0 0 20px; color: #8793a5; font-size: 11px; line-height: 1.65; }
.auth-pane form { display: grid; gap: 12px; }
.auth-pane form label { display: grid; gap: 6px; color: #9aa6b8; font-size: 10px; font-weight: 650; }
.auth-pane input { width: 100%; height: 43px; padding: 0 12px; border: 1px solid rgba(255,255,255,.11); border-radius: 10px; outline: 0; color: #eef3f9; background: rgba(255,255,255,.055); font-size: 12px; }
.auth-pane input:focus { border-color: rgba(114,234,201,.62); box-shadow: 0 0 0 4px rgba(114,234,201,.08); }
.auth-submit { width: 100%; margin-top: 5px; background: linear-gradient(145deg,#28a8c7,#1678ff); }
.auth-link { width: 100%; margin-top: 16px; border: 0; color: #72eac9; background: transparent; font-size: 11px; }
.auth-message { min-height: 18px; margin: 13px 0 0; color: #ff829e; font-size: 10px; text-align: center; }
.auth-message.good { color: #72eac9; }
.auth-orbit { position: absolute; border: 1px solid rgba(114,234,201,.1); border-radius: 50%; }
.orbit-one { width: 520px; height: 520px; }
.orbit-two { width: 760px; height: 760px; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 40; width: 238px;
  display: flex; flex-direction: column; color: #dfe5ef;
  background:
    radial-gradient(circle at 12% 6%, rgba(114,234,201,.11), transparent 23%),
    linear-gradient(175deg, #121720 0%, #0d1118 100%);
  border-right: 1px solid rgba(255,255,255,.05);
}
.brand { height: 78px; display: flex; align-items: center; gap: 12px; padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.07); }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(145deg, var(--mint), #62bff2); box-shadow: 0 10px 24px rgba(77,224,191,.18); }
.brand-mark svg { width: 36px; height: 36px; fill: #10141c; }
.brand-mark .wing { fill: var(--mint); }
.brand strong { display: block; color: #fff; font-size: 17px; letter-spacing: .02em; }
.brand small { display: block; margin-top: 3px; color: #778295; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.side-nav { flex: 1; padding: 20px 14px; overflow: auto; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 13px; margin: 3px 0; border: 0; border-radius: 10px; color: #939dad; background: transparent; font-size: 14px; text-align: left; transition: .18s ease; }
.nav-item span { width: 19px; color: #7f8a9d; font-size: 17px; text-align: center; }
.nav-item:hover { color: #f6f8fb; background: rgba(255,255,255,.055); }
.nav-item.active { color: #f7fffd; background: linear-gradient(90deg, rgba(114,234,201,.17), rgba(114,234,201,.05)); box-shadow: inset 2px 0 var(--mint); }
.nav-item.active span { color: var(--mint); }
.nav-label { margin: 26px 13px 9px; color: #596273; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.side-foot { padding: 14px; border-top: 1px solid rgba(255,255,255,.07); }
.source-card { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 11px; background: rgba(255,255,255,.035); }
.source-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: #697386; box-shadow: 0 0 0 4px rgba(105,115,134,.12); }
.source-dot.connected { background: var(--green); box-shadow: 0 0 0 4px rgba(18,183,106,.13), 0 0 13px rgba(18,183,106,.6); }
.source-card strong { display: block; color: #dfe5ed; font-size: 12px; }
.source-card small { display: block; max-width: 155px; margin-top: 3px; color: #6e798a; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ghost { border: 0; background: transparent; color: var(--muted); }
.side-settings { width: 100%; margin-top: 8px; padding: 9px; color: #768193; font-size: 12px; text-align: left; }
.side-settings:hover { color: #fff; }
.user-card { display: grid; grid-template-columns: 34px 1fr 28px; align-items: center; gap: 9px; margin-top: 8px; padding: 9px; border-top: 1px solid rgba(255,255,255,.07); }
.user-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: #102019; background: linear-gradient(145deg,#72eac9,#65bff0); font-size: 12px; font-weight: 850; }
.user-card strong { display: block; color: #e7edf5; font-size: 11px; }
.user-card small { display: block; margin-top: 2px; color: #6f7b8d; font-size: 9px; }
.user-card button { width: 28px; height: 28px; border: 0; border-radius: 7px; color: #758195; background: transparent; }
.user-card button:hover { color: #fff; background: rgba(255,255,255,.06); }

.main { min-height: 100vh; margin-left: 238px; }
.topbar { position: sticky; top: 0; z-index: 30; height: 78px; display: grid; grid-template-columns: minmax(240px, 1fr) minmax(280px, 470px) minmax(300px, 1fr); align-items: center; gap: 24px; padding: 0 28px; background: rgba(255,255,255,.9); border-bottom: 1px solid rgba(231,234,240,.9); backdrop-filter: blur(18px); }
.top-title { display: flex; align-items: center; gap: 10px; }
.top-title h1 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.top-title p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 22px; }
.global-search { height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: #f5f7fa; border: 1px solid transparent; border-radius: 11px; transition: .2s; }
.global-search:focus-within { background: #fff; border-color: rgba(23,120,255,.35); box-shadow: 0 0 0 4px rgba(23,120,255,.07); }
.global-search span { color: #8791a1; font-size: 21px; }
.global-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.global-search kbd { padding: 3px 6px; color: #98a2b3; background: #fff; border: 1px solid var(--line); border-radius: 5px; font-size: 10px; box-shadow: 0 1px 1px rgba(0,0,0,.03); }
.top-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.updated { color: var(--soft); font-size: 10px; white-space: nowrap; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #dcefe8; border-radius: 999px; color: #16835a; background: #effaf6; font-size: 11px; white-space: nowrap; }
.live-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(18,183,106,.1); animation: pulse 1.8s infinite; }
.live-pill.paused { color: #9a6700; background: #fff7e6; border-color: #fae1af; }
.live-pill.paused span { background: var(--orange); animation: none; }
.primary, .secondary, .icon-button, .text-button { border-radius: 10px; font-weight: 650; transition: .18s ease; }
.primary { padding: 10px 15px; border: 1px solid #176de2; color: #fff; background: linear-gradient(145deg, #2587ff, #146ee7); box-shadow: 0 6px 16px rgba(23,120,255,.18); }
.primary:hover { transform: translateY(-1px); box-shadow: 0 9px 20px rgba(23,120,255,.24); }
.secondary { padding: 9px 13px; border: 1px solid var(--line); color: #344054; background: #fff; box-shadow: 0 2px 5px rgba(16,24,40,.025); }
.secondary:hover { border-color: #cdd2db; background: #fafbfc; }
.compact { padding: 7px 10px; font-size: 11px; }
.text-button { border: 0; color: var(--brand); background: transparent; font-size: 12px; }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); color: #596579; background: #fff; font-size: 18px; }
.connection-bar { position: sticky; top: 78px; z-index: 25; padding: 9px 28px; color: #8b5a00; background: #fff5dc; border-bottom: 1px solid #f9dda3; font-size: 12px; text-align: center; }

.content { max-width: 1620px; margin: 0 auto; padding: 28px; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.eyebrow { color: var(--brand); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.page-intro h2 { margin: 5px 0 0; font-size: 24px; letter-spacing: -.035em; }
.intro-actions { display: flex; gap: 8px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.kpi-card { position: relative; min-height: 166px; padding: 18px 19px 16px; overflow: hidden; background: var(--panel); border: 1px solid rgba(231,234,240,.9); border-radius: var(--radius); box-shadow: 0 3px 14px rgba(16,24,40,.035); }
.kpi-card::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 3px; background: var(--card-accent); opacity: .9; }
.kpi-card::after { content: ""; position: absolute; top: -40px; right: -45px; width: 125px; height: 125px; border-radius: 50%; background: var(--card-accent); opacity: .055; }
.accent-blue { --card-accent: var(--brand); }
.accent-pink { --card-accent: var(--pink); }
.accent-violet { --card-accent: var(--violet); }
.accent-green { --card-accent: var(--green); }
.kpi-head { display: flex; justify-content: space-between; align-items: center; }
.kpi-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--card-accent); background: color-mix(in srgb, var(--card-accent) 10%, white); font-size: 15px; }
.trend { padding: 4px 7px; border-radius: 999px; font-size: 9px; font-weight: 700; }
.trend.up { color: #087a51; background: #eaf9f3; }
.trend.neutral { color: #667085; background: #f2f4f7; }
.kpi-card p { margin: 13px 0 2px; color: var(--muted); font-size: 12px; }
.kpi-card strong { display: block; font-variant-numeric: tabular-nums; font-size: 29px; letter-spacing: -.045em; }
.kpi-card small { color: var(--soft); font-size: 9px; }
.spark { position: absolute; right: 14px; bottom: 10px; width: 115px; height: 28px; overflow: visible; opacity: .75; }
.spark path { fill: none; stroke: var(--card-accent); stroke-width: 2; vector-effect: non-scaling-stroke; }

.filter-panel { margin-top: 14px; padding: 13px 15px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 3px 12px rgba(16,24,40,.025); }
.filter-row { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.filter-row label:not(.switch-label) { display: grid; gap: 5px; color: #7a8495; font-size: 9px; font-weight: 700; letter-spacing: .02em; }
.filter-row select { min-width: 112px; height: 35px; padding: 0 27px 0 10px; border: 1px solid var(--line); border-radius: 8px; outline: none; color: #344054; background: #fafbfc; font-size: 11px; }
.filter-row select:focus { border-color: rgba(23,120,255,.45); background: #fff; }
.switch-label { height: 35px; display: flex; align-items: center; gap: 7px; color: #475467; font-size: 11px; white-space: nowrap; }
.switch-label input { position: absolute; opacity: 0; pointer-events: none; }
.switch { position: relative; width: 32px; height: 18px; border-radius: 999px; background: #d0d5dd; transition: .2s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .2s; }
.switch-label input:checked + .switch { background: var(--brand); }
.switch-label input:checked + .switch::after { transform: translateX(14px); }
.active-filters { min-height: 24px; display: flex; align-items: center; gap: 6px; padding-top: 8px; border-top: 1px solid #f1f2f5; margin-top: 10px; }
.filter-chip { padding: 4px 8px; border-radius: 999px; color: #405273; background: #eef4ff; font-size: 9px; }

.feed-panel { margin-top: 14px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.feed-panel.view-switch { animation: viewSwitch .24s ease; }
.feed-panel.search-empty { min-height: 0; }
.feed-panel.search-empty .feed-head { border-bottom: 0; }
.feed-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 15px; border-bottom: 1px solid var(--line); }
.feed-head h3 { margin: 0; font-size: 15px; }
.feed-head p { margin: 4px 0 0; color: var(--soft); font-size: 10px; }
.feed-head b { color: #475467; }
.pulse-dot { display: inline-block; width: 7px; height: 7px; margin-left: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(18,183,106,.1); animation: pulse 1.8s infinite; }
.feed-actions { display: flex; gap: 7px; }
.new-items-banner { width: calc(100% - 40px); margin: 10px 20px 0; padding: 8px; border: 1px solid #bfe6da; border-radius: 9px; color: #087a51; background: #edfaf5; font-size: 11px; }
.table-wrap { overflow-x: auto; }
.viral-table { width: 100%; min-width: 1050px; border-collapse: collapse; table-layout: fixed; }
.viral-table th { position: static; padding: 10px 12px; color: #8992a1; background: #fafbfc; border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 750; letter-spacing: .03em; text-align: left; }
.viral-table th:nth-child(1) { width: 58px; text-align: center; }
.viral-table th:nth-child(2) { width: 29%; }
.viral-table th:nth-child(3) { width: 16%; }
.viral-table th:nth-child(4) { width: 19%; }
.viral-table th:nth-child(5) { width: 12%; }
.viral-table th:nth-child(6) { width: 11%; }
.viral-table th:nth-child(7) { width: 10%; }
.viral-table th:nth-child(8) { width: 44px; }
.viral-table td { padding: 13px 12px; border-bottom: 1px solid #f0f1f4; vertical-align: middle; font-size: 11px; }
.viral-table tr { transition: .17s; }
.viral-table tbody tr:hover { background: #fbfcfe; }
.viral-table tbody tr.flash { animation: rowFlash 1.2s ease; }
.rank { color: #9aa3b2; font-variant-numeric: tabular-nums; font-weight: 750; text-align: center; }
.rank.top { color: var(--pink); font-size: 13px; }
.video-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.cover { position: relative; flex: 0 0 auto; width: 48px; height: 64px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; color: rgba(255,255,255,.85); background: linear-gradient(145deg, #2e3441, #151922); }
.cover::after { content: "▶"; font-size: 10px; text-shadow: 0 2px 6px rgba(0,0,0,.5); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-copy { min-width: 0; }
.video-title { display: -webkit-box; overflow: hidden; color: #202631; font-size: 12px; font-weight: 650; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.tags { display: flex; gap: 4px; margin-top: 6px; overflow: hidden; }
.tag { padding: 2px 5px; color: #637492; background: #f0f4fa; border-radius: 4px; font-size: 8px; white-space: nowrap; }
.channel-tag.male { color: #155eef; background: #eaf2ff; }
.channel-tag.female { color: #c4326c; background: #ffedf4; }
.source-tag { color: #087a51; background: #e8f8f2; }
.demo-tag { color: #8a4b00; background: #fff4db; }
.author-name { display: block; overflow: hidden; color: #344054; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.author-meta { display: block; margin-top: 5px; color: var(--soft); font-size: 9px; }
.metric-main { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 8px; }
.metric-main span { color: #8992a1; font-size: 9px; }
.metric-main b { color: #344054; font-variant-numeric: tabular-nums; font-size: 11px; }
.velocity { color: var(--green); font-variant-numeric: tabular-nums; font-weight: 750; }
.velocity small { display: block; margin-top: 4px; color: var(--soft); font-size: 8px; font-weight: 500; }
.score-wrap { display: flex; align-items: center; gap: 8px; }
.score-ring { --score-color: var(--brand); width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(var(--score-color) calc(var(--score) * 1%), #eef0f4 0); position: relative; }
.score-ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.score-ring b { position: relative; z-index: 1; font-size: 10px; font-variant-numeric: tabular-nums; }
.score-ring.hot { --score-color: var(--pink); }
.score-ring.burst { --score-color: var(--orange); }
.score-ring.warm { --score-color: var(--brand); }
.score-level { color: #344054; font-size: 9px; font-weight: 700; }
.time-cell { color: #667085; font-size: 10px; }
.time-cell small { display: block; margin-top: 4px; color: #a0a8b5; font-size: 8px; }
.row-menu { width: 29px; height: 29px; border: 0; border-radius: 8px; color: #98a2b3; background: transparent; font-size: 17px; }
.row-menu:hover { color: var(--brand); background: #eef4ff; }
.mobile-cards { display: none; }
.empty-state { padding: 68px 20px 72px; text-align: center; }
.empty-state h3 { margin: 18px 0 7px; font-size: 17px; }
.empty-state p { max-width: 500px; margin: 0 auto; color: var(--muted); font-size: 12px; line-height: 1.7; }
.empty-state code { display: inline-block; margin-top: 14px; padding: 7px 10px; color: #667085; background: #f6f7f9; border: 1px solid var(--line); border-radius: 7px; font-size: 10px; }
.empty-actions { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.radar-visual { position: relative; width: 84px; height: 84px; display: grid; place-items: center; margin: 0 auto; border-radius: 50%; background: rgba(23,120,255,.04); }
.radar-visual span { position: absolute; border: 1px solid rgba(23,120,255,.15); border-radius: 50%; }
.radar-visual span:nth-child(1) { inset: 8px; }
.radar-visual span:nth-child(2) { inset: 18px; }
.radar-visual span:nth-child(3) { inset: 29px; }
.radar-visual::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: conic-gradient(from 240deg, transparent 0 60%, rgba(23,120,255,.16)); animation: radar 2.8s linear infinite; }
.radar-visual i { z-index: 2; color: var(--brand); font-style: normal; font-size: 22px; }

.backdrop { position: fixed; inset: 0; z-index: 90; opacity: 0; visibility: hidden; background: rgba(12,17,25,.44); backdrop-filter: blur(2px); transition: .22s; }
.backdrop.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; z-index: 100; inset: 0 0 0 auto; width: min(530px, 100vw); overflow-y: auto; padding: 24px; background: #fff; box-shadow: -18px 0 44px rgba(16,24,40,.14); transform: translateX(102%); transition: .28s cubic-bezier(.2,.75,.25,1); }
.drawer.open { transform: translateX(0); }
.drawer-head, .modal-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.drawer-head h3, .modal-head h3 { margin: 4px 0 0; font-size: 20px; }
.modal-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.close-button { width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 9px; color: #667085; background: #fff; font-size: 22px; line-height: 1; }
.detail-hero { display: flex; gap: 14px; padding: 20px 0; }
.detail-cover { flex: 0 0 auto; width: 98px; height: 130px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; color: #fff; background: linear-gradient(145deg,#333b4a,#161b24); }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-title { margin: 3px 0 10px; font-size: 17px; line-height: 1.45; }
.detail-author { color: #475467; font-size: 12px; }
.detail-author b { color: var(--ink); }
.detail-actions { display: flex; gap: 7px; margin-top: 17px; }
.detail-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.detail-metric { padding: 12px; background: #f7f9fb; border: 1px solid #eef0f3; border-radius: 11px; }
.detail-metric span { display: block; color: var(--soft); font-size: 9px; }
.detail-metric b { display: block; margin-top: 4px; font-size: 16px; font-variant-numeric: tabular-nums; }
.analysis-block { margin-top: 18px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; }
.analysis-block h4 { margin: 0 0 11px; font-size: 12px; }
.signal-list { display: grid; gap: 8px; }
.signal-item { display: flex; align-items: flex-start; gap: 9px; color: #475467; font-size: 11px; line-height: 1.5; }
.signal-item i { display: grid; place-items: center; width: 19px; height: 19px; flex: 0 0 auto; border-radius: 6px; color: #087a51; background: #eaf9f3; font-style: normal; font-size: 10px; }
.snapshot-chart { width: 100%; height: 90px; }
.snapshot-chart path { fill: none; stroke: var(--brand); stroke-width: 3; vector-effect: non-scaling-stroke; }
.snapshot-chart .area { fill: url(#chartGradient); stroke: none; }
.detail-foot { margin-top: 15px; color: var(--soft); font-size: 9px; text-align: center; }
.classification-note { margin: 11px 0 0; color: #7b8797; font-size: 10px; }
.channel-correction { display: flex; align-items: center; gap: 7px; margin-top: 12px; padding-top: 11px; border-top: 1px solid #edf0f4; }
.channel-correction span { margin-right: auto; color: #7b8797; font-size: 9px; }
.channel-correction button { padding: 6px 9px; border: 1px solid #e0e5ec; border-radius: 7px; color: #667085; background: #fff; font-size: 9px; }
.channel-correction button.selected { color: #176fe8; border-color: #b9d2ff; background: #edf4ff; }

.modal { position: fixed; z-index: 110; top: 50%; left: 50%; width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; padding: 24px; border-radius: 17px; background: #fff; box-shadow: 0 28px 80px rgba(16,24,40,.25); opacity: 0; visibility: hidden; transform: translate(-50%,-47%) scale(.97); transition: .22s; }
.modal.open { opacity: 1; visibility: visible; transform: translate(-50%,-50%) scale(1); }
.settings-form { display: grid; gap: 0; margin-top: 10px; }
.settings-form > label { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid #f0f1f4; }
.settings-form label > span { color: #344054; font-size: 12px; font-weight: 650; }
.settings-form small { display: block; margin-top: 4px; color: var(--soft); font-size: 9px; font-weight: 400; }
.settings-form input { width: 150px; height: 37px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; outline: 0; text-align: right; }
.settings-form input:focus { border-color: rgba(23,120,255,.5); box-shadow: 0 0 0 3px rgba(23,120,255,.07); }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 18px; }
.setup-steps { display: grid; gap: 0; margin: 10px 0 0; padding: 0; counter-reset: steps; list-style: none; }
.setup-steps li { position: relative; display: grid; gap: 5px; padding: 14px 0 14px 42px; border-bottom: 1px solid #f0f1f4; counter-increment: steps; }
.setup-steps li::before { content: counter(steps); position: absolute; top: 13px; left: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: var(--brand); background: #edf4ff; font-size: 11px; font-weight: 800; }
.setup-steps b { font-size: 12px; }
.setup-steps span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.setup-steps code { width: fit-content; padding: 6px 8px; color: #45536a; background: #f5f7fa; border-radius: 6px; font-size: 9px; word-break: break-all; }
.setup-steps button { width: fit-content; }
.collector-state { display: flex; align-items: center; gap: 11px; margin-top: 17px; padding: 12px; background: #f7f9fb; border-radius: 11px; }
.collector-state b { display: block; font-size: 11px; }
.collector-state small { display: block; max-width: 490px; margin-top: 3px; color: var(--soft); font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-list { display: grid; gap: 7px; max-height: 440px; margin-top: 14px; overflow-y: auto; }
.log-entry { display: grid; grid-template-columns: 65px 85px 1fr; gap: 8px; padding: 9px 10px; color: #475467; background: #f8f9fb; border-radius: 8px; font: 10px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; }
.log-entry time { color: var(--soft); }
.log-entry b { color: var(--brand); }
.invite-create { display: grid; grid-template-columns: 80px 90px 100px 1fr auto; align-items: end; gap: 8px; margin: 15px 0; }
.invite-create label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; }
.invite-create input,.invite-create select { width: 100%; height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; outline: 0; background: #fafbfc; font-size: 10px; }
.new-invites { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; color: #087a51; background: #edfaf5; border: 1px solid #c7eadf; border-radius: 11px; }
.new-invites div { grid-column: 1 / -1; }
.new-invites small { display: block; margin-top: 3px; color: #53907a; font-size: 9px; }
.new-invites pre { margin: 0; padding: 8px; overflow: auto; color: #315849; background: rgba(255,255,255,.6); border-radius: 7px; font-size: 10px; }
.invite-summary { display: flex; gap: 10px; padding: 11px 0; }
.invite-summary span { padding: 6px 9px; color: var(--muted); background: #f4f6f8; border-radius: 8px; font-size: 9px; }
.invite-summary b { color: var(--ink); font-size: 12px; }
.invite-list { display: grid; gap: 7px; max-height: 330px; overflow-y: auto; }
.invite-row { display: grid; grid-template-columns: 1.2fr 1fr 70px 90px 32px; align-items: center; gap: 8px; padding: 10px; background: #f8f9fb; border-radius: 9px; font-size: 10px; }
.invite-row code { color: #344054; font-size: 10px; }
.invite-row small { color: var(--soft); }
.invite-status { width: fit-content; padding: 3px 6px; border-radius: 999px; color: #087a51; background: #e8f8f2; font-size: 8px; }
.invite-status.disabled,.invite-status.expired,.invite-status.exhausted { color: #7b8492; background: #eceff3; }
.invite-row button { width: 28px; height: 28px; border: 0; border-radius: 7px; color: #b42318; background: #fff0f0; }

.toast-layer { position: fixed; z-index: 200; right: 22px; bottom: 22px; display: grid; gap: 8px; }
.toast { min-width: 250px; padding: 12px 14px; color: #fff; background: #202631; border-radius: 11px; box-shadow: 0 14px 34px rgba(16,24,40,.24); font-size: 11px; animation: toastIn .25s ease; }
.toast.good { background: #087a51; }
.toast.warn { background: #9a6700; }
.mobile-nav { display: none; }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes radar { to { transform: rotate(360deg); } }
@keyframes rowFlash { 0% { background: #dff9f1; } 100% { background: transparent; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes viewSwitch { from { opacity: .55; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1180px) {
  .topbar { grid-template-columns: 1fr minmax(260px, 380px); }
  .top-actions .updated { display: none; }
  .top-title p { display: none; }
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: .25s; }
  .sidebar.mobile-open { transform: translateX(0); box-shadow: 20px 0 50px rgba(0,0,0,.2); }
  .main { margin-left: 0; }
  .topbar { height: 66px; grid-template-columns: 1fr auto; padding: 0 16px; }
  .mobile-menu { display: block; }
  .global-search { position: absolute; top: 73px; left: 16px; right: 16px; display: none; box-shadow: var(--shadow); }
  .top-actions .live-pill { display: flex; }
  .top-actions .primary { display: none; }
  .content { padding: 20px 16px 84px; }
  .connection-bar { top: 66px; }
}

@media (max-width: 700px) {
  .page-intro { align-items: flex-start; gap: 12px; }
  .page-intro h2 { font-size: 19px; }
  .intro-actions .secondary:first-child { display: none; }
  .kpi-grid { display: flex; margin-right: -16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-right: 16px; }
  .kpi-card { min-width: 245px; min-height: 145px; scroll-snap-align: start; }
  .filter-panel { overflow-x: auto; }
  .filter-row { width: max-content; flex-wrap: nowrap; }
  .active-filters { width: max-content; }
  .table-wrap { display: none; }
  .mobile-cards { display: grid; gap: 0; }
  .mobile-video-card { display: grid; grid-template-columns: 62px 1fr; gap: 11px; padding: 14px; border-bottom: 1px solid var(--line); }
  .mobile-video-card .cover { width: 62px; height: 82px; grid-row: span 2; }
  .mobile-card-head { display: flex; justify-content: space-between; gap: 8px; }
  .mobile-card-head .video-title { font-size: 12px; }
  .mobile-card-body { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .mobile-card-body span { color: var(--soft); font-size: 9px; }
  .mobile-card-body b { color: #344054; font-size: 11px; }
  .mobile-card-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; color: var(--soft); font-size: 9px; }
  .score-badge { padding: 4px 7px; border-radius: 999px; color: #a33a5b; background: #fff0f4; font-size: 9px; font-weight: 750; }
  .empty-state { padding: 52px 14px; }
  .empty-actions { flex-direction: column; align-items: stretch; max-width: 260px; margin-left: auto; margin-right: auto; }
  .mobile-nav { position: fixed; z-index: 70; inset: auto 0 0; height: 64px; display: grid; grid-template-columns: repeat(4,1fr); padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(15px); }
  .mobile-nav button { display: grid; place-content: center; gap: 3px; border: 0; color: #8a94a4; background: transparent; font-size: 15px; }
  .mobile-nav button span { font-size: 9px; }
  .mobile-nav button.active { color: var(--brand); }
  .settings-form > label { align-items: flex-start; flex-direction: column; gap: 8px; }
  .settings-form input { width: 100%; text-align: left; }
  .detail-metrics { grid-template-columns: repeat(2,1fr); }
  .toast-layer { right: 12px; bottom: 78px; left: 12px; }
  .toast { min-width: 0; }
  .auth-card { padding: 23px 19px; }
  .invite-create { grid-template-columns: 1fr 1fr; }
  .invite-label { grid-column: 1 / -1; }
  .invite-create .primary { grid-column: 1 / -1; }
  .invite-row { grid-template-columns: 1fr 70px 28px; }
  .invite-row .invite-meta { display: none; }
}

/* ===== 1.2 visual system: auth, portal and refined radar ===== */
body { background: #f1f4f8; }

.auth-gate {
  grid-template-columns: minmax(420px, 1.15fr) minmax(380px, 470px);
  gap: clamp(36px, 7vw, 110px);
  padding: 40px max(28px, calc((100vw - 1260px) / 2));
  background:
    radial-gradient(circle at 13% 16%, rgba(40,213,180,.20), transparent 28%),
    radial-gradient(circle at 85% 82%, rgba(40,117,255,.23), transparent 34%),
    linear-gradient(145deg,#07111b 0%,#0b1624 46%,#101828 100%);
}
.auth-showcase { position: relative; z-index: 2; max-width: 650px; color: #fff; }
.showcase-badge { width: fit-content; display: flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid rgba(116,235,205,.2); border-radius: 999px; color: #8df2d6; background: rgba(70,221,186,.08); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.showcase-badge span { width: 7px; height: 7px; border-radius: 50%; background: #70edc9; box-shadow: 0 0 14px #70edc9; }
.auth-showcase h2 { max-width: 650px; margin: 28px 0 18px; font-size: clamp(44px,5vw,70px); line-height: 1.08; letter-spacing: -.055em; }
.auth-showcase h2 em { color: transparent; background: linear-gradient(100deg,#79efd0,#6bb7ff); background-clip: text; font-style: normal; }
.auth-showcase > p { max-width: 580px; margin: 0; color: #9eabba; font-size: 15px; line-height: 1.9; }
.showcase-flow { display: flex; align-items: center; gap: 13px; margin-top: 28px; color: #d5dde7; font-size: 12px; }
.showcase-flow span { padding: 8px 11px; border: 1px solid rgba(255,255,255,.09); border-radius: 8px; background: rgba(255,255,255,.045); }
.showcase-flow i { color: #506071; font-style: normal; }
.showcase-proof { display: grid; grid-template-columns: repeat(3,1fr); max-width: 570px; margin-top: 44px; border-top: 1px solid rgba(255,255,255,.09); border-bottom: 1px solid rgba(255,255,255,.09); }
.showcase-proof div { padding: 22px 4px; }
.showcase-proof div + div { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.09); }
.showcase-proof b { display: block; font-size: 24px; letter-spacing: -.03em; }
.showcase-proof small { display: block; margin-top: 5px; color: #748397; font-size: 10px; }
.showcase-contact { display: flex; align-items: center; gap: 10px; margin-top: 25px; padding: 0; border: 0; color: #8beed3; background: transparent; font-size: 12px; }
.showcase-contact span { transition: .2s; }
.showcase-contact:hover span { transform: translate(3px,-3px); }
.auth-card { width: 100%; padding: 34px 36px 29px; color: #182230; background: rgba(255,255,255,.97); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 34px 100px rgba(0,0,0,.32); }
.auth-brand { margin-bottom: 30px; }
.auth-brand strong { color: #17202c; }
.auth-brand small { color: #8793a3; }
.auth-pane h1 { color: #121926; font-size: 27px; }
.auth-pane > p { color: #667085; font-size: 12px; }
.auth-pane form { gap: 14px; }
.auth-pane form label { color: #475467; font-size: 11px; }
.auth-pane input { height: 47px; color: #17202c; background: #f7f9fb; border: 1px solid #e1e6ed; font-size: 13px; }
.auth-pane input::placeholder { color: #a3adbb; }
.auth-pane input:focus { background: #fff; border-color: rgba(23,120,255,.55); box-shadow: 0 0 0 4px rgba(23,120,255,.08); }
.auth-submit { height: 47px; margin-top: 8px; border-radius: 11px; font-size: 13px; }
.auth-link { color: #176fe8; font-weight: 650; }
.auth-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 15px; color: #98a2b3; border-top: 1px solid #edf0f4; font-size: 9px; }
.auth-foot button { border: 0; color: #1570ef; background: transparent; font-size: 9px; }

.portal-page { position: relative; min-height: 100vh; overflow: hidden; background: linear-gradient(180deg,#f8fafc 0,#eef2f7 100%); }
.portal-glow { position: absolute; width: 560px; height: 560px; border-radius: 50%; filter: blur(2px); opacity: .1; pointer-events: none; }
.glow-a { top: -310px; left: -140px; background: #16c79a; }
.glow-b { top: 120px; right: -330px; background: #2677ff; }
.portal-header { position: relative; z-index: 5; height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 max(28px,calc((100vw - 1400px)/2)); background: rgba(255,255,255,.82); border-bottom: 1px solid rgba(218,224,233,.9); backdrop-filter: blur(20px); }
.portal-brand { display: flex; align-items: center; gap: 11px; }
.portal-brand b { display: block; font-size: 16px; letter-spacing: -.02em; }
.portal-brand small { display: block; margin-top: 3px; color: #98a2b3; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.portal-header nav { display: flex; gap: 6px; }
.portal-nav { padding: 8px 13px; border: 0; border-radius: 9px; color: #697586; background: transparent; font-size: 11px; }
.portal-nav.active,.portal-nav:hover { color: #17202c; background: #f0f3f7; }
.portal-account { justify-self: end; display: flex; align-items: center; gap: 9px; }
.portal-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: #09211a; background: linear-gradient(145deg,#70ebc8,#70b9ee); font-size: 12px; font-weight: 850; }
.portal-account b { display: block; font-size: 11px; }
.portal-account small { display: block; margin-top: 2px; color: #98a2b3; font-size: 8px; }
.portal-account button { padding: 6px 8px; border: 0; color: #8b95a3; background: transparent; font-size: 9px; }
.portal-main { position: relative; z-index: 2; width: min(1400px,calc(100% - 48px)); margin: 0 auto; padding: 55px 0 70px; }
.portal-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.portal-kicker { display: flex; align-items: center; gap: 8px; color: #148761; font-size: 10px; font-weight: 750; letter-spacing: .04em; }
.portal-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #13b875; box-shadow: 0 0 0 5px rgba(19,184,117,.1); }
.portal-hero h1 { margin: 10px 0 8px; font-size: clamp(34px,4vw,51px); letter-spacing: -.055em; }
.portal-hero h1 span { color: #1677f2; }
.portal-hero p { margin: 0; color: #667085; font-size: 13px; }
.portal-live { display: flex; align-items: center; gap: 12px; min-width: 220px; padding: 13px 15px; background: rgba(255,255,255,.8); border: 1px solid #e2e7ed; border-radius: 13px; box-shadow: 0 9px 30px rgba(16,24,40,.05); }
.portal-live b { display: block; font-size: 11px; }
.portal-live small { display: block; margin-top: 3px; color: #98a2b3; font-size: 9px; }
.portal-stats { display: grid; grid-template-columns: repeat(4,1fr); margin: 35px 0 48px; background: rgba(255,255,255,.78); border: 1px solid #e2e7ee; border-radius: 16px; box-shadow: 0 13px 40px rgba(16,24,40,.045); }
.portal-stats article { padding: 19px 22px; }
.portal-stats article + article { border-left: 1px solid #edf0f4; }
.portal-stats span { display: block; color: #697586; font-size: 10px; }
.portal-stats b { display: block; margin-top: 5px; font-size: 25px; letter-spacing: -.04em; }
.portal-stats small { display: block; margin-top: 3px; color: #a0a8b4; font-size: 8px; }
.portal-section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.portal-section-head span { color: #1677f2; font-size: 8px; font-weight: 850; letter-spacing: .16em; }
.portal-section-head h2 { margin: 4px 0 0; font-size: 21px; letter-spacing: -.03em; }
.portal-section-head p { margin: 0; color: #98a2b3; font-size: 10px; }
.product-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 14px; }
.product-card { position: relative; min-height: 214px; display: flex; align-items: flex-start; gap: 15px; overflow: hidden; padding: 24px; border: 1px solid #e2e7ee; border-radius: 18px; text-align: left; background: rgba(255,255,255,.86); box-shadow: 0 10px 36px rgba(16,24,40,.055); transition: .24s cubic-bezier(.2,.75,.25,1); }
.product-card:hover { transform: translateY(-5px); border-color: #cbd5e2; box-shadow: 0 20px 55px rgba(16,24,40,.11); }
.product-main { grid-row: span 2; min-height: 442px; align-items: flex-end; padding: 32px; color: #f5f8fc; background: radial-gradient(circle at 82% 15%,rgba(77,230,192,.22),transparent 30%), linear-gradient(145deg,#0c1723,#132538); border-color: #1e3447; }
.product-number { position: absolute; top: 18px; right: 20px; color: rgba(117,132,150,.55); font: 800 10px/1 ui-monospace,monospace; }
.product-main .product-number { color: rgba(255,255,255,.3); }
.product-icon { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; color: #176fe8; background: #eaf2ff; font-size: 18px; }
.product-male .product-icon { color: #245de0; background: #edf2ff; }
.product-female .product-icon { color: #ca3a73; background: #ffedf4; }
.product-new .product-icon { color: #087a51; background: #e8f8f2; }
.radar-icon { position: absolute; top: 31px; left: 31px; width: 54px; height: 54px; color: #08201a; background: linear-gradient(145deg,#72eac9,#6dc1ed); font-size: 24px; }
.product-badge { display: inline-flex; padding: 5px 8px; color: #7ef0cf; background: rgba(112,235,200,.1); border: 1px solid rgba(112,235,200,.18); border-radius: 999px; font-size: 8px; }
.product-card h3 { margin: 10px 0 6px; font-size: 17px; letter-spacing: -.03em; }
.product-main h3 { font-size: 29px; }
.product-card p { max-width: 430px; margin: 0; color: #7b8697; font-size: 11px; line-height: 1.7; }
.product-main p { color: #93a2b4; font-size: 12px; }
.product-enter { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; color: #176fe8; font-size: 10px; font-weight: 750; }
.product-main .product-enter { color: #79e9ca; }
.product-enter i { font-style: normal; transition: .2s; }
.product-card:hover .product-enter i { transform: translateX(4px); }
.product-orbit { position: absolute; top: 15px; right: -55px; width: 260px; height: 260px; opacity: .28; }
.product-orbit i { position: absolute; border: 1px solid #62d5ba; border-radius: 50%; }
.product-orbit i:nth-child(1){inset:0}.product-orbit i:nth-child(2){inset:40px}.product-orbit i:nth-child(3){inset:80px}
.portal-contact-strip { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 18px; padding: 26px 29px; color: #eaf0f6; background: linear-gradient(120deg,#122130,#1c344a); border-radius: 17px; }
.portal-contact-strip span { color: #7de8ca; font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.portal-contact-strip h3 { margin: 5px 0 3px; font-size: 17px; }
.portal-contact-strip p { margin: 0; color: #8e9caf; font-size: 10px; }
.portal-contact-strip button { padding: 10px 14px; border: 1px solid rgba(117,235,202,.2); border-radius: 10px; color: #80e8cc; background: rgba(117,235,202,.08); font-size: 11px; }

.contact-overlay { position: fixed; inset: 0; z-index: 600; display: grid; place-items: center; padding: 18px; background: rgba(6,13,22,.63); backdrop-filter: blur(7px); }
.contact-dialog { position: relative; width: min(430px,100%); padding: 34px; border-radius: 21px; text-align: center; background: #fff; box-shadow: 0 35px 90px rgba(0,0,0,.28); }
.contact-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: 1px solid #e5e9ef; border-radius: 9px; color: #667085; background: #fff; font-size: 19px; }
.contact-icon { width: 52px; height: 52px; display: grid; place-items: center; margin: 17px auto 12px; border-radius: 15px; color: #092219; background: linear-gradient(145deg,#72eac9,#75baf1); font-size: 21px; }
.contact-dialog h2 { margin: 0; font-size: 22px; }
.contact-dialog > p { margin: 7px 0 18px; color: #667085; font-size: 11px; }
.contact-value { padding: 13px; background: #f5f7fa; border: 1px solid #e6e9ee; border-radius: 11px; }
.contact-value span { display: block; color: #98a2b3; font-size: 9px; }
.contact-value b { display: block; margin-top: 4px; font-size: 15px; }
.contact-actions { display: flex; justify-content: center; gap: 8px; margin-top: 15px; }
.contact-actions .primary,.contact-actions .secondary { font-size: 10px; }

.sidebar { width: 252px; }
.main { margin-left: 252px; }
.nav-home { margin-bottom: 6px; color: #b4bfce; border: 1px solid rgba(255,255,255,.06); }
.nav-label-first { margin-top: 19px; }
.top-home { padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; color: #667085; background: #fff; font-size: 10px; }
.top-actions > * { flex-shrink: 0; }
.top-actions .primary { min-width: 104px; white-space: nowrap; }
.topbar { grid-template-columns: minmax(220px,.8fr) minmax(250px,390px) auto; }
.kpi-card,.feed-panel,.filter-panel { border-radius: 18px; }
.video-title { font-size: 13px; }
.viral-table td { padding-top: 15px; padding-bottom: 15px; font-size: 12px; }

@media (max-width: 980px) {
  .auth-gate { grid-template-columns: 1fr; }
  .auth-showcase { display: none; }
  .auth-card { max-width: 470px; justify-self: center; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .product-main { grid-row: auto; grid-column: 1 / -1; min-height: 310px; }
  .portal-stats { grid-template-columns: 1fr 1fr; }
  .portal-stats article:nth-child(3) { border-left: 0; border-top: 1px solid #edf0f4; }
  .portal-stats article:nth-child(4) { border-top: 1px solid #edf0f4; }
  .sidebar { width: 238px; }
  .main { margin-left: 0; }
}

@media (max-width: 700px) {
  .auth-gate { padding: 18px 13px; }
  .auth-card { padding: 25px 20px 22px; }
  .portal-header { grid-template-columns: 1fr auto; height: 67px; padding: 0 15px; }
  .portal-header nav { display: none; }
  .portal-account span:nth-child(2) { display: none; }
  .portal-account button { padding-right: 0; }
  .portal-main { width: calc(100% - 28px); padding: 32px 0 40px; }
  .portal-hero { align-items: flex-start; flex-direction: column; }
  .portal-hero h1 { font-size: 32px; }
  .portal-live { width: 100%; }
  .portal-stats { margin: 23px 0 33px; }
  .portal-stats article { padding: 15px; }
  .portal-section-head p { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .product-main { grid-column: auto; min-height: 300px; }
  .product-card { min-height: 170px; }
  .portal-contact-strip { align-items: flex-start; flex-direction: column; }
  .portal-contact-strip button { width: 100%; }
  .top-home { display: none; }
}
