:root {
  --oopsie-primary: #e66309;
  --oopsie-primary-2: #e66309;
  --oopsie-bg: #0b1017;
  --oopsie-surface: #121924;
  --oopsie-surface-2: #171f2a;
  --oopsie-text: #f5f7fb;
  --oopsie-muted: rgba(245, 247, 251, 0.64);
  --oopsie-border: rgba(245, 247, 251, 0.07);
  --oopsie-shadow: 0 12px 30px rgba(0, 0, 0, 0.44);
}

:root:not([data-theme="light"]) body {
  background:
    radial-gradient(1000px 560px at 18% 0%, rgba(247, 144, 17, 0.03), transparent 62%),
    radial-gradient(1000px 560px at 82% 10%, rgba(230, 99, 9, 0.02), transparent 62%),
    var(--oopsie-bg);
  color: var(--oopsie-text);
}

:root:not([data-theme="light"]) body.oopsie-bg {
  background-image:
    linear-gradient(rgba(255, 170, 92, 0.03), rgba(255, 170, 92, 0.03)),
    linear-gradient(rgba(13, 16, 20, 0.03), rgba(13, 16, 20, 0.03)),
    url("../images/bg/oopsie-bg.png");
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center top !important;
  background-attachment: fixed !important;
}

:root:not([data-theme="light"]) body.oopsie-bg::before {
  background: linear-gradient(180deg, rgba(7, 10, 16, 0.34), rgba(7, 10, 16, 0.56));
}

:root[data-theme="light"] {
  --oopsie-bg: #f4f6fb;
  --oopsie-surface: #ffffff;
  --oopsie-surface-2: #f1f4fa;
  --oopsie-text: #1b2330;
  --oopsie-muted: rgba(27, 35, 48, 0.68);
  --oopsie-border: rgba(17, 24, 39, 0.12);
  --oopsie-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

:root[data-theme="light"] body {
  background:
    radial-gradient(900px 500px at 18% 0%, rgba(247, 144, 17, 0.1), transparent 60%),
    radial-gradient(900px 500px at 82% 10%, rgba(230, 99, 9, 0.07), transparent 60%),
    var(--oopsie-bg);
  color: var(--oopsie-text);
}

:root[data-theme="light"] body.oopsie-bg {
  background-image:
    radial-gradient(1000px 560px at 18% 0%, rgba(247, 144, 17, 0.16), transparent 62%),
    radial-gradient(1000px 560px at 82% 10%, rgba(230, 99, 9, 0.12), transparent 62%),
    url("../images/bg/oopsie-bg-white.png");
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center top !important;
  background-attachment: fixed !important;
}

:root[data-theme="light"] body.oopsie-bg::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.56));
}

:root[data-theme="light"] #sidebar-wrapper,
:root[data-theme="light"] .topbar-nav .navbar {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(17, 24, 39, 0.18) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

:root[data-theme="light"] .sidebar-menu > li > a,
:root[data-theme="light"] .sidebar-header,
:root[data-theme="light"] .text-light-2,
:root[data-theme="light"] .text-light-3,
:root[data-theme="light"] .oopsie-powered-by,
:root[data-theme="light"] .footer,
:root[data-theme="light"] .side-user-name,
:root[data-theme="light"] .sidebar-user-name,
:root[data-theme="light"] .sidebar-user-meta,
:root[data-theme="light"] .card,
:root[data-theme="light"] .navbar,
:root[data-theme="light"] .auth-wrapper,
:root[data-theme="light"] .oopsie-auth-card,
:root[data-theme="light"] label,
:root[data-theme="light"] small,
:root[data-theme="light"] p,
:root[data-theme="light"] h1,
:root[data-theme="light"] h2,
:root[data-theme="light"] h3,
:root[data-theme="light"] h4,
:root[data-theme="light"] h5,
:root[data-theme="light"] h6 {
  color: var(--oopsie-text) !important;
}

:root[data-theme="light"] .sidebar-menu > li > a:hover {
  background: transparent !important;
}

:root[data-theme="light"] .sidebar-menu > li > a {
  border: 0 !important;
  background: transparent !important;
}

:root:not([data-theme="light"]) .sidebar-menu > li > a {
  border: 0 !important;
  background: transparent !important;
}

:root:not([data-theme="light"]) .sidebar-menu > li > a:hover {
  border-color: transparent !important;
  background: transparent !important;
}

:root[data-theme="light"] .sidebar-menu > li > a i,
:root[data-theme="light"] .sidebar-menu a i,
:root[data-theme="light"] .topbar-nav .nav-link i,
:root[data-theme="light"] .menu-icon,
:root[data-theme="light"] .icon-menu,
:root[data-theme="light"] .sidebar-user-arrow {
  color: #1c2635 !important;
}

:root:not([data-theme="light"]) .sidebar-menu > li > a i,
:root:not([data-theme="light"]) .sidebar-menu a i,
:root:not([data-theme="light"]) .topbar-nav .nav-link i,
:root:not([data-theme="light"]) .menu-icon,
:root:not([data-theme="light"]) .icon-menu,
:root:not([data-theme="light"]) .sidebar-user-arrow {
  color: #fff !important;
}

:root[data-theme="light"] .card,
:root[data-theme="light"] .widget-content,
:root[data-theme="light"] .widget-chart,
:root[data-theme="light"] .oopsie-auth-card,
:root[data-theme="light"] .oopsie-filter-card,
:root[data-theme="light"] .oopsie-panel,
:root[data-theme="light"] .modal-content {
  background: rgba(251, 253, 255, 0.96) !important;
  border-color: rgba(17, 24, 39, 0.16) !important;
  box-shadow: var(--oopsie-shadow);
}

:root[data-theme="light"] .oopsie-input,
:root[data-theme="light"] .form-control,
:root[data-theme="light"] select,
:root[data-theme="light"] textarea {
  background: #fff !important;
  color: var(--oopsie-text) !important;
  border-color: rgba(17, 24, 39, 0.18) !important;
}

:root[data-theme="light"] .oopsie-input::placeholder {
  color: rgba(17, 24, 39, 0.45);
}

:root[data-theme="light"] input::placeholder,
:root[data-theme="light"] textarea::placeholder,
:root[data-theme="light"] .form-control::placeholder,
:root[data-theme="light"] .oopsie-input::placeholder,
:root[data-theme="light"] input::-ms-input-placeholder,
:root[data-theme="light"] textarea::-ms-input-placeholder,
:root[data-theme="light"] .form-control::-ms-input-placeholder,
:root[data-theme="light"] .oopsie-input::-ms-input-placeholder,
:root[data-theme="light"] input:-ms-input-placeholder,
:root[data-theme="light"] textarea:-ms-input-placeholder,
:root[data-theme="light"] .form-control:-ms-input-placeholder,
:root[data-theme="light"] .oopsie-input:-ms-input-placeholder {
  color: rgba(27, 35, 48, 0.48) !important;
  opacity: 1 !important;
}

:root:not([data-theme="light"]) input::placeholder,
:root:not([data-theme="light"]) textarea::placeholder,
:root:not([data-theme="light"]) .form-control::placeholder,
:root:not([data-theme="light"]) .oopsie-input::placeholder,
:root:not([data-theme="light"]) input::-ms-input-placeholder,
:root:not([data-theme="light"]) textarea::-ms-input-placeholder,
:root:not([data-theme="light"]) .form-control::-ms-input-placeholder,
:root:not([data-theme="light"]) .oopsie-input::-ms-input-placeholder,
:root:not([data-theme="light"]) input:-ms-input-placeholder,
:root:not([data-theme="light"]) textarea:-ms-input-placeholder,
:root:not([data-theme="light"]) .form-control:-ms-input-placeholder,
:root:not([data-theme="light"]) .oopsie-input:-ms-input-placeholder {
  color: rgba(237, 235, 234, 0.58) !important;
  opacity: 1 !important;
}

:root[data-theme="light"] .oopsie-btn-ghost,
:root[data-theme="light"] .oopsie-btn-outline-primary,
:root[data-theme="light"] .btn-oopsie-ghost,
:root[data-theme="light"] .btn-oopsie-outline {
  color: var(--oopsie-text) !important;
  border-color: rgba(17, 24, 39, 0.22) !important;
  background: rgba(255, 255, 255, 0.8) !important;
}

:root[data-theme="light"] a {
  color: #16202e;
}

:root[data-theme="light"] .brand-logo,
:root[data-theme="light"] .sidebar-footer,
:root[data-theme="light"] .footer,
:root[data-theme="light"] .content-wrapper {
  border-color: rgba(17, 24, 39, 0.16) !important;
}

:root[data-theme="light"] .sidebar-user-toggle {
  border: 0 !important;
  background: rgba(255, 255, 255, 0.8) !important;
  color: #1b2330 !important;
}

.ops-support-toast-host {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2140;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.ops-support-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(380px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--oopsie-border);
  background: color-mix(in srgb, var(--oopsie-surface) 92%, transparent);
  box-shadow: var(--oopsie-shadow);
  color: var(--oopsie-text);
  text-align: left;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(10px) scale(.985);
  transition: opacity .22s ease, transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.ops-support-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ops-support-toast:hover {
  border-color: color-mix(in srgb, var(--oopsie-primary) 34%, var(--oopsie-border));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.ops-support-toast__avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--oopsie-border);
  background: color-mix(in srgb, var(--oopsie-surface-2) 84%, transparent);
}

.ops-support-toast__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ops-support-toast__copy {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
}

.ops-support-toast__headline,
.ops-support-toast__action,
.ops-support-toast__body {
  display: block;
  min-width: 0;
}

.ops-support-toast__headline {
  font-size: .92rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--oopsie-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ops-support-toast__action {
  font-size: .82rem;
  line-height: 1.25;
  font-weight: 600;
  color: var(--oopsie-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ops-support-toast__body {
  font-size: .78rem;
  line-height: 1.35;
  color: var(--oopsie-muted);
  white-space: normal;
  word-break: break-word;
}

:root[data-theme="light"] .ops-support-toast {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(17, 24, 39, 0.14);
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.12);
}

:root[data-theme="light"] .ops-support-toast__avatar {
  background: rgba(241, 245, 249, 0.96);
}

@media (max-width: 576px) {
  .ops-support-toast-host {
    right: 12px;
    left: 12px;
    bottom: 12px;
  }

  .ops-support-toast {
    width: 100%;
  }

  .ops-support-toast__headline,
  .ops-support-toast__action {
    white-space: normal;
  }
}

:root[data-theme="light"] .sidebar-user-avatar:not(.sidebar-user-avatar-fallback) {
  background: rgba(12, 14, 17, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

:root[data-theme="light"] .sidebar-user-avatar-fallback {
  background: var(--avatar-bg) !important;
  border-color: var(--avatar-border) !important;
}

:root[data-theme="light"] .sidebar-user-initials {
  color: #f8fafc !important;
}

:root[data-theme="light"] .sidebar-user-name,
:root[data-theme="light"] .sidebar-user-meta,
:root[data-theme="light"] .sidebar-user-arrow {
  color: #1b2330 !important;
}

:root[data-theme="light"] .sidebar-user-badges .oopsie-badge-plan-free {
  background: rgba(148, 163, 184, 0.14) !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  color: #475569 !important;
}

:root[data-theme="light"] .sidebar-footer .user-setting-menu li a {
  color: #1b2330 !important;
  border: 1px solid rgba(17, 24, 39, 0.14) !important;
  background: rgba(255, 255, 255, 0.74) !important;
}

:root[data-theme="light"] .sidebar-footer .user-setting-menu li a i {
  color: #1b2330 !important;
}

:root[data-theme="light"] .sidebar-footer .user-setting-menu li a:hover {
  color: #111827 !important;
  background: rgba(247, 144, 17, 0.10) !important;
  border-color: rgba(247, 144, 17, 0.22) !important;
}

:root[data-theme="light"] .sidebar-menu .sidebar-submenu {
  background: transparent !important;
}

:root[data-theme="light"] .sidebar-menu .sidebar-submenu > li > a {
  color: rgba(27, 35, 48, 0.86) !important;
  border: 0 !important;
  background: transparent !important;
}

:root[data-theme="light"] .sidebar-menu .sidebar-submenu > li > a i {
  color: #1b2330 !important;
}

:root[data-theme="light"] .sidebar-menu .sidebar-submenu > li.active > a,
:root[data-theme="light"] .sidebar-menu .sidebar-submenu > li > a:hover,
:root[data-theme="light"] .sidebar-menu .sidebar-submenu > li > a.mm-active {
  color: #111827 !important;
  border-color: transparent !important;
  background: transparent !important;
}

:root[data-theme="light"] .sidebar-menu .sidebar-submenu > li.active > a i,
:root[data-theme="light"] .sidebar-menu .sidebar-submenu > li > a:hover i,
:root[data-theme="light"] .sidebar-menu .sidebar-submenu > li > a.mm-active i {
  color: #111827 !important;
}

:root:not([data-theme="light"]) .sidebar-user-toggle {
  color: #edf0f5 !important;
  border: 1px solid transparent !important;
}

:root:not([data-theme="light"]) .sidebar-footer .user-setting-menu li a {
  color: rgba(237, 240, 245, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  background: rgba(255, 255, 255, 0.02) !important;
}

:root:not([data-theme="light"]) .sidebar-footer .user-setting-menu li a i {
  color: #edf0f5 !important;
}

:root:not([data-theme="light"]) .sidebar-footer .user-setting-menu li a:hover {
  color: #ffffff !important;
  border-color: rgba(249, 115, 22, 0.30) !important;
  background: rgba(249, 115, 22, 0.08) !important;
}

:root:not([data-theme="light"]) .sidebar-menu .sidebar-submenu {
  background: transparent !important;
}

:root:not([data-theme="light"]) .sidebar-menu .sidebar-submenu > li > a {
  color: rgba(237, 235, 234, 0.82) !important;
  border: 0 !important;
  background: transparent !important;
}

:root:not([data-theme="light"]) .sidebar-menu .sidebar-submenu > li > a i {
  color: rgba(237, 235, 234, 0.9) !important;
}

:root:not([data-theme="light"]) .sidebar-menu .sidebar-submenu > li.active > a,
:root:not([data-theme="light"]) .sidebar-menu .sidebar-submenu > li > a:hover,
:root:not([data-theme="light"]) .sidebar-menu .sidebar-submenu > li > a.mm-active {
  color: #ffffff !important;
  border-color: transparent !important;
  background: transparent !important;
}

.sidebar-user-panel{
  border: 1px solid var(--oopsie-border);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  padding: 8px;
}

.sidebar-user-panel .sidebar-user-toggle{
  width: 100%;
  border-radius: 12px;
}

.sidebar-user-panel .collapse,
.sidebar-user-panel .collapsing{
  margin-top: 8px;
}

.sidebar-footer .user-setting-menu{
  list-style: none;
  padding-left: 0;
}

.sidebar-footer .user-setting-menu li + li{
  margin-top: 8px;
}

.sidebar-footer .user-setting-menu li a{
  border-radius: 10px;
  display: block;
}

:root[data-theme="light"] .sidebar-user-panel{
  background: rgba(255,255,255,0.82);
  border-color: rgba(17, 24, 39, 0.14);
}

:root[data-theme="light"] .sidebar-menu li.active > a,
:root[data-theme="light"] .sidebar-menu a.active,
:root:not([data-theme="light"]) .sidebar-menu li.active > a,
:root:not([data-theme="light"]) .sidebar-menu a.active{
  background: linear-gradient(180deg, rgba(249,115,22,.22), rgba(249,115,22,.12)) !important;
  border: 1px solid rgba(249,115,22,.22) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 0 0 1px rgba(249,115,22,.22) !important;
  position: relative !important;
}

:root[data-theme="light"] .sidebar-menu li.active > a:before,
:root[data-theme="light"] .sidebar-menu a.active:before,
:root:not([data-theme="light"]) .sidebar-menu li.active > a:before,
:root:not([data-theme="light"]) .sidebar-menu a.active:before{
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 4px !important;
  border-radius: 12px 0 0 12px !important;
  background: linear-gradient(180deg, var(--oopsie-primary), var(--oopsie-primary-2)) !important;
}

:root[data-theme="light"] .sidebar-version-pill {
  border: 1px solid rgba(17, 24, 39, 0.22) !important;
  background: rgba(255, 255, 255, 0.84) !important;
  color: #1b2330 !important;
}

:root[data-theme="light"] .sidebar-version-dot {
  background: rgba(46, 204, 113, 0.85) !important;
  box-shadow: 0 0 6px rgba(46, 204, 113, 0.45) !important;
}

:root[data-theme="light"] .oopsie-live-wrap {
  border: 1px solid rgba(17, 24, 39, 0.2) !important;
  background: rgba(255, 255, 255, 0.82) !important;
}

:root[data-theme="light"] .oopsie-live-text {
  color: #1f2937 !important;
}

:root[data-theme="light"] .oopsie-powered-by {
  color: rgba(27, 35, 48, 0.72) !important;
}

:root[data-theme="light"] .oopsie-powered-by strong {
  color: #1b2330 !important;
}

:root[data-theme="light"] .project-sparkline {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 246, 252, 0.96)) !important;
  border-color: rgba(17, 24, 39, 0.16) !important;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.05) !important;
}

:root[data-theme="light"] .project-sparkline::before {
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.06) 1px, transparent 1px) 0 0/100% 14px,
    linear-gradient(90deg, rgba(17, 24, 39, 0.05) 1px, transparent 1px) 0 0/28px 100% !important;
  opacity: .46 !important;
}

:root[data-theme="light"] .signal-item {
  border-color: rgba(17, 24, 39, 0.16) !important;
  background: rgba(255, 255, 255, 0.82) !important;
}

:root[data-theme="light"] .signal-item span,
:root[data-theme="light"] .signal-item strong,
:root[data-theme="light"] .signal-item small {
  color: #1f2937 !important;
}

:root[data-theme="light"] .oopsie-error-card {
  border-color: rgba(17, 24, 39, 0.18) !important;
  background: rgba(255, 255, 255, 0.88) !important;
}

:root[data-theme="light"] .oopsie-error-card .oopsie-msg,
:root[data-theme="light"] .oopsie-error-card .oopsie-origin,
:root[data-theme="light"] .oopsie-error-card .oopsie-project-title strong,
:root[data-theme="light"] .oopsie-error-card .text-light-2,
:root[data-theme="light"] .oopsie-error-card .text-light-3 {
  color: #1b2330 !important;
}

:root[data-theme="light"] .oopsie-error-card .oopsie-origin {
  color: rgba(27, 35, 48, 0.72) !important;
}

:root[data-theme="light"] .oopsie-codeblock {
  background: rgba(241, 244, 250, 0.95) !important;
  border-color: rgba(17, 24, 39, 0.2) !important;
  color: #1b2330 !important;
}

:root[data-theme="light"] .oopsie-codeblock code {
  color: #1b2330 !important;
}

:root[data-theme="light"] .oopsie-breadcrumb-item,
:root[data-theme="light"] .oopsie-impact-card {
  background: rgba(247, 249, 253, 0.9) !important;
  border-color: rgba(17, 24, 39, 0.16) !important;
}

:root[data-theme="light"] .oopsie-impact-card .h4,
:root[data-theme="light"] .oopsie-impact-card .mb-0.h4,
:root[data-theme="light"] .oopsie-impact-card .mt-1.h4 {
  color: #111827 !important;
}

:root[data-theme="light"] .footer {
  background: rgba(255, 255, 255, 0.9) !important;
  color: #1b2330 !important;
  border-top: 1px solid rgba(17, 24, 39, 0.16) !important;
}

:root[data-theme="light"] .footer a {
  color: #1b2330 !important;
}

.oopsie-footer-docs-inline {
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.oopsie-footer-docs-inline:hover,
.oopsie-footer-docs-inline:focus,
.oopsie-footer-docs-inline:focus-visible {
  color: inherit;
  text-decoration: underline;
}

:root[data-theme="light"] .text-white,
:root[data-theme="light"] .text-light,
:root[data-theme="light"] .text-white-50 {
  color: #1b2330 !important;
}

:root[data-theme="light"] [style*="color: rgba(255,255,255"],
:root[data-theme="light"] [style*="color:rgba(255,255,255"],
:root[data-theme="light"] [style*="color: #fff"],
:root[data-theme="light"] [style*="color:#fff"] {
  color: #1b2330 !important;
}

.oopsie-theme-toggle {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 2005;
  border: 1px solid var(--oopsie-border);
  background: rgba(17, 19, 23, 0.82);
  color: #fff;
  border-radius: 999px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  font-size: 12px;
  letter-spacing: 0.02em;
}

:root[data-theme="light"] .oopsie-theme-toggle {
  background: rgba(255, 255, 255, 0.96);
  color: #1b2330;
  border-color: rgba(17, 24, 39, 0.16);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.12);
}

.oopsie-theme-toggle:focus,
.oopsie-theme-toggle:hover {
  outline: none;
  transform: translateY(-1px);
}

.oopsie-theme-toggle .icon {
  font-size: 14px;
  line-height: 1;
}

.oopsie-byline {
  color: rgba(237, 235, 234, 0.78) !important;
}

.oopsie-byline strong {
  color: rgba(237, 235, 234, 0.9) !important;
}

:root[data-theme="light"] .oopsie-byline {
  color: rgba(27, 35, 48, 0.76) !important;
}

:root[data-theme="light"] .oopsie-byline strong {
  color: rgba(27, 35, 48, 0.9) !important;
}

/* Alerts page (Projects > Sentinel) light mode border/contour fixes */
:root[data-theme="light"] .premium-hero-card,
:root[data-theme="light"] .premium-metric,
:root[data-theme="light"] .hero-inline-panel,
:root[data-theme="light"] .hero-inline-item,
:root[data-theme="light"] .destination-row,
:root[data-theme="light"] .sentinel-option,
:root[data-theme="light"] .sentinel-rule-card {
  border-color: rgba(17, 24, 39, 0.18) !important;
  background: rgba(255, 255, 255, 0.86) !important;
}

:root[data-theme="light"] .hero-inline-title,
:root[data-theme="light"] .premium-metric-label,
:root[data-theme="light"] .destination-head small,
:root[data-theme="light"] .sentinel-option small,
:root[data-theme="light"] .rule-card-header small,
:root[data-theme="light"] .premium-metric-note {
  color: rgba(27, 35, 48, 0.68) !important;
}

:root[data-theme="light"] .hero-inline-item span {
  color: rgba(27, 35, 48, 0.72) !important;
}

:root[data-theme="light"] .hero-inline-item strong {
  color: #1b2330 !important;
}

:root[data-theme="light"] .sentinel-channel-summary {
  border-color: rgba(17, 24, 39, 0.2) !important;
  background: rgba(247, 249, 253, 0.88) !important;
  color: #1f2937 !important;
}

:root[data-theme="light"] .oopsie-check-ui {
  border-color: rgba(17, 24, 39, 0.26) !important;
  background: rgba(247, 249, 253, 0.96) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

:root[data-theme="light"] .oopsie-check input:hover + .oopsie-check-ui,
:root[data-theme="light"] .oopsie-check input:focus + .oopsie-check-ui {
  border-color: rgba(230, 99, 9, 0.42) !important;
  background: rgba(255, 243, 234, 0.96) !important;
}

:root[data-theme="light"] .oopsie-check input:checked + .oopsie-check-ui {
  background: #e66309 !important;
  border-color: #e66309 !important;
  box-shadow:
    0 0 0 3px rgba(230, 99, 9, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18) !important;
}

:root[data-theme="light"] .oopsie-check input:checked + .oopsie-check-ui:after {
  border-color: #ffffff !important;
  border-width: 0 2px 2px 0 !important;
}

:root[data-theme="light"] .event-chip {
  border-color: rgba(230, 99, 9, 0.28) !important;
  background: rgba(230, 99, 9, 0.1) !important;
  color: #9a4306 !important;
}

:root[data-theme="light"] .btn.btn-outline-light {
  border-color: rgba(17, 24, 39, 0.24) !important;
  color: #1f2937 !important;
  background: rgba(255, 255, 255, 0.74) !important;
}

:root[data-theme="light"] .btn.btn-outline-light:hover {
  border-color: rgba(230, 99, 9, 0.38) !important;
  background: rgba(230, 99, 9, 0.1) !important;
  color: #8a3d08 !important;
}

/* Global placeholder color by theme (high priority) */
html[data-theme="light"] body input::placeholder,
html[data-theme="light"] body textarea::placeholder,
html[data-theme="light"] body input::-webkit-input-placeholder,
html[data-theme="light"] body textarea::-webkit-input-placeholder,
html[data-theme="light"] body input:disabled::placeholder,
html[data-theme="light"] body textarea:disabled::placeholder,
html[data-theme="light"] body input:disabled::-webkit-input-placeholder,
html[data-theme="light"] body textarea:disabled::-webkit-input-placeholder,
html[data-theme="light"] body input::-ms-input-placeholder,
html[data-theme="light"] body textarea::-ms-input-placeholder,
html[data-theme="light"] body input:-ms-input-placeholder,
html[data-theme="light"] body textarea:-ms-input-placeholder {
  color: rgba(27, 35, 48, 0.5) !important;
  opacity: 1 !important;
}

html:not([data-theme="light"]) body input::placeholder,
html:not([data-theme="light"]) body textarea::placeholder,
html:not([data-theme="light"]) body input::-webkit-input-placeholder,
html:not([data-theme="light"]) body textarea::-webkit-input-placeholder,
html:not([data-theme="light"]) body input:disabled::placeholder,
html:not([data-theme="light"]) body textarea:disabled::placeholder,
html:not([data-theme="light"]) body input:disabled::-webkit-input-placeholder,
html:not([data-theme="light"]) body textarea:disabled::-webkit-input-placeholder,
html:not([data-theme="light"]) body input::-ms-input-placeholder,
html:not([data-theme="light"]) body textarea::-ms-input-placeholder,
html:not([data-theme="light"]) body input:-ms-input-placeholder,
html:not([data-theme="light"]) body textarea:-ms-input-placeholder {
  color: rgba(237, 235, 234, 0.58) !important;
  opacity: 1 !important;
}

html[data-theme="light"] body select option,
html[data-theme="light"] body select optgroup {
  background: #ffffff !important;
  color: #1b2330 !important;
}

html:not([data-theme="light"]) body select option,
html:not([data-theme="light"]) body select optgroup {
  background: #101114 !important;
  color: #edebea !important;
}

html[data-theme="light"] body input,
html[data-theme="light"] body textarea,
html[data-theme="light"] body .form-control,
html[data-theme="light"] body .oopsie-input,
html[data-theme="light"] body input:disabled,
html[data-theme="light"] body textarea:disabled,
html[data-theme="light"] body .form-control:disabled,
html[data-theme="light"] body .oopsie-input:disabled {
  color: #1b2330 !important;
  -webkit-text-fill-color: #1b2330 !important;
}

html[data-theme="light"] body input:disabled,
html[data-theme="light"] body textarea:disabled,
html[data-theme="light"] body .form-control:disabled,
html[data-theme="light"] body .oopsie-input:disabled {
  border-color: rgba(17, 24, 39, 0.2) !important;
  background: rgba(241, 244, 250, 0.9) !important;
}

/* Catch-all para inputs custom (mantendo checkbox/radio com cores fixas) */
html[data-theme="light"] body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),
html[data-theme="light"] body textarea,
html[data-theme="light"] body select {
  background: rgba(255, 255, 255, 0.96) !important;
  color: #1b2330 !important;
  border-color: rgba(17, 24, 39, 0.2) !important;
}

html:not([data-theme="light"]) body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),
html:not([data-theme="light"]) body textarea,
html:not([data-theme="light"]) body select {
  background: rgba(17, 20, 26, 0.92) !important;
  color: #edebea !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

/* Sidebar submenu spacing + active/hover feedback (restored) */
.sidebar-menu .sidebar-submenu > li{
  margin: 6px 0;
}

.sidebar-menu .sidebar-submenu > li > a{
  border-radius: 10px;
  padding-top: 7px;
  padding-bottom: 7px;
}

:root[data-theme="light"] .sidebar-menu li.active > a,
:root[data-theme="light"] .sidebar-menu a.active{
  background: linear-gradient(180deg, rgba(249,115,22,.22), rgba(249,115,22,.12)) !important;
  border: 1px solid rgba(249,115,22,.22) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 0 0 1px rgba(249,115,22,.22) !important;
  position: relative !important;
}

:root[data-theme="light"] .sidebar-menu > li > a:hover{
  background: rgba(247, 144, 17, 0.1) !important;
}

:root[data-theme="light"] .sidebar-menu .sidebar-submenu > li.active > a,
:root[data-theme="light"] .sidebar-menu .sidebar-submenu > li > a:hover,
:root[data-theme="light"] .sidebar-menu .sidebar-submenu > li > a.mm-active{
  background: rgba(247, 144, 17, 0.14) !important;
  border-color: rgba(247, 144, 17, 0.2) !important;
}

:root:not([data-theme="light"]) .sidebar-menu li.active > a,
:root:not([data-theme="light"]) .sidebar-menu a.active{
  background: linear-gradient(180deg, rgba(249,115,22,.22), rgba(249,115,22,.12)) !important;
  border: 1px solid rgba(249,115,22,.22) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 0 0 1px rgba(249,115,22,.22) !important;
  position: relative !important;
}

:root:not([data-theme="light"]) .sidebar-menu > li > a:hover{
  background: rgba(249, 115, 22, 0.1) !important;
}

:root:not([data-theme="light"]) .sidebar-menu .sidebar-submenu > li.active > a,
:root:not([data-theme="light"]) .sidebar-menu .sidebar-submenu > li > a:hover,
:root:not([data-theme="light"]) .sidebar-menu .sidebar-submenu > li > a.mm-active{
  background: rgba(249, 115, 22, 0.14) !important;
  border-color: rgba(249, 115, 22, 0.2) !important;
}

:root:not([data-theme="light"]) .sidebar-menu > li > a.sidebar-account-visit-btn.mm-active,
:root:not([data-theme="light"]) .sidebar-menu > li > a.sidebar-account-visit-btn.active {
  color: #fff !important;
  background: linear-gradient(180deg, rgba(249,115,22,.22), rgba(249,115,22,.12)) !important;
  box-shadow: inset 2px 0 0 rgba(255, 168, 87, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  border-radius: 12px !important;
}

:root:not([data-theme="light"]) .sidebar-menu > li > a.sidebar-account-visit-btn.mm-active:before,
:root:not([data-theme="light"]) .sidebar-menu > li > a.sidebar-account-visit-btn.active:before {
  display: none !important;
}

:root[data-theme="light"] .sidebar-menu > li > a.sidebar-account-visit-btn.mm-active,
:root[data-theme="light"] .sidebar-menu > li > a.sidebar-account-visit-btn.active {
  color: #17212f !important;
  background: linear-gradient(180deg, rgba(230, 99, 9, 0.20), rgba(230, 99, 9, 0.12)) !important;
  box-shadow: inset 2px 0 0 rgba(230, 99, 9, 0.95) !important;
  border-color: rgba(15, 23, 42, 0.10) !important;
  border-radius: 12px !important;
}

:root[data-theme="light"] .sidebar-menu > li > a.sidebar-account-visit-btn.mm-active:before,
:root[data-theme="light"] .sidebar-menu > li > a.sidebar-account-visit-btn.active:before {
  display: none !important;
}
