:root {
  --theme-transition-speed: 180ms ease;
  --theme-radius: 4px;
}

body,
[class*="bg-"],
[class*="text-"],
[class*="border-"] {
  transition:
    background-color var(--theme-transition-speed),
    color var(--theme-transition-speed),
    border-color var(--theme-transition-speed);
}

.theme-toggle-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  line-height: 1;
}

.theme-toggle-btn [data-theme-label] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.theme-toggle-btn::after {
  content: "";
  width: 1rem;
  height: 1rem;
  background-color: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='12' rx='2'/%3E%3Cpath d='M8 19.5h8'/%3E%3Cpath d='M10 16.5v3'/%3E%3Cpath d='M14 16.5v3'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.theme-toggle-btn[data-theme-current="light"]::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2.5v3'/%3E%3Cpath d='M12 18.5v3'/%3E%3Cpath d='M21.5 12h-3'/%3E%3Cpath d='M5.5 12h-3'/%3E%3Cpath d='M18.7 5.3l-2.2 2.2'/%3E%3Cpath d='M7.5 16.5l-2.2 2.2'/%3E%3Cpath d='M18.7 18.7l-2.2-2.2'/%3E%3Cpath d='M7.5 7.5L5.3 5.3'/%3E%3C/svg%3E");
}

.theme-toggle-btn[data-theme-current="dark"]::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M20.2 14.4A8.5 8.5 0 0 1 9.6 3.8a.6.6 0 0 0-.8-.7A9.9 9.9 0 1 0 21 15.2a.6.6 0 0 0-.8-.8Z'/%3E%3C/svg%3E");
}

.app-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #0ea5e9;
}

.app-brand--with-logo {
  color: #0f172a;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: none;
}

.app-brand__logo {
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
  border-radius: 7px;
}

html[data-theme="dark"] .app-brand--with-logo,
.app-header-on-dark .app-brand--with-logo {
  color: #f8fafc;
}

.app-nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
}

.app-nav-theme {
  order: 99;
  margin-left: 0.5rem;
}

.app-nav-link,
.app-nav-form button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.1rem 0;
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.2;
  transition:
    color var(--theme-transition-speed),
    opacity var(--theme-transition-speed);
}

.app-nav-link::after,
.app-nav-form button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.28rem;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #38bdf8 0%, rgba(56, 189, 248, 0.15) 100%);
  transition: transform 180ms ease;
}

.app-nav-link:hover,
.app-nav-form button:hover {
  color: #0f172a;
}

.app-nav-link:hover::after,
.app-nav-form button:hover::after,
.app-nav-link.is-active::after {
  transform: scaleX(1);
}

.app-nav-link-muted,
.app-nav-form button.app-nav-link-muted {
  color: #64748b;
}

.app-nav-link-muted:hover,
.app-nav-form button.app-nav-link-muted:hover {
  color: #0f172a;
}

.app-nav-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(56, 189, 248, 0.65);
  border-radius: var(--theme-radius);
  background: rgba(14, 165, 233, 0.12);
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    background-color var(--theme-transition-speed),
    border-color var(--theme-transition-speed),
    color var(--theme-transition-speed);
}

.app-nav-accent:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(14, 165, 233, 0.82);
}

.app-nav-theme .theme-toggle-btn {
  min-width: 2.6rem;
  min-height: 2.35rem;
  justify-content: center;
  padding: 0.45rem 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(241, 245, 249, 0.88) 100%
  );
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 8px 24px rgba(15, 23, 42, 0.08);
}

.app-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(203, 213, 225, 0.72);
  color: rgba(100, 116, 139, 0.9);
  font-size: 0.85rem;
}

.app-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.app-footer a {
  color: inherit;
  text-decoration: none;
  transition: color var(--theme-transition-speed);
}

.app-footer a:hover,
.app-footer a.is-active {
  color: #0f172a;
}

.app-footer span {
  color: rgba(148, 163, 184, 0.75);
}

.app-footer-on-dark {
  border-color: rgba(148, 163, 184, 0.18);
  color: rgba(203, 213, 225, 0.72);
}

.app-footer-on-dark a:hover,
.app-footer-on-dark a.is-active {
  color: #f8fafc;
}

.app-footer-on-dark span {
  color: rgba(148, 163, 184, 0.42);
}

.app-nav-theme .theme-toggle-btn:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(224, 242, 254, 0.92) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 10px 28px rgba(14, 165, 233, 0.12);
  transform: translateY(-1px);
}

.app-header-on-dark .app-nav-link,
.app-header-on-dark .app-nav-form button {
  color: #cbd5e1;
}

.app-header-on-dark .app-nav-link:hover,
.app-header-on-dark .app-nav-form button:hover {
  color: #f8fafc;
}

.app-header-on-dark .app-nav-link-muted,
.app-header-on-dark .app-nav-form button.app-nav-link-muted {
  color: #94a3b8;
}

.app-header-on-dark .app-nav-accent {
  color: #f8fafc;
  background: rgba(14, 165, 233, 0.16);
}

.app-header-on-dark .app-nav-theme .theme-toggle-btn {
  border-color: rgba(148, 163, 184, 0.35);
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.7) 0%,
    rgba(30, 41, 59, 0.56) 100%
  );
  color: #e2e8f0;
}

.theme-toggle-menu {
  min-width: 10rem;
}

.theme-toggle-option {
  width: 100%;
  border-radius: var(--theme-radius);
  padding: 0.45rem 0.6rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
}

[class*="rounded"],
[style*="border-radius"] {
  border-radius: var(--theme-radius) !important;
}

.theme-toggle-option:hover {
  background: #f1f5f9;
}

.theme-toggle-option.is-active {
  background: #e2e8f0;
  color: #0f172a;
}

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

html[data-theme="dark"] body {
  background: linear-gradient(
    135deg,
    #020617 0%,
    #0f172a 50%,
    #111827 100%
  ) !important;
  color: #e2e8f0 !important;
}

html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-white\/95 {
  background-color: #0f172a !important;
}

html[data-theme="dark"] .bg-slate-50,
html[data-theme="dark"] .bg-slate-50\/60 {
  background-color: #0b1220 !important;
}

html[data-theme="dark"] .bg-slate-100 {
  background-color: #111827 !important;
}

html[data-theme="dark"] .bg-slate-200,
html[data-theme="dark"] .bg-slate-200\/80 {
  background-color: #1e293b !important;
}

html[data-theme="dark"] .bg-slate-900\/40 {
  background-color: rgba(2, 6, 23, 0.65) !important;
}

html[data-theme="dark"] .text-slate-900 {
  color: #f8fafc !important;
}

html[data-theme="dark"] .text-slate-800 {
  color: #e2e8f0 !important;
}

html[data-theme="dark"] .text-slate-700 {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .text-slate-600,
html[data-theme="dark"] .text-slate-500 {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .text-slate-400 {
  color: #64748b !important;
}

html[data-theme="dark"] .text-slate-300 {
  color: #475569 !important;
}

html[data-theme="dark"] .border-slate-200 {
  border-color: #334155 !important;
}

html[data-theme="dark"] .border-slate-300,
html[data-theme="dark"] .border-slate-700\/60 {
  border-color: #475569 !important;
}

html[data-theme="dark"] .hover\:bg-slate-50:hover,
html[data-theme="dark"] .hover\:bg-slate-100:hover {
  background-color: #1e293b !important;
}

html[data-theme="dark"] .hover\:text-slate-900:hover {
  color: #f8fafc !important;
}

html[data-theme="dark"] .text-amber-500,
html[data-theme="dark"] .text-amber-600,
html[data-theme="dark"] .text-amber-600\/80 {
  color: #38bdf8 !important;
}

html[data-theme="dark"] .text-amber-700 {
  color: #7dd3fc !important;
}

html[data-theme="dark"] .text-amber-800,
html[data-theme="dark"] .text-amber-900 {
  color: #e0f2fe !important;
}

html[data-theme="dark"] .hover\:text-amber-500:hover,
html[data-theme="dark"] .hover\:text-amber-600:hover {
  color: #bae6fd !important;
}

html[data-theme="dark"] .bg-amber-400,
html[data-theme="dark"] .bg-amber-400\/80,
html[data-theme="dark"] .bg-amber-400\/90 {
  background-color: #38bdf8 !important;
  color: #082f49 !important;
}

html[data-theme="dark"] .hover\:bg-amber-300:hover {
  background-color: #7dd3fc !important;
}

html[data-theme="dark"] .bg-amber-50,
html[data-theme="dark"] .bg-amber-100,
html[data-theme="dark"] .hover\:bg-amber-50:hover {
  background-color: rgba(14, 116, 144, 0.25) !important;
}

html[data-theme="dark"] .border-amber-200,
html[data-theme="dark"] .border-amber-300,
html[data-theme="dark"] .border-amber-400 {
  border-color: #0ea5e9 !important;
}

html[data-theme="dark"] .bg-rose-50 {
  background-color: rgba(159, 18, 57, 0.22) !important;
}

html[data-theme="dark"] .border-rose-200 {
  border-color: #be123c !important;
}

html[data-theme="dark"] .text-rose-600,
html[data-theme="dark"] .text-rose-700 {
  color: #fda4af !important;
}

html[data-theme="dark"] .text-rose-900 {
  color: #fecdd3 !important;
}

html[data-theme="dark"] .hover\:bg-rose-50:hover,
html[data-theme="dark"] .hover\:bg-rose-100:hover {
  background-color: rgba(159, 18, 57, 0.34) !important;
}

html[data-theme="dark"] .bg-emerald-50 {
  background-color: rgba(13, 148, 136, 0.2) !important;
}

html[data-theme="dark"] .border-emerald-200 {
  border-color: #0f766e !important;
}

html[data-theme="dark"] .text-emerald-900 {
  color: #99f6e4 !important;
}

html[data-theme="dark"] .app-nav-link,
html[data-theme="dark"] .app-nav-form button {
  color: #cbd5e1;
}

html[data-theme="dark"] .app-nav-link:hover,
html[data-theme="dark"] .app-nav-form button:hover {
  color: #f8fafc;
}

html[data-theme="dark"] .app-nav-link-muted,
html[data-theme="dark"] .app-nav-form button.app-nav-link-muted {
  color: #94a3b8;
}

html[data-theme="dark"] .app-nav-link-muted:hover,
html[data-theme="dark"] .app-nav-form button.app-nav-link-muted:hover {
  color: #e2e8f0;
}

html[data-theme="dark"] .app-nav-accent {
  border-color: rgba(56, 189, 248, 0.65);
  background: rgba(14, 165, 233, 0.16);
  color: #f8fafc;
}

html[data-theme="dark"] .app-nav-accent:hover {
  background: rgba(56, 189, 248, 0.24);
  border-color: rgba(125, 211, 252, 0.82);
}

html[data-theme="dark"] .app-footer {
  border-color: rgba(148, 163, 184, 0.18);
  color: rgba(203, 213, 225, 0.72);
}

html[data-theme="dark"] .app-footer a:hover,
html[data-theme="dark"] .app-footer a.is-active {
  color: #f8fafc;
}

html[data-theme="dark"] .app-footer span {
  color: rgba(148, 163, 184, 0.42);
}

html[data-theme="dark"] .app-nav-theme .theme-toggle-btn {
  border-color: rgba(148, 163, 184, 0.35);
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.7) 0%,
    rgba(30, 41, 59, 0.56) 100%
  );
  color: #e2e8f0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(2, 6, 23, 0.35);
}

html[data-theme="dark"] .app-nav-theme .theme-toggle-btn:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: linear-gradient(
    135deg,
    rgba(8, 47, 73, 0.78) 0%,
    rgba(30, 41, 59, 0.68) 100%
  );
}

.account-menu {
  position: relative;
  z-index: 60;
}

.account-menu {
  position: relative;
  z-index: 1000;
}

.account-menu__button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.25rem 0.55rem 0.25rem 0.25rem;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #0f172a;
  cursor: pointer;
  list-style: none;
}

.account-menu__button::-webkit-details-marker {
  display: none;
}

.account-menu__avatar {
  display: inline-flex;
  width: 1.8rem;
  height: 1.8rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #0ea5e9;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.account-menu__plan {
  font-size: 0.78rem;
  font-weight: 700;
}

.account-menu__panel {
  position: absolute;
  z-index: 1001;
  top: calc(100% + 0.55rem);
  right: 0;
  width: min(21rem, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: var(--theme-radius);
  background: #fff;
  color: #0f172a;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
}

.account-menu__identity {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.account-menu__email {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
}

.account-menu__status {
  margin: 0.2rem 0 0;
  color: #64748b;
  font-size: 0.78rem;
}

.account-menu__notice {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.75rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-radius: var(--theme-radius);
  background: rgba(224, 242, 254, 0.62);
  color: #075985;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
}

.account-menu__notice-title {
  color: #0369a1;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.account-menu__limits {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.account-menu__limits div,
.account-limits-panel div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.account-menu__limits span,
.account-limits-panel span {
  color: #64748b;
  font-size: 0.76rem;
}

.account-menu__limits strong,
.account-limits-panel strong {
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 800;
}

.account-menu__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.account-menu__actions form {
  margin: 0;
  min-width: 0;
}

.account-menu__actions a,
.account-menu__actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.25rem;
  padding: 0 0.85rem;
  border: 1px solid rgba(56, 189, 248, 0.58);
  border-radius: var(--theme-radius);
  background: linear-gradient(180deg, #38bdf8, #0ea5e9);
  color: #031524;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.16);
  transition:
    filter var(--theme-transition-speed),
    transform var(--theme-transition-speed),
    box-shadow var(--theme-transition-speed);
}

.account-menu__actions button {
  cursor: pointer;
}

.account-menu__actions button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.account-menu__actions a:hover,
.account-menu__actions button:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(14, 165, 233, 0.22);
}

.account-menu__actions button:disabled:hover {
  filter: none;
  transform: none;
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.16);
}

.email-verification-notice {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-left-width: 4px;
  border-radius: var(--theme-radius);
  background:
    linear-gradient(180deg, rgba(240, 249, 255, 0.82), rgba(224, 242, 254, 0.58));
  color: #0f172a;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.email-verification-notice__eyebrow {
  margin: 0;
  color: #0369a1;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-transform: uppercase;
}

.email-verification-notice__title {
  margin: 0.25rem 0 0;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.email-verification-notice__body {
  margin: 0.45rem 0 0;
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.6;
}

.email-verification-notice__button {
  display: inline-flex;
  width: 100%;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: var(--theme-radius);
  background: #fff;
  color: #0369a1;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.12);
}

@media (min-width: 768px) {
  .email-verification-notice__button {
    width: auto;
  }
}

.account-limits-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
  padding: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: var(--theme-radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

@media (max-width: 760px) {
  .account-limits-panel {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] .account-menu__button,
.editor-header .account-menu__button {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
}

html[data-theme="dark"] .account-menu__panel,
.editor-header .account-menu__panel {
  border-color: rgba(71, 85, 105, 0.9);
  background: #0f172a;
  color: #e2e8f0;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.52);
}

html[data-theme="dark"] .account-menu__status,
.editor-header .account-menu__status,
html[data-theme="dark"] .account-menu__limits span,
.editor-header .account-menu__limits span {
  color: #94a3b8;
}

html[data-theme="dark"] .account-menu__notice,
.editor-header .account-menu__notice {
  border-color: rgba(56, 189, 248, 0.24);
  background:
    linear-gradient(180deg, rgba(14, 116, 144, 0.24), rgba(15, 23, 42, 0.48));
  color: #cbd5e1;
}

html[data-theme="dark"] .account-menu__notice-title,
.editor-header .account-menu__notice-title {
  color: #7dd3fc;
}

html[data-theme="dark"] .email-verification-notice,
.editor-header + .email-verification-notice {
  border-color: rgba(56, 189, 248, 0.24);
  border-left-color: rgba(125, 211, 252, 0.72);
  background:
    linear-gradient(180deg, rgba(14, 116, 144, 0.2), rgba(15, 23, 42, 0.58));
  color: #e2e8f0;
  box-shadow: 0 12px 34px rgba(2, 6, 23, 0.24);
}

html[data-theme="dark"] .email-verification-notice__eyebrow,
.editor-header + .email-verification-notice .email-verification-notice__eyebrow {
  color: #7dd3fc;
}

html[data-theme="dark"] .email-verification-notice__title,
.editor-header + .email-verification-notice .email-verification-notice__title {
  color: #f8fafc;
}

html[data-theme="dark"] .email-verification-notice__body,
.editor-header + .email-verification-notice .email-verification-notice__body {
  color: #cbd5e1;
}

html[data-theme="dark"] .email-verification-notice__button,
.editor-header + .email-verification-notice .email-verification-notice__button {
  border-color: rgba(56, 189, 248, 0.42);
  background: rgba(15, 23, 42, 0.52);
  color: #7dd3fc;
}

html[data-theme="dark"] .account-menu__limits strong,
.editor-header .account-menu__limits strong,
html[data-theme="dark"] .account-limits-panel strong,
.editor-header + .account-limits-panel strong {
  color: #e2e8f0;
}

html[data-theme="dark"] .account-limits-panel,
.editor-header + .account-limits-panel {
  border-color: rgba(71, 85, 105, 0.72);
  background: rgba(15, 23, 42, 0.74);
}

html[data-theme="dark"] .editor-right {
  background: #0b1220 !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] .editor-actions {
  background: #0b1220 !important;
  border-top-color: #334155 !important;
}

html[data-theme="dark"] .editor-tab {
  background: #0b1220 !important;
  border-color: #334155 !important;
  color: #94a3b8 !important;
}

html[data-theme="dark"] .editor-tab.is-active {
  background: #0c4a6e !important;
  border-color: #0ea5e9 !important;
  color: #e0f2fe !important;
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.55) !important;
}

html[data-theme="dark"] .timeline-dock {
  background: linear-gradient(
    180deg,
    rgba(11, 18, 32, 0.95) 0%,
    #0b1220 35%
  ) !important;
  border-color: #334155 !important;
  box-shadow: 0 -8px 24px rgba(2, 6, 23, 0.45) !important;
}

html[data-theme="dark"] .skeleton-card,
html[data-theme="dark"] .skeleton-block {
  background: #0b1220 !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] .skeleton-line {
  background: #1e293b !important;
}

html[data-theme="dark"] .skeleton-card::after,
html[data-theme="dark"] .skeleton-block::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(148, 163, 184, 0.12),
    transparent
  ) !important;
}

html[data-theme="dark"]
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(
    [type="color"]
  ),
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background-color: #0b1220 !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
  font-size: 14px;
}

html[data-theme="dark"] input[type="color"] {
  background: #0b1220 !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder,
html[data-theme="dark"] .placeholder\:text-slate-400::placeholder {
  color: #64748b !important;
}

html[data-theme="dark"] option {
  background: #0b1220;
  color: #e2e8f0;
}

html[data-theme="dark"] .theme-toggle-btn {
  background: #0b1220 !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .theme-toggle-btn:hover {
  background: #1e293b !important;
}

html[data-theme="dark"] .theme-toggle-menu {
  background: #111827 !important;
  border-color: #334155 !important;
  box-shadow: 0 18px 28px rgba(2, 6, 23, 0.55) !important;
}

html[data-theme="dark"] .theme-toggle-option {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .theme-toggle-option:hover {
  background: #1e293b !important;
}

html[data-theme="dark"] .theme-toggle-option.is-active {
  background: #0c4a6e !important;
  color: #e0f2fe !important;
}

html[data-theme="dark"] .checkbox {
  border-color: #475569;
  background: #0b1220;
}

html[data-theme="dark"] .checkbox:checked {
  border-color: #0ea5e9;
  background: #38bdf8;
}

html[data-theme="dark"] .checkbox:checked::after {
  border-color: #082f49;
}

html[data-theme="dark"] #timeline-ruler,
html[data-theme="dark"] .timeline-ruler-track {
  background: linear-gradient(180deg, #0b1220 0%, #111827 100%) !important;
  border-bottom-color: #334155 !important;
}

html[data-theme="dark"] #timeline-viewport {
  background: #0b1220 !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] .timeline-ruler-tick {
  background: #475569 !important;
}

html[data-theme="dark"] .timeline-ruler-tick.major {
  background: #64748b !important;
}

html[data-theme="dark"] .timeline-ruler-label {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .timeline-block.is-active {
  background: rgba(56, 189, 248, 0.28) !important;
  border-color: rgba(56, 189, 248, 0.56) !important;
}

html[data-theme="dark"] .video-controls {
  border-color: #334155 !important;
  background: #0b1220 !important;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.5) !important;
}

html[data-theme="dark"] .video-controls .vc-btn,
html[data-theme="dark"] .video-controls select {
  border-color: #334155 !important;
  background: #111827 !important;
  color: #e2e8f0 !important;
}

html[data-theme="dark"] .video-controls .vc-btn:hover {
  border-color: #38bdf8 !important;
  color: #e0f2fe !important;
  background: #0c4a6e !important;
}

html[data-theme="dark"] .video-time {
  color: #94a3b8 !important;
}
