/* ==========================================================================
   my_computer_panel —— 1:1 复刻 Windows 11 任务管理器「性能」页
   尺寸单位：CSS px（参考截图 1937×1275 物理像素 = 150% 缩放下的 1291×850 CSS px）
   ========================================================================== */

:root {
  --font: "Segoe UI Variable Text", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei",
          -apple-system, "PingFang SC", system-ui, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", "Microsoft YaHei UI",
                  -apple-system, "PingFang SC", system-ui, sans-serif;

  --nav-w: 162px;
  --list-w: 361px;
  --tb-h: 41.5px;
  --hdr-h: 40px;
  --radius-item: 4px;
  --radius-content: 8px;

  --c-cpu: #10a8c8;
  --c-mem: #9a6ee0;
  --c-disk: #22b573;
  --c-net: #d94a92;
  --c-gpu: #7fae1e;
}

/* ---------- 浅色（与参考截图逐像素对齐） ---------- */
html[data-theme="light"] {
  --bg-chrome: #f3f3f3;        /* 标题栏 + 导航栏 */
  --bg: #ffffff;               /* 内容区 */
  --bg-select: #f6f6f6;        /* 列表选中项 */
  --bg-select-nav: #eaeaea;    /* 导航选中项 */
  --bg-hover: #ededed;
  --line: #e5e5e5;             /* 标题栏下沿 */
  --pane-border: #757575;      /* 图表外框 */
  --grid: #ebebeb;             /* 图表网格 */
  --text: #1a1a1a;
  --text-2: #5f5f5f;
  --text-3: #5f5f5f;
  --text-nav: #3b3b3b;
  --title-bar-text: #4d4d4d;
  --fill: #c3ecfa;             /* 曲线填充（纯色） */
  --stroke: #006f91;           /* 曲线 */
  --scroll: rgba(0, 0, 0, .28);
  --accent: #0067c0;
  --c-cpu: #006f91;
  --c-mem: #7c52c9;
  --c-disk: #1a8f5f;
  --c-net: #c03a7c;
  --c-gpu: #5f8a10;
  --fill-cpu: #c3ecfa;
  --fill-mem: #e2d8f7;
  --fill-disk: #cbf0e1;
  --fill-net: #fad8e8;
  --fill-gpu: #e6f1cd;
  /* 列表左侧的小圆点：任务管理器用的是更浅的一档颜色 */
  --dot-cpu: #94c4e8;
  --dot-mem: #cbd2f9;
  --dot-disk: #b6d7d7;
  --dot-net: #f6c4e5;
  --dot-gpu: #cfc1e3;
  --g-temp: #d9480f;
  --g-fan: #1c7ed6;
  --g-volt: #c98a00;
  --g-power: #7048e8;
  --warn-bg: #fdeaea;
  --warn-ink: #8c1d18;
  --warn-line: #f3c9c7;
  color-scheme: light;
}

/* ---------- 深色 ---------- */
html[data-theme="dark"] {
  --bg-chrome: #202020;
  --bg: #272727;
  --bg-select: #323232;
  --bg-select-nav: #333333;
  --bg-hover: #2c2c2c;
  --line: #333333;
  --pane-border: #4a4a4a;
  --grid: rgba(255, 255, 255, .1);
  --text: #ffffff;
  --text-2: #c8c8c8;
  --text-3: #a0a0a0;
  --text-nav: #e5e5e5;
  --title-bar-text: #cfcfcf;
  --fill: rgba(76, 194, 255, .22);
  --stroke: #4cc2ff;
  --scroll: rgba(255, 255, 255, .28);
  --accent: #4cc2ff;
  --c-cpu: #4cc2ff;
  --c-mem: #b48ef0;
  --c-disk: #46c79b;
  --c-net: #f06fa8;
  --c-gpu: #a5d95f;
  --fill-cpu: rgba(76, 194, 255, .24);
  --fill-mem: rgba(180, 142, 240, .24);
  --fill-disk: rgba(70, 199, 155, .24);
  --fill-net: rgba(240, 111, 168, .24);
  --fill-gpu: rgba(165, 217, 95, .24);
  --dot-cpu: #4cc2ff;
  --dot-mem: #b48ef0;
  --dot-disk: #46c79b;
  --dot-net: #f06fa8;
  --dot-gpu: #a5d95f;
  --g-temp: #ff8a65;
  --g-fan: #4cc2ff;
  --g-volt: #ffd166;
  --g-power: #b48ef0;
  --warn-bg: #3b1f1f;
  --warn-ink: #ffb4ab;
  --warn-line: #52282a;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg-chrome);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5;
      stroke-linecap: round; stroke-linejoin: round; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

/* ---------- 铺满整个视口 ---------- */
.stage { height: 100%; }

.win {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-chrome);
  overflow: hidden;
}

/* ---------- 标题栏 ---------- */
.titlebar {
  height: var(--tb-h);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
  background: var(--bg-chrome);
  border-bottom: 1px solid var(--line);
  user-select: none;
}

.app-icon { width: 17px; height: 17px; flex: 0 0 auto; display: block; }

.titlebar__title {
  font-size: 15.5px;
  color: var(--title-bar-text);
  letter-spacing: .1px;
}

.titlebar__spacer { flex: 1 1 auto; }

.wc-group { display: flex; height: 100%; align-items: center; }
.wc {
  width: 46px;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--title-bar-text);
}
.wc svg { width: 12px; height: 12px; stroke-width: 1; }
.wc:hover { background: var(--bg-hover); color: var(--text); }
.wc--close:hover { background: #c42b1c; color: #fff; }

/* 汉堡菜单：位于标题栏下方左侧的导航条顶部 */
.tb-btn--menu {
  width: 34px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: var(--text-nav);
  margin: 0 0 2px 2px;
  flex: 0 0 auto;
}
.tb-btn--menu:hover { background: var(--bg-hover); }
.tb-btn--menu svg { width: 17px; height: 17px; }
.tb-btn--menu--mobile { display: none; margin-left: 2px; }

/* 导航折叠（点汉堡） */
body.nav-collapsed { --nav-w: 52px; }
body.nav-collapsed .nav__item span,
body.nav-collapsed .nav__status span { display: none; }
body.nav-collapsed .nav__item { justify-content: center; padding: 0; }
body.nav-collapsed .nav__status { justify-content: center; }

/* ---------- 主体骨架 ---------- */
.shell {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: var(--nav-w) minmax(0, 1fr);
  min-height: 0;
}

/* ---------- 左侧导航 ---------- */
.nav {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg-chrome);
  padding: 2px 5px 6px;
}

.nav__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  height: 25px;
  padding: 0 8px 0 7px;
  border-radius: var(--radius-item);
  font-size: 16.5px;
  color: var(--text-nav);
  text-align: left;
}
.nav__item:hover { background: var(--bg-hover); }
.nav__item.is-active { background: var(--bg-select-nav); }
.nav__item.is-active::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 16px;
  border-radius: 1px;
  background: var(--accent);
}
.nav__icon { width: 16px; height: 16px; flex: 0 0 auto; color: var(--text-2); }
.nav__item.is-active .nav__icon { color: var(--text); }

.nav__foot { flex: 0 0 auto; padding-top: 4px; }

.nav__status {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px 2px;
  font-size: 11.5px;
  color: var(--text-2);
}
.nav__status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-disk);
}
.nav__status.is-bad .dot { background: #d13438; }

/* ---------- 内容区（白色卡片，左上圆角） ---------- */
.content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--bg);
  border-top-left-radius: var(--radius-content);
}

.content__header {
  height: var(--hdr-h);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 0 11px;
  border-bottom: 1px solid var(--line);
}

.content__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: .2px;
}

.content__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 10px;
  border-radius: var(--radius-item);
  font-size: 14.5px;
  color: var(--text);
}
.ghost-btn:hover { background: var(--bg-hover); }
.ghost-btn svg { width: 16px; height: 16px; }

.icon-btn {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: var(--radius-item);
  color: var(--text);
}
.icon-btn:hover { background: var(--bg-hover); }
.icon-btn svg { width: 17px; height: 17px; }

/* ⋯ 菜单 */
.menu {
  position: absolute;
  right: 0;
  top: 34px;
  min-width: 176px;
  padding: 5px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
  z-index: 30;
}
.menu[hidden] { display: none; }
.menu__item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 32px;
  padding: 0 9px;
  border-radius: 4px;
  font-size: 13.5px;
  color: var(--text);
  text-align: left;
}
.menu__item:hover { background: var(--bg-hover); }
.menu__item svg { width: 15px; height: 15px; color: var(--text-2); }
.menu__sep { height: 1px; margin: 5px 4px; background: var(--line); }
.menu__label { padding: 6px 9px 4px; font-size: 11.5px; color: var(--text-2); }

/* 采集端掉线提示条 */
.offline-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--warn-ink);
  background: var(--warn-bg);
  border-bottom: 1px solid var(--warn-line);
}
.offline-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #d13438;
  animation: offline-pulse 1.4s ease-in-out infinite;
}
@keyframes offline-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.view {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}
[hidden] { display: none !important; }

/* ---------- 性能视图 ---------- */
#view-performance {
  position: relative;
  display: grid;
  grid-template-columns: var(--list-w) minmax(0, 1fr);
}

/* 列表与详情之间的可拖动分隔条（静止时不可见，和任务管理器一样） */
.splitter {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--list-w) - 3px);
  width: 6px;
  z-index: 6;
  cursor: col-resize;
  touch-action: none;
  background: transparent;
}
.splitter::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: transparent;
  transition: background-color .12s ease;
}
.splitter:hover::after,
.splitter:focus-visible::after,
.splitter.is-dragging::after { background: var(--scroll); }
.splitter:focus-visible { outline: none; }
body.is-resizing { cursor: col-resize; }
body.is-resizing * { user-select: none !important; }

.components {
  min-height: 0;
  overflow-y: auto;
  padding: 5px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.comp {
  position: relative;
  width: auto;
  margin: 0 4px;
  padding: 4px 10px 4px 6px;
  border-radius: var(--radius-item);
  text-align: left;
  color: var(--text-2);
}
.comp:hover { background: var(--bg-hover); }
.comp.is-active { background: var(--bg-select); }

.comp__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  color: var(--text);
  font-weight: 400;
  line-height: 28px;
  min-width: 0;
}
.comp__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.comp__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--dot);
  flex: 0 0 auto;
}
.comp__sub {
  display: block;
  margin: 0 0 0 21px;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 详情 ---------- */
.detail {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding: 1px 15px 0 19px;
  display: flex;
  flex-direction: column;
}

.detail__head {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 40px;
}
.detail__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 40px;
  font-weight: 400;
  letter-spacing: -.3px;
  color: var(--text);
}
.detail__device {
  margin-left: auto;
  font-size: 20.5px;
  color: var(--text);
  text-align: right;
  font-weight: 400;
}

.detail__sub {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 2px;
  font-size: 14px;
  color: var(--text-2);
}
.detail__sub .max { margin-left: auto; }

/* ---------- 图表 ---------- */
.chart-area {
  flex: 1 1 auto;
  min-height: 200px;
  display: grid;
  grid-auto-rows: minmax(56px, 1fr);
  column-gap: 4px;
  row-gap: 0;
  border: 1px solid var(--pane-border);
  background: var(--bg);
}
.chart-area--cores { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chart-area--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.pane {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: var(--bg);
}
.pane--edge-r { border-right: 1px solid var(--pane-border); }
.pane--edge-b { border-bottom: 1px solid var(--pane-border); }
.pane canvas { display: block; width: 100%; height: 100%; }

.pane__tag {
  position: absolute;
  left: 8px;
  top: 4px;
  font-size: 12px;
  color: var(--text-2);
  pointer-events: none;
}

/* ---------- 统计块 ---------- */
.stats {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: max-content max-content;
  justify-content: start;
  gap: 0 44px;
  margin-top: 22px;
  align-items: start;
}

.stat-groups { display: flex; flex-direction: column; gap: 4px; }

.stat-line { display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap; }

.stat { display: flex; flex-direction: column; }
.stat__label { font-size: 15px; color: var(--text-2); line-height: 20px; white-space: nowrap; }
.stat__value {
  font-size: 15px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat__value--big { font-size: 32px; line-height: 40px; font-weight: 400; letter-spacing: -.2px; }

.specs {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 0 22px;
  margin: 0;
  font-size: 13px;
  line-height: 22px;
}
.specs dt { color: var(--text-2); white-space: nowrap; }
.specs dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- 进程视图 ---------- */
.view--processes {
  flex-direction: column;
  padding: 4px 16px 0;
  min-height: 0;
}

.proc-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
}
.proc-count { font-size: 19px; }
.proc-hint { font-size: 12.5px; color: var(--text-2); }

.proc-table {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.proc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px 96px 64px 84px;
  gap: 10px;
  align-items: center;
  padding: 7px 12px;
  font-size: 13.5px;
}
.proc-row--header {
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  font-size: 12.5px;
}

.proc-body { overflow-y: auto; min-height: 0; }

.proc-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px 96px 64px 84px;
  gap: 10px;
  align-items: center;
  padding: 6px 12px;
  font-size: 13.5px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}
.proc-item:hover { background: var(--bg-hover); }
.proc-item__name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.proc-item__name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proc-badge {
  width: 19px; height: 19px; border-radius: 4px;
  display: grid; place-items: center;
  font-size: 10.5px; font-weight: 600;
  background: var(--bg-hover);
  color: var(--text-2);
  flex: 0 0 auto;
  text-transform: uppercase;
}
.proc-item__num { text-align: right; color: var(--text); }
.proc-group {
  padding: 12px 12px 4px;
  font-size: 12.5px;
  color: var(--text-2);
}

/* ---------- 传感器视图 ---------- */
.view--sensors {
  flex-direction: column;
  padding: 6px 16px 0;
  min-height: 0;
}

.sensors {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.sensors__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}
.sensors__source { font-size: 13px; color: var(--text-2); }
.sensors__age { font-size: 12.5px; color: var(--text-2); }
.sensors__refresh { margin-left: auto; }

.sensor-table {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.sensor-row,
.sensor-item {
  display: grid;
  grid-template-columns: minmax(0, 68%) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 6px 4px;
}

.sensor-row--header {
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text-2);
  padding-bottom: 9px;
}

.sensor-body {
  overflow-y: auto;
  min-height: 0;
  padding-bottom: 20px;
}

.sensor-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 4px 4px;
  font-size: 15.5px;
  color: var(--text);
}
.sensor-group svg { width: 16px; height: 16px; color: var(--dot, var(--text-2)); }

.sensor-item { font-size: 15px; }
.sensor-item__name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sensor-item__name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sensor-item__dot {
  width: 10px; height: 10px;
  border-radius: 2px;
  flex: 0 0 auto;
  background: var(--dot);
}
.sensor-item__value { font-variant-numeric: tabular-nums; color: var(--text); }

.sensor-empty {
  max-width: 660px;
  padding: 20px 4px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-2);
}
.sensor-empty h3 { margin: 0 0 10px; font-size: 16px; color: var(--text); font-weight: 600; }
.sensor-empty ol { margin: 10px 0 0; padding-left: 20px; }
.sensor-empty li { margin-bottom: 6px; }
.sensor-empty code {
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: 12.5px;
  background: var(--bg-hover);
  padding: 1px 6px;
  border-radius: 4px;
}
.sensor-empty .sensor-empty__actions { margin-top: 16px; }

/* ---------- 占位视图 ---------- */
.view--placeholder { align-items: center; justify-content: center; padding: 24px; }
.placeholder { max-width: 420px; text-align: center; color: var(--text-2); }
.placeholder__icon {
  width: 48px; height: 48px; margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--bg-hover);
  color: var(--accent);
}
.placeholder__icon svg { width: 22px; height: 22px; }
.placeholder h3 { margin: 0 0 8px; font-size: 16px; color: var(--text); font-weight: 600; }
.placeholder p { margin: 0; font-size: 13px; line-height: 1.6; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 16px);
  padding: 9px 15px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 40;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 滚动条 ---------- */
* { scrollbar-width: thin; scrollbar-color: var(--scroll) transparent; }
*::-webkit-scrollbar { width: 14px; height: 14px; }
*::-webkit-scrollbar-thumb {
  background: var(--scroll);
  border-radius: 7px;
  border: 4px solid transparent;
  background-clip: content-box;
}
*::-webkit-scrollbar-track { background: transparent; }

/* ==========================================================================
   响应式（窗口变窄时保持同样的观感，只压缩布局）
   ========================================================================== */
@media (max-width: 1180px) {
  :root { --nav-w: 150px; --list-w: 300px; }
  .chart-area--cores { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail__name { font-size: 34px; }
  .detail__device { font-size: 17px; }
}

@media (max-width: 980px) {
  :root { --nav-w: 56px; --list-w: 250px; }
  .nav__item span { display: none; }
  .nav__item { justify-content: center; padding: 0; }
  .nav__status span { display: none; }
  .nav__status { justify-content: center; }
  .chart-area--cores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .detail__name { font-size: 30px; }
}

@media (max-width: 760px) {
  :root { --nav-w: 0px; --hdr-h: 46px; --tb-h: 44px; }
  body.nav-collapsed { --nav-w: 0px; }
  .content { border-top-left-radius: 0; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .wc-group { display: none; }
  .tb-btn--menu--mobile { display: grid; }
  #navToggle { display: none; }

  .nav {
    position: fixed;
    z-index: 30;
    top: var(--tb-h);
    bottom: 0;
    left: 0;
    width: 74vw;
    max-width: 300px;
    transform: translateX(-102%);
    transition: transform .22s ease;
    box-shadow: 0 0 30px rgba(0, 0, 0, .3);
  }
  .nav.is-open { transform: none; }
  .nav__item span { display: inline; }
  .nav__item { justify-content: flex-start; padding: 0 10px; height: 36px; }
  .nav__status span { display: inline; }

  .content__header { padding: 0 8px; }
  .content__title { font-size: 17px; }
  .ghost-btn span { display: none; }

  #view-performance { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .splitter { display: none; }

  .components {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 6px;
    padding: 6px 8px 8px;
    border-bottom: 1px solid var(--line);
  }
  .comp {
    flex: 0 0 auto;
    margin: 0;
    min-width: 104px;
    padding: 7px 12px 9px;
    background: var(--bg-hover);
  }
  .comp__sub { margin-left: 0; white-space: nowrap; }

  .detail { padding: 12px 12px 20px; }
  .detail__head { display: block; min-height: 0; }
  .detail__name { font-size: 28px; line-height: 34px; }
  .detail__device {
    display: block;
    font-size: 13px;
    text-align: left;
    margin: 2px 0 0;
    width: auto;
  }
  .detail__sub { font-size: 12px; margin: 6px 0 8px; }

  .chart-area { flex: 0 0 auto; min-height: 0; grid-auto-rows: 64px; }
  .chart-area--cores { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chart-area--duo { grid-template-columns: minmax(0, 1fr); }
  .stat__value--big { font-size: 22px; line-height: 28px; }
  .stat__label { font-size: 13px; line-height: 18px; }
  .stats { margin-top: 16px; }
  .stat-groups { gap: 8px; }
  .specs { font-size: 12.5px; line-height: 20px; }

  .view--processes { padding: 8px 10px 0; }
  .proc-row, .proc-item { grid-template-columns: minmax(0, 1fr) 58px 72px; }
  .col-threads, .proc-item__threads, .col-handles, .proc-item__handles { display: none; }

  .view--sensors { padding: 6px 12px 0; }
  .sensor-row, .sensor-item { grid-template-columns: minmax(0, 62%) minmax(0, 1fr); gap: 10px; }
  .sensor-item { font-size: 14px; }
  .sensor-group { font-size: 14.5px; padding-top: 14px; }
  .sensors__refresh { margin-left: 0; }

  .toast { bottom: 16px; left: 16px; right: 16px; transform: translateY(16px); text-align: center; }
  .toast.is-on { transform: none; }
}

@media (max-width: 360px) {
  .chart-area--cores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-area { grid-auto-rows: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
