@charset "UTF-8";
:root {
  /* ==========================================================================
     1. PRIMITIVES — static values. Never overridden by themes.
     ========================================================================== */
  /* Typography */
  --v-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  /* Type scale */
  --v-fs-0: 0.75rem; /* 12px */
  --v-fs-1: 0.875rem; /* 14px */
  --v-fs-2: 1rem; /* 16px */
  --v-fs-3: 1.125rem; /* 18px */
  --v-fs-4: 1.25rem; /* 20px */
  --v-fs-5: 1.5rem; /* 24px */
  --v-fs-6: 1.875rem; /* 30px */
  --v-fs-7: 2.25rem; /* 36px */
  /* Spacing scale (8px grid) */
  --v-1: 0.25rem; /* 4 */
  --v-2: 0.5rem; /* 8 */
  --v-3: 0.75rem; /* 12 */
  --v-4: 1rem; /* 16 */
  --v-5: 1.5rem; /* 24 */
  --v-6: 2rem; /* 32 */
  --v-7: 3rem; /* 48 */
  --v-8: 4rem; /* 64 */
  /* Layout */
  --v-container: 72rem; /* 1152px */
  --v-page-pad: 1.25rem;
  --v-sidebar-w: 240px;
  --v-header-h: 64px;
  --v-header-pad: 14px;
  --v-header-gap: 10px;
  --v-control-h: 42px;
  --v-btn-actions-h: 25px;
  /* Table */
  --v-send-invite-width: 8rem;
  /* Base / Neutrals */
  --color-black: #000000;
  --color-night: #0a0a0a; /* very dark gray / almost black */
  --color-white: #ffffff;
  --color-smoke: #f5f5f5; /* very light gray / smoke */
  --color-focus: #5a8268; /* blue focus ring / primary accent */
  /* Brand */
  --color-brand: #466953;
  --color-brand-dark: #26332d;
  /* Grayscale (a = lighter → base → b = darker) */
  --color-gray-a9: #f8f9fa;
  --color-gray-a8: #f1f3f5;
  --color-gray-a7: #e9ecef;
  --color-gray-a6: #dee2e6;
  --color-gray-a5: #ced4da;
  --color-gray-a4: #adb5bd;
  --color-gray-a3: #868e96;
  --color-gray-a2: #6c757d;
  --color-gray-a1: #495057;
  --color-gray-base: #343a40; /* ≈ gray-800 */
  --color-gray-b0: #2d3436;
  --color-gray-b1: #212529;
  --color-gray-b2: #1a1e21;
  --color-gray-b3: #141618;
  --color-gray-b4: #0f1112;
  --color-gray-b5: #0b0c0d;
  --color-gray-b6: #08090a;
  --color-gray-b7: #050606;
  --color-gray-b8: #030404;
  --color-gray-b9: #000000;
  /* Transparent overlay shades (used over images / surfaces) */
  --color-black-a9: rgba(0, 0, 0, 0.95);
  --color-black-a8: rgba(0, 0, 0, 0.9);
  --color-black-a7: rgba(0, 0, 0, 0.8);
  --color-black-a6: rgba(0, 0, 0, 0.7);
  --color-black-a5: rgba(0, 0, 0, 0.6);
  --color-black-a4: rgba(0, 0, 0, 0.5);
  --color-black-a3: rgba(0, 0, 0, 0.4);
  --color-black-a2: rgba(0, 0, 0, 0.3);
  --color-black-a1: rgba(0, 0, 0, 0.2);
  --color-black-base: rgba(0, 0, 0, 0.1);
  --color-black-b0: rgba(0, 0, 0, 0.08);
  --color-black-b1: rgba(0, 0, 0, 0.06);
  --color-black-b2: rgba(0, 0, 0, 0.04);
  --color-black-b3: rgba(0, 0, 0, 0.03);
  --color-black-b4: rgba(0, 0, 0, 0.02);
  --color-white-a9: rgba(255, 255, 255, 0.95);
  --color-white-a8: rgba(255, 255, 255, 0.9);
  --color-white-a7: rgba(255, 255, 255, 0.8);
  --color-white-a6: rgba(255, 255, 255, 0.7);
  --color-white-a5: rgba(255, 255, 255, 0.6);
  --color-white-a4: rgba(255, 255, 255, 0.5);
  --color-white-a3: rgba(255, 255, 255, 0.4);
  --color-white-a2: rgba(255, 255, 255, 0.3);
  --color-white-a1: rgba(255, 255, 255, 0.2);
  --color-white-base: rgba(255, 255, 255, 0.1);
  --color-white-b0: rgba(255, 255, 255, 0.08);
  --color-white-b1: rgba(255, 255, 255, 0.06);
  --color-white-b2: rgba(255, 255, 255, 0.04);
  --color-white-b3: rgba(255, 255, 255, 0.03);
  --color-white-b4: rgba(255, 255, 255, 0.02);
  /* Semantic / Accent colors */
  --color-indigo-base: #4f46e5; /* indigo-600-ish */
  --color-indigo-50: #eef2ff;
  --color-indigo-100: #e0e7ff;
  --color-indigo-200: #c7d2fe;
  --color-indigo-300: #a5b4fc;
  --color-indigo-400: #818cf8;
  --color-indigo-500: #6366f1;
  --color-indigo-600: #4f46e5;
  --color-indigo-700: #4338ca;
  --color-indigo-800: #3730a3;
  --color-indigo-900: #312e81;
  --color-blue-base: #2563eb; /* blue-600 */
  --color-blue-50: #eff6ff;
  --color-blue-100: #dbeafe;
  --color-blue-200: #bfdbfe;
  --color-blue-300: #93c5fd;
  --color-blue-400: #60a5fa;
  --color-blue-500: #3b82f6;
  --color-blue-600: #2563eb;
  --color-blue-700: #1d4ed8;
  --color-blue-800: #1e40af;
  --color-blue-900: #1e3a8a;
  --color-red-base: #dc2626; /* red-600 */
  --color-red-50: #fef2f2;
  --color-red-100: #fee2e2;
  --color-red-200: #fecaca;
  --color-red-300: #fca5a5;
  --color-red-400: #f87171;
  --color-red-500: #ef4444;
  --color-red-600: #dc2626;
  --color-red-700: #b91c1c;
  --color-red-800: #991b1b;
  --color-red-900: #7f1d1d;
  --color-green-base: #16a34a; /* green-600 */
  --color-green-50: #f0fdf4;
  --color-green-100: #dcfce7;
  --color-green-200: #bbf7d0;
  --color-green-300: #86efac;
  --color-green-400: #4ade80;
  --color-green-500: #22c55e;
  --color-green-600: #16a34a;
  --color-green-700: #15803d;
  --color-green-800: #166534;
  --color-green-900: #14532d;
  --color-yellow-base: #ca8a04; /* yellow-700 / amber-ish */
  --color-yellow-50: #fefce8;
  --color-yellow-100: #fef9c3;
  --color-yellow-200: #fde047;
  --color-yellow-300: #facc15;
  --color-yellow-400: #facc15;
  --color-yellow-500: #eab308;
  --color-yellow-600: #ca8a04;
  --color-yellow-700: #a16207;
  --color-yellow-800: #854d0e;
  --color-yellow-900: #713f12;
  --color-violet-50: #f5f3ff;
  --color-violet-100: #ede9fe;
  --color-violet-200: #ddd6fe;
  --color-violet-500: #8b5cf6;
  --color-violet-600: #7c3aed;
  --color-violet-700: #6d28d9;
  --color-violet-800: #5b21b6;
  --color-rose-50: #fff1f2;
  --color-rose-100: #ffe4e6;
  --color-rose-200: #fecdd3;
  --color-rose-700: #be123c;
  --color-sky-100: #e0f2fe;
  --color-sky-200: #bae6fd;
  --color-sky-700: #0369a1;
  --color-cyan-400: #22d3ee;
  --color-pink-100: #fce7f3;
  --color-pink-800: #9d174d;
  --color-amber-200: #fde68a;
  --color-amber-300: #fcd34d;
  --color-amber-600: #d97706;
  --color-orange-50: #fff7ed;
  --color-orange-200: #fed7aa;
  --color-orange-800: #9a3412;
  /* Data visualization palettes (warm / cool / spectrum) */
  --data-warm-10: #6b21a8;
  --data-warm-20: #7c3aed;
  --data-warm-30: #a855f7;
  --data-warm-40: #c084fc;
  --data-warm-50: #d8b4fe;
  --data-warm-60: #e9d5ff;
  --data-warm-70: #f3e8ff;
  --data-warm-80: #faf5ff;
  --data-warm-90: #fdf4ff;
  --data-cool-10: #1e40af;
  --data-cool-20: #1d4ed8;
  --data-cool-30: #2563eb;
  --data-cool-40: #3b82f6;
  --data-cool-50: #60a5fa;
  --data-cool-60: #93c5fd;
  --data-cool-70: #bfdbfe;
  --data-cool-80: #dbeafe;
  --data-cool-90: #eff6ff;
  --spectrum-red: #ef4444;
  --spectrum-orange: #f97316;
  --spectrum-yellow: #eab308;
  --spectrum-lime: #84cc16;
  --spectrum-green: #22c55e;
  /* ==========================================================================
     2. SEMANTIC TOKENS — the theme contract.
     These (and only these) may be overridden by html[data-theme] blocks
     in vibe_themes.scss. :root values below ARE the light (default) theme.
     Colours: the Vibe colour atlas (vibe.vibepages.co.il/vibe-color-atlas),
     made the admin default 2026-10-18.
     ========================================================================== */
  /* Typeface */
  --v-font-sans: "Rubik", "Heebo", "Assistant", Arial, sans-serif;
  /* Shape */
  --v-radius-sm: 12px;
  --v-radius-md: 16px;
  --v-radius-lg: 24px;
  --v-radius-hg: 32px;
  --v-radius: 20px;
  --v-radius-card: 24px;
  --v-control-radius: 14px;
  --v-btn-actions-radius: 14px;
  /* Surfaces */
  --v-bg: #ffffff;
  --v-surface: #f8f6f0;
  --v-bg-muted: #d9e5d8;
  --v-light-gray-bg: #f3f0e8;
  /* Text */
  --v-text: #2b3430;
  --v-text-secondary: #26332d;
  --v-text-muted: #58655d;
  --v-text-faint: #819982;
  /* Border */
  --v-border: #dde3d9;
  --v-border-muted: #e9eee7;
  /* Brand */
  --v-primary: #466953;
  --v-primary-hover: #3a5a46;
  --v-on-primary: #ffffff;
  /* Links */
  --v-link: #466953;
  --v-link-hover: #26332d;
  /* Focus */
  --v-focus: #5a8268;
  --v-ring: #d9e5d8;
  /* Status */
  --v-positive: #16a34a;
  --v-negative: #dc2626;
  --v-warning: #f59e0b;
  --v-info: #5a8268;
  --v-positive-bg: #dcfce7;
  --v-positive-text: #14532d;
  --v-negative-bg: #fee2e2;
  --v-negative-text: #7f1d1d;
  --v-warning-bg: #fef3c7;
  --v-warning-text: #78350f;
  --v-info-bg: #e9eee7;
  --v-info-text: #26332d;
  /* Note (warm callout) */
  --v-note-bg: #f4eee2;
  --v-note-border: #d3c4a9;
  --v-note-text: #4a3f2c;
  /* Fields */
  --v-field-bg: #ffffff;
  --v-field-border: #d5ddd1;
  --v-field-text: #2b3430;
  /* Shadows */
  --v-shadow-sm: 0 1px 2px rgba(38, 51, 45, 0.06);
  --v-shadow-md: 0 8px 24px rgba(38, 51, 45, 0.1);
  /* Buttons — primary */
  --v-btn-bg: #466953;
  --v-btn-bg-hover: #3a5a46;
  --v-btn-bg-active: #26332d;
  --v-btn-bg-focus: #466953;
  --v-btn-bg-disabled: #b5c9b5;
  --v-btn-text: #ffffff;
  --v-btn-text-hover: #ffffff;
  --v-btn-text-active: #ffffff;
  --v-btn-text-disabled: #58655d;
  /* Buttons — secondary */
  --v-btn-secondary-bg: #e9eee7;
  --v-btn-secondary-bg-hover: #d9e5d8;
  --v-btn-secondary-bg-active: #b5c9b5;
  --v-btn-secondary-bg-focus: #e9eee7;
  --v-btn-secondary-bg-disabled: #f3f0e8;
  --v-btn-text-secondary: #26332d;
  --v-btn-secondary-text-hover: #26332d;
  --v-btn-secondary-text-active: #26332d;
  --v-btn-secondary-text-disabled: #819982;
  /* Buttons — action */
  --v-btn-bg-action: #466953;
  --v-btn-border-action: #466953;
  --v-btn-text-action: #ffffff;
  --v-btn-bg-action-hover: #3a5a46;
  /* Buttons — delete */
  --v-btn-bg-delete: var(--color-red-600);
  --v-btn-border-delete: var(--color-red-800);
  --v-btn-text-delete: var(--color-white);
  --v-btn-bg-delete-hover: var(--color-red-700);
}

/* ==========================================================================
   Vibes Base CSS v0.1
   Goal: replace Kube “defaults” with a modern, small, predictable foundation.
   - Uses rem for type/spacing; px for hairlines.
   - Styles ELEMENTS (so your existing HTML keeps working).
   - Includes sensible forms/buttons/table defaults.
   ========================================================================== */
/* ------------------------------
   2) Modern reset (small + safe)
   ------------------------------ */
html {
  box-sizing: border-box;
  font-size: 100%; /* keep native 16px baseline */
  -webkit-text-size-adjust: 100%;
  color-scheme: light dark;
}

html,
body {
  height: 100%;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

* {
  margin: 0;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  font-family: var(--v-font-sans);
  font-size: var(--v-fs-2);
  line-height: 1.55;
  color: var(--v-text);
  background: var(--v-bg);
  text-rendering: optimizeLegibility;
  margin: 0;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

ul,
ol {
  padding-inline-start: 1.25em;
}

a {
  color: var(--v-link);
  text-decoration: none;
}

a:hover {
  color: var(--v-link-hover);
  text-decoration: underline;
}

/* Better focus defaults */
:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--v-focus) 70%, transparent);
  outline-offset: 2px;
}

/* Reduce motion when requested */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
/* ------------------------------
   3) Typography (element styles)
   ------------------------------ */
h1 {
  font-size: var(--v-fs-7);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--v-fs-6);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h3 {
  font-size: var(--v-fs-5);
  line-height: 1.25;
}

h4 {
  font-size: var(--v-fs-4);
  line-height: 1.3;
}

h5 {
  font-size: var(--v-fs-3);
  line-height: 1.35;
}

h6 {
  font-size: var(--v-fs-2);
  line-height: 1.4;
}

p {
  color: var(--v-text);
  margin-bottom: var(--v-4);
}

small {
  font-size: var(--v-fs-1);
  color: var(--v-text-muted);
}

hr {
  border: 0;
  border-top: 1px solid var(--v-border); /* px hairline */
  margin: var(--v-6) 0;
}

/* Code */
code,
pre,
kbd,
samp {
  font-family: var(--v-font-mono);
  font-size: 0.95em;
}

pre {
  background: var(--v-surface);
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-md);
  padding: var(--v-4);
  overflow: auto;
}

/* ------------------------------
   4) Layout helpers (tiny)
   ------------------------------ */
.v-container {
  width: min(100% - var(--v-5) * 2, var(--v-container));
  margin-inline: auto;
}

.v-stack > * + * {
  margin-top: var(--v-4);
}

.v-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--v-3);
  align-items: center;
}

/* Screen-reader only */
.v-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ------------------------------
   5) Forms (where most “breaks” happen)
   ------------------------------ */
fieldset {
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-md);
  padding: var(--v-4);
}

legend {
  padding: 0 var(--v-2);
  font-weight: 700;
}

/* ------------------------------
   6) Tables
   ------------------------------ */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--v-bg);
}

th,
td {
  text-align: start;
  padding: var(--v-4) var(--v-3);
  border-bottom: 1px solid var(--v-border);
  vertical-align: top;
}

th {
  font-weight: 700;
  color: var(--v-text);
  background: color-mix(in oklab, var(--v-surface) 70%, var(--v-bg));
}

/* ------------------------------
   7) Common content elements
   ------------------------------ */
blockquote {
  border-inline-start: 3px solid var(--v-border);
  padding-inline-start: var(--v-4);
  color: var(--v-text-muted);
}

mark {
  background: color-mix(in oklab, var(--v-warning) 35%, transparent);
  color: inherit;
  padding: 0 0.2em;
  border-radius: 0.2em;
}

/* ------------------------------
   8) Optional: simple “card”
   ------------------------------ */
.v-card {
  background: var(--v-bg);
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-lg);
  padding: var(--v-5);
  box-shadow: var(--v-shadow-sm);
}

/* ==========================================================================
   REDACTOR RTL IMAGE ALIGNMENT - FINAL PERFECT VERSION
   ========================================================================== */
.rx-editor img,
.rx-editor .redactor-image-container img {
  display: inline-block !important;
  max-width: 100% !important;
  height: auto !important;
}

/* CENTER */
.rx-editor figure[style*="text-align: center"],
.rx-editor .redactor-image-container.image-center {
  text-align: center !important;
  margin: 25px auto !important;
  display: block !important;
  float: none !important;
}

/* RIGHT */
.rx-editor figure[style*="text-align: right"],
.rx-editor .redactor-image-container.image-right {
  text-align: right !important;
  margin: 25px auto 25px 0 !important;
  display: block !important;
  float: none !important;
}

/* LEFT */
.rx-editor figure[style*="text-align: left"],
.rx-editor .redactor-image-container.image-left {
  text-align: left !important;
  margin: 25px 0 25px auto !important;
  display: block !important;
  float: none !important;
}

/* ניקוי כללי */
.rx-editor img[style*=float],
.rx-editor figure[style*=float],
.rx-editor .redactor-image-container {
  float: none !important;
}

/* App shell: main + sidebar */
.v-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr var(--v-sidebar-w);
  overflow: visible;
  background: var(--v-bg-muted);
}

/* Main column stacks header + content */
.v-main-col {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  min-width: 0; /* critical for tables */
  overflow: visible;
}

/* Header is sticky within the main column */
#main_header {
  position: sticky;
  top: 0;
  z-index: 80; /* below dropdown menus if they use higher values */
}

/* Main scroll area (no calc needed) */
.v-main-content {
  flex: 1;
  overflow: auto;
  padding: var(--v-page-pad);
  background: var(--v-bg-muted);
  overflow: visible;
}

/* Content wrappers */
.v-content {
  min-width: 0;
}

.v-page-wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

/* Footer stays at bottom when content is short */
.v-page-wrapper .ic-footer {
  margin-top: auto;
}

/* Ensure sidebar is physically on the RIGHT even in RTL */
.v-main-col {
  grid-column: 1;
}

.v-sidebar {
  grid-column: 2;
}

/* Force grid placement regardless of RTL */
.v-shell {
  grid-template-areas: "main sidebar";
}

.v-main-col {
  grid-area: main;
}

.v-sidebar {
  grid-area: sidebar;
}

/* Keep app grid physical order stable (main left, sidebar right) */
.v-shell {
  direction: ltr;
}

/* Keep your app content RTL */
.v-main-col,
.v-sidebar {
  direction: rtl;
}

/* Hide the sidebar column on desktop */
html.v-sidebar-hidden .v-shell {
  grid-template-columns: 1fr; /* remove sidebar column */
}

html.v-sidebar-hidden .v-sidebar {
  display: none;
}

/* homepage nav */
.topnav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* =========================
   Buttons
   ========================= */
/* Center the button in a general form */
.v-actions--center {
  display: flex;
  justify-content: center; /* horizontal center */
  align-items: center;
  margin-top: 1rem; /* optional spacing */
}

/* main app button */
.v-btn {
  padding: 0 1rem;
  border-radius: var(--v-radius-hg);
  border: 1px solid var(--v-field-border);
  background: var(--v-field-bg);
  color: var(--v-field-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 400;
  transition: transform 80ms ease, background-color 140ms ease, border-color 140ms ease, opacity 140ms ease;
}

.v-btn:active {
  transform: translateY(1px);
  background: color-mix(in oklab, var(--v-field-bg) 84%, black);
}

/* primery */
.v-btn--primary {
  font-weight: 700;
  height: var(--v-control-h);
  background: var(--v-btn-bg);
  color: var(--v-btn-text);
  /* slightly darker border for definition */
  border-color: color-mix(in oklab, var(--v-btn-bg) 90%, black);
}

/* Hover: a bit darker (no need to hardcode) */
.v-btn--primary:hover {
  background: color-mix(in oklab, var(--v-btn-bg) 90%, black);
  border-color: color-mix(in oklab, var(--v-btn-bg) 70%, black);
}

/* Focus ring based on button color */
.v-btn--primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--v-btn-bg) 28%, transparent);
}

/* Disabled buttons */
.v-btn:disabled,
.v-btn[aria-disabled=true] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.v-btn--action {
  padding: 0 0.5rem;
  font-size: 0.8rem;
  height: var(--v-btn-actions-h);
  background: var(--v-btn-bg-action);
  color: var(--v-btn-text-action);
  border-color: color-mix(in oklab, var(--v-btn-border-action) 90%, black);
  /* motion */
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
  transform: translateY(0);
  will-change: transform;
}

.v-btn--action:hover {
  background: var(--v-btn-bg-action-hover);
  box-shadow: 0 6px 26px color-mix(in oklab, black 12%, transparent);
}

.v-btn--action:active {
  transform: translateY(-1px); /* subtle “press” */
  box-shadow: 0 3px 10px color-mix(in oklab, black 10%, transparent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--v-bg-muted) 28%, transparent);
}

/* accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .v-btn--action {
    transition: none;
  }
  .v-btn--action:hover,
  .v-btn--action:active {
    transform: none;
  }
}
/* Links that look like buttons should behave like buttons */
a.v-btn,
a.v-btn:visited {
  color: inherit; /* keep button text color */
  text-decoration: none; /* no underline */
}

/* Variant text colors must survive the a.v-btn inherit rule above
   (a.v-btn wins on specificity + source order over .v-btn--variant) */
a.v-btn--primary,
a.v-btn--primary:visited {
  color: var(--v-btn-text);
}

a.v-btn--action,
a.v-btn--action:visited {
  color: var(--v-btn-text-action);
}

/* Override any global a:hover rules */
a.v-btn:hover,
a.v-btn:focus,
a.v-btn:focus-visible {
  text-decoration: none;
}

/* Ensure primary link-button stays white on hover/visited */
a.v-btn--primary,
a.v-btn--primary:visited,
a.v-btn--primary:hover,
a.v-btn--primary:focus,
a.v-btn--primary:focus-visible {
  color: var(--v-btn-text);
}

.v-btn--delete {
  padding: 0 0.6rem;
  font-size: 0.8rem;
  height: var(--v-btn-actions-h);
  border-color: color-mix(in oklab, var(--v-bg-muted) 90%, black);
  background-color: var(--v-btn-bg-delete);
  color: var(--v-btn-text-delete);
}
.v-btn--delete i {
  font-size: 0.6rem;
}

.v-btn--delete:hover {
  background-color: var(--v-btn-bg-delete-hover);
  box-shadow: 0 6px 26px color-mix(in oklab, black 12%, transparent);
}

.v-btn--delete:focus {
  outline: none;
}

.v-btn--secondary {
  font-weight: 700;
  height: var(--v-control-h);
  background: var(--v-btn-secondary-bg);
  color: var(--v-btn-text-secondary);
  /* slightly darker border for definition */
  border-color: color-mix(in oklab, var(--v-border) 90%, black);
}
.v-btn--secondary i {
  font-size: 1rem;
}

.v-btn--secondary:hover {
  background-color: var(--v-btn-secondary-bg-hover);
}

.v-btn--secondary:focus {
  outline: none;
}

/* Buttons */
.v-upload-btn {
  height: var(--v-fs-7);
  padding: 0 1rem;
  border-radius: var(--v-radius-hg);
  /* slightly darker border for definition */
  border-color: color-mix(in oklab, var(--v-btn-bg) 50%, black);
  background: var(--v-btn-bg);
  color: var(--v-btn-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  transition: transform 80ms ease, background-color 140ms ease, border-color 140ms ease, opacity 140ms ease;
}
.v-upload-btn i {
  margin-right: 0.5rem;
  margin-left: 0.5rem;
}

.v-upload-btn:hover {
  background-color: var(--v-btn-bg-hover);
}

.v-upload-btn:active {
  background-color: var(--v-btn-bg-active);
}

.v-upload-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--v-btn-focus-bg);
}

.v-btn--sm {
  --v-btn-scale: 0.8;
  height: calc(var(--v-control-h) * var(--v-btn-scale));
  padding-inline: calc(1rem * var(--v-btn-scale));
  font-size: calc(1rem * var(--v-btn-scale));
}
.v-btn--sm i {
  font-size: calc(1rem * var(--v-btn-scale));
}

.v-btn--loading {
  opacity: 0.7;
  cursor: not-allowed;
  position: relative;
}

.v-btn--loading::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--v-btn-text); /* spinner on primary button */
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}
/* Sticky header shell */
#main_header.v-header {
  background: var(--v-bg);
  border-bottom: 1px solid var(--v-border);
  z-index: 500; /* keep above sidebar and overlay */
}

/* Desktop grid (single row) */
.v-header__inner {
  height: var(--v-header-h);
  padding-inline: var(--v-header-pad);
  display: grid;
  grid-template-columns: auto 1fr auto; /* actions | search | brand (we place explicitly) */
  grid-template-rows: 1fr;
  align-items: center;
  gap: var(--v-header-gap);
  overflow: visible; /* dropdowns */
}

/* Explicit placement: brand right, actions left */
.v-header__brand {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.v-header__search {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.v-header__actions {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Brand button */
.v-brand {
  width: var(--v-control-h);
  height: var(--v-control-h);
  border-radius: var(--v-control-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--v-text);
  background: var(--v-surface);
  border: none;
}

.v-brand__icon {
  font-size: 27px;
  line-height: 1;
  color: var(--v-btn-bg);
}

/* Search pill */
.v-search {
  width: min(680px, 100%);
  height: var(--v-control-h);
  display: flex;
  align-items: center;
  border: 1px solid var(--v-border);
  background: var(--v-bg);
  border-radius: 999px;
  overflow: hidden;
}
.v-search input[type=text],
.v-search input[type=text]:focus {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  box-shadow: none;
  background: none;
  padding: 0 14px;
  color: var(--v-text);
}
.v-search button {
  border: none;
  outline: none;
  box-shadow: none;
  background: none;
}
.v-search button i:hover {
  background-color: var(--v-bg-muted);
  border-radius: 50%;
  padding: 0.6rem;
}

.v-search__input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 0 14px;
  color: var(--v-text);
}

.v-search__input::placeholder {
  opacity: 0.7;
}

.v-search__button {
  width: 46px;
  height: var(--v-control-h);
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--v-text);
}

/* Icon button (mobile menu) */
.v-icon-button {
  width: var(--v-control-h);
  height: var(--v-control-h);
  border: none;
  background: none;
  box-shadow: none;
  color: var(--v-text);
  cursor: pointer;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Create dropdown anchor */
.v-create {
  position: relative;
}

/* Avatar */
.v-avatar {
  display: block;
  width: var(--v-control-h);
  height: var(--v-control-h);
  border-radius: var(--v-control-h);
  border: 1px solid var(--v-border);
  background: var(--v-surface);
  overflow: hidden;
  text-decoration: none;
  color: var(--v-text);
}

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

/* Fallback avatar (no image) */
.v-avatar--fallback {
  display: inline-flex; /* override display:block */
  align-items: center;
  justify-content: center;
  background: var(--v-surface);
}

/* The user icon inside */
.v-avatar--fallback i {
  font-size: 1rem; /* adjust: 0.95rem–1.1rem */
  line-height: 1;
  opacity: 0.85;
  color: var(--v-text);
}

/* Optional: subtle hover like other icon buttons */
.v-avatar--fallback:hover {
  background: color-mix(in oklab, var(--v-primary) 10%, var(--v-surface));
  border-color: color-mix(in oklab, var(--v-primary) 22%, var(--v-border));
}

/* Mobile: 2 rows (search on top) */
@media (max-width: 1024px) {
  .v-header__inner {
    height: auto;
    padding-block: 10px;
    grid-template-columns: 1fr auto; /* actions left | brand right */
    grid-template-rows: auto auto;
  }
  .v-header__search {
    grid-column: 1/-1;
    grid-row: 1;
    justify-content: flex-start;
  }
  .v-search {
    width: 100%;
  }
  .v-header__actions {
    grid-column: 1;
    grid-row: 2;
  }
  .v-header__brand {
    grid-column: 2;
    grid-row: 2;
  }
}
/* Desktop: hide mobile menu button */
@media (min-width: 1025px) {
  .v-header__menu {
    display: none;
  }
}
/* ==========================================================================
   Vibes Sidebar
   - Desktop: full-height right column inside .v-shell
   - Mobile: off-canvas drawer (.is-open) with #v_overlay
   ========================================================================== */
/* Sidebar column */
.v-sidebar {
  height: 100vh;
  /* important: don't scroll the whole aside; scroll only the nav area */
  overflow: hidden;
  position: sticky;
  top: 0;
  background: var(--v-bg);
  border-left: 1px solid var(--v-border);
  padding: 1rem;
  z-index: 60;
  /* NEW: stick footer to bottom */
  display: flex;
  flex-direction: column;
}

/* Let nav consume available space so footer can sit at bottom */
.v-sidebar > nav {
  flex: 1 1 auto;
  min-height: 0; /* important for overflow-y:auto + flex children */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* smooth iOS scroll */
}

/* Footer stays at bottom (and never overlaps the nav) */
.v-sidebar > footer.sb-footer {
  flex: 0 0 auto;
  margin-top: auto;
  margin: 0; /* override your 60px auto 30px */
}

/* Nav list */
#main_desktop_nav_links .nav {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

#main_desktop_nav_links .nav li {
  margin: 0;
  padding: 0;
}

/* Link */
#main_desktop_nav_links .nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--v-radius-hg);
  color: var(--v-text);
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  transition: background-color 140ms ease, border-color 140ms ease, transform 80ms ease;
}

#main_desktop_nav_links .nav a:hover {
  background-color: var(--v-bg-muted);
  border: 1px solid transparent;
  /*
  background: color-mix(in oklab, var(--v-primary) 10%, transparent);
  border-color: color-mix(in oklab, var(--v-primary) 22%, var(--v-border));
  */
}

#main_desktop_nav_links .nav a:active {
  transform: translateY(1px);
}

/* Active state (from your helper) */
#main_desktop_nav_links .nav a.active {
  background-color: var(--v-bg-muted);
  border: 1px solid transparent;
  /*
  box-shadow: inset -3px 0 0 var(--v-primary);
  background: color-mix(in oklab, var(--v-primary) 16%, transparent);
  border-color: color-mix(in oklab, var(--v-primary) 35%, var(--v-border));/* RTL indicator */
  font-weight: 600;
}

/* Icon / label */
#main_desktop_nav_links .nav .nav-icon {
  width: 1.25rem;
  text-align: center;
  flex: 0 0 1.25rem;
  opacity: 0.9;
}

#main_desktop_nav_links .nav .nav-label {
  line-height: 1.1;
}

/* Overlay (mobile drawer) */
.v-overlay[hidden] {
  display: none !important;
}

.v-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.45);
  z-index: 120;
}

.v-sidebar-header {
  display: flex;
  align-items: center; /* ✅ vertical centering */
  justify-content: flex-start;
  min-height: 48px; /* gives a stable “header bar” height */
}

.v-sidebar-header-actions {
  display: flex;
  align-items: center;
  gap: 0;
}

/* icon-only button (no border) */
.v-icon-ghost {
  width: 38px;
  height: 38px;
  border: none;
  background: none;
  border-radius: none;
  box-shadow: none;
  color: var(--v-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 140ms ease, transform 80ms ease;
}

.v-icon-ghost:hover {
  background: color-mix(in oklab, var(--v-primary) 10%, transparent);
  border-radius: 38px;
}

.v-icon-ghost:active {
  transform: translateY(1px);
}

/* Mobile drawer */
@media (max-width: 1024px) {
  /* Shell becomes single column */
  .v-shell {
    grid-template-columns: 1fr;
  }
  .v-sidebar {
    position: fixed;
    top: 0;
    right: 0; /* RTL */
    width: min(86vw, 340px);
    height: 100dvh; /* better than 100vh on mobile */
    transform: translateX(110%);
    transition: transform 200ms ease;
    border-left: 0;
    z-index: 130;
  }
  .v-sidebar.is-open {
    transform: translateX(0);
  }
  /* don't use huge margin-top; use padding instead */
  #main_desktop_nav_links .nav {
    margin-top: 16px;
    padding-top: 0;
  }
  .v-sidebar > nav {
    padding-top: 90px;
  }
  .v-sidebar-header,
  .v-sidebar-header-actions,
  .v-icon-ghost {
    display: none;
  }
}
/* Footer */
/* InControl Admin Footer (RTL, minimal, responsive) */
.sb-footer {
  direction: rtl;
  unicode-bidi: plaintext;
  max-width: 100%;
  margin: 60px auto 30px;
}

.sb-footer__card {
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

/* Accessibility block */
.sb-footer__a11y {
  text-align: center;
  padding: 10px 0 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.sb-footer__a11y-icon {
  width: 35px;
  height: 35px;
  margin: 0 auto 10px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--v-info) 12%, transparent);
  color: var(--v-link);
  font-size: 20px;
}

.sb-footer__a11y-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--v-link-hover);
  letter-spacing: 0.2px;
  margin-bottom: 14px;
}

.sb-footer__a11y-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.sb-footer__a11y-actions a:link {
  font-size: 0.8rem;
  text-decoration: none;
}
.sb-footer__a11y-actions a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Bottom */
.sb-footer__bottom {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding: 0;
  text-align: center;
}

.sb-footer__bottom-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.sb-footer__bottom-links a {
  color: color-mix(in srgb, var(--v-text) 60%, transparent);
  text-decoration: none;
}

.sb-footer__bottom-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sb-footer__dot {
  color: rgba(15, 23, 42, 0.25);
}

/* Footer pinned to bottom when there's space */
.v-sidebar > footer.sb-footer {
  margin-top: auto; /* 👈 the magic */
  margin-bottom: 0;
}

/* Optional: remove the old big margins so it doesn't float */
.sb-footer {
  margin: 0; /* was: 60px auto 30px */
  max-width: 100%;
}

/* Text Utilities */
.v-text-center {
  text-align: center !important;
}

.centered {
  text-align: center;
}

.v-text-muted {
  color: var(--v-text-muted);
}

small {
  font-size: 0.875rem;
}

.large {
  font-size: 2rem !important;
}

strong {
  font-weight: 700;
}

.ml-2 {
  margin-left: 0.5rem !important;
}

.ml-3 {
  margin-left: 1rem !important;
}

.mr-2 {
  margin-right: 0.5rem !important;
}

.mr-3 {
  margin-right: 1rem !important;
}

/* Margin Utilities */
.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-5 {
  margin-bottom: 2rem !important;
}

.mb-6 {
  margin-bottom: 2.5rem !important;
}

.mb-big {
  margin-bottom: 5rem !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mt-5 {
  margin-top: 2rem !important;
}

.ms-2 {
  margin-left: 0.5rem !important;
}

/* Padding Utilities */
.p-0 {
  padding: 0;
}

.p-3 {
  padding: 1rem;
}

.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

/* Frames */
.fw-200 {
  max-width: 200px;
  margin-inline: auto;
}

.fw-300 {
  max-width: 300px;
  margin-inline: auto;
}

.fw-400 {
  max-width: 400px;
  margin-inline: auto;
}

.fw-500 {
  max-width: 500px;
  margin-inline: auto;
}

.fw-600 {
  max-width: 600px;
  margin-inline: auto;
}

.fw-700 {
  max-width: 700px;
  margin-inline: auto;
}

.fw-800 {
  max-width: 800px;
  margin-inline: auto;
}

.fw-900 {
  max-width: 900px;
  margin-inline: auto;
}

.fw-1000 {
  max-width: 1000px;
  margin-inline: auto;
}

.fw-1100 {
  max-width: 1100px;
  margin-inline: auto;
}

.fw-1200 {
  max-width: 1200px;
  margin-inline: auto;
}

.icon-position {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}

/* Hidden Utilities */
.hidden {
  display: none;
}

.highlight-updated {
  animation: highlight 0.7s;
}

@keyframes highlight {
  from {
    background-color: var(--v-warning-bg);
  }
  to {
    background-color: transparent;
  }
}
.text-muted {
  color: var(--v-text-muted);
}

tr.selected {
  background-color: var(--v-warning-bg) !important;
}

tr.unselected {
  background-color: var(--v-bg) !important;
}

tr.unselected:hover {
  background-color: var(--v-warning-bg) !important;
}

.actions-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* Page content frame (card-like surface) */
.v-content-frame {
  width: 100%;
  padding: 1.25rem; /* internal spacing */
  background: var(--v-bg);
  border-radius: 18px;
  margin-bottom: 10rem;
  position: relative; /* anchor for the dropdown */
  overflow: visible; /* allow dropdown to escape the card */
}

/* Dropdown pinned to the top-right corner of the frame */
.v-page-dropdown {
  position: absolute;
  top: 1rem;
  left: 0;
}

.v-content-header {
  margin-bottom: 2rem;
}

/* Page title inside frame */
.v-content-header > h1 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  line-height: 1.25;
  padding-left: 5.5rem; /* adjust if your dropdown is wider */
}

.v-content-header > p {
  margin: 0 0 18px;
  color: var(--v-text-muted);
  font-size: 0.95rem;
  padding-left: 5.5rem; /* same idea */
}

/* Responsive padding */
@media (max-width: 640px) {
  .v-content-frame {
    padding: 1rem;
    border-radius: 16px;
  }
  .v-content-frame .v-page-dropdown {
    top: 0.75rem;
    left: 0;
  }
  .v-content-frame > h1,
  .v-content-frame > p {
    padding-left: 5.5rem;
  }
}
.intro-text {
  margin: 0 0 1.5rem;
}

/* =========================
    Breadcrumb
   ========================= */
.v-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem; /* small */
  color: color-mix(in oklab, var(--v-text) 55%, transparent); /* muted */
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.v-breadcrumb-item a {
  color: var(--v-text-muted);
  text-decoration: none;
}

.v-breadcrumb-item a:hover {
  color: var(--v-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.v-breadcrumb .breadcrumb_icon {
  font-size: 0.7rem;
  opacity: 0.55;
  transform: translateY(1px);
}

/* =========================
    Crop Images
   ========================= */
div#crop_container {
  overflow: hidden;
}
div#crop_container .model_image_canvas {
  max-width: 250px;
  max-height: 250px;
  margin: 0 auto;
}

/* =========================
    Icons
   ========================= */
.v-i--positive {
  color: var(--v-positive);
}

.v-i--negative {
  color: var(--v-negative);
}

.v-i--info {
  color: var(--v-info);
}

.v-i--warning {
  color: var(--v-warning);
}

/* =========================
    Table
   ========================= */
td.send-invite {
  min-width: var(--v-send-invite-width);
}

/* -------------------------------------------------
   Responsive tables (desktop: table, mobile: cards)
   Usage: <div class="v-table--cards"><table>...</table></div>
   ------------------------------------------------- */
/* Optional middle state: allow horizontal scrolling before reflow */
@media (max-width: 980px) {
  .v-table--cards {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  /*
  .v-table--cards table {
    /* min-width: 900px;  adjust or remove
  } */
}
/* Mobile: reflow into cards */
@media (max-width: 1200px) {
  .v-table--cards {
    overflow: visible;
    max-width: 400px;
    margin: 0 auto;
  }
  td.send-invite {
    width: 100%;
    min-width: 100%;
  }
  .v-table--cards table,
  .v-table--cards thead,
  .v-table--cards tbody,
  .v-table--cards tr,
  .v-table--cards th,
  .v-table--cards td {
    display: block;
  }
  .v-table--cards thead {
    display: none;
  }
  .v-table--cards tbody tr {
    background: var(--v-bg);
    border: 1px solid var(--v-border);
    border-radius: var(--v-radius);
    padding: var(--v-3);
    margin-bottom: var(--v-3);
  }
  .v-table--cards td {
    border-bottom: 0;
    padding: var(--v-1) var(--v-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--v-3);
  }
  .v-table--cards td::before {
    content: attr(data-label);
    color: var(--v-text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    flex: 0 0 auto;
  }
  .v-table--cards .v-btn,
  .v-table--cards button,
  .v-table--cards input,
  .v-table--cards select {
    max-width: 100%;
  }
}
/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35em 0.75em;
  border-radius: 2rem;
  border: 1px solid var(--v-light-gray-bg);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  vertical-align: baseline;
}

.light-gray-bg {
  background-color: var(--v-light-gray-bg);
}

.bg-gray {
  background-color: var(--v-bg-muted);
}

.bg-success {
  background-color: var(--v-positive-bg);
  color: var(--v-positive-text);
}

.bg-warning {
  background-color: var(--v-warning-bg);
  color: var(--v-warning-text);
}

.bg-info {
  background-color: var(--v-info-bg);
  color: var(--v-info-text);
}

.bg-danger {
  background-color: var(--v-negative-bg);
  color: var(--v-negative-text);
}

/* Info Component */
.info-box {
  position: relative;
  padding: 1rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 1rem;
}

.bg-simple {
  background-color: var(--v-positive-bg);
  color: var(--v-text);
}

.info-heading {
  color: inherit;
  margin-bottom: 0.5rem;
}

.handle {
  cursor: grab;
}

.no_image_present {
  background: var(--v-light-gray-bg);
  border: 2px dashed var(--color-gray-a5);
  border-radius: var(--v-radius-lg);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--v-text-muted);
  font-size: 16px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.no_image_present:hover {
  background: var(--v-bg-muted);
  border-color: var(--v-text-faint);
}

/* Animation on copy success */
.copied-animate {
  animation: copySuccess 0.6s ease-in-out;
}

@keyframes copySuccess {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
a.copied {
  color: var(--v-positive);
  font-weight: bold;
}

/* Optional: make icons a bit larger / centered */
.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.copy-icon {
  font-size: 14px; /* adjust as needed */
}

.one_by_one {
  width: 200px;
  height: 200px;
}

.header_template {
  width: 100%;
  height: 100px;
}

.promo_template {
  height: 125px;
}

.promo_shadow {
  width: 261px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0px 8px 16px 0px var(--color-black-a2);
  transform: scale3d(1.03, 1.03, 1.08) translate3d(0.1rem, -0.25rem, 20rem);
}

.form-note {
  background: var(--v-warning-bg);
  border: 1px solid color-mix(in srgb, var(--v-warning) 40%, var(--v-bg));
  padding: 0.75rem;
  border-radius: var(--v-radius-md);
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.small-text-description {
  font-size: 0.9rem;
  color: var(--v-text);
}

/* ====================== COPY INPUT - FIXED VERSION ====================== */
.v-copy-field {
  position: relative;
}

.v-copy-input {
  position: relative;
  width: 100%;
  padding-right: 52px !important;
  box-sizing: border-box;
}

/* Button inside the input - right side (RTL friendly) */
.v-copy-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--v-bg-muted);
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  color: var(--v-text-muted);
  font-size: 21px;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 10;
}

/* No movement on click/active/focus */
.v-copy-btn:active,
.v-copy-btn:focus {
  outline: none;
  box-shadow: none;
  transform: scale(0.95);
}

/* Hover effect */
.v-copy-btn:hover {
  background: var(--v-surface);
  color: var(--v-primary);
}

/* Icons - force exact same size to prevent layout shift */
.copy-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

/* Success state */
.copy-icon--success {
  color: var(--v-positive);
  animation: pulse 0.6s;
}

/* Optional: nice focus ring on the whole input */
.v-copy-input:focus {
  box-shadow: 0 0 0 3px var(--v-ring);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}
.v-actions-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.v-actions {
  margin: 10px 0;
}

.v-action {
  margin: 0 0 10px;
}

.v-action-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.v-action-link i {
  width: 18px;
  text-align: center;
}

.v-action-link:hover {
  text-decoration: underline;
}

/* Cell */
/* =========================
Bottom Bar Actions
   ========================= */
/* page wrapper should get bottom padding when this bar exists */
.has-bottom-bar {
  padding-bottom: 80px !important;
}

/* fixed shell */
.v-bottom-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 200;
  padding: 12px 16px 16px;
  pointer-events: none;
}

/* keeps content aligned with page width */
.v-bottom-bar__inner {
  max-width: 1400px;
  margin: 0 auto;
  pointer-events: auto;
}

/* form wrapper */
.v-bottom-bar__form {
  display: flex;
  justify-content: flex-start; /* in RTL this places it visually on the right */
}

/* actual visible action box */
.v-bottom-bar__group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 10px;
  background: color-mix(in srgb, var(--v-bg) 96%, transparent);
  border: 1px solid var(--v-border);
  border-radius: 18px;
  box-shadow: 0 -6px 24px var(--color-black-b0);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.v-bottom-bar__field,
.v-bottom-bar__actions {
  display: flex;
  align-items: center;
}

/* select */
.v-bottom-bar__select {
  min-width: 60px;
  height: 30px;
  padding: 0 14px;
  border: 1px solid var(--v-field-border);
  border-radius: var(--v-control-radius);
  background: var(--v-field-bg);
  color: var(--v-field-text);
  font-size: 16px;
  box-sizing: border-box;
}

/* submit */
.v-bottom-bar__submit {
  height: 30px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--v-control-radius);
  background: var(--v-btn-bg);
  color: var(--v-btn-text);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.v-bottom-bar__submit:hover {
  background: var(--v-btn-bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--v-btn-bg) 22%, transparent);
}

.v-bottom-bar__submit:active {
  transform: translateY(0);
}

.v-bottom-bar__select:focus,
.v-bottom-bar__submit:focus {
  outline: none;
}

.v-bottom-bar__select:focus {
  border-color: var(--color-gray-a4);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--v-text) 8%, transparent);
}

.v-bottom-bar__submit:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--v-btn-bg) 20%, transparent);
}

/* mobile */
@media (max-width: 640px) {
  .has-bottom-bar {
    padding-bottom: 140px;
  }
  .v-bottom-bar {
    padding: 10px 10px 12px;
  }
  .v-bottom-bar__form {
    display: block;
  }
  .v-bottom-bar__group {
    display: flex;
    width: 100%;
    gap: 10px;
    padding: 12px;
  }
  .v-bottom-bar__field {
    flex: 1 1 auto;
  }
  .v-bottom-bar__actions {
    flex: 0 0 auto;
  }
  .v-bottom-bar__select {
    width: 100%;
    min-width: 0;
  }
}
/* --------------------------------------------------------------------------
   Devices page — presence board ("מחוברים עכשיו") + activity history
   -------------------------------------------------------------------------- */
.v-presence {
  margin-block-end: 2rem;
}

.v-presence__title,
.v-activity-history__title {
  font-size: 1.125rem;
  color: var(--v-text-secondary);
  margin-block-end: 0.75rem;
}

.v-presence__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.v-presence__card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--v-surface);
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-md, 1rem);
  min-width: 0;
}
.v-presence__card h4 {
  margin: 0 0 0.25rem;
}

.v-presence__dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-block-start: 0.4rem;
  border-radius: 50%;
  background: var(--v-positive);
}

.v-presence__meta {
  margin: 0 0 0.25rem;
  color: var(--v-text-muted);
  font-size: 0.875rem;
}

.v-presence__path {
  margin: 0;
  font-family: var(--v-font-mono, monospace);
  font-size: 0.75rem;
  color: var(--v-text-faint);
  word-break: break-all;
}

.v-presence__empty {
  color: var(--v-text-muted);
  margin: 0;
}

.v-activity-history {
  margin-block-start: 2rem;
}

.v-activity-history__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.v-activity-history__table th,
.v-activity-history__table td {
  padding: 0.5rem 0.75rem;
  border-block-end: 1px solid var(--v-border-muted);
  text-align: start;
}
.v-activity-history__table th {
  color: var(--v-text-muted);
  font-weight: 600;
}

.v-activity-history__path {
  font-family: var(--v-font-mono, monospace);
  font-size: 0.75rem;
  word-break: break-all;
}

.device__pending {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: var(--v-warning-bg);
  color: var(--v-warning-text);
  border-radius: 1rem;
}

.device__disconnect {
  display: inline;
}

/* =========================
   AiWait — central AI waiting overlay
   (blurred page + large spinner modal)
   ========================= */
.ai-wait-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ai-wait-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  background: var(--v-bg, #ffffff);
  color: var(--v-text, #1e293b);
  border-radius: 16px;
  padding: 2.5rem 3.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
  max-width: 90vw;
}

.ai-wait-spinner {
  width: 56px;
  height: 56px;
  border: 5px solid var(--v-border, #e2e8f0);
  border-top-color: var(--v-primary, #7c3aed);
  border-radius: 50%;
  animation: ai-wait-spin 0.9s linear infinite;
}

@keyframes ai-wait-spin {
  to {
    transform: rotate(360deg);
  }
}
.ai-wait-message {
  font-size: 1.15rem;
  font-weight: 700;
}

/* Shimmer: a bright band sweeps across the text (right-to-left, matching RTL
   reading direction) — the "being worked on" feel. Gradient is clipped to the
   glyphs; the base color stays readable, the band adds a moving highlight. */
.ai-wait-submessage {
  font-size: 0.95rem;
  min-height: 1.4em; /* keep the modal from jumping when text changes */
  background: linear-gradient(90deg, var(--v-text-muted, #64748b) 0%, var(--v-text-muted, #64748b) 42%, var(--v-primary, #7c3aed) 50%, var(--v-text-muted, #64748b) 58%, var(--v-text-muted, #64748b) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: ai-wait-shimmer 2.4s linear infinite;
}

@keyframes ai-wait-shimmer {
  from {
    background-position: 0% 0;
  }
  to {
    background-position: 100% 0;
  }
}
/* Fade-up on sentence change — re-triggered from JS by toggling the class */
.ai-wait-submessage--enter {
  animation: ai-wait-shimmer 2.4s linear infinite, ai-wait-enter 0.45s ease-out;
}

@keyframes ai-wait-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* =========================
   Vibes Forms (base)
   ========================= */
/* Form layout helpers */
.v-form {
  display: grid;
  gap: 1rem;
}

/* ------------------------------
   Form sections
   ------------------------------ */
.v-form-section {
  margin-bottom: var(--v-6, 1.5rem);
  padding-bottom: var(--v-5, 1.25rem);
  border-bottom: 1px solid var(--v-border);
}

.v-form-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.v-form-section h5 {
  margin: 0 0 var(--v-4, 1rem);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--v-text);
}

.v-field {
  position: relative;
  display: grid;
  gap: 0.35rem;
  /*margin-bottom: var(--v-5, 1.5rem);*/
}

.v-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--v-field-text);
  margin-right: var(--v-5);
}

/* Inputs */
.v-input,
.v-select,
.v-textarea {
  width: 100%;
  border: 1px solid var(--v-field-border);
  background: var(--v-field-bg);
  color: var(--v-field-text);
  border-radius: var(--v-radius-hg);
  padding: 0 0.95rem;
  height: var(--v-control-h);
  line-height: var(--v-control-h);
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.v-select-wrap {
  position: relative;
  display: block;
}

.v-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding-right: 2.75rem; /* space for arrow (RTL) */
}

/* the arrow */
.v-select-wrap::after {
  content: "▾";
  position: absolute;
  top: 50%;
  right: 1rem; /* ✅ this is your “margin-right” control */
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.75;
  font-size: 1.5rem; /* ✅ bigger arrow */
  font-weight: 700; /* optional */
  line-height: 1;
}

.v-textarea {
  min-height: 120px;
  height: auto;
  line-height: 1.5;
  padding: 0.75rem 0.95rem;
  resize: vertical;
}

.v-input::placeholder,
.v-textarea::placeholder {
  opacity: 0.65;
}

/* Focus ring */
.v-input:focus,
.v-select:focus,
.v-textarea:focus {
  border-color: var(--v-focus);
  box-shadow: 0 0 0 4px var(--v-ring);
}

/* Disabled */
.v-input:disabled,
.v-select:disabled,
.v-textarea:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  background: color-mix(in oklab, var(--v-bg) 70%, var(--v-surface));
}

/* Secret field */
.secret-field-wrap {
  position: relative;
}

.secret-field-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.secret-field-input .v-input {
  flex: 1;
}

.secret-field-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--v-text-muted);
  padding: 0 4px;
}

.secret-field-toggle:hover {
  color: var(--v-text-secondary);
}

.secret-field-existing {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--v-text-muted);
}

.secret-field-btn {
  background: var(--v-field-bg);
  border: 1px solid var(--v-border);
  border-radius: 6px;
  padding: 3px 7px;
  cursor: pointer;
  color: var(--v-text-muted);
  line-height: 1;
}

.secret-field-btn:hover {
  color: var(--v-text-secondary);
  background: var(--v-surface);
}

.secret-field-btn--danger:hover {
  color: var(--v-negative);
  border-color: var(--v-negative);
}

.secret-field-hidden-input {
  border: none;
  background: none;
  font-size: 0.85rem;
  color: var(--v-text-secondary);
  direction: ltr;
  width: auto;
  max-width: 250px;
}

/* Help text + errors */
.v-help {
  font-size: 0.9rem;
  opacity: 0.75;
}

.v-error {
  font-size: 0.9rem;
  color: var(--v-negative-text);
}

/* ------------------------------
   Checkbox row (RTL friendly)
   .v-check + .v-label on same line
   ------------------------------ */
.v-field-check {
  display: flex;
  flex-direction: column; /* ← column instead of row */
  align-items: flex-start;
  gap: 0.25rem;
  direction: rtl;
}

.v-check-row {
  display: flex;
  align-items: center;
  gap: var(--v-2, 0.75rem);
}

/* checkbox */
.v-check {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0; /* remove default weird spacing */
  margin-inline-start: var(--v-2, 0.5rem); /* gives “right-side” spacing in RTL */
  accent-color: var(--v-primary);
  cursor: pointer;
}

/* label */
.v-label-check {
  flex: 1 1 auto;
  margin: 0;
  line-height: 1.3;
  color: var(--v-text);
  cursor: pointer;
  user-select: none;
}

.v-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--v-primary);
}

.v-timing-list {
  counter-reset: timing-counter;
}

.v-timing-list .v-timing-item {
  counter-increment: timing-counter;
}

.v-timing-list .v-list-row::before {
  content: counter(timing-counter) ".";
  flex: 0 0 auto;
  font-weight: 600;
  color: var(--v-text);
  min-width: 1.1rem;
  /* sits at the end of the row — in RTL this appears on the left */
}

.is-desc {
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: none;
  color: var(--v-text-muted);
}

/* ------------------------------
    Redactor fix
------------------------------ */
.v-field--rich {
  min-width: 0;
  overflow: hidden;
}
.v-field--rich .rx-toolbox-container,
.v-field--rich .rx-toolbar-container,
.v-field--rich .rx-toolbar,
.v-field--rich .rx-editor,
.v-field--rich .rx-container {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.rx-extrabarr {
  display: none !important;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.actions--center {
  justify-content: center;
}

.actions--gap {
  gap: 1rem;
}

/* mobile */
@media (max-width: 640px) {
  .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .actions--center {
    justify-content: flex-start;
  }
  .actions > * {
    width: 100%;
  }
  .actions > .v-btn,
  .actions > input[type=submit],
  .actions > button,
  .actions > a {
    justify-content: center;
    width: 100%;
  }
}
/* ==========================================================================
   THEMES
   ==========================================================================

   A theme is an `html[data-theme="..."]` block that overrides tokens from
   the THEME CONTRACT below — and nothing else. Primitives, type scale,
   spacing, radii and layout dimensions in vibe_root.scss are static and
   identical across all themes.

   The default (light) theme is the :root definition in vibe_root.scss.
   No [data-theme="light"] block is needed — light works with the
   attribute absent, set to "light", or set to any unknown value.

   THEME CONTRACT — a theme MAY override only:

   Surfaces:  --v-bg, --v-surface, --v-bg-muted, --v-light-gray-bg
   Text:      --v-text, --v-text-secondary, --v-text-muted, --v-text-faint
   Border:    --v-border, --v-border-muted
   Brand:     --v-primary, --v-primary-hover, --v-on-primary
   Links:     --v-link, --v-link-hover
   Focus:     --v-focus, --v-ring
   Status:    --v-positive, --v-negative, --v-warning, --v-info,
                 --v-positive-bg, --v-positive-text, --v-negative-bg,
                 --v-negative-text, --v-warning-bg, --v-warning-text,
                 --v-info-bg, --v-info-text
   Fields:    --v-field-bg, --v-field-border, --v-field-text
   Shadows:   --v-shadow-sm, --v-shadow-md
   Buttons:   --v-btn-bg, --v-btn-bg-hover, --v-btn-bg-active,
              --v-btn-bg-focus, --v-btn-bg-disabled,
              --v-btn-text, --v-btn-text-hover, --v-btn-text-active,
              --v-btn-text-disabled,
              --v-btn-secondary-bg, --v-btn-secondary-bg-hover,
              --v-btn-secondary-bg-active, --v-btn-secondary-bg-focus,
              --v-btn-secondary-bg-disabled, --v-btn-text-secondary,
              --v-btn-secondary-text-hover, --v-btn-secondary-text-active,
              --v-btn-secondary-text-disabled,
              --v-btn-bg-action, --v-btn-border-action,
              --v-btn-text-action, --v-btn-bg-action-hover,
              --v-btn-bg-delete, --v-btn-border-delete,
              --v-btn-text-delete, --v-btn-bg-delete-hover
   Typeface:  --v-font-sans (must resolve to a font already loaded
                  by the app: Rubik, Heebo, Assistant, Alef, Fredoka,
                  Inter, Montserrat, Varela Round + system fallbacks)
   Shape:     --v-radius, --v-radius-sm, --v-radius-md, --v-radius-lg,
              --v-radius-hg, --v-control-radius, --v-btn-actions-radius
              (lengths 0–2rem)
              --v-radius-card
   Note:      --v-note-bg, --v-note-border, --v-note-text


   Every dark/custom theme must also declare `color-scheme` so native
   form controls, scrollbars and system UI match the theme.

   ========================================================================== */
/* Populated in Phase 5 — kept commented out until the token migration
   (Phase 4) and editor isolation (Phase 3) are complete.

html[data-theme="dark"] {
  color-scheme: dark;
}

*/
body[data-theme=dark] {
  color-scheme: dark;
  /* Shape — sharper in dark */
  --v-radius-sm: 4px;
  --v-radius-md: 6px;
  --v-radius-lg: 8px;
  --v-radius-hg: 12px;
  --v-radius: 6px;
  --v-radius-card: 6px;
  --v-control-radius: 4px;
  --v-btn-actions-radius: 4px;
  /* Surfaces */
  --v-bg: #252d3b;
  --v-surface: #30394a;
  --v-bg-muted: #1f2633;
  --v-light-gray-bg: #374258;
  /* Text */
  --v-text: #f7f8fb;
  --v-text-secondary: #d6dbe6;
  --v-text-muted: #aeb7c8;
  --v-text-faint: #788397;
  /* Border */
  --v-border: #465168;
  --v-border-muted: #384356;
  /* Brand */
  --v-primary: #ec2a72;
  --v-primary-hover: #d81f63;
  --v-on-primary: #ffffff;
  /* Links */
  --v-link: #ff5a96;
  --v-link-hover: #ff83b2;
  /* Focus */
  --v-focus: #ec2a72;
  --v-ring: #ff7bab;
  /* Status */
  --v-positive: #22c55e;
  --v-negative: #f43f5e;
  --v-warning: #f59e0b;
  --v-info: #38bdf8;
  --v-positive-bg: #123326;
  --v-positive-text: #bbf7d0;
  --v-negative-bg: #3f1724;
  --v-negative-text: #fecdd3;
  --v-warning-bg: #3b2a0b;
  --v-warning-text: #fde68a;
  --v-info-bg: #0f2f44;
  --v-info-text: #bae6fd;
  /* Note */
  --v-note-bg: #30394a;
  --v-note-border: #ec2a72;
  --v-note-text: #f7f8fb;
  /* Fields */
  --v-field-bg: #374258;
  --v-field-border: #4b5870;
  --v-field-text: #f7f8fb;
  /* Shadows */
  --v-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --v-shadow-md: 0 6px 18px rgba(0, 0, 0, 0.55);
  /* Buttons — primary */
  --v-btn-bg: #ec2a72;
  --v-btn-bg-hover: #d81f63;
  --v-btn-bg-active: #b91852;
  --v-btn-bg-focus: #ec2a72;
  --v-btn-bg-disabled: #6b3b53;
  --v-btn-text: #ffffff;
  --v-btn-text-hover: #ffffff;
  --v-btn-text-active: #ffffff;
  --v-btn-text-disabled: #c9a8b8;
  /* Buttons — secondary */
  --v-btn-secondary-bg: #374258;
  --v-btn-secondary-bg-hover: #414d65;
  --v-btn-secondary-bg-active: #4b5870;
  --v-btn-secondary-bg-focus: #374258;
  --v-btn-secondary-bg-disabled: #2b3445;
  --v-btn-text-secondary: #f7f8fb;
  --v-btn-secondary-text-hover: #ffffff;
  --v-btn-secondary-text-active: #ffffff;
  --v-btn-secondary-text-disabled: #788397;
  /* Buttons — action */
  --v-btn-bg-action: #ec2a72;
  --v-btn-border-action: #ec2a72;
  --v-btn-text-action: #ffffff;
  --v-btn-bg-action-hover: #d81f63;
}

body[data-theme=custom] {
  color-scheme: light;
}

/* app/assets/stylesheets/flash_toasts.css */
/* The fixed region */
.flash-toasts-container {
  position: fixed;
  top: 15vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(92vw, 520px);
  pointer-events: none; /* so outside clicks pass through, toasts re-enable */
}

/* Each toast */
.flash-toast {
  pointer-events: auto; /* allow interaction on the toast itself */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border-radius: var(--v-radius-lg);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.38);
  background: var(--v-bg);
  border: 1px solid var(--color-black-b1);
  animation: flash-in 180ms ease-out;
}

.flash-toast__content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flash-toast__icon {
  font-size: 1.2rem;
}

.flash-toast__text {
  line-height: 1.3;
}

/* Close button */
.flash-toast__close {
  appearance: none;
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  opacity: 0.6;
  cursor: pointer;
}

.flash-toast__close:hover {
  opacity: 1;
}

/* Variants */
.flash-success {
  border-color: color-mix(in srgb, var(--v-positive) 20%, transparent);
  background: var(--v-positive-bg);
}

.flash-error {
  border-color: color-mix(in srgb, var(--v-negative) 20%, transparent);
  background: var(--v-negative-bg);
}

.flash-info {
  border-color: color-mix(in srgb, var(--v-info) 20%, transparent);
  background: var(--v-info-bg);
}

.flash-warning {
  border-color: color-mix(in srgb, var(--v-warning) 20%, transparent);
  background: var(--v-warning-bg);
}

/* Animate only vertical offset + opacity on the TOAST itself */
@keyframes flash-in {
  from {
    transform: translateY(-12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.flash-toast {
  animation: flash-in 180ms ease-out;
}

.flash-toast--hide {
  animation: flash-out 160ms ease-in forwards;
}

@keyframes flash-out {
  to {
    transform: translateY(-10px);
    opacity: 0;
  }
}
body#app #current_page_navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 0; /* Add some vertical padding if needed */
}
body#app #current_page_navigation #breadcrumb_nav {
  /* This will be on the right side in RTL layout */
  order: 1;
  display: flex;
  align-items: center;
  gap: 8px; /* Controls space between all child elements */
}
body#app #current_page_navigation #breadcrumb_nav a:link,
body#app #current_page_navigation #breadcrumb_nav a:visited,
body#app #current_page_navigation #breadcrumb_nav a:active {
  color: var(--v-text-muted);
  text-decoration: none;
}
body#app #current_page_navigation #breadcrumb_nav a:link:hover,
body#app #current_page_navigation #breadcrumb_nav a:visited:hover,
body#app #current_page_navigation #breadcrumb_nav a:active:hover {
  color: var(--v-text);
}
body#app #current_page_navigation #breadcrumb_nav .breadcrumb_icon {
  color: var(--v-text-faint);
  font-size: 12px;
}
body#app #current_page_navigation #page_title {
  order: 1;
}
body#app #current_page_navigation #current_page_dropdown {
  /* This will be on the left side in RTL layout */
  order: 2;
}

body#app div#top_menu_links {
  box-sizing: border-box;
  position: relative;
  padding: 10px 0;
  border-bottom: 1px solid var(--v-border-muted);
  margin-bottom: 20px;
}
body#app div#top_menu_links div#right_links a:link,
body#app div#top_menu_links div#right_links a:visited,
body#app div#top_menu_links .right_links a:link,
body#app div#top_menu_links .right_links a:visited {
  color: var(--v-text-faint);
}

body#app div#model_top_actions {
  display: flex;
  align-items: stretch; /* Ensures both children are same height */
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem; /* Optional: space between them */
  padding: 20px 0 30px;
}
body#app div#model_top_actions div#new_record_button {
  order: 1; /* push to right */
  display: flex;
  align-items: center;
  height: 100%;
}
body#app div#model_top_actions div#new_record_button a:link,
body#app div#model_top_actions div#new_record_button a:visited {
  background-color: var(--v-btn-bg);
  padding: 10px 20px;
  -webkit-border-radius: 1.2rem;
  border-radius: 1.2rem;
  -moz-border-radius: 1.2rem;
  line-height: 20px;
  color: var(--v-btn-text);
}
body#app div#model_top_actions div#new_record_button a:link i,
body#app div#model_top_actions div#new_record_button a:visited i {
  font-size: 14px;
  margin-left: 5px;
}
body#app div#model_top_actions div#new_record_button a:hover {
  background-color: var(--v-btn-bg-hover);
}

/*!
 * Cropper.js v1.5.13
 * https://fengyuanchen.github.io/cropperjs
 *
 * Copyright 2015-present Chen Fengyuan
 * Released under the MIT license
 *
 * Date: 2022-11-20T05:30:43.444Z
 */
.cropper-container {
  direction: ltr;
  font-size: 0;
  line-height: 0;
  position: relative;
  -ms-touch-action: none;
  touch-action: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.cropper-container img {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: block;
  height: 100%;
  image-orientation: 0deg;
  max-height: none !important;
  max-width: none !important;
  min-height: 0 !important;
  min-width: 0 !important;
  width: 100%;
}

.cropper-canvas, .cropper-crop-box, .cropper-drag-box, .cropper-modal, .cropper-wrap-box {
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.cropper-canvas, .cropper-wrap-box {
  overflow: hidden;
}

.cropper-drag-box {
  background-color: #fff;
  opacity: 0;
}

.cropper-modal {
  background-color: #000;
  opacity: 0.5;
}

.cropper-view-box {
  display: block;
  height: 100%;
  outline: 1px solid #39f;
  outline-color: rgba(51, 153, 255, 0.75);
  overflow: hidden;
  width: 100%;
}

.cropper-dashed {
  border: 0 dashed #eee;
  display: block;
  opacity: 0.5;
  position: absolute;
}

.cropper-dashed.dashed-h {
  border-bottom-width: 1px;
  border-top-width: 1px;
  height: 33.33333%;
  left: 0;
  top: 33.33333%;
  width: 100%;
}

.cropper-dashed.dashed-v {
  border-left-width: 1px;
  border-right-width: 1px;
  height: 100%;
  left: 33.33333%;
  top: 0;
  width: 33.33333%;
}

.cropper-center {
  display: block;
  height: 0;
  left: 50%;
  opacity: 0.75;
  position: absolute;
  top: 50%;
  width: 0;
}

.cropper-center:after, .cropper-center:before {
  background-color: #eee;
  content: " ";
  display: block;
  position: absolute;
}

.cropper-center:before {
  height: 1px;
  left: -3px;
  top: 0;
  width: 7px;
}

.cropper-center:after {
  height: 7px;
  left: 0;
  top: -3px;
  width: 1px;
}

.cropper-face, .cropper-line, .cropper-point {
  display: block;
  height: 100%;
  opacity: 0.1;
  position: absolute;
  width: 100%;
}

.cropper-face {
  background-color: #fff;
  left: 0;
  top: 0;
}

.cropper-line {
  background-color: #39f;
}

.cropper-line.line-e {
  cursor: ew-resize;
  right: -3px;
  top: 0;
  width: 5px;
}

.cropper-line.line-n {
  cursor: ns-resize;
  height: 5px;
  left: 0;
  top: -3px;
}

.cropper-line.line-w {
  cursor: ew-resize;
  left: -3px;
  top: 0;
  width: 5px;
}

.cropper-line.line-s {
  bottom: -3px;
  cursor: ns-resize;
  height: 5px;
  left: 0;
}

.cropper-point {
  background-color: #39f;
  height: 5px;
  opacity: 0.75;
  width: 5px;
}

.cropper-point.point-e {
  cursor: ew-resize;
  margin-top: -3px;
  right: -3px;
  top: 50%;
}

.cropper-point.point-n {
  cursor: ns-resize;
  left: 50%;
  margin-left: -3px;
  top: -3px;
}

.cropper-point.point-w {
  cursor: ew-resize;
  left: -3px;
  margin-top: -3px;
  top: 50%;
}

.cropper-point.point-s {
  bottom: -3px;
  cursor: s-resize;
  left: 50%;
  margin-left: -3px;
}

.cropper-point.point-ne {
  cursor: nesw-resize;
  right: -3px;
  top: -3px;
}

.cropper-point.point-nw {
  cursor: nwse-resize;
  left: -3px;
  top: -3px;
}

.cropper-point.point-sw {
  bottom: -3px;
  cursor: nesw-resize;
  left: -3px;
}

.cropper-point.point-se {
  bottom: -3px;
  cursor: nwse-resize;
  height: 20px;
  opacity: 1;
  right: -3px;
  width: 20px;
}

@media (min-width: 768px) {
  .cropper-point.point-se {
    height: 15px;
    width: 15px;
  }
}
@media (min-width: 992px) {
  .cropper-point.point-se {
    height: 10px;
    width: 10px;
  }
}
@media (min-width: 1200px) {
  .cropper-point.point-se {
    height: 5px;
    opacity: 0.75;
    width: 5px;
  }
}
.cropper-point.point-se:before {
  background-color: #39f;
  bottom: -50%;
  content: " ";
  display: block;
  height: 200%;
  opacity: 0;
  position: absolute;
  right: -50%;
  width: 200%;
}

.cropper-invisible {
  opacity: 0;
}

.cropper-bg {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC");
}

.cropper-hide {
  display: block;
  height: 0;
  position: absolute;
  width: 0;
}

.cropper-hidden {
  display: none !important;
}

.cropper-move {
  cursor: move;
}

.cropper-crop {
  cursor: crosshair;
}

.cropper-disabled .cropper-drag-box, .cropper-disabled .cropper-face, .cropper-disabled .cropper-line, .cropper-disabled .cropper-point {
  cursor: not-allowed;
}

/* ------------------------------
   Pagination (modern)
   ------------------------------ */
.pagination {
  /* layout */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  margin: 0 auto;
  max-width: 900px;
  /* keep page numbers/arrows in correct order */
  direction: ltr;
  /* typography */
  font-size: 0.95rem;
  margin-top: 1rem;
}

/* current page */
.pagination em.current {
  font-style: normal;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: var(--v-primary);
  color: var(--v-on-primary);
  box-shadow: 0 8px 18px color-mix(in oklab, var(--v-primary) 22%, transparent);
}

/* links */
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--v-text);
  background: color-mix(in oklab, var(--v-surface) 70%, var(--v-bg));
  border: 1px solid color-mix(in oklab, var(--v-border) 85%, var(--color-black));
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.pagination a:hover,
.pagination a:focus-visible {
  background: color-mix(in oklab, var(--v-primary) 10%, var(--v-bg));
  border-color: color-mix(in oklab, var(--v-primary) 35%, var(--v-border));
  transform: translateY(-1px);
  outline: none;
}

.pagination a:active {
  transform: translateY(0);
}

/* Previous/Next buttons look like pills */
.pagination a.previous_page,
.pagination a.next_page {
  padding: 0 1rem;
  font-weight: 700;
}

/* gap "…" */
.pagination .gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  padding: 0 0.5rem;
  color: var(--v-text-muted);
}

/* disabled */
.pagination .disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  padding: 0 1rem;
  border-radius: 999px;
  color: var(--v-text-muted);
  background: color-mix(in oklab, var(--v-surface) 60%, var(--v-bg));
  border: 1px dashed var(--v-border);
  opacity: 0.8;
}

/* Mobile: tighter */
@media (max-width: 640px) {
  .pagination {
    padding: 0.75rem;
    gap: 0.4rem;
    border-radius: 14px;
  }
  .pagination a.previous_page,
  .pagination a.next_page,
  .pagination .disabled {
    width: 100%;
    justify-content: center;
  }
}
#myBtn {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed/sticky position */
  bottom: 20px; /* Place the button at the bottom of the page */
  right: 30px; /* Place the button 30px from the right */
  z-index: 3999; /* Make sure it does not overlap */
  border: none; /* Remove borders */
  outline: none; /* Remove outline */
  background-color: var(--v-negative);
  color: var(--color-white);
  cursor: pointer; /* Add a mouse pointer on hover */
  padding: 15px; /* Some padding */
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  opacity: 0.9;
  filter: alpha(opacity=90); /* For IE8 and earlier */
}

#myBtn:hover {
  background-color: var(--color-gray-a1);
}

#alert,
.alert {
  color: var(--v-negative-text);
  background-color: var(--v-negative-bg);
  border-color: var(--color-red-200);
  padding: 20px 10px;
  margin: 0 0 10px 0;
  font-weight: bold;
  border-radius: 3px;
  text-align: center;
}

#notice,
.notice {
  color: var(--v-positive-text);
  background-color: var(--v-positive-bg);
  border-color: var(--color-green-200);
  padding: 20px 10px;
  margin: 0 0 10px 0;
  font-weight: bold;
  border-radius: 3px;
  text-align: center;
}

#error_explanation {
  width: 100%;
  background-color: var(--v-negative-bg);
  margin-bottom: 20px;
  box-sizing: border-box;
  padding: 20px 20px 10px;
  color: var(--v-negative-text);
  border-radius: 5px;
  margin-bottom: 30px;
}
#error_explanation ul li {
  font-size: 16px;
  list-style: square;
  margin: 10px 10px;
}

.field_with_errors {
  box-sizing: border-box;
  overflow: hidden;
  display: inline;
}
.field_with_errors input[type=text],
.field_with_errors input[type=password],
.field_with_errors input[type=datetime-local],
.field_with_errors input[type=number],
.field_with_errors input[type=checkbox],
.field_with_errors textarea,
.field_with_errors input,
.field_with_errors select {
  border: 1px solid var(--v-negative);
  background-color: var(--v-negative-bg);
}

.device {
  margin-bottom: 30px;
  border: 1px solid var(--v-border-muted);
  padding: 20px;
  font-size: 16px;
  border-radius: 1rem;
}
.device .me {
  padding: 0.3rem 1rem;
  background-color: var(--v-negative);
  color: var(--color-white);
  border-radius: 1rem;
}

#academy_app_icon_section,
#settings_div_pop,
#api_key_field,
#tiny_form,
#main_academy_image_section,
#header_url_section,
#club_promo_image_section,
#login_logo_image_section,
#progress_multiple,
#edit_multiple,
#plan_terms,
#progress_btn {
  display: none !important;
}

#academy_app_icon_section.open,
#settings_div_pop.open,
#api_key_field.open,
#tiny_form.open,
#main_academy_image_section.open,
#header_url_section.open,
#club_promo_image_section.open,
#login_logo_image_section.open,
#progress_multiple.open,
#edit_multiple.open,
#plan_terms.open,
#import_form.open,
#import_help.open,
#progress_btn.open {
  display: block !important;
}

.v-user {
  display: flex;
  align-items: center;
  gap: 8px;
}
.v-user .v-user-avatar {
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.v-user .v-user-icon {
  color: var(--v-text);
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--v-bg-muted) !important;
  border-radius: 50%; /* ← circle, not fixed px */
  border: none !important;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.v-user .v-user-icon i {
  font-size: 18px; /* control size via font-size, not width/height */
}

.v-click {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--v-text);
  background-color: color-mix(in srgb, var(--color-brand) 6%, var(--v-bg));
  border-radius: 2rem;
  padding: 2px 8px;
}

.blank_space {
  margin-bottom: 50px;
}

.brake {
  margin-bottom: 20px;
}

.green {
  color: var(--v-positive-text);
}

.red {
  color: var(--v-negative-text);
}

div.content_frame {
  padding: 30px;
  background-color: var(--v-bg);
  -webkit-border-radius: 1rem;
  border-radius: 1rem;
  -moz-border-radius: 1rem;
  border: 1px solid var(--v-border-muted);
}

div.content_frame_gray {
  padding: 30px;
  background-color: var(--v-light-gray-bg);
  -webkit-border-radius: 1rem;
  border-radius: 1rem;
  -moz-border-radius: 1rem;
  border: 1px solid var(--v-border-muted);
}

div.page_content {
  box-sizing: border-box;
  overflow: hidden;
  margin: 40px 0;
}

div.content_section {
  box-sizing: border-box;
}

div#mobile_form {
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 500px;
  padding: 0 20px;
}
div#mobile_form h1 {
  margin-bottom: 30px;
}
div#mobile_form div.subdomain_field {
  box-sizing: border-box;
  overflow: hidden;
}
div#mobile_form div.subdomain_field table tr td#http {
  text-align: right;
  padding: 10px 0 0 0;
}
div#mobile_form div.subdomain_field table tr td#subdomain {
  padding: 0 2px 16px 2px;
}
div#mobile_form div.subdomain_field table tr td#domain {
  text-align: left;
  padding: 10px 0 0 0;
}

div#wide_mobile_form {
  box-sizing: border-box;
  overflow: hidden;
  margin: 0 auto;
  max-width: 700px;
  padding: 0 20px;
}
div#wide_mobile_form h1 {
  margin-bottom: 30px;
}

body#app div#searches div.content_section {
  padding: 0 0 30px 0;
}
body#app div#searches div.search_links {
  padding: 10px;
  background-color: var(--v-light-gray-bg);
  color: var(--v-text-faint);
  -webkit-border-radius: 5px;
  border-radius: 5px;
  -moz-border-radius: 5px;
  text-align: center;
}
body#app div#searches p.title {
  font-weight: bold;
}
body#app div#searches p.created_at {
  color: var(--v-text-faint);
}

@media screen and (max-width: 900px) {
  body#app div#searches div.hide_from_mobile {
    display: none;
  }
  body#app div#searches div.hide_from_desktop {
    display: block;
  }
  body#app div#searches div.content_section {
    padding: 30px 0;
  }
}
@media screen and (min-width: 900px) {
  body#app div#searches div.hide_from_mobile {
    display: block;
  }
  body#app div#searches div.hide_from_desktop {
    display: none;
  }
  body#app div#searches div.desktop_and_mobile {
    padding: 30px 0;
  }
}
body#app div.add_record_button {
  margin-bottom: 20px;
}
body#app div.add_record_button a:link,
body#app div.add_record_button a:visited {
  font-size: 30px;
}

body#app div#description_link {
  margin-bottom: 20px;
}

body#app div#description_text {
  display: none;
}

.button span.caret {
  margin-right: 12px;
}

div.clearfix {
  clear: both;
}

body#app div#content_links {
  margin-bottom: 20px;
}

body#app div#content_links div#import_export_links {
  margin-bottom: 10px;
}

body#app div#import_form {
  display: none;
  padding: 20px;
  margin: 30px 0;
  background-color: var(--v-light-gray-bg);
  -webkit-border-radius: 10px;
  border-radius: 10px;
  -moz-border-radius: 10px;
}
body#app div#import_form div#import_help {
  margin: 30px;
  display: none;
}
body#app div#import_form div#import_help div#import_file_image {
  max-width: 700px;
  margin-bottom: 20px;
}

body#app div#select_all table {
  max-width: 350px;
}

body#app div.general_mobile_section {
  width: 100%;
  border: 1px solid var(--v-border);
  padding: 20px;
  margin-bottom: 30px;
  -webkit-border-radius: 15px;
  border-radius: 15px;
  -moz-border-radius: 15px;
}

body#app div#payment_notification {
  max-width: 500px;
  margin: 0 auto;
}

@media screen and (max-width: 650px) {
  body#app div#campaigns {
    display: none;
  }
}
@media screen and (min-width: 650px) {
  body#app div#mobile_campaigns {
    display: none;
  }
}
body#app div#update_student_phone_form {
  padding: 10px;
  margin: 30px 0;
  background-color: var(--v-light-gray-bg);
}
body#app div#update_student_phone_form div#import_help {
  margin: 30px;
}
body#app div#update_student_phone_form div#import_help div#import_file_image {
  max-width: 500px;
  margin-bottom: 20px;
}

body#app div.gray_bg {
  background-color: var(--v-bg-muted);
  padding: 10px;
}

body#app div#copy_and_delete {
  padding: 20px;
}
body#app div#copy_and_delete div.links {
  margin-bottom: 20px;
}

body#app div#upload_images_form {
  box-sizing: border-box;
  margin-bottom: 20px;
}
body#app div#upload_images_form .inputfile {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}
body#app div#upload_images_form div.file_upload_label {
  padding-bottom: 30px;
}
body#app div#upload_images_form div.file_upload_label label {
  display: inline-flex;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-white);
  background-color: var(--v-primary);
  padding: 5px 20px;
  cursor: pointer;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  -moz-border-radius: 4px;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  text-align: center;
}
body#app div#upload_images_form div.file_upload_label label:hover {
  background-color: var(--v-primary-hover);
}

body#app .upload {
  padding-top: 5px;
}
body#app .upload .progress {
  margin-top: 5px;
}
body#app .upload .progress .bar {
  height: 15px;
  background: var(--v-positive);
}

body#app div.account_main_image_url {
  margin-bottom: 20px;
  max-width: 150px;
}
body#app div.account_main_image_url img {
  width: 100%;
}

body#app div.account_header_url {
  margin-bottom: 20px;
  max-width: 500px;
}
body#app div.account_header_url img {
  width: 100%;
}

body#app div#free_color_icon {
  max-width: 400px;
}
body#app div#free_color_icon td:first-child {
  padding-left: 16px;
}
body#app div#free_color_icon td:last-child {
  padding-right: 16px;
}

body#app div#api p {
  text-align: justify;
}
body#app div#api div.api_section {
  padding: 30px 0;
}

body#app div.timing_form {
  max-width: 500px;
}

@media screen and (max-width: 800px) {
  body#app div.main_desktop_lesson {
    border: 1px solid var(--v-border);
    padding: 10px;
    margin-bottom: 20px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
  }
  body#app div.main_desktop_lesson div.main_desktop_lesson_section {
    display: none;
  }
}
@media screen and (min-width: 800px) {
  body#app div.main_desktop_lesson div.main_mobile_lesson_section {
    display: none;
  }
}
body#app div#sms_prices_mobile div.sms_price {
  border: 1px solid var(--v-border-muted);
  padding: 20px;
  margin-bottom: 30px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
}
body#app div#sms_prices_mobile p {
  font-weight: bold;
}

@media screen and (max-width: 790px) {
  body#app div#sms_prices_desktop {
    display: none;
  }
}
@media screen and (min-width: 790px) {
  body#app div#sms_prices_mobile {
    display: none;
  }
}
body#app div.avatar_form {
  background-color: var(--v-bg);
  padding: 20px;
}
body#app div.avatar_form div#avatar_image {
  background: var(--color-gray-a6);
  width: 120px;
  height: 120px;
  -webkit-border-radius: 120px;
  -moz-border-radius: 120px;
  border-radius: 120px;
  margin-bottom: 20px;
  margin: 0 auto;
  margin-bottom: 30px;
  overflow: hidden;
}
body#app div.avatar_form div#avatar_image img {
  width: 100%;
}
body#app div.avatar_form div#avatar_image i {
  font-size: 64px;
  color: var(--v-text-muted);
  line-height: 120px;
}
body#app div.avatar_form .inputfile {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

body#app div.topic_index_image_url img {
  width: 40px;
  height: 40px;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  -moz-border-radius: 10px;
}

body#app div.topic_main_image_url {
  margin-bottom: 20px;
}
body#app div.topic_main_image_url img {
  width: 200px;
  height: 200px;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  -moz-border-radius: 10px;
}

body#app div#header_image {
  margin-bottom: 20px;
}
body#app div#header_image img.header {
  -webkit-border-radius: 10px;
  border-radius: 10px;
  -moz-border-radius: 10px;
}

body#app div#replication_promo_bg {
  background-color: var(--v-bg-muted);
  padding: 30px 0;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  -moz-border-radius: 10px;
}

body#app div#cycles_section {
  margin: 0 auto;
  max-width: 350px;
  padding: 0 10px;
}
body#app div#cycles_section div#current_cycle td.edit,
body#app div#cycles_section div#cycles td.edit {
  position: relative;
  font-size: 16px;
  width: 16px;
  text-align: center;
}
body#app div#cycles_section div#current_cycle div.cycle_links_pop,
body#app div#cycles_section div#cycles div.cycle_links_pop {
  display: none;
  position: absolute;
  text-align: right;
  top: 10px;
  left: 30px;
  min-width: 160px;
  background-color: var(--v-bg);
  z-index: 2;
  padding: 15px 15px 0;
  box-shadow: 0px 8px 16px 0px var(--color-black-a1);
  font-size: 16px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  -moz-border-radius: 5px;
}
body#app div#cycles_section div#current_cycle div.cycle_links_pop a:link,
body#app div#cycles_section div#current_cycle div.cycle_links_pop a:visited,
body#app div#cycles_section div#cycles div.cycle_links_pop a:link,
body#app div#cycles_section div#cycles div.cycle_links_pop a:visited {
  color: var(--v-link);
}

body#app div#launches div.labels span.ss-circle {
  font-size: 10px;
  padding: 0 5px;
}
body#app div#launches div.labels span.green {
  color: var(--color-green-300);
}
body#app div#launches div.labels span.gray {
  color: var(--color-gray-a5);
}
body#app div#launches td.scrol_icon {
  box-sizing: border-box;
  padding: 35px 10px 0 0;
  text-align: right;
  font-size: 16px;
  width: 40px;
}
body#app div#launches td.launch_domain {
  box-sizing: border-box;
  direction: ltr;
}
body#app div#launches td.launch_domain span.domain_style {
  box-sizing: border-box;
  padding: 20px;
  background-color: var(--v-bg-muted);
  display: block;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  text-align: center;
}
body#app div#launches td.titles div.title {
  margin-bottom: 20px;
}
body#app div#launches td.edit {
  position: relative;
  font-size: 16px;
  text-align: left;
  padding: 30px 10px 10px 0;
}
body#app div#launches div.launch_links_pop {
  display: none;
  position: absolute;
  text-align: right;
  top: 50px;
  left: 0;
  min-width: 160px;
  background-color: var(--v-bg);
  z-index: 2;
  padding: 15px 15px 0;
  box-shadow: 0px 8px 16px 0px var(--color-black-a1);
  font-size: 16px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  -moz-border-radius: 5px;
}
body#app div#launches div.launch_links_pop a:link,
body#app div#launches div.launch_links_pop a:visited {
  color: var(--v-link);
}

body#app div#mobile_launches {
  margin-bottom: 100px;
}
body#app div#mobile_launches div.mobile_launch {
  padding: 20px 15px;
  border: 1px solid var(--v-border-muted);
  -webkit-border-radius: 15px;
  border-radius: 15px;
  -moz-border-radius: 15px;
  margin: 0 auto;
  margin-bottom: 20px;
  max-width: 350px;
  min-width: 300px;
}
body#app div#mobile_launches div.mobile_launch div.header_section {
  margin-bottom: 20px;
}
body#app div#mobile_launches div.mobile_launch div.header_section div.url {
  direction: ltr;
}
body#app div#mobile_launches div.mobile_launch div.header_section div.url span.domain_style {
  box-sizing: border-box;
  padding: 20px;
  background-color: var(--v-bg-muted);
  display: block;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  text-align: center;
}
body#app div#mobile_launches div.mobile_launch div.mobile_edit {
  float: left;
  position: relative;
  font-size: 18px;
  text-align: left;
}
body#app div#mobile_launches div.mobile_launch div.mobile_edit div.mobile_launch_links_pop {
  display: none;
  position: absolute;
  text-align: right;
  top: 30px;
  left: 0;
  min-width: 160px;
  background-color: var(--v-bg);
  z-index: 2;
  padding: 15px 15px 0;
  box-shadow: 0px 8px 16px 0px var(--color-black-a1);
  font-size: 16px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  -moz-border-radius: 5px;
}
body#app div#mobile_launches div.mobile_launch div.mobile_edit div.mobile_launch_links_pop a:link,
body#app div#mobile_launches div.mobile_launch div.mobile_edit div.mobile_launch_links_pop a:visited {
  color: var(--v-link);
}
body#app div#mobile_launches div.mobile_launch div.title {
  margin-bottom: 20px;
}
body#app div#mobile_launches div.mobile_launch div.labels span.ss-circle {
  font-size: 10px;
  padding: 0 5px;
}
body#app div#mobile_launches div.mobile_launch div.labels span.green {
  color: var(--color-green-300);
}
body#app div#mobile_launches div.mobile_launch div.labels span.gray {
  color: var(--color-gray-a5);
}

@media screen and (max-width: 650px) {
  body#app div#launches {
    display: none;
  }
}
@media screen and (min-width: 650px) {
  body#app div#mobile_launches {
    display: none;
  }
}
body#app div#videos_section {
  max-width: 800px;
  margin: 0 auto;
}

body#app div#video_settings {
  max-width: 800px;
  margin: 0 auto;
}

body#app div#current_video {
  margin-bottom: 10px;
}

body#app span.current {
  background-color: var(--v-negative);
  padding: 0 10px;
  color: var(--color-white);
  -webkit-border-radius: 5px;
  border-radius: 5px;
  -moz-border-radius: 5px;
}

body#app div#redirect_url_form {
  padding-top: 30px;
  max-width: 600px;
  margin: 0 auto;
}

body#app div#branding_form {
  max-width: 500px;
  margin: 0 auto;
}

body#app div#custom_ids {
  padding: 10px;
  background-color: var(--v-negative-bg);
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}

@media screen and (max-width: 850px) {
  body#app .mobile_hide {
    display: none;
  }
}
body#app div#serch_affiliate_form {
  max-width: 350px;
  margin: 0 auto;
}

body#app td.affiliatezation_dropdown_section {
  position: relative;
}
body#app td.affiliatezation_dropdown_section div.affiliatezation_menu {
  position: absolute;
  width: 100px;
  top: 10px;
  left: 35px;
  box-sizing: border-box;
  display: none;
  background-color: var(--v-bg);
  min-width: 130px;
  box-shadow: 0px 8px 16px 0px var(--color-black-a1);
  padding: 15px 15px 0;
  z-index: 1;
  cursor: pointer;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}

body#app div#rozi_import_section {
  display: none;
}

body#app div#affiliatezation {
  max-width: 600px;
  margin: 0 auto;
}

body#app table.cycle_records th {
  background-color: var(--color-gray-base);
  color: var(--color-white);
}
body#app table.cycle_records tr.brow {
  background-color: var(--v-light-gray-bg);
}
body#app table.cycle_records tr.altrow {
  background-color: var(--v-bg-muted);
}

body#app div#events {
  overflow: hidden;
  box-sizing: border-box;
  margin: 0;
  padding-top: 30px;
}
body#app div#events div.event {
  width: 300px;
  padding: 10px;
  background-color: var(--v-light-gray-bg);
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  margin: 5px;
  overflow: hidden;
  box-sizing: border-box;
  float: right;
}
body#app div#events div.event td.th {
  background-color: var(--color-gray-a6);
}
body#app div#events div.event td.con {
  padding-right: 5px;
}

@media screen and (min-width: 900px) {
  body#app #events_mobile_section {
    display: none;
  }
}
@media screen and (max-width: 900px) {
  body#app #events_desktop_section {
    display: none;
  }
  body#app div#events {
    max-width: 640px;
    margin: 0 auto;
  }
}
@media screen and (max-width: 660px) {
  body#app div#events {
    max-width: 500px;
    margin: 0 auto;
  }
  body#app div#events div.event {
    float: none;
    width: 100%;
    margin: 10px 0;
  }
}
body#app div#sale_forms_section {
  max-width: 620px;
  margin: 0 auto;
  overflow: hidden;
  box-sizing: border-box;
  padding-top: 30px;
}
body#app div#sale_forms_section div.sale_form {
  overflow: hidden;
  box-sizing: border-box;
  width: 300px;
  float: right;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  margin: 5px;
  padding: 10px;
}
body#app div#sale_forms_section div#add_sale {
  background-color: var(--v-positive-bg);
}
body#app div#sale_forms_section div#remove_sale {
  background-color: var(--v-negative-bg);
}

@media screen and (max-width: 660px) {
  body#app div#sale_forms_section div.sale_form {
    float: none;
    width: 100%;
    margin: 10px 0;
  }
}
body#app div#exports {
  max-width: 850px;
  margin: 0 auto;
}
body#app div#exports div.export div.progress {
  display: none;
}

body#app div#fast_link {
  margin: 0 auto;
  max-width: 350px;
  text-align: center;
  background-color: var(--v-light-gray-bg);
  padding: 20px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
}

body#app div.tiny_form {
  max-width: 300px;
  padding: 20px;
  background-color: var(--v-light-gray-bg);
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  display: none;
}

body#app div#rozi_form_settings {
  max-width: 500px;
  margin: 0 auto;
}
body#app div#rozi_form_settings div#the_code {
  margin: 30px 0;
}
body#app div#rozi_form_settings div#the_code textarea {
  background-color: var(--v-light-gray-bg);
  width: 100%;
  height: 500px;
  padding: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  color: var(--v-text-muted);
}

.accessibility {
  padding: 30px 0 0;
  text-align: center;
}
.accessibility i {
  font-size: 32px;
  color: var(--v-text);
}

.form {
  padding: 20px;
  margin: 0 auto;
  background-color: var(--v-bg);
}

.lay-medium {
  max-width: 600px;
}

.lay-small {
  max-width: 400px;
}

.lay-large {
  max-width: 800px;
}

.lay-full {
  max-width: 100%;
}

.autocomplete_form {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}
.autocomplete_form .autocomplete-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--v-bg);
  z-index: 10;
  border-radius: var(--v-radius-lg);
  border: 1px solid var(--v-border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 12px 24px -4px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  padding: 6px;
}
.autocomplete_form .autocomplete-option {
  padding: 10px 14px;
  cursor: pointer;
  border-radius: var(--v-radius-md);
  font-size: 0.925rem;
  color: var(--v-text-secondary);
  transition: background 0.12s ease, color 0.12s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.autocomplete_form .autocomplete-option:hover,
.autocomplete_form .autocomplete-option.is-active {
  background: var(--v-bg-muted);
  color: var(--v-text);
}
.autocomplete_form .autocomplete-option + .autocomplete-option {
  margin-top: 2px;
}
.autocomplete_form .autocomplete-results:empty {
  display: none;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--v-bg);
  border: 1px solid var(--v-border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-result-item:hover {
  border-color: var(--color-indigo-500);
  box-shadow: 0 2px 12px color-mix(in srgb, var(--color-indigo-500) 8%, transparent);
}

.search-result-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.search-result-body {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--v-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-subtitle {
  font-size: 13px;
  color: var(--v-text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.search-result-arrow {
  color: var(--color-gray-a5);
  font-size: 13px;
  flex-shrink: 0;
}

body#home {
  background-color: var(--v-light-gray-bg);
  font-family: var(--v-font-sans);
  color: var(--v-text);
  font-size: 16px;
  background: asset-data-url("/assets/logo_bg-30b63b72.png") no-repeat top left;
}

/* erezes avatar - contact us */
body#home div.avatar {
  box-sizing: border-box;
  overflow: hidden;
  margin-bottom: 20px;
}
body#home div.avatar img {
  width: 100px;
  height: 100px;
  -webkit-border-radius: 100px;
  border-radius: 100px;
  -moz-border-radius: 100px;
}

body#home header div#header_section {
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  background-color: var(--v-bg);
}
body#home header div#header_section div#iner_header {
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  max-width: 980px;
  margin: 0 auto;
  min-height: 80px;
}
body#home header div#header_section div#iner_header div#logo {
  position: absolute;
  left: 10px;
  top: 20px;
  width: 45px;
  height: 45px;
}
body#home header div#header_section div#iner_header div#logo .logo-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: var(--v-bg);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
body#home header div#header_section div#iner_header div#logo .logo-brand i {
  color: color-mix(in srgb, var(--color-brand) 95%, transparent);
  font-size: 30px;
}
body#home header div#header_section div#iner_header div#navigation {
  box-sizing: border-box;
  overflow: hidden;
}
body#home header div#header_section div#iner_header div#navigation div#mobile_nav_icon {
  position: absolute;
  top: 20px;
  right: 10px;
}
body#home header div#header_section div#iner_header div#navigation div#mobile_nav_icon i {
  color: var(--v-text-muted);
  font-size: 30px;
  cursor: pointer;
}
body#home header div#header_section div#iner_header div#navigation #main-navbar {
  display: block;
  margin-top: 0;
}
body#home header div#header_section div#iner_header div#navigation .topnav-list {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin-top: 30px;
  padding: 0;
}
body#home header div#header_section div#iner_header div#navigation .topnav-link {
  text-decoration: none;
  transition: color 0.2s;
  color: var(--v-text-muted);
  font-size: 18px;
  float: right;
}
body#home header div#header_section div#iner_header div#navigation .topnav-link:hover {
  color: var(--v-text);
  text-decoration: underline;
}

@media screen and (min-width: 550px) {
  body#home header div#header_section div#iner_header div#navigation #main-navbar {
    display: block !important;
  }
  body#home header div#header_section div#iner_header div#navigation div#mobile_nav_icon {
    display: none !important;
  }
}
@media screen and (max-width: 550px) {
  body#home header div#header_section div#iner_header div#navigation div#mobile_nav_icon {
    display: block;
    margin-top: 10px;
  }
  body#home header div#header_section div#iner_header div#navigation #main-navbar {
    display: none;
    margin-top: 90px;
  }
  body#home header div#header_section div#iner_header div#navigation #main-navbar.open {
    display: block;
  }
  body#home header div#header_section div#iner_header div#navigation .topnav-list {
    display: block;
  }
  body#home header div#header_section div#iner_header div#navigation .topnav-list li {
    padding: 10px;
    margin-left: 20px;
    border-bottom: 1px solid var(--v-border-muted);
  }
  body#home header div#header_section div#iner_header div#navigation .topnav-link {
    float: none;
    margin-bottom: 20px;
  }
  body#home div#main_content {
    padding: 0 20px;
  }
}
body#home div#main_content {
  padding: 40px 0;
  margin: 0;
  min-height: 500px;
  background-color: var(--v-bg);
}
body#home div#main_content div#titles {
  box-sizing: border-box;
  overflow: hidden;
  padding: 100px 10px;
  text-align: center;
}
body#home div#main_content div#titles h1 {
  text-align: center;
}
body#home div#main_content div#titles div#sub_titles {
  max-width: 500px;
  margin: 0 auto;
  padding-top: 20px;
  padding-bottom: 20px;
  box-sizing: border-box;
  overflow: hidden;
  font-size: 18px;
  color: var(--v-text-faint);
  text-align: center;
}
body#home div#main_content div#titles div#sub_titles a:link,
body#home div#main_content div#titles div#sub_titles a:visited {
  color: var(--v-text);
  text-decoration: underline;
}
body#home div#main_content div#titles a.button {
  color: var(--color-white);
}

@media screen and (max-width: 550px) {
  body#home div#main_content div#titles {
    padding: 50px 10px;
  }
}
body#home #accessibility a:link i,
body#home #accessibility a:visited i {
  font-size: 30px;
  color: var(--v-text);
}

body#home div#main_content div#page_wrapper {
  padding: 0 20px;
}
body#home div#main_content div#page_wrapper h1 {
  text-align: center;
  margin-bottom: 30px;
}
body#home div#main_content div#page_wrapper div#quote {
  text-align: center;
  padding-bottom: 20px;
  font-size: 14px;
  max-width: 300px;
  margin: 0 auto;
}

.login-form {
  margin: 0 auto;
  max-width: 500px;
  padding: 30px 20px;
  background-color: var(--v-bg);
  border-radius: 1rem;
  margin-bottom: 30px;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: 0 0 32px rgba(86, 74, 64, 0.1);
}

body#home div#main_content div#content {
  box-sizing: border-box;
  overflow: hidden;
}
body#home div#main_content div#content div#iner_content {
  box-sizing: border-box;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
  padding: 30px 20px;
}
body#home div#main_content div#content a.button {
  color: var(--color-white);
}

body#home div#main_content div#page_layout div#mobile_page_layout {
  max-width: 500px;
  margin: 0 auto;
  padding: 30px 20px;
}
body#home div#main_content div#page_layout div#pad_page_layout {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px 20px;
}
body#home div#main_content div#page_layout div#desktop_page_layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}
body#home div#main_content div#page_layout a.button {
  color: var(--color-white);
}

/* existing wrapper stays the same */
.subdomain-field {
  width: 100%;
}

/* new url group */
.subdomain-url-builder {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 720px;
  direction: ltr;
  unicode-bidi: isolate;
  flex-wrap: nowrap;
}

/* the 3 pieces look like one control */
.subdomain-url-builder__prefix,
.subdomain-url-builder__suffix,
.subdomain-url-builder__input-wrap {
  display: flex;
  align-items: center;
  min-height: var(--v-control-h);
  border: 1px solid var(--v-border);
  background: var(--v-surface);
}

/* left piece */
.subdomain-url-builder__prefix {
  padding: 0 0.9rem;
  white-space: nowrap;
  border-inline-end: 0;
  border-radius: 1.5rem 0 0 1.5rem;
  color: var(--v-text-muted);
  flex: 0 0 auto;
}

/* middle piece */
.subdomain-url-builder__input-wrap {
  flex: 1 1 220px;
  min-width: 0;
  border-inline-end: 0;
  border-radius: 0;
  padding: 0;
  background: var(--v-field-bg);
}

/* keep your v-input, only refine it inside this component */
.subdomain-url-builder__input-wrap .subdomain-url-builder__input,
.subdomain-url-builder__input-wrap .v-input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding-inline: 0.9rem;
  text-align: left;
}

/* remove duplicate focus outline from input itself */
.subdomain-url-builder__input-wrap .subdomain-url-builder__input:focus,
.subdomain-url-builder__input-wrap .v-input:focus {
  outline: none;
  box-shadow: none;
}

/* right piece */
.subdomain-url-builder__suffix {
  padding: 0 0.9rem;
  white-space: nowrap;
  border-radius: 0 1.5rem 1.5rem 0;
  color: var(--v-text-muted);
  flex: 0 0 auto;
}

/* focus style for the whole connected control */
.subdomain-url-builder:focus-within .subdomain-url-builder__prefix,
.subdomain-url-builder:focus-within .subdomain-url-builder__input-wrap,
.subdomain-url-builder:focus-within .subdomain-url-builder__suffix {
  border-color: var(--v-focus);
}

/* optional subtle invalid feeling if rails adds field_with_errors around input */
.subdomain-url-builder .field_with_errors {
  display: contents;
}

/* responsive */
@media (max-width: 640px) {
  .subdomain-url-builder {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .subdomain-url-builder__prefix,
  .subdomain-url-builder__input-wrap,
  .subdomain-url-builder__suffix {
    border: 1px solid var(--v-border);
    border-radius: 10px;
  }
  .subdomain-url-builder__prefix,
  .subdomain-url-builder__suffix {
    flex: 0 0 auto;
  }
  .subdomain-url-builder__input-wrap {
    flex: 1 1 100%;
    order: 2;
  }
  .subdomain-url-builder__prefix {
    order: 1;
  }
  .subdomain-url-builder__suffix {
    order: 3;
  }
}
#topics_list,
#appendixes_list,
#lessons_list {
  position: relative;
  /* ✅ Responsive tweak: stack cells vertically on smaller screens */
}
#topics_list .table,
#appendixes_list .table,
#lessons_list .table {
  position: relative;
  width: 100%;
}
#topics_list .row,
#appendixes_list .row,
#lessons_list .row {
  display: flex;
  flex-wrap: wrap; /* ✅ Allow wrapping on smaller screens */
  border: 1px solid var(--v-border);
  padding: 5px 0;
  margin-bottom: 1rem;
  border-radius: var(--v-radius-hg);
  background-color: var(--v-bg);
}
#topics_list .cell,
#appendixes_list .cell,
#lessons_list .cell {
  flex: 1 1 0;
  padding: 0.5em 1em;
  min-width: 100px;
  box-sizing: border-box;
}
#topics_list .cell.handle,
#appendixes_list .cell.handle,
#lessons_list .cell.handle {
  flex: 0 0 auto;
  min-width: 50px;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
}
#topics_list .cell.handle i,
#appendixes_list .cell.handle i,
#lessons_list .cell.handle i {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--v-text-faint);
  background-color: var(--v-bg-muted);
  border-radius: 20px;
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  line-height: 1;
}
#topics_list .cell.kg,
#appendixes_list .cell.kg,
#lessons_list .cell.kg {
  flex: 0 0 auto;
  font-weight: bold;
  min-width: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#topics_list .cell.block,
#appendixes_list .cell.block,
#lessons_list .cell.block {
  flex: 0 0 auto;
  font-weight: bold;
  min-width: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#topics_list .cell.active,
#appendixes_list .cell.active,
#lessons_list .cell.active {
  flex: 0 0 auto;
  font-weight: bold;
  min-width: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#topics_list .cell.title,
#appendixes_list .cell.title,
#lessons_list .cell.title {
  flex: 3 1 300px;
  text-align: right;
}
#topics_list .cell.title a:link,
#topics_list .cell.title a:visited,
#appendixes_list .cell.title a:link,
#appendixes_list .cell.title a:visited,
#lessons_list .cell.title a:link,
#lessons_list .cell.title a:visited {
  font-weight: bold;
  color: var(--v-text);
  text-decoration: none;
}
#topics_list .cell.edit,
#appendixes_list .cell.edit,
#lessons_list .cell.edit {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}
#topics_list .cell.block,
#topics_list .cell.active,
#topics_list .cell.edit,
#appendixes_list .cell.block,
#appendixes_list .cell.active,
#appendixes_list .cell.edit,
#lessons_list .cell.block,
#lessons_list .cell.active,
#lessons_list .cell.edit {
  text-align: center;
}
#topics_list .cell.block a:link,
#topics_list .cell.block a:visited,
#topics_list .cell.active a:link,
#topics_list .cell.active a:visited,
#topics_list .cell.edit a:link,
#topics_list .cell.edit a:visited,
#appendixes_list .cell.block a:link,
#appendixes_list .cell.block a:visited,
#appendixes_list .cell.active a:link,
#appendixes_list .cell.active a:visited,
#appendixes_list .cell.edit a:link,
#appendixes_list .cell.edit a:visited,
#lessons_list .cell.block a:link,
#lessons_list .cell.block a:visited,
#lessons_list .cell.active a:link,
#lessons_list .cell.active a:visited,
#lessons_list .cell.edit a:link,
#lessons_list .cell.edit a:visited {
  color: var(--v-text);
  text-decoration: none;
}
@media (max-width: 450px) {
  #topics_list .row,
  #appendixes_list .row,
  #lessons_list .row {
    flex-direction: column;
    padding: 10px;
  }
  #topics_list .cell,
  #appendixes_list .cell,
  #lessons_list .cell {
    flex: 1 1 100%;
    padding: 0.5em 0;
    text-align: center;
  }
  #topics_list .cell.title,
  #appendixes_list .cell.title,
  #lessons_list .cell.title {
    text-align: center;
    flex: 1 1 0;
  }
}

.sortable-updated {
  animation: highlight 0.7s;
}

@keyframes highlight {
  from {
    background: var(--v-warning-bg);
  }
  to {
    background: none;
  }
}
@media screen and (max-width: 888px) {
  body#app div#workshops_list .table {
    max-width: 800px;
  }
  body#app div#workshops_list .row {
    position: relative;
    display: block;
    border: 1px solid var(--v-border);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 5px;
  }
  body#app div#workshops_list .cell {
    display: block;
    padding: 0;
    margin: 0;
  }
  body#app div#workshops_list .cell.titles {
    flex: none;
    min-width: 300px;
  }
  body#app div#workshops_list .handle {
    flex: none;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 100px;
    text-align: right;
  }
  body#app div#workshops_list .cell.dropdown_section {
    flex: none;
    position: absolute;
    top: 10px;
    left: 10px;
    min-width: 100px;
    text-align: right;
    padding: 0;
  }
  body#app div#workshops_list .workshop_image {
    flex: none;
    box-sizing: border-box;
    padding-top: 30px;
  }
}
/* view modes edit | mobile | student view */
.view-mode-controls {
  background: var(--v-bg);
  border-bottom: 1px solid var(--v-border);
  padding: 12px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.mode-buttons {
  display: flex;
  gap: 6px; /* Slightly reduced gap for 4 buttons */
  background: var(--v-surface);
  padding: 4px;
  border-radius: var(--v-radius-md);
  border: 1px solid var(--v-border);
  flex-wrap: wrap; /* Allow wrapping on very small screens */
}

.mode-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px; /* Slightly reduced padding */
  background: transparent;
  border: none;
  border-radius: var(--v-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  color: var(--v-text-muted);
  font-weight: 500;
  position: relative;
  min-width: 0; /* Allow buttons to shrink */
}

.mode-btn:hover {
  background: var(--color-gray-a7);
  color: var(--v-text-secondary);
}

.mode-btn.active {
  background: var(--v-positive);
  color: var(--color-white);
  box-shadow: 0 2px 4px color-mix(in srgb, var(--v-primary) 20%, transparent);
}

.mode-btn i {
  font-size: 16px;
  flex-shrink: 0; /* Keep icons from shrinking */
}

.mode-btn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Special styling for the external link button */
.mode-btn[data-mode=student-tab] {
  border: 1px solid var(--v-positive);
  color: var(--v-positive);
}

.mode-btn[data-mode=student-tab]:hover {
  background: var(--v-positive);
  color: var(--color-white);
}

.auth-status {
  position: absolute;
  top: -2px;
  right: -2px;
}

/* Responsive adjustments for 4 buttons */
@media (max-width: 768px) {
  .view-mode-controls {
    padding: 8px 12px;
  }
  .mode-buttons {
    gap: 4px;
  }
  .mode-btn span {
    display: none; /* Hide text on mobile, show only icons */
  }
  .mode-btn {
    padding: 10px; /* Square buttons on mobile */
    min-width: 44px; /* Ensure touch-friendly size */
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .mode-buttons {
    /* Stack buttons in 2x2 grid on very small screens */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    width: 100%;
    max-width: 200px;
  }
}
/* Student mode iframe styles */
.mode-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white-a9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-spinner {
  text-align: center;
  color: var(--v-primary);
}

.loading-spinner i {
  font-size: 32px;
  margin-bottom: 16px;
}

.iframe-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--v-bg);
  z-index: 1001;
  display: flex;
  flex-direction: column;
}

.iframe-header {
  background: var(--v-surface);
  padding: 12px 20px;
  border-bottom: 1px solid var(--v-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.iframe-title {
  font-weight: 600;
  color: var(--v-text-secondary);
}

.close-iframe {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--v-text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.close-iframe:hover {
  background: var(--color-gray-a7);
}

#student_iframe {
  flex: 1;
  width: 100%;
  height: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .view-mode-controls {
    padding: 8px 12px;
  }
  .mode-btn span {
    display: none;
  }
  .mode-btn {
    padding: 8px 12px;
  }
}
/* sync with academy lesson design  */
#edit_lesson_section {
  background-color: var(--v-bg);
  padding-bottom: 30px;
}

#academy_section {
  position: relative;
}

/* Main Container */
.lesson-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  min-height: 100vh;
  background: var(--v-bg);
  box-shadow: 0 2px 10px var(--color-black-base);
  /* Content Section (Right on Desktop for RTL) */
}

.lesson-content {
  width: 66.666%;
  padding: 2rem;
  overflow-y: auto;
}

.lesson-navigation {
  width: 33.33%;
  background: linear-gradient(135deg, var(--v-light-gray-bg) 0%, var(--v-bg) 100%);
  color: var(--color-white);
  padding: 2rem;
  position: relative;
  order: -1;
  overflow-y: auto;
  /* Section Styles */
}
.lesson-navigation .nav-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--v-text);
}
.lesson-navigation .nav-section {
  margin-bottom: 0.5rem;
  border-radius: 10px;
  overflow: hidden;
  background: var(--v-bg-muted);
}
.lesson-navigation .nav-section .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  background: rgba(51, 51, 51, 0.8); /* dark chrome, theme-independent */
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 600;
  width: 100%;
  text-align: right;
}
.lesson-navigation .nav-section .section-header:hover {
  background: rgba(34, 34, 34, 0.8); /* dark chrome, theme-independent */
}
.lesson-navigation .nav-section .section-header.active {
  background: rgba(51, 51, 51, 0.8); /* dark chrome, theme-independent */
}
.lesson-navigation .nav-section .section-title {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.lesson-navigation .nav-section .section-icon {
  font-size: 1.2rem;
}
.lesson-navigation .nav-section .section-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}
.lesson-navigation .nav-section .section-arrow.expanded {
  transform: rotate(270deg);
}
.lesson-navigation .nav-section .section-stats {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-right: 0.5rem;
}
.lesson-navigation .nav-section .lessons-list {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--v-bg-muted);
}
.lesson-navigation .nav-section .lessons-list.expanded {
  display: block;
}
.lesson-navigation .nav-section .lessons-list li {
  border-bottom: 1px solid var(--color-white-base);
}
.lesson-navigation .nav-section .lessons-list li.current,
.lesson-navigation .nav-section .lessons-list li:hover {
  background: var(--v-bg);
}
.lesson-navigation .nav-section .lessons-list li.current a,
.lesson-navigation .nav-section .lessons-list li:hover a {
  font-weight: bold;
}
.lesson-navigation .nav-section .lessons-list li:last-child {
  border-bottom: none;
}
.lesson-navigation .nav-section .lessons-list a {
  color: var(--v-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}
.lesson-navigation .nav-section .lessons-list a:hover {
  background: var(--v-bg);
  transform: translateX(-5px);
}
.lesson-navigation .nav-section .lessons-list a.active {
  background: var(--color-white-a1);
  font-weight: 400;
}
.lesson-navigation .nav-section .lessons-list a.locked {
  opacity: 0.6;
  cursor: not-allowed;
}
.lesson-navigation .nav-section .lessons-list a.locked:hover {
  background: transparent;
  transform: none;
}
.lesson-navigation .nav-section .lesson-text {
  flex: 1;
}
.lesson-navigation .nav-section .lesson-icons {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-right: 0.5rem;
}
.lesson-navigation .nav-section .lesson-icon {
  font-size: 0.9rem;
  opacity: 0.8;
}
.lesson-navigation .nav-section .lesson-icon.unlocked {
  color: var(--v-positive);
}
.lesson-navigation .nav-section .lesson-icon.locked {
  color: var(--v-negative);
}
.lesson-navigation .nav-section .lesson-icon.visited {
  color: var(--v-info);
}
.lesson-navigation .nav-section .lesson-icon.completed {
  color: var(--v-warning);
}

#parts #workshop_header_image {
  margin-bottom: 20px;
}
#parts #workshop_header_image img {
  width: 100%;
  border-radius: 10px;
}
#parts #lesson_main_title {
  padding: 1rem;
  font-size: 1.5rem;
  text-align: center;
  border-radius: 10px;
  background-color: var(--v-bg-muted);
  color: var(--v-text);
  margin-bottom: 20px;
}

.embeded-player {
  background: var(--v-bg-muted);
  border-radius: 20px;
  overflow: hidden;
}
.embeded-player .part-title {
  padding: 1.2rem;
  font-size: 1.3rem;
  font-weight: bold;
  text-align: center;
}

/* Video Container Styles */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  background-color: var(--color-black);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--v-radius-md);
}

/* Custom Video Player Styles */
.video-player-container {
  background-color: var(--color-black);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.custom-video-player {
  width: 100%;
  height: auto;
  display: block;
  background-color: var(--color-black);
  outline: none;
}

.custom-video-player:focus {
  outline: 2px solid var(--v-primary);
  outline-offset: 2px;
}

.video-fallback {
  padding: 2rem;
  text-align: center;
  background-color: var(--v-surface);
  color: var(--v-text-muted);
}

.video-fallback a {
  color: var(--v-link);
  text-decoration: none;
  font-weight: 500;
}

.video-fallback a:hover {
  text-decoration: underline;
}

/* Audio Player Styles */
.audio-player-container {
  margin: 0 1.5rem 1.5rem;
  max-width: 100%;
}

.title-icon {
  display: flex;
  flex-direction: column; /* icon above text */
  align-items: center; /* center horizontally */
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.title-icon i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem; /* equal width/height = perfect circle */
  height: 3.5rem;
  line-height: 1; /* avoid extra vertical offset */
  font-size: 2rem;
  margin-bottom: 0.25rem;
  color: var(--v-text-secondary) !important;
  background-color: var(--color-gray-a5);
  border-radius: 50%;
  padding: 0; /* no need for padding when using fixed size */
}

.audio-player-wrapper {
  background: var(--v-bg);
  border-radius: var(--v-radius-lg);
  padding: 1.5rem;
  box-shadow: 0 2px 8px var(--color-black-base);
  border: 1px solid var(--v-border);
}

.custom-audio-player {
  width: 100%;
  height: 54px;
  outline: none;
  border-radius: var(--v-radius-md);
  background-color: var(--v-bg);
}

.custom-audio-player:focus {
  outline: 2px solid var(--v-primary);
  outline-offset: 2px;
}

.audio-fallback {
  padding: 1.5rem;
  text-align: center;
  background-color: var(--v-warning-bg);
  color: var(--v-warning-text);
  border-radius: var(--v-radius-md);
  margin-top: 1rem;
}

.audio-fallback a {
  color: var(--v-warning-text);
  font-weight: 500;
  text-decoration: none;
}

.audio-fallback a:hover {
  text-decoration: underline;
}

/* Embed Container Styles */
.custom-embed-container,
.generic-embed-container {
  margin: 1rem 0;
  text-align: center;
}

.custom-embed-container iframe,
.generic-embed-container iframe {
  max-width: 100%;
  border-radius: var(--v-radius-md);
  box-shadow: 0 2px 8px var(--color-black-base);
}

/* Responsive Design */
@media (max-width: 768px) {
  .video-container {
    margin: 0.75rem 0;
    border-radius: var(--v-radius-sm);
  }
  .audio-player-wrapper {
    padding: 1rem;
    border-radius: var(--v-radius-md);
  }
  .custom-audio-player {
    height: 48px;
  }
}
/* Print styles */
@media print {
  .video-container,
  .video-player-container,
  .audio-player-container {
    display: none;
  }
  .video-container::after,
  .audio-player-container::after {
    content: "[Video/Audio content - not available in print]";
    display: block;
    padding: 1rem;
    background-color: var(--v-surface);
    border: 1px dashed var(--v-border);
    text-align: center;
    color: var(--v-text-muted);
  }
}
/* Mobile Navigation */
.mobile-nav-header {
  display: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* theme-note: decorative gradient, intentional */
  color: var(--color-white);
  padding: 1rem;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.hamburger {
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.hamburger:hover {
  background: var(--color-white-base);
}

/* Mobile Styles */
@media (max-width: 980px) {
  #academy_section {
    padding-top: 60px;
  }
  .mobile-nav-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
  }
  .lesson-container {
    display: block !important;
    width: 100%;
    margin: 0;
    box-shadow: none;
  }
  .lesson-container .lesson-navigation {
    width: 100%;
    display: none;
    padding: 1rem;
    position: relative;
    z-index: 999;
    order: 0;
    margin-top: 1rem;
  }
  .lesson-container .lesson-navigation .nav-title {
    margin: 0;
  }
  .lesson-container .lesson-navigation .nav-section .section-header {
    padding: 1rem;
    font-size: 1.1rem;
  }
  .lesson-container .lesson-navigation .nav-section .section-header .lessons-list a {
    padding: 1rem 1.2rem;
    font-size: 1rem;
  }
  .lesson-container .lesson-navigation.active {
    display: block;
    width: 100% !important;
  }
  .lesson-container .lesson-content {
    width: 100% !important;
    padding: 1rem;
    margin-top: 1rem;
  }
  .lesson-container .lesson-content h1 {
    font-size: 2rem;
  }
  .lesson-container .lesson-content h2 {
    font-size: 1.5rem;
  }
}
/* Extra small screens */
@media (max-width: 480px) {
  #edit_lesson_section #academy_section .lesson-container .lesson-content h1 {
    font-size: 1.8rem;
  }
  .mobile-nav-header {
    padding: 0.8rem;
  }
}
/* Mobile mode styles view mods buttons */
.mobile-preview-mode {
  max-width: 375px;
  margin: 0 auto;
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--color-black-base);
  margin-top: 20px;
  margin-bottom: 20px;
}
.mobile-preview-mode .mobile-nav-header {
  display: block;
}
.mobile-preview-mode .lesson-navigation {
  display: none;
  width: 100% !important;
}
.mobile-preview-mode .lesson-navigation .nav-title {
  margin: 0;
}
.mobile-preview-mode .lesson-navigation.active {
  display: block !important;
  width: 100% !important;
  padding: 1rem;
}
.mobile-preview-mode .lesson-content {
  width: 100% !important;
  padding: 1rem;
  display: block;
}
.mobile-preview-mode .lesson-container {
  display: block !important;
  width: 100%;
  margin: 0;
  box-shadow: none;
}

body#app div#registration_page_designer {
  margin: 0;
  display: flex;
  height: 100vh;
  overflow: hidden;
  font-size: 16px;
}
body#app div#registration_page_designer .preview-section {
  flex-grow: 1;
  background: var(--v-light-gray-bg);
  display: flex;
  flex-direction: column;
}
body#app div#registration_page_designer .preview-toolbar {
  padding: 10px;
  background: var(--v-bg);
  border-bottom: 1px solid var(--v-border);
  display: flex;
  justify-content: center;
  gap: 10px;
}
body#app div#registration_page_designer .preview-toolbar button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background 0.2s;
}
body#app div#registration_page_designer .preview-toolbar button:hover {
  background: var(--v-bg-muted);
}
body#app div#registration_page_designer .preview-iframe {
  flex-grow: 1;
  border: none;
  width: 100%;
}
body#app div#registration_page_designer .settings-section {
  width: 400px;
  background: var(--v-bg);
  border-left: 3px solid var(--v-border);
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

body#app div#lti_platforms {
  max-width: 800px;
  margin: 0 auto;
}
body#app div#lti_platforms div#copy_code {
  margin-bottom: 30px;
}
body#app div#lti_platforms div#lti_mobile_form {
  width: 350px;
  margin: 0 auto;
}

/* ============================================
   Turbo Frame Modal System - Scoped Classes
   ============================================ */
/* Turbo Modal Wrapper - Full Screen Overlay */
.turbo-modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* Click through to backdrop */
}

/* Turbo Modal Dialog - Centered Box */
.turbo-modal-dialog {
  position: relative;
  width: 90%;
  max-width: 600px;
  max-height: 100vh;
  z-index: 10002;
  pointer-events: auto; /* Capture clicks on modal */
}

/* Turbo Modal Content */
.turbo-modal-content {
  background: var(--v-bg);
  border-radius: var(--v-radius-md);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Turbo Modal Header */
.turbo-modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--v-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.turbo-modal-header h5 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

/* Close Button */
.turbo-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  line-height: 1;
  color: var(--v-text-muted);
  transition: color 0.2s;
}

.turbo-modal-close:hover {
  color: var(--v-text);
}

/* Turbo Modal Body */
.turbo-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

/* Turbo Modal Footer */
.turbo-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--v-border);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Turbo Modal Backdrop */
#turbo-modal-backdrop {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-black-a4);
}

/* Show backdrop when turbo modal has content */
turbo-frame#modal:not(:empty) ~ #turbo-modal-backdrop {
  display: block;
}

/* ============================================
   Wide variant — image grids (gallery modal)
   ============================================ */
.turbo-modal-dialog--wide {
  width: 96%;
  max-width: 1100px;
}
.turbo-modal-dialog--wide .turbo-modal-content {
  max-height: 92vh;
}

@media (max-width: 640px) {
  .turbo-modal-dialog--wide {
    width: 100%;
    max-width: 100%;
  }
  .turbo-modal-dialog--wide .turbo-modal-content {
    max-height: 100vh;
    border-radius: 0;
  }
}
/* ---- Gallery modal (images#picker / #manage) ---- */
.gp-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-block: 12px 8px;
}

.gp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

@media (max-width: 480px) {
  .gp-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
}
.gp-item {
  position: relative;
  display: block;
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--v-radius-md);
  background: var(--v-bg-muted);
  overflow: hidden;
  cursor: pointer;
}
.gp-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gp-item:hover {
  border-color: var(--v-primary);
}
.gp-item__badge {
  position: absolute;
  inset-block-end: 6px;
  inset-inline-start: 6px;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--v-surface);
  color: var(--v-text-secondary);
  border: 1px solid var(--v-border-muted);
}

.gp-manage {
  display: grid;
  gap: 16px;
}
.gp-manage__image {
  position: relative;
  text-align: center;
}
.gp-manage__image img {
  max-width: 60%;
  max-height: 22vh;
  object-fit: contain;
  border-radius: var(--v-radius-md);
}
.gp-manage__archived {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-end: 8px;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--v-warning-bg);
  color: var(--v-warning-text);
}
.gp-manage__title {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--v-text-secondary);
}
.gp-manage__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block-start: 12px;
  border-block-start: 1px solid var(--v-border-muted);
}

.gp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gp-chips form {
  display: inline-flex;
}
.gp-chips .g-chip {
  cursor: pointer;
  font-size: 14px;
  padding: 6px 14px;
}

.gp-new-tag {
  display: flex;
  gap: 6px;
  margin-block-start: 10px;
  max-inline-size: 420px;
}
.gp-new-tag input[type=text] {
  flex: 1;
  min-inline-size: 0;
}

body#app div#workshops_list {
  position: relative;
  /* Optional: control column widths individually */
}
body#app div#workshops_list .table {
  position: relative;
  width: 100%;
}
body#app div#workshops_list .row {
  display: flex;
  flex-wrap: wrap; /* ✅ Allow wrapping on smaller screens */
  border: 1px solid var(--v-border);
  padding: 20px 0;
  margin-bottom: 10px;
  border-radius: var(--v-radius-lg);
  background-color: var(--v-bg);
}
body#app div#workshops_list .cell {
  flex: 1 1 0;
  padding: 0.5em 1em;
  min-width: 50px;
  /* Optionally add text-overflow: ellipsis etc */
}
body#app div#workshops_list .cell.handle {
  flex: 1 1 0;
  width: 50px;
  cursor: grab;
}
body#app div#workshops_list .cell.handle i {
  background-color: none;
  color: var(--v-text-faint);
  padding: 10px;
  border-radius: 10px;
}
body#app div#workshops_list .cell.handle i:hover {
  background-color: var(--v-light-gray-bg);
  color: var(--color-gray-a4);
}
body#app div#workshops_list .cell.workshop_image {
  flex: 1 1 0;
  min-width: 200px;
}
body#app div#workshops_list .cell.titles {
  flex: 15 1 0;
  min-width: 400px;
  text-align: right;
}
body#app div#workshops_list .cell.dropdown_section {
  flex: 1 1 0;
  min-width: 100px;
  text-align: right;
  padding: 0;
}
body#app div#workshops_list .cell.workshop_image {
  box-sizing: border-box;
  width: 180px;
}
body#app div#workshops_list .cell.workshop_image img {
  box-sizing: border-box;
  width: 160px;
  height: 80px;
  background-color: var(--v-bg-muted);
  border-radius: 3px;
  border: 1px solid var(--v-border-muted);
}
body#app div#workshops_list div.titles div.title a:link,
body#app div#workshops_list div.titles div.title a:visited {
  color: var(--v-text);
  font-weight: 700;
  font-size: 16px;
}
body#app div#workshops_list div.titles div.labels {
  margin-bottom: 2px;
}

#workshops.sortable-updated {
  animation: highlight 0.7s;
}

@keyframes highlight {
  from {
    background: var(--v-warning-bg);
  }
  to {
    background: none;
  }
}
@media screen and (max-width: 888px) {
  body#app div#workshops_list .table {
    max-width: 800px;
  }
  body#app div#workshops_list .row {
    position: relative;
    display: block;
    border: 1px solid var(--v-border);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 5px;
  }
  body#app div#workshops_list .cell {
    display: block;
    padding: 0;
    margin: 0;
  }
  body#app div#workshops_list .cell.titles {
    flex: none;
    min-width: 300px;
  }
  body#app div#workshops_list .handle {
    flex: none;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 100px;
    text-align: right;
  }
  body#app div#workshops_list .cell.dropdown_section {
    flex: none;
    position: absolute;
    top: 10px;
    left: 10px;
    min-width: 100px;
    text-align: right;
    padding: 0;
  }
  body#app div#workshops_list .workshop_image {
    flex: none;
    box-sizing: border-box;
    padding-top: 30px;
  }
}
@media screen and (max-width: 650px) {
  body#app div#desktop_main_wrapper_no_side_nav {
    padding: 0 !important;
  }
}
body#app div#branding {
  max-width: 400px;
  margin: 0 auto;
}
body#app div#branding div#header_image {
  margin-bottom: 20px;
}
body#app div#branding div#header_image img {
  width: 100%;
}

body#app div#workshop_promo_image_section {
  padding-bottom: 40px;
}

body#app div#topics_list {
  position: relative;
  /* Optional: control column widths individually */
}
body#app div#topics_list .table {
  position: relative;
  width: 100%;
}
body#app div#topics_list .row {
  display: flex;
  border-bottom: 1px solid var(--v-border);
  padding: 20px 0;
  margin-bottom: 5px;
}
body#app div#topics_list .cell {
  flex: 1 1 0;
  padding: 0.5em 1em;
  min-width: 50px;
  /* Optionally add text-overflow: ellipsis etc */
}
body#app div#topics_list .cell.handle {
  flex: 1 1 0;
  width: 50px;
}
body#app div#topics_list .cell.handle i {
  background: var(--v-bg-muted);
  padding: 10px;
  border-radius: 20px;
}
body#app div#topics_list .cell.topic_image {
  flex: 1 1 0;
  min-width: 100px;
}
body#app div#topics_list .cell.titles {
  flex: 15 1 0;
  min-width: 200px;
  text-align: right;
}
body#app div#topics_list .cell.edit_topic {
  flex: 1 1 0;
  min-width: 50px;
  text-align: right;
}
body#app div#topics_list .cell.delete_topic {
  flex: 1 1 0;
  min-width: 50px;
  text-align: right;
}

#topics.sortable-updated {
  animation: highlight 0.7s;
}

@keyframes highlight {
  from {
    background: var(--v-warning-bg);
  }
  to {
    background: none;
  }
}
.recommendations div#link_section {
  margin: 0 auto 30px;
  max-width: 600px;
  padding: 20px;
  background-color: var(--v-note-bg);
  border-radius: 20px;
  text-align: center;
}
.recommendations div#link_section div.text_section {
  text-align: right;
}

body#app div#sortable_root {
  direction: rtl;
}
body#app div#sortable_root .top_section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}
body#app div#sortable_root .top_section .handle {
  flex: 0 0 auto;
  min-width: 50px;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
}
body#app div#sortable_root .top_section .handle i {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--v-text-faint);
  background-color: var(--v-bg-muted);
  border-radius: 20px;
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  line-height: 1;
}
body#app div#sortable_root .top_section .section-handle {
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
body#app div#sortable_root .top_section .title {
  font-weight: 700;
  margin-right: 30px;
  margin-inline-end: auto;
}
body#app div#sortable_root .top_section .title a:link,
body#app div#sortable_root .top_section .title a:visited {
  color: var(--v-text);
}
body#app div#sortable_root .top_section .delete_sction_button {
  margin-inline-start: auto;
  margin-right: 30px;
}
body#app div#sortable_root .top_section .delete_sction_button form {
  display: inline-block;
}
body#app div#sortable_root .section {
  border: 1px solid var(--v-border);
  margin-bottom: 20px;
  direction: rtl;
  padding: 10px;
  background-color: var(--v-bg-muted);
  border-radius: 1.5rem;
  position: relative;
}

.hide-all-lessons .lessons_to_hide {
  display: none;
}

.section.sortable-ghost .lessons_to_hide {
  display: none !important;
}

.section.sortable-ghost > *:not(.top_section) {
  display: none !important;
}

.section.sortable-ghost {
  opacity: 0.5;
  background: var(--v-bg-muted);
}

.add-lesson-controls input,
.add-lesson-controls select {
  display: inline-block;
  vertical-align: middle;
}

.input_flex_container {
  display: flex;
  gap: 8px;
  align-items: center;
}
.input_flex_container .submit_flex_container input[type=submit] {
  border-radius: 20px;
  padding: 0 15px;
}

body#app div#edit_video_section div#rozi_section div#content {
  box-sizing: border-box;
  overflow: hidden;
  margin: 0 auto;
  margin-bottom: 30px;
  max-width: 840px;
  background-color: var(--v-bg);
}
body#app div#edit_video_section div#rozi_section div#content div#header {
  box-sizing: border-box;
  overflow: hidden;
}
body#app div#edit_video_section div#rozi_section div#content div#header img {
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
}
body#app div#edit_video_section div#rozi_section div#content div#iner_content {
  box-sizing: border-box;
  overflow: hidden;
  margin: 0 auto;
  max-width: 820px;
}
body#app div#edit_video_section div#rozi_section div#content div#iner_content div#video div#nav {
  box-sizing: border-box;
  overflow: hidden;
  color: var(--color-white);
  margin-bottom: 10px;
}
body#app div#edit_video_section div#rozi_section div#content div#iner_content div#video div#nav ul {
  box-sizing: border-box;
  overflow: hidden;
  list-style-type: none;
  width: 100%;
  margin: 0;
  padding: 0;
  padding-top: 5px;
}
body#app div#edit_video_section div#rozi_section div#content div#iner_content div#video div#nav ul li {
  box-sizing: border-box;
  overflow: hidden;
  float: right;
  text-align: center;
  vertical-align: middle;
  text-align: center;
  background-color: transparent;
  width: 100%;
}
body#app div#edit_video_section div#rozi_section div#content div#iner_content div#video div#nav ul li.selected a:link,
body#app div#edit_video_section div#rozi_section div#content div#iner_content div#video div#nav ul li.selected a:visited {
  box-sizing: border-box;
  overflow: hidden;
  color: var(--color-white);
  height: 100px;
  padding: 10px;
  display: block;
  text-align: center;
  font-size: 14px;
  background-color: var(--color-gray-base);
  border-radius: 3px;
  margin: 3px;
}
body#app div#edit_video_section div#rozi_section div#content div#iner_content div#video div#nav ul li.selected a:hover {
  background-color: var(--color-gray-base);
}
body#app div#edit_video_section div#rozi_section div#content div#iner_content div#video div#nav ul li.not_selected a:link,
body#app div#edit_video_section div#rozi_section div#content div#iner_content div#video div#nav ul li.not_selected a:visited {
  color: var(--v-text);
  height: 100px;
  padding: 10px;
  display: block;
  text-align: center;
  font-size: 14px;
  background-color: var(--v-bg-muted);
  border-radius: 3px;
  margin: 3px;
}
body#app div#edit_video_section div#rozi_section div#content div#iner_content div#video div#nav ul li.not_selected a:hover {
  background-color: var(--color-gray-base);
  color: var(--color-white);
}
body#app div#edit_video_section div#rozi_section div#content div#iner_content div#video div#parts {
  box-sizing: border-box;
  overflow: hidden;
  background-color: var(--v-bg);
}
body#app div#edit_video_section div#rozi_section div#content div#iner_content div#video div#parts div.part {
  margin-bottom: 20px;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}
body#app div#edit_video_section div#rozi_section div#content div#iner_content div#video div#parts div.part div.part_title {
  text-align: center;
  background-color: var(--v-light-gray-bg);
  font-size: 18px;
  padding: 20px 10px;
}
body#app div#edit_video_section div#rozi_section div#content div#iner_content div#video div.mce_text {
  box-sizing: border-box;
  overflow: hidden;
  padding: 0 10px;
}
body#app div#edit_video_section div#rozi_section div#content div#iner_content div#video div.mce_text ul,
body#app div#edit_video_section div#rozi_section div#content div#iner_content div#video div.mce_text ol {
  margin: 0 30px 10px;
}

@media screen and (min-width: 320px) {
  body#app div#edit_video_section div#rozi_section div#content div#iner_content div#video div#nav ul li {
    width: 50%;
  }
  body#app div#edit_video_section div#rozi_section div#content div#iner_content {
    padding: 0 5px;
  }
}
@media screen and (min-width: 625px) {
  body#app div#edit_video_section div#rozi_section div#content {
    margin-top: 20px;
  }
  body#app div#edit_video_section div#rozi_section div#content div#header {
    padding: 10px 10px 0;
  }
  body#app div#edit_video_section div#rozi_section div#content div#iner_content div#video div#nav ul li {
    width: 25%;
  }
}
/* Main dropdown box design */
.hidden {
  display: none;
}

.row {
  position: relative;
}

.dropdown_section {
  width: 100px;
  position: relative;
}
.dropdown_section a:link,
.dropdown_section a:visited {
  color: var(--v-text);
}
.dropdown_section a:hover {
  background-color: var(--v-bg-muted);
  text-decoration: none;
}
.dropdown_section .dropdown_position {
  position: absolute;
  right: -140px;
}

.dropdown_trigger {
  background-color: var(--v-bg-muted);
  padding: 2px 15px;
  border-radius: var(--v-radius-hg);
  border: 1px solid var(--v-border);
  line-height: 16px;
  color: var(--v-text-secondary);
}

.v-create,
.v-user {
  position: relative;
}

.avatar-menu-position {
  top: 45px;
  right: 0;
}

.create-new-menu-position {
  top: 45px;
  right: 0;
}

.dropdown_menu {
  position: absolute;
  width: 230px;
  background-color: var(--v-btn-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.13);
  z-index: 111;
  border-radius: 20px;
  padding: 8px 0;
  font-size: 16px;
  direction: rtl;
  border: 1px solid var(--v-border-muted); /* fix: 1 px -> 1px */
  /* One definition for clickable menu items (both a + button) */
  /* Your "button looks like link" */
  /* Spinner looks/aligns like a menu item and is perfectly centered */
}
.dropdown_menu a:link,
.dropdown_menu a:visited {
  color: var(--v-btn-text);
  font-weight: 500;
}
.dropdown_menu a:hover {
  background-color: var(--v-bg-muted);
  text-decoration: none;
}
.dropdown_menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dropdown_menu .dropdown_item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem;
  width: 100%;
  text-decoration: none;
  color: var(--v-btn-text);
  font-weight: 500;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: right; /* helps buttons */
}
.dropdown_menu .dropdown_item:hover {
  background: var(--v-btn-bg-hover);
  border-radius: 20px;
}
.dropdown_menu button.as_link {
  /* keep only what’s truly needed */
  appearance: none;
}
.dropdown_menu .progress-spinner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  min-height: 40px; /* optional: keeps row height consistent */
  color: var(--v-btn-text);
}
.dropdown_menu .progress-spinner-icon i {
  color: currentColor;
  font-weight: 600;
}

.top-30 {
  top: 30px;
}

.top-40 {
  top: 40px;
}

.top-50 {
  top: 50px;
}

:root {
  --rx-font-ui:-apple-system,BlinkMacSystemFont,"San Francisco","Segoe UI",Roboto,"Helvetica Neue",sans-serif;
  --rx-font-ui-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  --rx-rounded-sm:3px;
  --rx-rounded-md:6px;
  --rx-rounded-lg:9px;
  --rx-rounded-xl:12px;
  --rx-rounded-circle:99px;
  --rx-level-control:3;
  --rx-level-toolbar:5;
  --rx-level-tooltip:99;
  --rx-level-popup:100;
  --rx-outset-md:28px;
  --rx-toolbar-height:36px;
  --rx-toolbar-padding:2px;
  --rx-toolbar-button-width:32px;
  --rx-toolbar-button-height:34px;
  --rx-toolbar-icon-size:20px;
  --rx-fg-heading:#070707;
  --rx-fg-text:#2B2B3A;
  --rx-fg-subtle:#63636E;
  --rx-fg-placeholder:#A9A9AF;
  --rx-bg-input:#FFFFFF;
  --rx-bg-input-shaded:#F7F7F8;
  --rx-bg-input-on:#070707;
  --rx-bg-input-off:rgba(7, 7, 7, 0.15);
  --rx-bg-input-disabled:rgba(7, 7, 7, 0.05);
  --rx-bg-aluminum:#f8f8f8;
  --rx-bg-silver:#E6E6E6;
  --rx-bg-platinum:#CDCDCD;
  --rx-bg-base:#FFFFFF;
  --rx-bg-raised:#FFFFFF;
  --rx-bg-overlay:#FFFFFF;
  --rx-bg-toolbar:rgba(255, 255, 255, 0.97);
  --rx-bg-toolbar-raised:rgba(255, 255, 255, 0.97);
  --rx-bg-context:#070707;
  --rx-bg-context-active:#042C6A;
  --rx-bg-source:#191919;
  --rx-bg-focus:#F2F7FF;
  --rx-border-divider:rgba(7, 7, 7, 0.1);
  --rx-border-input:rgba(7, 7, 7, 0.2);
  --rx-border-focus:#73A9FF;
  --rx-fg-dark-accent:#070707;
  --rx-fg-dark-heading:#070707;
  --rx-fg-dark-text:rgba(7, 7, 7, 0.8);
  --rx-fg-dark-subtle:rgba(7, 7, 7, 0.6);
  --rx-fg-dark-minimal:rgba(7, 7, 7, 0.5);
  --rx-fg-dark-dimmed:rgba(7, 7, 7, 0.4);
  --rx-bg-dark-dimmed:rgba(7, 7, 7, 0.03);
  --rx-bg-dark-minimal:rgba(7, 7, 7, 0.05);
  --rx-bg-dark-subtle:rgba(7, 7, 7, 0.08);
  --rx-bg-dark-medium:rgba(7, 7, 7, 0.15);
  --rx-bg-dark-strong:rgba(7, 7, 7, 0.25);
  --rx-bg-dark-accent:#070707;
  --rx-bg-dark-accent-hover:rgba(7, 7, 7, 0.8);
  --rx-border-dark-dimmed:rgba(7, 7, 7, 0.05);
  --rx-border-dark-minimal:rgba(7, 7, 7, 0.08);
  --rx-border-dark-subtle:rgba(7, 7, 7, 0.1);
  --rx-border-dark-medium:rgba(7, 7, 7, 0.2);
  --rx-border-dark-accent:#070707;
  --rx-fg-light-accent:#FFFFFF;
  --rx-fg-light-heading:#FFFFFF;
  --rx-fg-light-text:rgba(255, 255, 255, 0.8);
  --rx-fg-light-subtle:rgba(255, 255, 255, 0.6);
  --rx-fg-light-minimal:rgba(255, 255, 255, 0.5);
  --rx-fg-light-dimmed:rgba(255, 255, 255, 0.4);
  --rx-bg-light-dimmed:rgba(255, 255, 255, 0.03);
  --rx-bg-light-minimal:rgba(255, 255, 255, 0.05);
  --rx-bg-light-subtle:rgba(255, 255, 255, 0.08);
  --rx-bg-light-medium:rgba(255, 255, 255, 0.15);
  --rx-bg-light-strong:rgba(255, 255, 255, 0.25);
  --rx-bg-light-accent:#FFFFFF;
  --rx-bg-light-accent-hover:rgba(255, 255, 255, 0.8);
  --rx-border-light-dimmed:rgba(255, 255, 255, 0.05);
  --rx-border-light-minimal:rgba(255, 255, 255, 0.08);
  --rx-border-light-subtle:rgba(255, 255, 255, 0.1);
  --rx-border-light-medium:rgba(255, 255, 255, 0.2);
  --rx-border-light-accent:#FFFFFF;
  --rx-fg-black-accent:#070707;
  --rx-fg-black-heading:#070707;
  --rx-fg-black-text:rgba(7, 7, 7, 0.8);
  --rx-fg-black-subtle:rgba(7, 7, 7, 0.6);
  --rx-fg-black-minimal:rgba(7, 7, 7, 0.5);
  --rx-fg-black-dimmed:rgba(7, 7, 7, 0.4);
  --rx-bg-black-dimmed:rgba(7, 7, 7, 0.03);
  --rx-bg-black-minimal:rgba(7, 7, 7, 0.05);
  --rx-bg-black-subtle:rgba(7, 7, 7, 0.08);
  --rx-bg-black-medium:rgba(7, 7, 7, 0.15);
  --rx-bg-black-accent:#070707;
  --rx-bg-black-accent-hover:rgba(7, 7, 7, 0.8);
  --rx-border-black-dimmed:rgba(7, 7, 7, 0.05);
  --rx-border-black-minimal:rgba(7, 7, 7, 0.08);
  --rx-border-black-subtle:rgba(7, 7, 7, 0.1);
  --rx-border-black-medium:rgba(7, 7, 7, 0.2);
  --rx-border-black-accent:#070707;
  --rx-fg-white-accent:#FFFFFF;
  --rx-fg-white-heading:#FFFFFF;
  --rx-fg-white-text:rgba(255, 255, 255, 0.8);
  --rx-fg-white-subtle:rgba(255, 255, 255, 0.6);
  --rx-fg-white-minimal:rgba(255, 255, 255, 0.5);
  --rx-fg-white-dimmed:rgba(255, 255, 255, 0.4);
  --rx-bg-white-dimmed:rgba(255, 255, 255, 0.03);
  --rx-bg-white-minimal:rgba(255, 255, 255, 0.05);
  --rx-bg-white-subtle:rgba(255, 255, 255, 0.08);
  --rx-bg-white-medium:rgba(255, 255, 255, 0.15);
  --rx-bg-white-accent:#FFFFFF;
  --rx-bg-white-accent-hover:rgba(255, 255, 255, 0.8);
  --rx-border-white-dimmed:rgba(255, 255, 255, 0.05);
  --rx-border-white-minimal:rgba(255, 255, 255, 0.08);
  --rx-border-white-subtle:rgba(255, 255, 255, 0.1);
  --rx-border-white-medium:rgba(255, 255, 255, 0.2);
  --rx-border-white-accent:#FFFFFF;
  --rx-fg-primary-accent:#0063FF;
  --rx-fg-primary-strong:#0247B5;
  --rx-fg-primary-text:#043583;
  --rx-bg-primary-minimal:#F2F7FF;
  --rx-bg-primary-subtle:#E5EFFF;
  --rx-bg-primary-medium:#C9DEFF;
  --rx-bg-primary-accent:#0063FF;
  --rx-bg-primary-accent-hover:#0247B5;
  --rx-bg-primary-static:#0063FF;
  --rx-border-primary-minimal:#C9DEFF;
  --rx-border-primary-subtle:#99C1FF;
  --rx-border-primary-medium:#99C1FF;
  --rx-border-primary-accent:#0063FF;
  --rx-border-primary-static:#0063FF;
  --rx-fg-negative-accent:#D70015;
  --rx-fg-negative-strong:#990211;
  --rx-fg-negative-text:#6F040E;
  --rx-bg-negative-minimal:#FFF0F1;
  --rx-bg-negative-subtle:#FFE1E5;
  --rx-bg-negative-medium:#FFC1C8;
  --rx-bg-negative-accent:#D70015;
  --rx-bg-negative-accent-hover:#D70015;
  --rx-bg-negative-static:#D70015;
  --rx-border-negative-minimal:#FFC1C8;
  --rx-border-negative-subtle:#FF8994;
  --rx-border-negative-medium:#FF8994;
  --rx-border-negative-acccent:#D70015;
  --rx-border-negative-static:#D70015;
  --rx-link-color:#0063FF;
  --rx-link-hover-color:#070707;
  --rx-link-dark-color:#070707;
  --rx-link-dark-hover-color:rgba(7, 7, 7, 0.6);
  --rx-link-dark-subtle-color:rgba(7, 7, 7, 0.6);
  --rx-link-dark-subtle-hover-color:#070707;
  --rx-shadow-modal:0 0 1px rgba(7, 7, 7, 0.25),0 5px 10px rgba(7, 7, 7, 0.05),0 10px 20px rgba(7, 7, 7, 0.05),0 20px 40px rgba(7, 7, 7, 0.05),0 40px 80px rgba(7, 7, 7, 0.05);
  --rx-shadow-dropdown:0 0 1px 0 rgba(0, 0, 0, 0.25),0 1px 1px -0.5px rgba(0, 0, 0, 0.07),0 3px 3px -1.5px rgba(0, 0, 0, 0.07),0 6px 6px -3px rgba(0, 0, 0, 0.07),0 12px 12px -6px rgba(0, 0, 0, 0.07);
  --rx-shadow-toolbar-raised:0 1px 3px rgba(7, 7, 7, 0.15),0 1px 2px rgba(7, 7, 7, 0.06);
  --rx-shadow-reorder:0 15px 30px rgba(7, 7, 7, 0.3);
  --rx-shadow-inner:inset 0 1px 1px rgba(7, 7, 7, 0.15);
  --rx-shadow-sm:0 1px 3px rgba(7, 7, 7, 0.15);
  --rx-shadow-md:0 1px 2px rgba(7, 7, 7, 0.05),0 3px 6px rgba(7, 7, 7, 0.05),0 2px 4px rgba(7, 7, 7, 0.05),0 10px 20px rgba(7, 7, 7, 0.05);
  --rx-shadow-lg:0 5px 10px rgba(7, 7, 7, 0.05),0 10px 20px rgba(7, 7, 7, 0.05),0 20px 40px rgba(7, 7, 7, 0.05),0 40px 80px rgba(7, 7, 7, 0.05);
  --rx-shadow-sm-border:0 0 1px rgba(7, 7, 7, 0.25),0 1px 3px rgba(7, 7, 7, 0.15);
  --rx-shadow-md-border:0 0 1px rgba(7, 7, 7, 0.25),0 1px 2px rgba(7, 7, 7, 0.05),0 3px 6px rgba(7, 7, 7, 0.05),0 2px 4px rgba(7, 7, 7, 0.05),0 10px 20px rgba(7, 7, 7, 0.05);
  --rx-shadow-lg-border:0 0 1px rgba(7, 7, 7, 0.25),0 5px 10px rgba(7, 7, 7, 0.05),0 10px 20px rgba(7, 7, 7, 0.05),0 20px 40px rgba(7, 7, 7, 0.05),0 40px 80px rgba(7, 7, 7, 0.05);
}

[rx-data-theme=dark] {
  --rx-fg-heading:#D8D8DB;
  --rx-fg-text:#C8C8CC;
  --rx-fg-subtle:#73737C;
  --rx-fg-placeholder:#73737C;
  --rx-bg-input:#141414;
  --rx-bg-input-shaded:#141414;
  --rx-bg-input-on:#73A9FF;
  --rx-bg-input-off:rgba(255, 255, 255, 0.2);
  --rx-bg-input-disabled:rgba(255, 255, 255, 0.05);
  --rx-bg-aluminum:#191919;
  --rx-bg-silver:#1E1E1E;
  --rx-bg-platinum:#2F2F2F;
  --rx-bg-base:#141414;
  --rx-bg-raised:#191919;
  --rx-bg-overlay:#191919;
  --rx-bg-toolbar:rgba(25, 25, 25, 0.97);
  --rx-bg-toolbar-raised:rgba(25, 25, 25, 0.97);
  --rx-bg-context-active:#C9DEFF;
  --rx-bg-focus:#061939;
  --rx-border-divider:rgba(255, 255, 255, 0.1);
  --rx-border-input:rgba(255, 255, 255, 0.2);
  --rx-border-focus:#73A9FF;
  --rx-fg-dark-accent:#FFFFFF;
  --rx-fg-dark-heading:rgba(255, 255, 255, 0.9);
  --rx-fg-dark-text:rgba(255, 255, 255, 0.8);
  --rx-fg-dark-subtle:rgba(255, 255, 255, 0.6);
  --rx-fg-dark-minimal:rgba(255, 255, 255, 0.5);
  --rx-fg-dark-dimmed:rgba(255, 255, 255, 0.4);
  --rx-bg-dark-dimmed:rgba(255, 255, 255, 0.03);
  --rx-bg-dark-minimal:rgba(255, 255, 255, 0.05);
  --rx-bg-dark-subtle:rgba(255, 255, 255, 0.08);
  --rx-bg-dark-medium:rgba(255, 255, 255, 0.15);
  --rx-bg-dark-strong:rgba(255, 255, 255, 0.25);
  --rx-bg-dark-accent:#F7F7F8;
  --rx-bg-dark-accent-hover:rgba(255, 255, 255, 0.8);
  --rx-border-dark-dimmed:rgba(255, 255, 255, 0.05);
  --rx-border-dark-minimal:rgba(255, 255, 255, 0.08);
  --rx-border-dark-subtle:rgba(255, 255, 255, 0.1);
  --rx-border-dark-medium:rgba(255, 255, 255, 0.2);
  --rx-border-dark-accent:#F7F7F8;
  --rx-fg-light-accent:#070707;
  --rx-fg-light-heading:rgba(7, 7, 7, 0.9);
  --rx-fg-light-text:rgba(7, 7, 7, 0.8);
  --rx-fg-light-subtle:rgba(7, 7, 7, 0.6);
  --rx-fg-light-minimal:rgba(7, 7, 7, 0.5);
  --rx-fg-light-dimmed:rgba(7, 7, 7, 0.4);
  --rx-bg-light-dimmed:rgba(7, 7, 7, 0.03);
  --rx-bg-light-minimal:rgba(7, 7, 7, 0.05);
  --rx-bg-light-subtle:rgba(7, 7, 7, 0.08);
  --rx-bg-light-medium:rgba(7, 7, 7, 0.15);
  --rx-bg-light-strong:rgba(7, 7, 7, 0.25);
  --rx-bg-light-accent:#070707;
  --rx-bg-light-accent-hover:rgba(7, 7, 7, 0.8);
  --rx-border-light-dimmed:rgba(7, 7, 7, 0.05);
  --rx-border-light-minimal:rgba(7, 7, 7, 0.08);
  --rx-border-light-subtle:rgba(7, 7, 7, 0.1);
  --rx-border-light-medium:rgba(7, 7, 7, 0.2);
  --rx-border-light-accent:#070707;
  --rx-fg-primary-accent:#73A9FF;
  --rx-fg-primary-strong:#99C1FF;
  --rx-fg-primary-text:#C9DEFF;
  --rx-bg-primary-minimal:#070D18;
  --rx-bg-primary-subtle:#061939;
  --rx-bg-primary-medium:#042C6A;
  --rx-bg-primary-accent:#73A9FF;
  --rx-bg-primary-accent-hover:#99C1FF;
  --rx-bg-primary-static:#0063FF;
  --rx-border-primary-minimal:#042C6A;
  --rx-border-primary-subtle:#043583;
  --rx-border-primary-medium:#043583;
  --rx-border-primary-accent:#73A9FF;
  --rx-border-primary-static:#0063FF;
  --rx-fg-negative-accent:#FF5D6C;
  --rx-fg-negative-strong:#FF8994;
  --rx-fg-negative-text:#FFC1C8;
  --rx-bg-negative-minimal:#160708;
  --rx-bg-negative-subtle:#31060A;
  --rx-bg-negative-medium:#5A040D;
  --rx-bg-negative-accent:#FF5D6C;
  --rx-bg-negative-accent-hover:#FF8994;
  --rx-bg-negative-static:#D70015;
  --rx-border-negative-minimal:#5A040D;
  --rx-border-negative-subtle:#6F040E;
  --rx-border-negative-medium:#6F040E;
  --rx-border-negative-accent:#FF5D6C;
  --rx-border-negative-static:#D70015;
  --rx-link-color:#73A9FF;
  --rx-link-hover-color:#FFFFFF;
  --rx-link-dark-color:#FFFFFF;
  --rx-link-dark-hover-color:rgba(255, 255, 255, 0.6);
  --rx-link-dark-subtle-color:rgba(255, 255, 255, 0.6);
  --rx-link-dark-subtle-hover-color:#FFFFFF;
  --rx-shadow-modal:0 0 1px rgba(255, 255, 255, 0.5),0 5px 10px rgba(7, 7, 7, 0.05),0 10px 20px rgba(7, 7, 7, 0.05),0 20px 40px rgba(7, 7, 7, 0.05),0 40px 80px rgba(7, 7, 7, 0.05);
  --rx-shadow-dropdown:0 0 1px 0 rgba(255, 255, 255, 0.4),0 1px 1px -0.5px rgba(0, 0, 0, 0.07),0 3px 3px -1.5px rgba(0, 0, 0, 0.07),0 6px 6px -3px rgba(0, 0, 0, 0.07),0 12px 12px -6px rgba(0, 0, 0, 0.07);
  --rx-shadow-sm-border:0 0 1px rgba(255, 255, 255, 0.5),0 1px 3px rgba(7, 7, 7, 0.15);
  --rx-shadow-md-border:0 0 1px rgba(255, 255, 255, 0.5),0 1px 2px rgba(7, 7, 7, 0.05),0 3px 6px rgba(7, 7, 7, 0.05),0 2px 4px rgba(7, 7, 7, 0.05),0 10px 20px rgba(7, 7, 7, 0.05);
  --rx-shadow-lg-border:0 0 1px rgba(255, 255, 255, 0.5),0 5px 10px rgba(7, 7, 7, 0.05),0 10px 20px rgba(7, 7, 7, 0.05),0 20px 40px rgba(7, 7, 7, 0.05),0 40px 80px rgba(7, 7, 7, 0.05);
}

@keyframes slideUp {
  to {
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
  }
}
@keyframes slideDown {
  from {
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes progress-bar-stripes {
  from {
    background-position: 40px 0;
  }
  to {
    background-position: 0 0;
  }
}
.rx-container {
  position: relative;
  box-sizing: border-box;
}

.rx-container.rx-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  overflow-x: auto;
}

.rx-main-container {
  border-radius: var(--rx-rounded-sm);
  background-color: var(--rx-bg-base);
  border: 1px solid var(--rx-border-dark-minimal);
}

.rx-main-wym {
  background-color: var(--rx-bg-aluminum);
}

.rx-stop-scrolling {
  height: 100%;
  overflow: hidden;
}

.rx-editor-frame {
  width: 100%;
  height: 0;
  border: none;
  background-color: var(--rx-bg-base);
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.rx-editor-container {
  box-sizing: border-box;
}

.rx-editor-disabled {
  opacity: 0.4;
}

.rx-editor-disabled img {
  filter: grayscale(1);
}

.rx-editor-overlay {
  width: 100%;
  height: 100%;
  content: "";
  position: absolute;
  z-index: 1;
  background: 0 0;
  top: 0;
  left: 0;
}

.rx-toolbox-container {
  background: var(--rx-bg-toolbar);
  z-index: var(--rx-level-toolbar);
}

.rx-editor-breakline address + *, .rx-editor-breakline blockquote + *, .rx-editor-breakline dl + *, .rx-editor-breakline figure + *, .rx-editor-breakline ol + *, .rx-editor-breakline p + *, .rx-editor-breakline pre + *, .rx-editor-breakline table + *, .rx-editor-breakline ul + *, .rx-editor-breakline > div + * {
  margin-top: 0 !important;
}

.rx-editor-breakline h1 + h2, .rx-editor-breakline h2 + h3, .rx-editor-breakline h3 + h4, .rx-editor-breakline h4 + h5, .rx-editor-breakline h5 + h6 {
  margin-top: 0 !important;
}

.rx-editor *, .rx-editor ::after, .rx-editor ::before {
  box-sizing: inherit;
}

.rx-editor {
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.rx-editor a, .rx-editor a:focus, .rx-editor a:hover, .rx-editor a:visited {
  text-decoration-color: currentcolor !important;
}

.rx-editor [dir=rtl] {
  text-align: right;
}

.rx-editor [dir=ltr] {
  text-align: left;
}

.rx-editor li {
  list-style-type: initial;
}

.rx-editor, .rx-editor [data-rx-type], .rx-editor a, .rx-editor figcaption, .rx-editor p, .rx-editor td, .rx-editor th {
  outline: 0;
}

.rx-editor [data-rx-tag=br], .rx-editor [data-rx-tag=tbr] {
  margin-top: 0;
}

.rx-editor [data-rx-tag=br]:empty, .rx-editor [data-rx-tag=tbr]:empty, .rx-editor [data-rx-type=text]:empty, .rx-editor [data-rx-type=todoitem] div:empty {
  min-width: 1em;
  min-height: 1.5em;
}

.rx-editor::after {
  content: "";
  clear: both;
  display: table;
}

.rx-editor [data-rx-type=embed], .rx-editor [data-rx-type=image] {
  position: relative;
}

.rx-editor [data-rx-type=embed] img, .rx-editor [data-rx-type=image] img {
  vertical-align: middle;
}

.rx-editor figure > a img, .rx-editor figure > div, .rx-editor figure > iframe, .rx-editor figure > img, .rx-editor figure > pre {
  vertical-align: middle;
}

.rx-editor [data-rx-hoverable] {
  transition: outline 0.2s ease, border-radius 0.2s ease;
  border-radius: 2px;
}

.rx-editor [data-rx-hoverable]:hover {
  outline: 3px solid #ffd138;
  border-radius: 2px;
}

.rx-editor [data-rx-focusable].rx-block-focus {
  outline: 3px solid var(--rx-border-focus) !important;
}

.rx-editor .rx-block-control-focus {
  outline: 3px solid var(--rx-border-focus) !important;
}

.rx-editor [data-rx-type=wrapper]:empty {
  outline: 1px dashed var(--rx-border-dark-medium);
  outline-offset: 1px;
}

.rx-editor [data-rx-type=heading] a {
  text-decoration: underline;
}

.rx-editor .rx-cell-selected {
  background: var(--rx-bg-focus);
}

.rx-editor [data-rx-type=table] {
  position: relative;
}

.rx-editor .rx-table-selection-overlay {
  position: absolute;
  border: 3px solid var(--rx-border-focus);
  pointer-events: none;
  z-index: 10;
  box-sizing: border-box;
  background: 0 0;
}

.rx-editor .rx-layout-grid {
  display: flex;
  flex-direction: row;
  gap: 24px;
}

.rx-editor [data-rx-type=column] {
  outline: 1px dashed var(--rx-border-dark-medium);
}

.rx-editor.rx-editor-email [data-rx-type=column] {
  outline: 0;
}

.rx-editor.rx-editor-email [data-rx-type=column]:has(p:empty), .rx-editor.rx-editor-email [data-rx-type=column]:hover {
  outline: 1px dashed var(--rx-border-dark-medium);
}

.rx-editor .rx-nowrap {
  white-space: nowrap;
}

.rx-editor [data-rx-type=pre] {
  position: relative;
}

.rx-editor [data-rx-type=embed] {
  position: relative;
}

.rx-editor [data-rx-type=embed]:before {
  width: 100%;
  height: 100%;
  content: "";
  position: absolute;
  z-index: 1;
}

.rx-editor [data-rx-type=embed] iframe {
  display: inline-block;
}

.rx-editor [data-rx-type=embed] figcaption {
  position: relative;
  top: 0;
  z-index: 2;
}

.rx-editor [data-rx-type=embed].rx-block-focus:before {
  display: none;
}

.rx-editor .rx-embed-placeholder {
  text-align: center;
  border: 1px dashed var(--rx-border-dark-medium);
  border-radius: var(--rx-rounded-md);
  padding: 40px 20px;
  font-size: 14px;
  color: var(--rx-fg-placeholder);
}

.rx-editor [data-rx-type=todo] {
  --rx-todo-size:20px;
  --rx-todo-mark-color:var(--rx-fg-light-accent);
  --rx-todo-border-color:var(--rx-border-input);
  --rx-todo-bg:var(--rx-bg-input);
  --rx-todo-checked-border-color:var(--rx-border-dark-accent);
  --rx-todo-checked-bg:var(--rx-bg-dark-accent);
  margin-left: 0 !important;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rx-editor [data-rx-type=todoitem] {
  display: flex;
  gap: 6px;
  cursor: text;
}

.rx-editor [data-rx-type=todoitem] input {
  position: relative;
  top: 1px;
  appearance: none;
  display: inline-block;
  padding: 0;
  box-shadow: none;
  width: var(--rx-todo-size);
  height: var(--rx-todo-size);
  cursor: pointer;
}

.rx-editor [data-rx-type=todoitem] input:before {
  content: "";
  display: block;
  width: var(--rx-todo-size);
  height: var(--rx-todo-size);
  border: 1px solid var(--rx-todo-border-color);
  border-radius: 6px;
  background: var(--rx-todo-bg);
}

.rx-editor [data-rx-type=todoitem] input:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--rx-todo-size) / 3.5);
  height: calc(var(--rx-todo-size) / 1.8);
  background-color: transparent;
  transform: translate(-50%, -85%) scale(0) rotate(45deg);
}

.rx-editor [data-rx-type=todoitem] input:checked:before {
  border-color: var(--rx-todo-checked-border-color);
  background-color: var(--rx-todo-checked-bg);
  box-shadow: var(--rx-todo-checked-shadow);
}

.rx-editor [data-rx-type=todoitem] input:checked:after {
  transform: translate(-50%, -85%) scale(1) rotate(45deg);
  box-shadow: 2px 2px 0 0 var(--rx-todo-mark-color);
}

.rx-editor [data-rx-type=todoitem] div {
  outline: 0;
  line-height: 1.4;
}

.rx-editor [data-rx-type=mergetag] {
  font-family: var(--rx-font-ui-mono);
  font-size: 85%;
  line-height: 1;
  display: inline-block;
  cursor: pointer;
  padding: 4px 6px;
  color: var(--rx-fg-primary-text);
  background: var(--rx-bg-primary-subtle);
  border: 1px solid var(--rx-border-primary-subtle);
  border-radius: 4px;
}

.rx-editor [data-rx-type=mergetag].rx-block-focus, .rx-editor [data-rx-type=mergetag]:hover {
  background: var(--rx-bg-primary-medium);
}

.rx-editor .rx-block-placeholder {
  position: relative;
}

.rx-editor .rx-block-placeholder:before {
  position: absolute;
}

.rx-editor .rx-block-placeholder:before, .rx-editor [data-placeholder]:empty:before {
  content: attr(data-placeholder);
  display: inline-block;
  color: var(--rx-fg-placeholder);
  font-weight: 400;
  font-style: italic;
  font-size: inherit;
  cursor: text;
  max-height: 20px;
}

.rx-editor [data-placeholder]:empty:focus:before {
  content: "";
}

.rx-editor.rx-placeholder:before {
  position: absolute;
  z-index: 0;
  content: attr(placeholder);
  color: var(--rx-fg-placeholder);
  font-weight: 400;
  cursor: text;
}

.rx-in-blur .rx-editor [data-rx-focusable].rx-block-focus {
  outline-color: var(--rx-border-dark-medium) !important;
}

.rx-draggable-placeholder {
  height: 20px;
  min-width: 80px;
  outline: 3px dashed gold !important;
  background: rgba(255, 215, 0, 0.2) !important;
  margin-bottom: 20px;
}

.rx-toolbar-container {
  display: flex;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.rx-toolbar-container::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.rx-toolbar-container:empty {
  display: none;
}

.rx-sticky {
  position: sticky;
  top: 0;
}

.rx-sticky-on {
  border-bottom: 1px solid var(--rx-border-dark-minimal);
}

.rx-raised {
  margin-left: -1px;
  margin-right: -1px;
  margin-top: -1px;
  margin-bottom: -1px;
  background: var(--rx-bg-toolbar-raised);
  box-shadow: var(--rx-shadow-toolbar-raised);
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}

.rx-toolbox-external.rx-raised {
  margin: 0;
}

.rx-raised.rx-sticky-on {
  border-bottom: none;
}

.rx-extrabar-buttons, .rx-toolbar-buttons {
  display: flex;
  white-space: nowrap;
  align-items: center;
  gap: 1px;
}

.rx-extrabar, .rx-toolbar {
  padding: var(--rx-toolbar-padding);
  height: var(--rx-toolbar-height);
}

.rx-toolbar {
  order: 1;
  flex: 1;
}

.rx-extrabar {
  order: 2;
}

.rx-extrabar .rx-button, .rx-toolbar .rx-button {
  justify-content: center;
  width: var(--rx-toolbar-button-width);
  height: var(--rx-toolbar-button-height);
}

.rx-extrabar .rx-button-icon, .rx-toolbar .rx-button-icon {
  width: var(--rx-toolbar-button-width);
  min-width: var(--rx-toolbar-button-width);
  height: var(--rx-toolbar-button-height);
}

.rx-extrabar .rx-button-icon svg, .rx-toolbar .rx-button-icon svg {
  width: var(--rx-toolbar-icon-size);
  height: var(--rx-toolbar-icon-size);
}

.rx-extrabar .rx-button-title, .rx-toolbar .rx-button-title {
  display: none;
}

.rx-pathbar {
  font-family: var(--rx-font-ui);
  margin: 0;
  padding: 0 8px;
  position: relative;
  overflow: hidden;
  background: var(--rx-bg-toolbar);
  box-sizing: border-box;
  border: none;
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--rx-border-dark-dimmed);
}

.rx-pathbar:empty {
  display: none;
}

.rx-pathbar.disable .rx-pathbar-item {
  opacity: 0.5;
}

.rx-pathbar-item {
  position: relative;
  font-size: 12px;
  padding: 6px 0;
  margin: 0;
  line-height: 16px;
  color: var(--rx-fg-dark-minimal);
  cursor: pointer;
}

.rx-pathbar-item:hover {
  color: var(--rx-fg-dark-accent);
  text-decoration: underline;
}

.rx-pathbar-item.active, .rx-pathbar-item.active:hover {
  color: var(--rx-fg-dark-accent);
  text-decoration: none;
  cursor: text;
}

.rx-pathbar-item:after {
  position: absolute;
  content: "-";
  width: 8px;
  padding-left: 3px;
  font-size: 12px;
  line-height: 16px;
  color: var(--rx-fg-dark-minimal);
}

.rx-pathbar-item:last-child:after {
  display: none;
}

.rx-statusbar {
  font-family: var(--rx-font-ui-mono);
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--rx-bg-base);
  box-sizing: border-box;
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rx-statusbar-end, .rx-statusbar-start {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
}

.rx-statusbar-end:empty, .rx-statusbar-start:empty {
  display: none;
}

.rx-statusbar-start {
  flex: auto;
}

.rx-statusbar.disable .rx-statusbar-item {
  opacity: 0.5;
}

.rx-statusbar-item {
  font-size: 12px;
  padding: 0;
  margin: 0;
  line-height: 16px;
  color: var(--rx-fg-text);
}

.rx-statusbar-item:after {
  content: "";
  display: inline-block;
  position: relative;
  top: 2px;
  width: 1px;
  height: 12px;
  margin-left: 10px;
  background: var(--rx-border-divider);
}

.rx-statusbar-item:last-child:after {
  display: none;
}

.rx-statusbar-item a {
  color: var(--rx-link-dark-color);
  text-decoration: underline;
}

.rx-statusbar-item a:hover {
  color: var(--rx-link-dark-hover-color);
  text-decoration: underline;
}

.rx-fullscreen .rx-statusbar {
  position: fixed;
  bottom: 0;
  width: 100%;
}

.rx-control {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--rx-font-text);
  z-index: var(--rx-level-control);
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  width: 20px;
  line-height: 0;
}

.rx-control-buttons {
  display: flex;
  gap: 1;
  flex-direction: column;
  flex-wrap: wrap;
}

.rx-control .rx-button {
  justify-content: center;
  background: var(--rx-bg-raised);
}

.rx-control .rx-button-title {
  display: none;
}

.rx-control .rx-button, .rx-control .rx-button-icon {
  width: 20px;
  min-width: 20px;
  height: 26px;
}

.rx-control .rx-button-icon svg {
  width: 14px;
  height: 14px;
}

.rx-context {
  font-family: var(--rx-font-text);
  position: absolute;
  top: 0;
  left: 0;
  z-index: var(--rx-level-toolbar);
  border-radius: var(--rx-rounded-lg);
  padding: 4px 6px;
  margin: 0;
  line-height: 1;
  background: var(--rx-bg-context);
  box-shadow: var(--rx-shadow-md-border);
  max-width: 380px;
}

.rx-context-line {
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  padding: 6px;
  padding-bottom: 8px;
  border-radius: var(--rx-rounded-sm);
  display: flex;
  align-items: center;
  vertical-align: baseline;
}

.rx-context-line, .rx-context-line a {
  color: var(--rx-fg-white-text);
}

.rx-context-line a:hover {
  color: var(--rx-fg-white-subtle);
}

.rx-context-buttons {
  display: flex;
  align-items: center;
  gap: 1px;
  flex-wrap: wrap;
}

.rx-context .rx-button {
  justify-content: center;
}

.rx-context .rx-button.active, .rx-context .rx-button.pressed, .rx-context .rx-button:hover {
  background: var(--rx-bg-white-medium);
}

.rx-context .rx-button.active .rx-button-icon svg, .rx-context .rx-button.pressed .rx-button-icon svg, .rx-context .rx-button:hover .rx-button-icon svg {
  fill: var(--rx-fg-white-text);
}

.rx-context .rx-button.disabled .rx-button-icon svg {
  fill: var(--rx-fg-white-dimmed);
}

.rx-context .rx-button-icon {
  border-radius: var(--rx-rounded-md);
}

.rx-context .rx-button-icon svg {
  fill: var(--rx-fg-white-text);
  width: 18px;
  height: 18px;
}

.rx-context .rx-button-title {
  display: none;
}

.rx-button {
  font-family: var(--rx-font-text);
  display: flex;
  align-items: center;
  vertical-align: middle;
  text-decoration: none;
  background: 0 0;
  outline: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 0;
  line-height: 1;
  gap: 8px;
  border-radius: var(--rx-rounded-sm);
  width: 28px;
  height: 28px;
  transition: none;
  cursor: pointer;
}

.rx-button.pressed {
  background: var(--rx-bg-silver);
}

.rx-button.pressed .rx-button-icon svg {
  fill: var(--rx-fg-dark-accent);
}

.rx-button:hover {
  text-decoration: none;
}

.rx-button:hover {
  background: var(--rx-bg-silver);
}

.rx-button:hover .rx-button-icon svg {
  fill: var(--rx-fg-dark-accent);
}

.rx-button.active {
  background: var(--rx-bg-silver);
}

.rx-button.disabled {
  cursor: default;
  background-color: transparent !important;
}

.rx-button.disabled .rx-button-icon svg {
  fill: var(--rx-fg-dark-dimmed);
}

.rx-button-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  vertical-align: middle;
  border-radius: var(--rx-rounded-sm);
  width: 28px;
  min-width: 28px;
  height: 28px;
}

.rx-button-icon:empty {
  display: none;
}

.rx-button-icon svg {
  fill: var(--rx-fg-dark-text);
  width: 16px;
  height: 16px;
}

.rx-button-title {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--rx-fg-dark-text);
}

.rx-tooltip {
  position: absolute;
  z-index: 99;
  margin: 0;
  padding: 3px 6px 4px 6px;
  border-radius: var(--rx-rounded-sm);
  line-height: 1;
  font-family: var(--rx-font-ui);
  font-size: 12px;
  font-weight: 400;
  color: var(--rx-fg-white-text);
  background: var(--rx-bg-black-accent);
  pointer-events: none;
}

.rx-source-container {
  display: none;
}

.rx-source, .rx-source:focus, .rx-source:hover {
  text-align: left;
  box-sizing: border-box;
  font-family: var(--rx-font-ui-mono);
  width: 100%;
  display: block;
  margin: 0;
  border: none;
  box-shadow: none;
  border-radius: 0;
  background-color: var(--rx-bg-source);
  color: var(--rx-fg-white-text);
  font-size: 14px;
  line-height: 1.7;
  outline: 0;
  padding: 10px 18px 20px 18px;
  min-height: 60px;
  resize: vertical;
}

.rx-drag-active {
  outline: 3px dashed gold !important;
  outline-offset: 0 !important;
  position: relative;
  max-height: 40px;
  overflow: hidden;
  padding: 0;
}

.rx-drag-active:before {
  width: 100%;
  height: 100%;
  content: "";
  top: 0;
  left: 0;
  background: rgba(255, 215, 0, 0.4);
  position: absolute;
  z-index: 1;
}

.rx-dragging {
  opacity: 0.95;
  padding: 8px;
  background: var(--rx-bg-body);
  box-shadow: var(--rx-shadow-reorder);
}

.rx-dragging img {
  max-width: 100%;
}

.rx-dropdown {
  position: absolute;
  font-family: var(--rx-font-ui);
  border-radius: var(--rx-rounded-md);
  background: var(--rx-bg-overlay);
  box-shadow: var(--rx-shadow-dropdown);
  position: absolute;
  top: 0;
  left: 0;
  font-size: 14px;
  line-height: 1.4;
  z-index: var(--rx-level-popup);
  overflow-y: auto;
}

.rx-dropdown-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--rx-bg-dark-accent);
  padding: 8px;
}

.rx-dropdown-title:empty {
  display: none;
}

.rx-dropdown-items {
  padding: 2px;
}

.rx-dropdown-tabs {
  display: flex;
  background: var(--rx-bg-aluminum);
}

.rx-dropdown-tab {
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.rx-dropdown-tab.active, .rx-dropdown-tab:hover {
  background: var(--rx-bg-light-accent);
}

.rx-dropdown-images {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  max-width: 272px;
  padding: 4px;
}

.rx-dropdown-images img {
  border-radius: 2px;
  vertical-align: top;
  min-width: 85px;
  max-width: 85px;
  min-height: 56px;
  max-height: 56px;
  object-fit: fill;
  height: 100%;
  width: min-content;
  cursor: pointer;
}

.rx-dropdown-images img:hover {
  outline: 3px solid var(--rx-border-focus);
}

.rx-option-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  overflow-y: auto;
  font-size: 14px;
  min-width: 160px;
}

.rx-option-item {
  display: flex;
  align-items: center;
  padding: 0.5em;
  cursor: pointer;
  outline: 0;
  position: relative;
  border-radius: var(--rx-rounded-sm);
}

.rx-option-item.divider-bottom:before, .rx-option-item.divider-top:before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  border-top: 1px solid var(--rx-border-divider);
}

.rx-option-item.divider-top:before {
  top: -1px;
}

.rx-option-item.passive, .rx-option-item.passive .rx-option-label {
  cursor: default;
}

.rx-option-item:not(.passive):hover {
  background: var(--rx-bg-silver);
}

.rx-option-item.active, .rx-option-item:has(input:checked) {
  background: var(--rx-bg-silver);
  font-weight: 500;
}

.rx-option-item.active .rx-option-check, .rx-option-item:has(input:checked) .rx-option-check {
  display: inline-block;
}

.rx-option-item.disabled, .rx-option-item.disabled:hover {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  background: 0 0;
}

.rx-option-header {
  font-size: 12px;
  font-weight: 600;
  color: var(--rx-fg-dark-accent);
  padding: 0.5em 0.75em;
  pointer-events: none;
}

.rx-option-label {
  --gap:8px;
  display: flex;
  align-items: center;
  cursor: pointer;
  width: 100%;
  gap: var(--gap);
  color: var(--rx-fg-dark-accent);
}

a.rx-option-label, a.rx-option-label:hover {
  color: var(--rx-fg-text);
  text-decoration: none;
}

.rx-option-item.focus, .rx-option-item.focus .option-label, .rx-option-item.focus a.option-label, .rx-option-item.focus a.option-label:hover, .rx-option-item.focus:hover, .rx-option-item.focus:hover .option-label, .rx-option-item.focus:hover a.option-label, .rx-option-item.focus:hover a.option-label:hover {
  background: var(--rx-bg-silver);
}

.rx-option-label.danger, a.rx-option-label.danger, a.rx-option-label.danger:hover {
  color: var(--rx-fg-negative-accent);
}

.rx-option-label.danger svg, a.rx-option-label.danger svg, a.rx-option-label.danger:hover svg {
  fill: var(--rx-fg-negative-accent);
}

.rx-option-text {
  flex: 1;
}

.rx-option-text-xlarge {
  font-size: 21px;
}

.rx-option-check {
  color: var(--rx-fg-dark-accent);
  font-weight: 700;
  display: none;
}

.rx-option-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rx-fg-dark-accent);
}

.rx-option-icon svg {
  height: 16px;
  width: 16px;
  fill: var(--rx-fg-dark-accent);
}

.rx-option-icon:empty, .rx-option-text:empty {
  display: none;
}

.rx-option-shortcut {
  font-weight: 400;
  font-size: 13px;
  color: var(--rx-fg-subtle);
  margin-left: 12px;
}

.rx-dropdown-grid-container .rx-option-list, .rx-dropdown-type-grid .rx-option-list {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  box-sizing: border-box;
}

.rx-dropdown-grid-container .rx-option-item, .rx-dropdown-type-grid .rx-option-item {
  padding: 0;
}

.rx-dropdown-grid-container .rx-option-label, .rx-dropdown-type-grid .rx-option-label {
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  justify-content: center;
  align-items: center;
}

.rx-colorpicker {
  position: absolute;
  font-family: var(--rx-font-ui);
  border-radius: var(--rx-rounded-md);
  background: var(--rx-bg-overlay);
  box-shadow: var(--rx-shadow-dropdown);
  position: absolute;
  top: 0;
  left: 0;
  font-size: 14px;
  line-height: 1.4;
  z-index: var(--rx-level-popup);
  overflow-y: auto;
  padding: 4px;
}

.rx-swatches {
  display: flex;
  flex-wrap: nowrap;
}

.rx-swatches-wrap {
  flex-wrap: wrap;
}

.rx-swatches-colors {
  display: flex;
  flex-direction: column;
}

.rx-swatches-colors-row {
  flex-direction: row;
}

.rx-swatch {
  cursor: pointer;
  position: relative;
  font-size: 0;
  width: 20px;
  height: 20px;
  border: 1px solid transparent;
}

.rx-swatch.active {
  border: 2px solid var(--rx-border-dark-accent);
  box-shadow: 0 0 0 2px var(--rx-border-light-accent);
  z-index: 2;
}

.rx-swatch-size-large {
  width: 32px;
  height: 32px;
}

.rx-color-contrast {
  border-color: var(--rx-border-dark-subtle);
}

.rx-colorpicker-tabs {
  font-size: 13px;
  line-height: 1;
  font-weight: 500;
  display: flex;
  gap: 2px;
  border-radius: var(--rx-rounded-sm);
  background: var(--rx-bg-dark-minimal);
  padding: 2px;
  margin-bottom: 4px;
}

.rx-colorpicker-tab {
  flex-grow: 1;
  border-radius: var(--rx-rounded-sm);
  padding: 6px 8px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  color: var(--rx-fg-dark-subtle);
}

.rx-colorpicker-tab.active, .rx-colorpicker-tab:hover {
  text-decoration: none;
  background: var(--rx-bg-dark-subtle);
  color: var(--rx-fg-dark-text);
}

.rx-colorpicker-tab.active {
  cursor: text;
  text-decoration: none;
  background: var(--rx-bg-light-accent);
  color: var(--rx-fg-dark-text);
  box-shadow: var(--shadow-sm-border);
}

.rx-button-dropdown {
  position: relative;
  padding: 8px 10px;
  height: auto;
  width: 100%;
  border-radius: var(--rx-rounded-md);
}

.rx-form {
  padding: 10px;
}

.rx-form-item {
  padding-bottom: 12px;
}

.rx-form-item:empty {
  display: none;
}

.rx-form-item:last-child {
  padding-bottom: 0;
}

.rx-form-box {
  padding: 16px;
}

.rx-form-image img, .rx-form-image svg {
  max-width: 100%;
}

.rx-form-section, .rx-form-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--rx-bg-dark-accent);
  padding-bottom: 4px;
}

.rx-form-section:empty, .rx-form-title:empty {
  display: none;
}

.rx-form-section:not(:first-child) {
  padding-top: 8px;
}

.rx-form-label {
  box-sizing: border-box;
  font-family: var(--rx-font-ui);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  display: block;
  padding: 0;
  margin: 0;
  padding-bottom: 6px;
  color: var(--rx-fg-dark-text);
}

.rx-form-hint {
  font-size: 13px;
  font-weight: 400;
  color: var(--rx-fg-dark-subtle);
  margin-left: 2px;
}

.rx-form-flex {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-bottom: 12px;
}

.rx-form-flex .rx-form-item {
  padding: 0;
}

.rx-form-flex .rx-form-input, .rx-form-flex .rx-form-select {
  flex: auto;
}

.rx-form-flex:last-child {
  padding-bottom: 0;
}

.rx-form-color-container {
  position: relative;
}

.rx-form-color-container .rx-form-input {
  padding-left: 40px;
}

.rx-form-color-toggle {
  position: absolute;
  top: 4px;
  left: 6px;
  height: 24px;
  width: 24px;
  border-radius: 8px;
  box-shadow: var(--rx-shadow-inner);
  cursor: pointer;
  background: var(--rx-bg-white-accent);
}

.rx-form-button {
  box-sizing: border-box;
  font-family: var(--rx-font-ui);
  font-size: 13px;
  font-weight: 400;
  outline: 0;
  border-radius: 6px;
  padding: 6px 10px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  line-height: 1.25;
  height: auto;
  background: 0 0;
  color: var(--rx-fg-dark-accent);
  border: 1px solid var(--rx-border-dark-medium);
}

.rx-form-button:hover {
  background: var(--rx-bg-dark-subtle);
}

.rx-form-button-primary {
  background: var(--rx-bg-dark-accent);
  color: var(--rx-fg-light-accent);
  border-color: transparent;
}

.rx-form-button-primary:hover {
  color: var(--rx-fg-light-accent);
  background: var(--rx-bg-dark-accent-hover);
}

.rx-form-button-danger {
  border: 1px solid var(--rx-border-negative-medium);
  color: var(--rx-fg-negative-accent);
}

.rx-form-button-danger:hover {
  color: var(--rx-fg-negative-accent);
  background: var(--rx-bg-negative-subtle);
}

.rx-form-button-fullwidth {
  display: block;
  width: 100%;
}

.rx-form-button-push-right {
  margin-left: auto;
}

.rx-form-input, .rx-form-select, .rx-form-textarea {
  box-sizing: border-box;
  display: block;
  width: 100%;
  font-weight: 400;
  padding: 4px 8px;
  height: 32px;
  font-family: var(--rx-font-ui);
  font-size: 14px;
  outline: 0;
  border-radius: 4px;
  box-shadow: none;
  line-height: 1.3;
  color: var(--rx-fg-dark-text);
  background: var(--rx-bg-input-shaded);
  border: 1px solid var(--rx-border-input);
}

.rx-form-input:focus, .rx-form-select:focus, .rx-form-textarea:focus {
  border-color: var(--rx-border-focus);
  box-shadow: 0 0 0 1px var(--rx-border-focus);
}

.rx-form-textarea {
  height: auto;
  resize: vertical;
  line-height: 1.5;
}

.rx-form-select {
  font-size: 15px;
  cursor: pointer;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg height="6" viewBox="0 0 10 6" width="10" xmlns="http://www.w3.org/2000/svg"><path fill="rgb(0,0,0)" opacity=".6" d="m6.6168815 3-4.44908109-4.09883609c-.22373388-.20615371-.22373388-.54039492 0-.74654863s.58647818-.20615371.81021206 0l4.85418712 4.47211041c.22373388.20615371.22373388.54039491 0 .74654862l-4.85418712 4.47211041c-.22373388.20615371-.58647818.20615371-.81021206 0s-.22373388-.54039492 0-.74654863z" fill-rule="evenodd" transform="matrix(0 1 -1 0 8 -2)"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.65em center;
  padding-right: 28px;
  min-height: 32px;
}

[rx-data-theme=dark] .rx-form-select {
  background-image: url('data:image/svg+xml;utf8,<svg height="6" viewBox="0 0 10 6" width="10" xmlns="http://www.w3.org/2000/svg"><path fill="rgb(255,255,255)" opacity="0.6" d="m6.6168815 3-4.44908109-4.09883609c-.22373388-.20615371-.22373388-.54039492 0-.74654863s.58647818-.20615371.81021206 0l4.85418712 4.47211041c.22373388.20615371.22373388.54039491 0 .74654862l-4.85418712 4.47211041c-.22373388.20615371-.58647818.20615371-.81021206 0s-.22373388-.54039492 0-.74654863z" fill-rule="evenodd" transform="matrix(0 1 -1 0 8 -2)"/></svg>');
}

.rx-form-checkbox {
  appearance: auto;
  box-sizing: border-box;
  vertical-align: middle;
  margin: 0 !important;
  margin-right: 4px !important;
}

.rx-form-checkbox-label {
  color: var(--rx-fg-dark-text);
  font-family: var(--rx-font-ui);
  font-size: 14px;
  line-height: 1.4;
}

.rx-form-upload-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 2px;
  border: 1px dashed var(--rx-border-dark-medium);
  background: var(--rx-bg-dark-dimmed);
  border-radius: var(--rx-rounded-md);
  min-width: 160px;
  height: 160px;
  cursor: pointer;
  position: relative;
}

.rx-form-upload-box input[type=file] {
  font-size: 13px;
}

.rx-form-upload-box img {
  position: relative;
  z-index: 2;
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.rx-form-upload-box:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

.rx-form-upload-box.rx-form-upload-hover {
  border-color: var(--rx-border-dark-medium);
  background-color: var(--rx-bg-dark-subtle);
}

.rx-form-upload-box.rx-form-upload-error {
  border-color: var(--rx-border-negative-medium);
  background-color: var(--rx-bg-negative-minimal);
}

.rx-upload-remove {
  position: absolute;
  z-index: 3;
  top: -6px;
  right: -10px;
  background-color: var(--rx-bg-black-accent);
  color: var(--rx-fg-white-accent);
  opacity: 1;
  width: 20px;
  height: 20px;
  text-align: center;
  border-radius: 10px;
  font-size: 14px;
  line-height: 20px;
}

.rx-upload-remove:after {
  content: "×";
}

.rx-upload-remove:hover {
  background-color: var(--rx-bg-black-accent-hover);
}

.rx-form-upload-cover-off img {
  object-fit: initial;
  height: auto;
  width: auto;
}

.rx-form-upload-placeholder {
  font-family: var(--rx-font-ui);
  color: var(--rx-fg-dark-minimal);
  font-size: 12px;
  line-height: 1.35;
  padding: 0 8px;
  text-align: center;
}

.rx-form-upload-placeholder svg {
  fill: var(--rx-fg-dark-minimal);
}

@keyframes progress-bar-stripes {
  from {
    background-position: 40px 0;
  }
  to {
    background-position: 0 0;
  }
}
.rx-editor-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 11000;
  width: 100%;
  background-color: var(--rx-bg-dark-subtle);
}

.rx-editor-progress span {
  animation: progress-bar-stripes 2s linear infinite;
  content: "";
  display: block;
  min-height: 8px;
  width: 100%;
  height: 100%;
  background-color: var(--rx-bg-primary-accent);
  background-image: -webkit-linear-gradient(45deg, var(--rx-bg-light-strong) 25%, transparent 25%, transparent 50%, var(--rx-bg-light-strong) 50%, var(--rx-bg-light-strong) 75%, transparent 75%, transparent);
  background-image: linear-gradient(45deg, var(--rx-bg-light-strong) 25%, transparent 25%, transparent 50%, var(--rx-bg-light-strong) 50%, var(--rx-bg-light-strong) 75%, transparent 75%, transparent);
  background-size: 40px 40px;
}

.rx-ai-main {
  padding: 12px;
  border-radius: 8px;
  background: var(--rx-bg-raised);
  border: 1px solid var(--rx-border-dark-subtle);
}

.rx-ai-footer {
  margin-top: 16px !important;
  display: flex;
  gap: 8px;
}

.rx-ai-buttons {
  margin-left: auto !important;
  display: flex;
  gap: 8px;
}

.rx-ai-label, .rx-ai-preview-label {
  box-sizing: border-box;
  font-family: var(--rx-font-ui);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  display: block;
  padding: 0;
  margin: 0;
  padding-bottom: 6px;
  color: var(--rx-fg-dark-subtle);
}

.rx-ai-select, .rx-ai-size {
  width: auto;
  max-width: 320px;
}

.rx-ai-progress {
  margin-bottom: 12px !important;
}

.rx-ai-progress:empty {
  display: none;
}

.rx-ai-progress svg {
  fill: var(--rx-fg-dark-accent);
}

.rx-ai-preview {
  font-family: var(--rx-font-ui);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  font-size: 16px;
  line-height: 1.618;
  color: var(--rx-fg-dark-text);
  margin-bottom: 12px !important;
}

.rx-ai-preview:empty {
  display: none;
}

@media only screen and (max-width: 767px) {
  .rx-ai-buttons, .rx-ai-footer {
    flex-direction: column;
    width: 100%;
  }
  .rx-ai-select, .rx-ai-size {
    max-width: 100%;
  }
  .rx-ai-button {
    justify-content: center;
  }
}
.rx-highlight {
  background: #fbf2a8;
  color: #000;
  padding: 0 2px;
}

.rx-highlight.active {
  background: #ffc966;
}

.rx-text-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rx-stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rx-stat-label, .rx-stat-value {
  font-size: 13px;
}

.rx-search-ui-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 24px 0;
}

.rx-search-ui-controls, .rx-search-ui-footer-controls, .rx-search-wrapper {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
}

.rx-search-ui-footer-controls {
  margin-top: 8px;
}

.rx-voice-label {
  display: none;
}

.rx-visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.rx-hidden {
  display: none !important;
}

.rx-code-lang-select {
  position: absolute;
  top: 2px;
  right: 4px;
  z-index: 3;
}

.rx-collapsed {
  position: relative;
}

.rx-collapsed:before {
  content: "›";
  position: absolute;
  left: -12px;
  line-height: 1;
  top: 50%;
  margin-top: -7px;
  font-size: 14px;
}

.rx-toc {
  margin-bottom: 24px;
}

.rx-empty address:empty, .rx-empty blockquote:empty, .rx-empty caption:empty, .rx-empty dd:empty, .rx-empty dt:empty, .rx-empty figcaption:empty, .rx-empty h1:empty, .rx-empty h2:empty, .rx-empty h3:empty, .rx-empty h4:empty, .rx-empty h5:empty, .rx-empty h6:empty, .rx-empty li:empty, .rx-empty p:empty {
  min-height: 1.5em;
}

.rx-empty pre:empty {
  min-height: 3.5em;
}

.rx-empty b:empty, .rx-empty cite:empty, .rx-empty code:empty, .rx-empty del:empty, .rx-empty em:empty, .rx-empty i:empty, .rx-empty ins:empty, .rx-empty span:empty, .rx-empty strong:empty, .rx-empty sub:empty, .rx-empty sup:empty, .rx-empty u:empty {
  display: inline-block;
  min-width: 1px;
  min-height: 1em;
}

.rx-empty td:empty:after, .rx-empty th:empty:after {
  content: "​";
}

.rx-empty code:after, .rx-empty kbd:after, .rx-empty mark:after {
  content: "​";
}

.rx-empty pre code:after {
  display: none;
}

.rx-empty code + code {
  margin-left: 2px;
}

.rx-empty table {
  empty-cells: show;
}

.rx-empty embed, .rx-empty img, .rx-empty object {
  max-width: 100%;
  height: auto;
}

.rx-content {
  text-align: left;
  --rx-font-text:-apple-system,BlinkMacSystemFont,"San Francisco","Segoe UI",Roboto,"Helvetica Neue",sans-serif;
  --rx-font-heading:inherit;
  --rx-font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  --rx-body-color:var(--rx-bg-body);
  --rx-heading-color:var(--rx-fg-heading);
  --rx-text-color:var(--rx-fg-text);
  --rx-table-border:var(--rx-border-dark-subtle);
  --rx-line-color:var(--rx-border-dark-minimal);
  --rx-pre-color:var(--rx-fg-text);
  --rx-pre-bg:var(--rx-bg-dark-minimal);
  --rx-var-color:var(--rx-fg-text);
  --rx-kbd-color:var(--rx-fg-text);
  --rx-kbd-border:var(--rx-border-dark-subtle);
  --rx-kbd-bg:var(--rx-bg-light-accent);
  --rx-code-color:var(--rx-fg-text);
  --rx-code-bg:var(--rx-bg-dark-medium);
  --rx-abbr-border:var(--rx-border-dark-accent);
  --rx-quote-border-color:var(--rx-border-dark-accent);
  background: var(--rx-body-color);
  font-family: var(--rx-font-text);
  color: var(--rx-text-color);
  font-size: 16px;
  line-height: 1.5;
}

.rx-content[dir=rtl] {
  text-align: right;
}

.rx-content * {
  margin: 0;
}

.rx-content address, .rx-content dd, .rx-content dt, .rx-content li, .rx-content p {
  font-size: 16px;
  line-height: 1.5;
}

.rx-content h1 + *, .rx-content h2 + *, .rx-content h3 + *, .rx-content h4 + *, .rx-content h5 + *, .rx-content h6 + * {
  margin-top: 8px !important;
}

.rx-content address + h2, .rx-content address + h3, .rx-content address + h4, .rx-content address + h5, .rx-content address + h6, .rx-content dl + h2, .rx-content dl + h3, .rx-content dl + h4, .rx-content dl + h5, .rx-content dl + h6, .rx-content ol + h2, .rx-content ol + h3, .rx-content ol + h4, .rx-content ol + h5, .rx-content ol + h6, .rx-content p + h2, .rx-content p + h3, .rx-content p + h4, .rx-content p + h5, .rx-content p + h6, .rx-content pre + h2, .rx-content pre + h3, .rx-content pre + h4, .rx-content pre + h5, .rx-content pre + h6, .rx-content ul + h2, .rx-content ul + h3, .rx-content ul + h4, .rx-content ul + h5, .rx-content ul + h6 {
  margin-top: 20px !important;
}

.rx-content address + *, .rx-content dl + *, .rx-content ol + *, .rx-content p + *, .rx-content pre + *, .rx-content ul + * {
  margin-top: 16px !important;
}

.rx-content blockquote + *, .rx-content figure + *, .rx-content table + *, .rx-content > div:not([data-rx-tag=br], [data-rx-type=text]) + * {
  margin-top: 16px !important;
}

.rx-content h1 + h2, .rx-content h2 + h3, .rx-content h3 + h4, .rx-content h4 + h5, .rx-content h5 + h6 {
  margin-top: 12px !important;
}

.rx-content a, .rx-content a:focus, .rx-content a:hover, .rx-content a:visited {
  color: var(--rx-link-color);
}

.rx-content h1, .rx-content h2, .rx-content h3, .rx-content h4, .rx-content h5, .rx-content h6 {
  font-family: var(--rx-font-heading);
  font-weight: 700;
  font-style: normal;
  color: var(--rx-heading-color);
  text-rendering: optimizeLegibility;
  letter-spacing: 0;
}

.rx-content h1 a, .rx-content h2 a, .rx-content h3 a, .rx-content h4 a, .rx-content h5 a, .rx-content h6 a {
  text-decoration: underline;
}

.rx-content h1, .rx-content h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.rx-content h3, .rx-content h4, .rx-content h5, .rx-content h6 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.rx-content h1 {
  font-size: 36px;
  line-height: 1.25;
}

.rx-content h2 {
  font-size: 24px;
  line-height: 1.25;
}

.rx-content h3 {
  font-size: 20px;
  line-height: 1.25;
}

.rx-content h4 {
  font-size: 16px;
  line-height: 1.25;
}

.rx-content h5 {
  font-size: 16px;
  line-height: 1.25;
}

.rx-content h6 {
  font-size: 16px;
  line-height: 1.25;
}

.rx-content abbr, .rx-content dfn {
  font-size: 95%;
}

.rx-content cite, .rx-content code, .rx-content kbd, .rx-content small, .rx-content var {
  font-size: 85%;
}

.rx-content sub, .rx-content sup {
  font-size: 65%;
}

.rx-content b, .rx-content strong {
  font-weight: 700;
}

.rx-content em, .rx-content i {
  font-style: italic;
}

.rx-content em strong, .rx-content i b {
  font-style: italic;
}

.rx-content del, .rx-content s, .rx-content strike {
  text-decoration: line-through;
}

.rx-content u {
  text-decoration: underline;
}

.rx-content code, .rx-content kbd, .rx-content var {
  font-family: var(--rx-font-mono);
  font-style: normal;
  line-height: 1;
  vertical-align: baseline;
}

.rx-content code, .rx-content kbd {
  border-radius: 4px;
}

.rx-content kbd {
  color: var(--rx-kbd-color);
  background: var(--rx-kbd-bg);
  border: 1px solid var(--rx-kbd-border);
  padding: 0.2em 0.4em;
}

.rx-content var {
  color: var(--rx-var-color);
}

.rx-content code {
  position: relative;
  top: -1px;
  padding: 0.2em 0.4em 0.2em;
  color: var(--rx-code-color);
  background: var(--rx-code-bg);
  border: 1px solid var(--rx-code-border);
}

.rx-content mark {
  background-color: #ffea80;
  color: #000;
}

.rx-content b, .rx-content strong {
  font-weight: 700;
}

.rx-content abbr[title], .rx-content dfn {
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px dotted var(--rx-abbr-border);
  cursor: help;
}

.rx-content cite {
  color: var(--rx-cite-color, var(--rx-text-color));
  font-style: italic;
}

.rx-content sub, .rx-content sup {
  line-height: 1;
  margin-left: 2px;
}

.rx-content sub {
  vertical-align: sub;
}

.rx-content sup {
  vertical-align: super;
}

.rx-content ul li {
  list-style: disc;
}

.rx-content ol li {
  list-style: decimal;
}

.rx-content ol > li > ol li {
  list-style-type: lower-alpha;
}

.rx-content ol > li > ol > li > ol li {
  list-style-type: lower-roman;
}

.rx-content ol, .rx-content ul {
  padding-left: 0;
  margin-inline: 0 !important;
  margin-bottom: 0 !important;
  margin-left: 20px !important;
}

.rx-content li li {
  font-size: 1em;
}

.rx-content dt {
  font-weight: 700;
}

.rx-content dd + dt {
  margin-top: 0.25em;
}

.rx-content pre {
  overflow: auto;
  white-space: pre;
  font-family: var(--rx-font-mono);
  font-size: 14px;
  line-height: 1.6;
  padding: 1em;
  border-radius: 3px;
  border: 1px solid var(--rx-pre-border, transparent);
  background: var(--rx-pre-bg, transparent);
  color: var(--rx-pre-color, var(--rx-text-color));
}

.rx-content pre code {
  position: initial;
  color: inherit;
  white-space: pre;
  padding: 0;
  border: 0;
  font-size: 100%;
  display: block;
  line-height: inherit;
  background: 0 0;
}

.rx-content blockquote, .rx-content figure:has(blockquote) {
  padding: 0;
  background: var(--rx-quote-bg, transparent);
  padding-left: 24px;
  border-left: var(--rx-quote-border-width, 3px) solid var(--rx-quote-border-color);
}

.rx-content blockquote p, .rx-content figure:has(blockquote) p {
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  color: var(--rx-quote-color, var(--rx-text-color));
}

.rx-content blockquote p + p, .rx-content figure:has(blockquote) p + p {
  margin-top: 0.5em;
}

.rx-content figure:has(blockquote) blockquote {
  padding: 0;
  border: none;
  box-shadow: none;
  background: 0 0;
  border-radius: 0;
}

.rx-content blockquote cite, .rx-content figcaption cite {
  font-style: italic;
  font-weight: 400;
  color: var(--rx-quote-caption-color, var(--rx-text-color));
  font-size: 14px;
  line-height: 1.3;
}

.rx-content table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  empty-cells: show;
  font-size: 15px;
  line-height: 1.5;
  color: var(--rx-table-color, var(--rx-text-color));
}

.rx-content caption, .rx-content table td, .rx-content table th {
  text-align: left;
  vertical-align: top;
  padding: 0.75em;
  border: 1px solid var(--rx-table-border);
}

.rx-content table tbody tr:last-child td, .rx-content table tbody tr:last-child th {
  border-bottom: 1px solid var(--rx-table-border);
}

.rx-content caption {
  font-size: 14px;
  text-align: left;
  font-style: normal;
  padding: 0.5em 0.75em;
  border-bottom: none;
  color: var(--rx-fg-subtle);
}

.rx-content table th {
  font-weight: 700;
}

.rx-content address {
  font-style: italic;
}

.rx-content figcaption {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.3;
  background: var(--rx-caption-bg, transparent);
  color: var(--rx-caption-color, var(--rx-text-color));
}

.rx-content figure > div, .rx-content figure > iframe, .rx-content figure > img, .rx-content figure > img a, .rx-content figure > pre {
  vertical-align: middle;
}

.rx-content .embed-responsive:has(iframe) {
  position: relative;
  padding: 0;
  padding-bottom: 56.25%;
  height: 0;
}

.rx-content .embed-responsive:has(iframe) iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.rx-content div.embed-responsive {
  margin: 0;
}

.rx-content hr {
  --rx-line-size:1px;
  --rx-line-width:100%;
  --rx-line-style:solid;
  position: relative;
  line-height: 1;
  background: 0 0;
  border: none !important;
  text-align: left;
  padding-top: 1.5em;
  padding-bottom: 1.5em;
  margin: 0 !important;
  opacity: 1;
  width: auto;
}

.rx-content hr:after {
  content: "";
  position: absolute;
  top: 50%;
  width: var(--rx-line-width);
  max-width: var(--rx-line-width);
  margin-top: -calc(var(--rx-line-size)/2);
  border-top-width: var(--rx-line-size);
  border-top-style: var(--rx-line-style);
  border-top-color: var(--rx-line-color);
}

.rx-content .wrap-center {
  text-align: center;
}

.rx-content .wrap-center img {
  margin-left: auto;
  margin-right: auto;
}

.rx-content .wrap-center figcaption {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.rx-content .float-left {
  float: left;
  margin-right: 1em;
  margin-bottom: 1em;
  max-width: 200px;
}

.rx-content .float-right {
  float: right;
  margin-left: 1em;
  margin-bottom: 1em;
  max-width: 200px;
}

.rx-content .outset-right {
  position: relative;
  width: calc(100% + var(--rx-outset-md));
  max-width: calc(100% + var(--rx-outset-md));
  transform: translateX(var(--rx-outset-md)) translate3d(0, 0, 0);
  left: calc(var(--rx-outset-md) * -1);
}

.rx-content .outset-left {
  width: calc(100% + var(--rx-outset-md));
  max-width: calc(100% + var(--rx-outset-md));
  transform: translateX(calc(var(--rx-outset-md) * -1)) translate3d(0, 0, 0);
}

.rx-content .outset-both {
  position: relative;
  width: calc(100% + var(--rx-outset-md) + var(--rx-outset-md));
  max-width: calc(100% + var(--rx-outset-md) + var(--rx-outset-md));
  transform: translateX(-50%) translate3d(0, 0, 0);
  left: 50%;
}

.rx-editor-wym address, .rx-editor-wym dl, .rx-editor-wym h1, .rx-editor-wym h2, .rx-editor-wym h3, .rx-editor-wym h4, .rx-editor-wym h5, .rx-editor-wym h6, .rx-editor-wym ol:not([data-structure=false]), .rx-editor-wym p, .rx-editor-wym ul:not([data-structure=false]) {
  position: relative;
  background: var(--rx-bg-base);
  padding: 8px 12px;
}

.rx-editor-wym address:after, .rx-editor-wym dl:after, .rx-editor-wym h1:after, .rx-editor-wym h2:after, .rx-editor-wym h3:after, .rx-editor-wym h4:after, .rx-editor-wym h5:after, .rx-editor-wym h6:after, .rx-editor-wym ol:not([data-structure=false]):after, .rx-editor-wym p:after, .rx-editor-wym ul:not([data-structure=false]):after {
  position: absolute;
  font-size: 11px;
  font-weight: 400;
  top: 2px;
  right: 4px;
  cursor: pointer;
  color: var(--rx-fg-placeholder);
}

.rx-editor-wym address:empty::before, .rx-editor-wym dl:empty::before, .rx-editor-wym h1:empty::before, .rx-editor-wym h2:empty::before, .rx-editor-wym h3:empty::before, .rx-editor-wym h4:empty::before, .rx-editor-wym h5:empty::before, .rx-editor-wym h6:empty::before, .rx-editor-wym ol:not([data-structure=false]):empty::before, .rx-editor-wym p:empty::before, .rx-editor-wym ul:not([data-structure=false]):empty::before {
  content: "​";
  display: inline-block;
}

.rx-editor-wym pre {
  position: relative;
}

.rx-editor-wym pre:after {
  position: absolute;
  font-size: 11px;
  font-weight: 400;
  top: 2px;
  right: 4px;
  cursor: pointer;
  color: var(--rx-fg-placeholder);
}

.rx-editor-wym ol:not([data-structure=false]) ol, .rx-editor-wym ul:not([data-structure=false]) ul {
  outline: 1px solid var(--rx-border-divider) !important;
}

.rx-editor-wym ol, .rx-editor-wym ul:not([data-rx-type=todo]) {
  margin-left: 0;
  padding-left: 24px;
  margin-bottom: 3px;
}

.rx-editor-wym ol:not([data-structure=false]):after {
  content: "ol";
}

.rx-editor-wym ul:not([data-structure=false]):after {
  content: "ul";
}

.rx-editor-wym dl:after {
  content: "dl";
}

.rx-editor-wym h1:after {
  content: "h1";
}

.rx-editor-wym h2:after {
  content: "h2";
}

.rx-editor-wym h3:after {
  content: "h3";
}

.rx-editor-wym h4:after {
  content: "h4";
}

.rx-editor-wym h5:after {
  content: "h5";
}

.rx-editor-wym h6:after {
  content: "h6";
}

.rx-editor-wym p:after {
  content: "p";
}

.rx-editor-wym pre:after {
  content: "pre";
}

.rx-editor-wym address:after {
  content: "address";
}

.tippy-box[data-animation=fade][data-state=hidden] {
  opacity: 0;
}

[data-tippy-root] {
  max-width: calc(100vw - 10px);
}

.tippy-box {
  position: relative;
  background-color: #333;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
  white-space: normal;
  outline: 0;
  transition-property: transform, visibility, opacity;
}

.tippy-box[data-placement^=top] > .tippy-arrow {
  bottom: 0;
}

.tippy-box[data-placement^=top] > .tippy-arrow:before {
  bottom: -7px;
  left: 0;
  border-width: 8px 8px 0;
  border-top-color: initial;
  transform-origin: center top;
}

.tippy-box[data-placement^=bottom] > .tippy-arrow {
  top: 0;
}

.tippy-box[data-placement^=bottom] > .tippy-arrow:before {
  top: -7px;
  left: 0;
  border-width: 0 8px 8px;
  border-bottom-color: initial;
  transform-origin: center bottom;
}

.tippy-box[data-placement^=left] > .tippy-arrow {
  right: 0;
}

.tippy-box[data-placement^=left] > .tippy-arrow:before {
  border-width: 8px 0 8px 8px;
  border-left-color: initial;
  right: -7px;
  transform-origin: center left;
}

.tippy-box[data-placement^=right] > .tippy-arrow {
  left: 0;
}

.tippy-box[data-placement^=right] > .tippy-arrow:before {
  left: -7px;
  border-width: 8px 8px 8px 0;
  border-right-color: initial;
  transform-origin: center right;
}

.tippy-box[data-inertia][data-state=visible] {
  transition-timing-function: cubic-bezier(0.54, 1.5, 0.38, 1.11);
}

.tippy-arrow {
  width: 16px;
  height: 16px;
  color: #333;
}

.tippy-arrow:before {
  content: "";
  position: absolute;
  border-color: transparent;
  border-style: solid;
}

.tippy-content {
  position: relative;
  padding: 5px 9px;
  z-index: 1;
}

div#api section.api_section {
  background: var(--v-light-gray-bg);
  margin-bottom: 70px;
  border: 1px solid var(--v-border-muted);
  padding: 15px;
  border-radius: 10px;
}
div#api section.api_section pre {
  background: var(--v-bg) !important;
}

.api-sidebar {
  display: none;
  position: fixed;
  right: 250px;
  top: 150px;
  width: 208px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  background: var(--v-bg);
  border: 1px solid var(--v-border);
  border-radius: 10px;
  padding: 12px 0 8px;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  scrollbar-width: thin;
  scrollbar-color: var(--color-gray-a5) transparent;
}

@media (min-width: 1500px) {
  .api-sidebar {
    display: block;
  }
}
.api-sidebar__header {
  padding: 0 14px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--v-text-faint);
  border-bottom: 1px solid var(--v-border-muted);
  margin-bottom: 4px;
}

.api-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.api-sidebar__item a {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 5px 14px;
  color: var(--v-text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  line-height: 1.3;
}

.api-sidebar__item a:hover {
  background: var(--v-surface);
  color: var(--v-text);
  border-left-color: var(--color-gray-a5);
}

.api-sidebar__item a.is-active {
  background: var(--color-blue-50);
  color: var(--v-primary);
  border-left-color: var(--v-info);
  font-weight: 500;
}

.api-sidebar__num {
  font-size: 10px;
  font-weight: 700;
  color: var(--v-text-faint);
  min-width: 26px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.api-sidebar__item a.is-active .api-sidebar__num {
  color: var(--v-info);
}

.api-sidebar__label {
  font-size: 11px;
  line-height: 1.3;
}

/* ── Method Pills ── */
.method-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: var(--v-radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.method-pill--post-get {
  background: var(--color-violet-100);
  color: var(--color-violet-700);
}

.method-pill--get {
  background: var(--color-green-100);
  color: var(--color-green-700);
}

.method-pill--post {
  background: var(--v-info-bg);
  color: var(--color-blue-700);
}

/* ── Required / Optional Badges ── */
.badge-req {
  display: inline-block;
  padding: 2px 9px;
  background: var(--v-negative-bg);
  color: var(--color-red-600);
  border: 1px solid var(--color-red-200);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.badge-opt {
  display: inline-block;
  padding: 2px 9px;
  background: var(--color-green-50);
  color: var(--color-green-600);
  border: 1px solid var(--color-green-200);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

/* ── Pre-block copy ── */
.pre-wrapper {
  position: relative;
}

.pre-copy-btn {
  position: absolute;
  top: 7px;
  right: 7px;
  background: color-mix(in srgb, var(--v-bg) 93%, transparent);
  border: 1px solid var(--v-border);
  border-radius: 5px;
  padding: 3px 8px;
  cursor: pointer;
  font-size: 11px;
  color: var(--v-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.12s, color 0.12s;
  z-index: 1;
}

.pre-copy-btn:hover {
  background: var(--v-bg-muted);
  color: var(--v-text);
}

/* ── API Key eye-toggle button ─────────────────────────────── */
.api-key-eye-btn {
  position: absolute;
  top: 4px;
  right: 45px;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--v-bg-muted);
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  color: var(--v-text-muted);
  font-size: 21px;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 10;
}

.api-key-eye-btn:hover {
  background: var(--v-surface);
  color: var(--v-text);
}

.api-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}

.api-badge--get {
  background: var(--color-green-100);
  color: var(--color-green-800);
}

.api-badge--post {
  background: var(--v-info-bg);
  color: var(--v-info-text);
}

.api-badge--put {
  background: var(--color-yellow-100);
  color: var(--color-yellow-800);
}

.api-badge--delete {
  background: var(--v-negative-bg);
  color: var(--v-negative-text);
}

.flatpickr-calendar {
  background: transparent;
  opacity: 0;
  display: none;
  text-align: center;
  visibility: hidden;
  padding: 0;
  -webkit-animation: none;
  animation: none;
  direction: ltr;
  border: 0;
  font-size: 14px;
  line-height: 24px;
  border-radius: 5px;
  position: absolute;
  width: 307.875px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
  background: #fff;
  -webkit-box-shadow: 1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0, 0, 0, 0.08);
  box-shadow: 1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0, 0, 0, 0.08);
}

.flatpickr-calendar.open, .flatpickr-calendar.inline {
  opacity: 1;
  max-height: 640px;
  visibility: visible;
}

.flatpickr-calendar.open {
  display: inline-block;
  z-index: 99999;
}

.flatpickr-calendar.animate.open {
  -webkit-animation: fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);
  animation: fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

.flatpickr-calendar.inline {
  display: block;
  position: relative;
  top: 2px;
}

.flatpickr-calendar.static {
  position: absolute;
  top: calc(100% + 2px);
}

.flatpickr-calendar.static.open {
  z-index: 999;
  display: block;
}

.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7) {
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1) {
  -webkit-box-shadow: -2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;
  box-shadow: -2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;
}

.flatpickr-calendar .hasWeeks .dayContainer, .flatpickr-calendar .hasTime .dayContainer {
  border-bottom: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.flatpickr-calendar .hasWeeks .dayContainer {
  border-left: 0;
}

.flatpickr-calendar.hasTime .flatpickr-time {
  height: 40px;
  border-top: 1px solid #e6e6e6;
}

.flatpickr-calendar.noCalendar.hasTime .flatpickr-time {
  height: auto;
}

.flatpickr-calendar:before, .flatpickr-calendar:after {
  position: absolute;
  display: block;
  pointer-events: none;
  border: solid transparent;
  content: "";
  height: 0;
  width: 0;
  left: 22px;
}

.flatpickr-calendar.rightMost:before, .flatpickr-calendar.arrowRight:before, .flatpickr-calendar.rightMost:after, .flatpickr-calendar.arrowRight:after {
  left: auto;
  right: 22px;
}

.flatpickr-calendar.arrowCenter:before, .flatpickr-calendar.arrowCenter:after {
  left: 50%;
  right: 50%;
}

.flatpickr-calendar:before {
  border-width: 5px;
  margin: 0 -5px;
}

.flatpickr-calendar:after {
  border-width: 4px;
  margin: 0 -4px;
}

.flatpickr-calendar.arrowTop:before, .flatpickr-calendar.arrowTop:after {
  bottom: 100%;
}

.flatpickr-calendar.arrowTop:before {
  border-bottom-color: #e6e6e6;
}

.flatpickr-calendar.arrowTop:after {
  border-bottom-color: #fff;
}

.flatpickr-calendar.arrowBottom:before, .flatpickr-calendar.arrowBottom:after {
  top: 100%;
}

.flatpickr-calendar.arrowBottom:before {
  border-top-color: #e6e6e6;
}

.flatpickr-calendar.arrowBottom:after {
  border-top-color: #fff;
}

.flatpickr-calendar:focus {
  outline: 0;
}

.flatpickr-wrapper {
  position: relative;
  display: inline-block;
}

.flatpickr-months {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}

.flatpickr-months .flatpickr-month {
  background: transparent;
  color: rgba(0, 0, 0, 0.9);
  fill: rgba(0, 0, 0, 0.9);
  height: 34px;
  line-height: 1;
  text-align: center;
  position: relative;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  overflow: hidden;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  text-decoration: none;
  cursor: pointer;
  position: absolute;
  top: 0;
  height: 34px;
  padding: 10px;
  z-index: 3;
  color: rgba(0, 0, 0, 0.9);
  fill: rgba(0, 0, 0, 0.9);
}

.flatpickr-months .flatpickr-prev-month.flatpickr-disabled, .flatpickr-months .flatpickr-next-month.flatpickr-disabled {
  display: none;
}

.flatpickr-months .flatpickr-prev-month i, .flatpickr-months .flatpickr-next-month i {
  position: relative;
}

.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month, .flatpickr-months .flatpickr-next-month.flatpickr-prev-month { /*
/*rtl:begin:ignore*/
  left: 0;
} /*
/*rtl:begin:ignore*/
/*
      /*rtl:end:ignore*/
.flatpickr-months .flatpickr-prev-month.flatpickr-next-month, .flatpickr-months .flatpickr-next-month.flatpickr-next-month { /*
/*rtl:begin:ignore*/
  right: 0;
} /*
/*rtl:begin:ignore*/
/*
      /*rtl:end:ignore*/
.flatpickr-months .flatpickr-prev-month:hover, .flatpickr-months .flatpickr-next-month:hover {
  color: #959ea9;
}

.flatpickr-months .flatpickr-prev-month:hover svg, .flatpickr-months .flatpickr-next-month:hover svg {
  fill: #f64747;
}

.flatpickr-months .flatpickr-prev-month svg, .flatpickr-months .flatpickr-next-month svg {
  width: 14px;
  height: 14px;
}

.flatpickr-months .flatpickr-prev-month svg path, .flatpickr-months .flatpickr-next-month svg path {
  -webkit-transition: fill 0.1s;
  transition: fill 0.1s;
  fill: inherit;
}

.numInputWrapper {
  position: relative;
  height: auto;
}

.numInputWrapper input, .numInputWrapper span {
  display: inline-block;
}

.numInputWrapper input {
  width: 100%;
}

.numInputWrapper input::-ms-clear {
  display: none;
}

.numInputWrapper input::-webkit-outer-spin-button, .numInputWrapper input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.numInputWrapper span {
  position: absolute;
  right: 0;
  width: 14px;
  padding: 0 4px 0 2px;
  height: 50%;
  line-height: 50%;
  opacity: 0;
  cursor: pointer;
  border: 1px solid rgba(57, 57, 57, 0.15);
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.numInputWrapper span:hover {
  background: rgba(0, 0, 0, 0.1);
}

.numInputWrapper span:active {
  background: rgba(0, 0, 0, 0.2);
}

.numInputWrapper span:after {
  display: block;
  content: "";
  position: absolute;
}

.numInputWrapper span.arrowUp {
  top: 0;
  border-bottom: 0;
}

.numInputWrapper span.arrowUp:after {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 4px solid rgba(57, 57, 57, 0.6);
  top: 26%;
}

.numInputWrapper span.arrowDown {
  top: 50%;
}

.numInputWrapper span.arrowDown:after {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid rgba(57, 57, 57, 0.6);
  top: 40%;
}

.numInputWrapper span svg {
  width: inherit;
  height: auto;
}

.numInputWrapper span svg path {
  fill: rgba(0, 0, 0, 0.5);
}

.numInputWrapper:hover {
  background: rgba(0, 0, 0, 0.05);
}

.numInputWrapper:hover span {
  opacity: 1;
}

.flatpickr-current-month {
  font-size: 135%;
  line-height: inherit;
  font-weight: 300;
  color: inherit;
  position: absolute;
  width: 75%;
  left: 12.5%;
  padding: 7.48px 0 0 0;
  line-height: 1;
  height: 34px;
  display: inline-block;
  text-align: center;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.flatpickr-current-month span.cur-month {
  font-family: inherit;
  font-weight: 700;
  color: inherit;
  display: inline-block;
  margin-left: 0.5ch;
  padding: 0;
}

.flatpickr-current-month span.cur-month:hover {
  background: rgba(0, 0, 0, 0.05);
}

.flatpickr-current-month .numInputWrapper {
  width: 6ch;
  width: 7ch\0 ;
  display: inline-block;
}

.flatpickr-current-month .numInputWrapper span.arrowUp:after {
  border-bottom-color: rgba(0, 0, 0, 0.9);
}

.flatpickr-current-month .numInputWrapper span.arrowDown:after {
  border-top-color: rgba(0, 0, 0, 0.9);
}

.flatpickr-current-month input.cur-year {
  background: transparent;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: inherit;
  cursor: text;
  padding: 0 0 0 0.5ch;
  margin: 0;
  display: inline-block;
  font-size: inherit;
  font-family: inherit;
  font-weight: 300;
  line-height: inherit;
  height: auto;
  border: 0;
  border-radius: 0;
  vertical-align: initial;
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  appearance: textfield;
}

.flatpickr-current-month input.cur-year:focus {
  outline: 0;
}

.flatpickr-current-month input.cur-year[disabled], .flatpickr-current-month input.cur-year[disabled]:hover {
  font-size: 100%;
  color: rgba(0, 0, 0, 0.5);
  background: transparent;
  pointer-events: none;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  appearance: menulist;
  background: transparent;
  border: none;
  border-radius: 0;
  box-sizing: border-box;
  color: inherit;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  font-weight: 300;
  height: auto;
  line-height: inherit;
  margin: -1px 0 0 0;
  outline: none;
  padding: 0 0 0 0.5ch;
  position: relative;
  vertical-align: initial;
  -webkit-box-sizing: border-box;
  -webkit-appearance: menulist;
  -moz-appearance: menulist;
  width: auto;
}

.flatpickr-current-month .flatpickr-monthDropdown-months:focus, .flatpickr-current-month .flatpickr-monthDropdown-months:active {
  outline: none;
}

.flatpickr-current-month .flatpickr-monthDropdown-months:hover {
  background: rgba(0, 0, 0, 0.05);
}

.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month {
  background-color: transparent;
  outline: none;
  padding: 0;
}

.flatpickr-weekdays {
  background: transparent;
  text-align: center;
  overflow: hidden;
  width: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  height: 28px;
}

.flatpickr-weekdays .flatpickr-weekdaycontainer {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

span.flatpickr-weekday {
  cursor: default;
  font-size: 90%;
  background: transparent;
  color: rgba(0, 0, 0, 0.54);
  line-height: 1;
  margin: 0;
  text-align: center;
  display: block;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  font-weight: bolder;
}

.dayContainer, .flatpickr-weeks {
  padding: 1px 0 0 0;
}

.flatpickr-days {
  position: relative;
  overflow: hidden;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
  -ms-flex-align: start;
  align-items: flex-start;
  width: 307.875px;
}

.flatpickr-days:focus {
  outline: 0;
}

.dayContainer {
  padding: 0;
  outline: 0;
  text-align: left;
  width: 307.875px;
  min-width: 307.875px;
  max-width: 307.875px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  display: inline-block;
  display: -ms-flexbox;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  -ms-flex-pack: justify;
  -webkit-justify-content: space-around;
  justify-content: space-around;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.dayContainer + .dayContainer {
  -webkit-box-shadow: -1px 0 0 #e6e6e6;
  box-shadow: -1px 0 0 #e6e6e6;
}

.flatpickr-day {
  background: none;
  border: 1px solid transparent;
  border-radius: 150px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #393939;
  cursor: pointer;
  font-weight: 400;
  width: 14.2857143%;
  -webkit-flex-basis: 14.2857143%;
  -ms-flex-preferred-size: 14.2857143%;
  flex-basis: 14.2857143%;
  max-width: 39px;
  height: 39px;
  line-height: 39px;
  margin: 0;
  display: inline-block;
  position: relative;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  text-align: center;
}

.flatpickr-day.inRange, .flatpickr-day.prevMonthDay.inRange, .flatpickr-day.nextMonthDay.inRange, .flatpickr-day.today.inRange, .flatpickr-day.prevMonthDay.today.inRange, .flatpickr-day.nextMonthDay.today.inRange, .flatpickr-day:hover, .flatpickr-day.prevMonthDay:hover, .flatpickr-day.nextMonthDay:hover, .flatpickr-day:focus, .flatpickr-day.prevMonthDay:focus, .flatpickr-day.nextMonthDay:focus {
  cursor: pointer;
  outline: 0;
  background: #e6e6e6;
  border-color: #e6e6e6;
}

.flatpickr-day.today {
  border-color: #959ea9;
}

.flatpickr-day.today:hover, .flatpickr-day.today:focus {
  border-color: #959ea9;
  background: #959ea9;
  color: #fff;
}

.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, .flatpickr-day.selected.inRange, .flatpickr-day.startRange.inRange, .flatpickr-day.endRange.inRange, .flatpickr-day.selected:focus, .flatpickr-day.startRange:focus, .flatpickr-day.endRange:focus, .flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover, .flatpickr-day.selected.prevMonthDay, .flatpickr-day.startRange.prevMonthDay, .flatpickr-day.endRange.prevMonthDay, .flatpickr-day.selected.nextMonthDay, .flatpickr-day.startRange.nextMonthDay, .flatpickr-day.endRange.nextMonthDay {
  background: #569ff7;
  -webkit-box-shadow: none;
  box-shadow: none;
  color: #fff;
  border-color: #569ff7;
}

.flatpickr-day.selected.startRange, .flatpickr-day.startRange.startRange, .flatpickr-day.endRange.startRange {
  border-radius: 50px 0 0 50px;
}

.flatpickr-day.selected.endRange, .flatpickr-day.startRange.endRange, .flatpickr-day.endRange.endRange {
  border-radius: 0 50px 50px 0;
}

.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)), .flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)), .flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)) {
  -webkit-box-shadow: -10px 0 0 #569ff7;
  box-shadow: -10px 0 0 #569ff7;
}

.flatpickr-day.selected.startRange.endRange, .flatpickr-day.startRange.startRange.endRange, .flatpickr-day.endRange.startRange.endRange {
  border-radius: 50px;
}

.flatpickr-day.inRange {
  border-radius: 0;
  -webkit-box-shadow: -5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;
  box-shadow: -5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;
}

.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover, .flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay, .flatpickr-day.notAllowed, .flatpickr-day.notAllowed.prevMonthDay, .flatpickr-day.notAllowed.nextMonthDay {
  color: rgba(57, 57, 57, 0.3);
  background: transparent;
  border-color: transparent;
  cursor: default;
}

.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover {
  cursor: not-allowed;
  color: rgba(57, 57, 57, 0.1);
}

.flatpickr-day.week.selected {
  border-radius: 0;
  -webkit-box-shadow: -5px 0 0 #569ff7, 5px 0 0 #569ff7;
  box-shadow: -5px 0 0 #569ff7, 5px 0 0 #569ff7;
}

.flatpickr-day.hidden {
  visibility: hidden;
}

.rangeMode .flatpickr-day {
  margin-top: 1px;
}

.flatpickr-weekwrapper {
  float: left;
}

.flatpickr-weekwrapper .flatpickr-weeks {
  padding: 0 12px;
  -webkit-box-shadow: 1px 0 0 #e6e6e6;
  box-shadow: 1px 0 0 #e6e6e6;
}

.flatpickr-weekwrapper .flatpickr-weekday {
  float: none;
  width: 100%;
  line-height: 28px;
}

.flatpickr-weekwrapper span.flatpickr-day, .flatpickr-weekwrapper span.flatpickr-day:hover {
  display: block;
  width: 100%;
  max-width: none;
  color: rgba(57, 57, 57, 0.3);
  background: transparent;
  cursor: default;
  border: none;
}

.flatpickr-innerContainer {
  display: block;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  overflow: hidden;
}

.flatpickr-rContainer {
  display: inline-block;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.flatpickr-time {
  text-align: center;
  outline: 0;
  display: block;
  height: 0;
  line-height: 40px;
  max-height: 40px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  overflow: hidden;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}

.flatpickr-time:after {
  content: "";
  display: table;
  clear: both;
}

.flatpickr-time .numInputWrapper {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  width: 40%;
  height: 40px;
  float: left;
}

.flatpickr-time .numInputWrapper span.arrowUp:after {
  border-bottom-color: #393939;
}

.flatpickr-time .numInputWrapper span.arrowDown:after {
  border-top-color: #393939;
}

.flatpickr-time.hasSeconds .numInputWrapper {
  width: 26%;
}

.flatpickr-time.time24hr .numInputWrapper {
  width: 49%;
}

.flatpickr-time input {
  background: transparent;
  -webkit-box-shadow: none;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  text-align: center;
  margin: 0;
  padding: 0;
  height: inherit;
  line-height: inherit;
  color: #393939;
  font-size: 14px;
  position: relative;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  appearance: textfield;
}

.flatpickr-time input.flatpickr-hour {
  font-weight: bold;
}

.flatpickr-time input.flatpickr-minute, .flatpickr-time input.flatpickr-second {
  font-weight: 400;
}

.flatpickr-time input:focus {
  outline: 0;
  border: 0;
}

.flatpickr-time .flatpickr-time-separator, .flatpickr-time .flatpickr-am-pm {
  height: inherit;
  float: left;
  line-height: inherit;
  color: #393939;
  font-weight: bold;
  width: 2%;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-align-self: center;
  -ms-flex-item-align: center;
  align-self: center;
}

.flatpickr-time .flatpickr-am-pm {
  outline: 0;
  width: 18%;
  cursor: pointer;
  text-align: center;
  font-weight: 400;
}

.flatpickr-time input:hover, .flatpickr-time .flatpickr-am-pm:hover, .flatpickr-time input:focus, .flatpickr-time .flatpickr-am-pm:focus {
  background: #eee;
}

.flatpickr-input[readonly] {
  cursor: pointer;
}

@-webkit-keyframes fpFadeInDown {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, -20px, 0);
    transform: translate3d(0, -20px, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}
@keyframes fpFadeInDown {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, -20px, 0);
    transform: translate3d(0, -20px, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}
div.academy_replication div.workshop {
  background-color: var(--v-bg);
  width: 261px;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
  min-height: 335px;
  border-radius: 15px;
  transition: transform 1s;
  margin: 0 auto;
}
div.academy_replication div.workshop div.action_buttons {
  text-align: right;
  padding-right: 15px;
  padding-top: 10px;
}
div.academy_replication div.workshop div.action_buttons span.action {
  border: 1px solid var(--v-border-muted);
  padding: 2px 5px;
  border-radius: 10px;
  background-color: var(--v-light-gray-bg);
}
div.academy_replication div.workshop div.action_buttons span.action a:link,
div.academy_replication div.workshop div.action_buttons span.action a:visited {
  color: var(--v-text);
  font-size: 14px;
  font-weight: 400;
}
div.academy_replication div.workshop div.action_buttons span.enter {
  background-color: var(--v-positive-bg);
  border: 1px solid var(--v-positive-bg);
}
div.academy_replication div.workshop div.action_buttons span.enter a:link,
div.academy_replication div.workshop div.action_buttons span.enter a:visited {
  color: var(--v-positive-text);
  font-weight: 400;
}
div.academy_replication div.workshop div.action_buttons span.free1 {
  background-color: #fad521; /* theme-note: category color, intentional */
}
div.academy_replication div.workshop div.action_buttons span.free1 a:link,
div.academy_replication div.workshop div.action_buttons span.free1 a:visited {
  color: var(--color-white);
  font-weight: 400;
}
div.academy_replication div.workshop div.action_buttons span.free2 {
  background-color: #374ef7; /* theme-note: category color, intentional */
}
div.academy_replication div.workshop div.action_buttons span.free2 a:link,
div.academy_replication div.workshop div.action_buttons span.free2 a:visited {
  color: var(--color-white);
  font-weight: 400;
}
div.academy_replication div.workshop div.action_buttons span.free3 {
  background-color: #f78824; /* theme-note: category color, intentional */
}
div.academy_replication div.workshop div.action_buttons span.free3 a:link,
div.academy_replication div.workshop div.action_buttons span.free3 a:visited {
  color: var(--color-white);
  font-weight: 400;
}
div.academy_replication div.workshop div.action_buttons span.free4 {
  background-color: #60d767; /* theme-note: category color, intentional */
}
div.academy_replication div.workshop div.action_buttons span.free4 a:link,
div.academy_replication div.workshop div.action_buttons span.free4 a:visited {
  color: var(--color-white);
  font-weight: 400;
}
div.academy_replication div.workshop div.action_buttons span.free5 {
  background-color: #6bc3ed; /* theme-note: category color, intentional */
}
div.academy_replication div.workshop div.action_buttons span.free5 a:link,
div.academy_replication div.workshop div.action_buttons span.free5 a:visited {
  color: var(--color-white);
  font-weight: 400;
}
div.academy_replication div.workshop div.workshop_title {
  padding-top: 15px;
}
div.academy_replication div.workshop div.workshop_title h3 {
  font-size: 16px;
  max-width: 230px;
  margin-right: auto;
  margin-left: auto;
  text-align: justify;
  font-weight: 400;
}
div.academy_replication div.workshop div.workshop_title h3 a:link,
div.academy_replication div.workshop div.workshop_title h3 a:visited {
  color: var(--v-text);
}
div.academy_replication div.workshop div.workshop_subtitle {
  padding-top: 10px;
  /*background-color:#f9f9f9;*/
}
div.academy_replication div.workshop div.workshop_subtitle h4 {
  font-size: 14px;
  font-weight: 400;
  max-width: 230px;
  margin-right: auto;
  margin-left: auto;
  text-align: justify;
}
div.academy_replication div.workshop div.workshop_subtitle h4 a:link,
div.academy_replication div.workshop div.workshop_subtitle h4 a:visited {
  color: var(--v-text-muted) !important;
}
div.academy_replication div.workshop img.new_image {
  display: none;
}
div.academy_replication div.workshop div.image {
  height: 125px;
}
div.academy_replication div.workshop div.image div.play_icon {
  background-color: var(--v-bg-muted);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
  border-radius: 15px;
  border: 3px solid var(--v-border-muted);
}
div.academy_replication div.workshop div.image div.play_icon a:link,
div.academy_replication div.workshop div.image div.play_icon a:visited {
  color: var(--v-text);
  font-size: 50px;
  vertical-align: center;
}
div.academy_replication div.workshop div.image img.promo {
  background-color: var(--v-bg-muted);
  border-radius: 15px;
  width: 100%;
  height: 100%;
  /*border: 5px solid #f1f1f1;*/
}

.flash-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  pointer-events: none;
}
.flash-overlay:empty {
  display: none;
}

.floating-flash {
  min-width: 300px;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 4px 20px var(--color-black-a2);
  border: none;
  border-radius: 20px;
  padding: 30px;
  pointer-events: auto;
  animation: floatInOut 3s ease-in-out forwards;
}
.floating-flash.alert-success {
  background: linear-gradient(135deg, var(--v-positive-bg), color-mix(in srgb, var(--v-positive) 24%, var(--v-bg)));
  color: var(--v-positive-text);
}
.floating-flash.alert-danger {
  background: linear-gradient(135deg, var(--v-negative-bg), color-mix(in srgb, var(--v-negative) 24%, var(--v-bg)));
  color: var(--v-negative-text);
}
.floating-flash.alert-warning {
  background: linear-gradient(135deg, var(--v-warning-bg), color-mix(in srgb, var(--v-warning) 22%, var(--v-bg)));
  color: var(--v-warning-text);
}
.floating-flash.alert-info {
  background: linear-gradient(135deg, var(--v-info-bg), color-mix(in srgb, var(--v-info) 24%, var(--v-bg)));
  color: var(--v-info-text);
}

@keyframes floatInOut {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  15% {
    opacity: 1;
    transform: scale(1);
  }
  85% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.9);
    visibility: hidden;
  }
}
/* AI Status Messages CSS */
.ai-status-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  z-index: 1050;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  text-align: center;
}

.ai-status-message.info {
  background: var(--v-info-bg);
  color: var(--v-info-text);
  border: 1px solid color-mix(in srgb, var(--v-info) 30%, var(--v-bg));
}

.ai-status-message.success {
  background: var(--v-positive-bg);
  color: var(--v-positive-text);
  border: 1px solid color-mix(in srgb, var(--v-positive) 30%, var(--v-bg));
}

.ai-status-message.error {
  background: var(--v-negative-bg);
  color: var(--v-negative-text);
  border: 1px solid color-mix(in srgb, var(--v-negative) 30%, var(--v-bg));
}

.ai-status-message.warning {
  background: var(--v-warning-bg);
  color: var(--v-warning-text);
  border: 1px solid color-mix(in srgb, var(--v-warning) 35%, var(--v-bg));
}

/* AI Upgrade Message */
.ai-upgrade-message {
  text-align: center;
}

.ai-upgrade-message p {
  margin-bottom: 0.75rem;
  color: var(--v-warning-text);
}

.ai-upgrade-message .btn {
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
}

/* AI Button States */
.redactor-toolbar-button[data-name=ai].ai-button-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.redactor-toolbar-button[data-name=ai].ai-button-disabled:hover {
  background: var(--v-bg-muted) !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Loading state for AI button */
.redactor-toolbar-button[data-name=ai].ai-loading {
  position: relative;
}

.redactor-toolbar-button[data-name=ai].ai-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 2px solid transparent;
  border-top-color: var(--v-primary);
  border-radius: 50%;
  animation: ai-button-spin 1s linear infinite;
}

@keyframes ai-button-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* RTL adjustments */
[dir=rtl] .ai-status-message {
  text-align: center;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .ai-status-message {
    left: 1rem;
    right: 1rem;
    transform: none;
    max-width: none;
  }
}
/* Part Container Base Styles */
/* Only affect parts containers and forms */
.parts-section,
.parts-section * {
  scroll-behavior: auto !important;
}

/* Add New Content Section Styling */
#inner_add_new_content {
  background: var(--v-light-gray-bg);
  border-radius: var(--v-radius-lg);
  padding: 1rem;
  margin: 1rem 0;
  box-shadow: 0 2px 8px var(--color-black-base);
  border: 1px solid var(--v-border);
}

#inner_add_new_content h4 {
  color: var(--v-text);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

#inner_add_new_content p {
  color: var(--v-text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* styling to the new parts buttons background after deleting last lesson */
.part-wrapper-buttons {
  background-color: var(--v-light-gray-bg);
  border-radius: var(--v-radius-md);
  padding: 1rem;
}

.part-container {
  position: relative;
  margin: 1rem 0;
  padding: 1rem;
  border: 2px solid transparent;
  border-radius: var(--v-radius-md);
  transition: all 0.2s ease;
  background: var(--v-bg);
  display: flow-root;
}

.part-container.saved {
  border-color: var(--v-bg);
  background-color: var(--v-bg);
}

.part-container.editing {
  border-color: transparent;
  background-color: var(--v-light-gray-bg);
}

.part-container.empty {
  border-color: var(--v-bg);
  background-color: var(--v-warning-bg);
}

/* Hover Effects */
.part-container:hover {
  border: 2px dashed var(--v-text-muted);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--v-primary) 15%, transparent);
}

.part-container:hover .part-actions-overlay {
  opacity: 1;
  visibility: visible;
}

/* Actions Overlay */
.part-actions-overlay {
  position: absolute;
  top: -10px;
  left: 50%; /* Position outside the container */
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 10;
}
.part-actions-overlay a:link,
.part-actions-overlay a:visited {
  color: var(--v-text) !important;
}
.part-actions-overlay form {
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
}
.part-actions-overlay button {
  margin: 0;
  padding: 8px;
  border: none;
  outline: none;
}

.part-actions-vertical {
  display: flex;
  gap: 1.5rem;
  background: var(--v-bg-muted);
  padding: 0.5rem;
  border-radius: var(--v-radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 2px dashed var(--v-text-muted);
}

/* Action Buttons */
.part-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto; /* let it shrink/grow based on content */
  height: 25px;
  padding: 0 6px; /* spacing between icon edges */
  border-radius: var(--v-radius-sm);
  background: var(--v-light-gray-bg);
  color: var(--v-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.part-action-btn:hover {
  color: var(--v-text);
  text-decoration: none;
}

/* Specific button colors */
.add-before:hover,
.add-after:hover {
  background: var(--color-gray-a6);
}

.edit-part:hover {
  background: var(--color-gray-a6);
}

.copy-part:hover {
  background: var(--color-gray-a6);
}

.delete-part:hover {
  background: var(--color-gray-a6);
}

.drag-handle {
  cursor: move;
}

/* Part Content */
.part {
  padding: 0;
}

.part-edit-form {
  padding: 35px 20px 20px;
}
.part-edit-form .v-input,
.part-edit-form .v-textarea,
.part-edit-form .v-select {
  max-width: none;
}

.part-saved-content {
  min-height: 2rem;
}

.part-actions {
  padding: 1rem;
}

.part-actions textarea {
  width: 100%;
  min-height: 200px;
  padding: 0.75rem;
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-sm);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
}

.part-actions textarea:focus {
  outline: none;
  border-color: var(--color-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.part-form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.hidden {
  display: none !important;
}

.add-content-section {
  padding: 1rem;
  background: var(--v-surface);
  border-radius: 4px;
}

.empty-state-content {
  text-align: center;
  padding: 2rem;
  color: var(--v-text-muted);
}
.empty-state-content .empty-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.add-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 0.5rem;
}
.add-buttons-grid form {
  display: flex;
  width: 100%;
  justify-content: center;
  margin: 0;
}
.add-buttons-grid .add-part-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border: 1px solid var(--v-border);
  background: var(--v-bg);
  border-radius: 4px;
  transition: all 0.2s;
  width: 100%;
  cursor: pointer;
}
.add-buttons-grid .add-part-btn:hover {
  background: var(--v-warning-bg);
  border-color: var(--v-text);
}
.add-buttons-grid .add-part-btn i {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--v-text) !important;
}
.add-buttons-grid .add-part-btn span {
  font-size: 0.875rem;
}

/*#########################################*/
/* PDF Upload */
/*#########################################*/
.pdf-display {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--v-light-gray-bg);
  border-radius: 10px;
}

.part-title {
  font-size: 1.1rem;
  font-weight: 600;
  align-items: center;
}
.part-title i {
  font-size: 2rem;
  margin-bottom: 0.25rem;
  color: var(--v-text-secondary) !important;
  background-color: var(--v-bg-muted);
  border-radius: 50%;
  padding: 0.25rem;
  padding: 1rem;
}

.btn-group.method-locked .btn-check:disabled + .btn {
  opacity: 0.3;
  pointer-events: none;
}

.method-locked {
  position: relative;
}

/* ---- Configurable tokens ---- */
.upload-progress {
  --bar-height: 10px;
  --radius: 999px;
  --track: var(--v-bg-muted);
  --fill: var(--v-primary);
  --fill-success: var(--v-positive);
  --fill-error: var(--v-negative);
  --text-muted: var(--v-text-muted);
}

/* Layout */
.upload-progress .progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.upload-progress .progress-foot {
  margin-top: 0.4rem;
  color: var(--text-muted);
}

.upload-progress .progress-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0; /* allow text truncation */
}

.upload-progress .progress-meta bdi {
  max-width: 45ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Bar */
.upload-progress .progress {
  height: var(--bar-height);
  background: var(--track);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.upload-progress .progress-bar {
  height: 100%;
  width: 0%;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)), linear-gradient(0deg, var(--fill), var(--fill));
  background-size: 16px 100%, 100% 100%;
  background-repeat: repeat, no-repeat;
  border-radius: var(--radius);
  transition: width 0.15s linear, background-color 0.2s ease;
}

/* Animated stripes while uploading */
.upload-progress.is-animated .progress-bar {
  animation: pb-stripes 1s linear infinite;
  background-color: var(--fill);
}

@keyframes pb-stripes {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 16px 0, 0 0;
  }
}
/* States */
.upload-progress.is-complete .progress-bar {
  background-image: none;
  background-color: var(--fill-success);
}

.upload-progress.is-error .progress-bar {
  background-image: none;
  background-color: var(--fill-error);
}

/* Numbers & small bits */
.upload-progress .progress-numbers {
  font-variant-numeric: tabular-nums;
  min-width: 3.5ch;
  text-align: end;
}

.upload-progress .sep {
  margin: 0 0.4rem;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .upload-progress .progress-bar {
    transition: none;
    animation: none;
  }
  .upload-progress.is-animated .progress-bar {
    animation: none;
  }
}
/* RTL niceties (filename truncation behaves well with bdi already) */
html[dir=rtl] .upload-progress .progress-numbers {
  text-align: start;
}

.btn.disabled[aria-disabled=true] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none; /* block clicks */
}

.embeded-website .part-website {
  position: relative;
  width: 100%;
  /* A sane default: between 50–80vh depending on screen */
  height: 100vh;
  background: var(--v-surface);
  border-radius: var(--v-radius-lg);
  overflow: hidden; /* hide the iframe edges */
  box-shadow: 0 1px 6px var(--color-black-b1);
}

.part-website iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.gallery-hint {
  color: var(--v-text-muted);
  font-size: 13px;
  margin-block: 4px 0;
}

.gallery-upload-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gallery-upload-progress:not(:empty) {
  margin-block-start: 12px;
}

.gallery-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--v-text-secondary);
}
.gallery-upload-row__name {
  max-inline-size: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gallery-upload-row__bar {
  flex: 1;
  block-size: 8px;
  border-radius: var(--v-radius-sm);
  background: var(--v-bg-muted);
  overflow: hidden;
}
.gallery-upload-row__fill {
  display: block;
  block-size: 100%;
  inline-size: 0%;
  border-radius: inherit;
  background: var(--v-primary);
  transition: inline-size 0.2s ease;
}
.gallery-upload-row.is-done .gallery-upload-row__fill {
  background: var(--v-positive);
}
.gallery-upload-row.is-done .gallery-upload-row__status {
  color: var(--v-positive);
}
.gallery-upload-row.is-error .gallery-upload-row__fill {
  background: var(--v-negative);
}
.gallery-upload-row.is-error .gallery-upload-row__status {
  color: var(--v-negative);
}

.gallery-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-block-start: 12px;
}

.g-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  background: var(--v-bg-muted);
  color: var(--v-text-secondary);
  border: 1px solid var(--v-border-muted);
}
.g-chip:hover {
  border-color: var(--v-primary);
}
.g-chip.is-active {
  background: var(--v-primary);
  border-color: var(--v-primary);
  color: var(--v-primary-contrast, #fff);
}

.g-chip-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.g-chip-wrap .g-chip-delete {
  border: none;
  background: none;
  color: var(--v-text-faint);
  font-size: 11px;
  cursor: pointer;
  padding: 2px;
}
.g-chip-wrap .g-chip-delete:hover {
  color: var(--v-negative);
}

.gallery-empty {
  color: var(--v-text-muted);
  text-align: center;
  padding-block: 40px;
}

.gallery-drop-active {
  outline: 2px dashed var(--v-primary);
  outline-offset: -6px;
  border-radius: var(--v-radius-md);
  background: var(--v-bg-muted);
}

#images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1rem 0;
}
#images .image {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--color-black-base);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#images .image:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
#images .image .image-link {
  display: block;
  width: 100%;
  height: 100%;
}
#images .image .image-link img {
  width: 100%;
  display: block;
}
#images .image .image-copy-url {
  position: absolute;
  inset-block-end: 8px;
  inset-inline-start: 8px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
#images .image .image-actions {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-end: 8px;
  z-index: 3;
  display: flex;
  gap: 6px;
}
#images .image .image-actions--below-tag {
  inset-block-start: 52px;
}
#images .image .image-actions form {
  display: inline-flex;
}
#images .image .image-labels {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-inline-size: 60%;
}
#images .image .image-labels__chip {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--v-surface);
  color: var(--v-text-secondary);
  border: 1px solid var(--v-border-muted);
  white-space: nowrap;
}
#images .image .image-tag-button {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-end: 8px;
  z-index: 3;
}
#images .image .image-label-picker summary {
  list-style: none;
  cursor: pointer;
  position: absolute;
  inset-block-start: 8px;
  inset-inline-end: 8px;
  z-index: 5;
}
#images .image .image-label-picker summary::-webkit-details-marker {
  display: none;
}
#images .image .image-label-picker[open] summary {
  background: var(--v-primary);
  color: var(--v-primary-contrast, #fff);
}
#images .image .image-label-picker[open] .image-label-picker__panel {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: var(--v-surface);
  padding: 10px;
  padding-block-start: 48px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#images .image .image-label-picker__chips {
  flex: 1;
  min-block-size: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
  overflow: hidden;
}
#images .image .image-label-picker__chips form {
  display: inline-flex;
  max-inline-size: 100%;
}
#images .image .image-label-picker__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-inline-size: 100%;
  border: 1px solid var(--v-border-muted);
  border-radius: 999px;
  background: var(--v-bg);
  color: var(--v-text-secondary);
  font-size: 13px;
  padding: 4px 12px;
  cursor: pointer;
  text-align: start;
  white-space: normal;
  overflow-wrap: anywhere;
}
#images .image .image-label-picker__item:hover {
  border-color: var(--v-primary);
}
#images .image .image-label-picker__item.is-on {
  background: var(--v-positive-bg);
  color: var(--v-positive-text);
  border-color: var(--v-positive);
}
#images .image .image-label-picker__new {
  display: flex;
  gap: 6px;
  margin-block-start: auto;
}
#images .image .image-label-picker__new input[type=text] {
  flex: 1;
  min-inline-size: 0;
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-sm);
  padding: 6px 8px;
  font-size: 13px;
  background: var(--v-bg);
  color: var(--v-text);
}

@media (max-width: 768px) {
  #images {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    padding: 0.75rem 0;
  }
}
@media (max-width: 480px) {
  #images {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
    padding: 0.5rem 0;
  }
}
.custom_theme_sction {
  /* All Themes Section */
  /* Theme Filters */
  /* Theme Type Groups */
  /* Theme Cards */
  /* Mini Color Palette */
  /* Empty State */
  /* Quick Actions */
  /* File Upload Styling */
  /* Color Selector */
  /* Generation Section */
  /* Loading Indicator */
}
.custom_theme_sction .custom_theme_button {
  margin-bottom: 30px;
}
.custom_theme_sction .custom_theme_button a.v-btn:hover {
  color: var(--v-btn-text);
  text-decoration: none;
}
.custom_theme_sction .custom_theme {
  background: var(--v-bg);
  border-radius: var(--v-radius-lg);
  padding: 1.5rem;
  box-shadow: 0 4px 6px var(--color-black-base);
  margin-bottom: 20px;
}
.custom_theme_sction .theme-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.custom_theme_sction .theme-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: var(--v-text);
}
.custom_theme_sction .theme-type-badge,
.custom_theme_sction .default-badge {
  display: inline-block;
  background: var(--v-bg-muted);
  color: var(--v-text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  margin-left: 0.5rem;
}
.custom_theme_sction .ai-badge {
  background: var(--color-green-100);
  color: var(--color-green-800);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  margin-left: 0.5rem;
}
.custom_theme_sction .active-indicator {
  color: var(--color-green-600);
  font-weight: 600;
}
.custom_theme_sction .color-preview {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}
.custom_theme_sction .color-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--v-bg);
  box-shadow: 0 2px 4px var(--color-black-base);
}
.custom_theme_sction .theme-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.custom_theme_sction .all-themes-section {
  margin-bottom: 3rem;
}
.custom_theme_sction .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.custom_theme_sction .section-header h2 {
  color: var(--v-text);
  margin: 0;
}
.custom_theme_sction .theme-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--v-surface);
  border-radius: var(--v-radius-md);
}
.custom_theme_sction .filter-label {
  font-weight: 600;
  color: var(--v-text-secondary);
  margin-left: 1rem;
}
.custom_theme_sction .filter-btn {
  padding: 0.5rem 1rem;
  background: var(--v-bg);
  border: 1px solid var(--color-gray-a5);
  border-radius: var(--v-radius-md);
  text-decoration: none;
  color: var(--v-text-secondary);
  transition: all 0.2s;
}
.custom_theme_sction .filter-btn:hover,
.custom_theme_sction .filter-btn.active {
  background: var(--v-primary);
  color: var(--v-on-primary);
  border-color: var(--v-primary);
}
.custom_theme_sction .theme-type-group {
  margin-bottom: 3rem;
}
.custom_theme_sction .type-header {
  color: var(--v-text);
  border-bottom: 2px solid var(--v-border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}
.custom_theme_sction .themes-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.custom_theme_sction .theme-card {
  background: var(--v-bg);
  border: 2px solid var(--v-border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.2s;
  position: relative;
}
.custom_theme_sction .theme-card:hover {
  box-shadow: var(--v-shadow-md);
  transform: translateY(-2px);
}
.custom_theme_sction .theme-card.active-theme {
  border-color: var(--color-green-600);
  background: linear-gradient(135deg, var(--color-green-50) 0%, var(--color-green-100) 100%);
}
.custom_theme_sction .theme-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.custom_theme_sction .theme-name-link {
  color: var(--v-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
}
.custom_theme_sction .theme-name-link:hover {
  color: var(--v-primary);
}
.custom_theme_sction .theme-badges {
  display: flex;
  gap: 0.5rem;
}
.custom_theme_sction .status-badge.active {
  background: var(--color-green-600);
  color: var(--color-white);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.custom_theme_sction .color-palette-mini {
  display: flex;
  gap: 0.25rem;
  margin: 1rem 0;
}
.custom_theme_sction .mini-color-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--v-border);
}
.custom_theme_sction .theme-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 1rem 0;
  font-size: 0.875rem;
  color: var(--v-text-muted);
}
.custom_theme_sction .theme-card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.custom_theme_sction .empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--v-text-muted);
}
.custom_theme_sction .empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}
.custom_theme_sction .empty-state h3 {
  color: var(--v-text);
  margin-bottom: 1rem;
}
.custom_theme_sction .quick-actions-section {
  background: var(--v-surface);
  border-radius: 1rem;
  padding: 2rem;
}
.custom_theme_sction .quick-actions-section h3 {
  color: var(--v-text);
  margin-bottom: 1.5rem;
}
.custom_theme_sction .quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.custom_theme_sction .quick-action-card {
  background: var(--v-bg);
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-lg);
  padding: 1.5rem;
  text-align: center;
}
.custom_theme_sction .quick-action-card h4 {
  color: var(--v-text);
  margin: 0 0 0.5rem 0;
}
.custom_theme_sction .quick-action-card p {
  color: var(--v-text-muted);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
@media (max-width: 768px) {
  .custom_theme_sction .themes-row {
    grid-template-columns: 1fr;
  }
  .custom_theme_sction .quick-actions-grid {
    grid-template-columns: 1fr;
  }
  .custom_theme_sction .theme-actions,
  .custom_theme_sction .theme-card-actions {
    justify-content: center;
  }
}
.custom_theme_sction .ai-color-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.custom_theme_sction .color-row,
.custom_theme_sction .semantic-colors {
  display: flex;
  align-items: center;
  gap: 8px;
}
.custom_theme_sction .row-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--v-text-muted);
  min-width: 60px;
  text-align: right;
}
.custom_theme_sction .color-shades {
  display: flex;
  gap: 2px;
}
.custom_theme_sction .shade-dot {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid var(--color-white-a2);
  cursor: pointer;
  transition: transform 0.1s ease;
}
.custom_theme_sction .shade-dot:hover {
  transform: scale(1.2);
  z-index: 1;
}
.custom_theme_sction .ai-theme-generator {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  font-family: system-ui, -apple-system, sans-serif;
}
.custom_theme_sction .generator-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* theme-note: decorative gradient, intentional */
  color: var(--color-white);
  border-radius: 1rem;
}
.custom_theme_sction .generator-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.custom_theme_sction .subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.5;
}
.custom_theme_sction .ai-form {
  background: var(--v-bg);
  border-radius: 1rem;
  padding: 0;
  box-shadow: 0 4px 6px var(--color-black-base);
}
.custom_theme_sction .form-section {
  padding: 2rem;
  border-bottom: 1px solid var(--v-border);
}
.custom_theme_sction .form-section:last-child {
  border-bottom: none;
}
.custom_theme_sction .form-section h3 {
  color: var(--v-text);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}
.custom_theme_sction .section-hint {
  color: var(--v-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.custom_theme_sction .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.custom_theme_sction .form-group {
  margin-bottom: 1.5rem;
}
.custom_theme_sction .form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--v-text-secondary);
}
.custom_theme_sction .form-input,
.custom_theme_sction .form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--v-border);
  border-radius: var(--v-radius-md);
  font-size: 1rem;
  transition: border-color 0.2s;
}
.custom_theme_sction .form-input:focus,
.custom_theme_sction .form-textarea:focus {
  outline: none;
  border-color: var(--v-primary);
}
.custom_theme_sction .input-hint,
.custom_theme_sction .color-hint {
  display: block;
  font-size: 0.875rem;
  color: var(--v-text-muted);
  margin-top: 0.25rem;
}
.custom_theme_sction .file-upload-area {
  position: relative;
  border: 2px dashed var(--color-gray-a5);
  border-radius: var(--v-radius-md);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s;
  cursor: pointer;
}
.custom_theme_sction .file-upload-area:hover {
  border-color: var(--v-primary);
}
.custom_theme_sction .file-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.custom_theme_sction .upload-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.custom_theme_sction .upload-hint {
  color: var(--v-text-faint);
  font-size: 0.875rem;
}
.custom_theme_sction .uploaded-preview {
  position: relative;
}
.custom_theme_sction .uploaded-preview img {
  max-width: 200px;
  max-height: 200px;
  border-radius: var(--v-radius-md);
}
.custom_theme_sction .remove-image {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--v-negative);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
}
.custom_theme_sction .color-selector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.custom_theme_sction .color-group {
  text-align: center;
}
.custom_theme_sction .color-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--v-text-secondary);
}
.custom_theme_sction .color-input-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.custom_theme_sction .color-input {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--v-border);
  cursor: pointer;
  transition: transform 0.2s;
}
.custom_theme_sction .color-input:hover {
  transform: scale(1.05);
}
.custom_theme_sction .color-text-input {
  width: 100px;
  text-align: center;
  font-family: monospace;
}
.custom_theme_sction .generation-section {
  padding: 2rem;
  background: var(--v-surface);
  text-align: center;
}
.custom_theme_sction .generation-info {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}
.custom_theme_sction .info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--v-text-muted);
}
.custom_theme_sction .info-icon {
  font-size: 1.25rem;
}
.custom_theme_sction .btn-ai-generate {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%); /* theme-note: decorative gradient, intentional */
  color: var(--color-white);
  border: none;
  padding: 1rem 3rem;
  border-radius: var(--v-radius-lg);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 4px 6px rgba(16, 185, 129, 0.25); /* theme-note: matches gradient */
}
.custom_theme_sction .btn-ai-generate:hover:not(:disabled) {
  transform: translateY(-2px);
}
.custom_theme_sction .btn-ai-generate:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.custom_theme_sction .loading-indicator {
  background: var(--v-bg);
  border-radius: 1rem;
  padding: 2rem;
  margin-top: 2rem;
  border: 1px solid var(--v-border);
}
.custom_theme_sction .loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--v-bg-muted);
  border-top: 4px solid var(--v-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.custom_theme_sction .loading-steps {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.custom_theme_sction .step {
  padding: 0.5rem 1rem;
  background: var(--v-bg-muted);
  border-radius: var(--v-radius-md);
  font-size: 0.875rem;
  color: var(--v-text-muted);
  transition: all 0.3s;
}
.custom_theme_sction .step.active {
  background: var(--v-primary);
  color: var(--v-on-primary);
}
.custom_theme_sction .error-box {
  background: var(--v-negative-bg);
  border: 1px solid var(--color-red-200);
  color: var(--color-red-600);
  padding: 1rem;
  border-radius: var(--v-radius-md);
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .custom_theme_sction .form-row {
    grid-template-columns: 1fr;
  }
  .custom_theme_sction .color-selector-grid {
    grid-template-columns: 1fr;
  }
  .custom_theme_sction .generation-info {
    flex-direction: column;
    gap: 1rem;
  }
  .custom_theme_sction .loading-steps {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Color Grid Styles */
.custom-color-preview {
  width: 50%;
  height: 32px;
  border-radius: 8px;
  margin: 0 auto;
}

.custom-color-input {
  margin-bottom: 10px;
}

.color-grid-container {
  background: var(--v-bg);
}

.color-section {
  margin-bottom: 20px;
}

.color-section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--v-text-secondary);
  border-bottom: 1px solid var(--v-border-muted);
  margin-bottom: 12px;
  padding-bottom: 4px;
}

.color-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.color-row:last-child {
  margin-bottom: 0;
}

.color-row-label {
  font-size: 12px;
  color: var(--v-text-muted);
  min-width: 50px;
  text-align: right;
  font-weight: 500;
}

.color-shades {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.color-dot {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s ease;
  position: relative;
}

.color-dot:hover {
  transform: scale(1.1);
  border-color: var(--v-text-muted);
  z-index: 1;
}

.color-dot.selected {
  border-color: var(--v-primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--v-primary) 20%, transparent);
  transform: scale(1.1);
  z-index: 2;
}

.color-dot.selected::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.transparent-dot {
  border: 1px solid var(--color-gray-a5);
}

.transparent-dot.selected::after {
  color: var(--v-text-secondary);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Theme Colors Specific Styling */
.color-section:first-child .color-row-label {
  min-width: 60px;
}

.color-section:first-child .color-dot {
  width: 20px;
  height: 20px;
}

/* Base Layout */
.theme-editor {
  min-height: 100vh;
  background: var(--v-surface);
}

.editor-header {
  background: var(--v-bg);
  border-bottom: 1px solid var(--v-border);
  padding: 1rem 2rem;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.header-content h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--v-text);
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
}

/*
.btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.btn-secondary {
  background: #6b7280;
  color: white;
}

.btn-outline {
  border-color: #d1d5db;
  color: #374151;
}
*/
/* Main Layout */
.editor-main {
  display: grid;
  grid-template-columns: 1fr 450px;
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - 73px);
}

/* Components List */
.components-list {
  flex: 1;
  overflow-y: auto;
}

.component-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--v-border-muted);
  cursor: pointer;
  transition: background-color 0.2s;
}

.component-item:hover {
  background: var(--v-surface);
}

.component-item.active {
  background: var(--color-blue-50);
}

.component-info {
  flex: 1;
}

.component-name {
  font-weight: 500;
  color: var(--v-text);
  margin-bottom: 0.25rem;
}

.component-desc {
  font-size: 0.875rem;
  color: var(--v-text-muted);
}

.component-color {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.editor-color-preview {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid var(--v-border);
}

.color-code {
  font-size: 0.75rem;
  font-family: "Monaco", "Consolas", monospace;
  color: var(--v-text-muted);
  min-width: 60px;
}

/* Grid Content */
.grid-content {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

/* Responsive */
@media (max-width: 1200px) {
  .editor-main {
    grid-template-columns: 1fr 450px;
  }
}
@media (max-width: 768px) {
  .editor-main {
    grid-template-columns: 1fr;
  }
  .editor-sidebar {
    height: 50vh;
  }
}
/* Panel Base Styles */
.components-panel,
.color-grid-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--v-bg);
  transform: translateX(0);
  transition: transform 0.3s ease;
}

.color-grid-panel {
  transform: translateX(100%);
}

.color-grid-panel.hidden {
  transform: translateX(100%);
}

.color-grid-panel.show {
  transform: translateX(0);
}

.components-panel.hidden {
  transform: translateX(-100%);
}

/* Panel Headers */
.panel-header {
  padding: 1rem;
  border-bottom: 1px solid var(--v-border-muted);
}

.panel-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--v-text);
  margin: 0;
}

.panel-header p {
  font-size: 0.875rem;
  color: var(--v-text-muted);
  margin: 0.25rem 0 0 0;
}

.back-btn {
  background: none;
  border: none;
  color: var(--v-text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--v-radius-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  transition: all 0.2s;
}

.back-btn:hover {
  background: var(--v-bg-muted);
  color: var(--v-text-secondary);
}

/* Preview Section */
.preview-section {
  background: var(--v-bg);
  border-right: 1px solid var(--v-border);
  display: flex;
  flex-direction: column;
}

.preview-header {
  padding: 1rem;
  border-bottom: 1px solid var(--v-border-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--v-text);
  margin: 0;
}

.save-status {
  font-size: 0.875rem;
  color: var(--color-green-600);
}

.save-status.saving {
  color: var(--color-amber-600);
}

.save-status.error {
  color: var(--color-red-600);
}

.preview-content {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

/* ==========================================================================
   DEMO PREVIEW — theme-exempt: simulates the customer-facing course page
   using --custom-theme-* variables. The hardcoded fallbacks below are the
   CUSTOMER theme defaults, not admin styling. Do not tokenize.
   ========================================================================== */
.preview-demo {
  border: 1px solid var(--v-border); /* admin chrome frame — the only tokenized line here */
  border-radius: 8px;
  overflow: hidden;
  background: var(--custom-theme-main-bg-color, #ffffff);
}

.demo-header {
  background: linear-gradient(135deg, var(--custom-theme-menu-first-color, #1f2937) 0%, var(--custom-theme-menu-last-color, #374151) 100%);
  padding: 1rem;
}

.demo-nav {
  display: flex;
  gap: 1rem;
}

.nav-item {
  color: var(--custom-theme-menu-link-text-color, #ffffff);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  background: var(--custom-theme-menu-link-bg-color, rgba(255, 255, 255, 0.1));
  font-size: 0.875rem;
}

.nav-item:hover {
  background: var(--custom-theme-menu-link-hover-color, rgba(255, 255, 255, 0.2));
}

.demo-page {
  padding: 2rem;
}

.demo-title {
  color: var(--custom-theme-title-text-color, #333333);
  background: var(--custom-theme-title-bg-color, transparent);
  font-size: var(--custom-theme-title-size, 1.5rem);
  font-weight: var(--custom-theme-title-weight, 600);
  margin: 0 0 1rem 0;
  padding: 1rem;
  border-radius: var(--custom-theme-button-radius, 0.5rem);
  text-align: center;
}

.demo-text {
  color: #4b5563;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.demo-link {
  color: var(--custom-theme-link-color, #3b82f6);
  text-decoration: none;
}

.demo-link:hover {
  color: var(--custom-theme-link-hover-color, #2563eb);
}

.demo-buttons {
  display: flex;
  gap: 1rem;
}

.demo-button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--custom-theme-button-radius, 0.5rem);
  font-weight: 500;
  cursor: pointer;
}

.demo-button.primary {
  background: var(--custom-theme-button-bg-color, #3b82f6);
  color: var(--custom-theme-button-text-color, #ffffff);
}

.demo-button.primary:hover {
  background: var(--custom-theme-button-bg-hover-color, #2563eb);
}

.demo-button.secondary {
  background: #f3f4f6;
  color: #374151;
}

.demo-button.secondary:hover {
  background: #dbdbdb;
}

/* Sidebar (admin chrome) */
.editor-sidebar {
  background: var(--v-bg);
  position: relative;
  overflow: hidden;
}

/* new code from here */
/* Two-Column Layout */
.preview-content-wrapper {
  display: grid;
  grid-template-columns: 35% 1fr;
  min-height: 100%;
  gap: 0;
}

/* Main Content Area (Left Column - 70%) */
.demo-page {
  padding: 2rem;
  background: var(--custom-theme-main-bg-color, #ffffff);
}

/* Navigation Section (Right Column - 30%) */
.demo-lesson-navigation {
  background: linear-gradient(135deg, var(--custom-theme-menu-first-color, #1f2937) 0%, var(--custom-theme-menu-last-color, #374151) 100%);
  padding: 1rem;
  overflow-y: auto;
}

.nav-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--custom-theme-nav-title-color, #1f2937);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  text-align: center;
}

/* Navigation List */
.demo-lessons-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.demo-lessons-list li {
  margin-bottom: 0.5rem;
}

.demo-lessons-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  text-decoration: none;
  border-radius: var(--custom-theme-nav-item-radius, 0.5rem);
  transition: all 0.2s ease;
  background: var(--custom-theme-nav-item-bg-color, #ffffff);
  color: var(--custom-theme-nav-item-text-color, #374151);
}

.demo-lessons-list a:hover {
  background: var(--custom-theme-nav-item-hover-bg-color, #f3f4f6);
  border-color: var(--custom-theme-nav-item-hover-border-color, #d1d5db);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.demo-lessons-list a.active {
  background: var(--custom-theme-nav-item-active-bg-color, #eff6ff);
  border-color: var(--custom-theme-nav-item-active-border-color, #3b82f6);
  color: var(--custom-theme-nav-item-active-text-color, #1e40af);
}

.demo-lessons-list a.visited {
  background: var(--custom-theme-nav-item-visited-bg-color, #f0fdf4);
  border-color: var(--custom-theme-nav-item-visited-border-color, #22c55e);
}

/* Lesson Text */
.lesson-text {
  flex: 1;
  font-weight: 500;
  font-size: 0.875rem;
  margin-right: 0.5rem;
}

/* Lesson Icons Container */
.lesson-icons {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.lesson-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

/* Icon States */
.lesson-icon.completed {
  background: var(--custom-theme-nav-icon-completed-bg, transparent);
  color: var(--custom-theme-nav-icon-completed-text, #333333);
}

.lesson-icon.visited {
  background: var(--custom-theme-nav-icon-visited-bg, transparent);
  color: var(--custom-theme-nav-icon-visited-text, #333333);
}

.lesson-icon.unlocked {
  background: var(--custom-theme-nav-icon-unlocked-bg, #f1f1f1);
  color: var(--custom-theme-nav-icon-unlocked-text, #22c55e);
}

.lesson-icon.locked {
  background: var(--custom-theme-nav-icon-locked-bg, #f1f1f1);
  color: var(--custom-theme-nav-icon-locked-text, #333333);
}

/* Icon Hover Effects */
.lesson-icon:hover {
  transform: scale(1.1);
}

.lesson-icon.completed:hover {
  background: var(--custom-theme-nav-icon-completed-hover-bg, #f9f9f9);
}

.lesson-icon.visited:hover {
  background: var(--custom-theme-nav-icon-visited-hover-bg, #f9f9f9);
}

/* Navigation Section */
.nav-section {
  margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .preview-content-wrapper {
    grid-template-columns: 1fr 35%;
  }
  .lesson-text {
    font-size: 0.8125rem;
  }
  .lesson-icon {
    width: 18px;
    height: 18px;
    font-size: 0.6875rem;
  }
}
@media (max-width: 768px) {
  .preview-content-wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }
  .demo-lesson-navigation {
    border-left: none;
    border-top: 1px solid var(--custom-theme-nav-border-color, #e5e7eb);
    max-height: 300px;
  }
  .demo-page {
    padding: 1.5rem;
  }
}
@media (max-width: 480px) {
  .demo-lessons-list a {
    padding: 0.5rem;
  }
  .lesson-text {
    font-size: 0.75rem;
  }
  .lesson-icon {
    width: 16px;
    height: 16px;
    font-size: 0.625rem;
  }
  .nav-title {
    font-size: 1rem;
  }
}
/* Custom Scrollbar for Navigation */
.demo-lesson-navigation::-webkit-scrollbar {
  width: 6px;
}

.demo-lesson-navigation::-webkit-scrollbar-track {
  background: var(--custom-theme-scrollbar-track, #f1f5f9);
  border-radius: 3px;
}

.demo-lesson-navigation::-webkit-scrollbar-thumb {
  background: var(--custom-theme-scrollbar-thumb, #cbd5e1);
  border-radius: 3px;
}

.demo-lesson-navigation::-webkit-scrollbar-thumb:hover {
  background: var(--custom-theme-scrollbar-thumb-hover, #94a3b8);
}

/* ========================== end theme-exempt ============================= */
/* Email Marketing CSS System - Add to app/assets/stylesheets/email_marketing.css */
/* =============================================================================
   Email Marketing Dashboard Styles (Bootstrap-free, RTL-friendly)
   ============================================================================= */
/* Base styles */
.em-dashboard {
  line-height: 1.5;
  color: var(--v-text);
}

/* Grid system */
.em-grid {
  display: flex;
  flex-wrap: wrap;
  margin-inline-start: -12px;
  margin-inline-end: -12px;
}

.em-col-6 {
  flex: 0 0 50%;
  padding-inline-start: 12px;
  padding-inline-end: 12px;
}

.em-col-4 {
  flex: 0 0 33.333333%;
  padding-inline-start: 12px;
  padding-inline-end: 12px;
}

.em-col-8 {
  flex: 0 0 66.666667%;
  padding-inline-start: 12px;
  padding-inline-end: 12px;
}

/* Stats grid */
.em-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-block: 24px;
}

.em-main-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 24px;
  margin-block-start: 24px;
}

.em-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-block: 0;
  color: var(--v-text);
}

.em-stats-label {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--v-text-muted);
  margin-block: 0 4px;
}

.em-stats-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--v-text);
  display: block;
}

.em-empty-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--v-text-secondary);
  margin-block: 0 8px;
}

.em-empty-text {
  color: var(--v-text-muted);
  margin-block: 0 16px;
}

/* Utility classes */
.em-text-note {
  color: var(--v-note-text);
}

.em-note-box {
  background-color: var(--v-note-bg);
  border: 1px solid var(--v-note-border);
  border-radius: var(--v-radius-sm);
  padding: 8px 12px;
  display: inline-block;
}

.em-text-muted {
  color: var(--v-text-muted);
}

.em-text-success {
  color: var(--v-positive);
}

.em-text-warning {
  color: var(--v-warning);
}

.em-text-danger {
  color: var(--v-negative);
}

.em-text-nowrap {
  white-space: nowrap;
}

.em-text-end {
  text-align: end;
}

/* RTL-friendly margins */
.em-me-2 {
  margin-inline-end: 12px;
}

.em-mb-2 {
  margin-block-end: 12px;
}

.em-items-center {
  align-items: center;
}

/* Alerts */
.em-alert {
  padding: 16px 20px;
  margin-block-end: 24px;
  border: 1px solid transparent;
  border-radius: var(--v-radius-sm);
}

.em-alert-warning {
  color: var(--v-note-text);
  background-color: var(--v-note-bg);
  border-color: var(--v-note-border);
}

.em-alert-heading {
  font-size: 1.1rem;
  font-weight: 600;
  margin-block: 0 8px;
}

.em-alert-link {
  color: var(--v-note-text) !important;
  text-decoration: underline !important;
}

.em-alert-link:hover {
  color: var(--v-note-text) !important;
  text-decoration: underline !important;
}

.em-alert ul {
  margin-block: 0;
  padding-inline-start: 20px;
}

/* Cards */
.em-card {
  background: var(--v-bg);
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-sm);
  margin-block-end: 24px;
}

.em-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--v-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--v-surface);
}

.em-card-body {
  padding: 20px;
}

/* Stats cards */
.em-stats-card {
  background: var(--v-bg);
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-sm);
  transition: all 0.2s ease-in-out;
}

.em-stats-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.em-stats-body {
  padding: 20px;
}

.em-stats-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-block-end: 16px;
}

.em-stats-info {
  flex: 1;
}

.em-stats-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.2rem;
}

.em-stats-footer {
  font-size: 0.85rem;
  margin-block: 0;
}

/* Background colors */
.em-bg-icon {
  background-color: var(--color-gray-a4);
}

.em-bg-primary {
  background-color: var(--v-primary);
}

.em-bg-success {
  background-color: var(--v-positive);
}

.em-bg-warning {
  background-color: var(--v-warning);
}

.em-bg-info {
  background-color: var(--v-info);
}

.em-bg-danger {
  background-color: var(--v-negative);
}

/* Buttons */
.em-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 2rem;
  transition: all 0.2s ease-in-out;
}

.em-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.em-btn-primary {
  color: var(--v-on-primary);
  background-color: var(--v-primary);
  border-color: var(--v-primary);
}

.em-btn-primary:hover {
  background-color: var(--v-link-hover);
  border-color: var(--v-link-hover);
}

.em-btn-outline {
  color: var(--v-text-secondary);
  background-color: transparent;
  border-color: var(--v-border);
}

.em-btn-outline:hover {
  color: var(--v-primary);
  background-color: var(--v-surface);
  border-color: var(--v-primary);
}

.em-btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.em-btn-lg {
  padding: 12px 24px;
  font-size: 1rem;
}

.em-btn-block {
  display: flex;
  width: 100%;
  margin-block-end: 8px;
}

.em-btn-icon i {
  margin-inline-end: 8px;
}

.em-btn-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Badges */
.em-badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 2rem;
}

.em-badge-primary {
  background-color: var(--v-primary);
  color: var(--v-on-primary);
}

.em-badge-secondary {
  background-color: var(--color-gray-a4);
  color: var(--color-white);
}

.em-badge-success {
  background-color: var(--v-positive-bg);
  color: var(--v-positive-text);
}

.em-badge-danger {
  background-color: var(--v-negative);
  color: var(--color-white);
}

.em-badge-warning {
  background-color: var(--v-note-bg);
  color: var(--v-info);
}

.em-badge-info {
  background-color: var(--v-info);
  color: var(--color-white);
}

/* Tables */
.em-table-wrapper {
  overflow-x: auto;
}

.em-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.em-table-head th {
  padding: 20px 10px;
  font-weight: 600;
  color: var(--v-text-secondary);
  background-color: var(--v-surface);
  border-bottom: 2px solid var(--v-border);
  text-align: start;
  vertical-align: middle;
}

.em-table-row td {
  padding: 20px 10px;
  border-bottom: 1px solid var(--v-border);
  vertical-align: middle;
}

.em-table-row:hover {
  background-color: var(--v-surface);
}

/* Links */
.em-link {
  color: var(--v-link);
  text-decoration: none;
}

.em-link:hover {
  color: var(--v-link-hover);
  text-decoration: underline;
}

/* Empty states */
.em-empty-state {
  text-align: center;
  padding: 40px 20px;
}

.em-empty-state-small {
  padding: 20px;
}

.em-empty-icon {
  font-size: 3rem;
  color: var(--color-gray-a5);
  margin-block-end: 16px;
}

/* Domain and contact items */
.em-domain-item,
.em-contact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--v-border-muted);
  min-height: 70px;
}

.em-domain-item:last-child,
.em-contact-item:last-child {
  border-bottom: none;
}

.em-domain-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-inline-end: 8px;
}

.em-contact-info {
  flex: 1;
}

/* Divider */
.em-divider {
  height: 1px;
  background-color: var(--v-border);
  margin: 16px 0;
}

/* Responsive design */
@media (max-width: 768px) {
  .em-main-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .em-stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .em-grid {
    flex-direction: column;
  }
  .em-col-6 {
    flex: none;
    width: 100%;
    margin-block-end: 16px;
  }
  .em-text-end {
    text-align: start;
  }
  .em-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .em-page-title {
    font-size: 1.5rem;
  }
  .em-stats-number {
    font-size: 1.5rem;
  }
  .em-card-body,
  .em-card-header {
    padding: 16px;
  }
  .em-stats-body {
    padding: 16px;
  }
}
.em-titles {
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.em-titles h2 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--v-text-secondary);
}
.em-titles p {
  font-size: 1.1rem;
  color: var(--v-text-muted);
}

/* Minimal / clean styles for:
   - _connection_info.html.erb
   - _quality_metrics.html.erb

   Local component tokens — values are aliases of the canonical theme
   tokens in vibe_root.scss so this block is theme-reactive.
*/
/* ---------- card shell (both) ---------- */
.account-status-card,
.quality-metrics-card {
  overflow: hidden;
}

/* header */
.account-status-card .card-header,
.quality-metrics-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--v-border);
}

.account-status-card .card-title,
.quality-metrics-card .card-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* body */
.account-status-card .card-body,
.quality-metrics-card .card-body {
  padding: 16px;
}

/* ---------- buttons ---------- */
.btn-refresh,
.btn-upgrade {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--v-border);
  background: var(--v-bg);
  color: var(--v-text);
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.btn-refresh:hover,
.btn-upgrade:hover {
  background: var(--v-bg);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.05), 0 6px 16px rgba(16, 24, 40, 0.08);
  transform: translateY(-1px);
}

.btn-refresh:active,
.btn-upgrade:active {
  transform: translateY(0px);
  box-shadow: none;
}

/* ---------- badges ---------- */
.badge-enterprise {
  background: var(--v-info-bg);
  border-color: var(--color-blue-200);
  color: var(--v-info-text);
}

.badge-shared {
  background: var(--v-surface);
  color: var(--v-text);
}

/* generic status colors used by score/tier/metrics */
.success {
  background: var(--v-positive-bg);
  border-color: var(--color-green-200);
  color: var(--v-positive-text);
  border-radius: var(--v-radius-sm);
}

.warning {
  background: var(--v-warning-bg);
  border-color: #fde68a;
  color: var(--v-warning-text);
  border-radius: var(--v-radius-sm);
}

.danger {
  background: var(--v-negative-bg);
  border-color: var(--color-red-200);
  color: var(--v-negative-text);
  border-radius: var(--v-radius-sm);
}

.info {
  background: var(--v-info-bg);
  border-color: var(--color-blue-200);
  color: var(--v-info-text);
  border-radius: var(--v-radius-sm);
}

.normal {
  background: var(--v-surface);
  border-color: var(--v-border);
  color: var(--v-text);
  border-radius: var(--v-radius-sm);
}

/* domain-type badge (shared/private) */
.domain-type-badge.shared {
  background: var(--v-surface);
  border-color: var(--v-border);
  color: var(--v-text);
}

.domain-type-badge.private {
  background: var(--v-positive-bg);
  border-color: var(--color-green-200);
  color: var(--v-positive-text);
}

/* ---------- connection info layout ---------- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.info-item,
.current-domain-section {
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-lg);
  padding: 14px;
  background: var(--v-bg);
}

.info-label {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--v-text-muted);
}

.info-description {
  margin: 8px 0 0;
  color: var(--v-text-muted);
  font-size: 0.9rem;
}

/* upgrade line */
.upgrade-wrapper {
  margin-top: 10px;
}

/* domain display row */
.domain-display {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.domain-name {
  font-weight: 800;
}

.domain-icon {
  opacity: 0.9;
}

/* daily usage text */
.daily-limit-info {
  margin: 10px 0 8px;
  color: var(--v-text-muted);
  font-size: 0.9rem;
}

/* progress bars (both partials) */
.progress-bar-container,
.progress-container {
  height: 10px;
  background: var(--v-surface);
  border: 1px solid var(--v-border);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 999px;
}

/* make the "bar" color follow the state class */
.progress-bar.success {
  background: var(--v-positive-text);
}

.progress-bar.warning {
  background: var(--v-warning);
}

.progress-bar.danger {
  background: var(--v-negative);
}

.progress-bar.normal {
  background: var(--v-text-faint);
}

/* ---------- alerts ---------- */
.alert {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--v-radius-lg);
  border: 1px solid var(--v-border);
  background: var(--v-surface);
  color: var(--v-text);
}

.alert-demotion-warning {
  background: var(--v-warning-bg);
  border-color: #fde68a;
  color: var(--v-warning-text);
}

.alert-promotion {
  background: var(--v-positive-bg);
  border-color: var(--color-green-200);
  color: var(--v-positive-text);
}

.no-domain-alert {
  background: var(--v-info-bg);
  border-color: var(--color-blue-200);
  color: var(--v-info-text);
}

.alert-link {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- quality metrics ---------- */
.overall-score-section {
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-lg);
  padding: 14px;
  background: var(--v-bg);
  margin-bottom: 12px;
}

.score-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.section-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--v-text-muted);
}

.score-value {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.2px;
  padding: 2px 5px;
  border-radius: var(--v-radius-sm);
}

.last-update {
  margin: 10px 0 0;
  color: var(--v-text-muted);
  font-size: 0.9rem;
}

/* metric cards */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

@media (min-width: 860px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.metric-box.sends {
  grid-column: 1/-1;
}

.metric-box {
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-lg);
  padding: 14px;
  background: var(--v-bg);
}

.metric-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--v-text-muted);
  margin-bottom: 8px;
}

.metric-value {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 900;
  padding: 2px 5px;
  border-radius: var(--v-radius-sm);
}

.metric-status {
  color: var(--v-text-muted);
  font-size: 0.9rem;
}

/* tips */
.quality-tips-section {
  margin-top: 12px;
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-lg);
  padding: 14px;
  background: var(--v-bg);
}

.tips-list {
  margin: 10px 0 0;
  padding-inline-start: 18px; /* works in RTL/LTR */
  color: var(--v-text);
}

.tips-list li {
  margin: 6px 0;
  color: var(--v-text-muted);
}

.success-message {
  color: var(--v-positive-text) !important;
  font-weight: 800;
}

/* Warning/Danger states for wallet card */
.em-stats-card-warning {
  border-left: 4px solid var(--v-warning);
}

.em-stats-card-danger {
  border-left: 4px solid var(--v-negative);
}

.em-text-success {
  color: var(--v-positive);
}

.em-text-warning {
  color: var(--v-warning);
}

.em-text-danger {
  color: var(--v-negative);
}

.em-text-muted {
  color: var(--v-text-muted);
}

/* Alert cards styling */
.em-stats-card-danger {
  border-right: 4px solid var(--v-negative) !important;
  background-color: var(--v-negative-bg);
}

.em-stats-card-danger .em-stats-icon {
  background-color: var(--v-negative) !important;
  opacity: 0.1;
}

/* Alert banner animation */
@keyframes pulse-warning {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}
.alert-danger,
.alert-warning {
  animation: pulse-warning 2s ease-in-out infinite;
}

.alert-danger:hover,
.alert-warning:hover {
  animation: none;
}

/* Badge positioning */
.em-stats-label .badge {
  margin-right: 8px;
  vertical-align: middle;
}

.va-steps {
  display: flex;
  border-bottom: 1px solid var(--v-border);
  margin-bottom: var(--v-5);
}
.va-steps .va-step {
  flex: 1;
  text-align: center;
  padding: 0 var(--v-1) var(--v-2);
  color: var(--v-text-faint);
  font-size: var(--v-fs-1);
  position: relative;
}
.va-steps .va-step b {
  display: block;
  font-weight: 500;
}
.va-steps .va-step small {
  font-size: var(--v-fs-0);
  font-weight: 400;
}
.va-steps .va-step.is-done {
  color: var(--v-positive-text);
}
.va-steps .va-step.is-done b::before {
  content: "✓ ";
}
.va-steps .va-step.is-now {
  color: var(--v-text);
}
.va-steps .va-step.is-now::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: 15%;
  left: 15%;
  height: 3px;
  background: var(--v-primary);
  border-radius: 2px;
}

.va-screen {
  display: none;
}

.va-screen.is-on {
  display: block;
}

.va-actions-top {
  display: flex;
  justify-content: center;
  gap: var(--v-2);
  flex-wrap: wrap;
  padding-bottom: var(--v-3);
  margin-bottom: var(--v-4);
  border-bottom: 1px solid var(--v-border);
}
.va-actions-top.va-actions-bottom {
  border-bottom: none;
  border-top: 1px solid var(--v-border);
  padding: var(--v-3) 0 0;
  margin: var(--v-4) 0 0;
}

.va-recipes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--v-3);
}

.va-recipe {
  background: var(--v-surface);
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-sm);
  padding: var(--v-3);
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s, box-shadow 0.15s;
  text-align: right;
}
.va-recipe:hover {
  border-color: var(--v-primary);
}
.va-recipe h3 {
  font-size: var(--v-fs-3);
  font-weight: 500;
  margin: 0 0 var(--v-1);
}
.va-recipe p {
  font-size: var(--v-fs-1);
  color: var(--v-text-secondary);
  margin: 0;
}
.va-recipe .va-recipe-meta {
  margin-top: var(--v-2);
  font-size: var(--v-fs-0);
  color: var(--v-primary);
}
.va-recipe.is-soon {
  opacity: 0.55;
  cursor: not-allowed;
}
.va-recipe.is-soon:hover {
  border-color: var(--v-border);
  box-shadow: none;
}
.va-recipe.is-selected {
  border-color: var(--v-primary);
  box-shadow: 0 0 0 1px var(--v-primary) inset;
}

.va-tag {
  position: absolute;
  top: var(--v-2);
  left: var(--v-2);
  font-size: var(--v-fs-0);
  padding: 2px 10px;
  border-radius: 20px;
  background: var(--v-warning-bg);
  color: var(--v-warning-text);
}
.va-tag.is-ready {
  background: var(--v-positive-bg);
  color: var(--v-positive-text);
}

.va-storybox {
  background: var(--v-surface);
  border: 1.5px dashed var(--v-primary);
  border-radius: var(--v-radius-sm);
  padding: var(--v-3);
  margin-bottom: var(--v-4);
}

.va-asset {
  background: var(--v-surface);
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-sm);
  padding: var(--v-3);
  margin-bottom: var(--v-2);
  display: flex;
  gap: var(--v-3);
  align-items: flex-start;
}
.va-asset .va-asset-body {
  flex: 1;
  min-width: 0;
}
.va-asset .va-asset-body b {
  font-weight: 500;
  display: block;
}
.va-asset .va-asset-body p {
  font-size: var(--v-fs-1);
  color: var(--v-text-secondary);
  margin: 2px 0 0;
}
.va-asset .va-asset-acts {
  display: flex;
  flex-direction: column;
  gap: var(--v-1);
  align-items: flex-end;
}

.va-type-chip {
  font-size: var(--v-fs-0);
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--v-info-bg);
  color: var(--v-info-text);
  white-space: nowrap;
}

.va-flow {
  max-width: 680px;
  margin: var(--v-5) auto 0;
}

.va-node {
  background: var(--v-surface);
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-sm);
  padding: var(--v-4) var(--v-5);
}
.va-node.is-trigger {
  border-color: var(--v-primary);
  background: var(--v-info-bg);
}
.va-node.is-end {
  text-align: center;
  color: var(--v-text-faint);
  font-size: var(--v-fs-1);
  border-style: dashed;
}

.va-settings {
  margin-top: var(--v-2);
  border-top: 1px solid var(--v-border);
  padding-top: var(--v-2);
}
.va-settings summary {
  cursor: pointer;
  font-size: var(--v-fs-1);
  color: var(--v-text-secondary);
}
.va-settings .v-form,
.va-settings .v-field {
  min-width: 0;
  margin-top: var(--v-2);
}
.va-settings .v-field {
  margin-top: 0;
}
.va-settings .v-input,
.va-settings .v-select,
.va-settings .v-select-wrap,
.va-settings .v-textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.va-settings .v-label {
  margin-right: 0;
}

.va-node.is-regenerated {
  border-color: var(--v-positive-text);
  animation: va-regen-flash 2.4s ease-out;
}

@keyframes va-regen-flash {
  0%, 40% {
    background: var(--v-positive-bg);
  }
  100% {
    background: var(--v-surface);
  }
}
.va-node-title {
  font-weight: 500;
  font-size: var(--v-fs-2);
}

.va-node-sub {
  font-size: var(--v-fs-1);
  color: var(--v-text-secondary);
  margin-top: 2px;
}

.va-conn {
  width: 2px;
  height: 64px;
  background: var(--v-border);
  margin: 0 auto;
  position: relative;
}
.va-conn .va-conn-tools {
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  display: flex;
  align-items: center;
  gap: var(--v-2);
  z-index: 1;
}
.va-conn .va-wait {
  background: var(--v-bg);
  border: 1px solid var(--v-border);
  border-radius: 20px;
  font-size: var(--v-fs-0);
  color: var(--v-text-secondary);
  padding: 2px 13px;
  white-space: nowrap;
}
.va-conn.is-kosher .va-wait {
  border-color: var(--v-warning-text);
  color: var(--v-warning-text);
}
.va-conn .va-add {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--v-border);
  background: var(--v-bg);
  color: var(--v-text-muted);
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.va-conn .va-add:hover {
  border-color: var(--v-primary);
  color: var(--v-primary);
}
.va-conn .va-wait-label {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--v-1);
}
.va-conn .va-wait-label .va-wait-pen {
  font-size: 9px;
  opacity: 0.45;
}
.va-conn .va-wait-label:hover .va-wait-pen {
  opacity: 1;
}
.va-conn .va-wait-form {
  display: inline-flex;
  align-items: center;
  gap: var(--v-1);
}
.va-conn .va-wait-form[hidden] {
  display: none;
}
.va-conn .va-wait-input {
  width: 52px;
  border: 1px solid var(--v-border);
  border-radius: var(--v-control-radius);
  padding: 1px 6px;
  font: inherit;
  background: var(--v-surface);
  color: var(--v-text);
  text-align: center;
}
.va-conn .va-wait-save,
.va-conn .va-wait-cancel {
  background: none;
  border: none;
  padding: 1px 4px;
  font: inherit;
  cursor: pointer;
}
.va-conn .va-wait-save {
  color: var(--v-primary);
  font-weight: 600;
}
.va-conn .va-wait-cancel {
  color: var(--v-text-muted);
}

.va-email-num {
  font-size: var(--v-fs-0);
  color: var(--v-text-faint);
}

.va-structure-note {
  display: flex;
  align-items: flex-start;
  gap: var(--v-2);
  margin-bottom: var(--v-4);
  font-size: var(--v-fs-1);
}
.va-structure-note i {
  margin-top: 3px;
}
.va-structure-note.is-locked {
  border-color: var(--v-warning-text);
}

.va-grip {
  cursor: grab;
  color: var(--v-text-faint);
  margin-inline-end: var(--v-1);
}
.va-grip:hover {
  color: var(--v-text);
}

.va-seq-item.sortable-ghost {
  opacity: 0.4;
}

.va-seq-item.sortable-chosen .va-node {
  box-shadow: var(--v-shadow-md);
}

.va-delete {
  margin-inline-start: auto;
}

.va-delete:hover {
  color: var(--v-negative-text);
  border-color: var(--v-negative-text);
}

.va-email-subject {
  font-weight: 500;
  font-size: var(--v-fs-2);
  margin-top: var(--v-1);
}

.va-prov {
  display: flex;
  gap: var(--v-1);
  flex-wrap: wrap;
  margin-top: var(--v-2);
  align-items: center;
}
.va-prov .va-prov-label {
  font-size: var(--v-fs-0);
  color: var(--v-text-faint);
}
.va-prov .va-prov-chip {
  font-size: var(--v-fs-0);
  border-radius: 5px;
  padding: 2px 8px;
  background: var(--v-light-gray-bg);
  color: var(--v-text-secondary);
}

.va-email-preview {
  border-top: 1px solid var(--v-border);
  margin-top: var(--v-2);
  padding-top: var(--v-2);
}
.va-email-preview summary {
  cursor: pointer;
  font-size: var(--v-fs-1);
  color: var(--v-text-secondary);
}
.va-email-preview iframe {
  width: 100%;
  height: 340px;
  border: 1px solid var(--v-border);
  border-radius: 8px;
  background: #fff;
  margin-top: var(--v-2);
}

.va-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--v-2);
  margin-top: var(--v-3);
}
.va-step-actions .v-btn {
  white-space: nowrap;
}

.va-editor-panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--v-3);
}
@media (max-width: 900px) {
  .va-editor-panes {
    grid-template-columns: 1fr;
  }
}

.va-code-area {
  width: 100%;
  min-height: 420px;
  font-family: monospace;
  font-size: 13px;
  border: 1px solid var(--v-border);
  border-radius: 8px;
  padding: var(--v-2);
  background: var(--v-surface);
  color: var(--v-text);
}

.va-preview-frame {
  width: 100%;
  min-height: 420px;
  border: 1px solid var(--v-border);
  border-radius: 8px;
  background: #fff;
}

.dash-hero {
  margin-top: var(--v-4);
  padding: var(--v-6);
  border-radius: var(--v-radius-card);
  background: var(--v-info-bg);
  border: 1px solid var(--v-border-muted);
}
.dash-hero h2 {
  margin: 0 0 var(--v-2);
  font-size: var(--v-fs-5);
}
.dash-hero p {
  margin: 0;
  color: var(--v-text-secondary);
  max-width: 60ch;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--v-4);
  margin-top: var(--v-5);
}

.dash-card {
  display: flex;
  flex-direction: column;
  gap: var(--v-4);
  background: var(--v-surface);
  border: 1px solid var(--v-border-muted);
  border-radius: var(--v-radius-card);
  padding: var(--v-5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dash-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--v-shadow-md);
}

.dash-card-head {
  display: flex;
  align-items: center;
  gap: var(--v-3);
}

.dash-card-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--v-bg-muted);
  color: var(--v-primary);
  font-size: var(--v-fs-2);
}

.dash-card-title {
  flex: 1;
  font-weight: 600;
  min-width: 0;
}

.dash-card-go {
  color: var(--v-text-muted);
  padding: var(--v-2);
}
.dash-card-go:hover {
  color: var(--v-primary);
}

.dash-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--v-3) var(--v-6);
  flex: 1;
}

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

.dash-metric-num {
  font-size: var(--v-fs-5);
  font-weight: 700;
  line-height: 1.15;
}

.dash-metric-label {
  font-size: var(--v-fs-0);
  color: var(--v-text-muted);
}

.dash-metric-sub {
  font-size: var(--v-fs-0);
  color: var(--v-positive-text);
}

.dash-card-footer {
  margin-top: auto;
}

.dash-card--cta {
  border-style: dashed;
  background: var(--v-bg-muted);
}
.dash-card--cta .dash-cta-text {
  margin: 0;
  flex: 1;
  color: var(--v-text-secondary);
}

.dash-reports {
  margin-top: var(--v-6);
  padding-top: var(--v-4);
  border-top: 1px solid var(--v-border-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--v-2) var(--v-5);
  font-size: var(--v-fs-1);
}
.dash-reports .dash-reports-label {
  color: var(--v-text-muted);
}

#em-split-form {
  display: flex;
  gap: 20px;
  max-width: 100%;
  margin: 0 auto;
  min-height: 600px;
}

.em-form {
  flex: 1;
  background: var(--v-bg);
  padding: 20px;
  border-radius: var(--v-radius-md);
  height: fit-content;
}

.em-preview {
  flex: 1;
  background: var(--v-bg);
  padding: 20px;
  border-radius: var(--v-radius-md);
  height: fit-content;
}

/* to do
.do_checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}
*/
/* ==========================================================================
   Inbox preview — theme-exempt: simulates a real mail client so the
   customer-facing appearance must not follow the admin theme.
   ========================================================================== */
.inbox-preview {
  border: 1px solid #e1e5e9;
  border-radius: 8px;
}

.inbox-header {
  background: #f8f9fa;
  padding: 15px;
  border-bottom: 1px solid #e1e5e9;
  font-weight: 600;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 10px;
}

.inbox-header::before {
  font-size: 16px;
}

.email-preview {
  padding: 20px;
  background: white;
}

.email-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #f1f3f4;
  cursor: pointer;
  transition: background-color 0.2s ease;
  background-color: #f9f9f9;
}

.email-item:hover {
  background-color: #f1f1f1;
  transform: translateY(-2px);
}

.email-item.active {
  background-color: #ffffff;
  border: 1px solid #e1e5e9;
  border-right: 5px solid var(--color-brand-dark);
  margin-right: -35px;
  padding: 25px 15px;
}

.email-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  margin-left: 15px;
  font-size: 16px;
}

.email-content {
  flex: 1;
  min-width: 0;
}

.email-sender {
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
  font-size: 14px;
}

.email-subject {
  color: #333;
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 500;
}

.email-preview-text {
  color: #666;
  font-size: 13px;
  line-height: 1.3;
}

.email-time {
  color: #999;
  font-size: 12px;
  margin-right: 10px;
}

/* ========================== end theme-exempt ============================= */
.placeholder-text {
  color: var(--v-text-faint);
  font-style: italic;
}

.sample-email {
  opacity: 0.6;
}

.preview-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--v-text);
  margin-bottom: 20px;
  text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
  #em-split-form {
    flex-direction: column;
  }
}
/* Enhanced Subject Field Styles */
/* Field header with tools */
.field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.field-tools {
  display: flex;
  gap: 10px;
  align-items: center;
}

.tool-btn {
  background: var(--v-surface);
  border: 1px solid var(--v-border);
  border-radius: 1.5rem;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tool-btn:hover {
  background: var(--color-gray-a7);
  border-color: var(--color-gray-a4);
}

.ai-suggest-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* theme-note: decorative gradient, intentional */
  color: var(--color-white);
  border: none;
}

.ai-suggest-btn:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%); /* theme-note: decorative gradient, intentional */
  transform: translateY(-1px);
}

.ai-suggest-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Make sure the field container is positioned */
.field.form-item {
  position: relative;
}

/* Personalization dropdown */
.personalization-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--v-bg);
  min-width: 200px;
  box-shadow: 0px 8px 16px var(--color-black-a1);
  border-radius: 4px;
  z-index: 1000;
  border: 1px solid var(--v-border);
  top: 100%;
  right: 0;
  margin-top: 2px;
}

.dropdown-content a {
  color: var(--v-text);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  border-bottom: 1px solid var(--v-border-muted);
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: var(--v-surface);
}

.dropdown-content.show {
  display: block;
}

.dropdown-content {
  position: absolute;
  top: calc(100% + 4px);
  inset-inline-end: 0;
  min-width: 170px;
  background: var(--v-bg);
  border: 1px solid var(--v-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 6px;
  display: none;
  z-index: 30;
}

.dropdown-content.is-open {
  display: block;
}

.dropdown-content button {
  display: block;
  width: 100%;
  text-align: start;
  padding: 8px 12px;
  border-radius: var(--v-radius-sm);
  font-size: 14px;
  color: var(--v-text-secondary);
  background: none;
  border: none;
  cursor: pointer;
}

.dropdown-content button:hover {
  background: var(--v-bg-muted);
}

/* Input with emoji button */
.input-with-emoji {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-emoji input[type=text] {
  padding-left: 45px; /* Make room for emoji button */
}

.emoji-btn {
  position: absolute;
  left: 4px;
  background: var(--v-bg-muted);
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 20px;
  transition: background-color 0.2s ease;
  z-index: 2;
}

.emoji-btn:hover {
  background-color: var(--v-surface);
}

/* Emoji picker - positioned relative to the field container */
.emoji-picker {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--v-bg);
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-md);
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  width: 300px;
  max-width: 90vw;
  margin-top: 5px;
}

.emoji-picker.show {
  display: block;
}

.emoji-categories {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--v-border-muted);
  padding-bottom: 8px;
}

.emoji-category-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  opacity: 0.6;
  transition: all 0.2s ease;
}

.emoji-category-btn:hover,
.emoji-category-btn.active {
  opacity: 1;
  background-color: var(--v-surface);
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  max-height: 200px;
  overflow-y: auto;
}

.emoji-item {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.emoji-item:hover {
  background-color: var(--v-surface);
}

/* AI Suggestions Modal */
.ai-modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-black-a4);
}

.ai-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-modal-content {
  background-color: var(--v-bg);
  border-radius: var(--v-radius-md);
  padding: 24px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
}

.ai-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--v-border-muted);
  padding-bottom: 12px;
}

.ai-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--v-text-muted);
}

.ai-suggestions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-suggestion-item {
  padding: 12px;
  border: 2px solid var(--v-border-muted);
  border-radius: var(--v-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--v-bg);
}

.ai-suggestion-item:hover {
  border-color: var(--v-primary);
  background-color: var(--color-blue-50);
}

.ai-loading {
  text-align: center;
  padding: 40px;
  color: var(--v-text-muted);
}

.ai-loading::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--v-bg-muted);
  border-top: 2px solid var(--v-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Toggle Switch Styles */
.toggle-field {
  margin-bottom: 16px;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  color: var(--v-text);
  margin: 0;
  user-select: none;
}

.toggle-checkbox {
  display: none !important; /* Hide the actual checkbox */
  opacity: 0 !important;
  position: absolute !important;
  pointer-events: none !important;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 18px;
  background-color: var(--color-gray-a5);
  border-radius: 18px;
  transition: background-color 0.3s ease;
  box-shadow: inset 0 2px 4px var(--color-black-base);
}

.toggle-slider {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 16px;
  height: 16px;
  background-color: var(--color-white);
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 4px var(--color-black-a1);
}

/* When checkbox is checked */
.toggle-checkbox:checked + .toggle-label .toggle-switch {
  background-color: var(--color-brand);
}

.toggle-checkbox:checked + .toggle-label .toggle-slider {
  transform: translateX(30px);
  box-shadow: 0 2px 6px color-mix(in srgb, var(--color-brand) 30%, transparent);
}

/* Hover effects */
.toggle-label:hover .toggle-switch {
  box-shadow: inset 0 2px 4px var(--color-black-base), 0 0 0 3px color-mix(in srgb, var(--color-brand) 10%, transparent);
}

.toggle-label:hover .toggle-slider {
  box-shadow: 0 2px 6px var(--color-black-a2);
}

.toggle-checkbox:checked + .toggle-label:hover .toggle-slider {
  box-shadow: 0 2px 6px color-mix(in srgb, var(--color-brand) 40%, transparent);
}

/* Focus styles for accessibility */
.toggle-checkbox:focus + .toggle-label .toggle-switch {
  box-shadow: inset 0 2px 4px var(--color-black-base), 0 0 0 3px color-mix(in srgb, var(--color-brand) 25%, transparent);
}

/* Active/pressed state */
.toggle-label:active .toggle-slider {
  width: 20px;
}

.toggle-checkbox:checked + .toggle-label:active .toggle-slider {
  transform: translateX(26px);
}

/* Different color variants (optional) */
.toggle-field.success .toggle-checkbox:checked + .toggle-label .toggle-switch {
  background-color: var(--v-positive);
}

.toggle-field.warning .toggle-checkbox:checked + .toggle-label .toggle-switch {
  background-color: var(--v-warning);
}

.toggle-field.danger .toggle-checkbox:checked + .toggle-label .toggle-switch {
  background-color: var(--v-negative);
}

/* RTL support */
[dir=rtl] .toggle-label {
  flex-direction: row-reverse;
}

/* Disabled state */
.toggle-checkbox:disabled + .toggle-label {
  opacity: 0.6;
  cursor: not-allowed;
}

.toggle-checkbox:disabled + .toggle-label .toggle-switch {
  background-color: var(--v-bg-muted);
}

.toggle-checkbox:disabled + .toggle-label .toggle-slider {
  background-color: var(--v-surface);
}

/* Steps */
.campaign-steps-breadcrumb {
  background: var(--v-bg);
  border-bottom: 1px solid var(--v-border);
  padding: 12px 24px;
  margin-bottom: 20px;
  direction: rtl;
}

.steps-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
  gap: 10px;
}

.step-item {
  flex: 1;
  text-align: center;
}

.step-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--v-text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.step-link:hover:not(.disabled) {
  color: var(--v-text-secondary);
  text-decoration: none;
}

.step-item.active .step-link {
  color: var(--v-text-secondary);
  font-weight: 600;
}

.step-item.completed .step-link {
  color: var(--v-text-secondary);
}

.step-item.locked .step-link {
  color: var(--v-text-faint);
  cursor: not-allowed;
}

.step-link.disabled {
  cursor: not-allowed;
  pointer-events: none;
}

.step-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.step-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.step-number {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.step-title {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
}

.step-item.active .step-title {
  font-weight: 600;
}

.step-separator {
  color: var(--v-text-muted);
  font-size: 10px;
  flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .steps-container {
    gap: 15px;
  }
  .step-link {
    padding: 6px 8px;
    gap: 6px;
  }
  .step-number {
    font-size: 10px;
  }
  .step-title {
    font-size: 13px;
  }
  .step-icon {
    font-size: 14px;
  }
}
@media (max-width: 480px) {
  .campaign-steps-breadcrumb {
    padding: 10px 16px;
  }
  .steps-container {
    gap: 10px;
  }
  .step-link {
    flex-direction: column;
    gap: 3px;
  }
  .step-content {
    align-items: center;
  }
  .step-title {
    font-size: 12px;
  }
  .step-icon {
    font-size: 13px;
  }
}
.radio-group {
  display: flex;
  gap: 20px;
  padding: 10px 0;
}

.radio-group input[type=radio] {
  margin-left: 8px;
}

.radio-group input[type=radio]:focus {
  box-shadow: none;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px 15px;
  border: 2px solid var(--v-border);
  border-radius: var(--v-radius-sm);
  transition: all 0.2s;
}

.radio-group label:hover {
  border-color: var(--v-primary);
  background: var(--v-surface);
}

.radio-group input[type=radio]:checked + label {
  border-color: var(--v-primary);
  background: var(--v-info-bg);
}

.radio-group label span {
  font-weight: 500;
  color: var(--v-text);
}

.radio-group label small {
  color: var(--v-text-muted);
  font-size: 12px;
}

body.clean-layout {
  margin: 0;
  padding: 0;
  background: var(--v-bg);
  direction: rtl;
}

.clean-exit {
  position: fixed;
  top: 90px;
  right: 30px;
  z-index: 1000;
}

.clean-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px 20px 40px;
}

.content-header {
  margin-bottom: 30px;
  text-align: center;
}

.content-header h2 {
  font-size: 28px;
  font-weight: 400;
  color: var(--v-text);
  margin-bottom: 10px;
}

.content-header p {
  font-size: 15px;
  color: var(--v-text-muted);
  margin: 0;
}

.editor-container {
  margin-bottom: 30px;
}

.email-editor-textarea {
  width: 100%;
  min-height: 500px;
  border: 1px solid var(--v-border);
  border-radius: 4px;
  padding: 15px;
  font-family: monospace;
  font-size: 14px;
  direction: ltr; /* Temporary, Redactor will handle RTL */
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--v-border);
}

.preview-clean-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-header {
  text-align: center;
  margin-bottom: 30px;
}

.content-header h2 {
  font-size: 28px;
  font-weight: 400;
  color: var(--v-text);
  margin-bottom: 10px;
}

.content-header p {
  font-size: 15px;
  color: var(--v-text-muted);
}

.review-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

/* Right Column - Controls */
.controls-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  direction: rtl; /* Restore RTL for content */
}

.summary-card,
.send-options-card {
  background: var(--v-bg);
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-md);
  padding: 24px;
}

.summary-card h3,
.send-options-card h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--v-text);
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--v-border);
}

.summary-item {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid var(--v-border-muted);
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-label {
  font-weight: 500;
  color: var(--v-text-muted);
  min-width: 120px;
  flex-shrink: 0;
  font-size: 14px;
}

.summary-value {
  color: var(--v-text);
  flex: 1;
  font-size: 14px;
}

/* Left Column - Email Preview */
.email-preview-column {
  position: sticky;
  top: 20px;
  height: fit-content;
}

.email-preview-column h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--v-text);
  margin-bottom: 16px;
  text-align: center;
}

.email-preview-wrapper {
  background: #fff; /* theme-exempt: wraps rendered email content */
  position: relative;
  padding-top: 0.5em;
}

.fullscreen-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--v-surface);
  color: var(--v-text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  position: relative;
  z-index: 10;
  width: 200px;
  margin: 0 auto;
  border-radius: var(--v-radius-md);
}

.fullscreen-link:hover {
  background: var(--v-bg-muted);
  color: var(--v-text);
  text-decoration: none;
}

.email-preview-frame {
  background: #fff; /* theme-exempt: renders customer email content */
  height: calc(100vh - 280px); /* Full height minus header and link */
  min-height: 600px;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 20px;
}

.email-preview-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 600px;
  border: none;
  display: block;
}

/* Radio Options */
.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border: 2px solid var(--v-border);
  border-radius: var(--v-radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.radio-option:hover {
  border-color: var(--v-primary);
  background: var(--v-surface);
}

.radio-option input[type=radio] {
  margin-top: 4px;
  cursor: pointer;
}

.radio-label {
  flex: 1;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.radio-label strong {
  font-size: 16px;
  color: var(--v-text);
}

.radio-description {
  font-size: 14px;
  color: var(--v-text-muted);
}

/* Schedule Fields */
.schedule-fields {
  margin-top: 20px;
  padding: 20px;
  background: var(--v-surface);
  border-radius: var(--v-radius-md);
}

.datetime-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-weight: 500;
  font-size: 14px;
  color: var(--v-text-secondary);
}

.date-input,
.time-select {
  padding: 10px 12px;
  border: 1px solid var(--v-border);
  border-radius: 4px;
  font-size: 15px;
  width: 100%;
}

.error-message {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--v-negative-bg);
  border: 1px solid var(--color-red-200);
  border-radius: 4px;
  color: var(--v-negative-text);
  font-size: 14px;
}

/* Form Actions */
.form-actions {
  padding-top: 0;
}

/*
.btn {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary {
  background: #28a745;
  color: white;
}

.btn-primary:hover {
  background: #218838;
}

.btn-large {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
  display: block;
}
*/
/* Responsive */
@media (max-width: 1200px) {
  .review-layout {
    grid-template-columns: 1fr;
  }
  .email-preview-column {
    position: static;
    order: 2;
  }
  .controls-column {
    order: 1;
  }
  .datetime-fields {
    grid-template-columns: 1fr;
  }
}
/* InControl Admin Footer (RTL, minimal, responsive) */
.ic-footer {
  direction: rtl;
  unicode-bidi: plaintext;
  background: var(--v-light-gray-bg);
  padding: 28px 14px 30px;
  max-width: 1200px;
  margin: 60px auto 30px;
  border-radius: 30px;
  border: 2px solid var(--v-border-muted);
  box-shadow: 0 3px 18px rgba(2, 6, 23, 0.06);
}

.ic-footer__card {
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

/* Accessibility block */
.ic-footer__a11y {
  text-align: center;
  padding: 28px 18px 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--v-text) 6%, transparent);
}

.ic-footer__a11y-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 10px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--v-info) 12%, transparent);
  color: var(--v-primary);
  font-size: 22px;
}

.ic-footer__a11y-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--v-primary-hover);
  letter-spacing: 0.2px;
  margin-bottom: 14px;
}

.ic-footer__a11y-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.ic-footer__a11y-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--v-radius-lg);
  background: var(--v-primary);
  color: var(--v-on-primary) !important;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--v-primary) 25%, transparent);
}

.ic-footer__a11y-btn:hover {
  filter: brightness(0.98);
}

.ic-footer__a11y-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--v-radius-lg);
  background: color-mix(in srgb, var(--v-text) 4%, transparent);
  color: color-mix(in srgb, var(--v-text) 85%, transparent) !important;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--v-text) 8%, transparent);
}

.ic-footer__a11y-link--danger {
  background: color-mix(in srgb, var(--v-negative) 8%, transparent);
  border-color: color-mix(in srgb, var(--v-negative) 18%, transparent);
  color: color-mix(in srgb, var(--color-red-700) 95%, transparent) !important;
}

/* Grid */
.ic-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding: 22px 22px 12px;
}

.ic-footer__col {
  min-width: 0;
}

.ic-footer__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 13px;
  color: color-mix(in srgb, var(--v-text) 59.5%, transparent);
}

.ic-footer__title i {
  color: color-mix(in srgb, var(--v-text) 59.5%, transparent);
  font-size: 14px;
}

/* Lists */
.ic-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ic-footer__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  color: color-mix(in srgb, var(--v-text) 72%, transparent);
}

.ic-footer__list li a {
  color: var(--v-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--v-fs-1);
}

.ic-footer__list li a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ic-footer__list li i {
  width: 18px;
  text-align: center;
  color: color-mix(in srgb, var(--v-text) 38%, transparent);
}

.ic-footer__link {
  color: color-mix(in srgb, var(--v-text) 78%, transparent);
  text-decoration: none;
  font-weight: 600;
}

.ic-footer__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Meta / legal pills */
.ic-footer__meta {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.ic-footer__meta-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: color-mix(in srgb, var(--v-text) 59.5%, transparent);
  font-weight: 600;
  font-size: 13px;
}

.ic-footer__meta-line i {
  color: color-mix(in srgb, var(--v-text) 59.5%, transparent);
}

.ic-footer__muted {
  color: color-mix(in srgb, var(--v-text) 55%, transparent);
}

.ic-footer__legal {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.ic-footer__pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--v-text) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--v-text) 7%, transparent);
  color: color-mix(in srgb, var(--v-text) 78%, transparent);
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
}

.ic-footer__pill:hover {
  background: color-mix(in srgb, var(--v-text) 6%, transparent);
}

/* Brand */
.ic-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px dashed color-mix(in srgb, var(--v-text) 10%, transparent);
}

.ic-footer__brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 44px;
  background: var(--v-bg-muted);
  color: color-mix(in srgb, var(--color-brand) 95%, transparent);
  display: grid;
  place-items: center;
  font-size: 30px;
}

.ic-footer__brand-name {
  font-weight: 700;
  color: color-mix(in srgb, var(--v-text) 59.5%, transparent);
  line-height: 1.1;
}

.ic-footer__brand-sub {
  font-size: 12px;
  color: color-mix(in srgb, var(--v-text) 55%, transparent);
  margin-top: 2px;
}

/* Bottom */
.ic-footer__bottom {
  border-top: 1px solid color-mix(in srgb, var(--v-text) 6%, transparent);
  padding: 14px 18px 18px;
  text-align: center;
}

.ic-footer__bottom-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.ic-footer__bottom-links a {
  color: color-mix(in srgb, var(--v-text) 60%, transparent);
  text-decoration: none;
}

.ic-footer__bottom-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ic-footer__dot {
  color: color-mix(in srgb, var(--v-text) 25%, transparent);
}

/* Responsive */
@media (max-width: 980px) {
  .ic-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .ic-footer {
    padding: 18px 10px 0;
  }
  .ic-footer__grid {
    grid-template-columns: 1fr;
    padding: 18px 16px 8px;
    gap: 14px;
  }
  .ic-footer__a11y {
    padding: 22px 14px 16px;
  }
  .ic-footer__a11y-actions {
    gap: 8px;
  }
  .ic-footer__a11y-btn,
  .ic-footer__a11y-link {
    width: 100%;
    justify-content: center;
  }
}
/* Make turbo-frame transparent - don't interfere with layout */
turbo-frame#modal {
  display: contents !important;
}

/* Backdrop - behind modal content */
#modal-backdrop {
  z-index: 1050 !important;
}

/* Modal Container - above backdrop */
#contact-lists-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10060;
  padding: 20px;
  direction: ltr; /* Reset direction for centering */
}

.modal-content {
  background: var(--v-bg);
  border-radius: var(--v-radius-lg);
  box-shadow: 0 20px 60px var(--color-black-a2);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  direction: rtl;
  position: relative;
  z-index: 1061;
}

/* Modal Header */
.modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--v-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--v-text);
}

.modal-subheader {
  padding: 24px;
  font-size: 18px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--v-text-muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--v-radius-sm);
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--v-bg-muted);
  color: var(--v-text);
}

/* Search Box */
.modal-search {
  padding: 16px 24px;
  border-bottom: 1px solid var(--v-border);
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--v-text-faint);
  font-size: 16px;
  pointer-events: none;
  z-index: 1;
}

.search-input {
  width: 100%;
  padding: 12px 48px 12px 16px;
  border: 2px solid var(--v-border);
  border-radius: var(--v-radius-md);
  font-size: 16px;
  transition: all 0.2s;
  direction: rtl;
}

.search-input:focus {
  outline: none;
  border-color: #667eea; /* theme-note: purple accent family, intentional */
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); /* theme-note: purple accent family, intentional */
}

.search-input:focus + .search-icon,
.search-input:not(:placeholder-shown) + .search-icon {
  color: #667eea; /* theme-note: purple accent family, intentional */
}

/* Modal Body */
.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.contact-lists-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

/* Individual List Item */
.contact-list-item {
  border: 2px solid var(--v-border);
  border-radius: var(--v-radius-md);
  transition: all 0.2s;
}

.contact-list-item:hover {
  border-color: var(--v-info);
  background: var(--color-blue-50);
}

.contact-list-label {
  display: flex;
  align-items: center;
  padding: 16px;
  cursor: pointer;
  margin: 0;
}

.contact-list-checkbox {
  width: 20px;
  height: 20px;
  margin-left: 12px;
  cursor: pointer;
  accent-color: var(--v-info);
}

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

.list-name {
  font-weight: 500;
  color: var(--v-text);
  font-size: 16px;
}

.list-count {
  font-size: 14px;
  color: var(--v-text-muted);
}

/* Selection Summary */
.selection-summary {
  padding: 16px;
  background: var(--color-blue-50);
  border: 2px solid var(--v-info);
  border-radius: var(--v-radius-md);
  text-align: center;
  font-size: 16px;
  color: var(--v-info-text);
}

/* Modal Footer */
.modal-footer {
  padding: 24px;
  border-top: 1px solid var(--v-border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/*
.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

.btn-primary {
  background: #3b82f6;
  color: white;
}

.btn-primary:hover {
  background: #2563eb;
}
*/
/* Scrollbar Styling */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: var(--v-bg-muted);
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--v-border);
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--v-text-faint);
}

/* Select Lists Button - matching purple theme */
.btn-select-lists {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* theme-note: decorative gradient, intentional */
  color: var(--color-white) !important;
  border: none;
  border-radius: 3rem;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3); /* theme-note: purple accent family, intentional */
}

.btn-select-lists:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%); /* theme-note: decorative gradient, intentional */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4); /* theme-note: purple accent family, intentional */
  text-decoration: none;
}

.btn-select-lists:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3); /* theme-note: purple accent family, intentional */
}

.btn-select-lists i {
  font-size: 18px;
}

.btn-select-lists .badge {
  background: var(--color-white-a2);
  padding: 4px 12px;
  border-radius: var(--v-radius-lg);
  font-size: 14px;
  font-weight: 600;
  margin-right: 4px;
}

/* Selected Lists Summary */
.selected-lists-summary {
  background: var(--v-surface);
  border: 2px solid var(--v-border);
  border-radius: var(--v-radius-md);
  padding: 16px;
  margin: 10px 0 50px 0;
}

.selected-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--v-border);
}

.selected-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.selected-list-item .checkmark {
  color: var(--v-positive);
  font-weight: bold;
  font-size: 18px;
}

.selected-list-item .list-name {
  flex: 1;
  font-weight: 500;
  color: var(--v-text);
}

.selected-list-item .contact-count {
  color: var(--v-text-muted);
  font-size: 14px;
}

.no-lists-selected {
  color: var(--v-text-faint);
  font-style: italic;
  margin: 0;
  text-align: center;
  padding: 8px 0;
}

/* Hidden fields container */
#contact-list-ids-container {
  display: none;
}

.contact-lists-grid .contact-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
}

.contact-list-item .list-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.list-mode-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--v-border);
  border-radius: 999px;
  background: var(--v-bg);
  flex: 0 0 auto;
}

.mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--v-text-faint);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease, color 0.12s ease;
}

.mode-btn:hover:not(.active) {
  color: var(--v-text-secondary);
}

.mode-btn.mode-include.active {
  background: var(--v-positive-bg);
  color: var(--color-green-700);
}

.mode-btn.mode-exclude.active {
  background: var(--v-negative-bg);
  color: var(--color-red-700);
}

.selection-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

.summary-pill.summary-include {
  background: var(--v-positive-bg);
  color: var(--color-green-700);
}

.summary-pill.summary-exclude {
  background: var(--v-negative-bg);
  color: var(--color-red-700);
}

/* ========================================
   Read-only field for from_email
   ======================================== */
.read-only-field {
  background-color: var(--v-bg-muted);
  border: 1px solid var(--v-border);
  padding: 12px 15px;
  border-radius: var(--v-radius-hg);
  color: var(--v-text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: ltr;
  text-align: left;
}

.read-only-field i {
  color: var(--v-text-faint);
  font-size: 14px;
  margin-left: 10px;
}

/* ========================================
   Field help text
   ======================================== */
.field-help-text {
  margin-top: 8px;
  padding: 10px 12px;
  background-color: var(--v-info-bg);
  border-right: 3px solid var(--v-info);
  border-radius: 4px;
  font-size: 13px;
  color: var(--v-info-text);
  line-height: 1.5;
}

.field-help-text i {
  color: var(--v-info);
  margin-left: 6px;
  font-size: 14px;
}

.campaign-type-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--v-bg);
  border: 1.5px solid var(--v-border);
  border-radius: 10px;
  cursor: pointer;
  text-align: right;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  color: inherit;
  margin-bottom: 0;
}

button.campaign-type-card {
  font-family: inherit;
  font-size: inherit;
}

.campaign-type-card:not(.campaign-type-card--disabled):hover {
  border-color: var(--color-indigo-500);
  background: var(--v-surface);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--color-indigo-500) 10%, transparent);
}

.campaign-type-card--disabled {
  cursor: default;
  opacity: 0.5;
  background: var(--v-surface);
}

.campaign-type-icon {
  font-size: 22px;
  color: var(--color-indigo-500);
  width: 44px;
  height: 44px;
  background: var(--color-indigo-50);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.campaign-type-card--disabled .campaign-type-icon {
  background: var(--v-bg-muted);
  color: var(--v-text-faint);
}

.campaign-type-body {
  flex: 1;
  text-align: right;
}

.campaign-type-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--v-text);
  margin-bottom: 2px;
}

.campaign-type-card--disabled .campaign-type-title {
  color: var(--v-text-faint);
}

.campaign-type-desc {
  font-size: 13px;
  color: var(--v-text-muted);
  line-height: 1.4;
}

.campaign-type-arrow {
  color: var(--color-indigo-500);
  font-size: 14px;
  flex-shrink: 0;
}

.campaign-type-badge {
  background: var(--v-bg-muted);
  color: var(--v-text-faint);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  flex-shrink: 0;
  white-space: nowrap;
}

.em-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.em-badge i {
  font-size: 11px;
}

.em-badge-green {
  background: var(--v-positive-bg);
  color: var(--v-positive-text);
}

.em-badge-blue {
  background: var(--v-info-bg);
  color: var(--v-info-text);
}

.em-badge-yellow {
  background: var(--v-warning-bg);
  color: var(--v-warning-text);
}

.em-badge-red {
  background: var(--v-negative-bg);
  color: var(--v-negative-text);
}

.em-badge-gray {
  background: var(--v-bg-muted);
  color: var(--v-text-secondary);
}

.em-badge-red-strong {
  background: var(--v-negative-bg);
  color: var(--color-red-900);
}

.em-badge-red-light {
  background: var(--color-rose-50);
  color: var(--color-rose-700);
}

.selected-list-item.is-include .checkmark {
  color: var(--color-green-700);
}

.selected-list-item.is-exclude .checkmark {
  color: var(--color-red-700);
}

.selected-list-item.is-exclude .list-name {
  color: var(--color-red-700);
}

.selected-list-item.is-exclude .exclude-label {
  font-weight: 600;
}

/* =========================================
   AI Generation Panel
   ========================================= */
.ai-gen-panel {
  max-width: 860px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%); /* theme-note: decorative gradient, intentional */
  border: 2px solid var(--color-indigo-200);
  border-radius: var(--v-radius-lg);
  overflow: hidden;
}

.ai-gen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.ai-gen-header:hover {
  background: color-mix(in srgb, var(--color-indigo-500) 6%, transparent);
}

.ai-gen-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--color-indigo-700);
}

.ai-gen-header-right i {
  font-size: 16px;
  color: var(--color-indigo-500);
}

.ai-gen-chevron {
  color: var(--color-indigo-500);
  transition: transform 0.25s;
  font-size: 13px;
}

.ai-gen-chevron.open {
  transform: rotate(180deg);
}

.ai-gen-body {
  padding: 0 20px 20px;
  border-top: 1px solid var(--color-indigo-200);
}

.ai-gen-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 16px;
}

.ai-gen-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--v-text-secondary);
  margin-bottom: 6px;
}

.ai-gen-field textarea,
.ai-gen-field select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-indigo-200);
  border-radius: var(--v-radius-md);
  font-size: 14px;
  background: var(--v-field-bg);
  color: var(--v-field-text);
  font-family: inherit;
  resize: vertical;
  direction: rtl;
  transition: border-color 0.2s;
}

.ai-gen-field textarea:focus,
.ai-gen-field select:focus {
  outline: none;
  border-color: var(--color-indigo-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-indigo-500) 12%, transparent);
}

.ai-gen-tone {
  max-width: 280px;
}

.ai-gen-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ai-gen-hint {
  font-size: 13px;
  color: var(--v-text-muted);
}

.ai-gen-hint.error {
  color: var(--color-red-600);
}

.ai-gen-hint.success {
  color: var(--color-green-600);
}

.html-token-hint {
  max-width: 1600px;
  margin: 0 auto 16px;
  padding: 10px 14px;
  background: var(--color-blue-50);
  border: 1px solid var(--color-indigo-200);
  border-radius: var(--v-radius-md);
  font-size: 13px;
  color: var(--v-text-secondary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.html-token-hint i {
  color: var(--color-indigo-500);
}

.html-token-hint code {
  background: var(--v-bg);
  border: 1px solid var(--color-indigo-200);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  color: var(--color-blue-800);
  font-family: "SF Mono", Monaco, Consolas, monospace;
}

.html-guide-link {
  margin-top: 12px;
  margin-bottom: 0;
}

.html-guide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--color-indigo-50);
  border: 1px solid var(--color-indigo-200);
  border-radius: var(--v-radius-md);
  color: var(--color-indigo-700);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.html-guide-btn:hover {
  background: var(--color-indigo-100);
}

.html-guide-btn i {
  font-size: 12px;
}

.html-editor-panes {
  display: flex;
  gap: 16px;
  max-width: 1600px;
  margin: 0 auto 16px;
}

.html-editor-pane {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.html-pane-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--v-text-secondary);
  margin-bottom: 8px;
}

.html-pane-label i {
  color: var(--color-indigo-500);
}

/* Code editor chrome — intentionally dark in every theme */
.html-code-area {
  flex: 1;
  width: 100%;
  min-height: 540px;
  box-sizing: border-box;
  padding: 16px;
  border: 1px solid #334155;
  border-radius: var(--v-radius-md);
  background: #0f172a;
  color: #e2e8f0;
  font-family: "SF Mono", Monaco, Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.6;
  direction: ltr;
  text-align: left;
  white-space: pre;
  overflow: auto;
  resize: vertical;
  tab-size: 2;
}

.html-code-area:focus {
  outline: none;
  border-color: var(--color-indigo-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-indigo-500) 25%, transparent);
}

.html-preview-frame {
  flex: 1;
  width: 100%;
  min-height: 540px;
  box-sizing: border-box;
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-md);
  background: #ffffff; /* theme-exempt: renders customer email content */
}

@media (max-width: 900px) {
  .html-editor-panes {
    flex-direction: column;
  }
  .html-code-area,
  .html-preview-frame {
    min-height: 360px;
  }
}
.html-sendtest {
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 16px 18px;
  border: 1px solid var(--v-border);
  border-radius: 10px;
  background: var(--v-surface);
}

.html-sendtest-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--v-text-secondary);
}

.html-sendtest-head i {
  color: var(--color-indigo-500);
}

.html-sendtest-sub {
  font-size: 13px;
  color: var(--v-text-muted);
  margin: 6px 0 12px;
}

.html-sendtest-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.html-sendtest-input {
  flex: 1;
  min-width: 220px;
  padding: 10px 14px;
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-md);
  font-size: 14px;
  direction: ltr;
  text-align: left;
}

.html-sendtest-input:focus {
  outline: none;
  border-color: var(--color-indigo-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-indigo-500) 12%, transparent);
}

.html-sendtest-msg {
  display: none;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: var(--v-radius-sm);
  font-size: 13px;
}

.wallet-check-card {
  border-radius: var(--v-radius-md);
  margin-bottom: 1.5rem;
}

.wallet-check--ok {
  border-left: 4px solid var(--v-positive);
}

.wallet-check--insufficient {
  border-left: 4px solid var(--v-negative);
  background: var(--v-negative-bg);
}

.wallet-check-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: var(--v-radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
}

.wallet-check-status--ok {
  background: var(--v-positive-bg);
  color: var(--v-positive-text);
}

.wallet-check-status--insufficient {
  background: var(--v-negative-bg);
  color: var(--v-negative-text);
}

.em-stat-open {
  font-weight: 600;
  color: var(--color-green-600);
}

.em-stat-click {
  color: var(--v-link);
}

.template-picker {
  max-width: 860px;
  margin: 0 auto;
}

.template-picker-skip {
  text-align: center;
  margin-bottom: 32px;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.template-card {
  background: var(--v-bg);
  border: 2px solid var(--v-border);
  border-radius: 10px;
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.template-card:hover {
  border-color: var(--v-primary);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--v-primary) 12%, transparent);
}

.template-card-icon {
  font-size: 28px;
  color: var(--v-primary);
}

.template-card-category span {
  display: inline-block;
  background: var(--color-blue-50);
  color: var(--v-primary);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

.template-card-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--v-text);
  margin: 0;
}

.template-card-description {
  font-size: 14px;
  color: var(--v-text-muted);
  margin: 0;
  line-height: 1.5;
  flex-grow: 1;
}

.template-card-action {
  margin-top: 4px;
}

.template-select-btn {
  width: 100%;
  justify-content: center;
}

.delay-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--v-warning-bg);
  border: 1px solid var(--color-amber-300);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
  color: var(--v-warning-text);
  font-size: 14px;
}

.delay-note i {
  font-size: 18px;
  color: var(--v-warning);
  flex-shrink: 0;
  margin-top: 2px;
}

.delay-note div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ev-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.ev-badge--failed {
  background: var(--v-negative-bg);
  color: var(--color-red-700);
}

.ev-badge--delayed {
  background: var(--v-warning-bg);
  color: var(--v-warning-text);
}

.stats-card {
  background: var(--v-bg);
  border: 1px solid var(--v-border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.stats-card__icon {
  font-size: 22px;
  margin-bottom: 8px;
}

.stats-card__value {
  font-size: 32px;
  font-weight: 700;
  color: var(--v-text);
  line-height: 1;
}

.stats-card__pct {
  font-size: 14px;
  color: var(--v-text-muted);
  margin-top: 4px;
}

.stats-card__label {
  font-size: 13px;
  color: var(--v-text-faint);
  margin-top: 6px;
}

.scheduled-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--v-warning-bg);
  border: 1px solid var(--v-warning);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 16px 0;
  color: var(--v-warning-text);
  font-size: 15px;
}

.scheduled-banner i {
  font-size: 22px;
  color: var(--v-warning);
  flex-shrink: 0;
}

.scheduled-banner div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.scheduled-banner--stopped {
  background: var(--v-negative-bg);
  border-color: var(--v-negative);
  color: var(--v-negative-text);
}

.scheduled-banner--stopped i {
  color: var(--v-negative);
}

.scheduled-banner__action {
  margin-right: auto;
}

.campaign-parent-link {
  margin-top: 8px;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.btn-sm i {
  margin-left: 3px;
}

/* Tooltip on disabled state */
.text-muted[title] {
  cursor: help;
}

@media (max-width: 768px) {
  .table-responsive {
    font-size: 0.85rem;
  }
  .table td,
  .table th {
    padding: 0.5rem 0.3rem;
  }
  .btn-sm {
    padding: 0.2rem 0.4rem;
    font-size: 0.75rem;
  }
  .card-body .row.g-2 {
    gap: 0.5rem !important;
  }
}
/* Grid System */
.wallet .row {
  display: flex;
  flex-wrap: wrap;
}

.wallet .justify-content-center {
  justify-content: center;
}

.wallet .top-icon {
  font-size: 64px;
  color: var(--v-negative);
}

.wallet .card {
  background: var(--v-bg);
  border: 1px solid var(--v-border-muted);
  border-radius: 10px;
  box-shadow: 0 0.125rem 0.25rem var(--color-black-b0);
  margin-bottom: 2rem;
}

.wallet .card-header {
  border-radius: var(--v-radius-md) var(--v-radius-md) 0 0 !important;
  padding: 1rem 1.25rem;
  background-color: var(--v-surface);
  border-bottom: 1px solid var(--v-border-muted);
}

.wallet .card-body {
  padding: 1.25rem;
}

.wallet .col-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding: 0 8px;
}

/* Border & Background */
.wallet .border {
  border: 1px solid var(--v-border);
}

.wallet .rounded {
  border-radius: var(--v-radius-sm);
}

/* Display Utilities */
.wallet .d-block {
  display: block;
}

/* Responsive Design */
@media (max-width: 767px) {
  .wallet .col-4 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1rem;
  }
  .wallet .card-body .row {
    margin: 0;
  }
}
/* ========================================
   Wallet Status Card
   ======================================== */
.wallet-status-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* theme-note: decorative gradient, intentional */
  border-radius: var(--v-radius-lg);
  padding: 25px;
  margin-bottom: 30px;
  color: var(--color-white);
  box-shadow: 0 4px 6px var(--color-black-base);
}

.wallet-status-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.wallet-status-item {
  text-align: center;
  padding: 15px;
  background: var(--color-white-base);
  border-radius: var(--v-radius-md);
  backdrop-filter: blur(10px);
}

.wallet-status-label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 10px;
}

.wallet-status-label i {
  margin-left: 5px;
}

.wallet-status-value {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.wallet-status-value.primary {
  font-size: 2.5rem;
  color: #ffd700; /* theme-note: gold on gradient, intentional */
}

.wallet-status-subtitle {
  font-size: 0.85rem;
  opacity: 0.8;
}

.wallet-status-footer {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid var(--color-white-a1);
}

.wallet-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.wallet-badge i {
  margin-left: 5px;
}

.badge-success {
  background: var(--v-positive);
}

.badge-warning {
  background: var(--v-warning);
  color: var(--color-gray-b1);
}

.badge-danger {
  background: var(--v-negative);
}

/* ========================================
   Wallet Form
   ======================================== */
.wallet-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--v-bg);
  padding: 40px 20px;
  border-radius: 20px;
}

/* Explanation Box */
.wallet-explanation {
  background: var(--v-light-gray-bg);
  border-right: 4px solid #2196f3; /* theme-note: material blue, intentional */
  padding: 20px;
  border-radius: var(--v-radius-md);
  margin-bottom: 30px;
  max-width: 600px;
  display: flex;
  gap: 15px;
}

.explanation-icon {
  font-size: 2rem;
  color: #2196f3; /* theme-note: material blue, intentional */
  flex-shrink: 0;
}

.explanation-text {
  flex: 1;
}

.explanation-text p {
  margin: 10px 0;
  line-height: 1.6;
}

.explanation-example {
  background: var(--v-bg);
  padding: 12px;
  border-radius: var(--v-radius-sm);
  margin-top: 12px;
  border-right: 3px solid #4caf50; /* theme-note: material green, intentional */
}

/* Form Elements */
.btn-suggest {
  margin: 5px;
  padding: 12px 20px;
  background: var(--v-bg-muted);
  border: 2px solid var(--color-gray-a4);
  border-radius: var(--v-radius-md);
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.btn-suggest:hover {
  background: #667eea; /* theme-note: purple accent family, intentional */
  color: var(--color-white);
  border-color: #667eea; /* theme-note: purple accent family, intentional */
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3); /* theme-note: purple accent family, intentional */
}

.btn-suggest small {
  margin-top: 4px;
}

.form-control {
  width: 250px;
  padding: 12px;
  font-size: 1.1rem;
  border: 2px solid var(--v-border);
  border-radius: 2rem;
  text-align: center;
}

.form-control:focus {
  outline: none;
  border-color: #667eea; /* theme-note: purple accent family, intentional */
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); /* theme-note: purple accent family, intentional */
}

.conversion-display {
  display: block;
  margin-top: 8px;
  color: var(--v-text-muted);
  font-weight: 600;
}

.conversion-display span {
  color: #667eea; /* theme-note: purple accent family, intentional */
}

/* Responsive */
@media (max-width: 768px) {
  .wallet-status-row {
    grid-template-columns: 1fr;
  }
  .wallet-status-value {
    font-size: 1.5rem;
  }
  .wallet-status-value.primary {
    font-size: 2rem;
  }
  .wallet-explanation {
    flex-direction: column;
  }
  .btn-suggest {
    width: 100%;
    margin: 5px 0;
  }
}
.wallet-tx-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-topup {
  background: var(--v-positive-bg);
  color: var(--v-positive-text);
}

.badge-email {
  background: var(--v-info-bg);
  color: var(--v-info-text);
}

.badge-ai {
  background: var(--color-violet-100);
  color: var(--color-violet-800);
}

.badge-refund {
  background: var(--v-warning-bg);
  color: var(--v-warning-text);
}

.badge-other {
  background: var(--v-bg-muted);
  color: var(--v-text-muted);
}

.invoices .space-both {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.vibe-domains {
  /* Bootstrap v5.3.0 — Progress */
}
.vibe-domains .container-fluid {
  width: 100%;
}
.vibe-domains .card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: var(--v-bg);
  background-clip: border-box;
  border: 1px solid var(--v-border-muted);
  border-radius: var(--v-radius-card);
}
.vibe-domains .card-header {
  padding: 1rem;
  margin-bottom: 0;
  background-color: var(--v-light-gray-bg);
  border-bottom: 1px solid var(--v-border-muted);
}
.vibe-domains .card-header:first-child {
  border-radius: var(--v-radius-card) var(--v-radius-card) 0 0;
}
.vibe-domains .card-body {
  flex: 1 1 auto;
  padding: 1rem;
}
.vibe-domains .text-success {
  color: var(--v-positive-text);
}
@keyframes progress-bar-stripes {
  0% {
    background-position-x: 1rem;
  }
}
.vibe-domains .domain-card {
  margin: 1rem 0;
}
.vibe-domains .domain-card-header {
  padding: 1rem;
}
.vibe-domains .domain-card-header h3,
.vibe-domains .domain-card-header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vibe-domains .info-box h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vibe-domains .info-box p {
  margin: 0;
}

/* Header Card */
.domain-header-card {
  background: var(--v-light-gray-bg);
  border-radius: var(--v-radius-md);
  box-shadow: 0 2px 4px var(--color-black-base);
  padding: 24px;
  margin-bottom: 24px;
}

.domain-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.domain-info {
  flex: 1;
}

.domain-name {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.domain-description {
  color: var(--v-text-muted);
  margin: 0;
}

.domain-actions {
  display: flex;
  gap: 12px;
}

@media (max-width: 1024px) {
  .domain-content-layout {
    grid-template-columns: 1fr;
  }
}
/* DNS Table */
.dns-table {
  width: 100%;
  border-collapse: separate; /* ← Change this! */
  border-spacing: 0; /* ← Add this! */
  direction: rtl;
  background: var(--v-surface);
  border: 1px solid var(--v-border);
  border-radius: 1rem;
  overflow: hidden; /* ← Add this! */
}

.dns-table th {
  padding: 16px;
  text-align: right;
  font-weight: 600;
  border-bottom: 1px solid var(--v-border);
  font-size: 14px;
}

.dns-table td {
  padding: 16px;
  background: var(--v-bg);
  border-bottom: 1px solid var(--v-border-muted);
  vertical-align: top;
}

/* Status Column */
.status-cell {
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-left: 6px;
}

.status-dot.verified {
  background: var(--v-positive);
}

.status-dot.pending {
  background: var(--v-warning);
}

/* Type Column */
.type-cell strong {
  display: block;
  font-size: 14px;
}

.priority {
  font-size: 12px;
  color: var(--v-text-muted);
}

/* DNS Fields */
.dns-field-group {
  position: relative;
  display: block;
}

.dns-input,
.dns-textarea {
  width: 100%;
  padding: 10px 48px 10px 10px;
  box-sizing: border-box;
  border: 1px solid var(--v-border);
  border-radius: 4px;
  background: var(--v-light-gray-bg);
  font-family: "Courier New", monospace;
  font-size: 14px;
  direction: ltr;
  text-align: left;
}

.dns-textarea {
  resize: vertical;
  min-height: 160px;
  max-height: 200px;
}

.dns-input:focus,
.dns-textarea:focus {
  outline: none;
  border-color: var(--v-primary);
}

/* Copy Button */
.btn-copy {
  position: absolute;
  top: 8px;
  right: 15px;
  z-index: 2;
  padding: 4px 8px;
  min-width: auto;
  font-size: 14px;
  background: var(--color-black-b0);
  color: var(--v-text-muted);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

/* hover + active */
.btn-copy:hover {
  background: color-mix(in srgb, var(--v-primary) 15%, transparent);
  color: var(--v-primary);
}

.btn-copy:active {
  transform: scale(0.95);
}

/* כשהועתק – צבע ירוק + אנימציה קלה */
.btn-copy.copied {
  background: var(--v-positive);
  color: var(--color-white);
  animation: pulse 0.6s;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}
.email_profile_settings {
  /* ========================================
  Form Structure
  ======================================== */
  /* ========================================
   Settings Sections
   ======================================== */
  /* ========================================
   Form Fields
   ======================================== */
  /* ========================================
   Read-only Fields
   ======================================== */
  /* ========================================
   System Information Grid
   ======================================== */
  /* ========================================
   Badges
   ======================================== */
  /* ========================================
   Quality Score Display
   ======================================== */
  /* ========================================
   Metrics Display
   ======================================== */
  /* ========================================
   Enterprise Locked Section
   ======================================== */
  /* ========================================
   Form Actions (Buttons)
   ======================================== */
  /* ========================================
   Responsive Design
   ======================================== */
  /* ========================================
   RTL Support Enhancements
   ======================================== */
}
.email_profile_settings .form-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: var(--v-bg);
  background-clip: border-box;
  border: 1px solid var(--v-border-muted);
  border-radius: var(--v-radius-card);
}
.email_profile_settings .form-card-header {
  padding: 1rem;
  background-color: var(--v-light-gray-bg);
  border-bottom: 1px solid var(--v-border-muted);
}
.email_profile_settings .form-card-header:first-child {
  border-radius: var(--v-radius-card) var(--v-radius-card) 0 0;
}
.email_profile_settings .form-card-body {
  flex: 1 1 auto;
  padding: 1rem;
}
.email_profile_settings .settings-form {
  background: var(--v-bg);
}
.email_profile_settings .settings-section {
  background: var(--v-surface);
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-lg);
  padding: 20px;
  margin-bottom: 30px;
}
.email_profile_settings .section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--v-text);
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.email_profile_settings .section-description {
  font-size: 14px;
  color: var(--v-text-muted);
  margin: 0 0 25px 0;
  line-height: 1.5;
}
.email_profile_settings .hint-text {
  display: block;
  color: var(--v-text-muted);
  font-size: 13px;
  margin-top: 3px;
  line-height: 1.4;
}
.email_profile_settings .hint-text strong {
  color: var(--v-text);
  font-weight: 600;
}
.email_profile_settings .hint-text .fa-info-circle {
  color: var(--v-info);
  margin-left: 4px;
}
.email_profile_settings .light-text {
  color: #f9f9f9 !important; /* theme-note: light-on-gradient text, intentional */
}
.email_profile_settings .profile-read-only-field {
  margin-bottom: 25px;
}
.email_profile_settings .profile-read-only-field label {
  margin-right: 1.5rem;
}
.email_profile_settings .profile-read-only-field:last-child {
  margin-bottom: 0;
}
.email_profile_settings .profile-read-only-value {
  background: var(--v-bg);
  border: 1px solid var(--v-border);
  border-radius: 2rem;
  padding: 12px 15px;
  font-family: "Courier New", monospace;
  font-size: 14px;
  color: var(--v-text);
}
.email_profile_settings .profile-read-only-value code {
  background: none;
  padding: 0;
  color: var(--v-text);
  font-size: 14px;
}
.email_profile_settings .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.email_profile_settings .info-item {
  background: var(--v-bg);
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-md);
  padding: 15px;
}
.email_profile_settings .info-item label {
  display: block;
  font-weight: 600;
  color: var(--v-text-muted);
  font-size: 13px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.email_profile_settings .info-value {
  font-size: 16px;
  color: var(--v-text);
  font-weight: 500;
}
.email_profile_settings .info-value code {
  background: var(--v-surface);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--v-negative);
}
.email_profile_settings .badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--v-radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.email_profile_settings .badge-info {
  background-color: var(--v-info-bg);
  color: var(--v-info-text);
}
.email_profile_settings .badge-success {
  background-color: var(--v-positive-bg);
  color: var(--v-positive-text);
}
.email_profile_settings .badge-warning {
  background-color: var(--v-warning-bg);
  color: var(--v-warning-text);
}
.email_profile_settings .badge-primary {
  background-color: var(--color-blue-100);
  color: var(--color-blue-900);
}
.email_profile_settings .badge-secondary {
  background-color: var(--color-gray-a6);
  color: var(--color-gray-base);
}
.email_profile_settings .quality-score {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.email_profile_settings .score-number {
  font-size: 24px;
  font-weight: 700;
  display: inline-block;
}
.email_profile_settings .score-success {
  color: var(--v-positive);
}
.email_profile_settings .score-warning {
  color: var(--v-warning);
}
.email_profile_settings .score-danger {
  color: var(--v-negative);
}
.email_profile_settings .progress-bar-container {
  width: 100%;
  height: 8px;
  background-color: var(--v-bg-muted);
  border-radius: 4px;
  overflow: hidden;
}
.email_profile_settings .progress-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}
.email_profile_settings .progress-bar-success {
  background-color: var(--v-positive);
}
.email_profile_settings .progress-bar-warning {
  background-color: var(--v-warning);
}
.email_profile_settings .progress-bar-danger {
  background-color: var(--v-negative);
}
.email_profile_settings .metric-value {
  font-size: 18px;
  font-weight: 700;
}
.email_profile_settings .metric-success {
  color: var(--v-positive);
}
.email_profile_settings .metric-warning {
  color: var(--v-warning);
}
.email_profile_settings .metric-danger {
  color: var(--v-negative);
}
.email_profile_settings .enterprise-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* theme-note: decorative gradient, intentional */
  border: none;
}
.email_profile_settings .enterprise-section .section-title {
  color: var(--color-white);
}
.email_profile_settings .enterprise-section .section-title .fa-lock {
  color: var(--color-white-a7);
}
.email_profile_settings .form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
  margin-top: 40px;
  padding-top: 30px;
}
@media (max-width: 768px) {
  .email_profile_settings .email-marketing-settings-container {
    padding: 20px 15px;
  }
  .email_profile_settings .page-title {
    font-size: 26px;
  }
  .email_profile_settings .settings-section {
    padding: 20px;
  }
  .email_profile_settings .section-title {
    font-size: 20px;
  }
  .email_profile_settings .info-grid {
    grid-template-columns: 1fr;
  }
  .email_profile_settings .form-actions {
    flex-direction: column;
  }
}
.email_profile_settings [dir=rtl] {
  text-align: right;
}
.email_profile_settings .hint-text {
  margin-right: 6px;
}

/* ── Layout ──────────────────────────────── */
.vibe-forms {
  /* ── Header ──────────────────────────────── */
  /* ── Flash messages ──────────────────────── */
  /* ── Stats ───────────────────────────────── */
  /* ── Table ───────────────────────────────── */
  /* ── Design badge ─────────────────────────── */
  /* ── Status badge ─────────────────────────── */
  /* ── Row actions ──────────────────────────── */
  /* ── Empty state ──────────────────────────── */
  /* Code editor chrome — intentionally dark in every theme */
}
.vibe-forms .ef-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.vibe-forms .ef-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--v-text);
  margin: 0;
}
.vibe-forms .ef-header-actions {
  display: flex;
  gap: 10px;
}
.vibe-forms .ef-notice,
.vibe-forms .ef-alert {
  padding: 12px 16px;
  border-radius: var(--v-radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
}
.vibe-forms .ef-notice {
  background: var(--v-positive-bg);
  color: var(--v-positive-text);
  border: 1px solid var(--color-green-200);
}
.vibe-forms .ef-alert {
  background: var(--v-negative-bg);
  color: var(--v-negative-text);
  border: 1px solid var(--color-red-300);
}
.vibe-forms .ef-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.vibe-forms .ef-stat-card {
  background: var(--v-bg);
  border-radius: 10px;
  padding: 20px 24px;
  border: 1px solid var(--v-border);
  border-right: 4px solid var(--v-border);
}
.vibe-forms .ef-stat-card--green {
  border-right-color: var(--v-positive);
}
.vibe-forms .ef-stat-card--blue {
  border-right-color: var(--v-info);
}
.vibe-forms .ef-stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--v-text);
  line-height: 1;
}
.vibe-forms .ef-stat-label {
  font-size: 13px;
  color: var(--v-text-muted);
  margin-top: 6px;
}
.vibe-forms .ef-table-wrap {
  background: var(--v-bg);
  border-radius: 10px;
  border: 1px solid var(--v-border-muted);
  overflow: hidden;
}
.vibe-forms .ef-table {
  width: 100%;
  border-collapse: collapse;
  /*font-size: 14px;*/
}
.vibe-forms .ef-table thead tr {
  background: var(--v-bg);
  border-bottom: 1px solid var(--v-border);
}
.vibe-forms .ef-table th {
  padding: 20px 16px;
  text-align: right;
  font-weight: 600;
  color: var(--v-text-secondary);
  white-space: nowrap;
}
.vibe-forms .ef-table td {
  padding: 20px 16px;
  border-bottom: 1px solid var(--v-border-muted);
  color: var(--v-text-secondary);
  vertical-align: middle;
}
.vibe-forms .ef-table tbody tr:last-child td {
  border-bottom: none;
}
.vibe-forms .ef-table tbody tr:hover {
  background: var(--v-surface);
}
.vibe-forms .ef-design-badge {
  background: var(--color-violet-100);
  color: var(--color-violet-800);
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
.vibe-forms .ef-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.vibe-forms .ef-status-badge:hover {
  opacity: 0.8;
}
.vibe-forms .ef-status-badge--active {
  background: var(--v-positive-bg);
  color: var(--v-positive-text);
}
.vibe-forms .ef-status-badge--inactive {
  background: var(--v-bg-muted);
  color: var(--v-text-muted);
}
.vibe-forms .ef-row-actions {
  display: flex;
  gap: 6px;
}
.vibe-forms .ef-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--v-radius-sm);
  border: 1px solid var(--v-border);
  background: var(--v-bg);
  color: var(--v-text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.15s;
  cursor: pointer;
}
.vibe-forms .ef-action-btn:hover {
  background: var(--v-bg-muted);
  color: var(--v-text-secondary);
  border-color: var(--color-gray-a5);
}
.vibe-forms .ef-action-btn--danger:hover {
  background: var(--v-negative-bg);
  color: var(--color-red-600);
  border-color: var(--color-red-300);
}
.vibe-forms .ef-empty {
  background: var(--v-bg);
  border-radius: 10px;
  padding: 60px 40px;
  text-align: center;
}
.vibe-forms .ef-empty-icon {
  font-size: 48px;
  color: var(--color-gray-a5);
  margin-bottom: 20px;
}
.vibe-forms .ef-empty h3 {
  font-size: 20px;
  color: var(--v-text-secondary);
  margin-bottom: 8px;
}
.vibe-forms .ef-empty p {
  color: var(--v-text-muted);
  margin-bottom: 24px;
  font-size: 14px;
}
.vibe-forms .embed-code-block {
  background: #1e1e1e;
  color: #f5f5f5;
  border-radius: var(--v-radius-sm);
  padding: 14px 16px;
  overflow-x: auto;
  font-family: "Courier New", monospace;
  font-size: 13px;
  line-height: 1.5;
  direction: ltr;
  margin: 0 0 12px;
  border: 1px solid #2d2d2d;
}
.vibe-forms .embed-code-block code {
  background: none;
  color: inherit;
  padding: 0;
  white-space: pre;
}

.ef-hidden-fields-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ef-hidden-row {
  display: grid;
  grid-template-columns: 180px 1fr 170px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--v-surface);
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-sm);
}

.ef-hidden-key {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Terminal-style key badge — intentionally dark in every theme */
.ef-hidden-key-badge {
  font-size: 12px;
  background: #1e1e2e;
  color: #a6e3a1;
  padding: 10px;
  border-radius: 4px;
  display: inline-block;
  font-family: monospace;
}

.ef-hidden-key-label {
  font-size: 11px;
  color: var(--v-text-faint);
}

.ef-hidden-input {
  font-size: 13px;
  direction: ltr;
}

.ef-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.ef-badge--set {
  background: var(--v-positive-bg);
  color: var(--v-positive-text);
}

.ef-badge--fallback {
  background: var(--v-warning-bg);
  color: var(--v-warning-text);
}

.ef-badge--empty {
  background: var(--v-bg-muted);
  color: var(--v-text-faint);
}

/* ── Wizard ──────────────────────────────── */
.ef-form-wizard {
  width: 100%;
}

.ef-form-errors {
  background: var(--v-negative-bg);
  border: 1px solid var(--color-red-300);
  color: var(--v-negative-text);
  padding: 14px 18px;
  border-radius: var(--v-radius-md);
  margin-bottom: 24px;
  font-size: 14px;
}

.ef-form-errors ul {
  margin: 8px 0 0 0;
  padding-right: 18px;
}

.ef-form-errors li {
  margin-bottom: 4px;
}

/* ── Wizard step ──────────────────────────── */
.ef-wizard-step {
  background: var(--v-bg);
  border-radius: 10px;
  box-shadow: 0 1px 4px var(--color-black-b0);
  margin-bottom: 20px;
  overflow: hidden;
}

.ef-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--v-bg-muted);
  border-bottom: 1px solid var(--v-border);
}

.ef-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-indigo-600);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.ef-step-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--v-text);
  margin: 0;
}

.ef-step-hint {
  font-size: 12px;
  color: var(--v-text-faint);
  margin-right: auto;
}

.ef-step-body {
  padding: 20px;
}

/* ── Fields ──────────────────────────────── */
.ef-field {
  margin-bottom: 18px;
}

.ef-field label,
.ef-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--v-text-secondary);
  margin-bottom: 6px;
}

.ef-required {
  color: var(--v-negative);
  margin-right: 2px;
}

.ef-input,
.ef-select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--color-gray-a5);
  border-radius: var(--v-radius-sm);
  font-size: 14px;
  color: var(--v-text-secondary);
  transition: border-color 0.15s;
  background: var(--v-bg);
  box-sizing: border-box;
}

.ef-input:focus,
.ef-select:focus {
  outline: none;
  border-color: var(--color-indigo-600);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-indigo-600) 10%, transparent);
}

/* ── css editor — intentionally dark in every theme ── */
.css-editor textarea:hover,
.css-editor textarea:focus {
  background: #2d2d2d !important;
  color: #f8f8f2 !important;
  border: none !important;
}

.ef-code-input::placeholder {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: #9aa0a6;
  opacity: 1;
  letter-spacing: 0.2px;
  border: none !important;
}

.ef-code-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--v-radius-sm);
  font-size: 14px;
  font-family: "Courier New", monospace;
  background: #1e1e1e;
  color: #f8f8f2;
  direction: ltr;
  box-sizing: border-box;
  resize: vertical;
  border: none !important;
}

.ef-field-hint {
  display: block;
  font-size: 12px;
  color: var(--v-text-faint);
  margin-top: 5px;
}

.ef-field--half {
  max-width: 460px;
}

.ef-field--indent {
  padding-right: 20px;
}

.ef-fields-divider {
  border: none;
  border-top: 1px solid var(--v-border-muted);
  margin: 20px 0;
}

/* ── Field rows (show/require toggles) ────── */
.ef-field-row {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-sm);
  margin-bottom: 8px;
  background: var(--v-surface);
}

.ef-field-row--locked {
  opacity: 0.7;
}

.ef-field-row-label {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--v-text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ef-field-row-options {
  display: flex;
  gap: 20px;
  align-items: center;
}

.ef-locked-badge {
  background: var(--color-indigo-100);
  color: var(--color-indigo-700);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
}

.ef-locked-text {
  font-size: 12px;
  color: var(--v-text-faint);
}

/* ── Checkboxes ───────────────────────────── */
.ef-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--color-indigo-600);
  flex-shrink: 0;
}

.ef-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--v-text-secondary);
  cursor: pointer;
}

.ef-checkbox-label--large {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-sm);
  background: var(--v-surface);
  cursor: pointer;
  transition: border-color 0.15s;
}

.ef-checkbox-label--large:hover {
  border-color: var(--color-indigo-600);
}

.ef-checkbox-title {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--v-text-secondary);
}

.ef-checkbox-desc {
  display: block;
  font-size: 12px;
  color: var(--v-text-faint);
  margin-top: 2px;
}

/* ── Designs grid ─────────────────────────── */
.ef-designs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.ef-design-card {
  display: block;
  position: relative;
  border: 2px solid var(--v-border);
  border-radius: var(--v-radius-md);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--v-bg);
}

.ef-design-card:hover {
  border-color: var(--color-indigo-300);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--color-indigo-600) 10%, transparent);
}

.ef-design-card:has(.ef-design-radio:checked) {
  border-color: var(--color-indigo-600);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-indigo-600) 15%, transparent);
}

.ef-design-radio {
  display: none;
}

.ef-design-check {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-indigo-600);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  z-index: 1;
}

.ef-design-card:has(.ef-design-radio:checked) .ef-design-check {
  display: flex;
}

.ef-design-preview-wrap {
  height: 200px;
  overflow: hidden;
  background: var(--v-bg-muted);
  position: relative;
}

.ef-design-preview-wrap iframe {
  width: 200%;
  height: 400px;
  border: none;
  transform: scale(0.5);
  transform-origin: top right;
  pointer-events: none;
}

.ef-design-footer {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--v-border-muted);
}

.ef-design-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--v-text-secondary);
}

.ef-premium-badge {
  background: var(--v-warning-bg);
  color: var(--v-warning-text);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
}

/* ── Custom fields list ───────────────────── */
.ef-custom-fields-list {
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-md);
  overflow: hidden;
  margin-bottom: 10px;
}

.ef-cf-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--v-border-muted);
  background: var(--v-bg);
  transition: background 0.1s;
}

.ef-cf-row:last-child {
  border-bottom: none;
}

.ef-cf-row:hover {
  background: var(--v-surface);
}

.ef-cf-row--dragging {
  background: var(--color-violet-100);
  box-shadow: 0 4px 12px var(--color-black-base);
  opacity: 0.9;
}

.ef-cf-drag-handle {
  color: var(--color-gray-a5);
  cursor: grab;
  font-size: 14px;
  padding: 2px 4px;
  transition: color 0.15s;
}

.ef-cf-drag-handle:hover {
  color: var(--v-text-faint);
}

.ef-cf-drag-handle:active {
  cursor: grabbing;
}

.ef-cf-checkbox-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.ef-cf-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--v-text-secondary);
}

.ef-cf-type-badge {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--v-bg-muted);
  color: var(--v-text-muted);
}

.ef-cf-required-wrap {
  flex-shrink: 0;
}

.ef-cf-hint {
  font-size: 12px;
  color: var(--v-text-faint);
  margin-top: 8px;
}

.ef-cf-hint a {
  color: var(--color-indigo-600);
}

.ef-cf-empty {
  padding: 20px;
  text-align: center;
  color: var(--v-text-muted);
  font-size: 14px;
}

/* ── Contact lists ────────────────────────── */
.ef-lists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.ef-list-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-sm);
  cursor: pointer;
  font-size: 13px;
  background: var(--v-surface);
  transition: border-color 0.15s;
}

.ef-list-option:hover {
  border-color: var(--color-indigo-600);
}

.ef-list-option:has(input:checked) {
  border-color: var(--color-indigo-600);
  background: var(--color-violet-100);
}

.ef-list-name {
  flex: 1;
  font-weight: 500;
  color: var(--v-text-secondary);
}

.ef-list-count {
  font-size: 11px;
  color: var(--v-text-faint);
  background: var(--v-border);
  padding: 1px 6px;
  border-radius: 10px;
}

.ef-empty-text {
  color: var(--v-text-faint);
  font-size: 14px;
}

/* ── Form actions ─────────────────────────── */
.ef-form-actions {
  display: flex;
  gap: 12px;
  padding: 20px 0 10px;
  align-items: center;
}

.btn-lg {
  padding: 11px 24px;
  font-size: 15px;
}

/* ── Page layout ─────────────────────────── */
.efs-page {
  margin-top: 30px;
}

/* ── Header ──────────────────────────────── */
.efs-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 20px;
}

.efs-header-title h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--v-text);
  margin: 0 0 8px;
}

.efs-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.efs-header-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ── Status badges ───────────────────────── */
.efs-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.efs-status-badge--active {
  background: var(--v-positive-bg);
  color: var(--v-positive-text);
}

.efs-status-badge--inactive {
  background: var(--v-bg-muted);
  color: var(--v-text-muted);
}

.efs-design-badge {
  background: var(--color-violet-100);
  color: var(--color-violet-800);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.efs-launch-badge {
  background: var(--v-warning-bg);
  color: var(--v-warning-text);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ── Notice ──────────────────────────────── */
.efs-notice {
  background: var(--v-positive-bg);
  color: var(--v-positive-text);
  border: 1px solid var(--color-green-200);
  padding: 12px 16px;
  border-radius: var(--v-radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
}

/* ── Stats ───────────────────────────────── */
.efs-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.efs-stat-card {
  background: var(--v-bg);
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 1px 4px var(--color-black-b0);
  display: flex;
  align-items: center;
  gap: 14px;
}

.efs-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.efs-stat-icon--purple {
  background: var(--color-violet-100);
  color: var(--color-violet-600);
}

.efs-stat-icon--green {
  background: var(--v-positive-bg);
  color: var(--color-green-600);
}

.efs-stat-icon--blue {
  background: var(--color-blue-100);
  color: var(--v-primary);
}

.efs-stat-icon--orange {
  background: var(--v-warning-bg);
  color: var(--color-amber-600);
}

.efs-stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--v-text);
  line-height: 1;
}

.efs-stat-label {
  font-size: 12px;
  color: var(--v-text-muted);
  margin-top: 4px;
}

/* ── Main grid ───────────────────────────── */
.efs-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .efs-main-grid {
    grid-template-columns: 1fr;
  }
}
/* ── Cards ───────────────────────────────── */
.efs-card {
  background: var(--v-bg);
  border-radius: 10px;
  overflow: hidden;
}

.efs-card--full {
  margin-bottom: 20px;
}

.efs-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--v-bg-muted);
  border-bottom: 1px solid var(--v-border);
}

.efs-card-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--v-text);
  margin: 0;
}

.efs-card-hint {
  font-size: 12px;
  color: var(--v-text-faint);
}

.efs-card-body {
  padding: 20px;
}

.efs-card-body--no-pad {
  padding: 0;
}

/* ── Embed code — intentionally dark in every theme ── */
.efs-code-block {
  background: #1e1e1e;
  color: #f8f8f2;
  border-radius: var(--v-radius-sm);
  padding: 14px 16px;
  font-family: "Courier New", monospace;
  font-size: 13px;
  line-height: 1.5;
  overflow-x: auto;
  margin: 0 0 12px;
  border: 1px solid #2d2d2d;
  white-space: pre;
}

.efs-code-block code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.efs-copy-btn {
  margin-bottom: 12px;
}

.efs-embed-uuid {
  font-size: 12px;
  color: var(--v-text-faint);
  margin: 0;
}

.efs-embed-uuid code {
  background: var(--v-bg-muted);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--v-text-secondary);
}

/* ── Elementor connection card ───────────── */
.efs-elementor-steps {
  margin-block: 16px 0;
  padding-inline-start: 20px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--v-text-secondary);
}

.efs-elementor-lead {
  margin: 0;
  font-size: 13px;
  color: var(--v-text-secondary);
}

.efs-elementor-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 12px 4px;
}

.efs-elementor-webhook {
  margin-block-start: 20px;
  padding-block-start: 16px;
  border-block-start: 1px solid var(--v-border);
}

.efs-elementor-webhook summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--v-text-secondary);
  margin-block-end: 12px;
}

.efs-elementor-steps code {
  background: var(--v-bg-muted);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* ── Details list ────────────────────────── */
.efs-details-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  margin: 0;
  font-size: 14px;
  align-items: start;
}

.efs-details-list dt {
  font-weight: 600;
  color: var(--v-text-muted);
  white-space: nowrap;
}

.efs-details-list dd {
  color: var(--v-text-secondary);
  margin: 0;
  word-break: break-word;
}

/* ── Tags ────────────────────────────────── */
.efs-fields-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.efs-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 12px;
  background: var(--v-bg-muted);
  color: var(--v-text-secondary);
}

.efs-tag--required {
  background: var(--color-blue-100);
  color: var(--color-blue-700);
}

.efs-tag--custom {
  background: var(--color-violet-100);
  color: var(--color-violet-800);
}

.efs-tag--list {
  background: var(--v-positive-bg);
  color: var(--v-positive-text);
}

.efs-tag--active {
  background: var(--v-positive-bg);
  color: var(--v-positive-text);
}

.efs-url {
  font-size: 12px;
  color: var(--color-indigo-600);
  word-break: break-all;
  direction: ltr;
  display: inline-block;
}

/* ── Submissions table ───────────────────── */
.efs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.efs-table thead tr {
  background: var(--v-surface);
  border-bottom: 2px solid var(--v-border);
}

.efs-table th {
  padding: 11px 16px;
  text-align: right;
  font-weight: 600;
  color: var(--v-text-secondary);
  white-space: nowrap;
}

.efs-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--v-border-muted);
  color: var(--v-text-secondary);
}

.efs-table tbody tr:last-child td {
  border-bottom: none;
}

.efs-table tbody tr:hover {
  background: var(--v-surface);
}

/* ── Submission status ───────────────────── */
.efs-sub-status {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.efs-sub-status--pending {
  background: var(--color-yellow-100);
  color: var(--color-yellow-900);
}

.efs-sub-status--confirmed {
  background: var(--v-positive-bg);
  color: var(--v-positive-text);
}

.efs-sub-status--processed {
  background: var(--v-info-bg);
  color: var(--v-info-text);
}

.efs-sub-status--failed {
  background: var(--v-negative-bg);
  color: var(--v-negative-text);
}

/* ── Empty submissions ───────────────────── */
.efs-empty-submissions {
  padding: 40px;
  text-align: center;
  color: var(--v-text-faint);
}

.efs-empty-submissions i {
  font-size: 32px;
  margin-bottom: 10px;
  display: block;
}

.efs-empty-submissions p {
  font-size: 14px;
  margin: 0;
}

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--v-radius-sm);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-indigo-600);
  color: var(--color-white);
  border-color: var(--color-indigo-600);
}

.btn-primary:hover {
  background: var(--color-indigo-700);
  color: var(--color-white);
}

.btn-secondary {
  background: var(--v-surface);
  color: var(--v-text-secondary);
  border-color: var(--color-gray-a5);
}

.btn-secondary:hover {
  background: var(--color-gray-a7);
  color: var(--v-text-secondary);
}

.we-block {
  max-width: 600px;
  margin: 0 auto;
}

.we-field {
  max-width: 600px;
  margin: 0 auto 18px;
}

.we-field > label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.we-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-gray-a5);
  border-radius: var(--v-radius-md);
  font-size: 14px;
  box-sizing: border-box;
}

.we-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 600px;
  margin: 0 auto 18px;
  font-weight: 600;
  cursor: pointer;
}

.we-toggle input {
  width: 18px;
  height: 18px;
}

.we-notice {
  max-width: 600px;
  margin: 24px auto;
  padding: 18px 20px;
  background: var(--v-note-bg);
  border: 1px solid var(--v-note-border);
  border-radius: 10px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.we-notice i {
  color: var(--v-note-text);
  font-size: 20px;
  margin-top: 2px;
}

.we-notice p {
  margin: 0 0 12px;
  line-height: 1.6;
}

.we-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.we-field-header > label {
  margin: 0;
  font-weight: 600;
}

.we-personalization {
  position: relative;
}

.we-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--color-gray-a5);
  border-radius: 16px;
  background: var(--v-surface);
  font-size: 13px;
  color: var(--v-text-secondary);
  cursor: pointer;
}

.we-tool-btn:hover {
  background: var(--color-indigo-50);
  border-color: var(--color-indigo-300);
}

/* Dropdown */
.we-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  inset-inline-end: 0;
  min-width: 170px;
  background: var(--v-bg);
  border: 1px solid var(--v-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 6px;
  display: none;
  z-index: 30;
}

.we-dropdown.is-open {
  display: block;
}

.we-dropdown button {
  display: block;
  width: 100%;
  text-align: start;
  padding: 8px 12px;
  border-radius: var(--v-radius-sm);
  font-size: 14px;
  color: var(--v-text-secondary);
  background: none;
  border: none;
  cursor: pointer;
}

.we-dropdown button:hover {
  background: var(--v-bg-muted);
}

.custom-fields {
  /* ── Layout ──────────────────────────────── */
  /* ── Header ──────────────────────────────── */
  /* ── Card ────────────────────────────────── */
  /* ── Table ───────────────────────────────── */
  /* ── Drag handle ─────────────────────────── */
  /* SortableJS - row being dragged */
  /* Flash green border on successful save */
  /* ── Field name ──────────────────────────── */
  /* ── Key badge ───────────────────────────── */
  /* ── Type badge ──────────────────────────── */
  /* ── Label text ──────────────────────────── */
  /* ── Required dot ────────────────────────── */
  /* ── Usage badge ─────────────────────────── */
  /* ── Row actions ──────────────────────────── */
  /* ── Empty state ──────────────────────────── */
  /* ── Form container ───────────────────────── */
  /* ── Errors ──────────────────────────────── */
  /* ── Section ──────────────────────────────── */
  /* ── Field group ──────────────────────────── */
  /* ── Hint text ───────────────────────────── */
  /* ── Key display (edit mode) ─────────────── */
  /* ── Key preview (new mode) ──────────────── */
  /* ── Type grid ───────────────────────────── */
  /* ── Checkbox label ──────────────────────── */
  /* ── Actions ──────────────────────────────── */
}
.custom-fields .cf-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 20px;
}
.custom-fields .cf-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--v-text);
  margin: 0 0 6px;
}
.custom-fields .cf-header-hint {
  font-size: 13px;
  color: var(--v-text-muted);
  margin: 0;
}
.custom-fields .cf-header-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.custom-fields .cf-card {
  background: var(--v-bg);
  border-radius: 10px;
  box-shadow: 0 1px 4px var(--color-black-b0);
  overflow: hidden;
}
.custom-fields .cf-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--v-surface);
  border-bottom: 1px solid var(--v-border);
  font-size: 13px;
  color: var(--v-text-muted);
}
.custom-fields .cf-count {
  font-weight: 600;
  color: var(--v-text-secondary);
}
.custom-fields .cf-hint {
  display: flex;
  align-items: center;
  gap: 5px;
}
.custom-fields .cf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.custom-fields .cf-table thead tr {
  background: var(--v-surface);
  border-bottom: 2px solid var(--v-border);
}
.custom-fields .cf-table th {
  padding: 20px 14px;
  text-align: right;
  font-weight: 600;
  color: var(--v-text-secondary);
  white-space: nowrap;
}
.custom-fields .cf-table td {
  padding: 20px 14px;
  border-bottom: 1px solid var(--v-border-muted);
  color: var(--v-text-secondary);
  vertical-align: middle;
}
.custom-fields .cf-table tbody tr:last-child td {
  border-bottom: none;
}
.custom-fields .cf-table tbody tr:hover {
  background: var(--v-surface);
}
.custom-fields .cf-center {
  text-align: center;
}
.custom-fields .cf-sort-cell {
  width: 36px;
  padding: 0 8px !important;
}
.custom-fields .cf-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--v-text-faint);
  cursor: grab;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.custom-fields .cf-drag-handle:hover {
  color: var(--v-text-muted);
  background: var(--v-bg-muted);
}
.custom-fields .cf-drag-handle:active {
  cursor: grabbing;
}
.custom-fields .sortable-ghost {
  opacity: 0.4;
  background: var(--color-indigo-50) !important;
}
.custom-fields .sortable-chosen {
  background: var(--color-violet-50) !important;
}
.custom-fields .sortable-updated tr {
  transition: background 0.4s;
}
.custom-fields .cf-field-name {
  font-weight: 500;
  color: var(--v-text);
}
.custom-fields .cf-key-badge {
  background: var(--v-bg-muted);
  color: var(--v-text-secondary);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 12px;
  font-family: "Courier New", monospace;
  direction: ltr;
  display: inline-block;
}
.custom-fields .cf-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  background: var(--v-bg-muted);
  color: var(--v-text-secondary);
}
.custom-fields .cf-type-badge--text {
  background: var(--color-blue-100);
  color: var(--color-blue-700);
}
.custom-fields .cf-type-badge--email {
  background: var(--v-positive-bg);
  color: var(--v-positive-text);
}
.custom-fields .cf-type-badge--tel {
  background: var(--color-violet-100);
  color: var(--color-violet-800);
}
.custom-fields .cf-type-badge--select {
  background: var(--v-warning-bg);
  color: var(--v-warning-text);
}
.custom-fields .cf-type-badge--checkbox {
  background: var(--color-pink-100);
  color: var(--color-pink-800);
}
.custom-fields .cf-type-badge--date {
  background: var(--color-sky-100);
  color: var(--color-sky-700);
}
.custom-fields .cf-type-badge--number {
  background: var(--color-green-100);
  color: var(--color-green-800);
}
.custom-fields .cf-type-badge--textarea {
  background: var(--color-green-50);
  color: var(--color-green-700);
}
.custom-fields .cf-type-badge--hidden {
  background: var(--v-bg-muted);
  color: var(--v-text-faint);
}
.custom-fields .cf-label-text {
  color: var(--v-text-muted);
  font-size: 13px;
}
.custom-fields .cf-required-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}
.custom-fields .cf-required-dot--yes {
  background: var(--v-positive-bg);
  color: var(--color-green-600);
}
.custom-fields .cf-required-dot--no {
  background: var(--v-bg-muted);
  color: var(--v-text-faint);
}
.custom-fields .cf-usage-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: var(--v-radius-lg);
  font-size: 12px;
  font-weight: 600;
}
.custom-fields .cf-usage-badge--used {
  background: var(--color-blue-100);
  color: var(--color-blue-700);
}
.custom-fields .cf-usage-badge--unused {
  background: var(--v-bg-muted);
  color: var(--v-text-faint);
}
.custom-fields .cf-row-actions {
  display: flex;
  gap: 6px;
}
.custom-fields .cf-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--v-radius-sm);
  border: 1px solid var(--v-border);
  background: var(--v-bg);
  color: var(--v-text-muted);
  text-decoration: none;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.custom-fields .cf-action-btn:hover {
  background: var(--v-bg-muted);
  color: var(--v-text-secondary);
  border-color: var(--color-gray-a5);
}
.custom-fields .cf-action-btn--danger:hover {
  background: var(--v-negative-bg);
  color: var(--color-red-600);
  border-color: var(--color-red-300);
}
.custom-fields .cf-action-btn--locked {
  opacity: 0.4;
  cursor: not-allowed;
}
.custom-fields .cf-empty {
  background: var(--v-bg);
  border-radius: 10px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 1px 4px var(--color-black-b0);
}
.custom-fields .cf-empty-icon {
  font-size: 48px;
  color: var(--color-gray-a5);
  margin-bottom: 20px;
}
.custom-fields .cf-empty h3 {
  font-size: 20px;
  color: var(--v-text-secondary);
  margin-bottom: 8px;
}
.custom-fields .cf-empty p {
  color: var(--v-text-muted);
  margin-bottom: 8px;
  font-size: 14px;
}
.custom-fields .cf-empty .btn {
  margin-top: 16px;
}
.custom-fields .cf-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 20px;
}
.custom-fields .cf-page-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--v-text);
  margin: 0 0 6px;
}
.custom-fields .cf-breadcrumb {
  font-size: 13px;
  color: var(--v-text-muted);
  margin: 0;
}
.custom-fields .cf-breadcrumb a {
  color: var(--color-indigo-600);
  text-decoration: none;
}
.custom-fields .cf-breadcrumb a:hover {
  text-decoration: underline;
}
.custom-fields .cf-usage-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--v-info-bg);
  color: var(--v-info-text);
  border-radius: var(--v-radius-md);
  font-size: 13px;
  flex-shrink: 0;
  align-self: flex-start;
}
.custom-fields .cf-notice {
  background: var(--v-positive-bg);
  color: var(--v-positive-text);
  border: 1px solid var(--color-green-200);
  padding: 12px 16px;
  border-radius: var(--v-radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
}
.custom-fields .cf-alert {
  background: var(--v-negative-bg);
  color: var(--v-negative-text);
  border: 1px solid var(--color-red-300);
  padding: 12px 16px;
  border-radius: var(--v-radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
}
.custom-fields .cf-form {
  background: var(--v-bg);
  border-radius: 10px;
  box-shadow: 0 1px 4px var(--color-black-b0);
  overflow: hidden;
  width: 100%;
}
.custom-fields .cf-form-errors {
  background: var(--v-negative-bg);
  border-bottom: 1px solid var(--color-red-300);
  padding: 14px 24px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--v-negative-text);
  font-size: 14px;
}
.custom-fields .cf-form-errors ul {
  margin: 0;
  padding: 0 16px;
}
.custom-fields .cf-form-errors li {
  margin-bottom: 4px;
}
.custom-fields .cf-section {
  padding: 1rem;
  border-bottom: 1px solid var(--v-border-muted);
  margin-bottom: 0;
}
.custom-fields .cf-section:last-of-type {
  border-bottom: none;
}
.custom-fields .cf-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--v-text);
  margin-bottom: 20px;
}
.custom-fields .cf-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--color-indigo-600);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.custom-fields .cf-field-group {
  margin-bottom: 20px;
}
.custom-fields .cf-field-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--v-text-secondary);
  margin-bottom: 6px;
}
.custom-fields .cf-hint-text {
  font-size: 12px;
  color: var(--v-text-faint);
  margin: 5px 0 0;
}
.custom-fields .cf-required-mark {
  color: var(--color-red-600);
  margin-right: 2px;
}
.custom-fields .cf-key-display {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: var(--v-surface);
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-card);
}
.custom-fields .cf-key-display code {
  font-family: "Courier New", monospace;
  font-size: 13px;
  color: var(--v-text-secondary);
}
.custom-fields .cf-key-note {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--v-text-faint);
  margin-right: auto;
}
.custom-fields .cf-key-preview {
  padding: 9px 12px;
  background: var(--v-surface);
  border: 1px dashed var(--color-gray-a5);
  border-radius: var(--v-radius-sm);
  font-size: 13px;
  color: var(--v-text-faint);
  font-style: italic;
}
.custom-fields .cf-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.custom-fields .cf-type-option {
  cursor: pointer;
}
.custom-fields .cf-type-radio {
  display: none;
}
.custom-fields .cf-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 14px 10px;
  border: 2px solid var(--v-border);
  border-radius: var(--v-radius-md);
  font-size: 12px;
  font-weight: 500;
  color: var(--v-text-muted);
  background: var(--v-bg);
  transition: all 0.15s;
  text-align: center;
}
.custom-fields .cf-type-card i {
  font-size: 18px;
}
.custom-fields .cf-type-card:hover {
  border-color: var(--color-indigo-300);
  color: var(--color-indigo-600);
  background: var(--color-violet-50);
}
.custom-fields .cf-type-radio:checked + .cf-type-card {
  border-color: var(--color-indigo-600);
  background: var(--color-violet-50);
  color: var(--color-indigo-600);
}
.custom-fields .cf-checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-weight: normal !important;
  margin-bottom: 0 !important;
}
.custom-fields .cf-checkbox {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--color-indigo-600);
}
.custom-fields .cf-checkbox-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.custom-fields .cf-checkbox-text span:first-child {
  font-size: 14px;
  font-weight: 500;
  color: var(--v-text-secondary);
}
.custom-fields .cf-checkbox-hint {
  font-size: 12px;
  color: var(--v-text-faint);
}
.custom-fields .cf-form-actions {
  display: flex;
  gap: 10px;
  padding: 24px 28px;
  background: var(--v-surface);
  border-top: 1px solid var(--v-border);
}

/* =============== */
/* Formation cards */
/* =============== */
/* Grid of cards */
.formation-accounts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  align-items: stretch;
  /* Single card */
  /* Account header info */
  /* ===================== */
  /* Stats: simple list UI */
  /* ===================== */
  /* Each stat line */
  /* The label span (the "text" part) */
  /* Keep any extra small-note span (like the export note) as a full line under */
  /* Links inside stats */
}
.formation-accounts .administrator {
  background: var(--v-surface);
  border: 1px solid color-mix(in srgb, var(--v-text) 10%, transparent);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 240px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.formation-accounts .administrator:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.1);
  border-color: color-mix(in srgb, var(--v-text) 16%, transparent);
}
.formation-accounts .account_info {
  background: color-mix(in srgb, var(--v-warning) 10%, var(--v-bg));
  padding: 10px;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--v-warning) 35%, var(--v-bg));
  margin-bottom: 20px;
}
.formation-accounts .account_info {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  min-height: 350px;
}
.formation-accounts .account_info p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--v-text) 3%, transparent);
  border: 1px solid color-mix(in srgb, var(--v-text) 6%, transparent);
}
.formation-accounts .account_info p span {
  display: inline-block;
  font-size: 12px;
  color: color-mix(in srgb, var(--v-text) 65%, transparent);
  margin-bottom: 4px;
}
.formation-accounts .account_info p strong {
  display: inline-block;
  font-size: 15px;
  color: color-mix(in srgb, var(--v-text) 92%, transparent);
  letter-spacing: 0.1px;
  word-break: break-word;
}
.formation-accounts .administrator turbo-frame {
  display: block; /* no grid */
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--v-text) 8%, transparent);
  flex: 1 1 auto;
}
.formation-accounts .administrator turbo-frame p {
  margin: 0;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--v-text) 12%, transparent);
  background: transparent;
  border-radius: 0;
  display: flex;
  flex-direction: row-reverse;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  color: color-mix(in srgb, var(--v-text) 92%, transparent);
  line-height: 1.3;
}
.formation-accounts .administrator turbo-frame p:last-child {
  border-bottom: 0;
}
.formation-accounts .administrator turbo-frame p > span:not([data-controller]) {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: color-mix(in srgb, var(--v-text) 65%, transparent);
  line-height: 1.2;
  text-align: end;
}
.formation-accounts .administrator turbo-frame p span[style*="font-size:12px"] {
  display: block;
  width: 100%;
  margin-top: 6px;
  font-size: 12px !important;
  font-weight: 500;
  color: color-mix(in srgb, var(--v-text) 55%, transparent);
}
.formation-accounts .administrator turbo-frame a {
  color: color-mix(in srgb, var(--v-text) 88%, transparent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.formation-accounts .administrator turbo-frame a:hover {
  color: var(--v-text);
}

.integrations {
  /* AI Tier Cards */
}
.integrations .ai-tier-card {
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-md);
  padding: 16px;
  margin-bottom: 12px;
  background: var(--v-surface);
}
.integrations .ai-tier-card.active {
  border-color: var(--color-indigo-500);
  background: var(--v-bg);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-indigo-500) 10%, transparent);
}
.integrations .ai-tier-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.integrations .ai-tier-icon {
  font-size: 1.5rem;
}
.integrations .ai-tier-badge {
  margin-right: auto;
  background: var(--color-indigo-500);
  color: var(--color-white);
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 999px;
}
.integrations .ai-wallet-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 1rem;
}
.integrations .ai-usage-status {
  background: var(--v-surface);
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.integrations .ai-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.integrations .ai-status-header h6 {
  margin: 0;
  color: var(--v-text-secondary);
  font-weight: 600;
}
.integrations .ai-status-badge {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--v-radius-md);
  font-size: 0.875rem;
  font-weight: 600;
}
.integrations .ai-status-free {
  background: linear-gradient(135deg, color-mix(in srgb, var(--v-info) 12%, var(--v-bg)) 0%, color-mix(in srgb, var(--v-info) 24%, var(--v-bg)) 100%);
  color: var(--v-info-text);
  border: 1px solid var(--v-info);
}
.integrations .ai-status-premium {
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-indigo-500) 12%, var(--v-bg)) 0%, color-mix(in srgb, var(--color-indigo-500) 24%, var(--v-bg)) 100%);
  color: var(--color-indigo-700);
  border: 1px solid var(--color-indigo-500);
}
.integrations .ai-status-wallet {
  background: linear-gradient(135deg, color-mix(in srgb, var(--v-positive) 12%, var(--v-bg)) 0%, color-mix(in srgb, var(--v-positive) 24%, var(--v-bg)) 100%);
  color: var(--v-positive-text);
  border: 1px solid var(--v-positive);
}
.integrations .ai-status-warning {
  background: linear-gradient(135deg, color-mix(in srgb, var(--v-warning) 12%, var(--v-bg)) 0%, color-mix(in srgb, var(--v-warning) 24%, var(--v-bg)) 100%);
  color: var(--v-warning-text);
  border: 1px solid var(--v-warning);
}
.integrations .ai-tier-alert {
  background: var(--v-warning-bg);
  border: 1px solid var(--v-warning);
  border-radius: var(--v-radius-sm);
  padding: 0.5rem 0.75rem;
  color: var(--v-warning-text);
}
.integrations .usage-meter {
  background-color: var(--v-bg-muted);
  border-radius: 0.5rem;
  height: 0.5rem;
  overflow: hidden;
}
.integrations .usage-meter-fill {
  background: linear-gradient(90deg, #28a745 0%, #20c997 100%); /* theme-note: decorative gradient, intentional */
  height: 100%;
  transition: width 0.3s ease;
  border-radius: 0.5rem;
}
.integrations .usage-meter-fill.warning {
  background: linear-gradient(90deg, #ffc107 0%, #fd7e14 100%); /* theme-note: decorative gradient, intentional */
}
.integrations .usage-meter-fill.danger {
  background: linear-gradient(90deg, #dc3545 0%, #e83e8c 100%); /* theme-note: decorative gradient, intentional */
}

/* ── Formation Accounts Fieldset ── */
.cs_section {
  /* ── CS Content ── */
  /* ── CS Wrapper ── */
  /* ── CS Table ── */
}
.cs_section .formation_accounts {
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  background: var(--v-bg);
}
.cs_section .formation_accounts legend {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--v-text-muted);
}
.cs_section .formation_accounts legend i {
  color: var(--v-text-faint);
}
.cs_section .formation_accounts ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cs_section .formation_accounts li {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--v-bg-muted);
  border-radius: var(--v-radius-md);
  padding: 6px 12px;
  font-size: 0.875rem;
  color: var(--v-text);
}
.cs_section .formation_accounts li span:first-child {
  color: var(--v-text-faint);
  font-size: 0.8rem;
}
.cs_section #cs_content > h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--v-text);
}
.cs_section #cs_content > h3:last-of-type {
  margin-bottom: 2px;
}
.cs_section #cs_content > p {
  margin: 0 0 24px;
  font-size: 0.875rem;
  color: var(--v-text-faint);
}
.cs_section .cs_wrapper {
  margin-bottom: 16px;
}
.cs_section .cs_table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--v-radius-lg);
  overflow: hidden;
  border: 1px solid var(--v-border);
  font-size: 0.875rem;
}
.cs_section .cs_table th {
  background: var(--v-bg-muted);
  padding: 12px 16px;
  text-align: center;
  font-weight: 600;
  color: var(--v-text-secondary);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--v-border);
}
.cs_section .cs_table td {
  padding: 10px 16px;
  color: var(--v-text);
  border-bottom: 1px solid var(--v-border-muted);
  vertical-align: middle;
}
.cs_section .cs_table td:first-child {
  color: var(--v-text-faint);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.cs_section .cs_table td:last-child {
  text-align: center;
}
.cs_section .cs_table tr:last-child td {
  border-bottom: none;
}
.cs_section .cs_table tr:hover td {
  background: var(--v-surface);
}
.cs_section .cs_table a {
  font-size: 0.8rem;
  color: var(--v-primary);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--v-radius-sm);
  border: 1px solid var(--color-blue-200);
  transition: background 0.15s ease;
}
.cs_section .cs_table a:hover {
  background: var(--color-blue-50);
}
.cs_section .cs_table span {
  font-size: 0.8rem;
  color: var(--color-gray-a4);
}

/* category section */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  border: 1px solid var(--v-border);
  padding: 12px;
  background: var(--v-surface);
  border-radius: var(--v-radius-md);
  margin-bottom: 30px;
}

.category-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--v-bg);
  padding: 5px 8px;
  border-radius: var(--v-radius-sm);
  transition: box-shadow 0.2s;
}

.category-checkbox:has(input:checked) {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--v-positive) 40%, transparent);
}

/* supplement section */
/* Wrapper grid */
/* Optional helper text */
.supplements-note {
  margin: 0 0 10px;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--v-text);
}

.supplements-note--muted {
  color: var(--v-text-muted);
}

/* Grid wrapper */
.supplements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 6px 0 0;
  box-sizing: border-box;
}

/* Card */
.supplement-card {
  position: relative;
  background: var(--v-bg);
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0; /* critical for wrapping inside grid */
  box-sizing: border-box;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.supplement-card:hover {
  border-color: var(--color-gray-a5);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

/* Selected card state (modern browsers) */
.supplement-card:has(input[type=checkbox]:checked) {
  background: var(--v-surface);
  border-color: var(--color-gray-a3);
  box-shadow: 0 0 0 1px rgba(100, 116, 139, 0.2) inset;
}

/* Checkbox + label row (RTL friendly) */
.checkbox-row {
  display: flex;
  align-items: flex-start; /* better when label wraps */
  gap: 10px;
  min-width: 0;
  line-height: 1.35;
}

/* Keep checkbox stable */
.checkbox-row input[type=checkbox] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0 0;
  accent-color: var(--v-text-secondary); /* optional modern checkbox color */
  cursor: pointer;
}

/* Label */
.supplement-label {
  display: block;
  min-width: 0;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--v-text);
  cursor: pointer;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Slight highlight for selected label */
.supplement-card:has(input[type=checkbox]:checked) .supplement-label {
  color: var(--v-text);
}

/* Status container */
.workshop-status {
  margin-top: 2px;
  font-size: 0.93rem;
  color: var(--v-text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

/* Prevent inner badges/text from forcing overflow */
.workshop-status > * {
  min-width: 0;
  max-width: 100%;
}

/* If your workshop_status partial outputs badges/spans, this helps wrapping */
.workshop-status .badge,
.workshop-status span,
.workshop-status div,
.workshop-status p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Workshop status badges */
.workshop-status {
  margin-top: 2px;
  font-size: 0.93rem;
  color: var(--v-text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.ws-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  line-height: 1.2;
  font-weight: 600;
  white-space: normal; /* allows wrap if needed */
  overflow-wrap: anywhere;
  word-break: break-word;
  box-sizing: border-box;
}

/* Free / Paid */
.ws-badge--free {
  background: var(--v-positive-bg);
  border-color: var(--color-green-200);
  color: var(--v-positive-text);
}

.ws-badge--paid {
  background: var(--color-orange-50);
  border-color: var(--color-orange-200);
  color: var(--color-orange-800);
}

/* Active / Inactive */
.ws-badge--active {
  background: var(--color-blue-50);
  border-color: var(--color-blue-200);
  color: var(--color-blue-700);
}

.ws-badge--inactive {
  background: var(--v-bg-muted);
  border-color: var(--color-gray-a5);
  color: var(--v-text-secondary);
}

/* Archived */
.ws-badge--archived {
  background: var(--color-violet-50);
  border-color: var(--color-violet-200);
  color: var(--color-violet-700);
}

/* Count */
.ws-badge--count {
  background: var(--v-surface);
  border-color: var(--v-border);
  color: var(--v-text);
  font-weight: 700;
}

/* Tiny screens */
@media (max-width: 480px) {
  .ws-badge {
    font-size: 0.78rem;
    min-height: 24px;
    padding: 4px 8px;
  }
}
/* Tiny screens */
@media (max-width: 480px) {
  .supplements-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .supplement-card {
    border-radius: var(--v-radius-lg);
    padding: 12px;
  }
  .supplement-label {
    font-size: 0.95rem;
  }
  .workshop-status {
    font-size: 0.88rem;
    gap: 5px;
  }
}
/* Tablets */
@media (min-width: 768px) {
  .supplements-grid {
    gap: 16px;
  }
  .supplement-card {
    padding: 15px 16px;
  }
}
/* Large desktops */
@media (min-width: 1400px) {
  .supplements-grid {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 18px;
  }
}
.section_link {
  background-color: var(--color-gray-a5);
  padding: 15px;
  border-radius: 5px;
  margin: 0 0 0.5rem 0;
  cursor: pointer;
}
.section_link a:link,
.section_link a:visited {
  color: var(--v-text);
  font-size: 16px;
  text-decoration: underline;
}

.form_section_wrapper {
  padding: 20px;
}

/* Clickable label container */
.supplement-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--v-text);
  cursor: pointer;
  line-height: 1.35;
}

/* Small ID pill */
.supplement-label-id {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--color-gray-a5);
  background: var(--v-surface);
  color: var(--v-text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

/* Workshop title text */
.supplement-label-title {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: inherit;
}

/* Selected card tweaks */
.supplement-card:has(input[type=checkbox]:checked) .supplement-label-id {
  border-color: var(--color-gray-a4);
  background: var(--v-bg-muted);
  color: var(--v-text-secondary);
}

/* Hover feedback */
.supplement-card:hover .supplement-label-id {
  border-color: var(--v-border);
}

/* Tiny screens */
@media (max-width: 480px) {
  .supplement-label {
    gap: 6px;
    font-size: 0.95rem;
  }
  .supplement-label-id {
    font-size: 0.74rem;
    padding: 1px 6px;
  }
}
#memberships_list tr.member-section {
  position: relative;
}
#memberships_list td.sent-date {
  min-width: 140px;
}
#memberships_list td.member-menu {
  min-width: 100px;
}

@media screen and (max-width: 1200px) {
  #memberships_list td.menu-margin {
    margin-top: 50px;
  }
}
/* Layout: info-state + magic-link-box side-by-side, stack on narrow widths */
.student-info {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

/* Left / right cards */
.student-info .info-state,
.student-info .magic-link-box {
  flex: 1 1 0;
  min-width: 0; /* prevents overflow in flex layouts */
  padding: 14px 16px;
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-lg);
  background: var(--v-surface);
  box-sizing: border-box;
}

/* Optional: make magic-link a bit wider on desktop */
.student-info .magic-link-box {
  flex: 1.15 1 0;
}

/* Nice spacing inside info-state */
.info-state p {
  margin: 0 0 10px;
}

.info-state p:last-child {
  margin-bottom: 0;
}

.info-state strong,
.info-txt {
  color: var(--v-text-muted);
}

/* Magic link fieldset tidy */
.magic-link-box fieldset {
  margin: 0;
  padding: 12px 14px 14px;
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-lg);
}

.magic-link-box legend {
  padding: 0 8px;
  color: var(--v-text-muted);
  font-weight: 600;
}

.magic-link-box p {
  margin: 0 0 10px;
}

.magic-link-box p:last-child {
  margin-bottom: 0;
}

/* Responsive: stack (info-state above magic-link-box) */
@media (max-width: 820px) {
  .student-info {
    flex-direction: column;
  }
  .student-info .info-state,
  .student-info .magic-link-box {
    width: 100%;
  }
}
:root {
  --v-font-xxs: 14px;
  --v-font-xs: 14px;
  --v-font-sm: 14px;
  --v-font-base: 14px;
  --v-font-m: 14px;
  --v-font-ml: 16px;
  --v-font-lg: 16px;
  --v-font-xl: 1rem;
  --v-font-2xl: 1.25rem;
}

.builder-frame {
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 3px);
}

.builder-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--v-border);
  background: var(--v-bg);
  flex-shrink: 0;
}

.builder-toolbar-left,
.builder-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.builder-page-title {
  margin: 0;
  font-size: var(--v-font-2xl);
  font-weight: 700;
  line-height: 1.2;
}

.builder-toolbar-right .preview-device + .preview-device {
  margin-inline-start: -0.35rem;
}

.preview-device-group {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.25rem;
  background: var(--v-surface);
  border: 1px solid var(--v-border);
  border-radius: 1rem;
}

.preview-device {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--v-border);
  background: var(--v-bg);
  color: var(--v-text-muted);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin: 0;
  font-size: var(--v-font-xl);
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.preview-device i {
  pointer-events: none;
  font-size: var(--v-font-xl);
}

.preview-device:hover {
  background: var(--v-surface);
  border-color: var(--color-gray-a5);
  color: var(--v-text-secondary);
  text-decoration: none !important;
}

.preview-device:focus-visible {
  outline: none;
  border-color: var(--color-green-300);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.preview-device:active {
  transform: translateY(1px);
}

.preview-device.active {
  background: var(--v-positive-bg);
  color: var(--color-green-700);
  border-color: var(--color-green-300);
  box-shadow: 0 1px 2px rgba(22, 101, 52, 0.08);
}

.builder-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.builder-sidebar {
  width: 380px;
  min-width: 380px;
  border-left: 1px solid var(--v-border);
  background: var(--v-bg);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.builder-preview {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  background: var(--v-surface);
  padding: 1.5rem;
}

.preview-frame-wrapper {
  width: 100%;
}

#page_preview_iframe {
  width: 100%;
  height: 0;
  border: none;
  display: block;
  border-radius: var(--v-radius-md);
  box-shadow: 0 1px 3px var(--color-black-base);
  background: #ffffff; /* theme-exempt: renders customer landing page */
}

.sidebar-header {
  padding: 1rem;
  border-bottom: 1px solid var(--v-border);
  flex-shrink: 0;
}

.blocks-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.6rem;
}

.sidebar-actions {
  padding: 1rem;
  border-top: 1px solid var(--v-border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.preview-toolbar {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--v-border);
  background: var(--v-bg);
  flex-shrink: 0;
  display: flex;
  gap: 0.5rem;
}

.block-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--v-border);
  margin-bottom: 0.4rem;
  background: var(--v-bg);
  cursor: default;
}

.block-item:hover {
  border-color: var(--color-gray-a5);
  background: var(--v-surface);
}

.block-handle {
  color: var(--v-text-faint);
  cursor: grab;
  font-size: var(--v-font-m);
  flex-shrink: 0;
  z-index: 10;
}

.block-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.block-type-badge {
  font-size: var(--v-font-sm);
  font-weight: 600;
  color: var(--v-text-secondary);
}

.block-prompt-preview {
  font-size: var(--v-font-xs);
  color: var(--v-text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.block-status-indicator {
  flex-shrink: 0;
  font-size: var(--v-font-sm);
}

.status-draft {
  background-color: var(--v-bg-muted);
  color: var(--v-text-secondary);
}

.status-archived {
  background-color: var(--v-warning-bg);
  color: var(--v-warning-text);
}

.status-published {
  background-color: var(--color-green-100);
  color: var(--color-green-800);
}

.status-done {
  color: var(--v-positive);
}

.status-error {
  color: var(--v-negative);
}

.status-pending,
.status-generating {
  color: var(--v-warning);
}

.block-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: var(--v-font-base);
  color: var(--v-text-muted);
}

.btn-icon:hover {
  background: var(--v-bg-muted);
  color: var(--v-text-secondary);
}

.btn-icon.btn-danger:hover {
  background: var(--v-negative-bg);
  color: var(--v-negative);
}

.block-edit-form {
  padding: 0.5rem;
  border-top: 1px solid var(--v-border);
  margin-top: 0.25rem;
}

.block-edit-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.blocks-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--v-text-faint);
  font-size: var(--v-font-m);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.modal-content {
  position: relative;
  background: var(--v-bg);
  border-radius: 10px;
  width: 480px;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  z-index: 1;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--v-border);
}

.modal-header h3 {
  margin: 0;
  font-size: var(--v-font-ml);
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: var(--v-font-lg);
  cursor: pointer;
  color: var(--v-text-muted);
  padding: 0 4px;
}

.modal-body {
  padding: 1.25rem;
}

.modal-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--v-border);
  display: flex;
  justify-content: flex-end;
}

.block-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.block-type-option {
  display: block;
  cursor: pointer;
}

.block-type-option input[type=radio] {
  display: none;
}

.block-type-label {
  display: block;
  text-align: center;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--v-border);
  font-size: var(--v-font-sm);
  color: var(--v-text-secondary);
  transition: all 0.15s;
}

.block-type-option input:checked + .block-type-label {
  border-color: var(--v-info);
  background: var(--color-blue-50);
  color: var(--color-blue-700);
  font-weight: 600;
}

.block-type-label:hover {
  border-color: var(--color-gray-a5);
  background: var(--v-surface);
}

.block-brief {
  background: var(--v-bg);
  border: 1px solid var(--v-border);
  border-radius: 8px;
  margin-bottom: 0.6rem;
  overflow: hidden;
  border-right: 3px solid var(--v-border);
}
.block-brief.block-status-done {
  border-right-color: var(--v-positive);
}
.block-brief.block-status-error {
  border-right-color: var(--v-negative);
}
.block-brief.block-status-pending, .block-brief.block-status-generating {
  border-right-color: var(--v-warning);
}

.block-brief-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.6rem;
  background: var(--v-surface);
  border-bottom: 1px solid var(--v-border-muted);
}

.block-brief-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.block-done-indicator {
  color: var(--v-positive);
  font-size: var(--v-font-sm);
}

.block-error-indicator {
  color: var(--v-negative);
  font-size: var(--v-font-sm);
  cursor: help;
}

.block-generating-indicator {
  color: var(--v-warning);
  font-size: var(--v-font-xs);
}

.block-style-instruction {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--v-bg-muted);
}
.block-style-instruction .style-instruction-input {
  width: 100%;
  font-size: var(--v-font-xs);
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--v-border);
  border-radius: 4px;
  color: var(--v-text-muted);
  background: var(--v-surface);
  box-sizing: border-box;
}
.block-style-instruction .style-instruction-input:focus {
  outline: none;
  border-color: var(--color-indigo-300);
  background: var(--v-bg);
  color: var(--v-text-secondary);
}
.block-style-instruction .style-instruction-input::placeholder {
  color: var(--color-gray-a5);
  font-size: var(--v-font-xxs);
}

.elements-list {
  padding: 0.4rem 0.5rem;
  min-height: 1.5rem;
}

.elements-empty {
  text-align: center;
  padding: 0.5rem;
  color: var(--color-gray-a5);
  font-size: var(--v-font-xs);
  font-style: italic;
}

.element-item {
  border: 1px solid var(--v-border);
  border-radius: 5px;
  margin-bottom: 0.3rem;
  background: var(--v-bg);
  font-size: var(--v-font-sm);
  transition: border-color 0.15s;
}
.element-item.editing {
  border-color: var(--color-indigo-300);
  background: var(--v-surface);
}
.element-item.saved {
  border-color: var(--color-green-200);
}
.element-item.empty {
  border-color: var(--color-amber-200);
  background: var(--v-warning-bg);
}

.element-header {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.5rem;
}

.element-handle {
  color: var(--color-gray-a5);
  cursor: grab;
  font-size: var(--v-font-xs);
  flex-shrink: 0;
  z-index: 10;
}
.element-handle:active {
  cursor: grabbing;
}

.element-type-label {
  flex: 1;
  font-size: var(--v-font-xs);
  font-weight: 600;
  color: var(--v-text-secondary);
}

.element-header-actions {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.element-empty-message {
  padding: 0.25rem 0.5rem 0.3rem;
  font-size: var(--v-font-xxs);
  color: var(--color-amber-600);
}

.element-saved-text p,
.element-saved-button,
.element-saved-embed,
.element-saved-instruction,
.element-saved-image {
  padding: 0.3rem 0.5rem 0.4rem;
  font-size: var(--v-font-xs);
  color: var(--v-text-secondary);
  line-height: 1.4;
}

.element-saved-instruction {
  color: var(--color-violet-600);
  font-style: italic;
}
.element-saved-instruction i {
  margin-left: 4px;
}

.element-saved-embed .embed-indicator {
  color: var(--color-sky-700);
  font-size: var(--v-font-xs);
}

.element-design-note {
  display: block;
  font-size: var(--v-font-xxs);
  color: var(--v-text-faint);
  margin-top: 2px;
}

.element-link-preview {
  display: block;
  font-size: var(--v-font-xxs);
  color: var(--color-indigo-500);
}

.element-item .form-group {
  padding: 0.4rem 0.5rem 0;
}
.element-item .form-group label {
  display: block;
  font-size: var(--v-font-xxs);
  color: var(--v-text-faint);
  margin-bottom: 2px;
}
.element-item .form-group input[type=text],
.element-item .form-group textarea {
  width: 100%;
  font-size: var(--v-font-xs);
  padding: 0.3rem 0.4rem;
  border: 1px solid var(--v-border);
  border-radius: 4px;
  box-sizing: border-box;
  resize: vertical;
}
.element-item .form-group input[type=text]:focus,
.element-item .form-group textarea:focus {
  outline: none;
  border-color: var(--color-indigo-300);
}
.element-item .form-group select {
  width: 100%;
  font-size: var(--v-font-xs);
  padding: 0.3rem 0.4rem;
  border: 1px solid var(--v-border);
  border-radius: 4px;
  box-sizing: border-box;
  background-color: var(--v-bg, #fff);
  color: inherit;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.5rem center;
}
.element-item .form-group select:focus {
  outline: none;
  border-color: var(--color-indigo-300);
}

.element-form-actions {
  display: flex;
  gap: 0.4rem;
  padding: 0.4rem 0.5rem 0.5rem;
}

.description-textarea {
  width: 100%;
  font-size: var(--v-font-xs);
  padding: 0.3rem 0.4rem;
  border: 1px solid var(--v-border);
  border-radius: 4px;
  resize: vertical;
  box-sizing: border-box;
  min-height: 42px;
}
.description-textarea:focus {
  outline: none;
  border-color: var(--color-indigo-300);
}
.description-textarea::placeholder {
  color: var(--color-gray-a5);
}

.add-element-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.4rem 0.6rem;
  border-top: 1px solid var(--v-bg-muted);
}

.btn-add-element {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--v-font-xxs);
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--v-border);
  border-radius: 4px;
  background: var(--v-surface);
  color: var(--v-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.btn-add-element i {
  font-size: var(--v-font-xxs);
  color: var(--v-text-muted);
}
.btn-add-element:hover {
  background: var(--color-blue-50);
  border-color: var(--color-blue-200);
  color: var(--color-blue-700);
}
.btn-add-element:hover i {
  color: var(--v-info);
}

.block-generate-action {
  padding: 0.5rem 0.6rem 0.6rem;
}

.btn-block-generate {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: var(--v-font-sm);
  padding: 0.5rem;
}
.btn-block-generate i {
  font-size: var(--v-font-xs);
}
.btn-block-generate:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.landing-pages-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.landing-page-card {
  direction: rtl;
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) auto auto;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 18px 20px;
  margin-bottom: 14px;
  background: var(--v-bg);
  border: 1px solid var(--v-border);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.landing-page-card:hover {
  border-color: var(--color-gray-a5);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.landing-page-card-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.landing-page-title {
  font-size: var(--v-font-lg);
  font-weight: 700;
  color: var(--v-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.landing-page-url {
  font-size: var(--v-font-base);
  color: var(--v-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.landing-page-url a {
  color: inherit;
  text-decoration: none;
  direction: ltr;
  unicode-bidi: isolate;
}
.landing-page-url a:hover {
  color: var(--v-primary);
  text-decoration: underline;
}

.landing-page-views {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--v-text-muted);
  white-space: nowrap;
}

.landing-page-card-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  font-size: var(--v-font-base);
  color: var(--v-text-muted);
  white-space: nowrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: var(--v-font-sm);
  font-weight: 700;
  line-height: 1;
  background: var(--v-bg-muted);
  color: var(--v-text-secondary);
}

.status-draft {
  background: var(--v-bg-muted);
  color: var(--v-text-secondary);
}

.status-published {
  background: var(--v-positive-bg);
  color: var(--color-green-700);
}

.status-archived {
  background: var(--color-rose-50);
  color: var(--color-rose-700);
}

.landing-page-blocks-count,
.landing-page-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 0 10px;
  background: var(--v-surface);
  border: 1px solid var(--v-border-muted);
  border-radius: 999px;
  color: var(--v-text-muted);
}

.landing-page-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.landing-page-card-actions form {
  margin: 0;
}

.btn {
  appearance: none;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: var(--v-font-base);
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  min-height: 32px;
  padding-inline: 12px;
  font-size: var(--v-font-sm);
}

.btn-primary {
  background: #111827; /* theme-note: dark button, intentional */
  color: var(--color-white);
}

.btn-primary:hover {
  background: #020617; /* theme-note: dark button, intentional */
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.btn-secondary {
  background: var(--v-surface);
  color: var(--v-text-secondary);
  border: 1px solid var(--v-border);
}

.btn-secondary:hover {
  background: var(--v-bg-muted);
  border-color: var(--color-gray-a5);
}

.btn-danger {
  background: var(--color-rose-50);
  color: var(--color-rose-700);
  border: 1px solid var(--color-rose-100);
}

.btn-danger:hover {
  background: var(--color-rose-100);
  border-color: var(--color-rose-200);
}

.v-field-url {
  direction: rtl;
  width: 100%;
  max-width: 720px;
}

.v-field-url .v-label {
  display: block;
  margin-bottom: 10px;
  font-size: var(--v-font-m);
  font-weight: 700;
  color: var(--v-text);
}

.slug-field {
  direction: ltr;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 56px;
  background: var(--v-bg);
  border: 1px solid var(--v-border);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.slug-field:focus-within {
  border-color: var(--v-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12), 0 10px 26px rgba(15, 23, 42, 0.08);
}

.slug-prefix {
  display: inline-flex;
  align-items: center;
  height: 100%;
  min-height: 56px;
  padding: 0 22px;
  background: var(--v-surface);
  border-right: 1px solid var(--v-border);
  font-size: var(--v-font-lg);
  font-weight: 700;
  color: var(--v-text-muted);
  white-space: nowrap;
}

.v-input-path {
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0 22px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: var(--v-font-lg);
  font-weight: 700;
  color: var(--v-text);
  direction: ltr;
  text-align: left;
}

.v-input-path::placeholder {
  color: var(--v-text-faint);
  font-weight: 600;
}

.v-input-path:disabled {
  cursor: not-allowed;
  color: var(--v-text-faint);
}

.v-field-url .v-help {
  margin-top: 8px;
  font-size: var(--v-font-base);
  color: var(--v-text-muted);
}

.v-field-url .v-error {
  margin-top: 8px;
  font-size: var(--v-font-base);
  font-weight: 600;
  color: var(--color-red-600);
}

.v-field-url.is-invalid .slug-field {
  border-color: var(--color-red-300);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.v-field-url.is-invalid .slug-prefix {
  border-right-color: var(--color-red-300);
}

.sidebar-design-section {
  border-top: 2px solid var(--v-border);
  padding: 0.75rem;
  flex-shrink: 0;
}

.design-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.design-panel-title {
  font-size: var(--v-font-sm);
  font-weight: 600;
  color: var(--v-text-secondary);
}

.design-status-badge {
  font-size: var(--v-font-xxs);
  padding: 2px 8px;
  border-radius: 4px;
}
.design-status-badge.status-unstyled {
  background: var(--v-bg-muted);
  color: var(--v-text-muted);
}
.design-status-badge.status-styling {
  background: var(--v-warning-bg);
  color: var(--color-amber-600);
}
.design-status-badge.status-styled {
  background: var(--v-positive-bg);
  color: var(--v-positive-text);
}

.design-brief-input {
  width: 100%;
  font-size: var(--v-font-xs);
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--v-border);
  border-radius: 4px;
  resize: vertical;
  box-sizing: border-box;
  margin-bottom: 0.5rem;
}
.design-brief-input:focus {
  outline: none;
  border-color: var(--color-indigo-300);
}
.design-brief-input::placeholder {
  color: var(--color-gray-a5);
  font-size: var(--v-font-xxs);
}

.sorting-active {
  user-select: none;
}

.sortable-ghost {
  opacity: 0.35;
  background: var(--color-sky-200) !important;
  border: 2px dashed var(--color-cyan-400);
}

.sortable-chosen {
  background: var(--color-sky-100);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.sortable-drag {
  opacity: 0.85;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transform: scale(1.03);
}

.dragging-block .elements-list {
  transition: opacity 0.2s ease;
}

.dragging-block .block-brief {
  box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.15);
}

.dragging-block .elements-empty {
  opacity: 0.3;
}

@media (max-width: 900px) {
  .landing-page-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .landing-page-card-meta {
    flex-wrap: wrap;
  }
  .landing-page-card-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
@media (max-width: 560px) {
  .slug-field {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }
  .slug-prefix {
    min-height: 44px;
    width: 100%;
    justify-content: flex-start;
    padding: 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--v-border);
    font-size: var(--v-font-m);
  }
  .v-input-path {
    height: 50px;
    padding: 0 18px;
    font-size: var(--v-font-ml);
  }
}
@media (max-width: 520px) {
  .landing-page-card {
    padding: 16px;
    border-radius: 16px;
  }
  .landing-page-card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .landing-page-card-actions .btn,
  .landing-page-card-actions form,
  .landing-page-card-actions form button {
    width: 100%;
  }
}
.block-settings {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem 0.75rem;
  margin-block-end: 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.block-settings .block-settings-field {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #64748b;
}
.block-settings .block-settings-field select {
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
}

.block-live-indicator {
  color: #22c55e;
  font-size: 0.7rem;
  animation: vp-live-pulse 2s ease-in-out infinite;
}

@keyframes vp-live-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
.block-live-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #16a34a;
}
.block-live-hint i {
  font-size: 0.75rem;
}

.builder-design-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.6rem 1.25rem;
  border-bottom: 1px solid var(--v-border);
  background: var(--v-bg);
  flex-shrink: 0;
}
.builder-design-bar .design-bar-theme {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.builder-design-bar .design-bar-theme i {
  color: #7c3aed;
}
.builder-design-bar .design-bar-theme .design-bar-label {
  font-size: var(--v-font-sm);
  font-weight: 600;
}
.builder-design-bar .design-bar-theme .theme-select {
  min-width: 220px;
  padding: 0.4rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font-size: var(--v-font-sm);
}
.builder-design-bar .design-bar-theme .design-bar-hint {
  font-size: var(--v-font-xs);
  color: var(--v-text-faint);
}

.ai-intake-panel {
  background: var(--v-bg);
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-md, 12px);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.ai-intake-panel .ai-intake-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--v-font-lg);
  font-weight: 700;
  color: var(--v-text);
}
.ai-intake-panel .ai-intake-header i {
  color: var(--v-primary, #7c3aed);
}
.ai-intake-panel .ai-intake-sub {
  margin: 0.25rem 0 1rem;
  font-size: var(--v-font-sm);
  color: var(--v-text-muted);
}
.ai-intake-panel .ai-intake-required {
  color: var(--v-negative, #dc2626);
}
.ai-intake-panel .ai-intake-note {
  font-size: var(--v-font-xs);
  font-weight: 400;
  color: var(--v-text-faint);
}
.ai-intake-panel .ai-intake-note a {
  color: var(--v-primary, #7c3aed);
  text-decoration: underline;
}
.ai-intake-panel .info-box {
  margin-bottom: 0.5rem;
}

.ai-draft-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.25rem;
  font-size: var(--v-font-sm);
  border-bottom: 1px solid var(--v-border);
  flex-shrink: 0;
}
.ai-draft-banner--drafting {
  background: #eef2ff;
  color: #4338ca;
}
.ai-draft-banner--error {
  background: #fef2f2;
  color: #b91c1c;
}

.btn-icon.element-has-image {
  color: #16a34a;
}

.block-brief {
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s ease;
}

.block-brief.block-selected {
  border: 2px dashed var(--v-primary, #7c3aed);
  border-radius: 10px;
}

.block-settings-field--wide {
  flex: 1;
}
.block-settings-field--wide select {
  width: 100%;
}

.lp-settings-card {
  background: var(--v-bg);
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-md, 12px);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.lp-settings-card .lp-settings-card__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: var(--v-font-lg);
  font-weight: 700;
}
.lp-settings-card .lp-settings-card__title i {
  color: var(--v-primary, #7c3aed);
}
.lp-settings-card h5 {
  margin: 1.25rem 0 0.25rem;
  font-size: var(--v-font-sm);
  font-weight: 800;
}

.lp-settings-card--general {
  border-color: var(--v-primary, #7c3aed);
}

.lp-settings-badge {
  font-size: var(--v-font-xs);
  font-weight: 600;
  background: var(--v-primary, #7c3aed);
  color: #fff;
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
}

.lp-settings-hint {
  font-size: var(--v-font-xs);
  font-weight: 400;
  color: var(--v-text-faint);
  margin: 0.5rem 0 0;
}

.lp-insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}

.lp-insight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: var(--v-surface);
  border-radius: 10px;
  padding: 1.25rem;
}
.lp-insight .lp-insight__value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--v-text);
}
.lp-insight .lp-insight__label {
  font-size: var(--v-font-sm);
  color: var(--v-text-muted);
}

.builder-public-url {
  font-size: var(--v-font-xs);
  color: var(--v-text-muted);
  text-decoration: underline;
  direction: ltr;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.element-role-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.element-role-chip--title {
  background: #ede9fe;
  color: #6d28d9;
  border-color: #ddd6fe;
}

.element-role-chip--subtitle {
  background: #e0e7ff;
  color: #4338ca;
  border-color: #c7d2fe;
}

.element-role-chip--body {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}

.element-role-chip--item {
  background: #ccfbf1;
  color: #0f766e;
  border-color: #99f6e4;
}

.element-role-chip--cta {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}

.element-role-chip--media {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
}

.element-role-chip--date,
.element-role-chip--time,
.element-role-chip--location,
.element-role-chip--note {
  background: #fce7f3;
  color: #be185d;
  border-color: #fbcfe8;
}

[data-theme=dark] .element-role-chip--title {
  background: rgba(109, 40, 217, 0.25);
  color: #c4b5fd;
  border-color: transparent;
}

[data-theme=dark] .element-role-chip--subtitle {
  background: rgba(67, 56, 202, 0.25);
  color: #a5b4fc;
  border-color: transparent;
}

[data-theme=dark] .element-role-chip--body {
  background: rgba(71, 85, 105, 0.35);
  color: #cbd5e1;
  border-color: transparent;
}

[data-theme=dark] .element-role-chip--item {
  background: rgba(15, 118, 110, 0.3);
  color: #5eead4;
  border-color: transparent;
}

[data-theme=dark] .element-role-chip--cta {
  background: rgba(180, 83, 9, 0.28);
  color: #fcd34d;
  border-color: transparent;
}

[data-theme=dark] .element-role-chip--media {
  background: rgba(3, 105, 161, 0.3);
  color: #7dd3fc;
  border-color: transparent;
}

[data-theme=dark] .element-role-chip--date,
[data-theme=dark] .element-role-chip--time,
[data-theme=dark] .element-role-chip--location,
[data-theme=dark] .element-role-chip--note {
  background: rgba(190, 24, 93, 0.28);
  color: #f9a8d4;
  border-color: transparent;
}

.code-size-readout {
  display: block;
  margin-block-start: 0.4rem;
  font-size: var(--v-font-xs);
  color: var(--v-text-faint);
}
.code-size-readout.is-over {
  color: var(--v-negative, #dc2626);
  font-weight: 600;
}

.ai-gen-required {
  color: var(--v-negative);
  margin-right: 4px;
}

.ai-gen-optional {
  color: var(--v-text-faint);
  font-size: 12px;
  margin-right: 6px;
  font-weight: normal;
}

.custom-fields-box {
  margin-top: 14px;
  padding: 14px 14px;
  background: color-mix(in srgb, var(--color-brand) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-brand) 25%, transparent);
  border-radius: var(--v-radius);
}

.custom-fields-title {
  font-weight: 800;
  margin-bottom: 10px;
  color: color-mix(in srgb, var(--v-text) 85%, transparent);
}

.custom-fields-list {
  margin: 0;
}

.custom-field-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--v-text) 12%, transparent);
}

.custom-field-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.custom-field-row dt {
  margin: 0;
  font-weight: 800;
  color: color-mix(in srgb, var(--v-text) 75%, transparent);
}

.custom-field-row dd {
  margin: 0;
  color: color-mix(in srgb, var(--v-text) 85%, transparent);
  word-break: break-word;
}

@media (max-width: 640px) {
  .custom-field-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
.timeline-list {
  position: relative;
  padding-right: 24px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  right: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--v-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.timeline-dot {
  position: absolute;
  right: -24px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--v-bg);
  flex-shrink: 0;
}

.timeline-dot--opened {
  background: var(--v-positive);
}

.timeline-dot--clicked {
  background: var(--v-info);
}

.timeline-dot--delivered {
  background: var(--v-text-faint);
}

.timeline-dot--unsubscribed {
  background: var(--v-negative);
}

.timeline-dot--complained {
  background: var(--v-warning);
}

.timeline-dot--failed {
  background: var(--color-red-600);
}

.timeline-dot--form_submission {
  background: var(--color-indigo-500);
}

.timeline-dot--transactional_sent {
  background: var(--color-violet-500);
}

.timeline-dot--transactional_delivered {
  background: var(--v-positive);
}

.timeline-dot--transactional_failed {
  background: var(--color-red-600);
}

.timeline-dot--transactional_pending {
  background: var(--v-text-faint);
}

.timeline-dot--transactional_complained {
  background: var(--v-warning);
}

.timeline-content {
  flex: 1;
}

.timeline-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--v-text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.timeline-campaign {
  font-weight: 400;
  color: var(--v-text-muted);
  font-size: 13px;
}

.timeline-url {
  font-size: 12px;
  color: var(--v-text-muted);
  margin-top: 2px;
}

.timeline-time {
  font-size: 12px;
  color: var(--v-text-faint);
  margin-top: 4px;
}

.timeline-summary {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tl-pill {
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 999px;
}

.tl-pill--open {
  background: color-mix(in srgb, var(--v-positive) 12%, transparent);
  color: var(--color-green-600);
}

.tl-pill--click {
  background: color-mix(in srgb, var(--v-info) 12%, transparent);
  color: var(--v-link);
}

.tl-pill--bounce {
  background: color-mix(in srgb, var(--color-red-600) 12%, transparent);
  color: var(--color-red-600);
}

.tl-pill--delivered {
  background: color-mix(in srgb, var(--v-text-faint) 16%, transparent);
  color: var(--v-text-muted);
}

.ai-manual-section {
  direction: rtl;
  /* violet→teal brand tint, mixed over the page bg so it adapts to dark */
  background: linear-gradient(140deg, color-mix(in srgb, #7c3aed 6%, var(--v-bg)) 0%, color-mix(in srgb, #0d9488 8%, var(--v-bg)) 100%);
  border: 1.5px solid var(--v-border);
  border-radius: 18px;
  padding: 40px 36px 36px;
  max-width: 700px;
  margin: 40px auto;
  box-shadow: 0 6px 30px rgba(124, 58, 237, 0.1);
  position: relative;
  overflow: hidden;
}

.ai-manual-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #7c3aed, #0d9488); /* brand gradient, theme-independent */
  border-radius: 18px 18px 0 0;
}

.ai-manual-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.ai-manual-icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #7c3aed, #0d9488); /* brand gradient, theme-independent */
  border-radius: var(--v-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

.ai-manual-titles {
  flex: 1;
}

.ai-manual-title {
  margin: 0 0 4px;
  font-size: 21px;
  font-weight: 700;
  color: var(--v-text);
  line-height: 1.3;
}

.ai-manual-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--v-text-muted);
}

.ai-manual-body {
  font-size: 15px;
  color: var(--v-text-secondary);
  line-height: 1.85;
  margin: 0 0 22px;
}

.ai-manual-body strong {
  color: var(--v-text);
}

.ai-models-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--v-text-faint);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.ai-models-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.ai-model-tag {
  background: var(--v-bg);
  border: 1.5px solid var(--v-border);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--v-text-secondary);
}

.ai-steps-box {
  background: var(--v-bg);
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-lg);
  padding: 20px 22px;
  margin-bottom: 28px;
}

.ai-steps-box-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--v-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
}

.ai-step-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 13px;
}

.ai-step-row:last-child {
  margin-bottom: 0;
}

.ai-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #7c3aed, #0d9488); /* brand gradient, theme-independent */
  color: var(--color-white);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.ai-step-text {
  font-size: 14px;
  color: var(--v-text-secondary);
  line-height: 1.65;
  flex: 1;
  margin: 0;
}

.ai-step-text strong {
  color: var(--v-text);
}

.ai-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #7c3aed, #5b21b6); /* brand gradient, theme-independent */
  color: var(--color-white) !important;
  text-decoration: none !important;
  font-family: var(--v-font-sans);
  font-size: 16px;
  font-weight: 600;
  padding: 15px 28px;
  border-radius: var(--v-radius-lg);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.ai-download-btn:hover {
  background: linear-gradient(135deg, #6d28d9, #4c1d95); /* brand gradient, theme-independent */
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(124, 58, 237, 0.42);
  color: var(--color-white) !important;
  text-decoration: none !important;
}

.ai-download-btn:active {
  transform: translateY(0);
}

.ai-note {
  text-align: center;
  margin-top: 11px;
  font-size: 12px;
  color: var(--v-text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.v-theme-picker {
  display: flex;
  gap: 6px;
  width: 100%;
}

.v-theme-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 7px;
  border: 1px solid var(--v-border);
  border-radius: var(--v-control-radius);
  background: var(--v-bg);
  color: var(--v-text-muted);
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.v-theme-btn:hover {
  background: var(--v-bg-muted);
  color: var(--v-text);
  text-decoration: none;
}

/* Duotone icon identities — intentionally fixed across themes */
.v-theme-btn--light i {
  --fa-primary-color: #f59e0b;
  --fa-secondary-color: #fcd34d;
  --fa-secondary-opacity: 1;
}

.v-theme-btn--dark i {
  --fa-primary-color: #6366f1;
  --fa-secondary-color: #c7d2fe;
  --fa-secondary-opacity: 1;
}

.v-theme-btn--more i {
  --fa-primary-color: var(--v-primary);
  --fa-secondary-color: var(--v-bg-muted);
  --fa-secondary-opacity: 1;
}

.uit-builtin-row {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.uit-builtin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--v-border);
  border-radius: var(--v-control-radius);
  background: var(--v-btn-secondary-bg);
  color: var(--v-btn-text-secondary);
  cursor: pointer;
  font-size: 14px;
}

.uit-builtin:hover {
  background: var(--v-btn-secondary-bg-hover);
}

.uit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.uit-card {
  background: var(--v-bg);
  border: 2px solid var(--v-border);
  border-radius: var(--v-radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.uit-card:hover {
  box-shadow: var(--v-shadow-md);
}

.uit-card--active {
  border-color: var(--v-primary);
  box-shadow: 0 0 0 3px var(--v-ring);
}

/* Mini fake-UI preview rendered with the theme's own tokens */
.uit-preview {
  height: 110px;
  background: var(--v-bg);
  border-bottom: 1px solid var(--v-border);
  display: flex;
  flex-direction: column;
}

.uit-preview-header {
  height: 22px;
  background: var(--v-surface);
  border-bottom: 1px solid var(--v-border);
}

.uit-preview-body {
  flex: 1;
  padding: 10px;
  background: var(--v-bg-muted);
}

.uit-preview-card {
  background: var(--v-bg);
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-md);
  height: 100%;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.uit-preview-line {
  height: 7px;
  border-radius: 4px;
  background: var(--v-text);
  opacity: 0.75;
  width: 70%;
}

.uit-preview-line--short {
  width: 45%;
  opacity: 0.35;
}

.uit-preview-btn {
  margin-top: auto;
  height: 14px;
  width: 52px;
  border-radius: 7px;
  background: var(--v-btn-bg, var(--v-primary));
}

.uit-swatches {
  display: flex;
  gap: 6px;
  padding: 10px 14px 0;
}

.uit-swatch {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--v-border);
}

.uit-meta {
  padding: 8px 14px 12px;
}

.uit-name {
  font-weight: 700;
  color: var(--v-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.uit-mine {
  font-size: 11px;
  font-weight: 500;
  background: var(--v-info-bg);
  color: var(--v-info-text);
  padding: 1px 8px;
  border-radius: 999px;
}

.uit-visibility {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--v-border-muted);
  background: var(--v-bg-muted);
  color: var(--v-text-secondary);
  cursor: pointer;
}
.uit-visibility:hover {
  border-color: var(--v-primary);
}
.uit-visibility--public {
  background: var(--v-positive-bg);
  color: var(--v-positive-text);
  border-color: var(--v-positive);
}

.uit-credit form {
  display: inline-flex;
}

.uit-credit {
  margin-top: 4px;
  font-size: 12px;
  color: var(--v-text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.uit-dot {
  color: var(--v-text-faint);
}

.uit-apply {
  margin: 0 14px 14px;
  padding: 9px 0;
  border: none;
  border-radius: var(--v-control-radius);
  background: var(--v-btn-bg);
  color: var(--v-btn-text);
  font-weight: 600;
  cursor: pointer;
}

.uit-apply:hover {
  background: var(--v-btn-bg-hover);
}

.uit-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--v-text-muted);
}

.uit-empty i {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
}

.uit-public-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--v-info-bg);
  color: var(--v-info-text);
  border: 1px solid color-mix(in srgb, var(--v-info) 30%, var(--v-bg));
  border-radius: var(--v-radius-lg);
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
}

.uit-public-note i {
  font-size: 18px;
  margin-top: 2px;
}

.uit-step {
  margin-bottom: 26px;
}

.uit-step h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: var(--v-text);
  margin: 0 0 12px;
}

.uit-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--v-primary);
  color: var(--v-on-primary);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}

.uit-prompt-wrap {
  position: relative;
}

.uit-prompt {
  width: 100%;
  height: 180px;
  padding: 12px 48px 12px 12px;
  box-sizing: border-box;
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-md);
  background: var(--v-surface);
  color: var(--v-text-muted);
  font-family: var(--v-font-mono);
  font-size: 12px;
  resize: vertical;
}

.uit-hint {
  margin-top: 8px;
  font-size: 13px;
  color: var(--v-text-muted);
}

.uit-json-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid var(--v-field-border);
  border-radius: var(--v-radius-md);
  background: var(--v-field-bg);
  color: var(--v-field-text);
  font-family: var(--v-font-mono);
  font-size: 13px;
  resize: vertical;
}

.uit-json-input:focus {
  outline: none;
  border-color: var(--v-focus);
  box-shadow: 0 0 0 3px var(--v-ring);
}

.uit-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.uit-fields-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--v-text-secondary);
  margin-bottom: 6px;
}

.uit-form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.uit-cancel {
  text-decoration: none;
  padding: 9px 18px;
  border-radius: var(--v-control-radius);
  background: var(--v-btn-secondary-bg);
  color: var(--v-btn-text-secondary);
}

.uit-create-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  text-decoration: none;
}

@media (max-width: 640px) {
  .uit-fields-row {
    grid-template-columns: 1fr;
  }
}
.uit-scheme-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.uit-scheme-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius, 8px);
  cursor: pointer;
  font-size: var(--v-font-sm);
  background: var(--v-bg);
}
.uit-scheme-option:has(input:checked) {
  border-color: var(--v-primary);
  background: var(--v-surface);
}
.uit-scheme-option input {
  accent-color: var(--v-primary);
}

.uit-ai-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 2.5rem 1rem;
  border: 1px dashed var(--v-border);
  border-radius: 12px;
  color: var(--v-text-faint);
  text-align: center;
}
.uit-ai-placeholder i {
  font-size: 1.8rem;
}

.uit-ai-error {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  background: var(--v-negative-bg, #fef2f2);
  color: var(--v-negative-text, #b91c1c);
}

.uit-ai-result-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.uit-ai-result-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.uit-refine-form {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.uit-refine-form input[type=text] {
  flex: 1;
}

.uit-card-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.uit-card-actions .uit-apply {
  flex: 1;
}

.uit-remix {
  white-space: nowrap;
  font-size: var(--v-font-xs);
  margin-left: 10px;
  margin-bottom: 14px;
}

@media (max-width: 640px) {
  .uit-ai-result-row {
    grid-template-columns: 1fr;
  }
}
.uit-image-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.4rem 1rem;
  border: 1.5px dashed var(--v-border);
  border-radius: 12px;
  color: var(--v-text-muted);
  text-align: center;
  cursor: pointer;
  font-size: var(--v-font-sm);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.uit-image-drop:hover {
  border-color: var(--v-primary);
  background: var(--v-surface);
}
.uit-image-drop i {
  font-size: 1.6rem;
  color: var(--v-primary);
}

.uit-image-input {
  display: none;
}

.uit-image-preview {
  position: relative;
  display: inline-block;
}
.uit-image-preview img {
  max-height: 140px;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--v-border);
  display: block;
}
.uit-image-preview .btn-icon {
  position: absolute;
  top: 6px;
  inset-inline-end: 6px;
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  border: none;
  border-radius: 6px;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.uit-ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--v-radius, 10px);
  font-size: var(--v-font-sm);
  cursor: pointer;
  border: 1px solid var(--v-border);
  white-space: nowrap;
}

.uit-font-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.uit-font-row label {
  font-size: var(--v-font-xs);
  color: var(--v-text-muted);
}
.uit-font-row .v-select-wrap {
  min-width: 160px;
}

.uit-save-form {
  margin-top: 0.75rem;
}
.uit-save-form .uit-form-actions {
  margin-top: 1.1rem;
}

#uit_ai_result .uit-step {
  margin-top: 1.75rem;
}

.uit-image-drop--over {
  border-color: var(--v-primary);
  background: var(--v-surface);
}

.uit-palette-grid {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 3px;
  width: 100%;
  margin-top: 0.4rem;
}

.uit-swatch-btn {
  height: 26px;
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: transform 0.08s ease;
}
.uit-swatch-btn:hover {
  transform: scale(1.12);
  z-index: 1;
}

.uit-swatch-btn--selected {
  outline: 2px solid var(--v-primary);
  outline-offset: 2px;
}
.uit-swatch-btn--selected::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.uit-font-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.uit-font-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.7rem 1rem 0.55rem;
  min-width: 108px;
  border: 1.5px solid var(--v-border);
  border-radius: 12px;
  cursor: pointer;
  background: var(--v-bg);
  transition: border-color 0.12s ease, background 0.12s ease;
}
.uit-font-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.uit-font-card:hover {
  border-color: var(--v-primary);
}
.uit-font-card:has(input:checked) {
  border-color: var(--v-primary);
  background: var(--v-surface);
  box-shadow: 0 0 0 1px var(--v-primary);
}

.uit-font-card__sample {
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--v-text);
}
.uit-font-card__sample i {
  color: var(--v-primary);
}

.uit-font-card__name {
  font-size: var(--v-font-xxs);
  color: var(--v-text-faint);
  direction: ltr;
}

.uit-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  margin: 2rem 0 0.9rem;
  color: var(--v-text-secondary);
}
.uit-section-title i {
  color: var(--v-primary);
}

.uit-all-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.uit-pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.uit-pagination .pagination {
  display: flex;
  gap: 6px;
  align-items: center;
}
.uit-pagination .pagination a,
.uit-pagination .pagination span,
.uit-pagination .pagination em {
  padding: 6px 12px;
  border: 1px solid var(--v-border);
  border-radius: var(--v-control-radius);
  text-decoration: none;
  font-style: normal;
  color: var(--v-text-secondary);
  background: var(--v-bg);
}
.uit-pagination .pagination a:hover {
  border-color: var(--v-primary);
}
.uit-pagination .pagination em.current {
  background: var(--v-primary);
  color: var(--v-on-primary);
  border-color: var(--v-primary);
}

.uit-picker-panel {
  max-width: 720px;
  width: 92vw;
}

.uit-picker-body {
  max-height: 70vh;
  overflow-y: auto;
}

.uit-picker-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--v-font-sm);
  color: var(--v-text-secondary);
  margin: 1.1rem 0 0.6rem;
}
.uit-picker-section i {
  color: var(--v-primary);
}

.uit-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.7rem;
}

.uit-pick-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.55rem;
  border: 1.5px solid var(--v-border);
  border-radius: 12px;
  background: var(--v-bg);
  cursor: pointer;
  text-align: start;
  transition: border-color 0.12s ease, transform 0.08s ease;
}
.uit-pick-card:hover {
  border-color: var(--v-primary);
  transform: translateY(-1px);
}

.uit-pick-card--clean {
  margin-bottom: 0.25rem;
  width: 100%;
}

.uit-pick-strip {
  display: flex;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--v-border-muted);
}

.uit-pick-color {
  flex: 1;
}

.uit-pick-name {
  font-size: var(--v-font-xs);
  font-weight: 600;
  color: var(--v-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uit-pick-usage {
  font-size: var(--v-font-xxs);
  color: var(--v-text-faint);
  display: flex;
  align-items: center;
  gap: 4px;
}

.uit-picker-launcher {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  cursor: pointer;
  min-width: 220px;
  text-align: start;
}
.uit-picker-launcher i {
  color: var(--v-text-faint);
  font-size: 0.75rem;
}

.csv-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.csv-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--v-btn-bg);
  color: var(--v-btn-text);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  max-width: 250px;
  transition: background 0.15s, transform 0.1s;
  user-select: none;
}

.csv-upload-btn:hover {
  background: var(--v-btn-bg-hover, color-mix(in oklab, var(--v-btn-bg) 90%, black));
}

.csv-upload-btn:active {
  transform: scale(0.98);
}

.csv-upload-input:focus-visible + * .csv-upload-btn,
.csv-upload-input:focus-visible ~ .csv-upload-btn {
  outline: 2px solid var(--v-focus);
  outline-offset: 2px;
}

.csv-upload-filename {
  margin-top: 8px;
  font-size: 14px;
  color: var(--v-text-muted);
  min-height: 20px;
}

.csv-upload-filename.has-file {
  color: var(--color-green-base);
  font-weight: 600;
}

.csv-upload-filename.has-file::before {
  content: "✓ ";
}

.import-notice {
  background: var(--v-info-bg);
  border: 1px solid color-mix(in srgb, var(--v-info) 30%, var(--v-bg));
  border-right: 4px solid var(--v-info);
  border-radius: var(--v-radius-sm);
  padding: 20px 24px;
  margin-bottom: 40px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--v-info-text);
}

.import-notice-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--v-info-text);
}

.import-notice p {
  margin: 0 0 10px;
}

.import-notice-strong {
  font-weight: 600;
}

.import-notice-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 20px;
  background: #25d366; /* theme-note: WhatsApp brand green, intentional */
  color: var(--color-white);
  border-radius: var(--v-radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.import-notice-cta:hover {
  background: #1fb457; /* theme-note: WhatsApp brand green, intentional */
  color: var(--color-white);
}

.import-notice-cta-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-weight: 600;
  color: var(--v-info-text);
}

.import-notice-cta-text .fa-whatsapp {
  color: #25d366; /* theme-note: WhatsApp brand green, intentional */
  font-size: 18px;
}

.import-mode-advanced {
  margin-top: 14px;
}

.import-mode-advanced summary {
  cursor: pointer;
  font-size: 13px;
  color: var(v-text-muted);
  list-style: none;
  user-select: none;
}

.import-mode-advanced summary::-webkit-details-marker {
  display: none;
}

.import-mode-advanced summary i {
  font-size: 11px;
  transition: transform 0.2s;
}

.import-mode-advanced[open] summary i {
  transform: rotate(-90deg);
}

.info-note {
  color: var(--v-warning-text);
}
