/* لوحات التحكم — تصميم احترافي */
:root {
  --dash-brand: #6f42c1;
  --dash-brand-dark: #5a32a3;
  --dash-surface: #ffffff;
  --dash-page-bg: #f8f9fc;
}

body[data-color-mode="dark"] {
  --dash-surface: #1e2229;
  --dash-page-bg: #12151a;
}

.dash-root {
  min-height: calc(100vh - 80px);
  background: linear-gradient(135deg, var(--dash-page-bg) 0%, #eef1f8 100%);
  padding: 1.5rem 0 3rem;
}

body[data-color-mode="dark"] .dash-root {
  background: linear-gradient(135deg, #1a1d24 0%, #12151a 100%);
}

.dash-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.25rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (max-width: 991px) {
  .dash-shell {
    grid-template-columns: 1fr;
  }
  .dash-sidebar {
    position: static !important;
  }
}

.dash-sidebar {
  position: sticky;
  top: 1rem;
  align-self: start;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body[data-color-mode="dark"] .dash-sidebar {
  background: #1e2229;
  border-color: rgba(255, 255, 255, 0.08);
}

.dash-sidebar__head {
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--dash-brand) 0%, var(--dash-brand-dark) 100%);
  color: #fff;
}

.dash-sidebar__nav {
  list-style: none;
  margin: 0;
  padding: 0.75rem;
}

.dash-sidebar__nav button {
  width: 100%;
  text-align: right;
  border: none;
  background: transparent;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  transition: background 0.15s;
}

.dash-sidebar__nav button:hover {
  background: rgba(111, 66, 193, 0.08);
}

.dash-sidebar__nav button.is-active {
  background: rgba(111, 66, 193, 0.15);
  color: var(--dash-brand);
  font-weight: 600;
}

body[data-color-mode="dark"] .dash-sidebar__nav button.is-active {
  color: #b794f6;
}

.dash-main {
  min-width: 0;
}

.dash-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.dash-stat {
  background: #fff;
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

body[data-color-mode="dark"] .dash-stat {
  background: #1e2229;
  border-color: rgba(255, 255, 255, 0.06);
}

.dash-stat__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}

.dash-stat__value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.dash-stat__label {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.15rem;
}

.dash-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.04);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

body[data-color-mode="dark"] .dash-card {
  background: #1e2229;
  border-color: rgba(255, 255, 255, 0.06);
}

.dash-card__head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

body[data-color-mode="dark"] .dash-card__head {
  border-color: rgba(255, 255, 255, 0.06);
}

.dash-card__body {
  padding: 1.25rem;
}

.dash-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 160px;
  padding-top: 0.5rem;
}

.dash-chart-bar {
  flex: 1;
  min-width: 8px;
  background: linear-gradient(180deg, #6f42c1 0%, #9b7bd4 100%);
  border-radius: 6px 6px 0 0;
  position: relative;
  transition: height 0.3s ease;
}

.dash-chart-bar span {
  position: absolute;
  bottom: -1.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  color: #6c757d;
  white-space: nowrap;
}

.dash-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.dash-plan {
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 1.25rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.dash-plan.is-current {
  border-color: #6f42c1;
  box-shadow: 0 8px 24px rgba(111, 66, 193, 0.15);
}

.dash-plan.is-popular {
  position: relative;
}

.dash-plan.is-popular::before {
  content: "الأكثر طلباً";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #6f42c1;
  color: #fff;
  font-size: 0.7rem;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
}

.dash-plan__head {
  margin-bottom: 0.75rem;
}

.dash-plan__features li {
  margin-bottom: 0.35rem;
  line-height: 1.5;
}

.dash-plan__limits td {
  padding: 0.35rem 0;
  border: none;
  vertical-align: middle;
}

.dash-filter-bar .btn {
  border-radius: 999px;
}

.dash-table--matrix th:not(:first-child),
.dash-table--matrix td:not(:first-child) {
  text-align: center;
  width: 5.5rem;
}

.dash-table--matrix tbody tr:nth-child(even) {
  background: rgba(111, 66, 193, 0.02);
}

body[data-color-mode="dark"] .dash-plan {
  background: #252830;
  border-color: rgba(255, 255, 255, 0.08);
}

.dash-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.5rem;
}

.dash-color-swatch {
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0.5rem;
  cursor: pointer;
  text-align: center;
  font-size: 0.7rem;
  transition: border-color 0.15s;
}

.dash-color-swatch.is-selected {
  border-color: #6f42c1;
}

.dash-color-swatch__dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin: 0 auto 0.35rem;
}

.dash-color-swatch__hex {
  display: block;
  font-size: 0.65rem;
  color: #6c757d;
  font-family: monospace;
}

.dash-table {
  width: 100%;
  font-size: 0.875rem;
}

.dash-table th {
  font-weight: 600;
  color: #6c757d;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.dash-table td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  vertical-align: middle;
}

/* صفحة تسجيل الدخول */
.auth-page {
  min-height: calc(100vh - 60px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}

@media (max-width: 991px) {
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-page__hero {
    display: none;
  }
}

.auth-page__hero {
  background: linear-gradient(135deg, #6f42c1 0%, #3d2468 100%);
  color: #fff;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-page__form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-page__form-inner {
  width: 100%;
  max-width: 420px;
}

.dash-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.dash-badge--success { background: rgba(25, 135, 84, 0.12); color: #198754; }
.dash-badge--warning { background: rgba(255, 193, 7, 0.15); color: #997404; }
.dash-badge--danger { background: rgba(220, 53, 69, 0.12); color: #dc3545; }
.dash-badge--info { background: rgba(13, 202, 240, 0.12); color: #0aa2c0; }

.dash-donut {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(#6f42c1 var(--pct), #e9ecef 0);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.dash-donut__inner {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

body[data-color-mode="dark"] .dash-donut__inner {
  background: #1e2229;
}

/* ——— رسوم SVG ——— */
.dash-svg-chart {
  position: relative;
  width: 100%;
  overflow-x: auto;
}

.dash-svg-chart__svg {
  width: 100%;
  height: auto;
  display: block;
}

.dash-svg-chart__grid {
  stroke: rgba(0, 0, 0, 0.06);
  stroke-width: 1;
}

body[data-color-mode="dark"] .dash-svg-chart__grid {
  stroke: rgba(255, 255, 255, 0.08);
}

.dash-svg-chart__axis {
  fill: #6c757d;
  font-size: 11px;
}

.dash-svg-chart__tooltip {
  position: absolute;
  top: 0;
  left: 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

body[data-color-mode="dark"] .dash-svg-chart__tooltip {
  background: #252930;
  border-color: rgba(255, 255, 255, 0.1);
}

.dash-svg-chart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
}

.dash-svg-chart__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dash-svg-chart__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dash-donut-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.dash-donut-chart {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-donut-chart__inner {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body[data-color-mode="dark"] .dash-donut-chart__inner {
  background: #1e2229;
}

.dash-donut-chart__total {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.dash-donut-legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.875rem;
}

.dash-hbar-chart__row {
  display: grid;
  grid-template-columns: 100px 1fr 40px;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.dash-hbar-chart__label {
  font-size: 0.85rem;
  text-align: left;
}

.dash-hbar-chart__track {
  height: 10px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

body[data-color-mode="dark"] .dash-hbar-chart__track {
  background: rgba(255, 255, 255, 0.08);
}

.dash-hbar-chart__fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.dash-hbar-chart__val {
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
}

.dash-sparkline {
  display: block;
  opacity: 0.85;
}

/* ——— اقتصاص الشعار 1:1 ——— */
.logo-cropper__drop {
  width: 280px;
  height: 200px;
  border: 2px dashed rgba(111, 66, 193, 0.35);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: rgba(111, 66, 193, 0.03);
}

.logo-cropper__drop:hover {
  border-color: #6f42c1;
  background: rgba(111, 66, 193, 0.08);
}

.logo-cropper__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #1a1a2e;
  touch-action: none;
  user-select: none;
}

.logo-cropper__frame {
  position: absolute;
  inset: 0;
  border: 2px solid #fff;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 2;
}

.logo-cropper__grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(to right, transparent calc(33.33% - 0.5px), rgba(255,255,255,0.35) calc(33.33% - 0.5px), rgba(255,255,255,0.35) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px)),
    linear-gradient(to right, transparent calc(66.66% - 0.5px), rgba(255,255,255,0.35) calc(66.66% - 0.5px), rgba(255,255,255,0.35) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px)),
    linear-gradient(to bottom, transparent calc(33.33% - 0.5px), rgba(255,255,255,0.35) calc(33.33% - 0.5px), rgba(255,255,255,0.35) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px)),
    linear-gradient(to bottom, transparent calc(66.66% - 0.5px), rgba(255,255,255,0.35) calc(66.66% - 0.5px), rgba(255,255,255,0.35) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px));
}

.logo-cropper__preview-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.logo-cropper__preview-square {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
}

.logo-cropper__preview-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-cropper__preview-nav {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.logo-cropper__preview-nav .avatar {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
}

body[data-color-mode="dark"] .logo-cropper__preview-square,
body[data-color-mode="dark"] .logo-cropper__preview-nav {
  background: #252930;
  border-color: rgba(255, 255, 255, 0.08);
}

/* معاينة النافبار — كمبيوتر وهاتف */
.logo-cropper__preview-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.logo-cropper__nav-mock {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: #f8f9fa;
}

body[data-color-mode="dark"] .logo-cropper__nav-mock {
  background: #252930;
  border-color: rgba(255, 255, 255, 0.08);
}

.logo-cropper__nav-mock-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c757d;
  padding: 0.35rem 0.65rem;
  background: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.logo-cropper__nav-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  min-height: 48px;
}

.logo-cropper__nav-mock--mobile .logo-cropper__nav-bar {
  justify-content: space-between;
}

.logo-cropper__nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  flex: 1;
}

.logo-cropper__nav-brand .avatar {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

.logo-cropper__nav-placeholder {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: #dee2e6;
  font-size: 0.85rem;
}

.logo-cropper__nav-name {
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.logo-cropper__nav-mock--desktop .logo-cropper__nav-name {
  max-width: 220px;
}

.logo-cropper__nav-mock--mobile .logo-cropper__nav-name {
  max-width: 140px;
}

.logo-cropper__nav-links {
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #6c757d;
  flex-shrink: 0;
}

.logo-cropper__nav-menu {
  font-size: 1.1rem;
  color: #495057;
  flex-shrink: 0;
}

/* ——— Color swatch picker ——— */
.color-swatch-picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 0.5rem;
}

.color-swatch-picker__grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
}

.color-swatch-picker__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.35rem;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  background: var(--bs-body-bg, #fff);
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.color-swatch-picker__item:hover {
  transform: translateY(-1px);
}

.color-swatch-picker__item.is-selected {
  border-color: var(--bs-primary, #0d6efd);
  box-shadow: 0 0 0 1px var(--bs-primary, #0d6efd);
}

.color-swatch-picker__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.color-swatch-picker__grid--compact .color-swatch-picker__dot {
  width: 24px;
  height: 24px;
}

.color-swatch-picker__label {
  font-size: 0.7rem;
  text-align: center;
  line-height: 1.2;
}

/* ——— Card mode picker ——— */
.card-mode-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.card-mode-picker__item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  text-align: right;
  padding: 1rem;
  border: 2px solid #dee2e6;
  border-radius: 0.75rem;
  background: var(--bs-body-bg, #fff);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card-mode-picker__item.is-selected {
  border-color: #6f42c1;
  box-shadow: 0 4px 12px rgba(111, 66, 193, 0.15);
}

.card-mode-picker__icon {
  font-size: 1.25rem;
  color: #6f42c1;
  margin-top: 0.15rem;
}

.card-mode-picker__title {
  font-weight: 600;
  font-size: 0.9rem;
}

.card-mode-picker__desc {
  font-size: 0.75rem;
  color: #6c757d;
  margin-top: 0.15rem;
}

/* ——— Cards settings (صفحة ألوان البطاقات) ——— */
.cards-settings__modes .btn {
  min-width: 5.5rem;
}

.cards-settings__table-wrap {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  padding: 0.25rem 0.5rem;
}

.cards-settings__group-row td {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6c757d;
  padding-top: 0.65rem;
  padding-bottom: 0.25rem;
}

.cards-settings__name {
  white-space: nowrap;
  font-size: 0.85rem;
  vertical-align: middle;
  width: 40%;
}

.cards-settings__preview {
  border-top: 1px solid #e9ecef;
  padding-top: 0.75rem;
}

.cards-live-preview {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cards-live-preview--page {
  background: #f8f9fc;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 1rem 1.15rem;
}

.cards-live-preview__section + .cards-live-preview__section {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 1rem;
}

.cards-live-preview__heading {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #495057;
}

.cards-live-preview__card {
  min-height: 72px;
  padding: 0.85rem 1rem;
  border: 1px solid transparent;
  pointer-events: none;
}

.cards-live-preview__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  min-width: 8.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
}

.cards-live-preview__icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.cards-live-preview__label {
  color: #212529;
  font-size: 0.875rem;
}

body[data-color-mode="dark"] .cards-live-preview--page {
  background: #252830;
  border-color: rgba(255, 255, 255, 0.06);
}

body[data-color-mode="dark"] .cards-live-preview__heading {
  color: #ced4da;
}

body[data-color-mode="dark"] .cards-live-preview__section + .cards-live-preview__section {
  border-color: rgba(255, 255, 255, 0.06);
}

.inline-color-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.inline-color-dots__btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.inline-color-dots__btn.is-active {
  border-color: #212529;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #212529;
}

/* ——— Logo cropper layout ——— */
.logo-cropper__editor-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.logo-cropper__editor-col {
  max-width: 320px;
}

.logo-cropper__preview-full {
  width: 100%;
  min-width: 0;
}

.logo-cropper__layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.logo-cropper__preview-col {
  min-width: 0;
}

@media (max-width: 991px) {
  .logo-cropper__layout {
    grid-template-columns: 1fr;
  }
}

/* النافبار الحقيقي يثبت أثناء معاينة تخصيص الويب */
#palmix.navbar-live-preview > .container-lg:first-child {
  position: sticky;
  top: 0;
  z-index: 1030;
}

/* ——— Navbar preview studio ——— */
.navbar-preview-studio__controls {
  margin-bottom: 0.25rem;
}

.navbar-preview-studio__stage {
  width: 100%;
  min-height: 100px;
  padding: 1rem;
  background: #f1f3f5;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  justify-content: stretch;
  align-items: flex-start;
}

.navbar-preview-studio--full .navbar-preview-studio__stage {
  padding: 0.75rem;
  background: linear-gradient(180deg, #eef1f6 0%, #f8f9fc 100%);
  border-radius: 12px;
}

.navbar-preview-studio--full .navbar-preview-studio__frame {
  width: 100% !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.dash-preview-panel {
  width: 100%;
  margin-top: 0.5rem;
}

.dash-section-note {
  background: rgba(111, 66, 193, 0.07);
  border: 1px solid rgba(111, 66, 193, 0.15);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #495057;
}

body[data-color-mode="dark"] .dash-section-note {
  background: rgba(111, 66, 193, 0.12);
  border-color: rgba(183, 148, 246, 0.2);
  color: #ced4da;
}

.dash-subsection-title {
  font-weight: 600;
  color: inherit;
}

.dash-color-grid--theme .dash-color-swatch__hex {
  display: none;
}

.dash-color-grid--theme .dash-color-swatch.is-selected .dash-color-swatch__hex {
  display: block;
}

/* ——— Social links editor ——— */
.dash-social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem;
}

.dash-social-card {
  background: #f8f9fc;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.dash-social-card.is-filled {
  border-color: rgba(111, 66, 193, 0.25);
  background: #fff;
  box-shadow: 0 2px 8px rgba(111, 66, 193, 0.06);
}

body[data-color-mode="dark"] .dash-social-card {
  background: #252830;
  border-color: rgba(255, 255, 255, 0.06);
}

body[data-color-mode="dark"] .dash-social-card.is-filled {
  background: #2a2e38;
  border-color: rgba(183, 148, 246, 0.25);
}

.dash-social-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.dash-social-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.dash-social-card__icon .fa-snapchat {
  color: #000;
}

.dash-social-card__title {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
}

.dash-social-card__hint {
  font-size: 0.75rem;
  color: #6c757d;
  margin-top: 0.1rem;
}

.dash-social-card__input {
  font-size: 0.8125rem;
  border-radius: 8px;
}

body[data-color-mode="dark"] .dash-social-card__hint {
  color: #adb5bd;
}

/* ——— Tables & forms polish ——— */
.dash-table tbody tr:hover {
  background: rgba(111, 66, 193, 0.03);
}

body[data-color-mode="dark"] .dash-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.dash-card .form-label {
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}

.dash-card .btn-default {
  min-width: 120px;
}

.dash-sidebar__nav button i {
  width: 1.25rem;
  text-align: center;
  opacity: 0.85;
}

.navbar-preview-studio__frame {
  flex-shrink: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 0.35rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body[data-color-mode="dark"] .navbar-preview-studio__stage {
  background: #1a1a2e;
  border-color: #3d3d5c;
}

body[data-color-mode="dark"] .navbar-preview-studio__frame {
  background: #252538;
}

body[data-color-mode="dark"] .cards-settings__table-wrap {
  border-color: #3d3d5c;
}

body[data-color-mode="dark"] .cards-live-preview__label {
  color: #e9ecef;
}

.dash-social-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.dash-social-icon .fa-snapchat {
  color: #000;
}

/* لوحات التحكم — نفس لغة تطبيق أندرويد */
.ad-root {
  min-height: calc(100vh - 72px);
  background: #f8f9fa;
  padding: 12px 12px 32px;
  color: #202124;
}
.ad-head, .ad-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ad-title h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}
.ad-title p, .ad-panel header p, .ad-empty {
  margin: 0;
  color: #6c757d;
  font-size: 13px;
}
.ad-title__icon, .ad-panel header span {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 115, 232, 0.12);
  color: #1a73e8;
  flex: 0 0 auto;
}
.ad-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
}
.ad-tabs button, .ad-chips button, .ad-actions button, .ad-actions a, .ad-save, .ad-text-btn {
  border: 0;
  background: #fff;
  color: #3c4043;
  border-radius: 999px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.15);
  text-decoration: none;
  font-size: 13px;
}
.ad-tabs button.is-on, .ad-chips button.is-on {
  background: #1a73e8;
  color: #fff;
}
.ad-tabs em {
  background: #d93025;
  color: #fff;
  border-radius: 999px;
  min-width: 18px;
  font-style: normal;
  font-size: 11px;
  padding: 0 5px;
}
.ad-body, .ad-panel__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ad-panel {
  border-radius: 16px;
  padding: 12px;
}
.ad-panel header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.ad-panel h2, .ad-white h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.ad-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.ad-metric, .ad-white {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
}
.ad-metric strong {
  display: block;
  font-size: 22px;
}
.ad-metric span, .ad-metric small {
  display: block;
  color: #5f6368;
  font-size: 12px;
}
.ad-bars, .ad-device {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}
.ad-bar div, .ad-row, .ad-device {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.ad-bar i, .ad-device i {
  display: block;
  height: 6px;
  border-radius: 99px;
  background: #1a73e8;
}
.ad-count { color: #1a73e8; font-weight: 600; }
.ad-ok { color: #198754; }
.ad-alert { color: #dc3545; background: #fff; border-radius: 12px; padding: 12px; }
.ad-switch, .ad-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}
.ad-field { flex-direction: column; align-items: stretch; }
.ad-field input, .ad-actions select {
  border: 1px solid #dadce0;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
}
.ad-save { background: #1a73e8; color: #fff; }
.ad-save--block {
  width: 100%;
  justify-content: center;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
}
.ad-save--apart {
  margin-top: 28px;
}
.ad-settings, .ad-section-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ad-setting {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 46px;
  gap: 12px;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  margin: 0;
  cursor: pointer;
}
.ad-setting input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.ad-setting__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.ad-setting__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ad-setting__copy strong { font-size: 14px; }
.ad-setting__copy small {
  color: #5f6368;
  font-size: 12px;
  line-height: 1.45;
}
.ad-setting__switch {
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: #dadce0;
  position: relative;
}
.ad-setting__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}
.ad-setting.is-on .ad-setting__switch { background: #1a73e8; }
.ad-setting.is-on .ad-setting__switch::after { transform: translateX(-18px); }
.ad-setting:focus-within {
  outline: 2px solid rgba(26, 115, 232, 0.35);
  outline-offset: 2px;
}
.ad-setting-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.ad-setting-field span, .ad-setting-label {
  font-weight: 700;
  font-size: 14px;
}
.ad-setting-field input {
  border: 1px solid #dadce0;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f8f9fa;
}
.ad-setting-field small, .ad-setting-label {
  color: #5f6368;
  font-weight: 400;
}
.ad-setting-label { margin: 0 0 8px; }
.ad-plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.ad-plan {
  border: 1px solid #dadce0;
  background: #f8f9fa;
  border-radius: 14px;
  padding: 12px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: inherit;
}
.ad-plan i { color: #1a73e8; font-size: 16px; }
.ad-plan span { color: #5f6368; font-size: 12px; }
.ad-plan.is-on {
  border-color: #1a73e8;
  background: #e8f0fe;
}
.ad-lookup-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.ad-lookup-stats article {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
}
.ad-lookup-stats strong {
  display: block;
  font-size: 22px;
  color: #0f766e;
}
.ad-lookup-stats span { color: #5f6368; font-size: 12px; }
.ad-lookup {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ad-lookup header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.ad-lookup__mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #ccfbf1;
  color: #0f766e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex: 0 0 auto;
}
.ad-lookup__who { min-width: 0; flex: 1; }
.ad-lookup__who strong { display: block; line-height: 1.4; }
.ad-lookup__id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  background: #e8eef4;
  color: #202124;
  font-size: 14px;
  line-height: 22px;
  box-sizing: border-box;
}
.ad-lookup__id b {
  font-weight: 800;
  font-size: 15px;
  line-height: 22px;
  letter-spacing: 0.04em;
}
.ad-lookup__badges {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}
.ad-lookup__badges em {
  font-style: normal;
  font-size: 12px;
  border-radius: 999px;
  padding: 2px 8px;
  background: #f1f3f4;
  color: #3c4043;
}
.ad-lookup__badges .is-pass { background: #e6f4ea; color: #137333; }
.ad-lookup__badges .is-fail { background: #fce8e6; color: #c5221f; }
.ad-lookup dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
}
.ad-lookup dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8f9fa;
}
.ad-lookup dt { color: #5f6368; font-size: 12px; }
.ad-lookup dd { margin: 0; font-weight: 700; text-align: left; }
.ad-lookup footer { color: #80868b; font-size: 12px; }
@media (min-width: 800px) {
  .ad-lookup dl { grid-template-columns: 1fr 1fr; }
}
.ad-section-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
}
.ad-section-summary strong {
  font-size: 28px;
  color: #00838f;
  line-height: 1;
}
.ad-section-summary span { color: #5f6368; }
.ad-section-grid .ad-setting { background: #f8f9fa; }
@media (min-width: 800px) {
  .ad-plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ad-section-grid { display: grid; grid-template-columns: 1fr 1fr; }
}
.ad-login {
  max-width: 440px;
  margin: 24px auto;
}
.ad-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.ad-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.ad-head .ad-actions { margin-top: 0; }
.ad-white > h3 { margin-bottom: 14px; }
.ad-white > p { margin: 8px 0 0; }
.ad-row { align-items: flex-start; flex-wrap: wrap; }
.ad-row .ad-actions { flex: 1 1 240px; }
.ad-more {
  align-self: center;
  margin-top: 8px;
  border: 0;
  background: #fff;
  color: #1a73e8;
  border-radius: 999px;
  padding: 10px 16px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.15);
}
.ad-more span {
  background: #e8f0fe;
  color: #1a73e8;
  border-radius: 999px;
  min-width: 22px;
  padding: 0 6px;
  font-size: 12px;
}
.ad-person {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
}
.ad-person span { color: #5f6368; font-size: 13px; }
html[data-color-mode="dark"] .ad-root,
body[data-color-mode="dark"] .ad-root {
  background: #12141a;
  color: #e8eaed;
}
html[data-color-mode="dark"] .ad-panel,
body[data-color-mode="dark"] .ad-panel {
  background: #1c2433 !important;
}
html[data-color-mode="dark"] .ad-white,
html[data-color-mode="dark"] .ad-metric,
html[data-color-mode="dark"] .ad-alert,
html[data-color-mode="dark"] .ad-person,
html[data-color-mode="dark"] .ad-more,
body[data-color-mode="dark"] .ad-white,
body[data-color-mode="dark"] .ad-metric,
body[data-color-mode="dark"] .ad-alert,
body[data-color-mode="dark"] .ad-person,
body[data-color-mode="dark"] .ad-more {
  background: #242a36;
  color: #e8eaed;
}
html[data-color-mode="dark"] .ad-tabs button,
html[data-color-mode="dark"] .ad-chips button,
html[data-color-mode="dark"] .ad-actions button,
html[data-color-mode="dark"] .ad-actions a,
html[data-color-mode="dark"] .ad-text-btn,
body[data-color-mode="dark"] .ad-tabs button,
body[data-color-mode="dark"] .ad-chips button,
body[data-color-mode="dark"] .ad-actions button,
body[data-color-mode="dark"] .ad-actions a,
body[data-color-mode="dark"] .ad-text-btn {
  background: #2b3240;
  color: #e8eaed;
}
html[data-color-mode="dark"] .ad-tabs button.is-on,
html[data-color-mode="dark"] .ad-chips button.is-on,
body[data-color-mode="dark"] .ad-tabs button.is-on,
body[data-color-mode="dark"] .ad-chips button.is-on {
  background: #1a73e8;
  color: #fff;
}
html[data-color-mode="dark"] .ad-field input,
html[data-color-mode="dark"] .ad-actions select,
body[data-color-mode="dark"] .ad-field input,
body[data-color-mode="dark"] .ad-actions select {
  background: #1b202a;
  color: #e8eaed;
  border-color: #3c4454;
}
html[data-color-mode="dark"] .ad-title p,
html[data-color-mode="dark"] .ad-panel header p,
html[data-color-mode="dark"] .ad-empty,
html[data-color-mode="dark"] .ad-metric span,
html[data-color-mode="dark"] .ad-metric small,
html[data-color-mode="dark"] .ad-person span,
body[data-color-mode="dark"] .ad-title p,
body[data-color-mode="dark"] .ad-panel header p,
body[data-color-mode="dark"] .ad-empty,
body[data-color-mode="dark"] .ad-metric span,
body[data-color-mode="dark"] .ad-metric small,
body[data-color-mode="dark"] .ad-person span {
  color: #9aa0a6;
}
html[data-color-mode="dark"] .ad-save,
body[data-color-mode="dark"] .ad-save {
  background: #1a73e8;
  color: #fff;
}
html[data-color-mode="dark"] .ad-setting,
html[data-color-mode="dark"] .ad-section-summary,
html[data-color-mode="dark"] .ad-lookup,
html[data-color-mode="dark"] .ad-lookup-stats article,
body[data-color-mode="dark"] .ad-setting,
body[data-color-mode="dark"] .ad-section-summary,
body[data-color-mode="dark"] .ad-lookup,
body[data-color-mode="dark"] .ad-lookup-stats article {
  background: #242a36;
  color: #e8eaed;
}
html[data-color-mode="dark"] .ad-lookup dl div,
body[data-color-mode="dark"] .ad-lookup dl div,
html[data-color-mode="dark"] .ad-lookup__id,
body[data-color-mode="dark"] .ad-lookup__id {
  background: #1b202a;
  color: #e8eaed;
}
html[data-color-mode="dark"] .ad-section-grid .ad-setting,
body[data-color-mode="dark"] .ad-section-grid .ad-setting,
html[data-color-mode="dark"] .ad-setting-field input,
html[data-color-mode="dark"] .ad-plan,
body[data-color-mode="dark"] .ad-setting-field input,
body[data-color-mode="dark"] .ad-plan {
  background: #1b202a;
  color: #e8eaed;
  border-color: #3c4454;
}
html[data-color-mode="dark"] .ad-plan.is-on,
body[data-color-mode="dark"] .ad-plan.is-on {
  background: #1c3f73;
  border-color: #8ab4f8;
}
html[data-color-mode="dark"] .ad-setting__copy small,
html[data-color-mode="dark"] .ad-setting-field small,
html[data-color-mode="dark"] .ad-plan span,
html[data-color-mode="dark"] .ad-section-summary span,
body[data-color-mode="dark"] .ad-setting__copy small,
body[data-color-mode="dark"] .ad-setting-field small,
body[data-color-mode="dark"] .ad-plan span,
body[data-color-mode="dark"] .ad-section-summary span {
  color: #9aa0a6;
}
@media (min-width: 900px) {
  .ad-root { padding-inline: 24px; }
  .ad-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ad-chart-grid { grid-template-columns: 1.4fr 1fr; }
}

.ad-root a,
.ad-root a:hover,
.ad-root a:focus {
  text-decoration: none;
}
.ad-root .ad-actions a,
.ad-root .ad-text-btn {
  color: #1a73e8;
}
.ad-title__logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
  flex: 0 0 auto;
}
.ad-chart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.ad-card {
  background: #fff;
  border: 1px solid #e0e3e7;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ad-entity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  background: #fff;
  border: 1px solid #e0e3e7;
  border-radius: 16px;
  padding: 12px 14px;
}
.ad-card .ad-entity,
.ad-white .ad-entity {
  border: 0;
  padding: 0;
  background: transparent;
}
a.ad-entity:hover {
  border-color: #d2e3fc;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.12), 0 1px 3px 1px rgba(60, 64, 67, 0.08);
}
.ad-entity__mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #e8f0fe;
  color: #1a73e8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
  font-weight: 700;
}
.ad-entity__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ad-entity__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.ad-entity__copy strong {
  font-size: 15px;
  font-weight: 600;
  color: #202124;
}
.ad-entity__copy span {
  color: #5f6368;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ad-entity__side {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 1 auto;
}
.ad-channel,
.ad-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  background: #f1f3f4;
  color: #3c4043;
  white-space: nowrap;
}
.ad-channel--android { background: #e6f4ea; color: #137333; }
.ad-channel--mobile { background: #fef7e0; color: #b06000; }
.ad-channel--web { background: #e8f0fe; color: #1967d2; }
.ad-channel--unknown { background: #f1f3f4; color: #5f6368; }
.ad-pill--active { background: #e6f4ea; color: #137333; }
.ad-pill--pending { background: #fef7e0; color: #b06000; }
.ad-pill--suspended { background: #fce8e6; color: #c5221f; }
.ad-facts {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 16px;
  margin: 14px 0 0;
}
.ad-facts dt {
  margin: 0;
  color: #5f6368;
  font-weight: 500;
}
.ad-facts dd {
  margin: 0;
  color: #202124;
}
.ad-device-grid,
.ad-split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}
.ad-split-grid > .ad-white {
  height: 100%;
}
@media (min-width: 860px) {
  .ad-device-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-split-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .ad-device-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ad-split-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.ad-device-board {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ad-device-block > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.ad-device-block > header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.ad-device-block > header p {
  margin: 0;
  color: #5f6368;
  font-size: 13px;
}
.ad-device-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid #e0e3e7;
  border-radius: 16px;
  padding: 14px;
  min-width: 0;
}
.ad-device-card > header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ad-device-card > header div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ad-device-card strong {
  display: block;
  width: auto;
  height: auto;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: transparent;
}
.ad-panel .ad-device-card > header .ad-device-card__meta,
.ad-device-card__meta {
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #5f6368;
  font-size: 12px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
}
.ad-panel .ad-device-card > header .ad-device-card__icon,
.ad-device-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8f0fe;
  color: #1a73e8;
  flex: 0 0 40px;
  font-size: 18px;
  line-height: 1;
}
.ad-device-card__icon i {
  font-size: 18px;
  line-height: 1;
}
.ad-panel .ad-device-card > header .ad-device-card__icon--android,
.ad-device-card__icon--android { background: #e6f4ea; color: #137333; }
.ad-panel .ad-device-card > header .ad-device-card__icon--mobile,
.ad-device-card__icon--mobile { background: #fef7e0; color: #b06000; }
.ad-panel .ad-device-card > header .ad-device-card__icon--web,
.ad-device-card__icon--web { background: #e8f0fe; color: #1967d2; }
.ad-device-card > .ad-channel {
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
}
.ad-device-card dl {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.ad-device-card dl div {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  background: #f1f3f4;
  border-radius: 999px;
  padding: 5px 10px;
}
.ad-device-card dt {
  margin: 0;
  color: #5f6368;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}
.ad-device-card dd {
  margin: 0;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
}
.ad-device-card__track,
.ad-insight__track {
  display: block;
  height: 6px;
  border-radius: 99px;
  background: #e8eaed;
  overflow: hidden;
}
.ad-device-card__track > i,
.ad-insight__track > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #1a73e8;
  max-width: 100%;
}
.ad-insight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.ad-insight {
  background: #fff;
  border: 1px solid #e0e3e7;
  border-radius: 16px;
  padding: 14px;
  min-width: 0;
}
.ad-insight h3 {
  margin: 0 0 10px;
  font-size: 14px;
}
.ad-insight ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ad-insight li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
}
.ad-insight li span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.ad-insight li b { font-size: 13px; }
.ad-insight__track { grid-column: 1 / -1; }
@media (min-width: 860px) {
  .ad-insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .ad-insight-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
html[data-color-mode="dark"] .ad-device-card,
html[data-color-mode="dark"] .ad-insight,
body[data-color-mode="dark"] .ad-device-card,
body[data-color-mode="dark"] .ad-insight {
  background: #242a36;
  border-color: #3c4454;
  color: #e8eaed;
}
html[data-color-mode="dark"] .ad-device-card dl div,
body[data-color-mode="dark"] .ad-device-card dl div {
  background: #1b202a;
}
html[data-color-mode="dark"] .ad-panel .ad-device-card > header .ad-device-card__meta,
html[data-color-mode="dark"] .ad-device-card__meta,
html[data-color-mode="dark"] .ad-device-card dt,
body[data-color-mode="dark"] .ad-panel .ad-device-card > header .ad-device-card__meta,
body[data-color-mode="dark"] .ad-device-card__meta,
body[data-color-mode="dark"] .ad-device-card dt {
  color: #9aa0a6;
}
html[data-color-mode="dark"] .ad-device-card__track,
html[data-color-mode="dark"] .ad-insight__track,
body[data-color-mode="dark"] .ad-device-card__track,
body[data-color-mode="dark"] .ad-insight__track {
  background: #3c4454;
}
.ad-device .ad-channel { margin-top: 6px; }
html[data-color-mode="dark"] .ad-card,
html[data-color-mode="dark"] .ad-entity,
body[data-color-mode="dark"] .ad-card,
body[data-color-mode="dark"] .ad-entity {
  background: #242a36;
  border-color: #3c4454;
  color: #e8eaed;
}
html[data-color-mode="dark"] .ad-card .ad-entity,
html[data-color-mode="dark"] .ad-white .ad-entity,
body[data-color-mode="dark"] .ad-card .ad-entity,
body[data-color-mode="dark"] .ad-white .ad-entity {
  background: transparent;
}
html[data-color-mode="dark"] .ad-entity__copy strong,
html[data-color-mode="dark"] .ad-facts dd,
body[data-color-mode="dark"] .ad-entity__copy strong,
body[data-color-mode="dark"] .ad-facts dd {
  color: #e8eaed;
}
html[data-color-mode="dark"] .ad-entity__mark,
body[data-color-mode="dark"] .ad-entity__mark {
  background: #1c3a5f;
  color: #8ab4f8;
}
html[data-color-mode="dark"] .ad-channel,
html[data-color-mode="dark"] .ad-pill,
body[data-color-mode="dark"] .ad-channel,
body[data-color-mode="dark"] .ad-pill {
  background: #2b3240;
  color: #e8eaed;
}
html[data-color-mode="dark"] .ad-channel--android,
body[data-color-mode="dark"] .ad-channel--android { background: #1e3a2f; color: #81c995; }
html[data-color-mode="dark"] .ad-channel--mobile,
body[data-color-mode="dark"] .ad-channel--mobile { background: #3d2e12; color: #fdd663; }
html[data-color-mode="dark"] .ad-channel--web,
body[data-color-mode="dark"] .ad-channel--web { background: #1c3a5f; color: #8ab4f8; }
html[data-color-mode="dark"] .ad-root .ad-actions a,
html[data-color-mode="dark"] .ad-root .ad-text-btn,
body[data-color-mode="dark"] .ad-root .ad-actions a,
body[data-color-mode="dark"] .ad-root .ad-text-btn {
  color: #8ab4f8;
}
