:root {
  --bg-canvas: #18191e;
  --bg-sidebar: #202229;
  --bg-card: #262831;
  --bg-elev: #30333f;
  --bg-input: #1b1d24;
  --border-subtle: rgba(255, 255, 255, 0.085);
  --border-highlight: rgba(255, 255, 255, 0.18);
  --text-main: #f2f5fa;
  --text-muted: #b4bccb;
  --text-subtle: #7e8698;
  --accent-green: #38d96b;
  --accent-amber: #f5a642;
  --accent-red: #cf4646;
  --vice-accent-1: #e85d99;
  --vice-accent-2: #7b5cf6;
  --ui-font-scale: 1;
  --vice-gradient: linear-gradient(135deg, var(--vice-accent-1, #e85d99), var(--vice-accent-2, #7b5cf6));
  --vice-gradient-hover: linear-gradient(135deg, color-mix(in srgb, var(--vice-accent-1, #e85d99) 88%, #ffffff), color-mix(in srgb, var(--vice-accent-2, #7b5cf6) 88%, #ffffff));
  --vice-glow: 0 4px 16px rgba(232, 93, 153, 0.28);
  --font-display: "Arial Rounded MT Bold", "Bahnschrift", "Segoe UI", Arial, sans-serif;
  --font-ui: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); }

html, body {
  height: 100%; background: var(--bg-canvas); color: var(--text-main);
  font-family: var(--font-ui); font-size: 13.5px; overflow: hidden; user-select: none;
}

h1, h2, .brand-title, .nav-item, .raised-btn, .seg-btn, .footer-lbl, .card-head, .kpi-tile strong, .ms-top, .session-title, .feed24-title, .guide-link-btn {
  font-family: var(--font-display);
}

.app-shell {
  position: relative; display: flex; height: 100vh;
  font-size: calc(13px * var(--ui-font-scale, 1));
  background: var(--bg-canvas); border: 1px solid rgba(255, 255, 255, 0.1);
}
.app-shell::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--vice-gradient); opacity: 0.78; pointer-events: none; z-index: 60;
}

.raised-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 6px;
  background: linear-gradient(180deg, #3a3e4b 0%, #2b2e38 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 -2px 0 rgba(0, 0, 0, 0.36), 0 3px 8px rgba(0, 0, 0, 0.36);
  color: #f4f6fa; font-weight: 700; cursor: pointer;
  transition: transform 0.1s ease, background 0.12s ease, box-shadow 0.1s ease, border-color 0.12s ease;
  white-space: nowrap;
}
.raised-btn:hover { background: linear-gradient(180deg, #464b59 0%, #333744 100%); border-color: rgba(255, 255, 255, 0.24); transform: translateY(-1px); }
.raised-btn:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.48), 0 1px 2px rgba(0, 0, 0, 0.25); }

.raised-xs { height: 27px; padding: 0 10px; font-size: 11.5px; }
.raised-sm { height: 31px; padding: 0 13px; font-size: 12px; }
.raised-outline {
  height: 34px; padding: 0 15px; font-size: 12.5px;
  background: linear-gradient(180deg, rgba(48, 51, 62, 0.9) 0%, rgba(33, 36, 45, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

@keyframes playHalo {
  0%, 100% { box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.36), inset 0 -3px 0 rgba(0, 0, 0, 0.24), 0 0 20px rgba(200, 85, 214, 0.28), 0 6px 18px rgba(0, 0, 0, 0.45); }
  50% { box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.42), inset 0 -3px 0 rgba(0, 0, 0, 0.24), 0 0 32px rgba(240, 90, 140, 0.48), 0 8px 22px rgba(0, 0, 0, 0.5); }
}
@keyframes sheenSweep {
  0% { transform: translateX(-140%) skewX(-20deg); }
  100% { transform: translateX(240%) skewX(-20deg); }
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.raised-play {
  position: relative; overflow: hidden;
  height: 54px; min-width: 198px; padding: 0 28px; border-radius: 10px;
  font-size: 18px; font-weight: 800; letter-spacing: 0.9px; gap: 10px;
  background: linear-gradient(95deg, #8b5cf6 0%, #c855d6 48%, #f05a8c 100%);
  color: #ffffff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.44);
  animation: playHalo 3.2s ease-in-out infinite;
  transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1), filter 0.14s ease, box-shadow 0.14s ease;
}
.raised-play::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 48%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: translateX(-150%) skewX(-20deg); pointer-events: none;
}
.raised-play .play-ico { width: 17px; height: 17px; flex-shrink: 0; transition: transform 0.16s ease; }
.raised-play:hover {
  background: linear-gradient(95deg, #986cf8 0%, #d466e0 48%, #f66a99 100%);
  border-color: rgba(255, 255, 255, 0.65); color: #ffffff;
  transform: translateY(-1.5px) scale(1.016);
  filter: brightness(1.06);
}
.raised-play:hover .play-ico { transform: translateX(2.5px); }
.raised-play:hover::after { animation: sheenSweep 0.65s ease forwards; }
.raised-play:active { transform: translateY(1.5px) scale(0.985); box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.48), 0 0 14px rgba(200, 85, 214, 0.32); }

.raised-play-sm {
  height: 31px; padding: 0 13px; font-size: 12px; font-weight: 800;
  background: var(--vice-gradient); background-size: 145% 145%; color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.32); border-color: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -2px 0 rgba(0, 0, 0, 0.25), 0 3px 12px rgba(232, 93, 153, 0.22);
}
.raised-play-sm:hover { background: var(--vice-gradient-hover); border-color: rgba(255, 255, 255, 0.42); color: #ffffff; }

@keyframes viceShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.raised-playing {
  height: 54px; border-radius: 10px; padding: 0 22px; font-size: 14.5px; font-weight: 800;
  background: var(--vice-gradient); background-size: 180% 180%; animation: viceShift 5s ease infinite;
  border: 1.5px solid rgba(255, 255, 255, 0.44); color: #ffffff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.38);
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.36), inset 0 -3px 0 rgba(0, 0, 0, 0.24), 0 4px 20px rgba(232, 93, 153, 0.42);
  font-variant-numeric: tabular-nums;
}
.raised-stop, .raised-stop-sm { background: linear-gradient(180deg, #c64444 0%, #922828 100%); border-color: rgba(255, 165, 165, 0.36); color: #ffffff; font-weight: 800; }
.raised-stop { height: 54px; border-radius: 10px; padding: 0 20px; font-size: 14px; }
.raised-stop-sm { height: 29px; padding: 0 11px; font-size: 11.5px; }

.seg-group { display: inline-flex; background: var(--bg-input); border: 1px solid var(--border-subtle); border-radius: 6px; padding: 3px; gap: 3px; }
.seg-btn { height: 28px; padding: 0 11px; border-radius: 4px; border: 1px solid transparent; background: transparent; color: var(--text-muted); font-size: 12px; font-weight: 700; cursor: pointer; transition: 0.1s ease; white-space: nowrap; }
.seg-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.seg-btn.active { background: linear-gradient(180deg, #404554 0%, #313542 100%); border-color: rgba(232, 93, 153, 0.28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16); color: #ffffff; }
.seg-sm { padding: 2px; gap: 2px; }
.seg-sm .seg-btn { height: 24px; padding: 0 9px; font-size: 11px; }

.sidebar { width: 224px; background: var(--bg-sidebar); border-right: 1px solid var(--border-subtle); display: flex; flex-direction: column; padding: 12px; flex-shrink: 0; }
.brand-header { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 2px 2px 13px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); margin-bottom: 8px; }
.brand-wordmark-img { width: 196px; height: auto; max-height: 54px; object-fit: contain; object-position: left center; display: block; }
.edition-chip {
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.9px; text-transform: uppercase;
  padding: 2px 7px; border-radius: 4px; background: rgba(139, 92, 246, 0.22);
  border: 1px solid rgba(232, 93, 153, 0.38); color: #f6dbe9;
}

.nav-list { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  position: relative; width: 100%; height: 36px; padding: 0 10px 0 13px; border-radius: 6px;
  border: 1px solid transparent; background: transparent; color: var(--text-muted);
  font-size: 12.8px; font-weight: 600; display: flex; align-items: center; gap: 9px; cursor: pointer; text-align: left; transition: 0.12s ease;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.nav-item.active {
  background: linear-gradient(180deg, #373b48 0%, #2d303c 100%); border-color: rgba(232, 93, 153, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.32), 0 3px 8px rgba(0, 0, 0, 0.28); color: #ffffff;
}
.nav-item.active::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2.5px; border-radius: 2px; background: var(--vice-gradient); }
.nav-ico { width: 16px; height: 16px; display: inline-flex; color: #8c93a3; flex-shrink: 0; }
.nav-ico svg { width: 16px; height: 16px; }
.nav-item.active .nav-ico { color: #ffffff; }
.nav-badge { margin-left: auto; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 4px; background: var(--vice-gradient); color: #fff; }

.session-card {
  margin-top: auto; background: #272932; border: 1px solid var(--border-subtle); border-radius: 8px;
  padding: 10px 12px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 14px rgba(0, 0, 0, 0.3);
}
.session-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.session-title { font-size: 12.5px; font-weight: 700; color: #f4f6fa; }
.status-badge { font-size: 9.5px; font-weight: 800; padding: 2px 6px; border-radius: 4px; background: rgba(56, 217, 107, 0.16); color: #6ef097; border: 1px solid rgba(56, 217, 107, 0.35); }
.status-badge.running { background: var(--vice-gradient); color: #fff; border-color: rgba(255, 255, 255, 0.32); }
.session-meta { font-size: 9.5px; font-weight: 700; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 5px; }
.session-status-row { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #eef1f7; }
.session-mode-val { font-size: 11.5px; font-weight: 600; color: #dce2ee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.status-dot { width: 7px; height: 7px; border-radius: 2px; flex-shrink: 0; }
.status-dot.ready { background: var(--accent-green); }
.status-dot.running { background: #ff5ba6; animation: pulse 1.1s infinite; }
.status-dot.building { background: #64b5f6; }
.pulse-dot { width: 7px; height: 7px; border-radius: 2px; background: #ffffff; animation: pulse 1.1s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.hidden { display: none !important; }

.main-col { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topbar { height: 52px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); background: var(--bg-sidebar); flex-shrink: 0; }
.search-wrap { position: relative; width: 310px; display: flex; align-items: center; }
.search-ico { position: absolute; left: 11px; width: 14px; height: 14px; color: var(--text-muted); pointer-events: none; }
.rect-search { width: 100%; height: 32px; background: var(--bg-input); border: 1px solid var(--border-subtle); border-radius: 6px; color: var(--text-main); padding: 0 12px 0 32px; font-size: 12.5px; outline: none; }
.rect-search:focus { border-color: rgba(232, 93, 153, 0.46); }
.search-results { position: absolute; top: 36px; left: 0; right: 0; background: #282a33; border: 1px solid rgba(255,255,255,0.18); border-radius: 6px; z-index: 80; max-height: 240px; overflow-y: auto; box-shadow: 0 12px 28px rgba(0,0,0,0.52); }
.search-row { padding: 8px 10px; display: flex; justify-content: space-between; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.05); }
.search-row:hover { background: #353844; }
.search-kind { font-size: 10px; padding: 1px 6px; border-radius: 4px; background: rgba(255,255,255,0.1); color: #dce2ee; }

.topbar-right { display: flex; align-items: center; gap: 10px; }
.top-quick-group { display: flex; align-items: center; gap: 6px; }
.mono-stat { font-size: 12px; font-weight: 600; color: #c4ccda; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tray-pill { display: inline-flex; align-items: center; gap: 5px; height: 27px; padding: 0 9px; border-radius: 4px; background: var(--bg-input); border: 1px solid var(--border-subtle); font-size: 11px; font-weight: 700; color: #cbd2df; }
.tray-dot { width: 6px; height: 6px; border-radius: 2px; background: #64748b; }
.tray-dot.on { background: var(--accent-green); }
.dev-badge { padding: 4px 8px; border-radius: 4px; font-size: 10px; font-weight: 800; letter-spacing: 0.4px; background: rgba(56, 217, 107, 0.14); border: 1px solid rgba(56, 217, 107, 0.35); color: #6ef097; }
.pages-badge { padding: 4px 8px; border-radius: 4px; font-size: 10px; font-weight: 800; letter-spacing: 0.4px; background: rgba(139, 92, 246, 0.2); border: 1px solid rgba(232, 93, 153, 0.45); color: #f6dbe9; }
.path-browse-row { display: flex; gap: 6px; align-items: center; }
.agent-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.agent-step-row { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; background: var(--bg-input); border-radius: 6px; border: 1px solid var(--border-subtle); font-size: 12px; }
.win-controls { display: flex; align-items: center; gap: 3px; padding-left: 6px; border-left: 1px solid var(--border-subtle); }
.win-ctl { width: 28px; height: 28px; border-radius: 6px; background: transparent; border: 1px solid transparent; color: #b4bccb; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.win-ctl svg { width: 12px; height: 12px; }
.win-ctl:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.12); color: #fff; }
.win-ctl.close:hover { background: #b83434; color: #fff; }
/* App-window / browser hosts draw their own title bar, so hide ViceDeck's frameless controls there. */
html.host-native-frame .win-controls { display: none; }

.stage { flex: 1; padding: 14px 18px 16px; overflow-y: auto; min-width: 0; min-height: 0; }
.stage.flush-stage { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeSlideIn 0.14s ease-out; }
#tab-messages.tab-pane.active { display: flex; flex: 1; height: 100%; min-height: 0; }

@keyframes heroPan { 0% { transform: scale(1.06) translate3d(0%, 0%, 0); } 50% { transform: scale(1.12) translate3d(-2%, -1.5%, 0); } 100% { transform: scale(1.06) translate3d(0.8%, 0.5%, 0); } }
.hero-card {
  position: relative; height: 356px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(232, 93, 153, 0.28);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45); display: flex; flex-direction: column; justify-content: space-between; padding: 20px 24px 15px;
}
.hero-img-pan { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: heroPan 26s ease-in-out infinite alternate; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(16, 18, 24, 0.78) 0%, rgba(16, 18, 24, 0.30) 52%, rgba(16, 18, 24, 0.08) 100%),
              linear-gradient(180deg, rgba(16, 18, 24, 0.08) 0%, rgba(16, 18, 24, 0.64) 100%);
}
.hero-top-row { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.hero-kicker { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; color: #d8c7e8; display: block; margin-bottom: 4px; }
.hero-heading { font-size: 40px; font-weight: 800; letter-spacing: -0.6px; color: #fff; line-height: 1.05; }
.vice-accent { background: var(--vice-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 13px; color: #cfd5e3; margin-top: 6px; font-weight: 600; }
.hero-action-strip { display: flex; gap: 8px; }

.feed24-dock {
  position: relative; z-index: 3; background: rgba(20, 22, 30, 0.78); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px; padding: 11px 15px;
  box-shadow: inset 0 1px 0 rgba(232, 93, 153, 0.28), 0 10px 26px rgba(0, 0, 0, 0.42);
}
.feed24-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.feed24-meta { display: flex; align-items: center; gap: 10px; font-size: 11.5px; }
.feed24-badge { font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 4px; background: rgba(139, 92, 246, 0.24); border: 1px solid rgba(232, 93, 153, 0.42); color: #f6dbe9; }
.feed24-controls { display: flex; gap: 4px; }
.feed24-body-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.feed24-copy { min-width: 0; flex: 1; }
.feed24-title { font-size: 16px; font-weight: 700; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed24-desc { font-size: 12.5px; color: #c4cbd9; margin-top: 3px; line-height: 1.4; }
.feed24-bars { display: flex; gap: 5px; margin-top: 9px; }
.feed24-bar { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.15); cursor: pointer; }
.feed24-bar.active { background: var(--vice-gradient); }

.home-lower { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-top: 12px; }
.grey-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 8px; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 5px 14px rgba(0,0,0,0.28); }
.card-head { padding: 10px 13px; font-size: 12px; font-weight: 700; letter-spacing: 0.4px; color: #eef1f7; border-bottom: 1px solid var(--border-subtle); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.master-wrap { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; }
.grey-switch { position: relative; display: inline-block; width: 36px; height: 20px; }
.grey-switch input { opacity: 0; width: 0; height: 0; }
.grey-switch .slider { position: absolute; inset: 0; background: #1c1e25; border: 1px solid rgba(255,255,255,0.16); border-radius: 6px; cursor: pointer; transition: 0.16s; }
.grey-switch .slider::before { content: ""; position: absolute; width: 14px; height: 14px; left: 2px; top: 2px; background: #a4acb9; border-radius: 4px; transition: 0.16s; }
.grey-switch input:checked + .slider { background: linear-gradient(135deg, rgba(139, 92, 246, 0.88), rgba(232, 93, 153, 0.88)); border-color: rgba(255, 255, 255, 0.28); }
.grey-switch input:checked + .slider::before { transform: translateX(16px); background: #fff; }

.quick-mods-grid { padding: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mod-mini-card { background: var(--bg-elev); border: 1px solid var(--border-subtle); border-radius: 6px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mod-mini-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mod-mini-thumb { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.mod-mini-name { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.news-list { padding: 10px 13px; display: flex; flex-direction: column; gap: 8px; max-height: 162px; overflow-y: auto; }
.news-full-list { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; max-height: 500px; overflow-y: auto; }
.socials-list { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; max-height: 500px; overflow-y: auto; }
.social-row { padding: 10px 12px; border-radius: 6px; background: var(--bg-input); border: 1px solid var(--border-subtle); cursor: pointer; transition: 0.12s ease; }
.social-row:hover { background: #222530; border-color: rgba(232, 93, 153, 0.34); }
.news-card-entry { padding: 11px; border-radius: 6px; background: var(--bg-elev); border: 1px solid var(--border-subtle); }
.news-item { padding-bottom: 7px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.news-item:last-child { border-bottom: none; padding-bottom: 0; }
.news-title { font-size: 12px; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.news-tag { font-size: 10px; padding: 1px 6px; border-radius: 4px; background: rgba(255,255,255,0.1); color: #dce2ee; white-space: nowrap; font-weight: 700; }
.news-body { font-size: 11.5px; color: var(--text-muted); line-height: 1.4; }

.pane-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; flex-wrap: wrap; }
.pane-head h2 { font-size: 18px; font-weight: 800; }
.sub { color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.pane-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rect-input, .grey-input { background: var(--bg-input); border: 1px solid rgba(255,255,255,0.14); color: var(--text-main); border-radius: 6px; padding: 6px 10px; font-size: 12.5px; outline: none; font-family: var(--font-ui); }
.rect-input:focus, .grey-input:focus { border-color: rgba(232, 93, 153, 0.46); }
.rect-sm { height: 29px; padding: 0 8px; font-size: 12px; }
.raised-select {
  height: 36px; padding: 0 10px; border-radius: 6px; background: linear-gradient(180deg, #343844 0%, #272a33 100%);
  border: 1px solid rgba(255,255,255,0.15); box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), inset 0 -2px 0 rgba(0,0,0,0.34);
  color: #f2f5fa; font-size: 12.5px; font-weight: 700; cursor: pointer; outline: none; font-family: var(--font-display);
}
.raised-select option { background: #262831; color: #fff; }

/* Built-in Edge-to-Edge Messages Workspace */
.raised-icon-xs { width: 24px; height: 24px; padding: 0; font-size: 14px; line-height: 1; }
.chat-builtin { display: flex; width: 100%; height: 100%; min-height: 0; background: var(--bg-canvas); }
.chat-rail-left { width: 218px; flex-shrink: 0; background: #1c1e25; border-right: 1px solid rgba(255,255,255,0.07); display: flex; flex-direction: column; min-height: 0; }
.chat-rail-right { width: 236px; flex-shrink: 0; background: #1c1e25; border-left: 1px solid rgba(255,255,255,0.07); display: flex; flex-direction: column; min-height: 0; }
.chat-rail-right.collapsed { display: none; }
.chat-rail-head { height: 48px; padding: 0 12px; border-bottom: 1px solid rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 800; letter-spacing: 0.7px; color: #9da5b5; font-family: var(--font-display); flex-shrink: 0; }
.chat-popover-form { padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.07); background: #22242d; display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.chat-room-list, .chat-peer-list { flex: 1; padding: 8px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; min-height: 0; }
.chat-room-btn { position: relative; width: 100%; padding: 8px 10px 8px 12px; border-radius: 6px; border: none; background: transparent; color: var(--text-muted); font-size: 12.5px; font-weight: 700; text-align: left; cursor: pointer; font-family: var(--font-display); display: flex; justify-content: space-between; align-items: center; }
.chat-room-btn:hover { background: rgba(255,255,255,0.045); color: #fff; }
.chat-room-btn.active { background: rgba(255,255,255,0.07); color: #ffffff; }
.chat-room-btn.active::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2.5px; border-radius: 2px; background: var(--vice-gradient); }
.chat-count-pill { font-size: 10px; padding: 1px 5px; border-radius: 4px; background: rgba(255,255,255,0.09); color: #cbd2df; font-weight: 700; }
.chat-me-bar { padding: 9px 10px; border-top: 1px solid rgba(255,255,255,0.07); background: #191b22; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.chat-avatar { width: 30px; height: 30px; border-radius: 6px; flex-shrink: 0; background: linear-gradient(135deg, #323644 0%, #242732 100%); border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #f2f5fa; font-family: var(--font-display); }
.chat-me-avatar { border: 1px solid transparent; background: linear-gradient(#262933, #1e2028) padding-box, var(--vice-gradient) border-box; }
.chat-me-input { flex: 1; min-width: 0; background: transparent; border: 1px solid transparent; border-radius: 4px; color: #f2f5fa; font-size: 12.5px; font-weight: 700; font-family: var(--font-display); padding: 4px 6px; outline: none; }
.chat-me-input:hover, .chat-me-input:focus { background: var(--bg-input); border-color: rgba(255,255,255,0.14); }
.chat-canvas { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg-canvas); }
.chat-bar { height: 48px; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; }
.chat-bar-left { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.chat-bar-left strong { font-size: 14.5px; color: #fff; font-family: var(--font-display); white-space: nowrap; }
.chat-bar-sep { width: 1px; height: 14px; background: rgba(255,255,255,0.12); flex-shrink: 0; }
.chat-bar-topic { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-bar-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.chat-fork-bar { padding: 8px 16px; border-bottom: 1px solid rgba(255,255,255,0.07); background: #1e2028; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.chat-feed { flex: 1; padding: 10px 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; min-height: 0; user-select: text; }
.chat-row { display: flex; align-items: flex-start; gap: 11px; padding: 8px 16px; }
.chat-row:hover { background: rgba(255,255,255,0.025); }
.chat-row-body { flex: 1; min-width: 0; }
.chat-msg-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.chat-msg-author { font-size: 13px; font-weight: 800; color: #f4f6fa; font-family: var(--font-display); }
.chat-msg-time { font-size: 10.5px; color: var(--text-subtle); }
.chat-msg-text { font-size: 13px; color: #dde3ef; line-height: 1.45; word-break: break-word; }
.chat-fork-embed { margin-top: 6px; padding: 9px 12px; border-radius: 6px; background: #21232c; border: 1px solid rgba(255,255,255,0.08); border-left: 3px solid #e85d99; display: flex; flex-direction: column; gap: 4px; max-width: 520px; }
.chat-composer-wrap { padding: 10px 16px 12px; flex-shrink: 0; }
.chat-composer-box { display: flex; align-items: center; gap: 8px; background: #22242d; border: 1px solid rgba(255,255,255,0.11); border-radius: 6px; padding: 5px 6px 5px 8px; }
.chat-composer-box:focus-within { border-color: rgba(232, 93, 153, 0.46); }
.composer-plus-btn { width: 28px; height: 28px; border-radius: 5px; border: 1px solid rgba(255,255,255,0.1); background: #2b2e39; color: #d5dce8; font-size: 16px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.composer-input { flex: 1; min-width: 0; background: transparent; border: none; color: #f4f6fa; font-size: 13px; outline: none; font-family: var(--font-ui); }
.chat-node-row { padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,0.07); background: #191b22; flex-shrink: 0; }
.chat-node-copy { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.chat-node-copy code { font-size: 11px; color: #cfd6e4; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-peer-row { padding: 8px 10px; border-radius: 6px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); font-size: 11.5px; margin-bottom: 5px; }

/* Built-In Interactive Guide */
.guide-layout { display: grid; grid-template-columns: 230px 1fr; gap: 14px; align-items: start; }
.guide-nav { position: sticky; top: 0; }
.guide-links { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.guide-link-btn {
  width: 100%; padding: 8px 10px; border-radius: 6px; border: 1px solid transparent; background: transparent;
  color: var(--text-muted); font-size: 12px; font-weight: 700; text-align: left; cursor: pointer;
}
.guide-link-btn:hover { background: rgba(255,255,255,0.05); color: #fff; }
.guide-link-btn.active { background: var(--bg-elev); border-color: rgba(232, 93, 153, 0.3); color: #ffffff; }
.guide-body { display: flex; flex-direction: column; gap: 12px; padding-bottom: 12px; }
.guide-content { padding: 12px 14px; font-size: 12.8px; color: #dbe1ee; line-height: 1.55; }
.guide-list { margin-top: 8px; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--text-muted); }
.guide-list strong { color: #f2f5fa; }
.guide-content code { background: var(--bg-input); padding: 1px 5px; border-radius: 4px; font-family: Consolas, monospace; font-size: 11.5px; color: #f3c6df; }

/* Dev, Tables, Vendor Pills & Forms */
.dev-subpane { display: none; }
.dev-subpane.active { display: block; }
.hud-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi-tile { padding: 11px 13px; display: flex; flex-direction: column; gap: 3px; }
.kpi-tile strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.dev-vp-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; }
.dev-viewport-box { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #101116; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dev-live-img { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.dev-vp-placeholder { padding: 24px; text-align: center; max-width: 420px; }
.dev-vp-title { font-size: 15px; font-weight: 800; margin-bottom: 6px; color: #eef2f8; font-family: var(--font-display); }
.vhud-log { padding: 10px 12px; height: 310px; overflow-y: auto; font-family: Consolas, monospace; font-size: 11.5px; color: #bfd0e6; white-space: pre-wrap; user-select: text; background: var(--bg-input); }
.git-summary-line { padding: 7px 10px; border-radius: 6px; background: var(--bg-input); border: 1px solid var(--border-subtle); font-family: Consolas, monospace; font-size: 11.5px; color: #dde3ef; }
#logFilterInput { width: 115px; }

.milestones-grid { padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ms-card { background: var(--bg-elev); border: 1px solid var(--border-subtle); border-radius: 6px; padding: 10px; display: flex; flex-direction: column; gap: 5px; }
.ms-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; }
.ms-pill { font-size: 9.5px; font-weight: 800; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; }
.ms-pill.merged { background: rgba(56,217,107,0.16); color: #67e691; }
.ms-pill.ready { background: rgba(245,166,66,0.18); color: #ffd188; }
.ms-pill.in_progress { background: rgba(100,181,246,0.18); color: #90caf9; }
.ms-pill.pending { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.ms-checks { list-style: none; font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.milestone-foot { padding: 9px 12px; border-top: 1px solid var(--border-subtle); display: flex; justify-content: space-between; align-items: center; }

.runtime-grid, .mods-full-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-bottom: 12px; }
.rt-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 7px; }
.rt-card.active { border-color: rgba(232,93,153,0.42); }
.rt-top { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.rt-name { font-weight: 800; font-size: 13.5px; font-family: var(--font-display); }
.rt-meta { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.rt-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }

.vendor-pill { font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 800; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.3px; }
.vendor-pill.nvidia { background: rgba(56, 217, 107, 0.14); color: #6ef097; }
.vendor-pill.amd { background: rgba(245, 118, 66, 0.18); color: #ff936a; }
.vendor-pill.cross { background: rgba(139, 92, 246, 0.18); color: #c4a8ff; }
.vendor-pill.standalone { background: rgba(224, 82, 82, 0.16); color: #ff8e8e; }
.lic-pill { font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 800; white-space: nowrap; }
.lic-gpl3 { background: rgba(56,217,107,0.15); color: #6ef097; }
.lic-gpl2 { background: rgba(224,82,82,0.18); color: #ff8e8e; }

.saves-list { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; max-height: 185px; overflow-y: auto; }
.save-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; background: var(--bg-input); border-radius: 6px; font-size: 12px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-stack { padding: 12px; display: flex; flex-direction: column; gap: 9px; }
.form-stack label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-muted); font-weight: 600; }
.form-stack label.check-row { flex-direction: row; align-items: center; gap: 8px; color: var(--text-main); cursor: pointer; }
.custom-env-row { padding: 10px 12px; display: flex; gap: 6px; border-bottom: 1px solid var(--border-subtle); }
.env-preview { padding: 10px 12px; font-family: Consolas, monospace; font-size: 11.5px; color: #bfd0e6; max-height: 290px; overflow-y: auto; line-height: 1.45; user-select: text; }

.combiner-bar { padding: 10px 12px; display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--border-subtle); }
.commits-list { padding: 10px 12px; max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.commit-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; background: var(--bg-input); border-radius: 6px; font-size: 12px; }
.commit-sha { font-family: Consolas, monospace; color: #e2e8f0; font-weight: 700; }
.repo-table-wrap { max-height: 250px; overflow: auto; }
.repo-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.repo-table th, .repo-table td { padding: 8px 11px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.06); }
.repo-table th { color: var(--text-muted); background: var(--bg-sidebar); position: sticky; top: 0; font-family: var(--font-display); }

.app-footer {
  height: 92px; padding: 0 22px; background: linear-gradient(180deg, #242731 0%, #1b1d24 100%);
  border-top: 1px solid rgba(232, 93, 153, 0.28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-shrink: 0;
}
.footer-controls { display: flex; align-items: center; gap: 15px; min-width: 0; flex-wrap: nowrap; overflow: hidden; }
.footer-stack-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.footer-select { height: 42px; padding: 0 12px; font-size: 13px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#footerPlayModeSeg { height: 42px; align-items: center; }
#footerPlayModeSeg .seg-btn { height: 34px; padding: 0 13px; font-size: 12.5px; }
.footer-lbl { font-size: 10.5px; font-weight: 800; letter-spacing: 0.95px; color: #aeb6c7; line-height: 1; }
.footer-launch { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hero-running-wrap { display: flex; align-items: center; gap: 8px; }

.modal { position: fixed; inset: 0; background: rgba(12,13,18,0.74); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; z-index: 90; }
.modal-card { width: 430px; }
.modal-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.modal-foot { padding: 10px 14px; border-top: 1px solid var(--border-subtle); display: flex; justify-content: flex-end; gap: 8px; }
.toast { position: fixed; right: 20px; bottom: 88px; padding: 10px 15px; border-radius: 6px; background: #2f3340; border: 1px solid rgba(255,255,255,0.22); border-left: 3px solid #e85d99; color: #fff; font-size: 12.5px; font-weight: 700; z-index: 95; box-shadow: 0 8px 24px rgba(0,0,0,0.48); font-family: var(--font-display); }
.muted { color: var(--text-muted); }

.updates-pill.hot {
  border-color: rgba(232, 93, 153, 0.65);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(232, 93, 153, 0.28));
  color: #fff;
}
.repo-subpane { display: none; }
.repo-subpane.active { display: block; animation: fadeSlideIn 0.14s ease-out; }
.update-restart-btn.hot {
  border-color: rgba(232, 93, 153, 0.65);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.34), rgba(232, 93, 153, 0.36));
  color: #fff;
}
.repo-drop-zone {
  padding: 11px 13px; border: 1.5px dashed rgba(255, 255, 255, 0.16); border-radius: 8px;
  background: rgba(27, 29, 36, 0.72); display: flex; flex-direction: column; gap: 8px;
  transition: border-color 0.15s ease, background 0.15s ease; margin-bottom: 12px;
}
.repo-drop-zone.drag-over {
  border-color: #e85d99; background: rgba(139, 92, 246, 0.16);
}
.global-drop-overlay {
  position: fixed; inset: 0; z-index: 120; background: rgba(18, 20, 26, 0.86); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.global-drop-card {
  padding: 36px 48px; border-radius: 12px; border: 2px dashed #e85d99;
  background: rgba(34, 37, 48, 0.96); text-align: center; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
}
.pin-star-btn {
  background: transparent; border: none; color: #6c7486; cursor: pointer; font-size: 14px; line-height: 1; padding: 2px 4px;
}
.pin-star-btn:hover, .pin-star-btn.pinned { color: #f59e0b; }
.cat-pill { font-size: 9.5px; padding: 2px 6px; border-radius: 4px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.35px; white-space: nowrap; }
.cat-pill.main { background: rgba(100, 181, 246, 0.16); color: #90caf9; }
.cat-pill.megafork { background: linear-gradient(135deg, rgba(139, 92, 246, 0.26), rgba(232, 93, 153, 0.28)); color: #f6b8d8; border: 1px solid rgba(232, 93, 153, 0.35); }
.cat-pill.fork { background: rgba(255, 255, 255, 0.08); color: #cfd6e4; }
.cat-pill.standalone { background: rgba(224, 82, 82, 0.16); color: #ff8e8e; }
.cat-pill.tracker { background: rgba(245, 166, 66, 0.18); color: #ffd188; }
.score-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px; padding: 2px 6px;
  border-radius: 4px; font-size: 11px; font-weight: 800; font-family: Consolas, monospace;
  background: rgba(56, 217, 107, 0.16); color: #7af2a1; border: 1px solid rgba(56, 217, 107, 0.3);
}
.mf-source-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 9px; border-radius: 6px; background: var(--bg-input); border: 1px solid rgba(255,255,255,0.06); font-size: 12px;
}
.discover-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; }
.settings-subpane, .mods-subpane { display: none; }
.settings-subpane.active, .mods-subpane.active { display: block; animation: fadeSlideIn 0.14s ease-out; }
.subtab-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.wh-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.cat-pill.multiplayer { background: linear-gradient(135deg, rgba(16, 185, 129, 0.24), rgba(59, 130, 246, 0.24)); color: #9cf5d2; border: 1px solid rgba(16, 185, 129, 0.38); }
.cat-pill.loaders { background: rgba(139, 92, 246, 0.22); color: #d8c4ff; border: 1px solid rgba(139, 92, 246, 0.35); }
.cat-pill.performance { background: rgba(245, 166, 66, 0.20); color: #ffd48a; }
.cat-pill.visuals { background: rgba(232, 93, 153, 0.22); color: #f9b8d8; }
.preflight-list { display: flex; flex-direction: column; gap: 6px; }
.preflight-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; background: var(--bg-input); border-radius: 6px; font-size: 12px; border: 1px solid rgba(255,255,255,0.06); }
.preflight-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.preflight-dot.ok { background: #38d96b; box-shadow: 0 0 8px rgba(56, 217, 107, 0.45); }
.preflight-dot.warn { background: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, 0.45); }
.env-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; }
.env-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 4px; background: var(--bg-input); border: 1px solid rgba(232, 93, 153, 0.32); font-size: 11px; font-family: Consolas, monospace; color: #e2e8f0; }
.env-chip button { background: transparent; border: none; color: #f87171; cursor: pointer; font-weight: 800; padding: 0 2px; }
.wizard-steps-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.wizard-step-pill { padding: 6px 8px; border-radius: 6px; background: var(--bg-input); border: 1px solid rgba(255,255,255,0.08); font-size: 11px; font-weight: 700; color: var(--text-muted); text-align: center; }
.wizard-step-pill.active { background: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(232, 93, 153, 0.28)); border-color: rgba(232, 93, 153, 0.55); color: #fff; }
.wizard-step-pill.done { border-color: rgba(56, 217, 107, 0.45); color: #86efac; }
.upd-header-bar { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.upd-meta-pills { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.upd-pane { display: none; }
.upd-pane.active { display: block; animation: fadeSlideIn 0.14s ease-out; }
.upd-item-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 14px; background: var(--bg-input); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; }
.upd-item-main { min-width: 0; flex: 1; }
.upd-item-title { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #eef2fa; flex-wrap: wrap; }
.upd-item-desc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.upd-item-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; white-space: nowrap; }
.upd-section-lbl { font-size: 10.5px; font-weight: 800; letter-spacing: 0.7px; color: var(--text-muted); text-transform: uppercase; margin: 4px 0 2px; }
.sentiment-card { margin-bottom: 12px; }
.sentiment-meter { height: 7px; border-radius: 4px; overflow: hidden; display: flex; margin: 0 12px 12px; background: var(--bg-input); }
.sent-seg { height: 100%; transition: width 0.3s ease; }
.sent-seg.bull { background: linear-gradient(90deg, #22c55e, #38d96b); }
.sent-seg.neut { background: #64748b; }
.sent-seg.caut { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.sent-pill { font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.4px; }
.sent-pill.bullish { background: rgba(56, 217, 107, 0.16); color: #6ef097; border: 1px solid rgba(56, 217, 107, 0.35); }
.sent-pill.neutral { background: rgba(148, 163, 184, 0.16); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.28); }
.sent-pill.cautious { background: rgba(245, 158, 11, 0.18); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.38); }
.news-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 12px; align-items: start; }
.tweet-card { display: flex; gap: 11px; padding: 11px 13px; background: var(--bg-input); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; }
.tweet-avatar { width: 34px; height: 34px; border-radius: 8px; background: var(--vice-gradient); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tweet-body-col { flex: 1; min-width: 0; }
.tweet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tweet-text { font-size: 12.5px; color: #e2e8f0; line-height: 1.45; margin: 5px 0; }
.tweet-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--text-muted); flex-wrap: wrap; }
.dl-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dl-step-card { padding: 11px; border-radius: 8px; background: var(--bg-input); border: 1px solid rgba(255,255,255,0.07); display: flex; flex-direction: column; gap: 5px; font-size: 12px; }
.dl-step-num { width: 22px; height: 22px; border-radius: 6px; background: var(--vice-gradient); color: #fff; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; }

/* Responsive Messages Layout at 1280x800 */
.chat-bar-topic { min-width: 0; }
#chatSendBtn { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 1380px) {
  .chat-rail-left { width: 180px; }
  .chat-rail-right { width: 192px; }
  .chat-canvas { min-width: 0; }
  .chat-composer-box { min-width: 0; gap: 6px; }
  #chatMessageInput { min-width: 0; }
  #chatSendBtn { flex-shrink: 0; white-space: nowrap; }
}

/* Crash Triage Banner */
.crash-triage-banner {
  margin-bottom: 12px; padding: 12px 14px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(207, 70, 70, 0.16), rgba(40, 26, 36, 0.92));
  border: 1px solid rgba(255, 118, 118, 0.38); border-left: 4px solid #ef4444;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.36); display: flex; flex-direction: column; gap: 7px;
  animation: fadeSlideIn 0.16s ease-out;
}
.crash-triage-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.crash-triage-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: #fff; }
.crash-pill { font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 4px; background: rgba(239, 68, 68, 0.25); border: 1px solid rgba(248, 113, 113, 0.45); color: #fecaca; letter-spacing: 0.4px; }
.crash-hex { font-family: Consolas, monospace; font-size: 11.5px; padding: 2px 6px; border-radius: 4px; background: var(--bg-input); color: #fca5a5; border: 1px solid rgba(255,255,255,0.1); }
.crash-triage-cause { font-size: 12.5px; color: #e2e8f0; line-height: 1.45; }
.crash-triage-said { font-size: 12px; line-height: 1.45; }
.crash-triage-said code { display: inline-block; max-width: 100%; padding: 2px 6px; border-radius: 4px; background: rgba(0,0,0,0.35); color: #fde68a; white-space: pre-wrap; word-break: break-word; user-select: text; }
.crash-triage-recs { padding-left: 18px; display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: #cbd5e1; }
.crash-triage-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }

/* Mod Conflicts & Load Order */
.mod-conflicts-bar {
  margin-bottom: 10px; padding: 9px 12px; border-radius: 8px;
  background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.36);
  display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #fde68a;
}
.mod-conflict-pill {
  display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700;
  padding: 2px 7px; border-radius: 4px; background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.36); color: #fcd34d; width: fit-content;
}
.mod-conflict-pill.loser {
  background: rgba(239, 68, 68, 0.16); border-color: rgba(239, 68, 68, 0.36); color: #fca5a5;
}

/* Preflight Fix Hint */
.preflight-row { flex-wrap: wrap; }
.preflight-fix-row {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 4px; padding: 5px 8px; border-radius: 5px;
  background: rgba(16, 18, 24, 0.7); border: 1px solid rgba(255, 255, 255, 0.08);
}
.preflight-fix-code {
  font-family: Consolas, monospace; font-size: 11px; color: #f3c6df;
  word-break: break-all; flex: 1; min-width: 0; user-select: text;
}

/* Compact Density Mode */
body.density-compact .stage:not(.flush-stage) { padding: 10px 12px 12px; }
body.density-compact .tab-pane { padding: 0; }
body.density-compact .grey-card { padding: 0; }
body.density-compact .grey-card .card-head { padding: 7px 10px; }
body.density-compact .repo-row { padding: 7px 10px; gap: 8px; }
body.density-compact .mod-card { padding: 8px 10px; gap: 6px; }
body.density-compact .nav-item { height: 31px; padding: 0 8px 0 11px; font-size: 12.2px; }

/* Project Mandy Spotlight & Featured Repos */
.mandy-spotlight {
  width: 100%;
  border: 1px solid rgba(232, 93, 153, 0.42);
  border-left: 4px solid var(--vice-accent-1);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    radial-gradient(circle at top right, rgba(123, 92, 246, 0.22), transparent 55%),
    radial-gradient(circle at bottom left, rgba(232, 93, 153, 0.18), transparent 50%),
    linear-gradient(135deg, rgba(28, 26, 38, 0.96) 0%, rgba(22, 24, 32, 0.98) 100%);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--vice-accent-2, #7b5cf6) 22%, transparent), transparent 55%),
    radial-gradient(circle at bottom left, color-mix(in srgb, var(--vice-accent-1, #e85d99) 18%, transparent), transparent 50%),
    linear-gradient(135deg, rgba(28, 26, 38, 0.96) 0%, rgba(22, 24, 32, 0.98) 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42), 0 0 22px rgba(232, 93, 153, 0.16);
}
.mandy-spotlight-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.mandy-kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 10.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: var(--vice-gradient);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(232, 93, 153, 0.28);
}
.mandy-meta-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.mandy-spotlight-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.repo-row.featured-repo {
  border-left: 3px solid var(--vice-accent-1);
  background: linear-gradient(90deg, rgba(232, 93, 153, 0.10), rgba(123, 92, 246, 0.04) 55%, rgba(255, 255, 255, 0.02));
}
.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  background: var(--vice-gradient);
  color: #fff;
}

/* Auto-Update Banner & Pulsing Topbar Button */
.auto-update-banner {
  background: linear-gradient(90deg, rgba(232, 93, 153, 0.16), rgba(123, 92, 246, 0.16));
  border: 1px solid rgba(232, 93, 153, 0.45);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.auto-update-banner.hidden { display: none; }
@keyframes vdPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(232, 93, 153, 0.45); transform: scale(1); }
  50% { box-shadow: 0 0 20px rgba(232, 93, 153, 0.72), 0 0 0 3px rgba(232, 93, 153, 0.16); transform: scale(1.02); }
}
.update-restart-btn.has-update {
  background: var(--vice-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 12px rgba(232, 93, 153, 0.45);
  font-weight: 800;
  animation: vdPulse 2.2s ease-in-out infinite;
}

/* My Agents & Friend Agents Roster */
.agent-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 10px;
}
.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 12px rgba(0, 0, 0, 0.24);
}
.agent-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.agent-owner-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.agent-owner-pill.mine {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.22), rgba(123, 92, 246, 0.24));
  border: 1px solid rgba(45, 212, 191, 0.42);
  color: #99f6e4;
}
.agent-owner-pill.friend {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(232, 93, 153, 0.24));
  border: 1px solid rgba(232, 93, 153, 0.42);
  color: #fbcfe8;
}
.agent-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #dbe2ef;
  white-space: nowrap;
}
.agent-ping-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  white-space: nowrap;
}
.agent-ping-pill.online {
  background: rgba(56, 217, 107, 0.16);
  border: 1px solid rgba(56, 217, 107, 0.38);
  color: #6ef097;
}
.agent-ping-pill.offline {
  background: rgba(207, 70, 70, 0.16);
  border: 1px solid rgba(248, 113, 113, 0.36);
  color: #fca5a5;
}
.agent-ping-pill.heuristic {
  background: rgba(245, 166, 66, 0.16);
  border: 1px solid rgba(245, 166, 66, 0.38);
  color: #fcd34d;
}
.agent-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 4px;
}
.agent-editor-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

/* Local Repo Vault & Git Remote Bar */
.local-repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.local-repo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 12px rgba(0, 0, 0, 0.22);
}
.local-repo-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--text-muted);
}
.git-remote-bar {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 12px;
}

/* User Customizer & Quick Shortcuts */
.theme-swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.theme-swatch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg-input);
  cursor: pointer;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}
.theme-swatch:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
}
.theme-swatch.active {
  border-color: var(--vice-accent-1);
  box-shadow: 0 0 0 1px var(--vice-accent-1);
}
.swatch-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.tab-vis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.shortcut-pill-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.home-custom-shortcuts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.home-shortcut-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.1s ease;
}
.home-shortcut-chip:hover {
  border-color: var(--vice-accent-1);
  background: var(--bg-elev);
  transform: translateY(-1px);
}

/* ===== Demo fidelity: curated list source line, repo details, shared X accounts ===== */
.curated-source-meta { padding: 6px 12px; font-size: 11px; color: var(--text-muted); border-bottom: 1px solid var(--border-subtle); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; line-height: 1.5; }
.curated-source-meta code, .x-handles-card code { font-size: 10.5px; color: #f3c6df; }
.repo-expand-btn { background: none; border: 0; color: var(--text-muted); cursor: pointer; font-size: 11px; padding: 0 5px 0 0; }
.repo-expand-btn:hover { color: var(--text-main); }
.repo-detail-row td { background: rgba(255, 255, 255, 0.025); }
.repo-detail { display: flex; flex-direction: column; gap: 6px; padding: 4px 2px 6px; font-size: 11.5px; line-height: 1.45; }
.repo-detail-desc { color: var(--text-main); }
.repo-detail-readme { color: #d9dfea; }
.repo-detail-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11px; }
.repo-detail-foot a { text-decoration: none; }
.x-handles-card { margin-bottom: 12px; }
.x-handle-tagbar { padding: 6px 12px 0; }
.x-handle-tagbar:empty { display: none; }
.x-handle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 8px; padding: 10px 12px; }
.x-handle-card { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 8px; background: var(--bg-input); border: 1px solid var(--border-subtle); }
.x-handle-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.x-handle-name { font-size: 12.5px; display: flex; flex-direction: column; min-width: 0; }
.x-handle-name strong, .x-handle-at { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-handle-at { font-size: 11px; }
.x-handle-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.x-handle-post { font-size: 11.5px; color: #dfe5ef; line-height: 1.4; }
.x-handle-post a { color: #f472b6; text-decoration: none; }
.x-handle-actions { display: flex; flex-direction: column; gap: 5px; align-items: stretch; }
.x-handle-actions a { text-decoration: none; text-align: center; white-space: nowrap; }
.news-tag.x-origin-repo { background: rgba(139, 92, 246, 0.2); color: #c9b2ff; }
.news-tag.x-origin-user { background: rgba(56, 217, 107, 0.15); color: #7cf0a2; }
.news-tag.x-example { background: rgba(245, 166, 66, 0.18); color: #ffd188; }
.news-tag.x-live { background: rgba(232, 93, 153, 0.2); color: #ffb3d4; }
.link-btn { background: none; border: 0; padding: 0; color: #f472b6; cursor: pointer; font-size: inherit; text-decoration: underline; }
@media (max-width: 720px) { .x-handle-card { flex-wrap: wrap; } .x-handle-actions { flex-direction: row; width: 100%; } }

/* --- Community list + fork flow (community block in app.js) --- */
.community-badge {
  display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 3px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .04em; vertical-align: middle;
  color: #0f1a14; background: #5fd38d; border: 1px solid #3fae6c;
}
.community-badge.review { color: #2a1d05; background: #f2c14e; border-color: #c99a2a; }
.community-strip {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0;
  padding: 7px 10px; border: 1px dashed var(--border-subtle, #3a3d46); border-radius: 6px; font-size: 11.5px;
}
.community-strip .community-badge { margin-left: 0; }
.community-strip-text { flex: 1 1 260px; color: var(--text-muted, #aab); }
.community-share-btn { white-space: nowrap; }
.cs-results { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow: auto; }
.cs-item { border: 1px solid var(--border-subtle, #3a3d46); border-radius: 6px; padding: 7px 9px; display: flex; flex-direction: column; gap: 5px; }
.cs-item-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cs-item-head .pane-actions { margin-left: auto; }
.cs-cli { font-size: 10.5px; word-break: break-all; opacity: .85; }
.cs-help { font-size: 11.5px; }
.cs-help.warn, .edition-follow-line.warn, #forkFollowStatus.warn { color: #f2c14e; }
.edition-follow-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.edition-follow-line { font-size: 11.5px; font-weight: 600; }
.fork-steps { border: 1px solid var(--border-subtle, #3a3d46); border-radius: 6px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.fork-steps-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; }
.fork-follow-row { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.fork-follow-row input { flex: 1 1 200px; }
#easyForkModal .modal-card, #communityShareModal .modal-card { max-height: 92vh; display: flex; flex-direction: column; }
#easyForkModal .modal-body, #communityShareModal .modal-body { overflow-y: auto; }
.community-badge.candidate { color: #0b1630; background: #7fb2ff; border-color: #4e86d8; }
.community-live-status { font-size: 10.5px; color: var(--text-muted, #aab); }
.community-cand-count { font-size: 9.5px; opacity: .75; margin-left: 2px; }

/* Preflight: required vs optional (users could not tell which CHECK rows mattered) */
.preflight-summary { padding: 8px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.preflight-summary.good { background: rgba(56,217,107,0.12); color: #86efac; border: 1px solid rgba(56,217,107,0.3); }
.preflight-summary.bad { background: rgba(239,68,68,0.12); color: #fca5a5; border: 1px solid rgba(239,68,68,0.35); }
.preflight-dot.bad { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.5); }
.preflight-dot.off { background: #64748b; }
.preflight-need { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 1px 5px; border-radius: 4px; background: rgba(255,255,255,0.06); color: #94a3b8; margin-left: 4px; }
.preflight-row.need-required:not(.is-ok) .preflight-need { background: rgba(239,68,68,0.16); color: #fca5a5; }
.preflight-todo { font-size: 11px; color: #cbd5e1; margin-top: 3px; }
.preflight-badge.required { background: rgba(239,68,68,0.16); color: #fca5a5; border-color: rgba(239,68,68,0.4); }
.preflight-badge.recommended { background: rgba(245,158,11,0.16); color: #fcd34d; border-color: rgba(245,158,11,0.35); }
.preflight-badge.optional { background: rgba(100,116,139,0.18); color: #cbd5e1; border-color: rgba(100,116,139,0.4); }

/* Local repos / files */
#localSrcModal { z-index: 140; }
.local-src-card { width: min(620px, calc(100vw - 32px)); max-height: 88vh; display: flex; flex-direction: column; }
.local-src-card .modal-body { overflow-y: auto; }
.local-src-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.local-src-row .grey-input { flex: 1; min-width: 180px; }
.local-src-result { background: var(--bg-input); border: 1px solid rgba(255,255,255,0.08); border-radius: 6px; padding: 9px 10px; font-size: 12px; display: flex; flex-direction: column; gap: 3px; }
.local-src-ev { margin: 4px 0 0 16px; padding: 0; font-size: 11px; color: #94a3b8; }
.local-src-warn { font-size: 11px; color: #fcd34d; }
.local-src-bad { font-size: 12px; color: #fca5a5; }
.local-src-conf { margin-left: 6px; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; }
.local-src-conf.hi { background: rgba(56,217,107,0.15); color: #86efac; }
.local-src-conf.mid { background: rgba(245,158,11,0.15); color: #fcd34d; }
.local-src-conf.lo { background: rgba(239,68,68,0.15); color: #fca5a5; }
.local-src-found, .local-src-list { display: flex; flex-direction: column; gap: 5px; }
.local-src-panel { margin-bottom: 12px; }
.local-src-panel .local-src-list { padding: 8px 10px; }
.local-src-hit { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 9px; background: var(--bg-input); border-radius: 6px; font-size: 12px; border: 1px solid rgba(255,255,255,0.06); }
.local-src-hit.added { opacity: .65; }
.local-src-path { font-size: 10.5px; word-break: break-all; }
.gw-local-line { margin-top: 10px; padding: 9px 10px; border: 1px dashed rgba(255,255,255,0.18); border-radius: 6px; font-size: 12px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.prebuild-line { font-size: 11.5px; color: #cbd5e1; margin-top: 4px; }
#prebuildSkipRow { font-size: 11px; display: flex; gap: 6px; align-items: center; margin-top: 3px; }
/* Benchmark card */
.bench-live { font-size: 12px; font-weight: 700; color: #fcd34d; }
.bench-best { font-size: 12px; color: #e2e8f0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.bench-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.bench-table th, .bench-table td { text-align: left; padding: 3px 6px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.bench-table th { color: #94a3b8; font-weight: 700; }
.bench-table tr.bench-invalid td { color: #64748b; }
.bench-history { overflow-x: auto; }

.news-tag.risk-tag { margin-left: 4px; background: rgba(255, 170, 60, 0.18); color: #ffb35c; cursor: help; }
.settings-reach-line { font-size: 11px; line-height: 1.4; margin-top: -2px; }
.launch-mode-box { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; }
.launch-overrides { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.launch-ov { font-size: 11.5px; display: flex; align-items: center; gap: 6px; }
.launch-ov .grey-input { width: auto; min-width: 90px; }
.form-stack .launch-mode-box label.launch-ov { flex-direction: row; align-items: center; gap: 6px; font-weight: 500; }
.form-stack label.custom-only-off { opacity: 0.45; }
.launch-ov-group { display: flex; flex-wrap: wrap; gap: 6px 14px; width: 100%; align-items: center; }
.launch-ov-head { width: 100%; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; margin-top: 4px; }
.gpu-features { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 6px; }
.gpu-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 11.5px; }
.gpu-row.gpu-warn { color: #ffb86b; }
.gpu-note { font-size: 11px; }

/* PLAY while setup is unfinished: secondary look, opens the first missing step. */
#footerPlayBtn.play-setup { background: rgba(255, 255, 255, 0.08); color: var(--text-main); box-shadow: none; font-size: 13px; }
#footerPlayBtn.play-setup .play-ico { display: none; }
.footer-stack-field.native-dim .footer-select { opacity: 0.5; }
.footer-stack-field.native-dim .footer-lbl { color: #ffb86b; }
#quickModsNativeChip { font-size: 10.5px; margin-left: 8px; }
.mod-mini-reach { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mod-mini-reach .news-tag { font-size: 9px; padding: 0 5px; }

.preflight-group-head { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; margin: 6px 0 2px; }
.preflight-build-group { margin-top: 8px; }
.preflight-build-group > summary { cursor: pointer; font-size: 12px; color: var(--text-muted); padding: 4px 0; }

/* Accessibility basics: one visible focus ring for keyboard users, and less motion when the OS asks for it. */
:root { --focus-ring: 0 0 0 2px rgba(200, 107, 255, 0.85); }
:where(button, a, select, input, textarea, summary, [tabindex]):focus-visible { outline: none; box-shadow: var(--focus-ring); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
.status-badge.setup { background: rgba(255, 170, 60, 0.18); color: #ffb35c; border-color: rgba(255, 170, 60, 0.4); }

/* Phase 5: Home game card, launch timeline, runtime builds */
.home-game-card { position: relative; z-index: 2; margin-top: 12px; max-width: 640px; padding: 10px 12px; border-radius: 10px; background: rgba(10, 12, 20, 0.62); border: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: blur(6px); display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.home-game-card:empty { display: none; }
.hgc-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hgc-rt { font-weight: 800; font-size: 13.5px; color: var(--text-main); }
.hgc-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hgc-steps-title { width: 100%; color: var(--text-muted); }
.hgc-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.hgc-history { display: flex; flex-direction: column; gap: 4px; max-height: 92px; overflow: auto; padding-right: 4px; }
.hgc-hrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11.5px; }
.launch-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.lt-step { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-muted); }
.lt-ico { width: 16px; height: 16px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; background: rgba(255, 255, 255, 0.08); }
.lt-done { color: var(--text-main); } .lt-done .lt-ico { background: rgba(80, 220, 140, 0.25); color: #6ff0a8; }
.lt-active { color: #ffd27a; } .lt-active .lt-ico { background: rgba(255, 200, 90, 0.25); animation: lt-pulse 1.2s ease-in-out infinite; }
.lt-failed { color: #ff8a8a; } .lt-failed .lt-ico { background: rgba(255, 90, 90, 0.25); }
.lt-skipped { opacity: 0.55; }
.lt-detail { font-size: 10.5px; opacity: 0.8; }
@keyframes lt-pulse { 50% { opacity: 0.4; } }
.rt-builds { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 6px; font-size: 11.5px; }
.rt-builds-head { font-weight: 700; color: var(--text-muted); }
.rt-build-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Phase 6: compatibility verdicts + runtime's own bench */
.compat-pill { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; margin-right: 6px; border: 1px solid transparent; white-space: nowrap; }
.compat-plays { background: rgba(34,197,94,.16); color: #86efac; border-color: rgba(34,197,94,.45); }
.compat-in_game { background: rgba(59,130,246,.16); color: #93c5fd; border-color: rgba(59,130,246,.45); }
.compat-starts { background: rgba(250,204,21,.14); color: #fde68a; border-color: rgba(250,204,21,.4); }
.compat-broken { background: rgba(239,68,68,.16); color: #fca5a5; border-color: rgba(239,68,68,.45); }
.compat-untested { background: rgba(148,163,184,.12); color: #cbd5e1; border-color: rgba(148,163,184,.3); }
.bench-runtime { display: flex; flex-direction: column; gap: 4px; font-size: 12px; padding: 8px 10px; border-radius: 8px; background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.3); }
.bench-runtime button { align-self: flex-start; margin-top: 2px; }

/* Phase 7: Home as one calm stage over an animated background (ui/home-bg.js).
   The background fills the stage (right of the side pane, above the footer). Only transform and opacity animate,
   motion stops while a game runs, when Home is hidden and for prefers-reduced-motion. */
.stage.home-stage { padding: 0; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.stage.home-stage > .auto-update-banner { position: relative; z-index: 6; margin: 12px 18px 0; }
#tab-home.tab-pane.active { display: flex; flex-direction: column; flex: 1; min-height: 0; position: relative; padding: 22px 26px 14px; gap: 12px; animation: none; overflow: hidden; }
#tab-home > :not(.home-bg) { position: relative; z-index: 2; }
#tab-home .crash-triage-banner { z-index: 5; }

.home-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #120f1f; contain: strict; }
.home-bg-img { position: absolute; inset: -5%; background: center 62% / cover no-repeat; background-image: var(--home-bg-url, url("assets/hero-simple.jpg"));
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.05); will-change: transform; transition: opacity .6s ease; }
.home-bg-img.drift { animation: homeDrift 80s ease-in-out infinite alternate; }
@keyframes homeDrift {
  0% { transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.05); }
  50% { transform: translate3d(calc(var(--px, 0px) - 1.6%), calc(var(--py, 0px) - 0.8%), 0) scale(1.09); }
  100% { transform: translate3d(calc(var(--px, 0px) + 0.8%), calc(var(--py, 0px) + 0.4%), 0) scale(1.06); }
}
/* Warm sunset glow that breathes, and a soft light sheen that crosses now and then */
.home-bg-glow { position: absolute; inset: 0; background: radial-gradient(60% 45% at 30% 52%, rgba(255, 150, 90, 0.30), transparent 70%); mix-blend-mode: screen; opacity: .35; }
.home-bg-sheen { position: absolute; top: -20%; bottom: -20%; left: -40%; width: 35%; background: linear-gradient(100deg, transparent, rgba(255, 220, 255, 0.10), transparent); transform: translate3d(-60%, 0, 0) skewX(-12deg); opacity: 0; }
.home-bg.moving .home-bg-glow { animation: homeGlow 14s ease-in-out infinite alternate; }
.home-bg.moving .home-bg-sheen { animation: homeSheen 22s ease-in-out infinite; }
@keyframes homeGlow { from { opacity: .22; } to { opacity: .5; } }
@keyframes homeSheen { 0%, 62% { transform: translate3d(-60%, 0, 0) skewX(-12deg); opacity: 0; } 70% { opacity: 1; } 92%, 100% { transform: translate3d(420%, 0, 0) skewX(-12deg); opacity: 0; } }
.home-bg-scrim { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 18, calc(var(--bg-dim, .3) + .35)) 0%, rgba(10, 10, 18, var(--bg-dim, .3)) 38%, rgba(10, 10, 18, calc(var(--bg-dim, .3) * .4)) 70%, transparent 100%),
              linear-gradient(180deg, rgba(10, 10, 18, calc(var(--bg-dim, .3) * .6)) 0%, transparent 26%, transparent 55%, rgba(10, 10, 18, calc(var(--bg-dim, .3) + .45)) 100%); }
.home-bg.paused .home-bg-img, .home-bg.paused .home-bg-glow, .home-bg.paused .home-bg-sheen { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .home-bg-img.drift, .home-bg.moving .home-bg-glow, .home-bg.moving .home-bg-sheen { animation: none !important; } .home-bg-sheen { display: none; } }

.home-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
#tab-home .hero-heading { font-size: 46px; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45); }
#tab-home .hero-kicker { opacity: .85; }
#tab-home .hero-sub { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.hero-action-strip { align-items: center; }
.glass-btn { height: 32px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: #f1ecf8;
  background: rgba(16, 14, 26, 0.45); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(8px); cursor: pointer; list-style: none; }
.glass-btn:hover { background: rgba(30, 26, 46, 0.65); border-color: rgba(255, 255, 255, 0.28); }
.home-more { position: relative; }
.home-more > summary::-webkit-details-marker { display: none; }
.home-more-pop { position: absolute; right: 0; top: 38px; min-width: 210px; display: flex; flex-direction: column; padding: 6px; border-radius: 10px; background: rgba(20, 18, 32, 0.94); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5); z-index: 20; }
.home-more-pop button { text-align: left; padding: 8px 10px; border-radius: 6px; background: none; border: 0; color: #e8e4f0; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.home-more-pop button:hover { background: rgba(255, 255, 255, 0.08); }
.home-spacer { flex: 1; min-height: 8px; }

.home-bottom { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; align-items: end; }
#tab-home .home-game-card { margin-top: 0; max-width: none; padding: 14px 16px; border-radius: 12px; background: rgba(14, 12, 24, 0.58); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(10px); gap: 10px; font-size: 12.5px; }
#tab-home .feed24-dock { background: rgba(14, 12, 24, 0.5); border-radius: 12px; padding: 12px 14px; box-shadow: none; border-color: rgba(255, 255, 255, 0.12); }
#tab-home .feed24-title { font-size: 14px; }
#tab-home .feed24-desc { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed-ctl { height: 24px; min-width: 24px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 700; color: #ddd6ea; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); cursor: pointer; }
.feed-ctl:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.feed-go { height: 28px; white-space: nowrap; }

.home-tray { display: flex; gap: 8px; }
.tray-tab { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #e9e3f3;
  background: rgba(14, 12, 24, 0.55); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(8px); cursor: pointer; }
.tray-tab:hover, .tray-tab[aria-expanded="true"] { border-color: rgba(232, 93, 153, 0.55); background: rgba(30, 20, 40, 0.7); }
.tray-count { font-size: 10.5px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: #cfc7de; }
.tray-caret { font-size: 9px; opacity: .7; transition: transform .15s; }
.tray-tab[aria-expanded="true"] .tray-caret { transform: rotate(180deg); }
.home-tray-panel { max-height: 42%; overflow: auto; border-radius: 12px; background: rgba(16, 14, 26, 0.86); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(12px); flex-shrink: 0; }
.home-tray-panel .card-head { position: sticky; top: 0; background: rgba(16, 14, 26, 0.96); z-index: 1; }
.home-tray-panel .quick-mods-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.home-tray-panel .news-list { padding: 4px 12px 10px; }

@media (max-width: 1100px) {
  .home-bottom { grid-template-columns: minmax(0, 1fr); }
  #tab-home .feed24-dock { display: none; }
  #tab-home .hero-heading { font-size: 38px; }
}
@media (max-height: 700px) { #tab-home .feed24-desc, #tab-home .feed24-bars { display: none; } }
.home-bg-settings { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 14px; align-items: start; }
.home-bg-preview { aspect-ratio: 16 / 9; border-radius: 8px; background: #151320 center / cover no-repeat; border: 1px solid var(--border-subtle); }
.home-bg-controls { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.home-bg-choices { display: flex; flex-wrap: wrap; gap: 6px 16px; }
@media (max-width: 900px) { .home-bg-settings { grid-template-columns: minmax(0, 1fr); } }
#tab-home > .home-top { z-index: 4; }
/* On Home, the update banner stays one compact line; "View changes" still shows everything. */
.stage.home-stage .vdu-changes, .stage.home-stage .vdu-chips, .stage.home-stage .vdu-banner-sub { display: none; }
.stage.home-stage > :not(#tab-home):not(.tab-pane) { position: relative; z-index: 6; margin: 10px 18px 0; }

/* Sidebar: dark smoked glass. A faint, heavily blurred hint of the Home picture shows through a near-opaque tint. */
.sidebar { position: relative; isolation: isolate; width: 236px; padding: 14px 12px; background: rgba(17, 17, 22, 0.86); border-right: 1px solid rgba(255, 255, 255, 0.06); overflow: hidden; }
.sidebar::before { content: ""; position: absolute; inset: -60px; z-index: -2; background: #111116 var(--shell-bg-url, url("assets/hero-simple.jpg")) 15% 70% / cover no-repeat; filter: blur(40px) saturate(0.9) brightness(0.55); opacity: 0.45; transform: translateZ(0); }
.sidebar::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(0, 0, 0, 0.18)); pointer-events: none; }
.nav-list { gap: 3px; }
.nav-item { height: 42px; padding: 0 12px 0 14px; gap: 12px; border-radius: 12px; font-size: 14px; font-weight: 650; color: rgba(228, 228, 236, 0.76); letter-spacing: 0.1px; }
.nav-item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.nav-item.active { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.10); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); color: #fff; backdrop-filter: none; }
.nav-item.active::before { left: 2px; top: 11px; bottom: 11px; width: 3px; border-radius: 3px; }
.nav-ico, .nav-ico svg { width: 20px; height: 20px; }
.nav-ico { color: rgba(210, 210, 220, 0.66); }
.nav-item:hover .nav-ico, .nav-item.active .nav-ico { color: #fff; }
.nav-badge { border-radius: 999px; padding: 1px 7px; }
.sidebar .session-card { background: rgba(255, 255, 255, 0.035); border-color: rgba(255, 255, 255, 0.08); border-radius: 10px; box-shadow: none; }
.sidebar .brand-header { border-bottom-color: rgba(255, 255, 255, 0.06); }

/* Living background extras: palm sway (default art), an occasional flock of birds, drifting haze. */
.home-bg-palms { position: absolute; inset: 0; pointer-events: none; }
.home-bg-palms .palm { position: absolute; inset: 0; background: inherit; background-image: var(--home-bg-url); background-size: cover; background-position: center 62%;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--cx) var(--cy), #000 52%, transparent 100%); mask-image: radial-gradient(circle var(--r) at var(--cx) var(--cy), #000 52%, transparent 100%);
  will-change: transform; }
.home-bg.moving .home-bg-palms .palm { animation: palmSway var(--dur, 7s) ease-in-out var(--delay, 0s) infinite alternate; }
@keyframes palmSway { 0% { transform: rotate(calc(var(--amp) * -1)); } 100% { transform: rotate(var(--amp)); } }

.home-bg-birds { position: absolute; left: 0; top: 0; width: 100%; height: 50%; display: none; pointer-events: none; }
.home-bg.scene-sky.moving .home-bg-birds { display: block; }
.home-bg-birds .flock { position: absolute; left: -8%; top: 30%; opacity: 0; }
.home-bg-birds .flock-a { animation: flyA 46s linear 4s infinite; }
.home-bg-birds .flock-b { animation: flyB 63s linear 21s infinite; }
.home-bg-birds .flock-c { animation: flyC 81s linear 37s infinite; }
@keyframes flyA { 0% { left: -8%; top: 36%; opacity: 0; } 1.5% { opacity: 1; } 22% { top: 22%; } 32% { left: 106%; top: 18%; opacity: 1; } 33%, 100% { left: 106%; opacity: 0; } }
@keyframes flyB { 0% { left: 106%; top: 26%; opacity: 0; } 1.5% { opacity: .9; } 28% { left: -8%; top: 14%; opacity: .9; } 29%, 100% { left: -8%; opacity: 0; } }
@keyframes flyC { 0% { left: -8%; top: 16%; opacity: 0; } 1.5% { opacity: .85; } 24% { left: 106%; top: 30%; opacity: .85; } 25%, 100% { left: 106%; opacity: 0; } }
.home-bg-birds .bird { position: absolute; left: var(--x); top: var(--y); width: calc(34px * var(--s)); height: calc(20px * var(--s)); animation: bob 2.6s ease-in-out var(--d) infinite alternate; }
.home-bg-birds .bird svg { width: 100%; height: 100%; overflow: visible; fill: rgba(26, 14, 40, 0.82); }
.home-bg-birds .wing { transform-box: view-box; transform-origin: 0px 0px; animation: flapL .42s ease-in-out var(--d) infinite alternate; }
.home-bg-birds .wing-r { animation-name: flapR; }
@keyframes flapL { from { transform: rotate(-26deg); } to { transform: rotate(30deg) scaleY(.7); } }
@keyframes flapR { from { transform: scaleX(-1) rotate(-26deg); } to { transform: scaleX(-1) rotate(30deg) scaleY(.7); } }
@keyframes bob { from { transform: translateY(-2px); } to { transform: translateY(3px); } }
.flock-b .wing { animation-duration: .5s; } .flock-c .wing { animation-duration: .36s; }
.home-bg-haze { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.home-bg-haze span { position: absolute; width: 60%; height: 22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 210, 235, 0.13), transparent); filter: blur(8px); top: 30%; left: -60%; }
.home-bg-haze span + span { top: 18%; width: 45%; height: 16%; background: radial-gradient(closest-side, rgba(190, 220, 255, 0.11), transparent); }
.home-bg.moving .home-bg-haze span { animation: hazeDrift 120s linear infinite; }
.home-bg.moving .home-bg-haze span + span { animation-duration: 170s; animation-delay: -60s; }
@keyframes hazeDrift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(330%, 0, 0); } }
.home-bg.paused .home-bg-palms .palm, .home-bg.paused .home-bg-birds .flock, .home-bg.paused .home-bg-birds .bird, .home-bg.paused .home-bg-birds .wing, .home-bg.paused .home-bg-haze span { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .home-bg-palms .palm, .home-bg-birds .flock, .home-bg-birds .bird, .home-bg-birds .wing, .home-bg-haze span { animation: none !important; } .home-bg-birds { display: none !important; } }

/* Home title block removed (28 Nov): only the Setup and ⋯ buttons stay, top right.
   Quick shortcuts (Project Mandy, Repo Vault, user-made) live at the top of the ⋯ menu. */
#tab-home > .home-top { justify-content: flex-end; }
.home-more-pop .home-custom-shortcuts { flex-direction: column; align-items: stretch; gap: 0; margin: 0 0 4px; padding-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.home-more-pop .home-custom-shortcuts:empty { display: none; }
.home-more-pop .home-shortcut-chip { justify-content: flex-start; padding: 8px 10px; border-radius: 6px; background: none; border: 0; color: #e8e4f0; font-size: 12.5px; font-weight: 600; box-shadow: none; }
.home-more-pop .home-shortcut-chip:hover { background: rgba(255, 255, 255, 0.08); }

/* Home feed card (28 Nov): roomier, with a thumbnail (item image, repo preview card, shipped art or a family glyph). */
.home-bottom { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
#tab-home .feed24-dock { padding: 14px 16px; min-height: 196px; display: flex; flex-direction: column; }
#tab-home .feed24-body-row { align-items: stretch; gap: 14px; flex: 1; }
.feed24-thumb { flex: 0 0 168px; height: 112px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; align-self: center;
  background: radial-gradient(circle at 30% 20%, rgba(232, 93, 153, 0.35), transparent 60%), linear-gradient(135deg, #2a1640, #10202e); border: 1px solid rgba(255, 255, 255, 0.12); }
.feed24-thumb img { width: 100%; height: 100%; display: block; }
.feed24-thumb.is-icon { background: #12131c; }
.feed24-thumb.is-icon img { padding: 8px; }
.feed24-glyph { font-size: 38px; color: rgba(255, 255, 255, 0.85); text-shadow: 0 2px 14px rgba(232, 93, 153, 0.5); }
#tab-home .feed24-copy { display: flex; flex-direction: column; gap: 4px; }
#tab-home .feed24-title { font-size: 15px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
#tab-home .feed24-desc { -webkit-line-clamp: 3; margin-top: 0; }
#tab-home .feed-go { align-self: flex-start; margin-top: auto; }
@media (max-width: 1280px) { .feed24-thumb { flex-basis: 128px; height: 92px; } }

/* ---- Play bar: responsive layout (never squash or overlap controls) ---- */
.app-footer { height: auto; min-height: 92px; padding: 10px 22px; }
.footer-controls {
  flex: 1 1 auto; display: grid; overflow: visible; gap: 10px 14px; align-items: end;
  grid-template-columns: minmax(130px, 1fr) minmax(140px, 1.15fr) max-content minmax(140px, 1.05fr);
}
.footer-stack-field { min-width: 0; }
.footer-select { width: 100%; max-width: 260px; min-width: 0; }
.footer-lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#footerPlayModeSeg { flex-wrap: nowrap; }
#footerPlayModeSeg .seg-btn { white-space: nowrap; }
.footer-stack-field.native-dim .footer-select:disabled { cursor: not-allowed; }
#footerPlayBtn { white-space: nowrap; }
@media (max-width: 1240px) {
  .footer-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-select { max-width: none; }
  #footerPlayModeSeg { width: 100%; }
  #footerPlayModeSeg .seg-btn { flex: 1 1 0; padding: 0 8px; }
  .footer-launch .raised-play { min-width: 170px; }
}
@media (max-width: 1100px) {
  .app-footer { padding: 8px 14px; gap: 12px; }
  .footer-select { height: 36px; }
  #footerPlayModeSeg { height: 36px; }
  #footerPlayModeSeg .seg-btn { height: 30px; font-size: 12px; }
  .footer-launch .raised-play { min-width: 150px; padding-left: 16px; padding-right: 16px; }
}
/* Settings controls the active runtime does not read (see markControlReach in app.js). */
.reach-off > select, .reach-off > input:not([type="checkbox"]) { opacity: 0.5; }
.reach-off { color: var(--text-muted); }
.reach-tag { margin-left: 6px; vertical-align: middle; font-size: 10px; display: inline-block; width: auto; align-self: flex-start; }

/* Narrow windows (the app window can be dragged below 860px): the sidebar becomes an icon rail so the
   footer controls and cards keep their room instead of being cut off. */
@media (max-width: 860px) {
  .sidebar { width: 64px; padding: 12px 8px; }
  .sidebar .brand-header, .sidebar .side-session, .sidebar .session-card { display: none; }
  .sidebar .nav-item { justify-content: center; padding: 0; gap: 0; }
  .sidebar .nav-item > span:not(.nav-ico) { display: none; }
  .topbar .mono-stat { display: none; }
}

/* Phase 11: Repositories, one clear column. Header actions, section tabs, then the list. */
.repo-v2 .repo-head { margin-bottom: 10px; }
.repo-v2 .repo-head h2 { font-size: 22px; }
.repo-v2 .repo-tabs { margin: 0 0 14px; align-self: flex-start; }
.repo-v2 .repo-tabs .seg-btn { padding: 0 16px; min-height: 34px; font-size: 13px; }
.repo-v2 .grey-card { margin-bottom: 14px; }
.repo-v2 .card-head > span:first-child { text-transform: none; letter-spacing: 0; font-size: 14px; }
.repo-add-card .repo-add-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; border: 0; background: transparent; }
.repo-add-label { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.repo-add-card textarea { resize: vertical; font-family: Consolas, monospace; font-size: 12px; min-height: 64px; }
.repo-add-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.repo-add-row .check-row { font-size: 12px; color: var(--text-muted); display: inline-flex; gap: 5px; align-items: center; }
.repo-add-more > summary { cursor: pointer; font-size: 12px; color: var(--text-subtle); margin-top: 4px; }
.repo-add-more[open] > summary { margin-bottom: 8px; }
.repo-list-card { padding-bottom: 0; }
.repo-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 6px; flex-wrap: wrap; }
.repo-filter { flex-wrap: wrap; }
.repo-v2 .repo-table-wrap { max-height: min(56vh, 560px); }
.repo-bulk-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--border-subtle); font-size: 12px; }
.repo-bulk-bar select { max-width: 200px; }
.repo-v2 .repo-community { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; }
.repo-v2 .repo-community .community-strip-text { font-size: 12.5px; color: var(--text-muted); }
.repo-v2 .repo-community .check-row { font-size: 11px; display: inline-flex; align-items: center; gap: 4px; }
.repo-v2 #localSourcesCard .local-src-list { padding: 8px 14px 12px; }

/* Phase 11: News, a feed you can scan. Mood line, posts, updates; settings fold away. */
.news-v2 .pane-head h2 { font-size: 22px; }
.news-mood { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 14px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-card); }
.news-mood-label { font-weight: 700; font-size: 13px; }
.news-mood .sentiment-meter { flex: 1 1 160px; max-width: 280px; margin: 0; }
.news-mood-stats { font-size: 12px; }
.news-cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 14px; align-items: start; }
.news-side { display: flex; flex-direction: column; gap: 14px; }
.news-v2 .card-head > span:first-child { text-transform: none; letter-spacing: 0; font-size: 14px; }
.news-post-list { max-height: min(62vh, 640px); padding: 10px 12px; gap: 8px; }
.news-more > summary { cursor: pointer; font-size: 12.5px; color: var(--text-subtle); padding: 10px 14px; }
.news-more[open] > summary { color: var(--text-muted); }
.news-more > *:not(summary) { margin: 0 12px 10px; }
.news-links { padding: 0; }
@media (max-width: 1100px) { .news-cols { grid-template-columns: minmax(0, 1fr); } }
.repo-v2 .repo-table td:last-child { width: 1%; }
.repo-v2 .repo-table td:last-child .pane-actions { flex-wrap: nowrap; gap: 4px; }
.repo-v2 .repo-table td:last-child .raised-btn { white-space: nowrap; }
.repo-v2 .repo-role { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; font-weight: 400; }
.repo-v2 .repo-table td { padding-top: 8px; padding-bottom: 8px; }
.repo-v2 .curated-source-meta { font-size: 11px; color: var(--text-subtle); padding: 0 14px 6px; }

/* Phase 12: Settings Simple / Advanced */
body:not([data-settings-mode="advanced"]) #settingsSubTabs, body:not([data-settings-mode="advanced"]) #tab-settings .settings-subpane, body:not([data-settings-mode="advanced"]) #tab-settings .settings-adv-only { display: none !important; }
body[data-settings-mode="advanced"] .settings-simple { display: none; }
#tab-settings .pane-head h2 { font-size: 22px; }
.settings-simple { display: flex; flex-direction: column; gap: 14px; max-width: 860px; }
.ss-card .card-head > span:first-child { text-transform: none; letter-spacing: 0; font-size: 14px; }
.ss-body { display: flex; flex-direction: column; padding: 4px 16px 12px; }
.ss-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
.ss-row:last-child { border-bottom: 0; }
.ss-row.hidden, .ss-check.hidden { display: none; }
.ss-label { display: flex; flex-direction: column; gap: 2px; }
.ss-label strong { font-size: 13.5px; color: var(--text-main); }
.ss-label span { font-size: 12px; color: var(--text-muted); }
.ss-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ss-off { opacity: 0.55; }
.ss-check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border-subtle); cursor: pointer; }
.ss-check:last-of-type { border-bottom: 0; }
.ss-check input { margin-top: 3px; }
.ss-check strong { font-size: 13.5px; font-weight: 600; color: var(--text-main); }
.ss-check em { font-style: normal; font-size: 12px; color: var(--text-muted); margin-left: 4px; }
.ss-status { font-size: 12px; padding-top: 6px; }
.ss-check:has(input:disabled) { opacity: 0.55; cursor: default; }
@media (max-width: 760px) { .ss-row { grid-template-columns: minmax(0, 1fr); } }
.footer-add-game { width: 100%; min-height: 38px; justify-content: center; }
#footerAddGameBtn.hidden, #footerGameSelect.hidden { display: none; }
.ss-pair select, .ss-row > select { min-width: 0; width: 100%; }

/* Phase 13: News, themed. One accent per source; line icons; quiet chrome, color only where it means something. */
.news-v2 { --np-pw: #f5a642; --np-gh: #a78bfa; --np-so: #f472b6; --np-up: #38d9a9; }
.news-v2 .nh-title { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-size: 15px; letter-spacing: 0.2px; }
.news-v2 .nh-ico { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: var(--vice-accent-1); background: color-mix(in srgb, var(--vice-accent-1) 14%, transparent); }
.news-v2 .nh-ico.nh-accent2 { color: var(--np-up); background: color-mix(in srgb, var(--np-up) 14%, transparent); }
.news-v2 .nh-ico svg { width: 15px; height: 15px; }
.news-v2 .news-head { gap: 10px; }
.news-v2 .news-search { width: 180px; }
.news-mood-label { display: inline-flex; align-items: center; gap: 8px; }
.news-src-filter { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 14px 4px; }
.nsf { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--border-subtle); background: transparent; color: var(--text-muted); font-size: 12px; font-weight: 650; cursor: pointer; }
.nsf:hover { border-color: var(--border-highlight); color: var(--text-main); }
.nsf.active { background: var(--bg-elev); color: var(--text-main); border-color: var(--border-highlight); }
.nsf-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.nsf-portwatch .nsf-dot { background: var(--np-pw); } .nsf-github .nsf-dot { background: var(--np-gh); } .nsf-social .nsf-dot { background: var(--np-so); }
.nsf-count { font-size: 11px; color: var(--text-subtle); font-variant-numeric: tabular-nums; }
.news-post { --acc: var(--np-so); display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 12px 12px 10px; border-radius: 12px; border: 1px solid var(--border-subtle); background: color-mix(in srgb, var(--bg-elev) 55%, transparent); transition: border-color .15s; }
.news-post:hover { border-color: color-mix(in srgb, var(--acc) 45%, var(--border-subtle)); }
.news-post.np-portwatch { --acc: var(--np-pw); } .news-post.np-github { --acc: var(--np-gh); }
.np-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--acc); background: color-mix(in srgb, var(--acc) 13%, transparent); }
.np-icon svg { width: 18px; height: 18px; }
.np-head { display: flex; align-items: baseline; gap: 10px; }
.np-kicker { font-size: 11px; font-weight: 750; letter-spacing: 0.5px; text-transform: uppercase; color: var(--acc); }
.np-date { margin-left: auto; font-size: 11.5px; color: var(--text-subtle); font-variant-numeric: tabular-nums; white-space: nowrap; }
.np-title { font-size: 14.5px; font-weight: 700; color: var(--text-main); margin-top: 2px; word-break: break-word; }
.np-body { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; line-height: 1.45; }
.np-sample { font-size: 10.5px; font-weight: 600; color: var(--text-subtle); border: 1px dashed var(--border-highlight); border-radius: 6px; padding: 0 5px; margin-left: 4px; }
.np-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.np-spacer { flex: 1; }
.np-score { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.np-score-bar { width: 54px; height: 4px; border-radius: 4px; background: var(--bg-input); overflow: hidden; display: inline-block; }
.np-score-bar > span { display: block; height: 100%; background: var(--acc); }
.np-sent { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 650; }
.np-sent svg { width: 12px; height: 12px; }
.np-sent.pos { color: var(--accent-green); } .np-sent.neg { color: var(--accent-red); }
.np-act { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--text-muted); font-size: 12px; font-weight: 650; cursor: pointer; }
.np-act svg { width: 13px; height: 13px; }
.np-act:hover:not(.done) { color: var(--text-main); background: var(--bg-elev); border-color: var(--border-subtle); }
.np-act.done { color: var(--accent-green); cursor: default; }
.np-act.icon-only { padding: 0 7px; }
.np-act:focus-visible, .nsf:focus-visible { outline: 2px solid var(--vice-accent-1); outline-offset: 2px; }
.np-empty { padding: 18px 4px; }
.news-v2 .news-card-entry { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; --acc: var(--np-up); }
.news-v2 .news-card-entry.nu-release { --acc: var(--vice-accent-1); } .news-v2 .news-card-entry.nu-mods { --acc: var(--np-gh); } .news-v2 .news-card-entry.nu-portwatch { --acc: var(--np-pw); }
.nu-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--acc); background: color-mix(in srgb, var(--acc) 13%, transparent); }
.nu-icon svg { width: 16px; height: 16px; }
.nu-kicker { font-size: 10.5px; font-weight: 750; letter-spacing: 0.5px; text-transform: uppercase; color: var(--acc); margin-bottom: 2px; }

/* Phase 15: recommended engine settings (launch-mode.js) */
.launch-quick:empty { display: none; }
.launch-quick { margin: 8px 0 10px; }
.lq-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lq-chip { font: inherit; font-size: 12px; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: inherit; cursor: pointer; }
.lq-chip:hover { border-color: rgba(255,255,255,.3); }
.lq-chip.active { border-color: var(--accent, #ff4fa3); background: rgba(255,79,163,.14); }
.lq-rec { font-size: 10px; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: rgba(80,220,160,.18); color: #7be6b8; }
.lq-note { font-size: 11px; margin-top: 6px; }
.lq-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* Phase 16: the running state of the PLAY bar never overlaps the fields beside it; when there is no room the
   buttons move to their own row instead. */
.app-footer { flex-wrap: wrap; row-gap: 10px; }
.footer-controls { flex: 1 1 500px; min-width: 0; grid-template-columns: minmax(96px, 1fr) minmax(104px, 1.15fr) max-content minmax(104px, 1.05fr); }
.footer-controls .footer-select { min-width: 0; width: 100%; text-overflow: ellipsis; }
.footer-launch { margin-left: auto; }
.hero-running-wrap .raised-playing { max-width: 230px; min-width: 150px; padding: 0 16px; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; overflow: hidden; }
.hero-running-wrap .raised-playing #footerPlayingText { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-running-wrap .raised-stop { padding: 0 16px; white-space: nowrap; }

/* Phase 16: readable process log (app.js renderLogs) */
.vhud-log .lg { display: inline; }
.vhud-log .lg-t { color: #7d8496; }
.vhud-log .lg-s { color: #9b8cff; }
.vhud-log .lg-warn { color: #ffcf6e; }
.vhud-log .lg-error { color: #ff7b8a; font-weight: 600; }
.vhud-log .lg-vd { color: #8fe3c0; }
.vhud-log .lg-info, .vhud-log .lg-debug, .vhud-log .lg-trace { color: #b9bfcc; }
.vhud-log .lg-note { color: #7d8496; font-style: italic; }
#logLevelSel { height: 30px; font-size: 12px; }

.chat-agent-badge { margin-left: 6px; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: rgba(155,140,255,.18); color: #b9adff; letter-spacing: .3px; }
