/* ==========================================
   WIDGET STUDIO STYLES
   ========================================== */
.picker-bar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  flex: 1;
  min-width: 260px;
  max-width: 440px;
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.search-box input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  width: 100%;
  outline: none;
}

.suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #141c2f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.7);
  z-index: 300;
  max-height: 280px;
  overflow-y: auto;
  display: none;
  padding: 0.3rem;
}

.suggestions.open {
  display: block;
}

.sug-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.48rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
}

.sug-item:hover {
  background: rgba(240, 207, 123, 0.14);
}

.obs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(350px, 0.95fr);
  gap: 1.25rem;
  align-items: start;
}

.preview-col {
  position: sticky;
  top: 84px;
}

.preview-stage {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-height: 290px;
  display: flex;
  padding: 2rem 1.35rem 1.35rem;
  overflow: auto;
  position: relative;
  transition: background 0.2s ease;
}

.preview-stage.bg-checker {
  background-color: #161b26;
  background-image:
    linear-gradient(45deg, #212938 25%, transparent 25%),
    linear-gradient(-45deg, #212938 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #212938 75%),
    linear-gradient(-45deg, transparent 75%, #212938 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

.preview-stage.bg-dark {
  background: linear-gradient(135deg, #0b1220 0%, #17233a 55%, #0f172a 100%);
}

.preview-stage.bg-light {
  background: linear-gradient(135deg, #cbd5e1 0%, #e2e8f0 100%);
}

.preview-fit-frame {
  margin: auto;
  position: relative;
  flex-shrink: 0;
  overflow: visible;
}

.preview-fit-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  background: rgba(11, 16, 28, 0.88);
  border: 1px solid rgba(240, 207, 123, 0.38);
  color: var(--accent);
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.15s ease;
}

.preview-fit-badge:hover {
  background: rgba(18, 25, 42, 0.96);
  border-color: var(--accent);
}

#obs-preview-iframe {
  border: none;
  background: transparent;
  display: block;
  transform-origin: top left;
}

.controls-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 28px -10px rgba(0, 0, 0, 0.45);
}

.ctrl-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border);
  padding: 0.35rem;
  gap: 0.3rem;
}

.ctrl-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.48rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.ctrl-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.ctrl-tab.active {
  background: var(--panel-bg);
  color: var(--accent);
  border-color: rgba(240, 207, 123, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.ctrl-body {
  padding: 1.05rem 1.15rem;
}

.ctrl-pane {
  display: none;
  flex-direction: column;
  gap: 1.1rem;
}

.ctrl-pane.active {
  display: flex;
}

.ctrl-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ctrl-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ctrl-group .pill-btn {
  flex: 1;
}

/* Theme Swatches */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.theme-swatch {
  background: rgba(17, 24, 39, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.16s ease;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.theme-swatch:hover {
  border-color: rgba(240, 207, 123, 0.3);
  color: #fff;
  transform: translateY(-1px);
}

.theme-swatch.active {
  border-color: rgba(240, 207, 123, 0.45);
  background: linear-gradient(135deg, rgba(240, 207, 123, 0.12) 0%, rgba(23, 32, 51, 0.88) 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25), 0 0 12px rgba(240, 207, 123, 0.08);
}

.swatch-dots {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
}

.swatch-dot + .swatch-dot {
  margin-left: -5px;
}

/* Custom Colors */
.color-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.color-box {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.color-box span {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
}

.color-box-inner {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.color-box input[type="color"] {
  width: 26px;
  height: 24px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

.color-hex {
  font-family: ui-monospace, monospace;
  font-size: 0.74rem;
  color: var(--text);
}

.slider-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.slider-input {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Stat Chips */
.active-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-height: 32px;
  padding: 0.45rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed var(--border);
  border-radius: 8px;
}

.active-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(240, 207, 123, 0.14);
  border: 1px solid rgba(240, 207, 123, 0.35);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.22rem 0.5rem;
  border-radius: 6px;
}

.stat-pill-btn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
  opacity: 0.8;
  padding: 0 2px;
}

.stat-pill-btn:hover {
  opacity: 1;
}

.stats-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.stat-option {
  background: rgba(17, 24, 39, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  transition: all 0.16s ease;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-option:hover {
  border-color: rgba(240, 207, 123, 0.3);
  background: rgba(23, 32, 51, 0.85);
  transform: translateY(-1px);
}

.stat-option.selected {
  border-color: rgba(240, 207, 123, 0.45);
  background: linear-gradient(135deg, rgba(240, 207, 123, 0.12) 0%, rgba(23, 32, 51, 0.88) 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25), 0 0 12px rgba(240, 207, 123, 0.08);
}

.stat-option-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.stat-option-desc {
  font-size: 0.68rem;
  color: var(--text-dim);
}

/* Forum Role Picker */
.role-picker-box {
  display: none;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.25rem;
  padding: 0.72rem 0.85rem;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(167, 139, 250, 0.26);
  border-radius: 10px;
}

.role-picker-box.visible {
  display: flex;
}

.role-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.role-picker-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #e9d5ff;
  letter-spacing: 0.02em;
}

.role-budget-pill {
  font-size: 0.67rem;
  font-weight: 700;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(167, 139, 250, 0.35);
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
}

.active-roles-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  min-height: 30px;
  padding: 0.4rem;
  background: rgba(0, 0, 0, 0.24);
  border: 1px dashed rgba(167, 139, 250, 0.28);
  border-radius: 8px;
  align-items: center;
}

.active-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(167, 139, 250, 0.42);
  color: #e9d5ff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.48rem;
  border-radius: 6px;
}

.roles-catalog {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.role-option {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 0.38rem 0.62rem;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
}

.role-option:hover {
  border-color: rgba(167, 139, 250, 0.45);
  color: #fff;
  background: rgba(30, 27, 54, 0.85);
}

.role-option.selected {
  border-color: rgba(167, 139, 250, 0.55);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.24) 0%, rgba(23, 32, 51, 0.9) 100%);
  color: #f3e8ff;
  font-weight: 700;
}

.role-option.at-cap {
  opacity: 0.48;
}

.role-option-kind {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.08rem 0.34rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}

.role-option.selected .role-option-kind {
  background: rgba(167, 139, 250, 0.25);
  color: #ddd6fe;
}

.role-picker-empty {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.45;
}

/* Toggle Switch Cards */
.toggles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.toggle-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.58rem 0.75rem;
  background: rgba(17, 24, 39, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-card:hover {
  background: rgba(23, 32, 51, 0.9);
  border-color: rgba(240, 207, 123, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.toggle-card:has(input:checked),
.toggle-card.is-checked {
  background: linear-gradient(135deg, rgba(240, 207, 123, 0.12) 0%, rgba(23, 32, 51, 0.88) 100%);
  border-color: rgba(240, 207, 123, 0.45);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 14px rgba(240, 207, 123, 0.08);
}

.toggle-card-hero {
  background: rgba(240, 207, 123, 0.06);
  border-color: rgba(240, 207, 123, 0.25);
}

.toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.toggle-card-content {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  flex: 1;
}

.toggle-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  transition: all 0.18s ease;
}

.toggle-card:hover .toggle-icon-wrap {
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.12);
}

.toggle-card:has(input:checked) .toggle-icon-wrap,
.toggle-card.is-checked .toggle-icon-wrap {
  background: rgba(240, 207, 123, 0.18);
  border-color: rgba(240, 207, 123, 0.35);
  color: var(--accent);
}

.toggle-text-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.toggle-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.18s ease;
}

.toggle-card:has(input:checked) .toggle-title,
.toggle-card.is-checked .toggle-title {
  color: #ffffff;
  font-weight: 700;
}

.toggle-switch-track {
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #94a3b8;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.toggle-card:has(input:checked) .toggle-switch-track,
.toggle-card.is-checked .toggle-switch-track {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(240, 207, 123, 0.35);
}

.toggle-card:has(input:checked) .toggle-switch-thumb,
.toggle-card.is-checked .toggle-switch-thumb {
  transform: translateX(14px);
  background: #090e18;
}

.toggle-card.is-unsupported {
  opacity: 0.44;
  pointer-events: none;
  filter: grayscale(0.35);
}

.unsupported-tag {
  font-size: 0.62rem;
  font-weight: 700;
  color: #94a3b8;
  margin-top: 1px;
  letter-spacing: 0.02em;
}

.ctrl-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.hud-presets-toolbar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hud-counter-pill {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(240, 207, 123, 0.12);
  border: 1px solid rgba(240, 207, 123, 0.28);
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
}

.hud-preset-btns {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 2px;
  gap: 2px;
}

.btn-micro {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.18rem 0.45rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.btn-micro:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hud-groups-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.2rem;
}

.hud-subgroup {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hud-subgroup-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.69rem;
  letter-spacing: 0.04em;
}

.subgroup-tag {
  font-weight: 800;
  text-transform: uppercase;
  color: #cbd5e1;
  font-size: 0.66rem;
  padding: 0.1rem 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.subgroup-hint {
  color: var(--text-dim);
  font-size: 0.67rem;
}

/* Branding & Mini-Map Boxes */
.branding-box {
  background: rgba(13, 19, 34, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.branding-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: opacity 0.15s ease;
}

.branding-options.disabled {
  opacity: 0.42;
  pointer-events: none;
}

.brand-version-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.brand-version-btn {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.14s ease;
}

.brand-version-btn:hover {
  border-color: #3d527d;
}

.brand-version-btn.active {
  border-color: var(--accent);
  background: rgba(240, 207, 123, 0.12);
}

.brand-version-preview {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-version-preview img {
  max-height: 22px;
  max-width: 110px;
  object-fit: contain;
  display: block;
}

.brand-version-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

.brand-version-btn.active .brand-version-name {
  color: #fff;
}

/* URL Bar & Preview Disclaimer */
.url-box {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  margin-top: 0.85rem;
}

.url-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  color: #38bdf8;
  overflow-x: auto;
  white-space: nowrap;
  flex: 1;
  user-select: all;
  scrollbar-width: none;
}

.url-code::-webkit-scrollbar {
  display: none;
}

.preview-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.55rem;
  flex-wrap: wrap;
}

.preview-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 0.32rem 0.65rem;
  border-radius: 7px;
  cursor: pointer;
  user-select: none;
}

.preview-toggle-pill:hover {
  border-color: #3d527d;
  color: #fff;
}

.preview-toggle-pill input {
  accent-color: #f59e0b;
  cursor: pointer;
}

.preview-disclaimer {
  display: none;
  margin-top: 0.55rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.11);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
  font-size: 0.75rem;
  line-height: 1.45;
}

.preview-disclaimer.visible {
  display: block;
}

.preview-disclaimer strong {
  color: #fbbf24;
}

/* Badges Grid */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 0.85rem;
}

.badge-item {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.badge-item-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.badge-item-desc {
  font-size: 0.74rem;
  color: var(--text-dim);
}

.badge-preview-box {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  min-height: 46px;
  display: flex;
  align-items: center;
}

.badge-preview-box img {
  max-width: 100%;
  height: auto;
  display: block;
}

.badge-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* User Stream Key Bar */
.user-stream-bar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.user-identity-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.driver-avatar-mini {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--panel-bg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.driver-avatar-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stream-key-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stream-key-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stream-key-input-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.stream-key-input-row input {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  padding: 0.4rem 0.65rem;
  width: 230px;
  letter-spacing: 0.08em;
}

.dev-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  text-transform: uppercase;
}

@media (max-width: 1020px) {
  .obs-grid {
    grid-template-columns: 1fr;
  }
  .preview-col {
    position: static;
  }
}

@media (max-width: 760px) {
  .picker-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .search-box {
    width: 100%;
    max-width: none;
  }
  .user-stream-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .stream-key-input-row {
    width: 100%;
  }
  .stream-key-input-row input {
    width: 100%;
    min-width: 0;
  }
  .url-box {
    flex-direction: column;
    align-items: stretch;
  }
  .url-box-actions {
    display: flex;
    gap: 0.4rem;
    width: 100%;
  }
  .url-box-actions .btn {
    flex: 1;
  }
  .ctrl-tabs {
    overflow-x: auto;
    white-space: nowrap;
  }
  .badges-grid,
  .toggles-grid,
  .stats-catalog,
  .theme-grid,
  .slider-grid {
    grid-template-columns: 1fr;
  }
  input[type="text"],
  input[type="search"],
  input[type="password"] {
    font-size: 16px;
  }
}

