/* ============================================================
   Branch E — Firefox, App Center, Mines, Chess, System Monitor
   Yaru 26.04 values via CSS vars from theme.css
   ============================================================ */

:root {
  --chess-light: #f0ece2;
  --chess-dark: #c8b99a;
  --chess-border: rgba(0, 0, 0, 0.2);
}
:root[data-theme="dark"] {
  --chess-light: #45454c;
  --chess-dark: #2a2a30;
  --chess-border: rgba(255, 255, 255, 0.12);
}

/* ============================================================
   Firefox
   ============================================================ */
.ff-tabstrip {
  display: flex; align-items: stretch; gap: 6px;
  padding: 8px 10px 0;
  background: var(--headerbar-bg);
  border-bottom: 1px solid var(--headerbar-border);
  flex: none;
}
.ff-tab {
  display: flex; align-items: center; gap: 8px;
  min-width: 96px; max-width: 200px;
  padding: 7px 8px;
  border-radius: 9px 9px 0 0;
  color: var(--fg-dim); font-size: var(--fs-s);
  cursor: default; position: relative;
}
.ff-tab:hover { background: var(--row-hover); color: var(--window-fg); }
.ff-tab.active {
  background: var(--window-bg); color: var(--window-fg);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.07);
}
.ff-tab .ff-fav {
  width: 16px; height: 16px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px; color: #fff; font-size: 9px; font-weight: 700;
}
.ff-tab .ff-ttitle {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ff-tab .ff-tclose {
  width: 18px; height: 18px; flex: none;
  border: none; background: transparent; border-radius: 50%;
  color: var(--fg-faint);
  display: flex; align-items: center; justify-content: center;
}
.ff-tab .ff-tclose:hover { background: var(--row-hover); color: var(--window-fg); }
.ff-tab .ff-tclose svg { width: 12px; height: 12px; }
.ff-newtab { width: 30px; flex: none; align-self: center; }
.ff-tabstrip .ff-tabflex { flex: 1; }

.ff-toolbar {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 10px;
  background: var(--window-bg);
  border-bottom: 1px solid var(--headerbar-border);
  flex: none;
}
.ff-nav { display: flex; gap: 2px; }
.ff-nav .icon-btn { width: 32px; height: 32px; }
.ff-nav .icon-btn.disabled { opacity: 0.35; pointer-events: none; }
.ff-addr { flex: 1; }
.ff-addr .entry-icon { color: var(--fg-dim); }
.ff-addr input { font-size: var(--fs-m); }
.ff-tabs-row { display: flex; align-items: stretch; gap: 4px; flex: 1; min-width: 0; }
.ff-tabs-row .ff-tabflex { display: flex; gap: 6px; flex: 1; min-width: 0; }
.ff-dd-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px; cursor: default;
}
.ff-dd-row:hover, .ff-dd-row.sel { background: var(--menu-hover); }
.ff-dd-row .ff-fav { width: 16px; height: 16px; flex: none; border-radius: 4px; }
.ff-dd-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-s); }
.ff-dd-url { color: var(--fg-dim); font-size: var(--fs-xs); }
.ff-dd-search { color: var(--fg-dim); font-size: var(--fs-s); }
.ff-progress { height: 3px; flex: none; position: relative; background: transparent; }
.ff-progress i {
  position: absolute; inset: 0; width: 0%;
  background: var(--accent);
  transition: width 120ms ease-out;
}
.ff-view {
  flex: 1; min-height: 0;
  overflow: auto;
  background: var(--window-bg); color: var(--window-fg);
}

/* start page */
.ff-start {
  max-width: 780px; margin: 0 auto; padding: 48px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 30px;
}
.ff-start-logo {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 40px; font-weight: 600; color: var(--accent);
}
.ff-start-logo .sub { font-size: var(--fs-s); font-weight: 400; color: var(--fg-dim); }
.ff-searchpill {
  width: 100%; max-width: 520px; min-height: 46px;
  border-radius: 999px;
  background: var(--btn-bg); border: 1px solid var(--btn-border);
  display: flex; align-items: center; gap: 10px; padding: 0 18px;
  box-shadow: var(--shadow-1);
}
.ff-searchpill input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  color: var(--window-fg); font-size: 15px;
}
.ff-searchpill svg { width: 18px; height: 18px; color: var(--fg-dim); }
.ff-favgrid { display: grid; grid-template-columns: repeat(6, 88px); gap: 6px; }
@media (max-width: 760px) { .ff-favgrid { grid-template-columns: repeat(3, 88px); } }
.ff-site {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 6px; border-radius: 12px; cursor: default;
}
.ff-site:hover { background: var(--row-hover); }
.ff-site .ff-site-ic {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px;
}
.ff-site .ff-site-name { font-size: var(--fs-xs); color: var(--fg-dim); }
.ff-shortcuts { display: flex; gap: 22px; font-size: var(--fs-xs); color: var(--fg-dim); }
.ff-shortcuts span { cursor: default; }
.ff-shortcuts span:hover { color: var(--window-fg); text-decoration: underline; }

/* built-in page shells */
.ff-topnav {
  display: flex; align-items: center; gap: 22px;
  padding: 14px 26px; font-size: var(--fs-s); color: var(--window-fg);
  border-bottom: 1px solid var(--headerbar-border);
}
.ff-topnav .brand { font-weight: 600; font-size: 15px; }
.ff-topnav .brand b { color: var(--accent); }
.ff-topnav .links { display: flex; gap: 16px; }
.ff-topnav .links span { cursor: default; color: var(--fg-dim); }
.ff-topnav .links span:hover { color: var(--window-fg); }
.ff-hero { padding: 44px 26px 36px; display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.ff-hero h1 { font-size: 34px; font-weight: 550; line-height: 1.15; }
.ff-hero p { color: var(--fg-dim); font-size: var(--fs-l); line-height: 1.5; }
.ff-ctas { display: flex; gap: 10px; margin-top: 6px; }
.ff-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  padding: 8px 26px 28px; max-width: 900px;
}
.ff-card {
  border: 1px solid var(--card-border); border-radius: 14px;
  padding: 18px; background: var(--card-bg); display: flex; flex-direction: column; gap: 8px;
}
.ff-card .ic { width: 34px; height: 34px; color: var(--accent); }
.ff-card .ic svg { width: 34px; height: 34px; }
.ff-card h3 { font-size: var(--fs-l); font-weight: 550; }
.ff-card p { font-size: var(--fs-s); color: var(--fg-dim); line-height: 1.5; }
.ff-feat {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center;
  border: 1px solid var(--card-border); border-radius: 14px; padding: 18px;
  margin: 0 26px 14px;
}
.ff-feat .art {
  width: 96px; height: 72px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.ff-feat h3 { font-size: var(--fs-l); font-weight: 550; }
.ff-feat p { font-size: var(--fs-s); color: var(--fg-dim); line-height: 1.5; }
.ff-footer { border-top: 1px solid var(--headerbar-border); padding: 16px 26px; color: var(--fg-dim); font-size: var(--fs-xs); }

/* wiki / article pages */
.ff-wiki { max-width: 760px; margin: 0 auto; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.ff-wiki h1 { font-size: 28px; font-weight: 550; }
.ff-wiki h2 { font-size: 20px; font-weight: 550; margin-top: 10px; border-bottom: 1px solid var(--headerbar-border); padding-bottom: 6px; }
.ff-wiki p { font-size: var(--fs-m); line-height: 1.6; color: var(--window-fg); }
.ff-toc { border: 1px solid var(--card-border); border-radius: 10px; padding: 12px 16px; font-size: var(--fs-s); display: flex; flex-direction: column; gap: 4px; color: var(--fg-dim); max-width: 300px; }
.ff-toc b { color: var(--window-fg); margin-bottom: 4px; }
.ff-toc span:hover { color: var(--accent); }
.ff-infobox {
  border: 1px solid var(--card-border); border-radius: 12px; padding: 14px;
  width: 260px; float: right; margin: 0 0 14px 18px;
  background: var(--card-bg); font-size: var(--fs-s);
  display: flex; flex-direction: column; gap: 6px;
}
.ff-infobox .t { font-weight: 600; }
.ff-infobox .row { display: flex; justify-content: space-between; gap: 10px; }
.ff-infobox .row .k { color: var(--fg-dim); }
.ff-article { max-width: 760px; margin: 0 auto; padding: 24px; }
.ff-article h1 { font-size: 28px; font-weight: 550; }
.ff-article .lede { font-size: var(--fs-m); line-height: 1.6; margin-top: 8px; }
.ff-article h2 { font-size: 20px; font-weight: 550; margin-top: 16px; border-bottom: 1px solid var(--headerbar-border); padding-bottom: 6px; }
.ff-article p { font-size: var(--fs-s); line-height: 1.6; margin-top: 8px; color: var(--fg-dim); }
.ff-readmore { color: var(--accent); cursor: default; font-size: var(--fs-s); }
.ff-readmore:hover { text-decoration: underline; }
.ff-note { font-size: var(--fs-xs); color: var(--fg-faint); margin-top: 8px; }

/* search page */
.ff-searchpage { max-width: 680px; margin: 0 auto; padding: 26px 24px; display: flex; flex-direction: column; gap: 6px; }
.ff-searchpage .qhead { font-size: var(--fs-l); font-weight: 550; margin-bottom: 12px; }
.ff-result {
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 10px; border-radius: 10px; cursor: default;
}
.ff-result:hover { background: var(--row-hover); }
.ff-result .title { color: var(--accent); font-size: var(--fs-m); font-weight: 500; }
.ff-result:hover .title { text-decoration: underline; }
.ff-result .url { font-size: var(--fs-xs); color: var(--success); }
.ff-result .snip { font-size: var(--fs-s); color: var(--fg-dim); line-height: 1.45; }
.ff-noresults {
  text-align: center; padding: 60px 24px; color: var(--fg-dim);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}

/* offline error page */
.ff-error {
  max-width: 560px; margin: 56px auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 0 24px;
}
.ff-error h2 { font-size: 22px; font-weight: 550; }
.ff-error p { color: var(--fg-dim); font-size: var(--fs-m); line-height: 1.5; }
.ff-error .btn-row { display: flex; gap: 8px; margin-top: 8px; }

/* ============================================================
   App Center
   ============================================================ */
.ac-top {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: var(--headerbar-bg); border-bottom: 1px solid var(--headerbar-border);
  flex: none;
}
.ac-top .ac-logo { width: 28px; height: 28px; flex: none; }
.ac-top .ac-logo img { width: 100%; height: 100%; }
.ac-top .ac-title { font-size: var(--fs-l); font-weight: 500; }
.ac-top .ac-search { flex: 1; max-width: 380px; }
.ac-scroll {
  flex: 1; min-height: 0; overflow: auto;
  padding: 20px; display: flex; flex-direction: column; gap: 20px;
}
.ac-hero {
  border-radius: 16px; padding: 30px 26px;
  background: linear-gradient(135deg, var(--aubergine), var(--orange));
  color: #fff; display: flex; flex-direction: column; gap: 8px;
  position: relative; overflow: hidden;
}
.ac-hero .kicker { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 1px; opacity: .85; }
.ac-hero h2 { font-size: 24px; font-weight: 550; }
.ac-hero p { opacity: .92; font-size: var(--fs-s); max-width: 520px; }
.ac-hero .btn.suggested { background: #fff; color: var(--aubergine); margin-top: 8px; align-self: flex-start; }
.ac-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ac-chip {
  padding: 5px 14px; border-radius: 999px;
  background: var(--btn-bg); border: 1px solid var(--btn-border);
  font-size: var(--fs-xs); color: var(--fg-dim); cursor: default;
}
.ac-chip:hover { color: var(--window-fg); }
.ac-chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.ac-section { display: flex; flex-direction: column; gap: 10px; }
.ac-section > h3 { font-size: var(--fs-l); font-weight: 550; }
.ac-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
.ac-card {
  border: 1px solid var(--card-border); border-radius: 14px;
  padding: 14px; background: var(--card-bg); cursor: default;
  display: flex; flex-direction: column; gap: 7px;
}
.ac-card:hover { box-shadow: var(--shadow-1); border-color: var(--border-strong); }
.ac-card .ac-ic { width: 50px; height: 50px; border-radius: 10px; }
.ac-card .ac-ic img, .ac-card .ac-ic svg { width: 100%; height: 100%; }
.ac-card .ac-name { font-weight: 500; font-size: var(--fs-m); }
.ac-card .ac-cat { font-size: var(--fs-xs); color: var(--fg-dim); }
.ac-stars { color: var(--warning); font-size: 11px; letter-spacing: 1px; }
.ac-free { font-size: var(--fs-xs); color: var(--success); font-weight: 600; }
.ac-empty { color: var(--fg-dim); text-align: center; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ac-empty svg { width: 48px; height: 48px; color: var(--fg-faint); }

.ac-detail { padding: 20px; display: flex; flex-direction: column; gap: 16px; overflow: auto; }
.ac-dhead { display: flex; gap: 16px; align-items: flex-start; }
.ac-dhead .ac-ic { width: 84px; height: 84px; border-radius: 18px; flex: none; }
.ac-dhead .ac-ic img, .ac-dhead .ac-ic svg { width: 100%; height: 100%; }
.ac-dinfo { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ac-dname { font-size: 22px; font-weight: 550; }
.ac-dpub { color: var(--fg-dim); font-size: var(--fs-s); }
.ac-dtitle { max-width: 720px; font-size: var(--fs-m); line-height: 1.55; }
.ac-shots { display: flex; gap: 10px; overflow: auto; padding-bottom: 4px; }
.ac-shot {
  width: 210px; height: 128px; flex: none;
  border-radius: 10px; border: 1px solid var(--card-border);
  background: var(--app-bg); display: flex; align-items: center; justify-content: center;
  color: var(--fg-dim); font-size: var(--fs-xs);
}
.ac-rows { display: flex; flex-direction: column; gap: 2px; max-width: 520px; }
.ac-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--card-border); font-size: var(--fs-s); }
.ac-row .k { color: var(--fg-dim); }
.ac-updates { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.ac-update-row {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--card-border); border-radius: 12px; padding: 12px;
}
.ac-update-row .ic { width: 36px; height: 36px; flex: none; }
.ac-update-row .ic img, .ac-update-row .ic svg { width: 100%; height: 100%; }
.ac-update-row .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ac-update-row .info .name { font-weight: 500; font-size: var(--fs-m); }
.ac-update-row .info .ver { font-size: var(--fs-xs); color: var(--fg-dim); }
.ac-update-row .progress { width: 130px; }

/* ============================================================
   Mines
   ============================================================ */
.mines-wrap {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: var(--app-bg); padding: 8px;
}
.mines-hud { display: flex; align-items: center; gap: 16px; }
.mines-count, .mines-timer {
  font-family: var(--font-mono); font-size: 20px; font-weight: 700;
  background: #1a1a1a; color: #ff4d4d;
  padding: 2px 8px; border-radius: 6px; letter-spacing: 2px;
  min-width: 58px; text-align: center;
}
.mines-smiley {
  width: 46px; height: 46px; font-size: 26px; line-height: 1;
  border-radius: 8px;
  background: var(--btn-bg); border: 1px solid var(--btn-border);
  display: flex; align-items: center; justify-content: center; cursor: default;
}
.mines-smiley:hover { background: var(--btn-bg-hover); }
.mines-board {
  display: grid; grid-template-columns: repeat(9, 30px); grid-auto-rows: 30px;
  border: 3px solid var(--border-strong); border-radius: 6px;
  background: var(--window-bg);
}
.mines-cell {
  width: 30px; height: 30px;
  background: var(--btn-bg); border: 1px solid var(--btn-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; cursor: default;
}
.mines-cell:hover { background: var(--btn-bg-hover); }
.mines-cell.open { background: var(--window-bg); border-color: var(--card-border); }
.mines-cell.open:hover { background: var(--window-bg); }
.mines-cell.mine { background: var(--error-bg); }
.mines-cell.lost-flag { background: var(--error-bg); }
.mines-cell .mines-flag { color: var(--error); }
.mines-cell .mines-q { color: var(--fg-dim); }
.mines-cell.mines-n1 { color: #1d5fd6; }
.mines-cell.mines-n2 { color: #2e7d32; }
.mines-cell.mines-n3 { color: #c62828; }
.mines-cell.mines-n4 { color: #4a148c; }
.mines-cell.mines-n5 { color: #7c4a03; }
.mines-cell.mines-n6 { color: #00695c; }
.mines-cell.mines-n7 { color: #222; }
.mines-cell.mines-n8 { color: #757575; }
.mines-kb-sel { outline: 2px solid var(--accent); outline-offset: -2px; z-index: 1; position: relative; }

/* ============================================================
   Chess
   ============================================================ */
.chess-wrap { flex: 1; min-height: 0; display: flex; background: var(--app-bg); }
.chess-board-wrap { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 16px; }
.chess-board {
  display: grid; grid-template-columns: repeat(8, 1fr);
  width: min(540px, 100%); aspect-ratio: 1;
  border: 2px solid var(--chess-border); border-radius: 4px; overflow: hidden;
  box-shadow: var(--shadow-2);
}
.chess-square { position: relative; display: flex; align-items: center; justify-content: center; }
.chess-square.light { background: var(--chess-light); }
.chess-square.dark { background: var(--chess-dark); }
.chess-square.sel::before {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 3px var(--accent);
  pointer-events: none;
}
.chess-square.check::before {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 3px var(--error);
  pointer-events: none;
}
.chess-square.lastmove::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(233, 84, 32, 0.22);
  pointer-events: none;
}
.chess-square.target::after {
  content: ""; position: absolute;
  width: 15px; height: 15px; border-radius: 50%;
  background: rgba(34, 34, 34, 0.18);
  pointer-events: none;
}
.chess-square.capture::after {
  content: ""; position: absolute; inset: 3px;
  border: 3px solid rgba(34, 34, 34, 0.22); border-radius: 50%;
  pointer-events: none;
}
.chess-piece {
  font-size: min(42px, 5.6vw); line-height: 1;
  user-select: none; cursor: default; z-index: 1;
}
.chess-piece.w { color: #fdfdfd; -webkit-text-stroke: 0.5px #3d3d3d; text-shadow: 0 2px 3px rgba(0,0,0,.35); }
.chess-piece.b { color: #262626; -webkit-text-stroke: 0.5px #e8e8e8; text-shadow: 0 2px 3px rgba(0,0,0,.28); }
.chess-coord {
  position: absolute; font-size: 10px; color: var(--fg-dim); pointer-events: none;
  font-family: var(--font-mono);
}
.chess-coord.file { bottom: 2px; right: 3px; }
.chess-coord.rank { top: 2px; left: 3px; }
.chess-side {
  width: 210px; flex: none;
  border-left: 1px solid var(--headerbar-border);
  background: var(--window-bg);
  display: flex; flex-direction: column; min-height: 0;
}
.chess-side .cs-title { font-weight: 600; padding: 12px 14px 6px; font-size: var(--fs-s); }
.chess-side .cs-status { padding: 0 14px 10px; font-size: var(--fs-m); font-weight: 500; }
.chess-side .cs-status.lost, .chess-side .cs-status.check { color: var(--error); }
.chess-side .cs-status.won { color: var(--success); }
.chess-captured { min-height: 26px; display: flex; flex-wrap: wrap; gap: 1px; padding: 4px 14px; color: var(--fg-dim); font-size: var(--fs-s); }
.chess-captured .chess-piece { font-size: 17px; -webkit-text-stroke-width: 0; }
.chess-movelist { flex: 1; min-height: 0; overflow: auto; padding: 6px 12px; font-family: var(--font-mono); font-size: 12px; line-height: 1.7; }
.chess-movelist .mrow { display: flex; gap: 8px; }
.chess-movelist .mrow .num { color: var(--fg-dim); width: 28px; flex: none; }
.chess-movelist .mrow .w, .chess-movelist .mrow .b { flex: 1; min-width: 0; white-space: nowrap; }
.chess-actions { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--headerbar-border); }
.chess-actions .btn { flex: 1; }

/* ============================================================
   System Monitor
   ============================================================ */
.mon-top {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 0;
  background: var(--window-bg); border-bottom: 1px solid var(--headerbar-border);
  flex: none;
}
.mon-tab {
  padding: 7px 16px; border-radius: 8px 8px 0 0;
  color: var(--fg-dim); font-size: var(--fs-s); cursor: default;
  border-bottom: 2px solid transparent;
}
.mon-tab:hover { background: var(--row-hover); color: var(--window-fg); }
.mon-tab.active { color: var(--window-fg); border-bottom-color: var(--accent); font-weight: 500; }
.mon-toolbar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; flex: none;
  border-bottom: 1px solid var(--headerbar-border);
  background: var(--window-bg);
}
.mon-toolbar .entry { min-height: 30px; width: 220px; }
.mon-table { flex: 1; min-height: 0; overflow: auto; background: var(--window-bg); }
.mon-table table { min-width: 520px; }
.mon-table th { position: sticky; top: 0; background: var(--window-bg); cursor: default; z-index: 1; }
.mon-table th:hover { color: var(--window-fg); }
.mon-table th .arrow { font-size: 10px; margin-left: 3px; }
.mon-table td { cursor: default; }
.mon-table tbody tr.selected td { background: var(--row-selected); }
.mon-table tbody tr:hover td { background: var(--row-hover); }
.mon-status-ok { color: var(--success); }
.mon-resources { flex: 1; min-height: 0; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.mon-chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .mon-chart-row { grid-template-columns: 1fr; } }
.mon-card { border: 1px solid var(--card-border); border-radius: 12px; padding: 12px 14px; background: var(--card-bg); }
.mon-card h4 { font-size: var(--fs-xs); color: var(--fg-dim); font-weight: 500; margin-bottom: 6px; }
.mon-card canvas { width: 100%; height: 92px; display: block; }
.mon-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.mon-stat { border: 1px solid var(--card-border); border-radius: 12px; padding: 12px 14px; background: var(--card-bg); display: flex; flex-direction: column; gap: 4px; }
.mon-stat .label { font-size: var(--fs-xs); color: var(--fg-dim); }
.mon-stat .value { font-size: 20px; font-weight: 600; }
.mon-stat .spark { height: 28px; }
.mon-stat .spark canvas { width: 100%; height: 28px; display: block; }
.mon-fs { flex: 1; min-height: 0; overflow: auto; padding: 14px; }
.mon-fs table { min-width: 560px; }
.mon-bar { height: 8px; background: var(--row-hover); border-radius: 4px; overflow: hidden; min-width: 120px; }
.mon-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.mon-fs td.mono, .mon-table td.mono { font-family: var(--font-mono); font-size: var(--fs-xs); }
