/* Retained from the removed legacy dashboard block because current host markup still uses them. */
.pad-tab-panel {
  display: grid;
  gap: 16px;
}

.drawer-toggle-grid {
  display: grid;
  gap: 10px;
}

.toolbar-add-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 9px;
  height: 9px;
  opacity: 0.74;
  font-size: 0;
  transform: translateY(1px);
}

.toolbar-add-caret::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.35px solid currentColor;
  border-bottom: 1.35px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

/* STREAMPAD FINAL REFERENCE LOCK - appended 2026-04-29T15:36:06.843Z */
/* ============================================================ */

/* STREAMPAD REFERENCE LOCK - Part 1: Variables, Body, Layout */
:root {
  --bg-primary: #080D18;
  --bg-secondary: #111827;
  --bg-tertiary: #161B2A;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.14);
  --border-strong: rgba(255,255,255,0.12);
  --text-primary: #EEF2FF;
  --text-secondary: #9CA3AF;
  --accent-pink: #FF2D8D;
  --accent-pink-hover: #FF4DA6;
  --accent-purple: #8D5CF6;
  --accent-blue: #38BDF8;
  --accent-green: #22C55E;
  --danger: #FF3B5C;
  --warning: #FF8A00;
}

body {
  font-family: var(--app-font-sans);
  font-size: 14px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,45,141,0.12), transparent 28%),
    radial-gradient(circle at 75% 10%, rgba(56,130,246,0.10), transparent 30%),
    linear-gradient(180deg, #070B14 0%, #0A1020 100%);
  color: #EEF2FF;
  min-width: 1100px;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 264px minmax(0,1fr);
  gap: 14px;
  padding: 14px;
  max-width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 14px;
  align-self: start;
  height: calc(100vh - 28px);
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}


/* STREAMPAD REFERENCE LOCK - Part 2: Sidebar */
.brand-panel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at 14% 50%, rgba(255,45,141,0.20), transparent 48%),
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)),
    rgba(14,18,30,0.96);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 18px 44px rgba(0,0,0,0.30);
  overflow: hidden;
}

.brand-panel::after {
  content: "";
  position: absolute;
  top: -16px;
  left: 6px;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(255,45,141,0.30), transparent 70%);
  filter: blur(16px);
  pointer-events: none;
  z-index: 0;
}

.brand-panel > * { position: relative; z-index: 1; }

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #FF2D8D, #FF4DA6 55%, #8D5CF6);
  color: white;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 14px 28px rgba(255,45,141,0.26), 0 0 28px rgba(255,45,141,0.16);
}

.brand-mark svg { width: 22px; height: 22px; display: block; }

.brand-copy { display: flex; flex-direction: column; gap: 2px; }

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title-row h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #EEF2FF;
}

.version-pill {
  font-size: 10px;
  font-weight: 700;
  color: #8c86aa;
  background: transparent;
  border: none;
  padding: 0;
  letter-spacing: 0.02em;
}

.sidebar-nav, .sidebar-panel {
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.012)),
    rgba(14,18,30,0.96);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.025), 0 16px 40px rgba(0,0,0,0.28);
}

.sidebar-nav .label, .sidebar-panel .label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8f88aa;
  margin-bottom: 8px;
}

.sidebar-nav-list { display: flex; flex-direction: column; gap: 4px; }

.sidebar-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 11px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #c0b8d8;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: all 160ms ease;
  width: 100%;
}

.sidebar-nav-btn:hover {
  background: rgba(255,255,255,0.04);
  color: #EEF2FF;
}

.sidebar-nav-btn.is-active {
  color: #FF9CCF;
  border-color: rgba(255,45,141,0.35);
  background: linear-gradient(90deg, rgba(255,45,141,0.28), rgba(255,45,141,0.06));
  box-shadow:
    inset 3px 0 0 #FF2D8D,
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 10px 24px rgba(255,45,141,0.08);
}

.sidebar-nav-icon {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-nav-icon svg, .category-item-icon svg, .btn-icon svg, .search-shell-icon svg, .theme-select-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sidebar-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sidebar-panel-head strong {
  font-size: 12px;
  font-weight: 800;
  color: #d4cce8;
}

.dashboard-category-list { display: flex; flex-direction: column; gap: 5px; }

.dashboard-category-list .category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.018);
  font-size: 11.5px;
  font-weight: 700;
  color: #c4bcd8;
  cursor: pointer;
  transition: all 160ms ease;
  width: 100%;
  text-align: left;
}

.category-item-leading {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  overflow: hidden;
}

.category-item-icon { width: 14px; height: 14px; color: #b8b0cc; flex-shrink: 0; }

.category-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-item-count { color: #a79ab7; font-size: 10px; font-weight: 600; flex-shrink: 0; }

.dashboard-category-list .category-item:hover {
  background: rgba(255,255,255,0.04);
  color: #EEF2FF;
}

.category-item.active {
  color: #FF9CCF !important;
  background: linear-gradient(90deg, rgba(255,45,141,0.24), rgba(255,45,141,0.06)) !important;
  border-color: rgba(255,45,141,0.30) !important;
  box-shadow: inset 3px 0 0 #FF2D8D, inset 0 1px 0 rgba(255,255,255,0.03);
}

.volume-value { font-size: 11px; font-weight: 800; color: #EEF2FF; }

.theme-select-shell { position: relative; display: block; }

.theme-select-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: #b8b2cc;
  pointer-events: none;
}

.sidebar-theme-select {
  width: 100%;
  min-height: 40px;
  padding: 0 12px 0 36px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(9,8,18,0.96);
  color: #EEF2FF;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  appearance: none;
}


