html {
  color-scheme: light;
}

html.dark {
  color-scheme: dark;
}

body {
  background:
    radial-gradient(circle at 10% 0%, rgba(14, 165, 233, 0.12), transparent 28rem),
    radial-gradient(circle at 90% 10%, rgba(16, 185, 129, 0.1), transparent 24rem),
    linear-gradient(135deg, #f7f7f4 0%, #edf6f4 48%, #f7fafc 100%);
  color: #18181b;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html.dark body {
  background:
    radial-gradient(circle at 10% 0%, rgba(14, 165, 233, 0.14), transparent 28rem),
    radial-gradient(circle at 90% 8%, rgba(16, 185, 129, 0.1), transparent 24rem),
    linear-gradient(135deg, #111315 0%, #171b1f 45%, #101113 100%);
  color: #f4f4f5;
}

main#app {
  margin: 0;
  max-width: none;
  padding-top: 1.5rem;
}

html.rich-dashboard-route body > header[data-rich-ui],
html.rich-dashboard-route body > nav[data-rich-ui],
body.rich-dashboard-mode > header[data-rich-ui],
body.rich-dashboard-mode > nav[data-rich-ui] {
  display: none;
}

html.rich-dashboard-route main#app,
body.rich-dashboard-mode main#app {
  min-height: 100dvh;
  padding: 0 0 5.75rem;
}

body.rich-dashboard-mode {
  background: #f3f4f6;
}

html.dark body.rich-dashboard-mode {
  background: #070707;
}

button,
a,
input,
select,
textarea,
[data-project-card],
[data-editable-component] {
  transition: all 200ms ease-out;
}

[data-editable-component] {
  max-width: 100%;
  overflow-wrap: anywhere;
}

[data-editable-component]:focus {
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

dialog {
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
}

.rich-glass-card {
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 1rem;
  box-shadow: 0 22px 70px rgba(79, 70, 229, 0.14);
  color: #18181b !important;
}

html.dark .rich-glass-card {
  background: rgba(30, 31, 38, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.08);
  color: #f4f4f5 !important;
}

html:not(.dark) .rich-glass-card h1,
html:not(.dark) .rich-glass-card h2,
html:not(.dark) .rich-glass-card h3,
html:not(.dark) .rich-glass-card label,
html:not(.dark) .rich-glass-card input,
html:not(.dark) .rich-glass-card textarea,
html:not(.dark) .rich-glass-card select {
  color: #18181b !important;
}

html:not(.dark) .rich-glass-card > div > p,
html:not(.dark) .rich-glass-card form div > p {
  color: #52525b !important;
}

.rich-pill-primary {
  align-items: center;
  background: #6366f1;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
}

.rich-pill-primary:hover {
  background: #4f46e5;
}

.rich-pill-secondary {
  align-items: center;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  color: #27272a;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
}

html.dark .rich-pill-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f4f4f5;
}

.rich-plan-card {
  background-clip: padding-box;
  overflow: hidden;
  position: relative;
}

.rich-plan-card::before {
  background: linear-gradient(135deg, #ec4899, #f59e0b, #22c55e, #06b6d4, #6366f1);
  border-radius: inherit;
  content: "";
  inset: 0;
  opacity: 0;
  padding: 2px;
  pointer-events: none;
  position: absolute;
  transition: opacity 200ms ease-out;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.rich-plan-card:hover::before,
.rich-plan-card:focus-visible::before {
  opacity: 1;
}

.rich-plan-card-featured {
  box-shadow: 0 22px 70px rgba(99, 102, 241, 0.18);
}

.rich-best-value-badge {
  align-items: center;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 0.55rem 0.7rem;
  position: absolute;
  right: 1rem;
  text-transform: uppercase;
  top: 1rem;
}

html:not(.dark) body > header[data-rich-ui] {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(255, 255, 255, 0.68) !important;
  color: #18181b !important;
}

html:not(.dark) body > header[data-rich-ui] a,
html:not(.dark) body > header[data-rich-ui] button,
html:not(.dark) body > header[data-rich-ui] span {
  color: inherit;
}

html:not(.dark) body > header[data-rich-ui] a[href="/login"],
html:not(.dark) body > header[data-rich-ui] form button {
  background: rgba(255, 255, 255, 0.76) !important;
  color: #27272a !important;
}

html:not(.dark) .rich-super-dashboard-root > aside,
html:not(.dark) .rich-super-dashboard-root > div > [data-rich-ui],
html:not(.dark) .rich-super-dashboard-root [data-project-card],
html:not(.dark) .rich-super-dashboard-root #templates > div:last-child > article,
html:not(.dark) .rich-super-dashboard-root form[data-suggestion-form],
html:not(.dark) .rich-super-dashboard-root #account article,
html:not(.dark) .rich-super-dashboard-root #account > div:last-child {
  background: rgba(255, 255, 255, 0.78) !important;
  border-color: rgba(255, 255, 255, 0.68) !important;
  color: #18181b !important;
}

html:not(.dark) .rich-super-dashboard-root h1,
html:not(.dark) .rich-super-dashboard-root h2,
html:not(.dark) .rich-super-dashboard-root h3,
html:not(.dark) .rich-super-dashboard-root [class*="dark:text-white"],
html:not(.dark) .rich-super-dashboard-root [class*="dark:text-zinc-100"],
html:not(.dark) .rich-super-dashboard-root [class*="dark:text-zinc-200"],
html:not(.dark) .rich-super-dashboard-root [class*="dark:text-zinc-300"],
html:not(.dark) .rich-super-dashboard-root [class*="dark:text-emerald-50"],
html:not(.dark) .rich-super-dashboard-root [class*="dark:text-sky-50"],
html:not(.dark) .rich-super-dashboard-root [class*="dark:text-amber-50"] {
  color: #18181b !important;
}

html:not(.dark) .rich-super-dashboard-root p,
html:not(.dark) .rich-super-dashboard-root textarea,
html:not(.dark) .rich-super-dashboard-root input,
html:not(.dark) .rich-super-dashboard-root select {
  color: #52525b !important;
}

html:not(.dark) .rich-super-dashboard-root button:not(.project-menu-button):not([data-open-create-project]):not([data-create-project]):not([data-confirm-cancel-subscription]):not([type="submit"]),
html:not(.dark) .rich-super-dashboard-root .project-menu {
  background: rgba(255, 255, 255, 0.88) !important;
  color: #27272a !important;
}

html:not(.dark) main#app:has(#projects):has(#templates) > section > aside,
html:not(.dark) main#app:has(#projects):has(#templates) > section > div > [data-rich-ui],
html:not(.dark) main#app:has(#projects):has(#templates) [data-project-card],
html:not(.dark) main#app:has(#projects):has(#templates) #templates > div:last-child > article,
html:not(.dark) main#app:has(#projects):has(#templates) form[data-suggestion-form],
html:not(.dark) main#app:has(#projects):has(#templates) #account article,
html:not(.dark) main#app:has(#projects):has(#templates) #account > div:last-child {
  background: rgba(255, 255, 255, 0.78) !important;
  border-color: rgba(255, 255, 255, 0.68) !important;
  color: #18181b !important;
}

html:not(.dark) main#app:has(#projects):has(#templates) h1,
html:not(.dark) main#app:has(#projects):has(#templates) h2,
html:not(.dark) main#app:has(#projects):has(#templates) h3,
html:not(.dark) main#app:has(#projects):has(#templates) [class*="dark:text-white"],
html:not(.dark) main#app:has(#projects):has(#templates) [class*="dark:text-zinc-100"],
html:not(.dark) main#app:has(#projects):has(#templates) [class*="dark:text-zinc-200"],
html:not(.dark) main#app:has(#projects):has(#templates) [class*="dark:text-zinc-300"],
html:not(.dark) main#app:has(#projects):has(#templates) [class*="dark:text-emerald-50"],
html:not(.dark) main#app:has(#projects):has(#templates) [class*="dark:text-sky-50"],
html:not(.dark) main#app:has(#projects):has(#templates) [class*="dark:text-amber-50"] {
  color: #18181b !important;
}

html:not(.dark) main#app:has(#projects):has(#templates) p,
html:not(.dark) main#app:has(#projects):has(#templates) textarea,
html:not(.dark) main#app:has(#projects):has(#templates) input,
html:not(.dark) main#app:has(#projects):has(#templates) select {
  color: #52525b !important;
}

html:not(.dark) main#app:has(#projects):has(#templates) button:not(.project-menu-button):not([data-open-create-project]):not([data-create-project]):not([data-confirm-cancel-subscription]):not([type="submit"]),
html:not(.dark) main#app:has(#projects):has(#templates) .project-menu {
  background: rgba(255, 255, 255, 0.88) !important;
  color: #27272a !important;
}

.rich-theme-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  display: inline-flex;
  gap: 0.55rem;
  height: 2.5rem;
  justify-content: center;
  padding: 0.25rem 0.35rem 0.25rem 0.85rem;
  width: auto;
}

html.dark .rich-theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
}

.rich-theme-track {
  background: rgba(24, 24, 27, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(24, 24, 27, 0.08);
  display: block;
  height: 1.75rem;
  padding: 0.1875rem;
  position: relative;
  width: 3.25rem;
}

.rich-theme-thumb {
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(24, 24, 27, 0.18);
  display: block;
  height: 1.25rem;
  transform: translateX(0);
  transition: transform 200ms ease-out, background-color 200ms ease-out;
  width: 1.25rem;
}

html.dark .rich-theme-track {
  background: rgba(99, 102, 241, 0.45);
  border-color: rgba(255, 255, 255, 0.12);
}

html.dark .rich-theme-thumb {
  background: #c7d2fe;
  transform: translateX(1.45rem);
}

.rich-tab-icon {
  display: block;
  height: 1.125rem;
  position: relative;
  width: 1.125rem;
}

.rich-tab-home::before {
  border: 2px solid currentColor;
  border-top: 0;
  bottom: 0.0625rem;
  content: "";
  height: 0.65rem;
  left: 0.18rem;
  position: absolute;
  width: 0.78rem;
}

.rich-tab-home::after {
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  content: "";
  height: 0.72rem;
  left: 0.25rem;
  position: absolute;
  top: 0.12rem;
  transform: rotate(45deg);
  width: 0.72rem;
}

.rich-tab-create::before,
.rich-tab-create::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.rich-tab-create::before {
  height: 0.9rem;
  width: 2px;
}

.rich-tab-create::after {
  height: 2px;
  width: 0.9rem;
}

.rich-tab-profile::before {
  border: 2px solid currentColor;
  border-radius: 999px;
  content: "";
  height: 0.42rem;
  left: 0.36rem;
  position: absolute;
  top: 0.12rem;
  width: 0.42rem;
}

.rich-tab-profile::after {
  border: 2px solid currentColor;
  border-radius: 999px 999px 0.25rem 0.25rem;
  bottom: 0.08rem;
  content: "";
  height: 0.55rem;
  left: 0.18rem;
  position: absolute;
  width: 0.8rem;
}

.rich-global-spinner {
  background: rgba(30, 31, 38, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  bottom: 5rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.24);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0;
  padding: 0.55rem 0.85rem;
  pointer-events: none;
  position: fixed;
  right: 1rem;
  transform: translateY(0.5rem);
  transition: all 180ms ease-out;
  z-index: 1000;
}

.rich-section-panel {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 1.25rem;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
  padding: 1.25rem;
}

html.dark .rich-section-panel {
  background: rgba(25, 29, 34, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
}

.rich-section-heading {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

.rich-section-heading::before {
  border-radius: 999px;
  content: "";
  height: 2.25rem;
  width: 0.35rem;
}

.rich-section-heading-projects::before {
  background: #10b981;
}

.rich-section-heading-templates::before {
  background: #0ea5e9;
}

.rich-section-heading-suggestions::before {
  background: #f59e0b;
}

.rich-template-preview {
  aspect-ratio: 16 / 10;
  border-radius: 1rem;
  overflow: hidden;
}

.rich-template-preview-shopify {
  background: #f1f2f1;
  color: #202124;
}

.rich-template-preview-youtube {
  background: #ffffff;
  color: #0f0f0f;
}

.rich-template-preview-tiktok {
  background: #0f0f12;
  color: #ffffff;
}

.rich-template-preview-grid {
  display: grid;
  gap: 0.35rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rich-template-preview-card {
  border-radius: 0.6rem;
  min-height: 2.35rem;
}

.rich-dashboard-toolbar {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  bottom: 1rem;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.18);
  display: flex;
  gap: 0.5rem;
  left: 50%;
  max-width: calc(100vw - 1.5rem);
  overflow-x: auto;
  padding: 0.45rem;
  position: fixed;
  transform: translateX(-50%);
  z-index: 60;
}

html.dark .rich-dashboard-toolbar {
  background: rgba(20, 20, 22, 0.86);
  border-color: rgba(255, 255, 255, 0.12);
}

.rich-dashboard-toolbar a,
.rich-dashboard-toolbar label,
.rich-dashboard-toolbar button,
.rich-dashboard-toolbar span {
  white-space: nowrap;
}

@media (min-width: 768px) {
  .rich-dashboard-toolbar {
    left: 1rem;
    transform: none;
  }
}

.rich-dashboard-theme-toggle {
  align-items: center;
  background: rgba(244, 244, 245, 0.92);
  border: 1px solid rgba(212, 212, 216, 0.82);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  height: 2.4rem;
  justify-content: center;
  position: relative;
  width: 2.4rem;
}

.rich-dashboard-theme-toggle::before {
  background: #f59e0b;
  border-radius: 999px;
  box-shadow: 0 0 0 0.22rem rgba(245, 158, 11, 0.18);
  content: "";
  height: 0.86rem;
  transition: all 200ms ease-out;
  width: 0.86rem;
}

.rich-dashboard-theme-toggle::after {
  border-radius: 999px;
  box-shadow: -0.26rem 0.08rem 0 0.02rem #c7d2fe;
  content: "";
  height: 0.98rem;
  opacity: 0;
  position: absolute;
  transform: translate(0.16rem, -0.02rem) scale(0.8);
  transition: all 200ms ease-out;
  width: 0.98rem;
}

html.dark .rich-dashboard-theme-toggle {
  background: rgba(39, 39, 42, 0.86);
  border-color: rgba(255, 255, 255, 0.12);
}

html.dark .rich-dashboard-theme-toggle::before {
  opacity: 0;
  transform: scale(0.6) rotate(30deg);
}

html.dark .rich-dashboard-theme-toggle::after {
  opacity: 1;
  transform: translate(0.16rem, -0.02rem) scale(1);
}

.rich-dashboard-screen {
  margin: 0;
  min-height: 100dvh;
  width: 100%;
}

.rich-dashboard-shell {
  box-sizing: border-box;
  min-height: 100dvh;
  overflow-x: hidden;
  width: 100%;
}

.rich-dashboard-shell > .grid {
  min-height: calc(100dvh - 3.25rem);
}

@media (max-width: 1023px) {
  .rich-dashboard-shell > .grid {
    min-height: 100dvh;
  }
}

[data-dashboard-editor] {
  color: #18181b;
  min-width: 0;
  padding: 0 0 5.75rem;
}

[data-dashboard-editor] > div:first-of-type {
  min-width: 0;
}

html.dark [data-dashboard-editor] {
  color: #f4f4f5;
}

[data-dashboard-editor] article,
[data-dashboard-editor] .rich-platform-graph,
[data-dashboard-editor] aside {
  color: inherit;
}

[data-dashboard-editor] input,
[data-dashboard-editor] select,
[data-dashboard-editor] textarea {
  color: inherit;
}

html:not(.dark) [data-dashboard-platform="shopify"] .rich-dashboard-shell {
  background: #f3f3f3 !important;
  color: #202124 !important;
}

html:not(.dark) [data-dashboard-platform="youtube"] .rich-dashboard-shell {
  background: #ffffff !important;
  color: #0f0f0f !important;
}

html:not(.dark) [data-dashboard-platform="tiktok"] .rich-dashboard-shell {
  background: #ffffff !important;
  color: #18181b !important;
}

html:not(.dark) [data-dashboard-editor] article,
html:not(.dark) [data-dashboard-editor] .rich-platform-graph {
  background: #ffffff !important;
  color: #18181b !important;
}

html:not(.dark) [data-dashboard-editor] aside {
  background: rgba(255, 255, 255, 0.54) !important;
  color: #52525b !important;
}

html:not(.dark) [data-dashboard-editor] [class*="dark:text-white"],
html:not(.dark) [data-dashboard-editor] [class*="dark:text-zinc-100"],
html:not(.dark) [data-dashboard-editor] [class*="dark:text-zinc-200"],
html:not(.dark) [data-dashboard-editor] [class*="dark:text-zinc-300"] {
  color: #18181b !important;
}

[data-dashboard-editor] [contenteditable="true"] {
  cursor: text;
}

[data-dashboard-editor] [contenteditable="true"]:hover {
  background: rgba(255, 255, 255, 0.55);
}

html.dark [data-dashboard-editor] [contenteditable="true"]:hover {
  background: rgba(255, 255, 255, 0.08);
}

.htmx-request .rich-global-spinner,
.rich-global-spinner.htmx-request {
  opacity: 1;
  transform: translateY(0);
}

.htmx-indicator {
  opacity: 0;
}

.htmx-request .htmx-indicator,
.htmx-indicator.htmx-request {
  opacity: 1;
}

.project-menu {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-color: rgba(255, 255, 255, 0.72);
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  padding: 0.35rem;
}

html.dark .project-menu {
  background: rgba(30, 31, 38, 0.94);
  border-color: rgba(255, 255, 255, 0.08);
}

.rich-graph-canvas {
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
    linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(20, 184, 166, 0.08));
  border: 1.5px dashed #c7d2fe;
  border-radius: 1.25rem;
  box-shadow: inset 0 2px 12px rgba(15, 23, 42, 0.1);
  min-height: 13rem;
}

html.dark .rich-graph-canvas {
  background:
    linear-gradient(rgba(26, 27, 35, 0.94), rgba(26, 27, 35, 0.94)),
    linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(20, 184, 166, 0.12));
  border-color: rgba(129, 140, 248, 0.6);
}

.rich-canvas-tooltip {
  background: rgba(24, 24, 27, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0;
  padding: 0.35rem 0.55rem;
  pointer-events: none;
  position: fixed;
  transform: translate(0.75rem, -2rem);
  transition: opacity 120ms ease-out;
  z-index: 1000;
}

.rich-canvas-tooltip[data-visible="true"] {
  opacity: 1;
}

.rich-platform-graph svg {
  display: block;
  height: auto;
  max-height: 18rem;
  width: 100%;
}

.rich-rendered-graph {
  opacity: 1;
  transition: opacity 180ms ease-out, transform 180ms ease-out;
}

.rich-rendered-graph[data-updating="true"] {
  opacity: 0.45;
  transform: translateY(0.2rem);
}

.rich-rendered-graph path[data-rich-live-graph] {
  animation: richGraphDraw 420ms ease-out both;
}

@keyframes richGraphDraw {
  from {
    stroke-dasharray: 1 500;
  }

  to {
    stroke-dasharray: 500 0;
  }
}

[data-dashboard-platform="shopify"] {
  --rich-graph-line: #0284c7;
  --rich-graph-point: #10b981;
  --rich-graph-grid: #d8dedc;
  --rich-graph-text: #5f6b66;
}

[data-dashboard-platform="youtube"] {
  --rich-graph-line: #14b8a6;
  --rich-graph-point: #14b8a6;
  --rich-graph-grid: #e5e7eb;
  --rich-graph-text: #6b7280;
}

[data-dashboard-platform="tiktok"] {
  --rich-graph-line: #22d3ee;
  --rich-graph-point: #fb7185;
  --rich-graph-grid: #e5e7eb;
  --rich-graph-text: #6b7280;
}

html.dark [data-dashboard-platform="shopify"] {
  --rich-graph-grid: rgba(255, 255, 255, 0.12);
  --rich-graph-text: rgba(255, 255, 255, 0.6);
}

html.dark [data-dashboard-platform="youtube"] {
  --rich-graph-grid: rgba(255, 255, 255, 0.12);
  --rich-graph-text: rgba(255, 255, 255, 0.6);
}

html.dark [data-dashboard-platform="tiktok"] {
  --rich-graph-grid: rgba(255, 255, 255, 0.16);
  --rich-graph-text: rgba(255, 255, 255, 0.62);
}

.rich-platform-graph svg rect[fill="white"] {
  fill: transparent !important;
}

.rich-platform-graph svg line {
  stroke: var(--rich-graph-grid, #d1d5db) !important;
}

.rich-platform-graph svg text {
  fill: var(--rich-graph-text, #6b7280) !important;
}

.rich-platform-graph svg path[stroke="#18181b"] {
  stroke: var(--rich-graph-line, #0284c7) !important;
}

.rich-platform-graph svg circle {
  fill: var(--rich-graph-point, #10b981) !important;
}

.rich-editor-field [data-editable-component] {
  border-bottom: 2px solid #e4e4e7;
  border-radius: 0;
  display: block;
  min-height: 2.4rem;
  outline: none;
  padding: 0.45rem 0.1rem;
  width: 100%;
}

.rich-editor-field [data-editable-component]:hover {
  background: rgba(99, 102, 241, 0.06);
  border-color: #c7d2fe;
}

.rich-editor-field [data-editable-component]:focus {
  background: transparent;
  border-color: #6366f1;
}

.rich-editor-field [data-editable-component][data-dirty="true"] {
  background: rgba(251, 191, 36, 0.12);
  border-color: #f59e0b;
}

html.dark .rich-editor-field [data-editable-component] {
  border-color: rgba(255, 255, 255, 0.12);
}

html.dark .rich-editor-field [data-editable-component]:hover,
html.dark .rich-editor-field [data-editable-component]:focus {
  background: rgba(99, 102, 241, 0.12);
  border-color: #818cf8;
}

.rich-logo-preview[data-empty="true"] {
  display: none;
}

.rich-logo-empty[data-empty="false"] {
  display: none;
}

.rich-google-dot {
  border-radius: 999px;
  display: inline-block;
  height: 0.5rem;
  width: 0.5rem;
}

.rich-message {
  backdrop-filter: blur(18px);
  border-radius: 1rem !important;
}

@media (max-width: 767px) {
  body {
    font-size: 14px;
  }

  main#app {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  body.rich-dashboard-mode main#app {
    padding-left: 0;
    padding-right: 0;
  }

  .rich-dashboard-toolbar {
    justify-content: center;
    padding: 0.35rem;
    width: calc(100vw - 1rem);
  }

  main#app:has(#projects):has(#templates) button[aria-label="Create dashboard"] {
    display: none !important;
  }

  [data-dashboard-editor] {
    padding: 0 0 5.75rem;
  }

  [data-dashboard-editor] #metric-base-earnings,
  [data-dashboard-editor] #metric-order-count,
  [data-dashboard-editor] #metric-visitor-count,
  [data-dashboard-editor] #metric-subscriber-count,
  [data-dashboard-editor] #metric-total-views,
  [data-dashboard-editor] #metric-follower-count,
  [data-dashboard-editor] #metric-video-views {
    font-size: 1.75rem;
    line-height: 2.1rem;
  }

  [data-dashboard-editor] .rich-platform-graph {
    padding: 0.85rem;
  }

  .rich-graph-canvas {
    min-height: 10rem;
  }
}

.rich-youtube-dashboard {
  background: #ffffff;
  color: #0f0f0f;
}

html.dark .rich-youtube-dashboard {
  background: #0b0b0b;
  color: #f5f5f5;
}

.rich-youtube-topbar {
  backdrop-filter: blur(18px);
}

.rich-youtube-sidebar {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

html.dark .rich-youtube-sidebar {
  background: rgba(17, 17, 17, 0.84);
}

.rich-youtube-tabs {
  scrollbar-width: none;
}

.rich-youtube-tabs::-webkit-scrollbar {
  display: none;
}

.rich-youtube-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 1.25rem;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

html.dark .rich-youtube-card {
  background: rgba(20, 20, 20, 0.96);
  border-color: rgba(255, 255, 255, 0.08);
}

.rich-youtube-chart {
  background:
    linear-gradient(180deg, rgba(250, 250, 250, 0.9), rgba(247, 247, 247, 0.92)),
    linear-gradient(135deg, rgba(19, 177, 166, 0.08), rgba(16, 185, 129, 0.02));
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 1.25rem;
  min-height: 18rem;
}

html.dark .rich-youtube-chart {
  background:
    linear-gradient(180deg, rgba(23, 23, 23, 0.96), rgba(15, 15, 15, 0.96)),
    linear-gradient(135deg, rgba(19, 177, 166, 0.18), rgba(16, 185, 129, 0.08));
  border-color: rgba(255, 255, 255, 0.08);
}

.rich-youtube-row,
.rich-youtube-video-row {
  align-items: center;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1.4fr) minmax(8rem, 0.6fr) minmax(6rem, 0.32fr);
}

.rich-youtube-row {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(5rem, 0.35fr) 2rem;
}

.rich-youtube-input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(156, 163, 175, 0.4);
  color: inherit;
  font: inherit;
  font-weight: 600;
  outline: none;
  padding: 0.55rem 0;
  width: 100%;
}

.rich-youtube-input:focus {
  border-bottom-color: #14b8a6;
}

.rich-youtube-input-amount {
  text-align: right;
}

.rich-youtube-bar-wrap {
  align-items: center;
  display: flex;
  min-height: 0.55rem;
}

.rich-youtube-bar {
  background: #14b8a6;
  border-radius: 999px;
  display: block;
  height: 0.5rem;
  transition: width 160ms ease-out;
  width: 0%;
}

.rich-youtube-bar[data-active="false"] {
  opacity: 0.35;
}

.rich-youtube-icon-btn {
  align-items: center;
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.12);
  border-radius: 999px;
  color: #0f766e;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.rich-youtube-toolbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: 999px;
  bottom: 1rem;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16);
  display: flex;
  gap: 0.45rem;
  left: 1rem;
  padding: 0.4rem;
  position: fixed;
  z-index: 40;
}

html.dark .rich-youtube-toolbar {
  background: rgba(20, 20, 20, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
}

.rich-youtube-toolbar a,
.rich-youtube-toolbar button,
.rich-youtube-toolbar span {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rich-youtube-toolbar button {
  min-width: 2rem;
}

.rich-youtube-mini-nav {
  scrollbar-width: none;
}

.rich-youtube-mini-nav::-webkit-scrollbar {
  display: none;
}

@media (max-width: 767px) {
  .rich-youtube-row,
  .rich-youtube-video-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .rich-youtube-toolbar {
    left: 0.5rem;
    bottom: 0.5rem;
    gap: 0.35rem;
  }
}
