.demo-embed {
  --demo-bg: #0b0d12;
  --demo-panel: rgba(255, 255, 255, 0.03);
  --demo-border: rgba(255, 255, 255, 0.10);
  --demo-border-2: rgba(255, 255, 255, 0.14);
  --demo-text: rgba(255, 255, 255, 0.92);
  --demo-muted: rgba(255, 255, 255, 0.62);

  --ac1: #9d4edd;
  --ac2: #c77dff;

  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--demo-text);
  margin-top: 1rem;
}

.demo-embed * {
  box-sizing: border-box;
  font-family: inherit;
}

.demo-embed button {
  font: inherit;
}

.demo-embed .demo-shell {
  border-radius: 24px;
  border: 1px solid rgba(157, 78, 221, 0.2);
  background:
              radial-gradient(ellipse 80% 50% at 20% -20%, rgba(157, 78, 221, 0.12) 0%, transparent 50%),
              radial-gradient(ellipse 60% 40% at 80% 110%, rgba(124, 58, 237, 0.06) 0%, transparent 50%),
              linear-gradient(180deg, rgba(15,15,22,1), rgba(11,13,18,1));
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(157, 78, 221, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.3),
    0 8px 24px rgba(157, 78, 221, 0.1),
    0 16px 48px rgba(124, 58, 237, 0.12);
  overflow: hidden;
  contain: layout style paint;
  transform: translateZ(0);
  will-change: transform;
}

.demo-embed .demo-window {
  display: flex;
  flex-direction: column;
  min-height: 760px;
  background: rgba(11,13,18,.98);
  contain: layout style;
}

.demo-embed .demo-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--demo-border);
  background: linear-gradient(180deg, rgba(15,18,26,.92), rgba(11,13,18,.88));
}

.demo-embed .demo-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--demo-text);
}

.demo-embed .demo-gem {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ac1), var(--ac2));
  box-shadow: 0 0 0 4px rgba(255,255,255,.04), 0 0 22px rgba(157, 78, 221, 0.22);
}

.demo-embed .demo-win {
  display: inline-flex;
  gap: 6px;
}

.demo-embed .demo-sysbtn {
  width: 34px;
  height: 28px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--demo-border);
  border-radius: 10px;
  cursor: default;
  padding: 0;
}

.demo-embed .demo-main {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 710px;
}

.demo-embed .demo-sidebar {
  border-right: 1px solid var(--demo-border);
  background: rgba(8, 10, 14, 0.85);
  padding: 14px;
}

.demo-embed .demo-user {
  background: rgba(255,255,255,.02);
  border: 1px solid var(--demo-border);
  border-radius: 14px;
  padding: 12px 12px;
  margin-bottom: 12px;
}

.demo-embed .demo-user-name {
  font-weight: 600;
  color: var(--demo-text);
  margin-bottom: 4px;
}

.demo-embed .demo-user-expire {
  font-size: 12px;
  color: var(--demo-muted);
}

.demo-embed .demo-nav {
  display: grid;
  gap: 8px;
  contain: layout style;
}

.demo-embed .demo-navbtn {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: rgba(255,255,255,.84);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  min-height: 42px;
}

.demo-embed .demo-navbtn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120px 120px at var(--x, -40px) var(--y, -40px), rgba(157, 78, 221, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
  will-change: opacity;
  transform: translateZ(0);
  contain: layout style paint;
}

.demo-embed .demo-navbtn:hover {
  transform: translateY(-1px);
}

.demo-embed .demo-navbtn:hover::before {
  opacity: 1;
}

.demo-embed .demo-navbtn.active {
  background: linear-gradient(180deg, rgba(157, 78, 221, 0.16), rgba(157, 78, 221, 0.09));
  border-color: rgba(157, 78, 221, 0.35);
  box-shadow: 0 6px 26px rgba(157, 78, 221, 0.25);
}

.demo-embed .demo-nav-icon {
  min-width: 30px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: radial-gradient(55% 55% at 30% 30%, rgba(255, 255, 255, 0.06), transparent);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 0 10px rgba(157, 78, 221, 0.15);
}

.demo-embed .demo-nav-icon::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  background: conic-gradient(from 0deg, rgba(157, 78, 221, 0), rgba(157, 78, 221, 0.5), rgba(124, 58, 237, 0) 70%);
  box-shadow: 0 0 12px rgba(157, 78, 221, 0.6), 
              0 0 24px rgba(157, 78, 221, 0.3);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  will-change: transform, opacity;
  transform: translateZ(0);
}

.demo-embed .demo-navbtn:hover .demo-nav-icon::after {
  opacity: 0.9;
}

.demo-embed .demo-navbtn.active .demo-nav-icon::after {
  opacity: 1;
  animation: demo-orbit 2.2s linear infinite;
}

@keyframes demo-orbit {
  to { 
    transform: rotate(360deg);
  }
}

.demo-embed .demo-navbtn.active .demo-nav-icon::after {
  will-change: transform;
}

.demo-embed .demo-nav-icon svg {
  width: 20px;
  height: 20px;
}

.demo-embed .demo-nav-title {
  font-weight: 600;
  font-size: 14px;
}

.demo-embed .demo-nav-sep {
  height: 1px;
  background: var(--demo-border);
  margin: 6px 0;
  opacity: 0.8;
}

.demo-embed .demo-content {
  padding: 18px;
}

.demo-embed .demo-tab {
  display: none;
}

.demo-embed .demo-tab.active {
  display: block;
}

.demo-embed .demo-tab.view--orbitdeck {
  display: none;
}

.demo-embed .demo-tab.view--orbitdeck.active {
  display: flex !important;
}

.demo-embed .demo-placeholder {
  border-radius: 16px;
  border: 1px dashed rgba(199, 125, 255, 0.35);
  background: rgba(255,255,255,.02);
  min-height: 420px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.88);
  font-weight: 600;
}

@media (max-width: 900px) {
  .demo-embed .demo-main {
    grid-template-columns: 1fr;
  }

  .demo-embed .demo-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--demo-border);
  }

  .demo-embed .demo-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.demo-embed .demo-subs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.demo-embed .demo-subs-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
}

.demo-embed .demo-subs-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-embed .demo-subs-title-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--demo-muted);
}

.demo-embed .demo-subs-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.demo-embed .demo-subs-title p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--demo-muted);
}

.demo-embed .demo-subs-kpis {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-embed .demo-subs-kpi {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--demo-border);
  font-size: 12px;
}

.demo-embed .demo-subs-kpi svg {
  color: var(--demo-muted);
}

.demo-embed .demo-subs-kpi b {
  font-weight: 700;
}

.demo-embed .demo-subs-kpi span {
  color: var(--demo-muted);
}

.demo-embed .demo-subs-help {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--demo-border);
  background: transparent;
  color: var(--demo-muted);
  font-size: 14px;
  font-weight: 700;
  cursor: default;
  display: grid;
  place-items: center;
}

/* Column Headers */
.demo-embed .demo-subs-headers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.demo-embed .demo-subs-col-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--demo-muted);
  padding: 4px 0;
}

.demo-embed .demo-subs-col-header svg {
  color: var(--demo-muted);
}

/* Layout */
.demo-embed .demo-subs-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  flex: 1;
  min-height: 0;
}

.demo-embed .demo-subs-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

/* Cards */
.demo-embed .demo-subs-card {
  border-radius: 12px;
  border: 1px solid var(--demo-border);
  background: 
    radial-gradient(120% 140% at 15% -10%, rgba(157, 78, 221, 0.06) 0%, transparent 60%),
    rgba(11, 13, 18, 0.95);
  overflow: hidden;
}

.demo-embed .demo-subs-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-embed .demo-subs-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.demo-embed .demo-subs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--ac2), var(--ac1));
  box-shadow: 0 0 8px var(--ac1);
  flex-shrink: 0;
}

.demo-embed .demo-subs-card-title {
  font-size: 13px;
  font-weight: 700;
}

.demo-embed .demo-subs-card-body {
  padding: 12px 14px;
}

/* Buttons */
.demo-embed .demo-subs-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--demo-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--demo-text);
  font-size: 12px;
  font-weight: 500;
  cursor: default;
}

.demo-embed .demo-subs-btn svg {
  flex-shrink: 0;
}

.demo-embed .demo-subs-btn-primary {
  background: linear-gradient(180deg, rgba(157, 78, 221, 0.35), rgba(124, 58, 237, 0.30));
  border-color: rgba(157, 78, 221, 0.5);
}

.demo-embed .demo-subs-btn-stop {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--demo-border);
}

.demo-embed .demo-subs-btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  justify-content: center;
  border-radius: 10px;
  background: #0e1018;
  border: 1px solid var(--demo-border);
  color: rgba(255, 255, 255, 0.92);
}


/* Radio Group */
.demo-embed .demo-subs-radio {
  display: flex;
  gap: 4px;
}

.demo-embed .demo-subs-radio-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--demo-border);
  background: transparent;
  font-size: 12px;
  color: var(--demo-muted);
}

.demo-embed .demo-subs-radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: transparent;
}

.demo-embed .demo-subs-radio-item.active {
  color: var(--demo-text);
}

.demo-embed .demo-subs-radio-item.active .demo-subs-radio-dot {
  border-color: transparent;
  background: radial-gradient(circle at 50% 50%, var(--ac2), var(--ac1));
  box-shadow: 0 0 6px rgba(157, 78, 221, 0.5);
}

/* Form Fields */
.demo-embed .demo-subs-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.demo-embed .demo-subs-field:last-child {
  margin-bottom: 0;
}

.demo-embed .demo-subs-label {
  font-size: 11px;
  color: var(--demo-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.demo-embed .demo-subs-label-bold {
  font-size: 14px;
  font-weight: 700;
  color: var(--demo-text);
}

.demo-embed .demo-subs-input {
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--demo-border);
  background: #0e1018;
  color: #fff;
  font-size: 13px;
  width: 100%;
}

.demo-embed .demo-subs-input[readonly] {
  cursor: default;
  caret-color: transparent;
}

.demo-embed .demo-subs-input[readonly]:focus,
.demo-embed .demo-subs-input[readonly]:focus-visible {
  outline: none;
  box-shadow: none;
  border-color: var(--demo-border);
}

.demo-embed .demo-subs-input::placeholder {
  color: var(--demo-muted);
}

.demo-embed .demo-subs-input-wrap {
  display: flex;
  gap: 8px;
}

.demo-embed .demo-subs-input-wrap .demo-subs-input {
  flex: 1;
}

.demo-embed .demo-subs-select-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--demo-border);
  background: #0e1018;
  font-size: 13px;
  color: #fff;
}

.demo-embed .demo-subs-select-wrap svg {
  color: var(--ac2);
}

.demo-embed .demo-subs-hint {
  font-size: 12px;
  color: var(--demo-muted);
}

/* Launch Grid */
.demo-embed .demo-subs-launch-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: start;
}

/* Orbit Progress */
.demo-embed .demo-subs-orbit {
  position: relative;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
}

.demo-embed .demo-subs-orbit svg {
  width: 100%;
  height: 100%;
}

.demo-embed .demo-subs-orbit-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 10;
}

.demo-embed .demo-subs-orbit-prog {
  fill: none;
  stroke: url(#demo-subs-grad);
  stroke-width: 10;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.demo-embed .demo-subs-orbit-val {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 23px;
  font-weight: 800;
  color: var(--demo-muted);
}

/* Launch Controls */
.demo-embed .demo-subs-launch-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-embed .demo-subs-row-btns {
  display: flex;
  gap: 8px;
}

.demo-embed .demo-subs-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.demo-embed .demo-subs-status span:first-child {
  color: var(--demo-muted);
}

.demo-embed .demo-subs-status-text {
  color: var(--demo-text);
}

/* Progress Bar */
.demo-embed .demo-subs-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.demo-embed .demo-subs-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ac1), var(--ac2));
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* Metrics */
.demo-embed .demo-subs-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.demo-embed .demo-subs-metric {
  text-align: center;
  padding: 8px 4px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--demo-border);
  border-radius: 8px;
}

.demo-embed .demo-subs-metric span {
  font-size: 11px;
  color: var(--demo-muted);
  display: block;
}

.demo-embed .demo-subs-metric b {
  font-size: 18px;
  font-weight: 700;
  display: block;
  margin-top: 2px;
}

.demo-embed .demo-subs-metric b.success {
  color: #ffffff;
}

.demo-embed .demo-subs-metric b.error {
  color: #ffffff;
}

.demo-embed .demo-subs-radio-item {
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.demo-embed .demo-subs-radio-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.demo-embed .demo-subs-sliders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.demo-embed .demo-subs-slider-wrap {
  display: flex;
  flex-direction: column;
}

.demo-embed .demo-subs-slider-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.demo-embed .demo-subs-slider-head svg {
  color: var(--demo-muted);
}

.demo-embed .demo-subs-slider-head b {
  margin-left: auto;
  color: var(--ac2);
  font-weight: 700;
}

.demo-embed .demo-subs-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  margin-top: 8px;
  --fill: 0%;
  cursor: pointer;
}


.demo-embed .demo-subs-range::-webkit-slider-runnable-track {
  height: 6px;
  background: linear-gradient(90deg, var(--ac1), var(--ac2)) 0/var(--fill, 0%) 100% no-repeat,
              rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.demo-embed .demo-subs-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-top: -6px;
  background: radial-gradient(120% 140% at 30% 20%, var(--ac1), var(--ac2));
  box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.2), 0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.demo-embed .demo-subs-range::-moz-range-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.demo-embed .demo-subs-range::-moz-range-progress {
  height: 6px;
  background: linear-gradient(90deg, var(--ac1), var(--ac2));
  border-radius: 999px;
}

.demo-embed .demo-subs-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: radial-gradient(120% 140% at 30% 20%, var(--ac1), var(--ac2));
  box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.2), 0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

@media (max-width: 800px) {
  .demo-embed .demo-subs-layout,
  .demo-embed .demo-subs-headers {
    grid-template-columns: 1fr;
  }
  
  .demo-embed .demo-subs-launch-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  
  .demo-embed .demo-subs-metrics {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .demo-embed .demo-subs-sliders {
    grid-template-columns: 1fr;
  }
  
  .demo-embed .demo-subs-kpis {
    display: none;
  }
  
  .demo-embed .demo-subs-card-header {
    flex-wrap: wrap;
  }
  
  .demo-embed .demo-subs-card-actions {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
  }
}

.demo-embed .demo-nav-sep{
  height: 26px;
  background: transparent;
  margin: 0;
  position: relative;
}

.demo-embed .demo-nav-sep::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 1px;
  background: var(--demo-border);
  opacity: 0.8;
}

.demo-embed .demo-navbtn-logout {
  justify-content: stretch;
  justify-items: start;
}

.demo-embed .demo-navbtn-logout .demo-nav-title {
  justify-self: start;
  text-align: left;
}

/* ==========================================
   TAB-WORK (DM Sender) STYLES
   ========================================== */

.demo-embed .view--orbitdeck, .demo-embed .view--orbitdeck * { box-sizing: border-box; min-width: 0; }
.demo-embed .view--orbitdeck {
  --bg: #0b0d12;
  --edge: rgba(255,255,255,.08);
  --txt: #e6e8ee;
  --muted: #98a2b3;
  --ac1: #7c3aed;
  --ac2: #9d4edd;
  color: var(--txt);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.demo-embed .view--orbitdeck input[type=file] { display: none !important; }

.demo-embed .view--orbitdeck .od-topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
}

.demo-embed .view--orbitdeck .od-title {
  display: flex;
  gap: 12px;
  align-items: center;
}

.demo-embed .view--orbitdeck .od-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.demo-embed .view--orbitdeck .od-title p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.demo-embed .view--orbitdeck .od-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-embed .view--orbitdeck .od-kpis {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.demo-embed .view--orbitdeck .od-kpi {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--edge);
  font-size: 12px;
}

.demo-embed .view--orbitdeck .od-kpi b { font-weight: 800; }
.demo-embed .view--orbitdeck .od-kpi span { color: var(--muted); }

.demo-embed .view--orbitdeck .od-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--edge);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .25s ease, border-color .2s ease;
}

.demo-embed .view--orbitdeck .od-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac1) 18%, transparent);
  border-color: color-mix(in srgb, #fff 18%, var(--edge));
}

.demo-embed .view--orbitdeck .od-btn:active { transform: translateY(0); }

.demo-embed .view--orbitdeck .od-btn.od-icon {
  padding: 8px;
  width: 40px;
  justify-content: center;
}

.demo-embed .view--orbitdeck .od-btn.od-primary {
  background: linear-gradient(180deg, rgba(157, 78, 221, 0.35), rgba(124, 58, 237, 0.30));
  border-color: rgba(157, 78, 221, 0.5);
}

.demo-embed .view--orbitdeck .od-btn.od-help {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--edge);
}

.demo-embed .view--orbitdeck .od-help-q {
  font-size: 16px;
  font-weight: 800;
}

.demo-embed .view--orbitdeck .od-layout {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: 520px 1fr;
  grid-template-rows: 1fr;
  padding: 8px 16px 16px;
}

.demo-embed .view--orbitdeck .od-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  overflow: auto;
  padding-bottom: 2px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.demo-embed .view--orbitdeck .od-group-h {
  padding: 8px 4px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: .9;
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 92%, #0a0f18), transparent);
  z-index: 1;
}

.demo-embed .view--orbitdeck .od-card {
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: 
    radial-gradient(120% 140% at 15% -10%, rgba(157, 78, 221, 0.06) 0%, transparent 60%),
    rgba(11, 13, 18, 0.95);
  overflow: hidden;
}

.demo-embed .view--orbitdeck .od-card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.demo-embed .view--orbitdeck .od-card-h .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--ac2), var(--ac1));
  box-shadow: 0 0 8px var(--ac1);
}

.demo-embed .view--orbitdeck .od-card-b {
  padding: 10px 12px;
}

.demo-embed .view--orbitdeck .od-radio {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.demo-embed .view--orbitdeck .od-radio label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: #0b0d14;
  cursor: pointer;
}

.demo-embed .view--orbitdeck .od-radio span {
  font-size: 12px;
}

.demo-embed .view--orbitdeck .od-radio input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
}

.demo-embed .view--orbitdeck .od-radio label i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.45);
  background: transparent;
  box-shadow: none;
}

.demo-embed .view--orbitdeck .od-radio input[type="radio"]:checked + i {
  border-color: transparent;
  background: radial-gradient(circle at 50% 50%, var(--ac2), var(--ac1));
  box-shadow: 0 0 6px color-mix(in srgb, var(--ac1) 55%, transparent);
}

.demo-embed .view--orbitdeck .od-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-embed .view--orbitdeck .od-label {
  font-size: 12px;
  color: var(--muted);
}

.demo-embed .view--orbitdeck .od-input {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--edge);
  background: #0e1018;
  color: #fff;
  outline: none;
}

.demo-embed .view--orbitdeck .od-input:focus {
  border-color: var(--ac1);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac1) 22%, transparent);
}

.demo-embed .view--orbitdeck .od-input.error {
  border-color: #ef4444;
}


.demo-embed .view--orbitdeck .od-input2 {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--edge);
  background: #0e1018;
  color: #fff;
  outline: none;
}

.demo-embed .view--orbitdeck .od-input2:focus {
  border-color: var(--ac1);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac1) 22%, transparent);
}

.demo-embed .view--orbitdeck .od-input2.error {
  border-color: #ef4444;
}

.demo-embed .view--orbitdeck .od-err {
  color: #ef4444;
  font-size: 11px;
  margin-left: 8px;
}

.demo-embed .view--orbitdeck textarea.od-input {
  height: auto;
  resize: vertical;
  font-family: inherit;
}
.demo-embed .view--orbitdeck textarea.od-input2 {
  height: auto;
  resize: vertical;
  font-family: inherit;
}

.demo-embed .view--orbitdeck #b-rand-texts {
  height: 135px;
  max-height: 75px;
  min-height: 75px;
  overflow: auto !important;
  resize: vertical;
  -ms-overflow-style: none;
  scrollbar-width: none !important;
}

.demo-embed .view--orbitdeck #b-rand-texts::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
}

.demo-embed .view--orbitdeck .od-sliders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.demo-embed .view--orbitdeck .od-slider-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.demo-embed .view--orbitdeck .od-slider-head b {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.demo-embed .view--orbitdeck .od-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  margin-top: 10px;
}

.demo-embed .view--orbitdeck .od-range::-webkit-slider-runnable-track {
  height: 10px;
  background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.10));
  border: 1px solid var(--edge);
  border-radius: 999px;
}

.demo-embed .view--orbitdeck .od-range::-moz-range-track {
  height: 10px;
  background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.10));
  border: 1px solid var(--edge);
  border-radius: 999px;
}

.demo-embed .view--orbitdeck .od-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin-top: -6px;
  background: radial-gradient(120% 140% at 30% 20%, var(--ac1), var(--ac2));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ac1) 20%, transparent), 0 10px 18px rgba(0,0,0,.35);
  transition: transform .15s ease;
}

.demo-embed .view--orbitdeck .od-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(120% 140% at 30% 20%, var(--ac1), var(--ac2));
  border: none;
}

.demo-embed .view--orbitdeck .od-acc-list {
  display: grid;
  gap: 10px;
}

.demo-embed .view--orbitdeck .note-empty {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.demo-embed .view--orbitdeck .od-acc-item {
  padding: 12px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
  cursor: pointer;
  transition: all .2s ease;
}

.demo-embed .view--orbitdeck .od-acc-item:hover {
  border-color: var(--ac1);
  background: rgba(157,78,221,.08);
  transform: translateY(-1px);
}

.demo-embed .view--orbitdeck .od-acc-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.demo-embed .view--orbitdeck .od-acc-title {
  font-weight: 700;
  font-size: 14px;
}

.demo-embed .view--orbitdeck .od-acc-b .row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.demo-embed .view--orbitdeck .od-acc-b .row:last-child {
  border-bottom: none;
}

.demo-embed .view--orbitdeck .od-acc-b .k {
  color: var(--muted);
}

.demo-embed .view--orbitdeck .od-acc-b .v {
  font-family: monospace;
  color: var(--txt);
}

.demo-embed .view--orbitdeck .od-row-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.demo-embed .view--orbitdeck .od-status {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  font-size: 13px;
}

.demo-embed .view--orbitdeck .od-bar {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.10));
  border: 1px solid var(--edge);
  overflow: hidden;
  margin-top: 10px;
}

.demo-embed .view--orbitdeck .od-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ac1), var(--ac2));
  box-shadow: 0 0 14px color-mix(in srgb, var(--ac1) 45%, transparent);
  transition: width .33s ease;
}

.demo-embed .view--orbitdeck .od-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 12px;
}

.demo-embed .view--orbitdeck .od-m {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--edge);
  border-radius: 10px;
  padding: 7px;
}

.demo-embed .view--orbitdeck .od-m span {
  font-size: 10px;
  color: var(--muted);
}

.demo-embed .view--orbitdeck .od-m b {
  display: block;
  margin-top: 2px;
  font-size: 16px;
}

.demo-embed .view--orbitdeck .od-log {
  font-family: monospace;
  font-size: 11px;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-all;
}

.demo-embed .view--orbitdeck .note,
.demo-embed .view--orbitdeck .path {
  font-size: 12px;
  color: var(--muted);
}

/* Dialog styles */
.demo-embed .view--orbitdeck .od-dlg {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 500px;
  width: 90%;
}

.demo-embed .view--orbitdeck .od-dlg::backdrop {
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(8px);
}

.demo-embed .view--orbitdeck .od-dlg-panel {
  background: #0d0f17;
  border: 1px solid var(--edge);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}

.demo-embed .view--orbitdeck .od-dlg-h {
  padding: 16px;
  border-bottom: 1px solid var(--edge);
  background: rgba(255,255,255,.02);
}

.demo-embed .view--orbitdeck .od-dlg-h h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.demo-embed .view--orbitdeck .od-dlg-b {
  padding: 16px;
  max-height: 60vh;
  overflow: auto;
}

.demo-embed .view--orbitdeck .od-dlg-f {
  padding: 12px 16px;
  border-top: 1px solid var(--edge);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.demo-embed .view--orbitdeck .od-form {
  display: grid;
  grid-template-columns: 1fr;
}

.demo-embed .view--orbitdeck .od-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  background: #0d0f17;
  border: 1px solid var(--ac1);
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac1) 22%, transparent), 0 10px 30px rgba(0,0,0,.5);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all .3s ease;
  z-index: 10000;
}

.demo-embed .view--orbitdeck .od-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 1280px) {
  .demo-embed .view--orbitdeck .od-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .demo-embed .view--orbitdeck .od-sliders {
    grid-template-columns: 1fr;
  }
  .demo-embed .view--orbitdeck .od-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================
   TAB-TEMPLATES SPECIFIC STYLES
   ========================================== */

/* Переопределение padding для templates */
.demo-embed #tab-templates.view--orbitdeck {
  padding: 16px;
}

.demo-embed #tab-templates .od-topbar--simple {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--edge);
  margin-bottom: 20px;
}

.demo-embed #tab-templates .od-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  padding: 4px;
  overflow: auto;
}

.demo-embed #tab-templates .tpl-card {
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
  padding: 14px;
  cursor: pointer;
  transition: all .2s ease;
}

.demo-embed #tab-templates .tpl-card:hover {
  border-color: var(--ac1);
  background: rgba(157,78,221,.08);
  transform: translateY(-2px);
}

.demo-embed #tab-templates .tpl-card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.demo-embed #tab-templates .tpl-card-title {
  font-weight: 700;
  font-size: 14px;
}

.demo-embed #tab-templates .tpl-card-trigger {
  font-size: 12px;
  color: var(--muted);
  font-family: monospace;
  padding: 2px 8px;
  background: rgba(255,255,255,.05);
  border-radius: 6px;
}

.demo-embed #tab-templates .tpl-card-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  max-height: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}


.demo-embed .view--orbitdeck .t {
  font-weight: 700;
  font-size: 14px;
}

.demo-embed .view--orbitdeck .sp {
  flex: 1;
}

.demo-embed .view--orbitdeck .od-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.demo-embed .view--orbitdeck .od-acc-list {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  max-height: 450px;
  overflow-y: auto;
  padding-right: 4px;
}

.demo-embed .view--orbitdeck .od-acc-item {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 10px 12px;
  transition: all .2s ease;
}

.demo-embed .view--orbitdeck .od-acc-item:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, #fff 16%, var(--edge));
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}

.demo-embed .view--orbitdeck .od-acc-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.demo-embed .view--orbitdeck .od-acc-name {
  font-weight: 800;
  font-size: 14px;
}

.demo-embed .view--orbitdeck .od-acc-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.demo-embed .view--orbitdeck .od-acc-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.demo-embed .view--orbitdeck .od-acc-line span {
  color: var(--muted);
  width: 70px;
  flex: 0 0 auto;
}

.demo-embed .view--orbitdeck .od-acc-line b {
  color: var(--txt);
  font-weight: 600;
}

.demo-embed .view--orbitdeck .od-btn-mini {
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 6px;
  border: 1px solid var(--edge);
  background: rgba(255,255,255,.02);
  color: #fff;
  cursor: pointer;
  transition: all .15s ease;
}

.demo-embed .view--orbitdeck .od-btn-mini:hover {
  background: rgba(255,255,255,.06);
  border-color: color-mix(in srgb, var(--ac1) 30%, var(--edge));
}

.demo-embed .view--orbitdeck .od-switch {
  display: flex;
  align-items: center;
  gap: 5px;
  user-select: none;
  cursor: pointer;
  position: relative;
  padding: 8px 0;
}

.demo-embed .view--orbitdeck .od-switch input[type=checkbox] {
  appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: #0e1018;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s ease, border-color .2s ease;
}

.demo-embed .view--orbitdeck .od-switch input[type=checkbox]::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: left .15s ease;
}

.demo-embed .view--orbitdeck .od-switch input[type=checkbox]:checked {
  background: linear-gradient(135deg, var(--ac1), var(--ac2));
  border-color: var(--ac2);
}

.demo-embed .view--orbitdeck .od-switch input[type=checkbox]:checked::after {
  left: 19px;
}

.demo-embed .view--orbitdeck .od-switch-label {
  font-size: 13px;
  color: var(--txt);
}

.demo-embed .view--orbitdeck .kpis-under {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.demo-embed .view--orbitdeck .kpis-under .od-kpi {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--edge);
  border-radius: 999px;
  font-size: 12px;
}

.demo-embed .view--orbitdeck .kpis-under .od-kpi b {
  font-weight: 800;
  font-size: 12px;
}

.demo-embed .view--orbitdeck .kpis-under .od-kpi span {
  color: var(--muted);
  font-size: 12px;
}

.demo-embed .view--orbitdeck .od-log {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}

.demo-embed .view--orbitdeck .od-ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.demo-embed .view--orbitdeck textarea.od-input {
  height: auto;
  resize: vertical;
  font-family: inherit;
  min-height: 40px;
  max-height: 40px;
}

.demo-embed .view--orbitdeck textarea.od-input2 {
  height: auto;
  resize: vertical;
  font-family: inherit;
  min-height: 205px;
}

@media (max-width: 768px) {
  .demo-embed .view--orbitdeck .kpis-under {
    grid-template-columns: repeat(2, 1fr);
  }
}

.demo-embed .view--orbitdeck .od-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--edge);
  overflow: hidden;
  margin-bottom: 12px;
}

.demo-embed .view--orbitdeck .od-progress > .val {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ac1), var(--ac2));
  box-shadow: 0 0 12px color-mix(in srgb, var(--ac1) 35%, transparent) inset;
  transition: width .2s ease;
}


.demo-embed #tab-antispam .as-acc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.demo-embed #tab-antispam .od-field-with-btn {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.demo-embed #tab-antispam #as-main-create,
.demo-embed #tab-antispam #as-open-dm,
.demo-embed #tab-antispam #as-get-rest,
.demo-embed #tab-antispam #as-save,
.demo-embed #tab-antispam #as-pd-save,
.demo-embed #tab-antispam #as-md-save {
  height: 36px !important;
  padding: 8px 16px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(157,78,221,.8) !important;
  background: linear-gradient(180deg, rgba(157,78,221,.30), rgba(124,58,237,.28)) !important;
  box-shadow: inset 0 0 0 1px rgba(157,78,221,.45), 0 8px 22px rgba(157,78,221,.30) !important;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease !important;
}

.demo-embed #tab-antispam #as-main-create:hover,
.demo-embed #tab-antispam #as-open-dm:hover,
.demo-embed #tab-antispam #as-get-rest:hover,
.demo-embed #tab-antispam #as-save:hover,
.demo-embed #tab-antispam #as-pd-save:hover,
.demo-embed #tab-antispam #as-md-save:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.05) !important;
  box-shadow: inset 0 0 0 1px rgba(157,78,221,.45), 0 10px 26px rgba(157,78,221,.35) !important;
}

.demo-embed #tab-antispam #as-main-create:active,
.demo-embed #tab-antispam #as-open-dm:active,
.demo-embed #tab-antispam #as-get-rest:active,
.demo-embed #tab-antispam #as-save:active,
.demo-embed #tab-antispam #as-pd-save:active,
.demo-embed #tab-antispam #as-md-save:active {
  transform: translateY(0) !important;
}

.demo-embed #tab-antispam #as-main-dlg,
.demo-embed #tab-antispam #as-proxy-dlg {
  border: none !important;
  padding: 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  width: 640px !important;
  max-width: calc(100vw - 24px) !important;
  background: 
    radial-gradient(120% 140% at 15% -10%, color-mix(in srgb, var(--ac1) 12%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, rgba(15,16,20,.96) 0%, rgba(11,13,18,.98) 100%) !important;
  color: var(--txt) !important;
  transform: scale(.98);
  opacity: 0;
  animation: as-dialog-in .16s ease-out forwards;
}

.demo-embed #tab-antispam #as-main-dlg::backdrop,
.demo-embed #tab-antispam #as-proxy-dlg::backdrop {
  background: rgba(0,0,0,.42) !important;
  backdrop-filter: blur(10px);
}

@keyframes as-dialog-in {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.demo-embed #tab-antispam dialog .od-card {
  background: transparent !important;
  border: none !important;
}

.demo-embed #tab-antispam dialog .od-card-h {
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
  padding: 16px 20px !important;
}

.demo-embed #tab-antispam dialog .od-card-b {
  padding: 20px !important;
}

.demo-embed #tab-antispam #as-rand-texts,
.demo-embed #tab-antispam #as-proxy-bulk {
  height: 190px;
  resize: none;
  background: #0e1018 !important;
  color: var(--txt) !important;
  border-radius: 10px !important;
  border: 1px solid var(--edge) !important;
  padding: 8px 10px !important;
  scrollbar-width: none;
}

.demo-embed #tab-antispam #as-rand-texts::-webkit-scrollbar,
.demo-embed #tab-antispam #as-proxy-bulk::-webkit-scrollbar {
  display: none;
}

.demo-embed #tab-antispam #as-proxy-dlg {
  min-height: 400px !important;
  max-height: 700px !important;
  overflow: hidden;
}

.demo-embed #tab-antispam #as-proxy-dlg .od-card-b {
  flex: 1 1 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.demo-embed #tab-antispam #as-proxy-list {
  --as-proxy-item-h: 64px;
  max-height: calc((var(--as-proxy-item-h) * 3) + (10px * 2));
  overflow-y: auto;
  scrollbar-width: none;
}

.demo-embed #tab-antispam #as-proxy-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.demo-embed #tab-antispam #as-proxy-list .od-acc-item {
  min-height: var(--as-proxy-item-h);
}

.demo-embed #tab-antispam #as-proxy-dlg .actions {
  margin-top: 12px;
}

.demo-embed #tab-antispam .od-acc-item {
  padding: 12px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
  cursor: pointer;
  transition: all .2s ease;
}

.demo-embed #tab-antispam .od-acc-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-embed #tab-antispam .od-acc-title {
  font-weight: 800;
}

.demo-embed #tab-antispam .od-acc-b .row {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.demo-embed #tab-antispam .od-acc-b .row .k {
  min-width: 80px;
  color: var(--muted);
}

.demo-embed #tab-antispam .od-acc-b .row .v {
  color: var(--txt);
  font-family: 'Consolas', 'Monaco', monospace;
}

.demo-embed #tab-antispam .tpl-help-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 20px;
}

.demo-embed #tab-antispam .tpl-help-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}

.demo-embed #tab-antispam .tpl-help-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(15,16,20,.98), rgba(11,13,18,.96));
  border: 1px solid rgba(157,78,221,.2);
  border-radius: 16px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 
    0 0 0 1px rgba(157,78,221,.1),
    0 8px 32px rgba(0,0,0,.4),
    0 16px 64px rgba(157,78,221,.15);
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.demo-embed #tab-antispam .tpl-help-overlay.is-visible .tpl-help-panel {
  transform: scale(1);
}

.demo-embed #tab-antispam .tpl-help-glow {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(157,78,221,.15), transparent);
  pointer-events: none;
}

.demo-embed #tab-antispam .tpl-help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.demo-embed #tab-antispam .tpl-help-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(157,78,221,.2), rgba(124,58,237,.15));
  border: 1px solid rgba(157,78,221,.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #c77dff;
}

.demo-embed #tab-antispam .tpl-help-close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.demo-embed #tab-antispam .tpl-help-close:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
}

.demo-embed #tab-antispam .tpl-help-close-x {
  font-size: 20px;
  line-height: 1;
  color: var(--txt);
}

.demo-embed #tab-antispam .tpl-help-body {
  padding: 24px;
  max-height: calc(90vh - 80px);
  overflow-y: auto;
}

.demo-embed #tab-antispam .tpl-help-lang {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.demo-embed #tab-antispam .tpl-lang-btn {
  padding: 6px 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.demo-embed #tab-antispam .tpl-lang-btn.is-active {
  background: linear-gradient(135deg, rgba(157,78,221,.2), rgba(124,58,237,.15));
  border-color: rgba(157,78,221,.3);
  color: #c77dff;
}

.demo-embed #tab-antispam .help-section {
  display: none;
}

.demo-embed #tab-antispam .help-section.is-active {
  display: block;
}

.demo-embed #tab-antispam .help-section h3 {
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--txt);
}

.demo-embed #tab-antispam .help-section p {
  margin: 0 0 16px 0;
  line-height: 1.6;
  color: var(--muted);
}

.demo-embed #tab-antispam .tpl-help-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-embed #tab-antispam .tpl-help-steps li {
  padding: 16px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
}

.demo-embed #tab-antispam .tpl-help-steps h4 {
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--txt);
}

.demo-embed #tab-antispam .tpl-help-steps p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.demo-embed #tab-antispam .tpl-help-steps b {
  color: #c77dff;
  font-weight: 600;
}

.demo-embed #tab-antispam .tpl-help-hint {
  margin-top: 20px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(255,193,7,.05), rgba(255,152,0,.05));
  border: 1px solid rgba(255,193,7,.2);
  border-radius: 10px;
}

.demo-embed #tab-antispam .tpl-help-hint .pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(255,193,7,.15);
  border: 1px solid rgba(255,193,7,.3);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #ffc107;
  margin-bottom: 8px;
}

.demo-embed #tab-antispam .tpl-help-hint p {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,.7);
}

.demo-embed #tab-antispam .tpl-help-footer-note {
  margin-top: 20px;
  padding: 12px;
  background: rgba(255,255,255,.02);
  border-left: 3px solid rgba(157,78,221,.5);
  border-radius: 6px;
}

.demo-embed #tab-antispam .tpl-help-footer-note p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}


.demo-embed #tab-templates .tpl-counter {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
  padding: 8px 0;
}

.demo-embed #tab-templates .tpl-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.demo-embed #tab-templates .note-empty {
  padding: 40px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

.demo-embed #tab-templates .od-btn.od-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
}

.demo-embed #tab-templates .od-btn.od-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
}

.demo-embed #tab-checker .od-row-btns {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.demo-embed #tab-checker .od-row-proxies {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.demo-embed #tab-checker .od-proxy-toggle {
  display: flex;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.demo-embed #tab-checker .od-proxy-btn {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-embed #tab-checker .od-proxy-btn.active {
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.25), rgba(124, 58, 237, 0.2));
  color: rgba(199, 125, 255, 0.95);
  box-shadow: inset 0 0 0 1px rgba(157, 78, 221, 0.3);
}

.demo-embed #tab-checker .od-inline3 {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  margin-bottom: 12px;
  align-items: end;
}

.demo-embed #tab-checker .od-bak-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  height: 42px;
}

.demo-embed #tab-checker .od-bak-inline .od-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.demo-embed #tab-checker .od-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.demo-embed #tab-checker .od-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.demo-embed #tab-checker .od-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 34px;
  transition: 0.3s;
}

.demo-embed #tab-checker .od-switch .slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

.demo-embed #tab-checker .od-switch input:checked + .slider {
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.4), rgba(124, 58, 237, 0.3));
  border-color: rgba(157, 78, 221, 0.5);
}

.demo-embed #tab-checker .od-switch input:checked + .slider:before {
  transform: translateX(18px);
  background: #9d4edd;
}

.demo-embed #tab-checker .od-metrics {
  display: flex;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 0;
}

.demo-embed #tab-checker .od-m {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.demo-embed #tab-checker .od-m span {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.demo-embed #tab-checker .od-m b {
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.demo-embed #tab-checker .od-btn-start {
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.25), rgba(124, 58, 237, 0.2));
  border-color: rgba(157, 78, 221, 0.4);
  color: rgba(199, 125, 255, 0.95);
}

.demo-embed #tab-checker .od-btn-start:hover {
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.35), rgba(124, 58, 237, 0.3));
  box-shadow: 0 0 16px rgba(157, 78, 221, 0.3);
}

.demo-embed #tab-checker .od-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 8px;
}

.demo-embed #tab-checker .od-status span {
  color: rgba(255, 255, 255, 0.5);
}

.demo-embed #tab-checker .od-status b {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.demo-embed #tab-checker .od-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  overflow: hidden;
}

.demo-embed #tab-checker .od-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #9d4edd, #c77dff);
  border-radius: 6px;
  transition: width 0.3s ease;
}

.demo-embed #tab-checker .ck-logs {
  padding: 0;
  height: 100%;
  min-height: 200px;
}

.demo-embed #tab-checker .ck-logs textarea {
  width: 100%;
  height: 100%;
  min-height: 200px;
  padding: 12px;
  background: #0e1018;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.6;
  resize: none;
  outline: none;
}

.demo-embed #tab-checker .od-btn.danger {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.demo-embed #tab-checker .od-btn.danger:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.5);
}
/* ==========================================
   Quoting Module Styles
   ========================================== */

.demo-embed #tab-quoting .od-acc-kpis-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.demo-embed #tab-quoting .od-acc-kpis-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.demo-embed #tab-quoting .od-btn.od-ghost {
  border-color: rgba(255, 255, 255, 0.12);
}

.demo-embed #tab-quoting .od-btn.od-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
}

.demo-embed #tab-quoting .od-btn.od-sm {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.demo-embed #tab-quoting .od-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.demo-embed #tab-quoting .od-input.od-big {
  height: 44px;
  font-size: 14px;
}
.demo-embed #tab-quoting .od-input2.od-big {
  height: 44px;
  font-size: 14px;
}

.demo-embed #tab-quoting .d-acc-toolbar {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.demo-embed #tab-quoting .d-acc-chip {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  padding: 1px;
  min-width: 130px;
  isolation: isolate;
  background:
    radial-gradient(140% 200% at 0% 0%,
      rgba(157, 78, 221, 0.3) 0%,
      transparent 55%),
    radial-gradient(120% 180% at 100% 100%,
      rgba(157, 78, 221, 0.4) 0%,
      transparent 55%);
  border: 1px solid rgba(157, 78, 221, 0.45);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.6),
    0 10px 26px rgba(0,0,0,.65),
    0 0 24px rgba(157, 78, 221, 0.35);
}

.demo-embed #tab-quoting .d-acc-chip-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(160% 240% at 0% 0%,
      rgba(255,255,255,.10),
      transparent 55%),
    radial-gradient(140% 220% at 100% 100%,
      rgba(255,255,255,.08),
      transparent 60%);
  opacity: .55;
  mix-blend-mode: screen;
  pointer-events: none;
}

.demo-embed #tab-quoting .d-acc-chip-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(13,15,24,.98),
    rgba(11,13,20,.96)
  );
}

.demo-embed #tab-quoting .d-acc-chip-ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  opacity: .9;
}

.demo-embed #tab-quoting .d-acc-chip-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.demo-embed #tab-quoting .d-acc-chip-label {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  opacity: .85;
}

.demo-embed #tab-quoting .d-acc-chip b {
  font-size: 14px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  font-variant-numeric: tabular-nums;
}

.demo-embed #tab-quoting .d-acc-autoclean {
  flex: 1;
}

.demo-embed #tab-quoting .d-acc-autoclean .od-switch-label {
  font-size: 12px;
  white-space: nowrap;
}
/* ==========================================
   Multichat Module Styles
   ========================================== */

.demo-embed #tab-multichat {
  --mc-bg-panel: rgba(17,20,26,0);
  --mc-border: rgba(255,255,255,.08);
  --mc-text: #e6e8ee;
  --mc-text-dim: #98a2b3;
  --mc-accent: #9d4edd;
  color: var(--mc-text);
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Topbar */
.demo-embed #tab-multichat .mc-topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--mc-border);
}

.demo-embed #tab-multichat .mc-title {
  display: flex;
  gap: 12px;
  align-items: center;
}

.demo-embed #tab-multichat .mc-title-icon {
  width: 32px;
  height: 32px;
}

.demo-embed #tab-multichat .mc-title-icon svg {
  width: 24px;
  height: 24px;
}

.demo-embed #tab-multichat .mc-title-text h2 {
  margin: 0 0 2px 0;
  font-size: 18px;
  font-weight: 800;
}

.demo-embed #tab-multichat .mc-title-text p {
  margin: 0;
  font-size: 12px;
  color: var(--mc-text-dim);
}

.demo-embed #tab-multichat .mc-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-embed #tab-multichat .mc-segment {
  display: inline-flex;
  background: rgba(17,20,26,.6);
  border: 1px solid var(--mc-border);
  border-radius: 12px;
  overflow: hidden;
}

.demo-embed #tab-multichat .mc-pill {
  padding: 8px 12px;
  font-size: 12px;
  border: 0;
  background: transparent;
  color: var(--mc-text);
  cursor: pointer;
}

.demo-embed #tab-multichat .mc-pill.active {
  background: linear-gradient(135deg, rgba(157,78,221,.2), rgba(124,58,237,.15));
}

.demo-embed #tab-multichat .mc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--mc-border);
  background: rgba(15,17,22,.6);
  color: var(--mc-text);
  cursor: pointer;
  transition: all .2s;
  font-size: 13px;
  font-weight: 600;
}

.demo-embed #tab-multichat .mc-btn:hover {
  background: rgba(25,27,32,.8);
  border-color: rgba(157,78,221,.4);
  box-shadow: 0 0 0 3px rgba(157,78,221,.2);
  transform: translateY(-1px);
}

.demo-embed #tab-multichat .mc-btn.mc-primary {
  background: linear-gradient(135deg, rgba(157,78,221,.2), rgba(124,58,237,.15));
  border-color: rgba(157,78,221,.5);
  box-shadow: 0 4px 12px rgba(157,78,221,.3);
}

.demo-embed #tab-multichat .mc-btn svg {
  width: 16px;
  height: 16px;
}

/* Layout */
.demo-embed #tab-multichat .mc-layout {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 280px 340px 1fr;
  gap: 0;
}

/* Accounts Panel */
.demo-embed #tab-multichat .mc-accounts {
  border-right: 1px solid var(--mc-border);
  display: flex;
  flex-direction: column;
  background: var(--mc-bg-panel);
}

.demo-embed #tab-multichat .mc-accounts-header {
  padding: 16px;
  border-bottom: 1px solid var(--mc-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-embed #tab-multichat .mc-accounts-header h3 {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--mc-text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.demo-embed #tab-multichat .mc-account-actions {
  display: flex;
  gap: 6px;
}

.demo-embed #tab-multichat .mc-account-action {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(17,20,26,.6);
  border: 1px solid var(--mc-border);
  cursor: pointer;
}

.demo-embed #tab-multichat .mc-accounts-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.demo-embed #tab-multichat .mc-account-item {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(17,20,26,.6);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-embed #tab-multichat .mc-account-item:hover {
  background: rgba(157,78,221,.08);
  border-color: rgba(157,78,221,.3);
}

.demo-embed #tab-multichat .mc-account-item.active {
  background: linear-gradient(135deg, rgba(157,78,221,.15), rgba(124,58,237,.1));
  border-color: rgba(157,78,221,.5);
}

.demo-embed #tab-multichat .mc-account-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9d4edd, #7c3aed);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 17px;
  flex-shrink: 0;
}

.demo-embed #tab-multichat .mc-account-info {
  flex: 1;
  min-width: 0;
}

.demo-embed #tab-multichat .mc-account-name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-embed #tab-multichat .mc-account-unread {
  font-size: 11px;
  color: var(--mc-text-dim);
  margin-top: 2px;
}

/* Chats Panel */
.demo-embed #tab-multichat .mc-chats {
  border-right: 1px solid var(--mc-border);
  display: flex;
  flex-direction: column;
}

.demo-embed #tab-multichat .mc-chats-header {
  padding: 13px;
  border-bottom: 1px solid var(--mc-border);
}

.demo-embed #tab-multichat .mc-chats-search {
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--mc-border);
  background: rgba(17,20,26,.6);
  color: var(--mc-text);
  outline: none;
  font-size: 13px;
}

.demo-embed #tab-multichat .mc-chats-search:focus {
  border-color: var(--mc-accent);
  box-shadow: 0 0 0 3px rgba(157,78,221,.2);
}

.demo-embed #tab-multichat .mc-chats-list {
  flex: 1;
  overflow-y: auto;
}

.demo-embed #tab-multichat .mc-chat-item {
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  cursor: pointer;
  transition: all .2s;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: relative;
}

.demo-embed #tab-multichat .mc-chat-item:hover {
  background: rgba(255,255,255,.03);
}

.demo-embed #tab-multichat .mc-chat-item.active {
  background: rgba(157,78,221,.1);
}

.demo-embed #tab-multichat .mc-chat-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.demo-embed #tab-multichat .mc-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-embed #tab-multichat .mc-chat-info {
  flex: 1;
  min-width: 0;
}

.demo-embed #tab-multichat .mc-chat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.demo-embed #tab-multichat .mc-chat-name {
  font-weight: 600;
  font-size: 14px;
}

.demo-embed #tab-multichat .mc-chat-time {
  font-size: 12px;
  color: var(--mc-text-dim);
}

.demo-embed #tab-multichat .mc-chat-preview {
  font-size: 13px;
  color: var(--mc-text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-embed #tab-multichat .mc-chat-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  min-width: 20px;
  padding: 2px 6px;
  background: var(--mc-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  text-align: center;
}

/* Messages View */
.demo-embed #tab-multichat .mc-view {
  display: flex;
  flex-direction: column;
  background: rgba(17,20,26,0);
}

.demo-embed #tab-multichat .mc-view-header {
  padding: 16px;
  border-bottom: 1px solid var(--mc-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-embed #tab-multichat .mc-view-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
}

.demo-embed #tab-multichat .mc-view-avatar img {
  width: 100%;
  height: 100%;
}

.demo-embed #tab-multichat .mc-view-info {
  flex: 1;
}

.demo-embed #tab-multichat .mc-view-name {
  font-weight: 600;
  font-size: 15px;
}

.demo-embed #tab-multichat .mc-view-handle {
  font-size: 13px;
  color: var(--mc-text-dim);
}

.demo-embed #tab-multichat .mc-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-embed #tab-multichat .mc-msg {
  display: flex;
  gap: 10px;
  max-width: 70%;
}

.demo-embed #tab-multichat .mc-msg-in {
  align-self: flex-start;
}

.demo-embed #tab-multichat .mc-msg-out {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.demo-embed #tab-multichat .mc-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.demo-embed #tab-multichat .mc-msg-avatar img {
  width: 100%;
  height: 100%;
}

.demo-embed #tab-multichat .mc-msg-content {
  flex: 1;
}

.demo-embed #tab-multichat .mc-msg-text {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
}

.demo-embed #tab-multichat .mc-msg-in .mc-msg-text {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}

.demo-embed #tab-multichat .mc-msg-out .mc-msg-text {
  background: linear-gradient(135deg, rgba(157,78,221,.2), rgba(124,58,237,.15));
  border: 1px solid rgba(157,78,221,.3);
}

.demo-embed #tab-multichat .mc-msg-time {
  font-size: 11px;
  color: var(--mc-text-dim);
  margin-top: 4px;
  padding: 0 4px;
}

/* Compose */
.demo-embed #tab-multichat .mc-compose {
  padding: 16px;
  border-top: 1px solid var(--mc-border);
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.demo-embed #tab-multichat .mc-compose-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--mc-border);
  background: rgba(17,20,26,.6);
  color: var(--mc-text);
  outline: none;
  resize: none;
  font-size: 14px;
  font-family: inherit;
  min-height: 42px;
  max-height: 120px;
}

.demo-embed #tab-multichat .mc-compose-input:focus {
  border-color: var(--mc-accent);
  box-shadow: 0 0 0 3px rgba(157,78,221,.2);
}

.demo-embed #tab-multichat .mc-compose-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-embed #tab-multichat .mc-counter {
  font-size: 11px;
  color: var(--mc-text-dim);
}

.demo-embed #tab-multichat .mc-compose-send {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(157,78,221,.5);
  background: linear-gradient(135deg, rgba(157,78,221,.2), rgba(124,58,237,.15));
  color: var(--mc-text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all .2s;
}

.demo-embed #tab-multichat .mc-compose-send:hover {
  box-shadow: 0 0 16px rgba(157,78,221,.4);
  transform: translateY(-2px);
}

.demo-embed #tab-multichat .mc-compose-send svg {
  width: 18px;
  height: 18px;
}

/* Force hide multichat when not active */
.demo-embed #tab-multichat:not(.active) {
  display: none !important;
}

.demo-embed #tab-multichat.active {
  display: flex !important;
  flex-direction: column;
}

/* Specific textarea heights */
.demo-embed .as-messages-textarea {
  min-height: 72px;
  resize: vertical;
}

.demo-embed .ck-rpc-textarea {
  min-height: 160px;
  resize: vertical;
}#tab-parsing.view--orbitdeck, #tab-parsing.view--orbitdeck * { box-sizing: border-box; min-width: 0; }

#tab-parsing.view--orbitdeck {
  --bg: #0b0d12;
  --edge: rgba(255,255,255,.08);
  --txt: #e6e8ee;
  --muted: #98a2b3;
  --ac1: #842ecb;
  --ac2: #9d4edd;
  color: var(--txt);
  flex-direction: column;
  height: 100%;
  background: transparent;
}

#tab-parsing input[type=file] { display: none !important; }

#tab-parsing .od-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
}

#tab-parsing .od-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

#tab-parsing .parse-tabs {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
}

#tab-parsing .parse-tab-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: transparent;
  color: var(--txt);
  cursor: pointer;
  transition: all .15s ease;
  font-size: 13px;
}

#tab-parsing .parse-tab-btn:hover {
  border-color: var(--ac2);
  background: rgba(157,78,221,.1);
}

#tab-parsing .parse-tab-btn.active {
  border-color: var(--ac2);
  background: rgba(125,58,237,.15);
}

#tab-parsing .parse-tab-content {
  display: none;
}

#tab-parsing .parse-tab-content.active {
  display: block;
}

#tab-parsing .od-layout {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  padding: 8px 16px 16px;
}

@media (min-width: 980px) {
  #tab-parsing .od-layout {
    grid-template-columns: 1fr 1fr;
  }
}

#tab-parsing .od-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#tab-parsing .od-card {
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: radial-gradient(120% 140% at 15% -10%, color-mix(in srgb, var(--ac1) 12%, transparent) 0%, transparent 60%),
              linear-gradient(180deg, color-mix(in srgb, var(--bg) 96%, rgba(157,78,221,.30)) 0%, color-mix(in srgb, var(--bg) 100%, transparent) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
}

#tab-parsing .od-card-h {
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

#tab-parsing .od-card-h .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--ac2), var(--ac1));
  box-shadow: 0 0 8px var(--ac1);
}

#tab-parsing .od-card-h .t {
  font-weight: 800;
  font-size: 14px;
}

#tab-parsing .od-card-h .sp {
  flex: 1;
}

#tab-parsing .od-card-b {
  padding: 12px;
}

#tab-parsing .od-btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--edge);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  color: var(--txt);
  cursor: pointer;
  transition: all .15s ease;
  font-size: 13px;
}

#tab-parsing .od-btn:hover {
  border-color: var(--ac2);
  background: rgba(157,78,221,.1);
  transform: translateY(-1px);
}

#tab-parsing .od-btn.od-outline {
  background: transparent;
}

#tab-parsing .od-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#tab-parsing .od-btn.od-primary {
  height: 36px !important;
  padding: 8px 16px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(157,78,221,.8) !important;
  background: linear-gradient(180deg, rgba(157,78,221,.30), rgba(124,58,237,.28)) !important;
  box-shadow: inset 0 0 0 1px rgba(157,78,221,.45), 0 8px 22px rgba(157,78,221,.30) !important;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease !important;
}

#tab-parsing .od-btn.od-primary:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.05) !important;
  box-shadow: inset 0 0 0 1px rgba(157,78,221,.45), 0 10px 26px rgba(157,78,221,.35) !important;
}

#tab-parsing .od-btn.od-primary:active {
  transform: translateY(0) !important;
}

#tab-parsing .od-ico {
  width: 16px;
  height: 16px;
}

#tab-parsing .od-kpis {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

#tab-parsing .od-kpi {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255,255,255,.03);
}

#tab-parsing .od-kpi b {
  font-weight: 800;
}

#tab-parsing .od-kpi span {
  color: var(--muted);
}

#tab-parsing .od-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--edge);
  overflow: hidden;
}

#tab-parsing .od-progress > .val {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ac1), var(--ac2));
  box-shadow: 0 0 12px color-mix(in srgb, var(--ac1) 35%, transparent) inset;
  transition: width .3s ease;
}

#tab-parsing .od-form {
  display: flex;
  flex-direction: column;
}

#tab-parsing .od-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#tab-parsing .od-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#tab-parsing .od-label {
  color: var(--muted);
  font-size: 12px;
}

#tab-parsing .od-input,
#tab-parsing textarea,
#tab-parsing select {
  background: #0e1018;
  color: var(--txt);
  border: 1px solid var(--edge);
  border-radius: 10px;
  padding: 8px 10px;
  outline: none;
  transition: border-color .2s ease;
}

#tab-parsing .od-input:focus,
#tab-parsing textarea:focus,
#tab-parsing select:focus {
  border-color: var(--ac1);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac1) 22%, transparent);
}

#tab-parsing textarea {
  resize: vertical;
  min-height: 80px;
}

#tab-parsing .od-radio {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

#tab-parsing .od-radio label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 12px;
  color: var(--txt);
}

#tab-parsing .od-radio input[type="radio"] {
  appearance: none;
  width: 10px !important;
  height: 10px !important;
  min-width: 10px !important;
  max-width: 10px !important;
  flex-shrink: 0 !important;
  border-radius: 50% !important;
  border: 1.5px solid var(--edge) !important;
  background: #0e1018 !important;
  display: block !important;
  cursor: pointer;
  transition: all .15s ease;
  box-sizing: content-box !important;
  padding: 0 !important;
  margin: 0 !important;
}

#tab-parsing .od-radio input[type="radio"]:checked {
  background: radial-gradient(circle at 50% 50%, #9d4edd, #7c3aed) !important;
  border-color: #7c3aed !important;
  box-shadow: 0 0 6px rgba(157,78,221,0.5);
}

#tab-parsing .od-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  cursor: pointer;
}

#tab-parsing .od-switch input[type="checkbox"] {
  appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: #0e1018;
  position: relative;
  cursor: pointer;
  transition: background .15s ease, border-color .2s ease, box-shadow .2s ease;
}

#tab-parsing .od-switch input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left .15s ease;
}

#tab-parsing .od-switch input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  border-color: #7c3aed;
  box-shadow: 0 0 12px rgba(124,58,237,0.4);
}

#tab-parsing .od-switch input[type="checkbox"]:checked::after {
  left: 19px;
}

#tab-parsing .od-switches-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#tab-parsing .od-switch span {
  color: var(--txt);
  font-size: 13px;
}

#tab-parsing .note {
  color: var(--muted);
  font-size: 12px;
}

#tab-parsing .note-empty {
  padding: 8px 0;
  color: var(--muted);
  opacity: .8;
}

#tab-parsing .path {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 8px;
  background: rgba(255,255,255,.03);
  border-radius: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#tab-parsing dialog {
  border: none !important;
  padding: 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  width: 640px !important;
  max-width: calc(100vw - 24px) !important;
  background: 
    radial-gradient(120% 140% at 15% -10%, color-mix(in srgb, var(--ac1) 12%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, rgba(15,16,20,.96) 0%, rgba(11,13,18,.98) 100%) !important;
  color: var(--txt) !important;
  transform: scale(.98);
  opacity: 0;
  animation: parse-dialog-in .16s ease-out forwards;
}

#tab-parsing dialog::backdrop {
  background: rgba(0,0,0,.42) !important;
  backdrop-filter: blur(10px);
}

@keyframes parse-dialog-in {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

#tab-parsing dialog .od-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

#tab-parsing dialog .od-card-h {
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
  padding: 14px 16px !important;
}

#tab-parsing dialog .od-card-b {
  background: transparent !important;
  padding: 16px !important;
  box-shadow: none !important;
}

#tab-parsing #parse-proxy-list {
  max-height: calc((64px * 3) + (10px * 2));
  overflow-y: auto;
  scrollbar-width: none;
}

#tab-parsing #parse-proxy-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

#tab-parsing .od-acc-list {
  display: grid;
  gap: 10px;
}

#tab-parsing .od-acc-item {
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 64px;
}

#tab-parsing .od-acc-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#tab-parsing .od-acc-title {
  font-weight: 800;
  font-size: 13px;
}

#tab-parsing #parse-proxy-bulk,
#tab-parsing #parse-blacklist-text,
#tab-parsing #parse-tokens-text {
  height: 190px;
  resize: none;
  scrollbar-width: none;
}

#tab-parsing #parse-proxy-bulk::-webkit-scrollbar,
#tab-parsing #parse-blacklist-text::-webkit-scrollbar,
#tab-parsing #parse-tokens-text::-webkit-scrollbar {
  display: none;
}

#tab-parsing #parse-proxy-dlg {
  min-height: 400px !important;
  max-height: 700px !important;
  overflow: hidden;
}

#tab-parsing #parse-proxy-dlg .od-card-b {
  flex: 1 1 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#tab-parsing #parse-proxy-dlg .od-field:has(#parse-proxy-list) {
  flex: 0 0 auto;
}

#tab-parsing #parse-proxy-dlg .actions {
  margin-top: 12px;
}

#tab-parsing .od-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: #0e1018;
  border: 1px solid var(--edge);
  padding: 8px 12px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
  z-index: 9999;
}

#tab-parsing .od-toast.show {
  opacity: 1;
}

#tab-parsing .valid-box {
  min-height: 450px;
  max-height: 450px;
  overflow: auto;
  padding: 10px;
  border-radius: 10px;
  background:
    radial-gradient(120% 140% at 15% -10%, color-mix(in srgb, var(--ac1) 10%, transparent) 0%, transparent 60%),
    #140c22;    
  color: #ffffff;   
  border: 1px solid var(--edge);
  font-family: 'Courier New', monospace;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-all;
}

#tab-parsing .valid-box::-webkit-scrollbar {
  width: 8px;
}

#tab-parsing .valid-box::-webkit-scrollbar-track {
  background: rgba(255,255,255,.03);
  border-radius: 10px;
}

#tab-parsing .valid-box::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--ac2), var(--ac1));
  border-radius: 10px;
}

#tab-parsing {
  display: none;
}

#tab-parsing.active {
  display: flex;
  flex-direction: column;
}

#tab-parsing dialog .od-field {
  margin-bottom: 12px;
}

#tab-parsing dialog .od-field:last-child {
  margin-bottom: 0;
}

#tab-parsing #parse-proxy-dlg .od-field + .od-field {
  margin-top: 16px;
}

#tab-parsing #parse-tokens-dlg .od-field,
#tab-parsing #parse-csv-dlg .od-field {
  margin-bottom: 12px;
}

#tab-parsing #parse-proxy-dlg-new,
#tab-parsing #parse-proxy-dlg-old {
  min-height: 400px !important;
  max-height: 700px !important;
  overflow: hidden;
}

#tab-parsing #parse-proxy-dlg-new .od-card-b,
#tab-parsing #parse-proxy-dlg-old .od-card-b {
  flex: 1 1 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#tab-parsing #parse-proxy-list-new,
#tab-parsing #parse-proxy-list-old {
  max-height: calc((64px * 3) + (10px * 2));
  overflow-y: auto;
  scrollbar-width: none;
}

#tab-parsing #parse-proxy-list-new::-webkit-scrollbar,
#tab-parsing #parse-proxy-list-old::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.od-btn--compact {
  width: auto !important; 
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 12px; 
  align-self: flex-start;  
}