:root {
  --bg: #090b10;
  --panel: #10131a;
  --panel-2: #141821;
  --panel-3: #1a1e29;
  --line: rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.14);
  --text: #f2f4f8;
  --muted: #9299aa;
  --subtle: #626a7b;
  --blue: #39b9ff;
  --blue-soft: rgba(57,185,255,.14);
  --violet: #7c6cff;
  --violet-soft: rgba(124,108,255,.15);
  --lime: #b8f36a;
  --lime-soft: rgba(184,243,106,.12);
  --orange: #ffb45a;
  --red: #ff6f8d;
  --shadow: 0 18px 50px rgba(0,0,0,.24);
  --radius: 18px;
  --radius-sm: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(circle at 80% -10%, rgba(80,66,180,.13), transparent 32%), var(--bg); color: var(--text); }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 254px; padding: 28px 18px 20px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: rgba(10,12,17,.88); position: sticky; top: 0; height: 100vh; z-index: 4; }
.brand-block { display: flex; align-items: center; gap: 11px; padding: 0 10px 26px; }
.brand-mark { width: 35px; height: 35px; border: 1px solid rgba(124,108,255,.65); border-radius: 11px; display: grid; place-items: center; position: relative; background: linear-gradient(145deg, rgba(124,108,255,.28), rgba(57,185,255,.06)); box-shadow: inset 0 0 0 3px rgba(8,10,15,.75), 0 0 22px rgba(124,108,255,.18); }
.brand-mark::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); right: -3px; top: -3px; box-shadow: 0 0 10px var(--blue); }
.brand-mark span { font: 700 20px "Space Grotesk", sans-serif; color: #fff; transform: translateY(-1px); }
.brand-copy { display: grid; line-height: 1; gap: 5px; }
.brand-copy strong { font: 700 17px "Space Grotesk", sans-serif; letter-spacing: .13em; }
.brand-copy span { font-size: 8px; letter-spacing: .34em; color: var(--subtle); padding-left: 2px; }
.demo-badge { margin: 0 7px 30px; border: 1px solid rgba(57,185,255,.2); color: #9ddfff; background: rgba(57,185,255,.06); border-radius: 9px; padding: 9px 10px; font-size: 9px; font-weight: 700; letter-spacing: .13em; display: flex; align-items: center; gap: 7px; }
.pulse-dot, .sync-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(57,185,255,.11), 0 0 12px var(--blue); }
.primary-nav { display: grid; gap: 5px; }
.nav-item { width: 100%; display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 12px; padding: 12px 11px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--muted); cursor: pointer; text-align: left; transition: .2s ease; }
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.035); }
.nav-item.is-active { color: #fff; border-color: rgba(124,108,255,.23); background: linear-gradient(90deg, rgba(124,108,255,.16), rgba(57,185,255,.035)); box-shadow: inset 3px 0 0 var(--violet); }
.nav-item .nav-icon { width: 18px; height: 18px; display: grid; place-items: center; }
.nav-item kbd { color: var(--subtle); font-size: 9px; font-weight: 600; letter-spacing: .08em; background: rgba(255,255,255,.035); border-radius: 5px; padding: 3px 5px; }
.nav-item.is-active kbd { color: #afa6ff; background: rgba(124,108,255,.12); }
[data-icon] svg { width: 100%; height: 100%; display: block; }
.sidebar-footer { margin-top: auto; display: grid; gap: 18px; }
.sidebar-note { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 18px 8px 0; color: var(--muted); }
.note-icon { width: 16px; height: 16px; color: var(--lime); }
.sidebar-note strong, .sidebar-user strong { display: block; color: #d9dde6; font-size: 11px; font-weight: 600; }
.sidebar-note small, .sidebar-user small { display: block; color: var(--subtle); font-size: 10px; margin-top: 4px; }
.sidebar-user { display: grid; grid-template-columns: 31px 1fr 26px; align-items: center; gap: 9px; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.avatar, .top-avatar { display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #36416f, #7153aa); color: #e7e6ff; font-size: 10px; font-weight: 700; }
.avatar { width: 31px; height: 31px; }
.icon-button { border: 0; background: transparent; color: var(--subtle); cursor: pointer; display: grid; place-items: center; transition: .2s ease; }
.icon-button:hover { color: var(--text); }
.icon-button span { width: 17px; height: 17px; }
.main-content { min-width: 0; flex: 1; }
.topbar { height: 75px; padding: 0 42px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(9,11,16,.6); }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.breadcrumb-muted { color: var(--subtle); }
.breadcrumb-slash { color: var(--violet); }
.topbar-actions { display: flex; align-items: center; gap: 21px; }
.sync-state { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--muted); }
.topbar-icon { position: relative; }
.notification-dot { width: 5px; height: 5px; position: absolute; right: 0; top: 0; border-radius: 50%; background: var(--violet); box-shadow: 0 0 7px var(--violet); }
.top-avatar { width: 29px; height: 29px; }
.view-container { max-width: 1560px; margin: 0 auto; padding: 38px 42px 60px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.eyebrow { color: var(--blue); font-size: 9px; font-weight: 700; letter-spacing: .18em; }
h1, h2, h3, p { margin: 0; }
h1 { max-width: 730px; margin-top: 9px; font: 600 clamp(26px, 3vw, 40px)/1.1 "Space Grotesk", sans-serif; letter-spacing: -.045em; }
h2 { font: 600 22px/1.2 "Space Grotesk", sans-serif; letter-spacing: -.02em; }
h3 { font-size: 13px; font-weight: 600; }
.page-heading p { color: var(--muted); font-size: 12px; margin-top: 11px; max-width: 600px; line-height: 1.6; }
.heading-actions { display: flex; gap: 9px; flex-shrink: 0; }
.button { border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); border-radius: 9px; color: var(--text); cursor: pointer; padding: 10px 13px; font-size: 11px; font-weight: 600; transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); border-color: rgba(57,185,255,.42); background: rgba(57,185,255,.08); }
.button.primary { border-color: rgba(124,108,255,.55); background: linear-gradient(135deg, rgba(124,108,255,.75), rgba(68,77,210,.75)); box-shadow: 0 9px 24px rgba(82,69,200,.2); }
.button.primary:hover { box-shadow: 0 11px 28px rgba(82,69,200,.33); }
.button.soft-blue { color: #a6e3ff; border-color: rgba(57,185,255,.25); background: var(--blue-soft); }
.button .button-icon { width: 14px; height: 14px; display: inline-block; vertical-align: -3px; margin-right: 5px; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .8fr); gap: 18px; }
.card { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(20,24,33,.94), rgba(13,16,22,.96)); border-radius: var(--radius); box-shadow: var(--shadow); }
.device-hero { min-height: 244px; position: relative; overflow: hidden; padding: 25px 28px; background: radial-gradient(circle at 84% 15%, rgba(124,108,255,.2), transparent 30%), radial-gradient(circle at 60% 120%, rgba(57,185,255,.11), transparent 40%), linear-gradient(115deg, #11151e, #0e1118); }
.device-hero::before { content: ""; position: absolute; inset: auto -60px -110px auto; width: 430px; height: 250px; transform: rotate(-13deg); border: 1px solid rgba(57,185,255,.18); border-radius: 44%; box-shadow: 0 0 0 25px rgba(124,108,255,.04), 0 0 0 50px rgba(57,185,255,.025); }
.device-hero::after { content: ""; position: absolute; width: 220px; height: 220px; right: 25%; top: -120px; border-radius: 50%; background: rgba(124,108,255,.13); filter: blur(70px); }
.hero-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 25px; }
.hero-topline, .card-topline { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.hero-kicker, .tiny-label { color: var(--subtle); font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.demo-tag { color: #b7adff; border: 1px solid rgba(124,108,255,.32); background: rgba(124,108,255,.12); border-radius: 5px; padding: 5px 7px; font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.device-profile { display: flex; align-items: center; gap: 18px; }
.device-visual { width: 55px; height: 70px; border-radius: 13px; border: 2px solid #424858; background: linear-gradient(155deg, #2b3346, #151923); box-shadow: inset 0 0 0 3px #0d1016, 0 15px 30px rgba(0,0,0,.28); display: grid; place-items: center; color: #8cb8e9; transform: rotate(5deg); }
.device-visual span { width: 23px; height: 23px; }
.device-name { font: 600 23px "Space Grotesk", sans-serif; letter-spacing: -.04em; }
.device-subtitle { color: var(--muted); font-size: 11px; margin-top: 7px; }
.device-state { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 6px 8px; border-radius: 6px; background: rgba(255,180,90,.09); color: #ffc77f; border: 1px solid rgba(255,180,90,.15); font-size: 9px; font-weight: 600; }
.device-state i { width: 5px; height: 5px; background: var(--orange); border-radius: 50%; display: inline-block; }
.hero-footer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 650px; }
.hero-stat small { color: var(--subtle); display: block; font-size: 9px; margin-bottom: 7px; }
.hero-stat strong { font: 600 18px "Space Grotesk", sans-serif; }
.hero-stat .stat-trend { font: 9px; color: var(--lime); margin-left: 4px; }
.overview-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.metric-card { padding: 18px 18px 16px; min-height: 113px; display: flex; flex-direction: column; justify-content: space-between; }
.metric-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.metric-icon.blue { color: var(--blue); background: var(--blue-soft); }
.metric-icon.violet { color: #aaa2ff; background: var(--violet-soft); }
.metric-icon.lime { color: var(--lime); background: var(--lime-soft); }
.metric-icon.orange { color: var(--orange); background: rgba(255,180,90,.1); }
.metric-icon span { width: 16px; height: 16px; }
.metric-value { font: 600 24px "Space Grotesk", sans-serif; letter-spacing: -.04em; }
.metric-label { color: var(--muted); font-size: 10px; }
.metric-detail { color: var(--subtle); font-size: 9px; }
.content-section { margin-top: 34px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 15px; margin-bottom: 16px; }
.section-heading p { color: var(--muted); font-size: 11px; margin-top: 6px; }
.text-link { border: 0; background: transparent; color: var(--blue); cursor: pointer; font-size: 10px; font-weight: 600; padding: 4px; }
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.platform-card { padding: 16px; position: relative; overflow: hidden; }
.platform-card::after { content: ""; width: 130px; height: 130px; border-radius: 50%; position: absolute; right: -80px; bottom: -90px; background: rgba(124,108,255,.08); filter: blur(2px); }
.platform-head { display: flex; align-items: center; gap: 11px; }
.platform-logo { width: 33px; height: 33px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.05); color: var(--text); }
.platform-logo.android { color: #9ee77d; background: rgba(158,231,125,.1); }
.platform-logo.shizuku { color: #c0b9ff; background: rgba(124,108,255,.12); }
.platform-logo.apple { color: #e2e7f0; background: rgba(255,255,255,.09); }
.platform-logo span { width: 17px; height: 17px; }
.platform-title { font-size: 12px; font-weight: 600; }
.platform-meta { color: var(--subtle); font-size: 9px; margin-top: 4px; }
.status-line { display: flex; align-items: center; gap: 7px; margin-top: 17px; font-size: 10px; color: #d7dbe4; }
.status-line .status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px rgba(255,180,90,.65); }
.status-line .status-dot.lime { background: var(--lime); box-shadow: 0 0 10px rgba(184,243,106,.65); }
.status-line .status-dot.red { background: var(--red); box-shadow: 0 0 10px rgba(255,111,141,.55); }
.platform-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 17px; }
.compatibility { font-size: 9px; color: var(--subtle); line-height: 1.35; }
.mini-button { border: 1px solid var(--line-strong); border-radius: 7px; padding: 7px 8px; background: rgba(255,255,255,.035); color: var(--muted); cursor: pointer; font-size: 9px; transition: .2s ease; }
.mini-button:hover { color: #fff; border-color: rgba(57,185,255,.4); background: var(--blue-soft); }
.modules-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.module-card { padding: 14px; min-height: 112px; cursor: pointer; transition: .22s ease; position: relative; }
.module-card:hover { border-color: rgba(124,108,255,.35); transform: translateY(-3px); background: linear-gradient(145deg, rgba(29,31,49,.95), rgba(13,16,22,.98)); }
.module-card .module-icon { width: 26px; height: 26px; color: var(--violet); margin-bottom: 14px; }
.module-card:nth-child(2n) .module-icon { color: var(--blue); }
.module-card h3 { font-size: 11px; }
.module-card p { color: var(--subtle); font-size: 9px; line-height: 1.45; margin-top: 6px; }
.module-arrow { position: absolute; right: 13px; bottom: 14px; color: var(--subtle); font-size: 13px; }

.view-banner { padding: 25px 28px; position: relative; overflow: hidden; margin-bottom: 18px; }
.view-banner::before { content: ""; position: absolute; right: -80px; top: -140px; width: 400px; height: 400px; border-radius: 50%; border: 1px solid rgba(124,108,255,.14); box-shadow: 0 0 0 28px rgba(57,185,255,.025), 0 0 0 56px rgba(124,108,255,.025); }
.view-banner-content { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.view-banner p { color: var(--muted); font-size: 11px; line-height: 1.55; margin-top: 8px; max-width: 620px; }
.banner-mark { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid rgba(124,108,255,.35); border-radius: 14px; color: #b3aaff; background: linear-gradient(140deg, rgba(124,108,255,.19), rgba(57,185,255,.07)); box-shadow: 0 0 35px rgba(124,108,255,.12); }
.banner-mark span { width: 23px; height: 23px; }
.connection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.connection-card { padding: 19px; min-height: 230px; display: flex; flex-direction: column; }
.connection-card .platform-head { margin-bottom: auto; }
.connection-note { color: var(--muted); font-size: 10px; line-height: 1.55; margin: 18px 0; }
.connection-actions { display: flex; gap: 8px; }
.connection-actions .button { flex: 1; padding: 9px 7px; font-size: 10px; }
.connection-state { color: #ffc77f; font-size: 10px; display: flex; align-items: center; gap: 7px; }
.connection-state strong { color: #e9edf5; font-weight: 600; }
.connection-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

.gaming-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 24px 25px; margin-bottom: 16px; background: radial-gradient(circle at 92% 30%, rgba(124,108,255,.18), transparent 26%), radial-gradient(circle at 56% 100%, rgba(57,185,255,.08), transparent 35%), linear-gradient(120deg, rgba(18,22,31,.98), rgba(17,16,31,.98)); }
.gaming-label { display: inline-flex; align-items: center; gap: 7px; color: #c1baff; font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.gaming-label .gaming-dot { width: 7px; height: 7px; border-radius: 2px; background: linear-gradient(135deg, var(--blue), var(--violet)); transform: rotate(45deg); box-shadow: 0 0 12px rgba(124,108,255,.8); }
.gaming-header h2 { margin-top: 9px; font-size: 27px; }
.gaming-header p { margin-top: 8px; max-width: 625px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.sandbox-lock { padding: 12px 13px; border: 1px solid rgba(184,243,106,.17); background: rgba(184,243,106,.06); border-radius: 10px; min-width: 186px; }
.sandbox-lock small { color: var(--lime); display: block; font-size: 8px; letter-spacing: .13em; font-weight: 700; }
.sandbox-lock strong { display: block; margin-top: 7px; font-size: 11px; }
.sandbox-lock span { display: block; color: var(--subtle); font-size: 9px; margin-top: 4px; }
.gaming-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.control-card { padding: 17px; min-height: 154px; display: flex; flex-direction: column; gap: 17px; }
.control-card.small { grid-column: span 3; }
.control-card.slider-card { grid-column: span 3; }
.control-card.crosshair-card { grid-column: span 3; }
.control-card.fps-card { grid-column: span 3; }
.control-card.graphics-card { grid-column: span 5; min-height: 215px; }
.control-card.performance-card { grid-column: span 7; min-height: 215px; }
.control-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.control-title h3 { font-size: 12px; }
.control-title p { color: var(--subtle); font-size: 9px; margin-top: 4px; }
.control-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); }
.control-icon.violet { color: #b3aaff; background: var(--violet-soft); }
.control-icon.lime { color: var(--lime); background: var(--lime-soft); }
.control-icon.orange { color: var(--orange); background: rgba(255,180,90,.1); }
.control-icon span { width: 15px; height: 15px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.toggle-copy { color: var(--subtle); font-size: 9px; }
.toggle { width: 41px; height: 23px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 99px; background: rgba(255,255,255,.06); cursor: pointer; transition: .22s ease; }
.toggle::after { content: ""; display: block; width: 15px; height: 15px; border-radius: 50%; background: #697184; transition: .22s ease; }
.toggle.is-on { border-color: rgba(57,185,255,.55); background: linear-gradient(90deg, rgba(57,185,255,.38), rgba(124,108,255,.55)); box-shadow: 0 0 17px rgba(57,185,255,.16); }
.toggle.is-on::after { transform: translateX(17px); background: #fff; box-shadow: 0 0 10px var(--blue); }
.state-label { color: var(--subtle); font-size: 9px; }
.state-label.is-on { color: #aee7ff; }
.range-wrap { margin-top: auto; }
.range-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.range-value { color: #dce9ff; font: 600 16px "Space Grotesk", sans-serif; }
.range-unit { color: var(--subtle); font-size: 9px; }
input[type="range"] { appearance: none; width: 100%; height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--blue) 0%, var(--violet) var(--fill, 50%), rgba(255,255,255,.1) var(--fill, 50%), rgba(255,255,255,.1) 100%); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 13px; height: 13px; border: 2px solid #fff; border-radius: 50%; background: var(--violet); box-shadow: 0 0 12px var(--violet); }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: var(--violet); box-shadow: 0 0 12px var(--violet); }
.crosshair-options { display: flex; gap: 6px; margin-top: auto; }
.crosshair-option { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 9px 5px; background: rgba(255,255,255,.025); color: var(--muted); cursor: pointer; font-size: 10px; transition: .2s ease; }
.crosshair-option:hover, .crosshair-option.is-selected { border-color: rgba(124,108,255,.55); background: var(--violet-soft); color: #ddd9ff; }
.crosshair-preview { height: 20px; display: grid; place-items: center; color: var(--blue); font-size: 17px; line-height: 1; margin-bottom: 4px; }
.fps-readout { display: flex; align-items: flex-end; gap: 6px; margin-top: auto; }
.fps-readout strong { font: 600 33px "Space Grotesk", sans-serif; line-height: .9; color: var(--lime); }
.fps-readout span { color: var(--subtle); font-size: 10px; padding-bottom: 2px; }
.mini-meter { height: 4px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 11px; }
.mini-meter span { display: block; height: 100%; width: 82%; background: linear-gradient(90deg, var(--blue), var(--violet)); border-radius: inherit; box-shadow: 0 0 10px rgba(57,185,255,.5); transition: width .3s ease; }
.preset-row { display: flex; gap: 6px; margin-top: auto; }
.preset { flex: 1; padding: 9px 5px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: rgba(255,255,255,.025); cursor: pointer; font-size: 9px; }
.preset.is-selected { color: #e2dfff; border-color: rgba(124,108,255,.55); background: var(--violet-soft); }
.performance-layout { display: grid; grid-template-columns: 1fr 205px; gap: 14px; height: 100%; }
.chart-wrap { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.chart { min-height: 135px; width: 100%; border-radius: 10px; background: linear-gradient(180deg, rgba(57,185,255,.05), transparent), repeating-linear-gradient(0deg, transparent 0 32px, rgba(255,255,255,.045) 33px), repeating-linear-gradient(90deg, transparent 0 65px, rgba(255,255,255,.035) 66px); overflow: hidden; }
.chart svg { width: 100%; height: 100%; min-height: 135px; }
.chart-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.chart-stat { border-left: 2px solid var(--blue); padding-left: 8px; }
.chart-stat:nth-child(2) { border-color: var(--violet); }
.chart-stat:nth-child(3) { border-color: var(--lime); }
.chart-stat small { display: block; color: var(--subtle); font-size: 8px; }
.chart-stat strong { display: block; font: 600 15px "Space Grotesk", sans-serif; margin-top: 4px; }
.performance-list { display: grid; align-content: center; gap: 13px; }
.performance-item { display: grid; gap: 6px; }
.performance-item .item-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }
.performance-item .item-head strong { color: var(--text); font-size: 10px; }
.performance-item .item-bar { height: 4px; border-radius: 99px; background: rgba(255,255,255,.07); }
.performance-item .item-bar span { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.performance-item:nth-child(2) .item-bar span { background: var(--violet); }
.performance-item:nth-child(3) .item-bar span { background: var(--lime); }

.monitor-layout { display: grid; grid-template-columns: 1.35fr .65fr; gap: 16px; }
.monitor-card { padding: 20px; }
.big-chart { height: 285px; margin-top: 20px; }
.feed-list { display: grid; gap: 0; margin-top: 13px; }
.feed-item { display: flex; gap: 11px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: 0; }
.feed-marker { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); flex: 0 0 auto; }
.feed-marker.violet { background: var(--violet); box-shadow: 0 0 10px var(--violet); }
.feed-marker.lime { background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.feed-item strong { display: block; font-size: 11px; font-weight: 500; }
.feed-item small { display: block; color: var(--subtle); font-size: 9px; margin-top: 4px; }
.setting-list { display: grid; gap: 0; margin-top: 10px; }
.setting-row { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; }
.setting-row strong { font-size: 11px; font-weight: 500; }
.setting-row p { color: var(--subtle); font-size: 9px; margin-top: 4px; }
.settings-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.empty-note { padding: 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); color: var(--muted); font-size: 11px; line-height: 1.6; }

.toast-region { position: fixed; right: 24px; bottom: 24px; z-index: 20; display: grid; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; padding: 11px 13px; background: #191e2a; border: 1px solid rgba(57,185,255,.3); border-radius: 9px; box-shadow: 0 15px 35px rgba(0,0,0,.35); color: #dfe7f4; font-size: 10px; animation: toast-in .24s ease both; }
.toast strong { font-weight: 600; }
.toast i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); }
@keyframes toast-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes page-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.page-enter { animation: page-in .25s ease both; }

@media (max-width: 1200px) {
  .sidebar { width: 222px; }
  .view-container, .topbar { padding-left: 28px; padding-right: 28px; }
  .modules-grid { grid-template-columns: repeat(3, 1fr); }
  .control-card.small, .control-card.slider-card, .control-card.crosshair-card, .control-card.fps-card { grid-column: span 4; }
  .control-card.graphics-card { grid-column: span 5; }
  .control-card.performance-card { grid-column: span 7; }
}
@media (max-width: 900px) {
  .sidebar { width: 74px; padding: 22px 10px 16px; }
  .brand-block { padding-left: 9px; }
  .brand-copy, .demo-badge, .nav-item span:not(.nav-icon), .nav-item kbd, .sidebar-footer { display: none; }
  .brand-block { justify-content: center; }
  .primary-nav { margin-top: 26px; }
  .nav-item { display: grid; grid-template-columns: 1fr; justify-items: center; padding: 13px 8px; }
  .view-container { padding-top: 28px; }
  .hero-grid, .monitor-layout, .settings-grid { grid-template-columns: 1fr; }
  .overview-stats { grid-template-columns: repeat(4, 1fr); }
  .metric-card { min-height: 105px; }
  .platform-grid, .connection-grid { grid-template-columns: 1fr 1fr; }
  .platform-card:last-child, .connection-card:last-child { grid-column: 1 / -1; }
  .control-card.small, .control-card.slider-card, .control-card.crosshair-card, .control-card.fps-card { grid-column: span 6; }
  .control-card.graphics-card, .control-card.performance-card { grid-column: span 12; }
}
@media (max-width: 620px) {
  .sidebar { position: fixed; inset: auto 0 0; width: 100%; height: 68px; padding: 6px 9px; border-right: 0; border-top: 1px solid var(--line); background: rgba(12,14,20,.96); }
  .brand-block { display: none; }
  .primary-nav { height: 100%; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .nav-item { border-radius: 10px; padding: 10px 4px; }
  .nav-item.is-active { box-shadow: inset 0 3px 0 var(--violet); }
  .main-content { padding-bottom: 68px; }
  .topbar { height: 65px; padding: 0 18px; }
  .sync-state { display: none; }
  .view-container { padding: 25px 16px 38px; }
  .page-heading { display: block; margin-bottom: 22px; }
  .page-heading h1 { font-size: 29px; }
  .heading-actions { margin-top: 18px; }
  .heading-actions .button { width: 100%; }
  .hero-grid, .overview-stats, .platform-grid, .connection-grid { grid-template-columns: 1fr; }
  .platform-card:last-child, .connection-card:last-child { grid-column: auto; }
  .device-hero { padding: 21px; }
  .hero-footer { gap: 10px; }
  .hero-stat strong { font-size: 16px; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading { align-items: flex-start; }
  .gaming-header { display: block; padding: 20px; }
  .sandbox-lock { margin-top: 17px; }
  .control-card.small, .control-card.slider-card, .control-card.crosshair-card, .control-card.fps-card, .control-card.graphics-card, .control-card.performance-card { grid-column: span 12; }
  .performance-layout { grid-template-columns: 1fr; }
  .chart-stats { margin-bottom: 4px; }
  .topbar-actions { gap: 14px; }
  h2 { font-size: 20px; }
}
