@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #08060a;
  --surface: #171016;
  --surface-2: #1a1217;
  --surface-3: #1b1420;
  --border: rgba(244, 114, 182, 0.15);
  --gold: #f472b6;
  --gold-bright: #f9a8d4;
  --gold-light: #f9a8d4;
  --gold-dim: #db2777;
  --gold-glow: rgba(244, 114, 182, 0.42);
  --text: #f1f5f9;
  --muted: #b0a2b1;
  --muted-2: #c3b4c2;
  --green: #10b981;
  --cyan: #f472b6;
  --blue: #f472b6;
  --red: #ef4444;
  --radius: 12px;
  --pill: 999px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, "Cascadia Code", "Consolas", monospace;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-md: 15px;
  --text-lg: 16px;
  --text-xl: 22px;
  --text-2xl: 32px;
  --text-logo: 40px;
  --tracking-tight: -0.03em;
  --tracking-normal: -0.011em;
  --tracking-wide: 0.06em;
  --tracking-wider: 0.12em;
  --tracking-logo: 0.14em;
  --leading-snug: 1.2;
  --leading-normal: 1.45;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 120ms;
  --t-base: 200ms;
  --t-slow: 350ms;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(244,114,182,0.08);
  --accent-glow: rgba(244,114,182,0.12);
  --accent-glow-md: rgba(244,114,182,0.2);
}

* { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-normal);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 114, 182, 0.38) rgba(255, 255, 255, 0.04);
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: rgba(244, 114, 182, 0.32);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(244, 114, 182, 0.52);
  border: 2px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

button, input, textarea, select, pre, code {
  font-family: inherit;
  font-feature-settings: inherit;
}

.hidden { display: none !important; }

/* ═══ DESIGN SYSTEM — Checker reference ═══ */

.weeb-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.weeb-box:hover {
  border-color: rgba(244,114,182,0.12);
}

.weeb-input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #08060a;
  color: var(--text);
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  letter-spacing: -0.01em;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.weeb-input-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.weeb-input::placeholder {
  color: #7f7285;
  opacity: 1;
  font-weight: var(--fw-regular);
}

.weeb-input:focus {
  border-color: rgba(244, 114, 182, 0.45);
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.1), 0 0 20px rgba(244,114,182,0.06);
}

/* Primary — gold pill (horizontal gradient + glow) */
.weeb-btn-primary {
  width: 100%;
  height: 52px;
  margin-top: 4px;
  padding: 0 28px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font);
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  box-shadow: 0 6px 24px rgba(244, 114, 182, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.weeb-btn-primary svg { flex-shrink: 0; color: #fff; }

.weeb-btn-primary:hover {
  box-shadow: 0 8px 32px rgba(244, 114, 182, 0.45);
  transform: translateY(-2px);
}

.weeb-btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.weeb-btn-start { margin-top: 20px; height: 54px; font-size: var(--text-md); font-weight: var(--fw-bold); }

.weeb-btn-outline {
  width: 100%;
  height: 50px;
  border: 1.5px solid rgba(244, 114, 182, 0.65);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  font-family: var(--font);
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
  color: var(--gold-light);
  transition: background 0.15s, border-color 0.15s;
}

.weeb-btn-outline:hover {
  background: rgba(244, 114, 182, 0.06);
  border-color: rgba(249, 168, 212, 0.85);
}

.weeb-btn-ghost-sm {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-2);
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
  cursor: pointer;
}

.weeb-btn-icon {
  width: 42px;
  height: 42px;
  margin-left: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.gate-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.55);
  flex-shrink: 0;
}

.c-green { color: var(--green); font-weight: var(--fw-bold); }
.c-red { color: var(--red); font-weight: var(--fw-semibold); }

.field-caption {
  margin: 18px 0 10px;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  color: var(--muted);
}

/* Thread / format pills */
.thread-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.thread-pill {
  min-width: 52px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.thread-pill:hover { color: var(--text); }

.thread-pill.active {
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(34, 197, 94, 0.06);
  color: var(--green);
  font-weight: var(--fw-bold);
}

/* Tabs — gold underline */
.weeb-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.weeb-tab {
  flex: 1;
  padding: 12px 8px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}

.weeb-tab span {
  margin-left: 4px;
  opacity: 0.85;
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
}

.weeb-tab.active {
  color: var(--text);
  font-weight: var(--fw-bold);
  border-bottom-color: var(--gold);
}

.weeb-tab.active span { color: var(--gold); opacity: 1; }

/* Gate selector box */
.gate-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gate-info strong {
  display: block;
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 3px;
}

.gate-meta {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  letter-spacing: 0;
  color: var(--muted);
}

/* ═══ LOGIN ═══ */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #08060a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.login-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  background: rgba(18, 11, 15, 0.75);
  backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(244, 114, 182, 0.12);
  border-radius: 20px;
  padding: 42px 36px 36px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 60px rgba(244,114,182,0.04), inset 0 1px 0 rgba(255,255,255,0.03);
  animation: authIn 0.8s var(--ease-out);
}

.login-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(160deg, rgba(244,114,182,0.2), transparent 40%, transparent 60%, rgba(244, 114, 182,0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.auth-moon-icon {
  width: 56px;
  height: 56px;
  color: var(--gold-light);
  filter: drop-shadow(0 0 18px rgba(244,114,182,0.35)) drop-shadow(0 0 40px rgba(244,114,182,0.15));
  animation: authMoonFloat 4s ease-in-out infinite;
}

.auth-moon-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: none;
}

.auth-logo .logo-name {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 6px;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(244,114,182,0.3), 0 0 60px rgba(244,114,182,0.1);
}

.login-tagline {
  margin: 4px 0 28px;
  text-align: center;
  font-size: 12.5px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.3px;
  color: var(--muted);
}

.login-form { display: flex; flex-direction: column; gap: 0; }
.login-form .weeb-input { margin-bottom: 14px; height: 52px; }
.login-form .weeb-btn-primary { margin-top: 6px; height: 54px; }

.login-contact {
  margin: 16px 0 0;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: #b9a7b6;
}

.login-contact a {
  color: var(--gold);
  font-weight: var(--fw-semibold);
  text-decoration: none;
}

.login-contact a:hover { text-decoration: underline; }

.login-label {
  display: block;
  margin-bottom: 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #c9bdcf;
}

.login-error {
  margin: 16px 0 0;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--red);
  min-height: 18px;
}

/* Cursor glow effect */
.cursor-glow {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244,114,182,0.04) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

.cursor-glow.active {
  opacity: 1;
}

/* ═══ APP SHELL — Lucid layout ═══ */
.app {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

.app::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 10% 20%, rgba(131, 24, 67,0.04) 0%, transparent 50%),
              radial-gradient(ellipse 60% 80% at 85% 75%, rgba(244, 114, 182,0.03) 0%, transparent 50%);
  animation: meshDrift 20s ease-in-out infinite alternate;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: flex-start;
  width: 240px;
  height: 100vh;
  max-height: 100vh;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 16px 20px;
  box-sizing: border-box;
}

.sidebar-brand {
  flex-shrink: 0;
  padding: 0 8px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.brand-mark {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #e4d8e3;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(244,114,182,0.2);
}

.brand-mark::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--gold), var(--cyan, #f472b6));
  border-radius: 2px;
  opacity: 0.6;
}

.brand-name {
  margin-top: 6px;
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--text);
}

.brand-tag {
  margin-top: 4px;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--muted);
}

.sidebar-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  cursor: pointer;
  color: var(--muted);
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  text-align: left;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.nav-item:hover { color: var(--text); }

.nav-item.active {
  color: var(--text);
  border-color: var(--gold);
  background: rgba(244, 114, 182, 0.06);
  box-shadow: 0 0 20px rgba(244,114,182,0.05);
  position: relative;
}

.nav-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar-foot {
  flex-shrink: 0;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 8px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--muted);
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  transition: color 0.15s;
}

.sidebar-logout:hover { color: var(--text); }

.api-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 0 8px;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--green);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.app-content {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transition: background 0.3s;
}

.app-statusbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 36px 0;
  flex-shrink: 0;
}

.active-users-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
}

.active-users-badge strong {
  color: var(--text);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
}

.active-users-badge .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  flex-shrink: 0;
}

.app-main {
  flex: 1;
  width: 100%;
  padding: 32px 36px 40px;
  box-sizing: border-box;
}

.page {
  width: 100%;
}

#page-dashboard {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.page-title {
  margin: 0;
  font-size: 28px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-tight);
  line-height: 1.15;
}

.page-subtitle {
  margin: 6px 0 0;
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  color: var(--muted);
}

.live-badge {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(244, 114, 182, 0.12);
  border: 1px solid rgba(244, 114, 182, 0.35);
  animation: pulse 2s ease-in-out infinite;
}

.page-heading {
  margin: 0;
  font-size: 28px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-tight);
}

.page-desc {
  margin: 6px 0 0;
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  color: var(--muted);
}

/* Stat cards row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
  width: 100%;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
}

.stat-card:hover {
  border-color: rgba(244,114,182,0.2);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
  transition: all 0.25s var(--ease);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.stat-icon-purple { color: #f9a8d4; background: rgba(244, 114, 182, 0.12); }
.stat-icon-blue { color: #f9a8d4; background: rgba(249, 168, 212, 0.12); }
.stat-icon-green { color: #4ade80; background: rgba(74, 222, 128, 0.12); }
.stat-icon-gold { color: var(--gold); background: rgba(244, 114, 182, 0.12); }

.stat-num {
  display: block;
  font-size: 28px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 4px;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--muted);
}

/* Dashboard panels */
.dash-panels {
  flex: none;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  min-height: 340px;
}

.dash-panel {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.dash-panel-wide { min-height: 360px; }

.geo-map {
  min-height: 0;
  padding: 12px 16px 16px;
  overflow: visible;
}

.geo-map canvas,
.dash-chart canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.geo-map {
  height: 420px;
}

.dash-chart {
  min-height: 0;
  height: 240px;
  padding: 8px 12px 10px;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  font-weight: var(--fw-semibold);
  font-size: var(--text-base);
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.panel-tag {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(244, 114, 182, 0.12);
  border: 1px solid rgba(244, 114, 182, 0.28);
}

.panel-icon { color: var(--gold); flex-shrink: 0; }

.panel-body {
  flex: 1;
  padding: 20px;
  min-height: 280px;
}

.content-card {
  padding: 24px;
  max-width: 560px;
}

/* Builder page */
.build-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  width: 100%;
}

.build-main { min-width: 0; }

.format-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.format-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: var(--font);
  transition: border-color 0.15s, background 0.15s;
}

.format-card:hover { border-color: rgba(255, 255, 255, 0.12); }

.format-card.active {
  border-color: var(--gold);
  background: rgba(244, 114, 182, 0.06);
  box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.15);
}

.format-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.format-icon-jar { color: #f9a8d4; background: rgba(244, 114, 182, 0.1); }
.format-icon-exe { color: #f472b6; background: rgba(244, 114, 182, 0.12); }

.format-card-body strong {
  display: block;
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  margin-bottom: 2px;
}

.format-ext {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  margin-left: 6px;
}

.format-card-body p {
  margin: 8px 0 0;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--muted);
  line-height: 1.4;
}

.build-config {
  padding: 18px 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.build-config .field-label { margin-bottom: 0; }

.build-output-preview {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.build-config-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.build-config-row:last-of-type { border-bottom: none; }

.build-config-label {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--muted);
}

.build-config-row strong {
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
}

.build-config-hint {
  margin: 12px 0 0;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--muted);
}

.link-btn {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  color: var(--gold);
  font-family: var(--font);
  font-size: inherit;
  font-weight: var(--fw-bold);
  text-decoration: underline;
}

.build-cooldown {
  margin-bottom: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
}

.build-status {
  margin-top: 16px;
  padding: 18px 20px;
}

.build-status-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.build-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(244, 114, 182, 0.5);
  flex-shrink: 0;
}

.build-status-dot.ok { background: var(--green); box-shadow: 0 0 8px rgba(34, 197, 94, 0.5); }
.build-status-dot.err { background: var(--red); box-shadow: 0 0 8px rgba(239, 68, 68, 0.5); }
.build-status-dot.busy { animation: pulse 1s ease infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.build-status-msg {
  margin: 0 0 14px;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--muted);
}

.build-download {
  width: auto;
  min-width: 200px;
  height: 46px;
  margin-top: 0;
}

.build-side {
  padding: 20px;
  align-self: start;
}

.build-side-title {
  margin: 0 0 14px;
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
}

.build-steps {
  margin: 0 0 16px;
  padding-left: 18px;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--muted);
  line-height: 1.65;
}

.build-steps strong { color: var(--text); }

.build-side-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.build-exe-icon-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.label-muted {
  font-weight: var(--fw-medium);
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.exe-icon-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.exe-icon-picker {
  cursor: pointer;
  flex-shrink: 0;
  display: block;
  line-height: 0;
}

.build-exe-icon-preview,
.build-exe-icon-fallback {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
}

.build-exe-icon-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 2px dashed rgba(244, 114, 182, 0.28);
  background: rgba(244, 114, 182, 0.04);
  color: var(--gold);
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.exe-icon-picker:hover .build-exe-icon-fallback {
  border-color: rgba(244, 114, 182, 0.5);
  background: rgba(244, 114, 182, 0.08);
}

.exe-icon-picker:hover .build-exe-icon-preview {
  opacity: 0.88;
}

.build-exe-icon-preview {
  border: 2px solid rgba(244, 114, 182, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.exe-icon-details {
  flex: 1;
  min-width: 0;
}

.exe-icon-desc {
  margin: 0 0 4px;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text);
}

.exe-icon-hint {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.4;
}

.exe-icon-remove {
  margin-top: 10px;
}

.icon-crop-card {
  width: min(420px, 100%);
}

.icon-crop-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.icon-crop-stage {
  background: #08060a;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  max-width: 100%;
  overflow: auto;
}

#icon-crop-canvas {
  display: block;
  max-width: 100%;
  height: auto;
  cursor: grab;
  border-radius: 6px;
}

#icon-crop-canvas:active {
  cursor: grabbing;
}

.icon-crop-zoom-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 340px;
}

.icon-crop-zoom-row label {
  font-size: 12px;
  font-weight: var(--fw-bold);
  color: var(--gold-light);
  flex-shrink: 0;
}

.icon-crop-zoom-row input[type="range"] {
  flex: 1;
  accent-color: var(--gold);
}

#icon-crop-zoom-val {
  font-size: 12px;
  color: var(--muted);
  min-width: 42px;
  text-align: right;
}

.icon-crop-hint {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--muted);
  text-align: center;
}

.icon-crop-foot {
  padding: 0 18px 18px;
  display: flex;
  justify-content: flex-end;
}

.weeb-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.3);
}

.gate-box { padding: 0; margin: 0; border: none; background: none; }

/* Profile (account page) */
.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
  width: 100%;
}

.account-hero {
  padding: 28px;
}

.account-hero-top {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.account-hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 4px;
  min-width: 0;
}

.account-hero-meta h2 {
  margin: 0 0 2px;
  font-size: 26px;
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.account-meta-line {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.35;
}

.account-role-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold);
  background: rgba(244, 114, 182, 0.12);
  border: 1px solid rgba(244, 114, 182, 0.3);
}

.account-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.account-avatar-img,
.account-avatar-fallback {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  object-fit: cover;
  border: 2px solid rgba(244, 114, 182, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.account-avatar-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  font-weight: var(--fw-extrabold);
  font-size: 42px;
  color: var(--gold-light);
}

.account-avatar-edit {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: #111;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 3px solid var(--bg);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.account-avatar-edit:hover {
  transform: scale(1.06);
  filter: brightness(1.08);
}

.account-role-badge.admin {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.35);
}

.account-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.account-stat {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.account-stat strong {
  display: block;
  font-size: 22px;
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.account-stat span {
  display: block;
  margin-top: 4px;
  font-size: var(--text-sm);
  color: var(--muted);
}

.account-stat-sub {
  display: block;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: var(--text-xs) !important;
  color: var(--muted-2) !important;
}

.account-rank-value.rank-top-1 { color: #fbbf24; }
.account-rank-value.rank-top-2 { color: #e4d8e3; }
.account-rank-value.rank-top-3 { color: #d97706; }

.account-settings {
  padding: 24px 28px;
}

.account-section-title {
  margin: 0 0 6px;
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
}

.account-section-desc {
  margin: 0 0 14px;
  font-size: var(--text-sm);
  color: var(--muted);
}

.account-field-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 8px;
}

.account-at {
  padding: 0 12px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 10px 0 0 10px;
  color: var(--muted);
  font-weight: var(--fw-semibold);
}

.account-username-input {
  border-radius: 0 10px 10px 0 !important;
  flex: 1;
}

.account-save-btn {
  margin-top: 12px;
  height: 44px;
}

.account-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.field-error {
  margin: 0 0 8px;
  font-size: var(--text-sm);
  color: #f87171;
}

.acc-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: var(--text-sm);
}

.acc-info code {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  word-break: break-all;
}

.acc-license-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.license-key-toggle {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: left;
  word-break: break-all;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.license-key-toggle:hover {
  border-color: rgba(244, 114, 182, 0.35);
  color: var(--gold-light);
  background: rgba(244, 114, 182, 0.06);
}

.license-key-toggle.revealed {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--gold-light);
}

.license-key-masked {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  color: var(--muted);
  word-break: break-all;
}

.account-leaderboard {
  margin-top: 16px;
  padding: 24px 28px;
}

.leaderboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.leaderboard-head .account-section-title {
  margin-bottom: 4px;
}

.leaderboard-head .account-section-desc {
  margin-bottom: 0;
}

.leaderboard-self-rank {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  color: var(--gold);
  background: rgba(244, 114, 182, 0.12);
  border: 1px solid rgba(244, 114, 182, 0.3);
  white-space: nowrap;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leaderboard-empty {
  text-align: center;
  padding: 24px 0;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.leaderboard-row.is-self {
  border-color: rgba(244, 114, 182, 0.45);
  background: rgba(244, 114, 182, 0.06);
}

.leaderboard-row.gap-row {
  justify-content: center;
  padding: 4px 0;
  background: none;
  border: none;
  color: var(--muted);
  font-size: var(--text-sm);
}

.leaderboard-rank {
  width: 32px;
  flex-shrink: 0;
  text-align: center;
  font-weight: var(--fw-extrabold);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.leaderboard-rank.top-1 { color: #fbbf24; }
.leaderboard-rank.top-2 { color: #e4d8e3; }
.leaderboard-rank.top-3 { color: #d97706; }

.leaderboard-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid rgba(244, 114, 182, 0.2);
}

.leaderboard-avatar-fallback {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: var(--fw-bold);
  font-size: 15px;
  color: var(--gold-light);
}

.leaderboard-info {
  flex: 1;
  min-width: 0;
}

.leaderboard-name {
  font-weight: var(--fw-bold);
  font-size: var(--text-base);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leaderboard-you {
  margin-left: 6px;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.leaderboard-count {
  flex-shrink: 0;
  text-align: right;
}

.leaderboard-count strong {
  display: block;
  font-size: var(--text-md);
  font-weight: var(--fw-extrabold);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.leaderboard-count span {
  display: block;
  margin-top: 2px;
  font-size: var(--text-xs);
  color: var(--muted);
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.avatar-wrap { position: relative; }

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid rgba(244, 114, 182, 0.25);
  display: grid;
  place-items: center;
  font-weight: var(--fw-extrabold);
  font-size: 18px;
  color: var(--gold-light);
}

.online-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--bg);
}

.profile-meta h2 {
  margin: 0;
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
}

.profile-meta p {
  margin: 2px 0 0;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--muted);
}

/* Charts & origin */
.empty-state {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  flex: 1;
  min-height: 220px;
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
}

.empty-icon { opacity: 0.5; }

.chart-area {
  flex: 1;
  padding: 20px;
  min-height: 220px;
}

.activity-feed {
  flex: 1;
  padding: 12px 16px 16px;
  min-height: 280px;
  max-height: 360px;
  overflow-y: auto;
}

.activity-feed.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  gap: 12px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease;
}

.activity-item.is-self {
  border-color: rgba(244, 114, 182, 0.4);
  background: rgba(244, 114, 182, 0.05);
}

.activity-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(244, 114, 182, 0.25);
}

.activity-avatar-fallback {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: var(--fw-bold);
  font-size: 16px;
  color: var(--gold-light);
}

.activity-body {
  flex: 1;
  min-width: 0;
}

.activity-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-bottom: 4px;
}

.activity-user {
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  color: var(--text);
}

.activity-you {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.activity-time {
  margin-left: auto;
  font-size: var(--text-xs);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.activity-detail {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.activity-host {
  font-weight: var(--fw-bold);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.activity-ip {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: #f9a8d4;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(249, 168, 212, 0.1);
  border: 1px solid rgba(249, 168, 212, 0.2);
}

.activity-detail strong {
  color: var(--gold-light);
  font-weight: var(--fw-bold);
}

.origin-list {
  flex: 1;
  padding: 12px 20px;
  min-height: 220px;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 200px;
  padding-top: 8px;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.bar {
  width: 100%;
  max-width: 28px;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-dim));
  min-height: 4px;
}

.bar-col span { font-size: var(--text-xs); font-weight: var(--fw-bold); color: var(--muted); }

.origin-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-weight: var(--fw-semibold);
  font-size: var(--text-base);
  letter-spacing: -0.01em;
}

.origin-item strong { color: var(--gold-light); font-weight: var(--fw-extrabold); font-variant-numeric: tabular-nums; }

.origin-country,
.country-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.country-flag-img {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  display: block;
}

.country-flag-fallback {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.country-flag {
  font-size: 18px;
  line-height: 1;
}

/* Table */
.table-wrap {
  overflow: auto;
  width: 100%;
}

table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }

th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

th {
  color: var(--muted);
  font-weight: var(--fw-extrabold);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

td { font-weight: var(--fw-medium); }
td strong { font-weight: var(--fw-extrabold); font-variant-numeric: tabular-nums; }

tbody tr:hover {
  background: rgba(244, 114, 182, 0.06);
  box-shadow: inset 3px 0 0 rgba(244,114,182,0.3);
}

.log-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.log-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(244, 114, 182, 0.25);
}

.log-user-avatar-fallback {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: var(--fw-bold);
  font-size: 13px;
  color: var(--gold-light);
}

.log-user-name {
  font-weight: var(--fw-extrabold);
  white-space: nowrap;
}

/* Forms */
.field-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}

.field-label .weeb-input { margin-top: 6px; }

.form-stack {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.acc-info {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--muted);
  line-height: 1.7;
}

.acc-info code {
  color: var(--gold-light);
  font-weight: var(--fw-extrabold);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.build-output {
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  background: #08060a;
  border: 1px solid var(--border);
  min-height: 60px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-all;
}

.admin-create {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 480px;
}

.admin-create .account-section-title {
  margin: 0;
}

.admin-create .account-section-desc {
  margin: 0 0 4px;
}

.admin-key-result {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(244, 114, 182, 0.08);
  border: 1px solid rgba(244, 114, 182, 0.25);
  font-size: var(--text-sm);
  color: var(--gold-light);
  word-break: break-all;
}

.admin-key-result code {
  color: var(--gold-light);
  font-weight: var(--fw-bold);
}

.admin-user-meta {
  min-width: 0;
}

.admin-user-meta .status-pill {
  margin-left: 6px;
  vertical-align: middle;
}

.admin-user-key {
  color: var(--gold-light);
  font-size: var(--text-xs);
  word-break: break-all;
}

.admin-user-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  color: var(--muted-2);
}

.admin-keys {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.admin-tab-panel { width: 100%; }

.admin-tabs { max-width: 480px; margin-bottom: 16px; }

.status-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-pill.ok { color: var(--green); background: rgba(34, 197, 94, 0.12); }
.status-pill.off { color: var(--red); background: rgba(239, 68, 68, 0.12); }
.status-pill.wait { color: var(--muted); background: rgba(255, 255, 255, 0.06); }

.key-row-actions { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }

.key-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
}

.key-row code {
  color: var(--gold-light);
  font-weight: var(--fw-extrabold);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: grid;
  place-items: center;
  z-index: 50;
  padding: 16px;
}

.modal-card {
  width: min(480px, 100%);
  max-height: 85vh;
  overflow: auto;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.modal-head h3 {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.02em;
  color: var(--gold-light);
}

.modal-body { padding: 16px 18px 20px; font-weight: var(--fw-medium); font-size: var(--text-base); }

.token-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  background: #08060a;
}

.token-card strong { font-weight: var(--fw-extrabold); }

.token-card pre {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: var(--fw-regular);
  line-height: 1.5;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-all;
}

.muted { color: var(--muted); font-weight: var(--fw-medium); }

@media (max-width: 1024px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .dash-panels { grid-template-columns: 1fr; }
  .build-layout { grid-template-columns: 1fr; }
  .format-cards { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .account-stats-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .app {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  .sidebar {
    position: relative;
    top: auto;
    align-self: stretch;
    width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px;
    gap: 8px;
  }
  .sidebar-brand { display: none; }
  .sidebar-nav {
    flex: 1;
    min-height: 0;
    overflow: visible;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding-right: 0;
  }
  .nav-item { width: auto; padding: 8px 12px; font-size: var(--text-sm); }
  .nav-item span { display: none; }
  .sidebar-foot { display: none; }
  .app-main { padding: 20px 16px 32px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}

/* ------------- Remote Page ------------- */
body.panel-popup {
  margin: 0;
  overflow: hidden;
  background: var(--bg);
}

body.panel-popup .remote-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

body.panel-popup .remote-stage {
  flex: 1;
  min-height: 0;
  display: block;
  padding: 8px;
  box-sizing: border-box;
}

body.panel-popup .panel-unified {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.012);
}

body.panel-popup .remote-top {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

body.panel-popup .remote-stream-panel {
  flex: 1 1 auto;
  align-self: stretch;
  display: flex;
  min-height: 0;
  min-width: 0;
}

body.panel-popup .rm-stream-box {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  border-radius: 0;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

body.panel-popup .remote-actions-grid {
  flex: 0 0 420px;
  width: 420px;
  max-height: none;
  align-self: stretch;
  min-height: 0;
  padding: 8px 8px 10px;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
}

body.panel-popup .remote-bottom {
  min-height: 210px;
  flex: 0 0 230px;
  max-height: none;
  display: block;
  overflow: hidden;
  width: 100%;
}

body.panel-popup .panel-dock {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(0, 0.95fr) minmax(0, 0.9fr);
  height: 100%;
  min-height: 0;
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
}

body.panel-popup .panel-block {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 12px;
  background: transparent;
  border: none;
  border-radius: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

body.panel-popup .panel-dock .panel-block:last-child {
  border-right: none;
}

body.panel-popup .panel-label {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--muted);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

body.panel-popup .panel-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}

body.panel-popup .rm-inline-btn {
  height: 28px;
  padding: 0 10px;
  font-size: 11px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

body.panel-popup .rm-inline-btn:hover {
  color: var(--gold-light);
  border-color: rgba(244, 114, 182, 0.45);
  background: rgba(244, 114, 182, 0.08);
}

body.panel-popup .rm-inline-btn-active {
  color: var(--gold-light);
  border-color: rgba(244, 114, 182, 0.45);
  background: rgba(244, 114, 182, 0.08);
}

body.panel-popup .rm-shell-input {
  flex-shrink: 0;
  height: 32px;
  font-size: 11px;
  font-family: var(--font-mono);
}

body.panel-popup .remote-panel-head {
  flex-shrink: 0;
  min-height: 22px;
}

body.panel-popup .remote-panel-tools {
  flex-shrink: 0;
}

.rm-stream-meta {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

#panel-root.stream-only-mode .remote-actions-grid,
#panel-root.stream-only-mode .remote-bottom,
#panel-root.stream-only-mode .rm-sendkeys-bar {
  display: none !important;
}

#panel-root.stream-only-mode .remote-stage {
  padding: 0;
}

#panel-root.stream-only-mode .panel-unified {
  border: none;
  border-radius: 0;
  background: transparent;
}

#panel-root.stream-only-mode .remote-top {
  display: block;
  height: 100%;
  max-height: none;
  min-height: 0;
}

#panel-root.stream-only-mode .remote-stream-panel,
#panel-root.stream-only-mode .rm-stream-box {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  min-height: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

#panel-root.stream-only-mode .rm-stream-floatbar,
#panel-root.stream-only-mode .rm-stream-meta {
  z-index: 6;
}

#panel-root.stream-only-mode .rm-stream-floatbar {
  top: auto;
  bottom: 20px;
  transform: translateX(-50%);
}

.app.remote-mode .sidebar { display: none; }
.app.remote-mode .app-content { width: 100%; }
.app.remote-mode .app-statusbar { display: none; }
.app.remote-mode .app-main { padding: 0; }

.remote-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 0;
  padding: 0 !important;
  background: radial-gradient(ellipse at top, rgba(244, 114, 182, 0.06) 0%, transparent 55%), var(--bg);
}

.remote-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(10px);
}

.remote-topbar-title {
  font-size: 13px;
  font-weight: var(--fw-extrabold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-align: center;
}

.remote-topbar-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.rm-hwid { font-size: 11px; color: var(--muted); font-family: var(--font-mono); }
.rm-status { font-size: 10px; font-weight: var(--fw-extrabold); padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.08em; }
.rm-status.online { background: #22c55e; color: #000; }
.rm-status.reconnecting { background: rgba(244, 114, 182, 0.15); color: #facc15; border: 1px solid rgba(244, 114, 182, 0.35); }
.rm-status.offline { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.35); }

.remote-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 16px 16px;
}

.remote-top {
  flex: 1.15;
  min-height: 280px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 12px;
}

.remote-stream-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.rm-stream-box {
  flex: 1;
  min-height: 0;
  height: 100%;
  background: #08060a;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 16px 48px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.rm-stream-box.streaming { border-color: rgba(244, 114, 182, 0.25); }
.rm-stream-box.input-active { cursor: crosshair; box-shadow: inset 0 0 0 2px rgba(244, 114, 182, 0.35), 0 16px 48px rgba(0, 0, 0, 0.45); }

.rm-stream-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.rm-stream-idle { text-align: center; color: var(--muted); }
.rm-stream-idle-ring {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--gold-light);
}
.rm-stream-idle p { margin: 0; font-size: 13px; }

.rm-stream-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
  background: #000;
}

.rm-stream-floatbar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(12, 12, 12, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(14px);
  z-index: 4;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

.rm-stream-box.streaming .rm-stream-floatbar {
  top: auto;
  bottom: 18px;
  transform: translateX(-50%);
}

.rm-float-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 2px;
}

.rm-ctrl-btn {
  width: auto;
  height: 30px;
  margin: 0;
  padding: 0 12px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: filter 0.15s, transform 0.1s, background 0.15s;
}

.rm-ctrl-start {
  color: #08060a;
  background: linear-gradient(90deg, var(--gold-light) 0%, var(--gold) 100%);
  box-shadow: 0 0 16px rgba(244, 114, 182, 0.35);
}
.rm-ctrl-start:hover { filter: brightness(1.08); }

.rm-ctrl-stop {
  color: #fff;
  background: #dc2626;
  padding: 0 14px;
}
.rm-ctrl-stop:hover { filter: brightness(1.12); }

.rm-ctrl-icon {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.rm-ctrl-icon .nav-svg {
  width: 15px;
  height: 15px;
}

.rm-quality-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
}

.rm-quality-label {
  font-size: 10px;
  font-weight: var(--fw-semibold);
  color: var(--muted);
  white-space: nowrap;
}

.rm-monitor-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
}

.rm-monitor-select {
  height: 26px;
  max-width: 150px;
  padding: 0 6px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: var(--font);
  font-size: 10px;
  font-weight: var(--fw-semibold);
  cursor: pointer;
  outline: none;
}

.rm-monitor-select:focus {
  border-color: rgba(244, 114, 182, 0.35);
}

.rm-monitor-select option {
  background: #1c151a;
  color: #e2e8f0;
}

.rm-quality-btn {
  height: 26px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: var(--font);
  font-size: 10px;
  font-weight: var(--fw-semibold);
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.rm-quality-btn:hover,
.rm-quality-btn[aria-expanded="true"] {
  border-color: rgba(244, 114, 182, 0.35);
  background: rgba(244, 114, 182, 0.08);
}

.rm-quality-chevron {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

.rm-quality-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  min-width: 112px;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55);
  z-index: 12;
}

.rm-quality-opt {
  display: block;
  width: 100%;
  padding: 7px 10px;
  border: none;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  font-family: var(--font);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  text-align: left;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.rm-quality-opt:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.rm-quality-opt.active {
  color: var(--gold-light);
  background: rgba(244, 114, 182, 0.12);
}
.rm-ctrl-icon.active {
  background: rgba(244, 114, 182, 0.18);
  border-color: rgba(244, 114, 182, 0.45);
  color: var(--gold-light);
}

.rm-input-hint {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--gold-light);
  background: rgba(0, 0, 0, 0.65);
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 4;
  pointer-events: none;
}

.remote-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  min-height: 0;
}

body.panel-popup .remote-actions-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  overflow-x: hidden;
  align-content: start;
}

body.panel-popup .rm-cmd-section {
  flex-shrink: 0;
  display: block;
  padding: 2px 0 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

body.panel-popup .rm-cmd-section-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 2px 4px;
  font-size: 9px;
  font-weight: var(--fw-extrabold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.panel-popup .rm-cmd-section:first-child .rm-cmd-section-head {
  padding-top: 2px;
}

body.panel-popup .rm-cmd-section-head::before,
body.panel-popup .rm-cmd-section-head::after {
  content: none;
}

body.panel-popup .rm-cmd-section-head span {
  color: rgba(244, 114, 182, 0.5);
  white-space: nowrap;
}

body.panel-popup .rm-cmd-section-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.rm-cmd-tooltip {
  position: fixed;
  z-index: 99999;
  max-width: 210px;
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid rgba(244, 114, 182, 0.32);
  background: rgba(10, 10, 10, 0.97);
  color: var(--muted-2);
  font-family: var(--font);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  line-height: 1.45;
  letter-spacing: -0.01em;
  pointer-events: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(244, 114, 182, 0.06);
  transition: opacity 0.15s ease;
}

.rm-cmd-tooltip.hidden {
  opacity: 0;
  visibility: hidden;
}

.rm-cmd-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  width: 8px;
  height: 8px;
  background: rgba(10, 10, 10, 0.97);
  border-right: 1px solid rgba(244, 114, 182, 0.32);
  border-top: 1px solid rgba(244, 114, 182, 0.32);
  transform: translateY(-50%) rotate(45deg);
}

body.panel-popup .rm-cmd-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: var(--font);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

body.panel-popup .rm-cmd-btn span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.panel-popup .rm-cmd-btn .nav-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--muted-2);
  transition: color 0.15s;
}

.remote-action-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 12px;
  font-size: 11px;
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  padding: 8px 6px;
  text-align: center;
}

body.panel-popup .rm-cmd-btn:hover {
  color: var(--gold-light);
  border-color: rgba(244, 114, 182, 0.45);
  background: rgba(244, 114, 182, 0.08);
  box-shadow: 0 0 12px rgba(244, 114, 182, 0.1);
}

body.panel-popup .rm-cmd-btn:hover .nav-svg {
  color: var(--gold);
}

body.panel-popup .rm-cmd-btn:active {
  background: rgba(244, 114, 182, 0.14);
  border-color: var(--gold);
  color: var(--gold-light);
}

body.panel-popup .rm-cmd-btn:active .nav-svg {
  color: var(--gold-light);
}

.remote-action-btn:hover {
  background: rgba(244, 114, 182, 0.08);
  border-color: rgba(244, 114, 182, 0.35);
  color: var(--gold-light);
}

.remote-bottom {
  flex: 1;
  min-height: 200px;
  max-height: 34vh;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.remote-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}

.remote-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: var(--fw-extrabold);
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

.remote-panel-tools { display: flex; gap: 6px; }

.weeb-btn-primary-sm {
  background: var(--gold); color: #000; border: none;
  padding: 6px 12px; border-radius: 6px; font-size: 11px;
  font-weight: var(--fw-extrabold); text-transform: uppercase;
  letter-spacing: 0.06em; cursor: pointer; white-space: nowrap;
  transition: filter 0.15s;
}
.weeb-btn-primary-sm:hover { filter: brightness(1.15); }
.weeb-btn-danger-sm {
  background: #c0392b; color: #fff; border: none;
  padding: 6px 12px; border-radius: 6px; font-size: 11px;
  font-weight: var(--fw-extrabold); text-transform: uppercase;
  letter-spacing: 0.06em; cursor: pointer; white-space: nowrap;
  transition: filter 0.15s;
}
.weeb-btn-danger-sm:hover { filter: brightness(1.25); }

.fs-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 12px;
  transition: background 0.12s;
}
.fs-item:hover { background: var(--surface-2); }
.fs-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; color: var(--text); }
.fs-actions { display: flex; gap: 2px; flex-shrink: 0; }
.fs-btn { background: none; border: none; cursor: pointer; font-size: 13px; padding: 2px 4px; border-radius: 4px; transition: background 0.12s; }
.fs-btn:hover { background: var(--surface-3); }

.remote-page .weeb-btn-primary,
.remote-page .weeb-btn-danger {
  width: auto;
  height: 36px;
  margin-top: 0;
  padding: 0 16px;
  font-size: 12px;
  border-radius: 8px;
}

.rm-shell-row { display: flex; gap: 6px; flex-shrink: 0; }
.rm-shell-row .weeb-input { flex: 1; min-width: 0; }

.rm-output {
  background: #0a0608;
  color: #0f0;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 10px;
  border-radius: 8px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin: 0;
  flex: 1;
  min-height: 0;
}

.rm-kb-output {
  background: #0a0608;
  color: #ddd;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 10px;
  border-radius: 8px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin: 0;
  flex: 1;
  min-height: 0;
}

.rm-fs-list { flex: 1; min-height: 0; overflow-y: auto; }

body.panel-popup .panel-inline-input {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

body.panel-popup .panel-inline-input .weeb-input {
  flex: 1;
  min-width: 0;
  height: 28px;
  padding: 0 10px;
  font-size: 11px;
  border-radius: 5px;
}

body.panel-popup .panel-mini-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 10px;
  font-weight: var(--fw-bold);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s;
}

body.panel-popup .panel-mini-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

body.panel-popup .panel-mini-btn-gold {
  background: var(--gold);
  color: #000;
  border-color: transparent;
}

body.panel-popup .panel-mini-btn-gold:hover {
  filter: brightness(1.1);
}

body.panel-popup .panel-mini-btn-danger {
  background: rgba(220, 38, 38, 0.85);
  color: #fff;
  border-color: transparent;
}

body.panel-popup .rm-fs-crumb {
  flex-shrink: 0;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--muted-2);
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.panel-popup .rm-fs-explorer {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  border: none;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.28);
}

body.panel-popup .fs-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 72px;
  height: 100%;
  font-size: 11px;
  font-weight: var(--fw-semibold);
  color: var(--muted);
}

body.panel-popup .fs-state-spin {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border: 2px solid rgba(244, 114, 182, 0.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: rm-fs-spin 0.65s linear infinite;
}

body.panel-popup .fs-loading span:last-child {
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

body.panel-popup .fs-empty span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@keyframes rm-fs-spin {
  to { transform: rotate(360deg); }
}

body.panel-popup .panel-shell .rm-output,
body.panel-popup .panel-kb .rm-kb-output {
  border-radius: 4px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

body.panel-popup .fs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  cursor: default;
  user-select: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.025);
  font-size: 11px;
  transition: background 0.1s;
}

body.panel-popup .fs-row.is-dir { cursor: pointer; }
body.panel-popup .fs-row.is-file { cursor: pointer; }
body.panel-popup .fs-row:hover { background: rgba(244, 114, 182, 0.08); }
body.panel-popup .fs-row-icon { flex-shrink: 0; display: flex; align-items: center; }
body.panel-popup .fs-row-icon .fs-svg { width: 15px; height: 15px; color: var(--muted-2); }
body.panel-popup .fs-row.is-dir .fs-row-icon .fs-svg { color: var(--gold-light); }
body.panel-popup .fs-row-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
body.panel-popup .fs-row-dl {
  flex-shrink: 0;
  margin-left: auto;
  padding: 2px 5px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.12s, color 0.12s, background 0.12s;
}
body.panel-popup .fs-row:hover .fs-row-dl { opacity: 1; }
body.panel-popup .fs-row-dl:hover { color: var(--gold-light); background: rgba(255, 255, 255, 0.06); }

body.panel-popup .fs-row-meta {
  color: var(--muted);
  font-size: 10px;
  margin-left: 6px;
}

.rm-sendkeys-bar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  z-index: 60;
  width: min(520px, calc(100vw - 32px));
}
.rm-sendkeys-bar .weeb-input { flex: 1; }

.log-actions-cell {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rm-close-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}
.log-status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-left: 10px;
  vertical-align: middle;
  box-shadow: 0 0 8px currentColor;
}
.log-status-dot.online { background: #22c55e; color: #22c55e; }
.log-status-dot.offline { background: #ef4444; color: #ef4444; }

/* 3-dot dropdown menu for log rows */
.log-menu-cell {
  position: relative;
  white-space: nowrap;
  width: 40px;
  text-align: right;
}

.log-menu-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.log-menu-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.log-menu-dots {
  width: 18px;
  height: 18px;
}

.log-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 100;
  min-width: 180px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.log-menu-dropdown.hidden { display: none; }

.log-menu-item {
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  cursor: pointer;
  border-radius: 6px;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.log-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.log-menu-item.log-menu-danger {
  color: var(--red);
}
.log-menu-item.log-menu-danger:hover {
  background: rgba(239, 68, 68, 0.12);
}

@media (max-width: 980px) {
  body.panel-popup .remote-top {
    flex-direction: column;
  }
  body.panel-popup .remote-stream-panel {
    flex: 0 0 200px;
    min-height: 160px;
  }
  body.panel-popup .remote-actions-grid {
    flex: 1 1 auto;
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  body.panel-popup .panel-dock {
    grid-template-columns: 1fr 1fr;
  }
}

/* ══ AMBIENT ANIMATIONS ══ */
@keyframes authIn { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes authMoonFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes meshDrift { 0% { transform: scale(1); } 50% { transform: scale(1.05) translate(10px, -10px); } 100% { transform: scale(1) translate(-10px, 10px); } }
@keyframes sidebarMoonFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-2px) rotate(4deg); } }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes iconFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes gradSlide { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes balSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes toastSlide { from { opacity: 0; transform: translateX(40px) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px) scale(0.95); } }
@keyframes logoSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes barShine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }
@keyframes rowIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* ── Builder Presets Row removed ── */

/* ══ Product polish ══ */
.cursor-glow { display: none; }
.app::before { animation: none; }

.brand-mark {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #e8eef6;
  text-shadow: none;
}
.brand-mark::after { width: 28px; margin-top: 10px; opacity: 1; }
.brand-name {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.sidebar { padding: 20px 14px 16px; }
.sidebar-brand { padding: 4px 8px 18px; margin-bottom: 12px; }
.nav-item { padding: 9px 12px; border-radius: 8px; }
.nav-item.active {
  border-color: transparent;
  background: rgba(244, 114, 182, 0.12);
  box-shadow: inset 2px 0 0 var(--gold);
  color: #fff;
}

.app-statusbar {
  padding: 0 28px;
  height: 52px;
  border-bottom: 1px solid var(--border);
  background: rgba(18, 11, 15, 0.72);
}
.app-main { padding: 28px 28px 40px; }
.page-title { font-size: 22px; font-weight: 600; }
.page-header { margin-bottom: 18px; }
.live-badge { animation: none; letter-spacing: 0.08em; }

.weeb-input,
select.weeb-input,
textarea.weeb-input {
  height: 40px;
  border-radius: 8px;
  font-size: 13px;
}
textarea.weeb-input { height: auto; min-height: 88px; padding: 10px 14px; }
select.weeb-input { padding-right: 32px; }
.login-form .weeb-input { height: 48px; }
.weeb-btn-primary { height: 42px; border-radius: 8px; font-size: 14px; box-shadow: none; }
.login-form .weeb-btn-primary { height: 48px; }
.weeb-btn-primary:hover { filter: brightness(1.06); }

.weeb-box { border-radius: 10px; }
.stat-card:hover { transform: none; box-shadow: none; }
.stat-num { font-size: 24px; }

.table-wrap { border-radius: 10px; }
th {
  position: sticky;
  top: 0;
  background: #1a1217;
  font-weight: 600;
  letter-spacing: 0.04em;
}
th, td { padding: 12px 14px; }
tbody tr:hover { box-shadow: none; background: rgba(244, 114, 182, 0.07); }
td { font-variant-numeric: tabular-nums; }

.admin-create,
.account-settings,
.build-config { padding: 20px; }
.admin-create { max-width: 640px; }
.field-label { margin-top: 14px; letter-spacing: 0.04em; font-weight: 600; }
.field-label:first-child { margin-top: 0; }
#dropper-generate { margin-top: 16px; width: auto; min-width: 140px; padding: 0 18px; }
.dropper-extra { margin-top: 4px; }
.dropper-output { max-height: 320px; overflow: auto; user-select: all; white-space: pre-wrap; }

.account-hero, .account-settings, .account-leaderboard { border-radius: 10px; }

/* ══ MAIN PANEL — VISUAL POLISH ══ */
.app .sidebar {
  background: linear-gradient(180deg, rgba(14, 9, 15, 0.98), rgba(14, 8, 11, 0.99));
  border-right-color: rgba(244, 114, 182, 0.12);
}
.app .brand-mark {
  background: linear-gradient(120deg, #e2e8f0, #f9a8d4 60%, #f9a8d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.app .app-statusbar {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.app .app-main {
  background:
    radial-gradient(800px 360px at 12% -8%, rgba(244, 114, 182, 0.08), transparent 60%),
    radial-gradient(700px 360px at 92% 4%, rgba(244, 114, 182, 0.05), transparent 55%);
}
.app .page-header {
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(170, 157, 173, 0.08);
}
.app .page-title {
  background: linear-gradient(120deg, #f8fafc 10%, #f9d9ec 55%, #f9a8d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.app .page-subtitle { color: #b7a9b8; }
.app .page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.app .page-actions .weeb-btn-ghost-sm {
  height: 36px;
  padding: 0 14px;
}
.app .weeb-box {
  background: linear-gradient(180deg, rgba(26, 16, 21, 0.86), rgba(18, 11, 15, 0.92));
  border-color: rgba(170, 157, 173, 0.09);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.025) inset, 0 16px 40px rgba(0, 0, 0, 0.16);
}
.app .weeb-box:hover { border-color: rgba(244, 114, 182, 0.2); }
.app .stat-card {
  transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s;
}
.app .stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(244, 114, 182, 0.08);
}
.logs-table-wrap table { border-collapse: separate; border-spacing: 0; }
.logs-table-wrap thead th {
  background: rgba(16, 11, 17, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(244, 114, 182, 0.14);
}
.logs-table-wrap tbody tr { transition: background 0.15s; }
.logs-table-wrap tbody tr:hover {
  background: linear-gradient(90deg, rgba(244, 114, 182, 0.09), rgba(244, 114, 182, 0.015));
}
.logs-table-wrap tbody tr:last-child td { border-bottom: 0; }
.logs-table-wrap td:first-child {
  color: #b0a2b1;
  font-size: 12px;
  white-space: nowrap;
}
.log-img-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  margin-left: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.log-img-btn svg {
  width: 14px;
  height: 14px;
}
.logs-table-wrap .log-actions-cell { white-space: nowrap; }
.logs-table-wrap .weeb-btn-ghost-sm {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}
.logs-table-wrap .log-img-btn { padding: 0; }
.app .page:not(.hidden) { animation: pageIn 0.22s var(--ease); }

/* ══ UI POLISH II — EVERYWHERE ══ */
.app .app-statusbar { justify-content: space-between; }
.statusbar-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 12px;
  color: var(--muted);
}
.statusbar-brand {
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #f9a8d4;
}
.statusbar-divider { color: rgba(170, 157, 173, 0.35); }
.statusbar-left strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-weight: 600;
}
.statusbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app .weeb-input:focus,
.app select.weeb-input:focus,
.app textarea.weeb-input:focus {
  outline: none;
  border-color: rgba(249, 168, 212, 0.5);
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.1);
}
.app .weeb-btn-primary {
  background: linear-gradient(135deg, #db2777, #f472b6 55%, #f9a8d4);
  border: 1px solid rgba(251, 207, 232, 0.2);
  box-shadow: 0 8px 24px rgba(219, 39, 119, 0.18);
  transition: transform 0.15s var(--ease), box-shadow 0.15s, filter 0.15s;
}
.app .weeb-btn-primary:not(:disabled):hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 12px 30px rgba(219, 39, 119, 0.28);
}
.app .weeb-btn-ghost-sm {
  background: rgba(170, 157, 173, 0.04);
  border: 1px solid rgba(170, 157, 173, 0.12);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.app .weeb-btn-ghost-sm:hover {
  background: rgba(244, 114, 182, 0.12);
  border-color: rgba(249, 168, 212, 0.35);
  color: #fff;
}

.app .stat-card {
  position: relative;
  overflow: hidden;
}
.app .stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(240px 130px at 100% 0%, rgba(244, 114, 182, 0.11), transparent 70%);
}
.app .stat-card > * { position: relative; z-index: 1; }
.app .stat-icon {
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.app .panel-head {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent);
}
.app .panel-tag { font-weight: 700; }
.app .activity-item {
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.app .activity-item:hover {
  border-color: rgba(244, 114, 182, 0.28);
  background: rgba(244, 114, 182, 0.035);
  transform: translateX(2px);
}
.app .origin-item {
  padding: 9px 8px;
  border-radius: 8px;
}
.app .origin-item:hover { background: rgba(244, 114, 182, 0.06); }

.app .format-card {
  background: linear-gradient(180deg, rgba(26, 16, 21, 0.92), rgba(18, 11, 15, 0.96));
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.app .format-card:hover {
  transform: translateY(-1px);
  border-color: rgba(249, 168, 212, 0.3);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}
.app .format-card.active {
  background: linear-gradient(135deg, rgba(219, 39, 119, 0.17), rgba(18, 11, 15, 0.96));
  box-shadow: 0 0 0 1px rgba(249, 168, 212, 0.18), 0 12px 30px rgba(0, 0, 0, 0.22);
}
.app .build-config {
  background: linear-gradient(180deg, rgba(26, 16, 21, 0.9), rgba(18, 11, 15, 0.96));
}
.app .build-side {
  position: sticky;
  top: 76px;
  background: linear-gradient(180deg, rgba(26, 16, 21, 0.9), rgba(18, 11, 15, 0.96));
}
.app .build-steps li { margin-bottom: 6px; }
.app .build-steps li::marker { color: var(--gold-light); font-weight: 800; }
.app .build-side-note {
  padding: 10px 12px;
  border: 1px solid rgba(244, 114, 182, 0.14);
  border-radius: 8px;
  background: rgba(244, 114, 182, 0.05);
}

.app .account-hero {
  background:
    radial-gradient(620px 240px at 100% 0%, rgba(244, 114, 182, 0.12), transparent 65%),
    linear-gradient(180deg, rgba(26, 16, 21, 0.92), rgba(18, 11, 15, 0.96));
}
.app .account-avatar-img,
.app .account-avatar-fallback {
  border-radius: 28px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(249, 168, 212, 0.08) inset;
}
.app .account-stat {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012));
  transition: border-color 0.15s, transform 0.15s;
}
.app .account-stat:hover {
  border-color: rgba(244, 114, 182, 0.22);
  transform: translateY(-1px);
}

.app .admin-tabs {
  display: flex;
  gap: 5px;
  max-width: 560px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(18, 11, 15, 0.8);
}
.app .admin-tab {
  padding: 9px 12px;
  border-bottom: 0;
  border-radius: 7px;
  margin-bottom: 0;
}
.app .admin-tab.active {
  color: #fff;
  background: rgba(244, 114, 182, 0.16);
  box-shadow: inset 0 0 0 1px rgba(249, 168, 212, 0.18);
}

.app ::selection { background: rgba(244, 114, 182, 0.35); color: #fff; }

.login-form .weeb-input:focus {
  outline: none;
  border-color: rgba(249, 168, 212, 0.5);
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.1);
}
.login-form .weeb-btn-primary {
  background: linear-gradient(135deg, #db2777, #f472b6 55%, #f9a8d4);
  box-shadow: 0 10px 30px rgba(219, 39, 119, 0.24);
  transition: transform 0.15s var(--ease), box-shadow 0.15s, filter 0.15s;
}
.login-form .weeb-btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
  box-shadow: 0 14px 34px rgba(219, 39, 119, 0.32);
}

/* ══ SIDEBAR POLISH ══ */
.app .sidebar {
  background: linear-gradient(180deg, #120d14 0%, #0b070b 100%);
  box-shadow: inset -1px 0 0 rgba(249, 168, 212, 0.05);
}
.app .sidebar::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -70px;
  width: 250px;
  height: 250px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.16), transparent 68%);
}
.app .sidebar-brand { position: relative; z-index: 1; }
.app .brand-mark { font-size: 22px; letter-spacing: 5px; }
.app .sidebar-section-label {
  margin: 4px 8px 8px;
  color: #8f7f8c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.app .nav-item {
  position: relative;
  transition: color 0.15s, background 0.15s, transform 0.15s;
}
.app .nav-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  transform: translateX(2px);
}
.app .nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(244, 114, 182, 0.2), rgba(244, 114, 182, 0.04));
  box-shadow: inset 2px 0 0 #f9a8d4, 0 8px 20px rgba(0, 0, 0, 0.18);
}
.app .nav-item.active::after {
  content: '';
  position: absolute;
  right: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f9a8d4;
  box-shadow: 0 0 10px rgba(249, 168, 212, 0.8);
}
.app .nav-item .nav-svg { opacity: 0.8; transition: opacity 0.15s, color 0.15s; }
.app .nav-item:hover .nav-svg,
.app .nav-item.active .nav-svg { opacity: 1; color: #f9a8d4; }
.app .api-status {
  padding: 8px 10px;
  border: 1px solid rgba(16, 185, 129, 0.14);
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.04);
}
.app .sidebar-logout {
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.app .sidebar-logout:hover {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.08);
}

/* ══ LOG MENU — NO CLIPPING ══ */
.logs-table-wrap { overflow: visible; }
.log-menu-dropdown.drop-up {
  top: auto;
  bottom: 100%;
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  .app .sidebar-section-label { display: none; }
}

.app .brand-mark::after { display: none; }

/* ══ REMOTE SESSION PANEL POLISH ══ */
body.panel-popup .remote-stage { padding: 10px; }
body.panel-popup .panel-unified {
  position: relative;
  border: 1px solid rgba(249, 168, 212, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(14, 9, 15, 0.97), rgba(11, 6, 9, 0.99));
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.5);
}
body.panel-popup .panel-unified::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  z-index: 20;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(249, 168, 212, 0.55), transparent);
}
body.panel-popup .remote-top { border-bottom-color: rgba(249, 168, 212, 0.12); }
body.panel-popup .rm-stream-box {
  border-right-color: rgba(249, 168, 212, 0.1);
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(244, 114, 182, 0.08), transparent 65%),
    #08060a;
}
body.panel-popup .rm-stream-meta {
  padding: 5px 11px;
  background: rgba(13, 7, 11, 0.78);
  border-color: rgba(249, 168, 212, 0.16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
body.panel-popup .rm-stream-floatbar {
  background: rgba(14, 8, 12, 0.82);
  border-color: rgba(249, 168, 212, 0.18);
  border-radius: 10px;
  padding: 5px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.52);
}
body.panel-popup .remote-actions-grid {
  flex: 0 0 400px;
  width: 400px;
  padding: 10px 9px 12px;
  background: rgba(11, 6, 9, 0.55);
  border-left-color: rgba(249, 168, 212, 0.1);
}
body.panel-popup .rm-cmd-section {
  padding: 4px 0 8px;
  border-bottom-color: rgba(170, 157, 173, 0.07);
}
body.panel-popup .rm-cmd-section-head {
  padding: 8px 4px 5px;
  font-size: 9.5px;
  letter-spacing: 0.1em;
}
body.panel-popup .rm-cmd-section-head span { color: rgba(251, 207, 232, 0.68); }
body.panel-popup .rm-cmd-section-list { gap: 5px; }
body.panel-popup .rm-cmd-btn {
  height: 32px;
  border: 1px solid rgba(170, 157, 173, 0.055);
  background: rgba(170, 157, 173, 0.035);
  border-radius: 7px;
}
body.panel-popup .rm-cmd-btn:hover {
  transform: translateY(-1px);
  background: rgba(244, 114, 182, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
body.panel-popup .panel-dock {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
}
body.panel-popup .panel-block {
  background: linear-gradient(180deg, rgba(16, 11, 17, 0.9), rgba(14, 8, 11, 0.96));
  border: 1px solid rgba(170, 157, 173, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
body.panel-popup .panel-block:hover { border-color: rgba(249, 168, 212, 0.2); }
body.panel-popup .panel-dock .panel-block:last-child { border-right: 1px solid rgba(170, 157, 173, 0.08); }
body.panel-popup .panel-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b3a3b2;
}
body.panel-popup .rm-output,
body.panel-popup .rm-kb-output {
  background: rgba(12, 7, 10, 0.72);
  border: 1px solid rgba(249, 168, 212, 0.1);
  border-radius: 7px;
}
body.panel-popup .rm-output { color: #86efac; }
body.panel-popup .rm-fs-explorer {
  background: rgba(12, 7, 10, 0.55);
  border: 1px solid rgba(249, 168, 212, 0.08);
  border-radius: 7px;
}
body.panel-popup .rm-fs-crumb {
  background: rgba(12, 7, 10, 0.55);
  border-color: rgba(249, 168, 212, 0.08);
  border-radius: 6px;
}
body.panel-popup .rm-inline-btn {
  border-radius: 6px;
  background: rgba(170, 157, 173, 0.04);
}

@media (max-width: 980px) {
  body.panel-popup .remote-actions-grid {
    flex: 1 1 auto;
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(249, 168, 212, 0.1);
  }
  body.panel-popup .panel-dock { grid-template-columns: 1fr 1fr; }
}

/* ══ REMOTE PANEL — SIMPLE NEUTRAL THEME ══ */
body.panel-popup {
  background: #07090d;
}
body.panel-popup .remote-page {
  background: #07090d;
}
body.panel-popup .remote-stage { padding: 10px; }
body.panel-popup .panel-unified {
  border: 1px solid #342a35;
  border-radius: 10px;
  background: #120d11;
  box-shadow: none;
}
body.panel-popup .panel-unified::before { display: none; }
body.panel-popup .remote-top { border-bottom: 1px solid #241e29; }
body.panel-popup .rm-stream-box {
  border-right: 1px solid #241e29;
  background: #05070a;
  box-shadow: none;
  border-radius: 0;
}
body.panel-popup .rm-stream-meta {
  background: #171017;
  border: 1px solid #2a2230;
  box-shadow: none;
}
body.panel-popup .rm-stream-floatbar {
  background: #171017;
  border: 1px solid #2a2230;
  border-radius: 8px;
  padding: 4px;
  box-shadow: none;
}
body.panel-popup .remote-actions-grid {
  background: #0f0a0d;
  border-left: 1px solid #241e29;
}
body.panel-popup .rm-cmd-section { border-bottom: 1px solid #1b161e; }
body.panel-popup .rm-cmd-section-head span {
  color: #b7a9b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
body.panel-popup .rm-cmd-btn {
  background: #171016;
  border: 1px solid #322634;
  color: #e8dde7;
  border-radius: 7px;
}
body.panel-popup .rm-cmd-btn:hover {
  background: #1c1419;
  border-color: #3a2b36;
  color: #fff;
  transform: none;
  box-shadow: none;
}
body.panel-popup .rm-cmd-btn:active {
  background: #211a23;
  border-color: #4a2f40;
  color: #fff;
}
body.panel-popup .rm-cmd-btn .nav-svg { color: #b7a9b8; }
body.panel-popup .rm-cmd-btn:hover .nav-svg { color: #e4d8e3; }
body.panel-popup .panel-dock {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
}
body.panel-popup .panel-block {
  background: #140d12;
  border: 1px solid #2a2230;
  border-radius: 8px;
  box-shadow: none;
}
body.panel-popup .panel-block:hover { border-color: #3a2b36; }
body.panel-popup .panel-dock .panel-block:last-child { border-right: 1px solid #2a2230; }
body.panel-popup .panel-label {
  color: #c0b1bf;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
body.panel-popup .rm-output,
body.panel-popup .rm-kb-output {
  background: #0b0709;
  border: 1px solid #261e28;
  border-radius: 6px;
  color: #e8dde7;
}
body.panel-popup .rm-fs-explorer {
  background: #0b0709;
  border: 1px solid #1b161e;
  border-radius: 6px;
}
body.panel-popup .rm-fs-crumb {
  background: #171017;
  border: 1px solid #241e29;
  color: #b7a9b8;
  border-radius: 6px;
}
body.panel-popup .fs-row { border-bottom: 1px solid #1b161e; }
body.panel-popup .fs-row:hover { background: #191118; }
body.panel-popup .fs-row-name { color: #e4d8e3; }
body.panel-popup .fs-row-meta { color: #8f8190; }
body.panel-popup .fs-row-icon .fs-svg,
body.panel-popup .fs-row.is-dir .fs-row-icon .fs-svg { color: #b7a9b8; }
body.panel-popup .rm-inline-btn {
  background: #171017;
  border: 1px solid #241e29;
  color: #b7a9b8;
  border-radius: 6px;
}
body.panel-popup .rm-inline-btn:hover {
  background: #1c1419;
  border-color: #3a2b36;
  color: #fff;
}
body.panel-popup .rm-status.online {
  background: #16261d;
  color: #86efac;
  border: 1px solid #2a4635;
}
body.panel-popup .rm-status.offline {
  background: #261619;
  color: #fca5a5;
  border: 1px solid #452428;
}
body.panel-popup .rm-status.reconnecting {
  background: #261f14;
  color: #fde68a;
  border: 1px solid #453a24;
}
body.panel-popup .rm-ctrl-start {
  background: #db2777;
  color: #fff;
  box-shadow: none;
}
body.panel-popup .rm-ctrl-start:hover { background: #db2777; filter: none; }
body.panel-popup .rm-ctrl-stop {
  background: #2a1619;
  color: #fca5a5;
  box-shadow: none;
}
body.panel-popup .rm-quality-btn,
body.panel-popup .rm-monitor-select {
  background: #171017;
  border: 1px solid #241e29;
  color: #e4d8e3;
  box-shadow: none;
}
body.panel-popup .rm-quality-btn:hover,
body.panel-popup .rm-quality-btn[aria-expanded="true"] {
  background: #1c1419;
  border-color: #3a2b36;
}
body.panel-popup .rm-quality-menu {
  background: #171017;
  border: 1px solid #2a2230;
  box-shadow: none;
}
body.panel-popup .rm-quality-opt { color: #e4d8e3; }
body.panel-popup .rm-quality-opt:hover { background: #1c1419; color: #fff; }
body.panel-popup .rm-quality-opt.active {
  background: #241c26;
  color: #fff;
}
body.panel-popup .rm-ctrl-icon { color: #b7a9b8; }
body.panel-popup .rm-ctrl-icon:hover { color: #fff; background: #1c1419; }
body.panel-popup .rm-ctrl-icon.active { color: #fff; background: #241c26; box-shadow: none; }
body.panel-popup .rm-input-hint {
  background: #171017;
  border: 1px solid #2a2230;
  color: #b7a9b8;
}
body.panel-popup ::-webkit-scrollbar-thumb {
  background: #3a2430;
  border: 2px solid transparent;
  background-clip: padding-box;
}
body.panel-popup ::-webkit-scrollbar-thumb:hover {
  background: #543347;
  border: 2px solid transparent;
  background-clip: padding-box;
}

@media (max-width: 980px) {
  body.panel-popup .panel-dock { grid-template-columns: 1fr 1fr; }
}

/* ══ SAKURA THEME — GLOBAL ══ */
:root {
  --bg: #0a0708;
  --surface: #130d10;
  --surface-2: #191117;
  --surface-3: #20161c;
  --border: rgba(244, 114, 182, 0.11);
  --muted: #b3a6ae;
  --muted-2: #d0c1c8;
  --cyan: #f472b6;
  --text: #f7eef2;
}

#sakura-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
#sakura-scene canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#sakura-tree-canvas { opacity: 0.68; }
#sakura-petal-canvas { opacity: 0.9; }

html, body { background: #0a0708; }
body { color: var(--text); }

.app {
  position: relative;
  z-index: 1;
  background: transparent;
}
.app::before {
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(244, 114, 182, 0.045) 0%, transparent 50%),
    radial-gradient(ellipse 60% 80% at 85% 75%, rgba(244, 114, 182, 0.03) 0%, transparent 50%);
  animation: none;
}
.app .app-main {
  background:
    radial-gradient(800px 360px at 12% -8%, rgba(244, 114, 182, 0.055), transparent 60%),
    transparent;
}
.app .app-statusbar {
  background: rgba(10, 7, 8, 0.68);
}
.app .weeb-box {
  background: rgba(19, 13, 16, 0.82);
  border-color: rgba(244, 114, 182, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}
.app .weeb-box:hover { border-color: rgba(244, 114, 182, 0.2); }
.app .weeb-input,
.app select.weeb-input,
.app textarea.weeb-input {
  background: #0a0708;
  border-color: rgba(244, 114, 182, 0.1);
}
.app .weeb-input:focus,
.app select.weeb-input:focus,
.app textarea.weeb-input:focus {
  border-color: rgba(244, 114, 182, 0.5);
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.1);
}
.app .sidebar {
  background: linear-gradient(180deg, rgba(15, 9, 12, 0.26) 0%, rgba(9, 5, 7, 0.08) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-right: 1px solid rgba(244, 114, 182, 0.14);
  box-shadow: inset -1px 0 0 rgba(244, 114, 182, 0.06), 0 24px 60px rgba(0, 0, 0, 0.18);
}
.app .sidebar::before {
  background: radial-gradient(circle, rgba(244, 114, 182, 0.14), transparent 68%);
}
.app .brand-mark {
  background: linear-gradient(120deg, #fff, #f9a8d4 55%, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.app .page-title {
  background: linear-gradient(120deg, #fff 10%, #f9a8d4 55%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.app .page-subtitle { color: #b3a6ba; }
.app .nav-item.active {
  background: linear-gradient(90deg, rgba(244, 114, 182, 0.18), rgba(244, 114, 182, 0.035));
  box-shadow: inset 2px 0 0 #f472b6, 0 8px 20px rgba(0, 0, 0, 0.18);
}
.app .nav-item.active::after {
  background: #f9a8d4;
  box-shadow: 0 0 10px rgba(244, 114, 182, 0.8);
}
.app .nav-item:hover .nav-svg,
.app .nav-item.active .nav-svg { color: #f9a8d4; }
.app .weeb-btn-primary {
  background: linear-gradient(135deg, #be185d, #db2777 55%, #f472b6);
  border-color: rgba(249, 168, 212, 0.2);
  box-shadow: 0 8px 24px rgba(190, 24, 93, 0.18);
}
.app .weeb-btn-primary:not(:disabled):hover {
  box-shadow: 0 12px 30px rgba(190, 24, 93, 0.28);
}
.app .weeb-btn-ghost-sm {
  background: rgba(244, 114, 182, 0.035);
  border-color: rgba(244, 114, 182, 0.1);
}
.app .weeb-btn-ghost-sm:hover {
  background: rgba(244, 114, 182, 0.1);
  border-color: rgba(244, 114, 182, 0.35);
}
.app .panel-head {
  background: linear-gradient(180deg, rgba(244, 114, 182, 0.025), transparent);
}
.app .panel-tag {
  color: #f9a8d4;
  background: rgba(244, 114, 182, 0.1);
  border-color: rgba(244, 114, 182, 0.25);
}
.app .live-badge {
  color: #f9a8d4;
  background: rgba(244, 114, 182, 0.1);
  border-color: rgba(244, 114, 182, 0.3);
}
.app .stat-icon-purple,
.app .stat-icon-blue,
.app .stat-icon-green,
.app .stat-icon-gold {
  color: #f9a8d4;
  background: rgba(244, 114, 182, 0.1);
}
.app .activity-item.is-self {
  border-color: rgba(244, 114, 182, 0.4);
  background: rgba(244, 114, 182, 0.045);
}
.app .account-role-badge {
  color: #f9a8d4;
  background: rgba(244, 114, 182, 0.1);
  border-color: rgba(244, 114, 182, 0.28);
}
.app .account-avatar-edit {
  background: #db2777;
  color: #fff;
}
.app .format-card.active {
  border-color: #f472b6;
  background: rgba(244, 114, 182, 0.06);
  box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.15);
}
.app .weeb-tab.active { border-bottom-color: #f472b6; }
.app .admin-tab.active {
  background: rgba(244, 114, 182, 0.14);
  box-shadow: inset 0 0 0 1px rgba(244, 114, 182, 0.18);
}
.app .logs-table-wrap tbody tr:hover {
  background: linear-gradient(90deg, rgba(244, 114, 182, 0.08), rgba(244, 114, 182, 0.012));
}
.app .log-menu-dropdown {
  background: #1a1217;
  border-color: rgba(244, 114, 182, 0.14);
}
.app .log-menu-item:hover { background: rgba(244, 114, 182, 0.08); }

.login-screen {
  background: rgba(10, 7, 8, 0.58);
}
.login-card {
  background: rgba(17, 11, 13, 0.8);
  border-color: rgba(244, 114, 182, 0.15);
}
.login-form .weeb-btn-primary {
  background: linear-gradient(135deg, #be185d, #db2777 55%, #f472b6);
  box-shadow: 0 10px 30px rgba(190, 24, 93, 0.24);
}
.login-contact a { color: #f9a8d4; }

body.panel-popup .remote-page {
  position: relative;
  z-index: 1;
  background: rgba(6, 5, 7, 0.62);
}
body.panel-popup #sakura-tree-canvas { opacity: 0.42; }
body.panel-popup #sakura-petal-canvas { opacity: 0.55; }

@media (prefers-reduced-motion: reduce) {
  #sakura-petal-canvas { opacity: 0.5; }
}

/* ══ REMOTE PANEL — BLACK + SPARSE PINK ══ */
body.panel-popup { background: #060507; }
body.panel-popup .remote-page { background: #060507; }
body.panel-popup .panel-unified {
  background: #0b090d;
  border-color: #2a2230;
}
body.panel-popup .remote-top { border-bottom-color: #241e29; }
body.panel-popup .rm-stream-box {
  background: #040305;
  border-right-color: #241e29;
}
body.panel-popup .rm-stream-meta {
  background: #100c11;
  border-color: #2a2230;
}
body.panel-popup .rm-stream-floatbar {
  background: #100c11;
  border-color: #2a2230;
}
body.panel-popup .remote-actions-grid {
  background: #080609;
  border-left-color: #241e29;
}
body.panel-popup .rm-cmd-section { border-bottom-color: #1b161e; }
body.panel-popup .rm-cmd-section-head span { color: #b9aebd; }
body.panel-popup .rm-cmd-btn {
  background: #100c11;
  border-color: #241e29;
  color: #d8d0dc;
}
body.panel-popup .rm-cmd-btn:hover {
  background: #19131b;
  border-color: rgba(244, 114, 182, 0.45);
  color: #fff;
}
body.panel-popup .rm-cmd-btn:hover .nav-svg { color: #f472b6; }
body.panel-popup .rm-cmd-btn:active {
  background: #21161f;
  border-color: #f472b6;
  color: #f9a8d4;
}
body.panel-popup .rm-cmd-btn .nav-svg { color: #a99fae; }
body.panel-popup .panel-block {
  background: #0d0a0f;
  border-color: #241e29;
}
body.panel-popup .panel-block:hover { border-color: rgba(244, 114, 182, 0.3); }
body.panel-popup .panel-dock .panel-block:last-child { border-right-color: #241e29; }
body.panel-popup .panel-label { color: #b9aebd; }
body.panel-popup .rm-output,
body.panel-popup .rm-kb-output {
  background: #050406;
  border-color: #1d1720;
  color: #d8d0dc;
}
body.panel-popup .rm-fs-explorer {
  background: #050406;
  border-color: #1d1720;
}
body.panel-popup .rm-fs-crumb {
  background: #100c11;
  border-color: #241e29;
  color: #b9aebd;
}
body.panel-popup .fs-row { border-bottom-color: #1b161e; }
body.panel-popup .fs-row:hover { background: #171019; }
body.panel-popup .fs-row-name { color: #d8d0dc; }
body.panel-popup .fs-row-meta { color: #8f8494; }
body.panel-popup .fs-row-icon .fs-svg,
body.panel-popup .fs-row.is-dir .fs-row-icon .fs-svg { color: #a99fae; }
body.panel-popup .rm-inline-btn {
  background: #100c11;
  border-color: #241e29;
  color: #b9aebd;
}
body.panel-popup .rm-inline-btn:hover {
  background: #19131b;
  border-color: rgba(244, 114, 182, 0.4);
  color: #f9a8d4;
}
body.panel-popup .rm-status.online {
  background: #2a1623;
  color: #f9a8d4;
  border: 1px solid #4a2439;
}
body.panel-popup .rm-status.offline {
  background: #1a1519;
  color: #a99fae;
  border: 1px solid #2a2230;
}
body.panel-popup .rm-status.reconnecting {
  background: #261f14;
  color: #fbbf24;
  border: 1px solid #453a24;
}
body.panel-popup .rm-ctrl-start {
  background: #db2777;
  color: #fff;
  box-shadow: none;
}
body.panel-popup .rm-ctrl-start:hover { background: #ec4899; filter: none; }
body.panel-popup .rm-ctrl-stop {
  background: #2a161c;
  color: #fca5a5;
  box-shadow: none;
}
body.panel-popup .rm-quality-btn,
body.panel-popup .rm-monitor-select {
  background: #100c11;
  border-color: #241e29;
  color: #d8d0dc;
  box-shadow: none;
}
body.panel-popup .rm-quality-btn:hover,
body.panel-popup .rm-quality-btn[aria-expanded="true"] {
  background: #19131b;
  border-color: rgba(244, 114, 182, 0.4);
}
body.panel-popup .rm-quality-menu {
  background: #100c11;
  border-color: #2a2230;
  box-shadow: none;
}
body.panel-popup .rm-quality-opt { color: #d8d0dc; }
body.panel-popup .rm-quality-opt:hover { background: #19131b; color: #fff; }
body.panel-popup .rm-quality-opt.active {
  background: #2a1623;
  color: #f9a8d4;
}
body.panel-popup .rm-ctrl-icon { color: #a99fae; }
body.panel-popup .rm-ctrl-icon:hover { color: #f9a8d4; background: #19131b; }
body.panel-popup .rm-ctrl-icon.active {
  color: #f9a8d4;
  background: #2a1623;
  box-shadow: none;
}
body.panel-popup .rm-input-hint {
  background: #100c11;
  border-color: #2a2230;
  color: #b9aebd;
}
body.panel-popup .fs-state-spin {
  border-color: rgba(244, 114, 182, 0.18);
  border-top-color: #f472b6;
}
body.panel-popup ::selection { background: rgba(244, 114, 182, 0.28); color: #fff; }
body.panel-popup ::-webkit-scrollbar-thumb {
  background: #3a2430;
  border: 2px solid transparent;
  background-clip: padding-box;
}
body.panel-popup ::-webkit-scrollbar-thumb:hover {
  background: #543347;
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* Sakura must remain visible behind the remote shell */
body.panel-popup .remote-page { background: rgba(6, 5, 7, 0.62); }

/* Logs header + builder format labels: no cool tint */
.logs-table-wrap thead th {
  background: #1a1217;
  color: #cdbdc7;
}
.app .format-card {
  background: linear-gradient(180deg, rgba(26, 16, 21, 0.95), rgba(18, 11, 15, 0.97));
}
.app .format-card.active {
  background: linear-gradient(135deg, rgba(219, 39, 119, 0.16), rgba(18, 11, 15, 0.97));
}
.app .format-card .format-ext { color: #f9a8d4; }

/* Remote panel: same warm sakura-glass language */
body.panel-popup { background: #0a0708; }
body.panel-popup .remote-page { background: rgba(8, 5, 6, 0.15); }
body.panel-popup .panel-unified {
  background: rgba(13, 9, 11, 0.28);
  border-color: rgba(244, 114, 182, 0.16);
  -webkit-backdrop-filter: blur(2px) saturate(130%);
  backdrop-filter: blur(2px) saturate(130%);
  box-shadow: inset 0 0 90px rgba(244, 114, 182, 0.035);
}
body.panel-popup .remote-top { border-bottom-color: rgba(244, 114, 182, 0.14); }
body.panel-popup .rm-stream-box {
  background: rgba(10, 7, 9, 0.22);
  border-right-color: rgba(244, 114, 182, 0.14);
}
body.panel-popup .remote-actions-grid {
  background: rgba(8, 5, 6, 0.22);
  border-left-color: rgba(244, 114, 182, 0.14);
}
body.panel-popup .panel-block {
  background: rgba(12, 8, 10, 0.7);
  border-color: rgba(244, 114, 182, 0.12);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
}
body.panel-popup .panel-label,
body.panel-popup .rm-cmd-section-head span { color: #d9bcc9; }
body.panel-popup #sakura-tree-canvas { opacity: 0.88; }
body.panel-popup #sakura-petal-canvas { opacity: 0.9; }

/* Login: form sits directly on the sakura scene (no card box) */
.login-screen {
  background:
    linear-gradient(180deg, rgba(244, 114, 182, 0.09) 0%, rgba(8, 5, 6, 0.02) 30%, rgba(8, 5, 6, 0.04) 70%, rgba(244, 114, 182, 0.055) 100%),
    rgba(8, 5, 6, 0.08);
}
.login-card {
  max-width: 420px;
  padding: 0 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
.login-card::before,
.login-card::after { display: none; }
.login-label {
  letter-spacing: 1.5px;
  color: #e1ccd8;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
.login-contact {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* Chibi mascot perched on the final B, feet dangling over it */
.logo-b {
  position: relative;
  display: inline-block;
  z-index: 2;
}
.auth-mascot,
.brand-mascot {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 36px);
  transform: translateX(-50%);
  height: auto;
  pointer-events: none;
  user-select: none;
  image-rendering: pixelated;
  z-index: 3;
}
.auth-mascot {
  width: 86px;
  left: calc(50% + 14px);
  bottom: calc(100% - 27px);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}
.brand-mascot {
  width: 54px;
  left: calc(50% + 10px);
  bottom: calc(100% - 14px);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}
.app .sidebar-brand {
  padding-top: 38px;
}
.brand-mark .logo-b {
  background: linear-gradient(120deg, #fff 8%, #f9a8d4 58%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-logo .logo-b { color: inherit; }
@media (max-height: 760px) {
  .auth-mascot { width: 76px; }
  .app .sidebar-brand { padding-top: 34px; }
  .brand-mascot { width: 50px; }
}

@media (max-width: 900px) {
  .app .app-statusbar { padding: 0 16px; gap: 10px; }
  .statusbar-left { font-size: 11px; }
  .app .page-header { align-items: flex-start; flex-direction: column; }
  .app .page-actions { width: 100%; justify-content: flex-end; }
  .app .build-side { position: static; }
  .app .admin-tabs { max-width: none; }
}


/* Expandable log details */
.log-expand-btn {
  width: 30px;
  height: 30px;
  margin-left: 4px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(244, 114, 182, 0.14);
  border-radius: 7px;
  background: rgba(244, 114, 182, 0.04);
  color: #bda9b7;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.log-expand-btn:hover,
.log-expand-btn.open {
  color: #f9a8d4;
  background: rgba(244, 114, 182, 0.12);
  border-color: rgba(244, 114, 182, 0.32);
}
.log-expand-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s var(--ease);
}
.log-expand-btn.open svg { transform: rotate(180deg); }

.log-detail-row > td {
  padding: 0 8px 12px !important;
  background: transparent !important;
  border-bottom: 0 !important;
}
.log-detail-panel {
  margin: 0 0 4px;
  padding: 16px;
  border: 1px solid rgba(244, 114, 182, 0.14);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(19, 12, 17, 0.97), rgba(10, 6, 9, 0.99));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 18px 44px rgba(0, 0, 0, 0.28);
}
.log-detail-loading {
  text-align: center;
  color: #b9a6b3;
  font-size: 13px;
  padding: 28px 16px;
}
.log-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(244, 114, 182, 0.1);
}
.log-detail-header strong {
  display: block;
  color: #f7eef2;
  font-size: 17px;
  line-height: 1.2;
}
.log-detail-header span {
  display: block;
  margin-top: 5px;
  color: #a995a1;
  font-size: 11px;
}
.log-detail-file {
  text-align: right;
  flex-shrink: 0;
}
.log-detail-file span {
  margin: 0 0 4px;
  color: #a995a1;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.log-detail-file strong {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  color: #f9a8d4;
}
.log-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.log-detail-column { min-width: 0; }
.detail-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #d8bdc9;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.detail-section-title em {
  font-style: normal;
  color: #f472b6;
  font-size: 11px;
}
.detail-muted,
.detail-hint {
  color: #a995a1;
  font-size: 11px;
  line-height: 1.5;
}
.detail-hint { margin: 0 0 8px; }
.discord-detail-card,
.roblox-detail-card {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid rgba(244, 114, 182, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}
.discord-detail-head,
.roblox-detail-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.discord-detail-avatar,
.roblox-detail-avatar {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  background: #1d1119;
  border: 1px solid rgba(244, 114, 182, 0.16);
}
.roblox-detail-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.discord-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f9a8d4;
  font-weight: 800;
}
.discord-detail-identity,
.roblox-detail-head > div {
  min-width: 0;
  flex: 1;
}
.discord-detail-identity strong,
.roblox-detail-head strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f7eef2;
  font-size: 12px;
}
.discord-detail-identity span,
.roblox-detail-head span {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #a995a1;
  font-size: 10px;
}
.detail-pill {
  flex-shrink: 0;
  padding: 3px 6px;
  border: 1px solid rgba(244, 114, 182, 0.18);
  border-radius: 5px;
  background: rgba(244, 114, 182, 0.08);
  color: #f9a8d4;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.roblox-pill {
  color: #d9bcc9;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.discord-detail-facts,
.roblox-detail-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 10px;
  margin-top: 10px;
}
.discord-detail-facts div,
.roblox-detail-facts div { min-width: 0; }
.discord-detail-facts span,
.roblox-detail-facts span {
  display: block;
  margin-bottom: 2px;
  color: #8f7f8c;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.discord-detail-facts strong,
.roblox-detail-facts strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #d8c8d3;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}
.detail-subhead {
  margin: 10px 0 5px;
  color: #8f7f8c;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 5px;
  border: 1px solid rgba(244, 114, 182, 0.1);
  border-radius: 5px;
  background: rgba(244, 114, 182, 0.045);
  color: #cdb9c6;
  font-size: 9px;
  line-height: 1.4;
}
.badge-chip img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}
.detail-token-wrap {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(244, 114, 182, 0.08);
  border-radius: 7px;
  background: rgba(2, 1, 3, 0.5);
}
.detail-token {
  flex: 1;
  min-width: 0;
  max-height: 58px;
  overflow: auto;
  color: #b9a6b3;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 9px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-all;
}
.detail-copy {
  flex-shrink: 0;
  padding: 3px 6px;
  border: 1px solid rgba(244, 114, 182, 0.16);
  border-radius: 5px;
  background: rgba(244, 114, 182, 0.08);
  color: #f9a8d4;
  font-size: 9px;
  cursor: pointer;
}
.detail-copy:hover { background: rgba(244, 114, 182, 0.18); }
.roblox-token { max-height: 74px; }
.hq-friend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-height: 270px;
  overflow-y: auto;
  padding-right: 2px;
}
.hq-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border: 1px solid rgba(244, 114, 182, 0.1);
  border-radius: 6px;
  background: rgba(244, 114, 182, 0.04);
  color: #d8c8d3;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 10px;
}
.hq-chip img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}
.log-passwords-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(244, 114, 182, 0.1);
}
.password-detail-scroll {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}
.password-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
}
.password-detail-row:last-child { border-bottom: 0; }
.password-detail-row code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #d8c8d3;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11px;
}
.password-detail-row span {
  flex-shrink: 0;
  color: #f472b6;
  font-size: 10px;
  font-weight: 700;
}
.password-detail-scroll::-webkit-scrollbar,
.hq-friend-list::-webkit-scrollbar,
.detail-token::-webkit-scrollbar { width: 5px; height: 5px; }
.password-detail-scroll::-webkit-scrollbar-thumb,
.hq-friend-list::-webkit-scrollbar-thumb,
.detail-token::-webkit-scrollbar-thumb { background: #543347; border-radius: 4px; }
@media (max-width: 1100px) {
  .log-detail-grid { grid-template-columns: 1fr 1fr; }
  .roblox-column { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .log-detail-grid { grid-template-columns: 1fr; }
  .roblox-column { grid-column: auto; }
  .log-detail-header { flex-direction: column; gap: 8px; }
  .log-detail-file { text-align: left; }
}

/* Log detail v2 — browser / HQ / card billing */
.log-detail-grid-two {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}
.billing-value {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #e7d3df;
  font-weight: 500;
}
.billing-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  border-radius: 3px;
  flex-shrink: 0;
}
.billing-card-icon {
  width: 18px;
  height: 13px;
  border-radius: 2px;
}
.billing-muted { color: #8f7f8c; }
.detail-count {
  margin-left: 4px;
  color: #f472b6;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}
.hq-friend-list-inline {
  max-height: 108px;
  margin-bottom: 2px;
}
.detail-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(244, 114, 182, 0.3);
  border-radius: 7px;
  background: rgba(244, 114, 182, 0.12);
  color: #f9a8d4;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.detail-download-btn:hover {
  background: rgba(244, 114, 182, 0.22);
  border-color: rgba(244, 114, 182, 0.55);
}
.log-browser-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(244, 114, 182, 0.1);
}
.browser-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 12px;
}
.browser-stat-card {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(244, 114, 182, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
}
.browser-stat-card img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}
.browser-stat-card span {
  display: block;
  color: #8f7f8c;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.browser-stat-card strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #f7eef2;
  font-size: 13px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr) minmax(0, 0.8fr);
  gap: 10px;
  align-items: start;
}
.browser-info-panel {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(244, 114, 182, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.012);
}
.browser-info-panel .detail-subhead { margin-top: 0; }
.browser-profile-list { display: grid; gap: 5px; }
.browser-profile-row {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
}
.browser-profile-row:last-child { border-bottom: 0; }
.browser-profile-row span {
  overflow: hidden;
  color: #d8c8d3;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser-profile-row small {
  color: #8f7f8c;
  font-size: 9px;
}
.autofill-scroll {
  max-height: 156px;
  overflow-y: auto;
  padding-right: 3px;
}
.autofill-row {
  display: grid;
  grid-template-columns: minmax(52px, 0.65fr) minmax(0, 1.35fr);
  gap: 2px 7px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
}
.autofill-row:last-child { border-bottom: 0; }
.autofill-row span {
  overflow: hidden;
  color: #cbb5c3;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.autofill-row code {
  overflow: hidden;
  color: #f9a8d4;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.autofill-row small {
  grid-column: 1 / -1;
  color: #776873;
  font-size: 8px;
}
.wallet-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-height: 156px;
  overflow-y: auto;
}
.wallet-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 5px;
  border: 1px solid rgba(244, 114, 182, 0.1);
  border-radius: 5px;
  background: rgba(244, 114, 182, 0.04);
  color: #cdb9c6;
  font-size: 9px;
}
.wallet-chip img { width: 12px; height: 12px; object-fit: contain; }
.autofill-scroll::-webkit-scrollbar,
.wallet-list::-webkit-scrollbar { width: 5px; height: 5px; }
.autofill-scroll::-webkit-scrollbar-thumb,
.wallet-list::-webkit-scrollbar-thumb { background: #543347; border-radius: 4px; }
@media (max-width: 1100px) {
  .log-detail-grid-two { grid-template-columns: 1fr 1fr; }
  .browser-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .browser-info-grid { grid-template-columns: 1fr 1fr; }
  .browser-info-panel:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .log-detail-grid-two { grid-template-columns: 1fr; }
  .browser-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .browser-info-grid { grid-template-columns: 1fr; }
  .browser-info-panel:last-child { grid-column: auto; }
}

/* Compact password block + browser bottom cards/wallets */
.log-passwords-compact {
  margin-top: 10px;
  padding-top: 9px;
}
.log-passwords-compact .detail-section-title {
  margin-bottom: 5px;
}
.log-passwords-compact .password-detail-scroll {
  max-height: 146px;
}
.log-passwords-compact .password-detail-row {
  padding: 3px 6px;
}
.log-passwords-compact .password-detail-row code {
  font-size: 10px;
}
.log-passwords-compact .password-detail-row span {
  font-size: 9px;
}
.browser-stat-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.browser-profile-panel {
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid rgba(244, 114, 182, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.012);
}
.browser-profile-panel .detail-subhead { margin-top: 0; }
.browser-profile-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px 12px;
}
.browser-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.browser-bottom-card {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(244, 114, 182, 0.12);
  border-radius: 8px;
  background: rgba(244, 114, 182, 0.025);
}
.browser-bottom-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.browser-bottom-head img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}
.browser-bottom-head span {
  color: #cdb9c6;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.browser-bottom-head strong {
  margin-left: auto;
  color: #f9a8d4;
  font-size: 12px;
}
.browser-bottom-card .wallet-list {
  max-height: 120px;
}
.browser-bottom-card .detail-muted {
  font-size: 10px;
}
@media (max-width: 1100px) {
  .browser-stat-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .browser-profile-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .browser-profile-list { grid-template-columns: 1fr; }
  .browser-bottom-grid { grid-template-columns: 1fr; }
}

/* Browser first + profiles/passwords side by side */
.log-browser-section {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(244, 114, 182, 0.1);
}
.browser-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}
.browser-main-grid .browser-profile-panel {
  margin-bottom: 0;
}
.browser-main-grid .browser-profile-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.browser-password-panel {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(244, 114, 182, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.012);
}
.browser-password-panel .detail-subhead {
  margin-top: 0;
}
.browser-password-scroll {
  max-height: 154px;
}
.browser-password-scroll .password-detail-row {
  padding: 3px 6px;
}
.browser-password-scroll .password-detail-row code {
  font-size: 10px;
}
.browser-password-scroll .password-detail-row span {
  font-size: 9px;
}
.browser-bottom-grid {
  margin-top: 10px;
}
@media (max-width: 900px) {
  .browser-main-grid { grid-template-columns: 1fr; }
}

/* Discord injection (password / 2FA events) */
.log-injection-section {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(244, 114, 182, 0.1);
}
.injection-list {
  display: grid;
  gap: 7px;
}
.injection-card {
  padding: 8px;
  border: 1px solid rgba(244, 114, 182, 0.12);
  border-radius: 8px;
  background: rgba(244, 114, 182, 0.025);
}
.injection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.injection-title {
  color: #f9a8d4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.injection-head time {
  color: #8f7f8c;
  font-size: 8px;
  white-space: nowrap;
}
.injection-fields {
  display: grid;
  gap: 4px;
}
.injection-field {
  display: grid;
  grid-template-columns: minmax(58px, 0.7fr) minmax(0, 1.8fr) auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.injection-field > span {
  color: #8f7f8c;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.injection-field code {
  overflow: hidden;
  color: #d8c8d3;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.injection-secret code {
  color: #f9a8d4;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.injection-field .detail-copy {
  padding: 2px 5px;
  font-size: 8px;
}

/* Badges on rare/HQ friends */
.hq-chip {
  flex-wrap: wrap;
}
.hq-badges {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
}
.hq-badges .badge-chip {
  padding: 1px 4px;
  font-size: 8px;
}
.hq-badges .badge-chip img {
  width: 12px;
  height: 12px;
}

/* Badge chips are icon-only */
.badge-chip {
  padding: 3px;
  gap: 0;
}
.badge-chip img {
  width: 16px;
  height: 16px;
}
.hq-badges .badge-chip {
  padding: 2px;
}
