:root {
  --op-bg: #f3f7fb;
  --op-bg-dark: #060f1f;
  --op-surface: rgba(255, 255, 255, 0.88);
  --op-surface-dark: rgba(15, 23, 42, 0.78);
  --op-border: rgba(148, 163, 184, 0.22);
  --op-border-dark: rgba(148, 163, 184, 0.16);
  --op-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  --op-shadow-strong: 0 24px 60px rgba(15, 23, 42, 0.14);
  --op-primary: #2563eb;
  --op-primary-ink: #0f172a;
  --op-muted: #64748b;
  --op-radius: 28px;
  --op-top-safe: env(safe-area-inset-top, 0px);
  --op-right-safe: env(safe-area-inset-right, 0px);
  --op-bottom-safe: env(safe-area-inset-bottom, 0px);
  --op-left-safe: env(safe-area-inset-left, 0px);
  --op-app-height: 100dvh;
  --op-visual-viewport-height: 100dvh;
  --op-visual-viewport-width: 100vw;
  --op-keyboard-inset: 0px;
  --op-mobile-bottom-clearance: calc(5.75rem + var(--op-bottom-safe));
}

html {
  min-height: 100%;
  min-height: var(--op-app-height);
  background: linear-gradient(180deg, #07101f 0%, #0b1327 100%);
}

body {
  min-height: 100%;
  min-height: var(--op-app-height);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 24%),
    linear-gradient(180deg, var(--op-bg) 0%, #eef4f9 100%);
}

html.dark body {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.10), transparent 22%),
    linear-gradient(180deg, var(--op-bg-dark) 0%, #0f172a 100%);
}

html.op-ios,
html.op-ios body {
  min-height: -webkit-fill-available;
}

body.op-ios {
  min-height: var(--op-app-height);
}

body.op-virtual-keyboard-open .op-bottom-nav {
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + var(--op-bottom-safe) + 1rem));
}

body.op-manual-modal-open .op-bottom-nav {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: none;
}

body.op-manual-modal-open .op-bottom-nav.is-idle-hidden {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: none;
}

body.op-virtual-keyboard-open .op-app-main {
  padding-bottom: 1.5rem !important;
  scroll-padding-bottom: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 32px;
  padding: 0.32rem 0.82rem;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #334155;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}

html.dark .badge {
  color: #f1f5f9;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.94);
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.26);
}

.small { font-size: 12px; }

html.dark input[type="date"],
html.dark input[type="month"] {
  color-scheme: dark;
}

html.dark input[type="date"]::-webkit-calendar-picker-indicator,
html.dark input[type="month"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.7) contrast(1.1);
  opacity: 0.95;
  cursor: pointer;
}

html.dark input[type="date"]::-webkit-calendar-picker-indicator:hover,
html.dark input[type="month"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

html.dark input[type="date"]::-webkit-datetime-edit,
html.dark input[type="month"]::-webkit-datetime-edit {
  color: #e2e8f0;
}

html.dark input[type="date"]::-webkit-datetime-edit-text,
html.dark input[type="month"]::-webkit-datetime-edit-text {
  color: #94a3b8;
}

.op-app-main {
  padding-bottom: var(--op-mobile-bottom-clearance) !important;
  scroll-padding-bottom: var(--op-mobile-bottom-clearance);
}

@media (min-width: 768px) {
  :root {
    --op-mobile-bottom-clearance: 2.5rem;
  }

  .op-app-main {
    padding-bottom: var(--op-mobile-bottom-clearance) !important;
    scroll-padding-bottom: var(--op-mobile-bottom-clearance);
  }
}

body.op-notification-center-open {
  overflow: hidden;
}

.op-topbar-shell {
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.92), rgba(7, 14, 31, 0.86));
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.28);
}

.op-desktop-nav,
.op-mobile-chip-row {
  scrollbar-width: none;
}

.op-desktop-nav::-webkit-scrollbar,
.op-mobile-chip-row::-webkit-scrollbar {
  display: none;
}

.op-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: rgba(226, 232, 240, 0.82);
  font-weight: 700;
  transition: all 0.2s ease;
}

.op-nav-link:hover {
  color: #fff;
  background: rgba(30, 41, 59, 0.88);
}

.op-nav-link.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(56, 189, 248, 0.88));
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28);
}

.op-utility-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  border-radius: 18px;
  color: rgba(226, 232, 240, 0.85);
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: all 0.2s ease;
}

.op-utility-btn:hover {
  color: #fff;
  background: rgba(30, 41, 59, 0.88);
}

.op-utility-btn__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.op-utility-btn__badge {
  position: absolute;
  top: -0.7rem;
  right: -0.85rem;
  min-width: 1.2rem;
  padding: 0.15rem 0.34rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb7185, #f43f5e);
  box-shadow: 0 10px 18px rgba(244, 63, 94, 0.26);
  color: #fff;
  font-size: 0.63rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.op-utility-btn--notify {
  position: relative;
  overflow: visible;
}

.op-utility-btn--notify[data-push-visual-state="loading"] {
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.96), rgba(30, 41, 59, 0.92));
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.2);
}

.op-utility-btn--notify[data-push-visual-state="idle"] {
  color: #fff;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.96), rgba(244, 63, 94, 0.9));
  border-color: rgba(251, 191, 36, 0.36);
  box-shadow: 0 16px 30px rgba(244, 114, 182, 0.24);
}

.op-utility-btn--notify[data-push-visual-state="blocked"] {
  color: #fff;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.96), rgba(190, 24, 93, 0.9));
  border-color: rgba(253, 164, 175, 0.34);
  box-shadow: 0 16px 30px rgba(239, 68, 68, 0.22);
}

.op-utility-btn--notify[data-push-visual-state="enabled"] {
  color: #fff;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.96), rgba(37, 99, 235, 0.92));
  border-color: rgba(147, 197, 253, 0.26);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.22);
}

.op-utility-btn--notify[data-push-visual-state="unsupported"] {
  color: rgba(226, 232, 240, 0.9);
  background: rgba(51, 65, 85, 0.9);
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: none;
}

.op-btn--alert-entry {
  gap: 0.55rem;
}

.op-btn--alert-entry [data-push-center-label] {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.op-btn--alert-entry[data-push-visual-state="loading"] {
  color: #fff;
  background: #0f172a;
  border-color: #0f172a;
}

.op-btn--alert-entry[data-push-visual-state="idle"] {
  color: #b45309;
  background: #fffbeb;
  border-color: #fde68a;
  box-shadow: 0 16px 28px rgba(245, 158, 11, 0.12);
}

.op-btn--alert-entry[data-push-visual-state="blocked"] {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
  box-shadow: 0 16px 28px rgba(239, 68, 68, 0.1);
}

.op-btn--alert-entry[data-push-visual-state="enabled"] {
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  border-color: rgba(96, 165, 250, 0.3);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.2);
}

.op-btn--alert-entry[data-push-visual-state="unsupported"] {
  color: #334155;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

html.dark .op-btn--alert-entry[data-push-visual-state="idle"] {
  color: #fde68a;
  background: rgba(120, 53, 15, 0.24);
  border-color: rgba(120, 53, 15, 0.72);
}

html.dark .op-btn--alert-entry[data-push-visual-state="blocked"] {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.24);
  border-color: rgba(127, 29, 29, 0.72);
}

html.dark .op-btn--alert-entry[data-push-visual-state="unsupported"] {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(71, 85, 105, 0.8);
}

.op-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.82rem 1.2rem;
  border-radius: 18px;
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.op-btn:hover {
  transform: translateY(-1px);
}

.op-btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.op-btn--block {
  width: 100%;
}

.op-btn svg {
  flex-shrink: 0;
}

.op-btn-primary {
  color: #fff;
  background: #0f172a;
  border-color: #0f172a;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
}

.op-btn-primary:hover {
  background: #020617;
  border-color: #020617;
}

html.dark .op-btn-primary {
  color: #0f172a;
  background: #f8fafc;
  border-color: rgba(226, 232, 240, 0.9);
}

html.dark .op-btn-primary:hover {
  background: #ffffff;
}

.op-btn-success {
  color: #fff;
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 18px 34px rgba(16, 185, 129, 0.24);
}

.op-btn-success:hover {
  background: linear-gradient(135deg, #059669, #047857);
}

.op-btn-info {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.22);
}

.op-btn-info:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.op-btn-muted {
  color: #fff;
  background: #94a3b8;
  box-shadow: none;
}

html.dark .op-btn-muted {
  background: #475569;
}

.op-btn-export {
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #0f172a);
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 18px 34px rgba(15, 118, 110, 0.20);
}

.op-btn-export:hover {
  background: linear-gradient(135deg, #115e59, #020617);
  border-color: rgba(15, 118, 110, 0.34);
}

html.dark .op-btn-export {
  color: #e2e8f0;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.28), rgba(15, 23, 42, 0.92));
  border-color: rgba(45, 212, 191, 0.24);
  box-shadow: 0 18px 34px rgba(8, 47, 73, 0.28);
}

html.dark .op-btn-export:hover {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.36), rgba(2, 6, 23, 0.96));
}

.op-btn--compact {
  min-height: 44px;
  padding: 0.72rem 1rem;
}

.op-btn-ghost {
  color: #334155;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.op-btn-ghost:hover {
  background: #ffffff;
  border-color: rgba(96, 165, 250, 0.32);
}

html.dark .op-btn-ghost {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(71, 85, 105, 0.8);
  box-shadow: 0 16px 28px rgba(2, 6, 23, 0.28);
}

html.dark .op-btn-ghost:hover {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(96, 165, 250, 0.32);
}

.op-btn-danger-soft {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.08);
}

.op-btn-danger-soft:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

html.dark .op-btn-danger-soft {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.22);
  border-color: rgba(127, 29, 29, 0.7);
}

html.dark .op-btn-danger-soft:hover {
  background: rgba(127, 29, 29, 0.3);
}

.op-btn-warning-soft {
  color: #b45309;
  background: #fffbeb;
  border-color: #fde68a;
}

.op-btn-warning-soft:hover {
  background: #fef3c7;
  border-color: #fcd34d;
}

html.dark .op-btn-warning-soft {
  color: #fde68a;
  background: rgba(120, 53, 15, 0.24);
  border-color: rgba(120, 53, 15, 0.72);
}

html.dark .op-btn-warning-soft:hover {
  background: rgba(120, 53, 15, 0.32);
}

.op-btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 18px 34px rgba(239, 68, 68, 0.22);
}

.op-btn-danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

html.dark .op-btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #f87171, #ef4444);
}

html.dark .op-btn-danger:hover {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.op-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(248, 250, 252, 0.92);
  color: #64748b;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.op-icon-btn:hover {
  transform: translateY(-1px);
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(96, 165, 250, 0.28);
}

html.dark .op-icon-btn {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(71, 85, 105, 0.78);
  color: #cbd5e1;
}

html.dark .op-icon-btn:hover {
  background: rgba(15, 23, 42, 0.96);
  color: #f8fafc;
  border-color: rgba(96, 165, 250, 0.32);
}

.op-mobile-chip {
  position: relative;
  display: inline-flex;
  min-width: 4.8rem;
  min-height: 56px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  padding: 0.6rem 0.85rem;
  border-radius: 18px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(226, 232, 240, 0.74);
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: all 0.2s ease;
}

.op-mobile-chip__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.op-mobile-chip__label {
  line-height: 1.05;
  white-space: nowrap;
}

.op-mobile-chip__badge {
  position: absolute;
  top: -0.35rem;
  right: -0.55rem;
  min-width: 1rem;
  padding: 0.1rem 0.28rem;
  border-radius: 999px;
  background: #f43f5e;
  color: #fff;
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

.op-mobile-chip:hover,
.op-mobile-chip.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.88), rgba(14, 165, 233, 0.82));
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.22);
}

.op-page-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.35rem;
  border-radius: clamp(24px, 3vw, 32px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.78));
  border: 1px solid var(--op-border);
  box-shadow: var(--op-shadow);
  backdrop-filter: blur(14px);
}

.op-page-hero::before {
  content: "";
  position: absolute;
  inset: auto auto -40px -30px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 72%);
  pointer-events: none;
}

.op-page-hero::after {
  content: "";
  position: absolute;
  inset: -48px -48px auto auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.10), transparent 68%);
  pointer-events: none;
}

html.dark .op-page-hero {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.74));
  border-color: var(--op-border-dark);
  box-shadow: 0 22px 54px rgba(2, 6, 23, 0.28);
}

.op-page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.10);
  border: 1px solid rgba(37, 99, 235, 0.14);
  color: #1d4ed8;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html.dark .op-page-hero__eyebrow {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

.op-page-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0f172a;
}

html.dark .op-page-hero__title {
  color: #f8fafc;
}

.op-page-hero__subtitle {
  max-width: 64ch;
  font-size: 0.97rem;
  line-height: 1.65;
  font-weight: 500;
  color: var(--op-muted);
}

html.dark .op-page-hero__subtitle {
  color: #94a3b8;
}

.op-page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.op-page-hero--admin {
  display: block;
}

.op-admin-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.op-admin-hero-action {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.05rem;
  border-radius: 22px;
  font-weight: 900;
  line-height: 1.2;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
  box-shadow: var(--op-shadow);
}

.op-admin-hero-action:hover {
  transform: translateY(-1px);
}

.op-admin-hero-action--primary {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96));
  color: #ffffff;
}

.op-admin-hero-action--secondary {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.86);
  color: #334155;
}

html.dark .op-admin-hero-action--primary {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(29, 78, 216, 0.82));
}

html.dark .op-admin-hero-action--secondary {
  border-color: rgba(71, 85, 105, 0.88);
  background: rgba(15, 23, 42, 0.78);
  color: #e2e8f0;
}

.op-admin-status-panel {
  position: relative;
  overflow: hidden;
  padding: 1.15rem;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.82));
  box-shadow: var(--op-shadow);
}

.op-admin-status-panel::after {
  content: "";
  position: absolute;
  inset: auto -36px -52px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14), transparent 72%);
  pointer-events: none;
}

html.dark .op-admin-status-panel {
  border-color: rgba(71, 85, 105, 0.8);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.7));
  box-shadow: 0 22px 54px rgba(2, 6, 23, 0.24);
}

.op-admin-status-item {
  position: relative;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.95rem 1rem;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.84);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.op-admin-status-item:hover {
  transform: translateY(-1px);
}

html.dark .op-admin-status-item {
  border-color: rgba(71, 85, 105, 0.7);
  background: rgba(15, 23, 42, 0.72);
}

.op-admin-status-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 2.8rem;
  border-radius: 18px;
  border: 1px solid transparent;
}

.op-admin-status-item--success .op-admin-status-item__icon {
  color: #047857;
  border-color: rgba(16, 185, 129, 0.18);
  background: rgba(16, 185, 129, 0.12);
}

.op-admin-status-item--warning .op-admin-status-item__icon {
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.18);
  background: rgba(245, 158, 11, 0.12);
}

.op-admin-status-item--muted .op-admin-status-item__icon {
  color: #334155;
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(148, 163, 184, 0.12);
}

html.dark .op-admin-status-item--success .op-admin-status-item__icon {
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.26);
  background: rgba(16, 185, 129, 0.16);
}

html.dark .op-admin-status-item--warning .op-admin-status-item__icon {
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.24);
  background: rgba(245, 158, 11, 0.14);
}

html.dark .op-admin-status-item--muted .op-admin-status-item__icon {
  color: #cbd5e1;
  border-color: rgba(71, 85, 105, 0.86);
  background: rgba(30, 41, 59, 0.72);
}

.op-page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .op-page-hero {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding: 1.6rem 1.75rem;
  }

  .op-page-hero--admin {
    display: block;
    padding: 1.65rem 1.75rem;
  }

  .op-page-hero__actions {
    justify-content: flex-end;
    max-width: 50%;
  }

  .op-page-hero__actions--geral {
    width: fit-content;
    max-width: none;
    margin-left: auto;
  }
}

.op-kpi-strip {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.op-kpi-card {
  position: relative;
  overflow: hidden;
  padding: 1rem 1rem 1.05rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--op-shadow);
}

html.dark .op-kpi-card {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(148, 163, 184, 0.14);
}

.op-kpi-card__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

html.dark .op-kpi-card__label { color: #94a3b8; }

.op-kpi-card__value {
  margin-top: 0.55rem;
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0f172a;
}

html.dark .op-kpi-card__value { color: #f8fafc; }

.op-kpi-card__hint {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}

html.dark .op-kpi-card__hint { color: #94a3b8; }

.op-surface-card {
  background: var(--op-surface);
  border: 1px solid var(--op-border);
  box-shadow: var(--op-shadow);
  backdrop-filter: blur(14px);
}

html.dark .op-surface-card {
  background: var(--op-surface-dark);
  border-color: var(--op-border-dark);
  box-shadow: 0 24px 54px rgba(2, 6, 23, 0.24);
}

.op-soft-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.35), transparent);
}

.op-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  padding: 0 1rem calc(var(--op-bottom-safe) + 0.85rem);
  transition: transform 0.28s ease, opacity 0.24s ease;
}

.op-bottom-nav.is-idle-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + var(--op-bottom-safe) + 1rem));
}

.op-bottom-nav__inner {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.55rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.55rem;
  border-radius: 26px;
  background: rgba(7, 14, 31, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.3);
  backdrop-filter: blur(20px);
  scrollbar-width: none;
}

.op-bottom-nav__inner::-webkit-scrollbar {
  display: none;
}

.op-bottom-nav__link {
  display: flex;
  flex: 0 0 auto;
  min-width: 4.85rem;
  min-height: 56px;
  padding: 0 0.8rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  border-radius: 18px;
  color: rgba(226, 232, 240, 0.74);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
  white-space: nowrap;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transition: color 0.2s ease;
}

.op-bottom-nav__link:hover,
.op-bottom-nav__link.is-active {
  color: #fff;
}

.op-bottom-nav__icon {
  position: relative;
  display: inline-flex;
  width: 1.92rem;
  height: 1.92rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.82rem;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.op-bottom-nav__link:hover .op-bottom-nav__icon,
.op-bottom-nav__link.is-active .op-bottom-nav__icon {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(14, 165, 233, 0.86));
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.2);
}

.op-bottom-nav__badge {
  position: absolute;
  top: -0.35rem;
  right: -0.55rem;
  min-width: 1rem;
  padding: 0.1rem 0.28rem;
  border-radius: 999px;
  background: #f43f5e;
  color: #fff;
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .op-bottom-nav__link,
  .op-bottom-nav__icon,
  .op-bottom-nav__link::before {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
}

@media (min-width: 768px) {
  .op-bottom-nav {
    display: none;
  }
}

@media (max-width: 767px) {
  .op-page-hero {
    padding: 1.15rem;
    gap: 1rem;
  }

  .op-admin-hero-actions {
    width: 100%;
  }

  .op-admin-hero-action {
    width: 100%;
    justify-content: flex-start;
  }

  .op-page-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .op-page-hero__actions > * {
    width: 100%;
  }


  .op-month-hero-actions {
    display: flex;
  }

  .op-month-hero-actions__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-start;
  }

  .op-month-hero-actions__row > a,
  .op-month-hero-actions__row > button {
    width: auto;
  }

  .op-admin-status-panel {
    padding: 1rem;
  }
}

.op-fade-up {
  animation: opFadeUp 0.32s ease;
}

@keyframes opFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

button,
[role="button"],
a.inline-flex,
a[class*="rounded"] {
  -webkit-tap-highlight-color: transparent;
}

input,
select,
textarea {
  min-height: 48px;
}

summary::-webkit-details-marker {
  display: none;
}


.op-form-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.1rem, 2vw, 1.45rem);
  border-radius: clamp(24px, 3vw, 30px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.78));
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--op-shadow);
  backdrop-filter: blur(14px);
}

.op-form-card::before {
  content: "";
  position: absolute;
  inset: -42px auto auto -42px;
  width: 126px;
  height: 126px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 72%);
  pointer-events: none;
}

html.dark .op-form-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.76));
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 24px 54px rgba(2, 6, 23, 0.26);
}

.op-form-card__title {
  position: relative;
  z-index: 1;
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
}

html.dark .op-form-card__title { color: #f8fafc; }

.op-form-card__subtitle {
  position: relative;
  z-index: 1;
  margin-top: 0.35rem;
  font-size: 0.92rem;
  line-height: 1.6;
  font-weight: 500;
  color: #64748b;
}

html.dark .op-form-card__subtitle { color: #94a3b8; }

.op-field-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

html.dark .op-field-label { color: #94a3b8; }

.op-field-help {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  line-height: 1.55;
  font-weight: 500;
  color: #64748b;
}

html.dark .op-field-help { color: #94a3b8; }

.op-input,
.op-select,
.op-textarea {
  width: 100%;
  min-height: 50px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(248, 250, 252, 0.92);
  color: #0f172a;
  padding: 0.82rem 0.95rem;
  font-size: 0.96rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.op-input:hover,
.op-select:hover,
.op-textarea:hover {
  background: rgba(255, 255, 255, 0.95);
}

.op-input:focus,
.op-select:focus,
.op-textarea:focus {
  border-color: rgba(37, 99, 235, 0.46);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  background: rgba(255, 255, 255, 0.98);
}

html.dark .op-input,
html.dark .op-select,
html.dark .op-textarea {
  border-color: rgba(71, 85, 105, 0.72);
  background: rgba(2, 6, 23, 0.32);
  color: #f8fafc;
}

html.dark .op-input:hover,
html.dark .op-select:hover,
html.dark .op-textarea:hover {
  background: rgba(2, 6, 23, 0.42);
}

html.dark .op-input:focus,
html.dark .op-select:focus,
html.dark .op-textarea:focus {
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
  background: rgba(2, 6, 23, 0.56);
}

.op-file-drop {
  display: block;
  border: 1.5px dashed rgba(59, 130, 246, 0.28);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.9), rgba(255, 255, 255, 0.84));
  border-radius: 24px;
  padding: 1rem;
}

html.dark .op-file-drop {
  border-color: rgba(59, 130, 246, 0.34);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.6));
}

.op-step-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.op-step-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.op-step-item__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 900;
}

html.dark .op-step-item__index {
  background: rgba(37, 99, 235, 0.18);
  color: #bfdbfe;
}

.op-step-item__title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
}

html.dark .op-step-item__title { color: #f8fafc; }

.op-step-item__text {
  margin-top: 0.16rem;
  font-size: 0.81rem;
  line-height: 1.55;
  font-weight: 500;
  color: #64748b;
}

html.dark .op-step-item__text { color: #94a3b8; }

.op-info-list {
  display: grid;
  gap: 0.75rem;
}

.op-info-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
  font-size: 0.76rem;
  font-weight: 700;
}

html.dark .op-info-pill {
  background: rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
}

.op-preview-shell {
  padding: 1rem;
  border-radius: clamp(26px, 4vw, 34px);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(241, 245, 249, 0.58));
  box-shadow: var(--op-shadow-strong);
  backdrop-filter: blur(16px);
}

html.dark .op-preview-shell {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.72));
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 26px 64px rgba(2, 6, 23, 0.32);
}

.op-preview-shell__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.95rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

html.dark .op-preview-shell__label {
  background: rgba(37, 99, 235, 0.16);
  color: #bfdbfe;
}

.op-auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 30%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.12), transparent 28%),
    linear-gradient(180deg, #eef4f9 0%, #e6eef7 100%);
  color: #0f172a;
}

html.dark .op-auth-page {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 24%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.16), transparent 22%),
    linear-gradient(180deg, #020617 0%, #0f172a 100%);
  color: #f8fafc;
}

.op-auth-shell {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.25rem;
}

.op-auth-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.78));
  box-shadow: 0 30px 68px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
}

.op-auth-card::before {
  content: "";
  position: absolute;
  inset: -54px -54px auto auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14), transparent 72%);
  pointer-events: none;
}

html.dark .op-auth-card {
  border-color: rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.78));
  box-shadow: 0 34px 74px rgba(2, 6, 23, 0.34);
}

.op-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.14);
  color: #1d4ed8;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

html.dark .op-auth-badge {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.2);
  color: #bfdbfe;
}

.op-auth-title {
  font-size: clamp(1.95rem, 5vw, 3rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.op-auth-text {
  max-width: 42ch;
  font-size: 0.98rem;
  line-height: 1.7;
  font-weight: 500;
  color: #64748b;
}

html.dark .op-auth-text { color: #94a3b8; }

.op-auth-form input,
.op-auth-form button,
.op-auth-form a {
  min-height: 52px;
}

.op-auth-feature-grid {
  display: grid;
  gap: 0.85rem;
}

.op-auth-feature {
  display: flex;
  gap: 0.85rem;
  border-radius: 22px;
  padding: 1rem;
  background: rgba(248, 250, 252, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

html.dark .op-auth-feature {
  background: rgba(2, 6, 23, 0.28);
  border-color: rgba(148, 163, 184, 0.16);
}

.op-auth-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

html.dark .op-auth-feature__icon {
  background: rgba(37, 99, 235, 0.18);
  color: #bfdbfe;
}

.op-auth-feature__title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
}

html.dark .op-auth-feature__title { color: #f8fafc; }

.op-auth-feature__text {
  margin-top: 0.22rem;
  font-size: 0.82rem;
  line-height: 1.6;
  font-weight: 500;
  color: #64748b;
}

html.dark .op-auth-feature__text { color: #94a3b8; }

.op-doc-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.25rem;
}

.op-doc-card {
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.8));
  box-shadow: 0 30px 68px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(16px);
}

html.dark .op-doc-card {
  border-color: rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(15,23,42,0.9), rgba(15,23,42,0.8));
  box-shadow: 0 34px 74px rgba(2, 6, 23, 0.34);
}

.op-doc-hero {
  padding: clamp(1.3rem, 3vw, 2rem);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.98), rgba(14, 165, 233, 0.92));
  color: #fff;
}

.op-doc-body {
  padding: clamp(1.3rem, 3vw, 2rem);
}

.op-doc-note {
  border-radius: 24px;
  padding: 1rem 1.1rem;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.14);
  color: #1e3a8a;
  font-size: 0.95rem;
  line-height: 1.7;
}

html.dark .op-doc-note {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.18);
  color: #dbeafe;
}

.op-doc-body h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.op-doc-body h2:first-of-type { margin-top: 0; }

.op-doc-body p,
.op-doc-body li {
  color: #475569;
  line-height: 1.76;
  font-weight: 500;
}

html.dark .op-doc-body h2 { color: #f8fafc; }
html.dark .op-doc-body p,
html.dark .op-doc-body li { color: #cbd5e1; }

.op-doc-body ul {
  padding-left: 1.25rem;
  margin-bottom: 1.35rem;
}

@media (max-width: 767px) {
  .op-auth-shell,
  .op-doc-shell {
    padding: 0.9rem;
  }

  .op-auth-card,
  .op-doc-card {
    border-radius: 28px;
  }

  .op-preview-shell {
    padding: 0.8rem;
    border-radius: 28px;
  }
}


.op-page-shell {
  max-width: 96rem;
  margin-inline: auto;
  display: grid;
  gap: 1.5rem;
}

.op-page-hero__actions > a,
.op-page-hero__actions > button {
  min-height: 52px;
}

.op-page-hero__actions--compact {
  max-width: none;
  align-items: center;
}

.op-page-hero__actions--compact > a,
.op-page-hero__actions--compact > button {
  width: auto;
  min-height: 44px;
  flex: 0 0 auto;
}


.op-month-hero-actions {
  width: 100%;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.op-month-hero-actions__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.op-month-hero-actions__row > a,
.op-month-hero-actions__row > button {
  width: auto;
  min-height: 44px;
  flex: 0 0 auto;
}

@media (max-width: 1023px) {
  .op-page-hero__actions--compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .op-page-hero__actions--compact > a,
  .op-page-hero__actions--compact > button {
    width: auto;
  }

  .op-month-hero-actions {
    align-items: stretch;
  }

  .op-month-hero-actions__row {
    justify-content: flex-start;
  }
}

.op-tab-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.op-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(248, 250, 252, 0.9);
  color: #475569;
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.op-tab-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(238, 242, 255, 0.9);
  color: #312e81;
}

.op-tab-btn.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #312e81, #7c3aed);
  border-color: rgba(99, 102, 241, 0.36);
  box-shadow: 0 18px 32px rgba(79, 70, 229, 0.18);
}

html.dark .op-tab-btn {
  border-color: rgba(71, 85, 105, 0.86);
  background: rgba(15, 23, 42, 0.86);
  color: #cbd5e1;
}

html.dark .op-tab-btn:hover {
  border-color: rgba(129, 140, 248, 0.32);
  background: rgba(30, 41, 59, 0.92);
  color: #eef2ff;
}

html.dark .op-tab-btn.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #4338ca, #8b5cf6);
  border-color: rgba(129, 140, 248, 0.42);
  box-shadow: 0 18px 32px rgba(67, 56, 202, 0.26);
}

.op-kpi-card {
  min-height: 138px;
}

.op-section-heading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
}

html.dark .op-section-heading {
  color: #f8fafc;
}

.op-section-heading__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.95rem;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14);
}

html.dark .op-section-heading__icon {
  background: rgba(37, 99, 235, 0.16);
  color: #bfdbfe;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.24);
}

.op-section-subtitle {
  margin-top: -0.55rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.65;
  font-weight: 500;
  color: #64748b;
}

html.dark .op-section-subtitle {
  color: #94a3b8;
}

.op-empty-state {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 1.8rem);
  border-radius: 28px;
  border: 1px dashed rgba(148, 163, 184, 0.42);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(248,250,252,0.9));
  text-align: center;
  box-shadow: 0 18px 40px rgba(15,23,42,0.06);
}

.op-empty-state::before {
  content: "";
  position: absolute;
  inset: -22px auto auto -22px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59,130,246,0.13), transparent 72%);
  pointer-events: none;
}

html.dark .op-empty-state {
  border-color: rgba(71, 85, 105, 0.68);
  background: linear-gradient(180deg, rgba(15,23,42,0.82), rgba(2,6,23,0.68));
  box-shadow: 0 22px 48px rgba(2,6,23,0.24);
}

.op-empty-state--compact {
  padding: 1rem 1.1rem;
  border-radius: 22px;
}

.op-empty-state__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-inline: auto;
  margin-bottom: 0.95rem;
  border-radius: 1.35rem;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

html.dark .op-empty-state__icon {
  background: rgba(37, 99, 235, 0.16);
  color: #bfdbfe;
}

.op-empty-state__title {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
}

html.dark .op-empty-state__title {
  color: #f8fafc;
}

.op-empty-state__text {
  position: relative;
  z-index: 1;
  margin-top: 0.45rem;
  font-size: 0.92rem;
  line-height: 1.65;
  font-weight: 500;
  color: #64748b;
}

html.dark .op-empty-state__text {
  color: #94a3b8;
}

.op-empty-state__actions {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.op-inline-alert {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.95rem 1rem;
  border-radius: 22px;
  border: 1px solid transparent;
  box-shadow: 0 14px 30px rgba(15,23,42,0.05);
}

.op-inline-alert__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.95rem;
}

.op-inline-alert__title {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.op-inline-alert__text {
  margin-top: 0.18rem;
  font-size: 0.88rem;
  line-height: 1.6;
  font-weight: 500;
}

.op-inline-alert--warning {
  background: rgba(254, 249, 195, 0.62);
  border-color: rgba(245, 158, 11, 0.25);
  color: #92400e;
}

.op-inline-alert--warning .op-inline-alert__icon {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}

html.dark .op-inline-alert--warning {
  background: rgba(120, 53, 15, 0.22);
  border-color: rgba(217, 119, 6, 0.28);
  color: #fde68a;
}

html.dark .op-inline-alert--warning .op-inline-alert__icon {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
}

.op-inline-alert--info {
  background: rgba(219, 234, 254, 0.58);
  border-color: rgba(59, 130, 246, 0.18);
  color: #1d4ed8;
}

.op-inline-alert--info .op-inline-alert__icon {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

html.dark .op-inline-alert--info {
  background: rgba(30, 64, 175, 0.18);
  border-color: rgba(59, 130, 246, 0.24);
  color: #bfdbfe;
}

html.dark .op-inline-alert--info .op-inline-alert__icon {
  background: rgba(37, 99, 235, 0.16);
  color: #bfdbfe;
}


.op-inline-alert--success {
  background: rgba(220, 252, 231, 0.72);
  border-color: rgba(16, 185, 129, 0.2);
  color: #047857;
}

.op-inline-alert--success .op-inline-alert__icon {
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
}

html.dark .op-inline-alert--success {
  background: rgba(6, 78, 59, 0.24);
  border-color: rgba(16, 185, 129, 0.22);
  color: #a7f3d0;
}

html.dark .op-inline-alert--success .op-inline-alert__icon {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

.op-table-shell {
  overflow: hidden;
  border-radius: 28px;
}

.op-surface-card .overflow-x-auto {
  scrollbar-width: thin;
}

.op-surface-card table thead th {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.op-surface-card table tbody tr {
  vertical-align: middle;
}

.op-surface-card table tbody td {
  line-height: 1.45;
}

html.dark .op-surface-card table tbody td,
html.dark .op-surface-card table tbody th {
  color: #dbe4f0;
}

.op-submit-spinner {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: opSpin .7s linear infinite;
}

@keyframes opSpin {
  to { transform: rotate(360deg); }
}

.op-button-loading {
  opacity: 0.92;
}

.op-button-loading[disabled] {
  cursor: wait;
}

.share-summary-card {
  isolation: isolate;
}

.share-summary-card__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.share-summary-card__metric {
  display: inline-flex;
  flex-direction: column;
  gap: 0.14rem;
  min-width: 7rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.82);
  padding: 0.75rem 0.9rem;
  box-shadow: inset 0 0 0 1px rgba(226,232,240,0.88);
}

.share-summary-card__metric-label {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.share-summary-card__metric-value {
  font-size: 0.95rem;
  font-weight: 900;
  color: #0f172a;
}

.share-summary-card__legend {
  font-size: 0.78rem;
  line-height: 1.55;
  font-weight: 600;
  color: #64748b;
}

.share-summary-card--compact .share-summary-card__metric {
  min-width: 6.25rem;
  padding: 0.65rem 0.75rem;
}

.share-summary-card--compact .share-summary-card__metric-value {
  font-size: 0.88rem;
}

.share-summary-card--compact .share-summary-card__item {
  padding: 0.75rem 0.9rem;
  border-radius: 18px;
}

.share-summary-card--summary .share-summary-card__item-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.op-dual-accordion {
  align-self: flex-start;
  border-radius: 28px;
}

.op-dual-accordion > summary {
  min-height: 132px;
}

.op-dual-accordion__intro {
  min-height: 2.75rem;
}

@media (max-width: 767px) {
  .op-page-shell {
    gap: 1.1rem;
  }

  .op-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .op-kpi-card {
    min-height: 126px;
    padding: 0.95rem;
  }

  .op-empty-state {
    padding: 1.15rem 1rem;
    border-radius: 24px;
  }

  .op-empty-state__icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1.15rem;
    margin-bottom: 0.75rem;
  }

  .op-empty-state__title {
    font-size: 0.96rem;
  }

  .op-empty-state__text {
    font-size: 0.86rem;
  }

  .share-summary-card__metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .share-summary-card__metric {
    min-width: 0;
  }
}

/* Share / WhatsApp receipt polish */
.share-summary-card {
  isolation: isolate;
}

.share-summary-card__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.share-summary-card__brand-logo {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.share-summary-card__brand-title {
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #1d4ed8;
}

.share-summary-card__brand-subtitle {
  margin-top: 0.1rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94a3b8;
}

.share-summary-card__period {
  min-width: 8.2rem;
  border-radius: 1.5rem;
  background: #0f172a;
  padding: 0.9rem 1rem;
  text-align: right;
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

.share-summary-card__period-label,
.share-summary-card__section-label {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94a3b8;
}

.share-summary-card__summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: stretch;
}

.share-summary-card__payment-shell {
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(248, 250, 252, 0.92);
  border-radius: 1.5rem;
  padding: 1rem 1rem 1.05rem;
}

.share-summary-card__status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 900;
}

.share-summary-card__status--neutral {
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
}

.share-summary-card__status--warning {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.share-summary-card__status--success {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.share-summary-card__total-shell {
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #10b981, #22c55e);
  padding: 1rem 1.1rem;
  min-width: 14rem;
  color: #ffffff;
  box-shadow: 0 22px 42px rgba(16, 185, 129, 0.26);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.share-summary-card__pix-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.95rem;
  align-items: center;
  border-radius: 1.7rem;
  border: 1px solid rgba(191, 219, 254, 0.92);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(245, 243, 255, 0.96));
  padding: 1rem;
}

.share-summary-card__pix-copy {
  min-width: 0;
}

.share-summary-card__pix-amount {
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.share-summary-card__pix-text {
  max-width: 30rem;
  font-size: 0.86rem;
  line-height: 1.65;
  font-weight: 700;
  color: #475569;
}

.share-summary-card__pix-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.share-summary-card__pix-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(191, 219, 254, 0.92);
  background: rgba(255, 255, 255, 0.94);
  padding: 0.46rem 0.78rem;
  font-size: 0.72rem;
  font-weight: 900;
  color: #334155;
}

.share-summary-card__pix-qr-shell {
  width: 9.8rem;
  min-width: 9.8rem;
  min-height: 9.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.45rem;
  border: 1px solid rgba(191, 219, 254, 0.96);
  background: #ffffff;
  padding: 0.7rem;
}

.share-summary-card__pix-qr-image {
  width: 8.15rem;
  height: 8.15rem;
  object-fit: contain;
  display: block;
}

.share-summary-card__pix-qr-fallback {
  font-size: 0.78rem;
  line-height: 1.5;
  font-weight: 800;
  color: #475569;
  text-align: center;
}

.share-summary-card__total-label {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(236, 253, 245, 0.88);
}

.share-summary-card__total-value {
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.share-summary-card__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.share-summary-card__metric {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.3rem;
  min-height: 4.75rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(226, 232, 240, 0.96);
}

.share-summary-card__metric-label {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.share-summary-card__metric-value {
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 900;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.share-summary-card__metric-value--positive {
  color: #059669;
}

.share-summary-card__metric-value--danger {
  color: #dc2626;
}

.share-summary-card__list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  padding-bottom: 0.9rem;
}

.share-summary-card__item {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr) 8.9rem;
  gap: 0.85rem;
  align-items: start;
  border-radius: 1.2rem;
  background: #ffffff;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(226, 232, 240, 0.92);
}

.share-summary-card__item-date {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
  color: #64748b;
}

.share-summary-card__item-title {
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 900;
  color: #0f172a;
  word-break: break-word;
}

.share-summary-card__item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.28rem;
  text-align: right;
}

.share-summary-card__item-value {
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 900;
  color: #0f172a;
}

.share-summary-card__item-card {
  font-size: 0.77rem;
  line-height: 1.3;
  font-weight: 800;
  color: #64748b;
  white-space: normal;
  word-break: break-word;
  max-width: 8.9rem;
}

.share-summary-card--export {
  box-shadow: none;
}

.share-summary-card--export .share-summary-card__metric,
.share-summary-card--export .share-summary-card__item,
.share-summary-card--export .share-summary-card__payment-shell,
.share-summary-card--export .share-summary-card__list-head,
.share-summary-card--export .share-summary-card__list-head + div,
.share-summary-card--export .share-summary-card__total-shell,
.share-summary-card--export .share-summary-card__period {
  box-shadow: none;
}

.share-summary-card--export .share-summary-card__metric,
.share-summary-card--export .share-summary-card__item,
.share-summary-card--export .share-summary-card__payment-shell,
.share-summary-card--export .share-summary-card__list-head {
  border-color: rgba(203, 213, 225, 0.95);
}

.share-summary-card--export .share-summary-card__period {
  background: #0f172a;
}

@media (max-width: 767px) {
  .share-summary-card__summary-grid {
    grid-template-columns: 1fr;
  }

  .share-summary-card__total-shell {
    min-width: 0;
  }

  .share-summary-card__pix-shell {
    grid-template-columns: 1fr;
  }

  .share-summary-card__pix-qr-shell {
    width: 8.8rem;
    min-width: 8.8rem;
    min-height: 8.8rem;
  }

  .share-summary-card__pix-qr-image {
    width: 7.2rem;
    height: 7.2rem;
  }

  .share-summary-card__list-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .share-summary-card__item {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .share-summary-card__item-side {
    align-items: flex-start;
    text-align: left;
  }

  .share-summary-card__item-card {
    max-width: none;
  }
}
.share-summary-card__metrics--single {
  grid-template-columns: minmax(0, 1fr);
}

.op-summary-scroll-shell {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.op-summary-money-input {
  width: 6rem;
  min-width: 6rem;
  font-variant-numeric: tabular-nums;
}

.op-summary-amount-cell {
  font-variant-numeric: tabular-nums;
}

@media (min-width: 1024px) {
  .op-summary-money-input {
    width: 7rem;
    min-width: 7rem;
  }
}

@media (max-width: 1023px) {
  .op-summary-money-input {
    width: 8.75rem;
    min-width: 8.75rem;
  }

  .op-summary-amount-cell {
    min-width: 8.25rem;
  }
}

.op-notification-center {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: min(88vh, 56rem);
  max-height: min(88dvh, 56rem);
}

.op-notification-center__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.op-notification-item {
  display: block;
  padding: 1rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(248, 250, 252, 0.92);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.op-notification-item:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.34);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
}

.op-notification-item.is-unread {
  border-color: rgba(59, 130, 246, 0.3);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.95), rgba(248, 250, 252, 0.96));
}

.op-notification-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 1rem;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

html.dark .op-notification-item {
  border-color: rgba(51, 65, 85, 0.92);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 18px 32px rgba(2, 6, 23, 0.22);
}

html.dark .op-notification-item:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(15, 23, 42, 0.98);
}

html.dark .op-notification-item.is-unread {
  border-color: rgba(59, 130, 246, 0.42);
  background: linear-gradient(180deg, rgba(30, 64, 175, 0.22), rgba(15, 23, 42, 0.96));
}

html.dark .op-notification-item__icon {
  background: rgba(37, 99, 235, 0.18);
  color: #bfdbfe;
}

@media (max-width: 639px) {
  .op-notification-center {
    max-height: calc(100vh - 0.75rem);
    max-height: calc(100dvh - 0.75rem);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
}


@media (max-width: 767px) {
  html.op-ios .mobile-top-chrome-fix {
    height: calc(var(--op-top-safe) + 6px);
  }

  html.op-ios header.sticky {
    top: 0;
  }

  html.op-ios .op-topbar-shell {
    margin-top: 0.35rem;
    padding: 0.75rem;
    border-radius: 26px;
  }

  html.op-ios .op-mobile-topbar-row {
    align-items: stretch;
    gap: 0.55rem;
  }

  html.op-ios .op-mobile-brand-card {
    min-width: 0;
    padding: 0.72rem 0.8rem;
    border-radius: 22px;
  }

  html.op-ios .op-mobile-brand-card img {
    width: 2.75rem;
    height: 2.75rem;
  }

  html.op-ios .op-utility-btn {
    min-width: 44px;
    min-height: 44px;
    border-radius: 16px;
  }

  html.op-ios input:not([type="checkbox"]):not([type="radio"]),
  html.op-ios select,
  html.op-ios textarea {
    font-size: 16px !important;
  }

  html.op-ios button,
  html.op-ios a,
  html.op-ios input,
  html.op-ios select,
  html.op-ios textarea {
    -webkit-tap-highlight-color: transparent;
  }

  html.op-ios .op-app-main {
    padding-left: max(0.75rem, var(--op-left-safe));
    padding-right: max(0.75rem, var(--op-right-safe));
    padding-bottom: calc(5.35rem + var(--op-bottom-safe)) !important;
    scroll-padding-bottom: calc(5.35rem + var(--op-bottom-safe));
  }

  html.op-ios .op-bottom-nav {
    left: max(0.45rem, var(--op-left-safe));
    right: max(0.45rem, var(--op-right-safe));
    padding: 0 0 calc(var(--op-bottom-safe) + 0.55rem);
  }

  html.op-ios .op-bottom-nav__inner {
    gap: 0.28rem;
    padding: 0.45rem;
    border-radius: 24px;
    scroll-padding-inline: 0.45rem;
  }

  html.op-ios .op-bottom-nav__link {
    min-width: 4.35rem;
    min-height: 54px;
    padding: 0 0.58rem;
    font-size: 0.63rem;
  }

  html.op-ios .op-bottom-nav__icon {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 0.78rem;
  }

  html.op-ios .op-bottom-nav__badge {
    top: -0.2rem;
    right: -0.25rem;
  }

  html.op-ios .op-notification-center {
    max-height: calc(var(--op-app-height) - 0.65rem);
  }

  html.op-ios [data-dialog-surface] {
    max-height: calc(var(--op-app-height) - 1rem);
  }

  html.op-ios [data-notification-center] > .relative,
  html.op-ios .fixed.inset-0 > .relative.z-10 {
    padding-top: calc(var(--op-top-safe) + 0.25rem);
    padding-bottom: calc(var(--op-bottom-safe) + 0.35rem);
  }
}

@media (max-width: 767px) and (display-mode: standalone) {
  html.op-ios .op-topbar-shell {
    margin-top: 0.15rem;
  }

  html.op-ios .op-app-main {
    padding-bottom: calc(5.6rem + var(--op-bottom-safe)) !important;
    scroll-padding-bottom: calc(5.6rem + var(--op-bottom-safe));
  }
}

/* ===== Theme style switcher ===== */
.op-style-center-panel {
  max-height: calc(var(--op-app-height, 100dvh) - 1.25rem);
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-width: thin;
  scrollbar-color: rgba(96, 165, 250, 0.28) transparent;
  backdrop-filter: blur(20px);
}

.op-style-center-panel::-webkit-scrollbar {
  width: 8px;
}

.op-style-center-panel::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.45), rgba(59, 130, 246, 0.28));
  border-radius: 999px;
}

.op-style-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.1rem;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.9));
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.op-style-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.12);
}

.op-style-card.is-active {
  border-color: rgba(236, 72, 153, 0.35);
  box-shadow: 0 24px 48px rgba(236, 72, 153, 0.16);
}

.op-style-card__preview {
  position: relative;
  display: block;
  height: 132px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.op-style-card__preview-topbar,
.op-style-card__preview-body,
.op-style-card__preview-pill {
  position: absolute;
  display: block;
}

.op-style-card__preview-topbar {
  inset: 0 0 auto;
  height: 34px;
}

.op-style-card__preview-body {
  inset: 42px 14px 18px;
  border-radius: 18px;
}

.op-style-card__preview-pill {
  left: 14px;
  right: 64px;
  bottom: 14px;
  height: 14px;
  border-radius: 999px;
}

.op-style-card__preview--classic {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 34%),
    linear-gradient(180deg, #eef5ff 0%, #f8fbff 100%);
}

.op-style-card__preview--classic .op-style-card__preview-topbar {
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.9));
}

.op-style-card__preview--classic .op-style-card__preview-body {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.1);
}

.op-style-card__preview--classic .op-style-card__preview-pill {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
}

.op-style-card__preview--confete {
  background:
    radial-gradient(circle at 18% 18%, rgba(251, 113, 133, 0.32), transparent 34%),
    radial-gradient(circle at 85% 22%, rgba(168, 85, 247, 0.3), transparent 35%),
    radial-gradient(circle at 45% 100%, rgba(45, 212, 191, 0.22), transparent 44%),
    linear-gradient(180deg, #fff4f8 0%, #fffaf5 100%);
}

.op-style-card__preview--confete .op-style-card__preview-topbar {
  background: linear-gradient(135deg, rgba(255, 95, 109, 0.96), rgba(191, 90, 242, 0.92));
}

.op-style-card__preview--confete .op-style-card__preview-body {
  background: rgba(255, 251, 253, 0.96);
  box-shadow: 0 22px 40px rgba(236, 72, 153, 0.16);
}

.op-style-card__preview--confete .op-style-card__preview-pill {
  background: linear-gradient(135deg, #fb7185, #a855f7, #22d3ee);
}


.op-style-card__preview--orgulho {
  background:
    radial-gradient(circle at 14% 20%, rgba(244, 63, 94, 0.34), transparent 28%),
    radial-gradient(circle at 38% 16%, rgba(249, 115, 22, 0.28), transparent 30%),
    radial-gradient(circle at 72% 18%, rgba(245, 158, 11, 0.24), transparent 30%),
    radial-gradient(circle at 28% 90%, rgba(16, 185, 129, 0.18), transparent 40%),
    radial-gradient(circle at 92% 72%, rgba(14, 165, 233, 0.2), transparent 36%),
    linear-gradient(180deg, #fff7f2 0%, #fffdf8 100%);
}

.op-style-card__preview--orgulho .op-style-card__preview-topbar {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.96), rgba(249, 115, 22, 0.94), rgba(139, 92, 246, 0.92));
}

.op-style-card__preview--orgulho .op-style-card__preview-body {
  background: rgba(255, 253, 250, 0.97);
  box-shadow: 0 22px 40px rgba(225, 29, 72, 0.12);
}

.op-style-card__preview--orgulho .op-style-card__preview-pill {
  background: linear-gradient(135deg, #ef476f, #f97316, #f59e0b, #10b981, #0ea5e9, #8b5cf6);
}

.op-style-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.op-style-card__kicker {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #db2777;
}

.op-style-card__title {
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
}

.op-style-card__text {
  font-size: 0.92rem;
  line-height: 1.6;
  font-weight: 600;
  color: #64748b;
}

.op-style-card__check {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4rem;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.op-style-card:not(.is-active) .op-style-card__check {
  opacity: 0;
}

.op-style-card.is-active .op-style-card__check {
  background: linear-gradient(135deg, #fb7185, #a855f7);
  color: #fff;
  opacity: 1;
}

html.dark .op-style-card {
  border-color: rgba(71, 85, 105, 0.82);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.84));
}

html.dark .op-style-card__title {
  color: #f8fafc;
}

html.dark .op-style-card__text {
  color: #cbd5e1;
}

html.dark .op-style-card__check {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.op-utility-btn--style {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
}

.op-utility-btn--style::after {
  content: "";
  position: absolute;
  inset: auto auto -10px -8px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(251, 113, 133, 0.65), transparent 72%);
  pointer-events: none;
}

.op-mobile-appearance-menu__panel {
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.16);
}

.op-mobile-appearance-menu__button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.9rem;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.96);
  padding: 0.95rem 1rem;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.op-mobile-appearance-menu__button:hover,
.op-mobile-appearance-menu__button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.26);
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.op-mobile-appearance-menu__icon {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
}

html.dark .op-mobile-appearance-menu__panel {
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 24px 54px rgba(2, 6, 23, 0.48);
}

html.dark .op-mobile-appearance-menu__button {
  border-color: rgba(71, 85, 105, 0.78);
  background: rgba(15, 23, 42, 0.9);
}

html.dark .op-mobile-appearance-menu__button:hover,
html.dark .op-mobile-appearance-menu__button:focus-visible {
  border-color: rgba(96, 165, 250, 0.32);
  background: rgba(15, 23, 42, 0.96);
}

html.dark .op-mobile-appearance-menu__icon {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

/* ===== Confete theme ===== */
html[data-theme-style="confete"] {
  --op-bg: #fff5f7;
  --op-bg-dark: #170f24;
  --op-surface: rgba(255, 249, 252, 0.88);
  --op-surface-dark: rgba(33, 20, 50, 0.78);
  --op-border: rgba(244, 114, 182, 0.18);
  --op-border-dark: rgba(216, 180, 254, 0.14);
  --op-shadow: 0 18px 42px rgba(244, 114, 182, 0.08), 0 18px 40px rgba(168, 85, 247, 0.08);
  --op-shadow-strong: 0 30px 64px rgba(192, 38, 211, 0.18);
  --op-primary: #ec4899;
  --op-primary-ink: #431633;
  --op-muted: #865f7c;
}

html[data-theme-style="confete"] body {
  background:
    radial-gradient(circle at 8% 12%, rgba(251, 113, 133, 0.18), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(168, 85, 247, 0.18), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(45, 212, 191, 0.1), transparent 30%),
    linear-gradient(180deg, #fff5f7 0%, #fffaf3 46%, #fdf2ff 100%);
}

html.dark[data-theme-style="confete"] body {
  background:
    radial-gradient(circle at 12% 14%, rgba(251, 113, 133, 0.2), transparent 26%),
    radial-gradient(circle at 88% 14%, rgba(192, 132, 252, 0.2), transparent 28%),
    radial-gradient(circle at 46% 100%, rgba(45, 212, 191, 0.12), transparent 30%),
    linear-gradient(180deg, #170f24 0%, #241338 52%, #160f22 100%);
}

html[data-theme-style="confete"] body.op-shell::before,
html[data-theme-style="confete"] body.op-shell::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  filter: blur(14px);
}

html[data-theme-style="confete"] body.op-shell::before {
  top: 8rem;
  right: -4rem;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.18), transparent 68%);
}

html[data-theme-style="confete"] body.op-shell::after {
  left: -5rem;
  bottom: 9rem;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle, rgba(251, 113, 133, 0.16), transparent 70%);
}

html[data-theme-style="confete"] header,
html[data-theme-style="confete"] .op-app-main {
  position: relative;
  z-index: 1;
}

html[data-theme-style="confete"] .op-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
}

html[data-theme-style="confete"] .mobile-top-chrome-fix {
  background: linear-gradient(180deg, rgba(255, 117, 140, 0.92), rgba(191, 90, 242, 0.16));
}

html.dark[data-theme-style="confete"] .mobile-top-chrome-fix {
  background: linear-gradient(180deg, rgba(49, 24, 74, 0.92), rgba(49, 24, 74, 0.28));
}

html[data-theme-style="confete"] .op-topbar-shell {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(255, 95, 109, 0.95), rgba(191, 90, 242, 0.88) 54%, rgba(34, 211, 238, 0.82));
  box-shadow: 0 22px 52px rgba(236, 72, 153, 0.22);
}

html.dark[data-theme-style="confete"] .op-topbar-shell {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 34%),
    linear-gradient(135deg, rgba(68, 26, 78, 0.94), rgba(113, 39, 103, 0.9) 54%, rgba(16, 76, 105, 0.82));
  box-shadow: 0 22px 52px rgba(17, 8, 27, 0.34);
}

html[data-theme-style="confete"] .op-nav-link {
  color: rgba(255, 247, 252, 0.82);
}

html[data-theme-style="confete"] .op-nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

html[data-theme-style="confete"] .op-nav-link.is-active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12));
  box-shadow: 0 16px 34px rgba(255, 255, 255, 0.16);
}

html[data-theme-style="confete"] .op-utility-btn {
  color: rgba(255, 247, 252, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

html[data-theme-style="confete"] .op-utility-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

html[data-theme-style="confete"] .op-page-hero {
  background:
    radial-gradient(circle at top right, rgba(255, 186, 223, 0.42), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 251, 0.84));
  box-shadow: 0 24px 54px rgba(236, 72, 153, 0.12);
}

html[data-theme-style="confete"] .op-page-hero::before {
  background: radial-gradient(circle, rgba(251, 113, 133, 0.2), transparent 72%);
}

html[data-theme-style="confete"] .op-page-hero::after {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.16), transparent 68%);
}

html.dark[data-theme-style="confete"] .op-page-hero {
  background:
    radial-gradient(circle at top right, rgba(251, 113, 133, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(37, 18, 52, 0.92), rgba(28, 17, 44, 0.84));
  box-shadow: 0 26px 58px rgba(17, 8, 27, 0.34);
}

html[data-theme-style="confete"] .op-page-hero__eyebrow {
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(251, 113, 133, 0.18);
  color: #be185d;
}

html.dark[data-theme-style="confete"] .op-page-hero__eyebrow {
  background: rgba(251, 113, 133, 0.14);
  border-color: rgba(251, 113, 133, 0.24);
  color: #f9a8d4;
}

html[data-theme-style="confete"] .op-kpi-card,
html[data-theme-style="confete"] .op-surface-card,
html[data-theme-style="confete"] .op-admin-status-panel,
html[data-theme-style="confete"] .op-empty-state,
html[data-theme-style="confete"] .op-notification-item,
html[data-theme-style="confete"] .op-style-center-panel,
html[data-theme-style="confete"] .op-notification-center {
  box-shadow: 0 24px 54px rgba(236, 72, 153, 0.12);
}

html[data-theme-style="confete"] .op-kpi-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 252, 0.84));
  border-color: rgba(244, 114, 182, 0.18);
}

html.dark[data-theme-style="confete"] .op-kpi-card {
  background: linear-gradient(180deg, rgba(40, 21, 58, 0.88), rgba(29, 18, 46, 0.82));
  border-color: rgba(192, 132, 252, 0.16);
}

html[data-theme-style="confete"] .op-surface-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(255, 248, 252, 0.84));
}

html.dark[data-theme-style="confete"] .op-surface-card {
  background: linear-gradient(180deg, rgba(37, 20, 53, 0.86), rgba(25, 18, 41, 0.8));
}

html[data-theme-style="confete"] .badge {
  color: #7a2559;
  border-color: rgba(251, 113, 133, 0.18);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.1);
}

html.dark[data-theme-style="confete"] .badge {
  color: #fde7f3;
  border-color: rgba(236, 72, 153, 0.2);
  background: rgba(55, 28, 72, 0.8);
}

html[data-theme-style="confete"] .op-btn-primary {
  background: linear-gradient(135deg, #fb7185, #f43f5e 45%, #a855f7);
  border-color: rgba(244, 63, 94, 0.3);
  box-shadow: 0 18px 34px rgba(244, 63, 94, 0.22);
}

html[data-theme-style="confete"] .op-btn-primary:hover {
  background: linear-gradient(135deg, #f43f5e, #db2777 45%, #9333ea);
}

html[data-theme-style="confete"] .op-btn-success {
  background: linear-gradient(135deg, #fb7185, #f97316);
  box-shadow: 0 18px 34px rgba(251, 113, 133, 0.22);
}

html[data-theme-style="confete"] .op-btn-success:hover {
  background: linear-gradient(135deg, #f43f5e, #ea580c);
}

html[data-theme-style="confete"] .op-btn-info {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  box-shadow: 0 18px 34px rgba(168, 85, 247, 0.22);
}

html[data-theme-style="confete"] .op-btn-info:hover {
  background: linear-gradient(135deg, #7c3aed, #db2777);
}

html[data-theme-style="confete"] .op-btn-export {
  background: linear-gradient(135deg, #06b6d4, #8b5cf6, #ec4899);
  border-color: rgba(236, 72, 153, 0.28);
  box-shadow: 0 18px 34px rgba(168, 85, 247, 0.22);
}

html[data-theme-style="confete"] .op-btn-export:hover {
  background: linear-gradient(135deg, #0891b2, #7c3aed, #db2777);
}

html[data-theme-style="confete"] .op-btn-ghost,
html[data-theme-style="confete"] .op-icon-btn {
  color: #7a2559;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(251, 113, 133, 0.16);
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.08);
}

html[data-theme-style="confete"] .op-btn-ghost:hover,
html[data-theme-style="confete"] .op-icon-btn:hover {
  border-color: rgba(192, 38, 211, 0.24);
  color: #4a1940;
}

html.dark[data-theme-style="confete"] .op-btn-ghost,
html.dark[data-theme-style="confete"] .op-icon-btn {
  color: #fde7f3;
  background: rgba(55, 28, 72, 0.76);
  border-color: rgba(192, 132, 252, 0.18);
}

html[data-theme-style="confete"] .op-bottom-nav__inner {
  background: linear-gradient(135deg, rgba(255, 95, 109, 0.94), rgba(191, 90, 242, 0.9));
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 52px rgba(236, 72, 153, 0.28);
}

html.dark[data-theme-style="confete"] .op-bottom-nav__inner {
  background: linear-gradient(135deg, rgba(68, 26, 78, 0.96), rgba(85, 36, 95, 0.92));
  box-shadow: 0 24px 54px rgba(16, 8, 27, 0.42);
}

html[data-theme-style="confete"] .op-bottom-nav__link {
  color: rgba(255, 247, 252, 0.84);
}

html[data-theme-style="confete"] .op-bottom-nav__link:hover .op-bottom-nav__icon,
html[data-theme-style="confete"] .op-bottom-nav__link.is-active .op-bottom-nav__icon {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12));
  box-shadow: 0 12px 22px rgba(255, 255, 255, 0.16);
}

html[data-theme-style="confete"] .op-bottom-nav__badge,
html[data-theme-style="confete"] .op-utility-btn__badge {
  background: linear-gradient(135deg, #f59e0b, #f43f5e);
}

html[data-theme-style="confete"] .op-empty-state {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 249, 252, 0.86));
  border-color: rgba(251, 113, 133, 0.18);
}

html.dark[data-theme-style="confete"] .op-empty-state {
  background: linear-gradient(180deg, rgba(39, 22, 57, 0.88), rgba(28, 18, 44, 0.82));
  border-color: rgba(216, 180, 254, 0.16);
}

html[data-theme-style="confete"] .op-empty-state__icon {
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.16), rgba(168, 85, 247, 0.18));
  color: #be185d;
}

html.dark[data-theme-style="confete"] .op-empty-state__icon {
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.16), rgba(168, 85, 247, 0.2));
  color: #fbcfe8;
}

html[data-theme-style="confete"] .op-notification-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 252, 0.88));
  border-color: rgba(251, 113, 133, 0.16);
}

html.dark[data-theme-style="confete"] .op-notification-item {
  background: linear-gradient(180deg, rgba(40, 21, 58, 0.88), rgba(29, 18, 46, 0.82));
  border-color: rgba(192, 132, 252, 0.16);
}

html[data-theme-style="confete"] .op-notification-item.is-unread {
  background: linear-gradient(180deg, rgba(255, 247, 252, 0.98), rgba(255, 238, 247, 0.92));
  border-color: rgba(244, 63, 94, 0.18);
}

html.dark[data-theme-style="confete"] .op-notification-item.is-unread {
  background: linear-gradient(180deg, rgba(53, 22, 62, 0.9), rgba(36, 18, 45, 0.86));
}

html[data-theme-style="confete"] .op-notification-item__icon {
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.14), rgba(168, 85, 247, 0.16));
  color: #be185d;
}

html.dark[data-theme-style="confete"] .op-notification-item__icon {
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.18), rgba(168, 85, 247, 0.16));
  color: #fbcfe8;
}

html[data-theme-style="confete"] .op-admin-status-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 252, 0.86));
  border-color: rgba(251, 113, 133, 0.18);
}

html.dark[data-theme-style="confete"] .op-admin-status-panel {
  background: linear-gradient(180deg, rgba(38, 21, 56, 0.88), rgba(28, 18, 44, 0.82));
  border-color: rgba(216, 180, 254, 0.16);
}

html[data-theme-style="confete"] .op-admin-status-item,
html[data-theme-style="confete"] .op-admin-hero-action--secondary {
  border-color: rgba(251, 113, 133, 0.16);
  background: rgba(255, 255, 255, 0.88);
}

html.dark[data-theme-style="confete"] .op-admin-status-item,
html.dark[data-theme-style="confete"] .op-admin-hero-action--secondary {
  border-color: rgba(216, 180, 254, 0.16);
  background: rgba(40, 21, 58, 0.82);
}

html[data-theme-style="confete"] .op-admin-hero-action--primary {
  background: linear-gradient(135deg, #fb7185, #f43f5e 45%, #a855f7);
}

html.dark[data-theme-style="confete"] .op-admin-hero-action--primary {
  background: linear-gradient(135deg, #c026d3, #ec4899 45%, #f97316);
}

html[data-theme-style="confete"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
html[data-theme-style="confete"] select,
html[data-theme-style="confete"] textarea {
  border-color: rgba(251, 113, 133, 0.16) !important;
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.04);
}

html[data-theme-style="confete"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):focus,
html[data-theme-style="confete"] select:focus,
html[data-theme-style="confete"] textarea:focus {
  border-color: rgba(236, 72, 153, 0.34) !important;
}

html[data-theme-style="confete"] [class*="rounded"][class*="border-slate-200"],
html[data-theme-style="confete"] [class*="rounded"][class*="bg-white"],
html[data-theme-style="confete"] [class*="rounded"][class*="bg-slate-50"] {
  border-color: rgba(251, 113, 133, 0.14);
}

html.dark[data-theme-style="confete"] [class*="dark:border-slate-700"] {
  border-color: rgba(216, 180, 254, 0.16) !important;
}

html.dark[data-theme-style="confete"] [class*="dark:bg-slate-800"],
html.dark[data-theme-style="confete"] [class*="dark:bg-slate-900"] {
  background-color: rgba(39, 22, 57, 0.88) !important;
}

html[data-theme-style="confete"] .selection\:bg-blue-300::selection,
html[data-theme-style="confete"] body::selection {
  background: rgba(251, 113, 133, 0.3);
  color: #4a1940;
}

@media (max-width: 767px) {
  .op-style-card {
    padding: 1rem;
  }

  .op-style-card__preview {
    height: 118px;
  }
}

/* === Confete deep refinement: main screens, dense lists, sheets and microinteractions === */
html[data-theme-style="confete"] .op-screen {
  position: relative;
}

html[data-theme-style="confete"] .op-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  background:
    radial-gradient(circle at 0% 12%, rgba(255, 196, 226, 0.18), transparent 26%),
    radial-gradient(circle at 100% 6%, rgba(192, 132, 252, 0.16), transparent 22%);
}

html[data-theme-style="confete"] .op-screen > :not([data-manual-modal]):not(.fixed) {
  position: relative;
  z-index: 1;
}

html[data-theme-style="confete"] .op-form-card,
html[data-theme-style="confete"] .op-inline-alert,
html[data-theme-style="confete"] .op-month-selection-toolbar,
html[data-theme-style="confete"] .op-screen--summary .rounded-2xl,
html[data-theme-style="confete"] .op-screen--summary .rounded-3xl,
html[data-theme-style="confete"] .op-screen--shared-debts .rounded-2xl,
html[data-theme-style="confete"] .op-screen--shared-debts .rounded-3xl,
html[data-theme-style="confete"] .op-screen--month details,
html[data-theme-style="confete"] .op-screen--month .op-month-row,
html[data-theme-style="confete"] .op-screen--detalhamento .rounded-2xl,
html[data-theme-style="confete"] .op-screen--detalhamento .rounded-3xl,
html[data-theme-style="confete"] .op-screen--home .rounded-2xl,
html[data-theme-style="confete"] .op-screen--home .rounded-3xl,
html[data-theme-style="confete"] .op-screen--txn .rounded-2xl,
html[data-theme-style="confete"] .op-screen--txn .rounded-3xl {
  box-shadow: 0 18px 36px rgba(236, 72, 153, 0.08), 0 8px 18px rgba(192, 38, 211, 0.06);
}

html[data-theme-style="confete"] .op-form-card,
html[data-theme-style="confete"] .op-inline-alert,
html[data-theme-style="confete"] .op-month-selection-toolbar {
  border-color: rgba(251, 113, 133, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 252, 0.86));
}

html.dark[data-theme-style="confete"] .op-form-card,
html.dark[data-theme-style="confete"] .op-inline-alert,
html.dark[data-theme-style="confete"] .op-month-selection-toolbar {
  border-color: rgba(216, 180, 254, 0.16);
  background:
    linear-gradient(180deg, rgba(40, 22, 58, 0.9), rgba(29, 18, 46, 0.84));
}

html[data-theme-style="confete"] .op-screen--home .op-page-hero,
html[data-theme-style="confete"] .op-screen--txn .op-page-hero,
html[data-theme-style="confete"] .op-screen--month .op-page-hero,
html[data-theme-style="confete"] .op-screen--summary .op-page-hero,
html[data-theme-style="confete"] .op-screen--detalhamento .op-page-hero,
html[data-theme-style="confete"] .op-screen--shared-debts .op-page-hero {
  overflow: hidden;
  border: 1px solid rgba(251, 113, 133, 0.14);
}

html[data-theme-style="confete"] .op-screen--month .op-page-hero,
html[data-theme-style="confete"] .op-screen--shared-debts .op-page-hero {
  background:
    radial-gradient(circle at 88% 10%, rgba(251, 113, 133, 0.24), transparent 26%),
    radial-gradient(circle at 8% 0%, rgba(34, 211, 238, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 250, 0.88));
}

html.dark[data-theme-style="confete"] .op-screen--month .op-page-hero,
html.dark[data-theme-style="confete"] .op-screen--shared-debts .op-page-hero {
  background:
    radial-gradient(circle at 88% 10%, rgba(251, 113, 133, 0.18), transparent 24%),
    radial-gradient(circle at 6% 0%, rgba(34, 211, 238, 0.12), transparent 20%),
    linear-gradient(135deg, rgba(41, 20, 57, 0.94), rgba(31, 18, 45, 0.86));
}

html[data-theme-style="confete"] .op-screen--summary .op-page-hero,
html[data-theme-style="confete"] .op-screen--detalhamento .op-page-hero {
  background:
    radial-gradient(circle at 85% 18%, rgba(192, 132, 252, 0.22), transparent 30%),
    radial-gradient(circle at 12% 6%, rgba(251, 113, 133, 0.14), transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 252, 0.9));
}

html.dark[data-theme-style="confete"] .op-screen--summary .op-page-hero,
html.dark[data-theme-style="confete"] .op-screen--detalhamento .op-page-hero {
  background:
    radial-gradient(circle at 85% 18%, rgba(192, 132, 252, 0.18), transparent 26%),
    radial-gradient(circle at 10% 8%, rgba(251, 113, 133, 0.12), transparent 18%),
    linear-gradient(135deg, rgba(38, 20, 55, 0.94), rgba(29, 18, 45, 0.88));
}

html[data-theme-style="confete"] .op-screen--summary .op-surface-card,
html[data-theme-style="confete"] .op-screen--shared-debts article,
html[data-theme-style="confete"] .op-screen--shared-debts section > div.rounded-3xl,
html[data-theme-style="confete"] .op-screen--month .op-surface-card,
html[data-theme-style="confete"] .op-screen--detalhamento .op-surface-card,
html[data-theme-style="confete"] .op-screen--home .op-surface-card {
  border-color: rgba(251, 113, 133, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 252, 0.86));
}

html.dark[data-theme-style="confete"] .op-screen--summary .op-surface-card,
html.dark[data-theme-style="confete"] .op-screen--shared-debts article,
html.dark[data-theme-style="confete"] .op-screen--shared-debts section > div.rounded-3xl,
html.dark[data-theme-style="confete"] .op-screen--month .op-surface-card,
html.dark[data-theme-style="confete"] .op-screen--detalhamento .op-surface-card,
html.dark[data-theme-style="confete"] .op-screen--home .op-surface-card {
  border-color: rgba(216, 180, 254, 0.16);
  background:
    linear-gradient(180deg, rgba(39, 22, 57, 0.9), rgba(28, 18, 44, 0.84));
}

html[data-theme-style="confete"] .op-screen--month details,
html[data-theme-style="confete"] .op-screen--shared-debts details {
  border-color: rgba(251, 113, 133, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 252, 0.86));
}

html.dark[data-theme-style="confete"] .op-screen--month details,
html.dark[data-theme-style="confete"] .op-screen--shared-debts details {
  border-color: rgba(216, 180, 254, 0.16);
  background: linear-gradient(180deg, rgba(42, 23, 60, 0.9), rgba(29, 18, 46, 0.84));
}

html[data-theme-style="confete"] .op-screen--month .op-month-row {
  border-color: rgba(251, 113, 133, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 252, 0.9));
}

html[data-theme-style="confete"] .op-screen--month .op-month-row__meta {
  background: linear-gradient(180deg, rgba(255, 246, 251, 0.96), rgba(255, 241, 248, 0.86));
}

html.dark[data-theme-style="confete"] .op-screen--month .op-month-row {
  border-color: rgba(216, 180, 254, 0.18);
  background: linear-gradient(180deg, rgba(40, 22, 58, 0.92), rgba(29, 18, 46, 0.86));
}

html.dark[data-theme-style="confete"] .op-screen--month .op-month-row__meta {
  background: linear-gradient(180deg, rgba(49, 24, 74, 0.8), rgba(35, 18, 52, 0.74));
}

html[data-theme-style="confete"] .op-screen--month .op-month-row:hover,
html[data-theme-style="confete"] .op-screen--month .op-month-row:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 42px rgba(236, 72, 153, 0.12), 0 10px 22px rgba(192, 38, 211, 0.08);
}

html[data-theme-style="confete"] .op-screen--month .op-month-selection-toolbar {
  border-color: rgba(251, 113, 133, 0.18);
  background:
    radial-gradient(circle at top right, rgba(251, 113, 133, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 251, 0.9));
  box-shadow: 0 28px 54px rgba(236, 72, 153, 0.16);
}

html.dark[data-theme-style="confete"] .op-screen--month .op-month-selection-toolbar {
  background:
    radial-gradient(circle at top right, rgba(251, 113, 133, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(45, 22, 60, 0.96), rgba(29, 18, 46, 0.9));
}

html[data-theme-style="confete"] .op-screen--summary .op-summary-scroll-shell,
html[data-theme-style="confete"] .op-screen--month .overflow-x-auto {
  scrollbar-color: rgba(236, 72, 153, 0.45) transparent;
}

html[data-theme-style="confete"] .op-screen--summary table thead,
html[data-theme-style="confete"] .op-screen--month table thead {
  background: linear-gradient(135deg, rgba(255, 241, 247, 0.96), rgba(250, 232, 255, 0.92));
}

html.dark[data-theme-style="confete"] .op-screen--summary table thead,
html.dark[data-theme-style="confete"] .op-screen--month table thead {
  background: linear-gradient(135deg, rgba(51, 25, 73, 0.94), rgba(34, 20, 53, 0.9));
}

html[data-theme-style="confete"] .op-screen--summary tbody td,
html[data-theme-style="confete"] .op-screen--summary tfoot td {
  border-top: 1px solid rgba(251, 113, 133, 0.12);
  border-bottom: 1px solid rgba(251, 113, 133, 0.12);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
}

html[data-theme-style="confete"] .op-screen--summary tbody td:first-child,
html[data-theme-style="confete"] .op-screen--summary tfoot td:first-child {
  border-left: 1px solid rgba(251, 113, 133, 0.12);
  border-radius: 1.15rem 0 0 1.15rem;
}

html[data-theme-style="confete"] .op-screen--summary tbody td:last-child,
html[data-theme-style="confete"] .op-screen--summary tfoot td:last-child {
  border-right: 1px solid rgba(251, 113, 133, 0.12);
  border-radius: 0 1.15rem 1.15rem 0;
}

html.dark[data-theme-style="confete"] .op-screen--summary tbody td,
html.dark[data-theme-style="confete"] .op-screen--summary tfoot td {
  border-color: rgba(216, 180, 254, 0.14);
  background: rgba(47, 25, 67, 0.8);
}

html[data-theme-style="confete"] .op-screen--summary tbody tr:hover td {
  background: rgba(255, 241, 247, 0.92);
}

html.dark[data-theme-style="confete"] .op-screen--summary tbody tr:hover td {
  background: rgba(58, 28, 77, 0.88);
}

html[data-theme-style="confete"] .op-screen--summary .op-summary-money-input {
  background: rgba(255, 251, 253, 0.96);
}

html.dark[data-theme-style="confete"] .op-screen--summary .op-summary-money-input {
  background: rgba(35, 20, 52, 0.96);
}

html[data-theme-style="confete"] .op-screen--txn .op-form-card,
html[data-theme-style="confete"] .op-screen--home [data-manual-modal] .pointer-events-auto,
html[data-theme-style="confete"] .op-screen--month [data-manual-modal] .pointer-events-auto,
html[data-theme-style="confete"] .op-screen--detalhamento [data-manual-modal] .pointer-events-auto,
html[data-theme-style="confete"] [data-month-sheet-surface],
html[data-theme-style="confete"] [data-shared-debts-sheet] > div:last-child {
  border: 1px solid rgba(251, 113, 133, 0.16) !important;
  background:
    radial-gradient(circle at top right, rgba(255, 196, 226, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 248, 252, 0.92)) !important;
  box-shadow: 0 34px 74px rgba(236, 72, 153, 0.18), 0 16px 30px rgba(192, 38, 211, 0.08) !important;
}

html.dark[data-theme-style="confete"] .op-screen--txn .op-form-card,
html.dark[data-theme-style="confete"] .op-screen--home [data-manual-modal] .pointer-events-auto,
html.dark[data-theme-style="confete"] .op-screen--month [data-manual-modal] .pointer-events-auto,
html.dark[data-theme-style="confete"] .op-screen--detalhamento [data-manual-modal] .pointer-events-auto,
html.dark[data-theme-style="confete"] [data-month-sheet-surface],
html.dark[data-theme-style="confete"] [data-shared-debts-sheet] > div:last-child {
  border-color: rgba(216, 180, 254, 0.18) !important;
  background:
    radial-gradient(circle at top right, rgba(251, 113, 133, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(42, 22, 60, 0.98), rgba(28, 18, 44, 0.94)) !important;
  box-shadow: 0 36px 76px rgba(13, 8, 22, 0.54), 0 16px 34px rgba(192, 38, 211, 0.08) !important;
}

.op-manual-modal__scroll {
  padding-bottom: calc(var(--op-mobile-bottom-clearance, 96px) + 0.9rem) !important;
}

@media (min-width: 768px) {
  .op-manual-modal__scroll {
    padding-bottom: 1.75rem !important;
  }
}

html[data-theme-style="confete"] [data-manual-modal] {
  position: fixed;
  inset: 0;
  z-index: 10020;
  background: rgba(52, 8, 40, 0.34);
}

html[data-theme-style="confete"] [data-month-sheet-header],
html[data-theme-style="confete"] [data-shared-debts-sheet] h3,
html[data-theme-style="confete"] [data-shared-debts-sheet] [data-pix-sheet-title] {
  color: #551b48;
}

html.dark[data-theme-style="confete"] [data-month-sheet-header],
html.dark[data-theme-style="confete"] [data-shared-debts-sheet] h3,
html.dark[data-theme-style="confete"] [data-shared-debts-sheet] [data-pix-sheet-title] {
  color: #fff1f8;
}

html[data-theme-style="confete"] [data-month-sheet-actions],
html[data-theme-style="confete"] [data-shared-debts-sheet] form .border-t,
html[data-theme-style="confete"] [data-shared-debts-sheet] > div:last-child > div:last-child {
  background: rgba(255, 251, 253, 0.9);
}

html.dark[data-theme-style="confete"] [data-month-sheet-actions],
html.dark[data-theme-style="confete"] [data-shared-debts-sheet] > div:last-child > div:last-child {
  background: rgba(34, 20, 52, 0.88);
}

html[data-theme-style="confete"] .op-inline-alert--info,
html[data-theme-style="confete"] .op-inline-alert--warning,
html[data-theme-style="confete"] .op-inline-alert--success {
  border-color: rgba(251, 113, 133, 0.14);
}

html[data-theme-style="confete"] .op-empty-state,
html[data-theme-style="confete"] .op-inline-alert {
  position: relative;
  overflow: hidden;
}

html[data-theme-style="confete"] .op-empty-state::after,
html[data-theme-style="confete"] .op-inline-alert::after {
  content: "";
  position: absolute;
  inset: auto -10% -55% auto;
  width: 10rem;
  height: 10rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12), transparent 68%);
  pointer-events: none;
}

html[data-theme-style="confete"] .op-screen--shared-debts .badge,
html[data-theme-style="confete"] .op-screen--month .badge,
html[data-theme-style="confete"] .op-screen--summary .badge {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 251, 0.84));
}

html[data-theme-style="confete"] .op-screen--shared-debts .op-kpi-card:nth-child(1) {
  background: linear-gradient(180deg, rgba(255, 250, 253, 0.98), rgba(255, 240, 247, 0.9));
}

html[data-theme-style="confete"] .op-screen--shared-debts .op-kpi-card:nth-child(2) {
  background: linear-gradient(180deg, rgba(250, 245, 255, 0.98), rgba(243, 234, 255, 0.9));
}

html[data-theme-style="confete"] .op-screen--shared-debts .op-kpi-card:nth-child(3) {
  background: linear-gradient(180deg, rgba(255, 248, 238, 0.98), rgba(255, 239, 228, 0.9));
}

html.dark[data-theme-style="confete"] .op-screen--shared-debts .op-kpi-card:nth-child(1),
html.dark[data-theme-style="confete"] .op-screen--shared-debts .op-kpi-card:nth-child(2),
html.dark[data-theme-style="confete"] .op-screen--shared-debts .op-kpi-card:nth-child(3) {
  background: linear-gradient(180deg, rgba(44, 23, 63, 0.96), rgba(31, 18, 47, 0.88));
}

html[data-theme-style="confete"] .op-screen--home .op-page-hero__actions,
html[data-theme-style="confete"] .op-screen--summary .op-page-hero__actions,
html[data-theme-style="confete"] .op-screen--txn .op-page-hero__actions {
  gap: 0.75rem;
}

html[data-theme-style="confete"] .op-screen--summary [class*="bg-emerald-500"],
html[data-theme-style="confete"] .op-screen--detalhamento [class*="bg-emerald-500"] {
  box-shadow: 0 22px 38px rgba(251, 113, 133, 0.18);
}

html[data-theme-style="confete"] .op-screen--home [data-manual-modal-open],
html[data-theme-style="confete"] .op-screen--month [data-manual-modal-open],
html[data-theme-style="confete"] .op-screen--summary a,
html[data-theme-style="confete"] .op-screen--shared-debts a.inline-flex,
html[data-theme-style="confete"] .op-screen--txn button,
html[data-theme-style="confete"] .op-screen--txn a,
html[data-theme-style="confete"] .op-screen--month button,
html[data-theme-style="confete"] .op-screen--month a,
html[data-theme-style="confete"] .op-screen--summary button,
html[data-theme-style="confete"] .op-screen--detalhamento button,
html[data-theme-style="confete"] .op-screen--detalhamento a,
html[data-theme-style="confete"] .op-screen--shared-debts button {
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

html[data-theme-style="confete"] .op-screen--home [data-manual-modal-open]:active,
html[data-theme-style="confete"] .op-screen--month [data-manual-modal-open]:active,
html[data-theme-style="confete"] .op-screen--summary a:active,
html[data-theme-style="confete"] .op-screen--shared-debts a.inline-flex:active,
html[data-theme-style="confete"] .op-screen--txn button:active,
html[data-theme-style="confete"] .op-screen--txn a:active,
html[data-theme-style="confete"] .op-screen--month button:active,
html[data-theme-style="confete"] .op-screen--month a:active,
html[data-theme-style="confete"] .op-screen--summary button:active,
html[data-theme-style="confete"] .op-screen--detalhamento button:active,
html[data-theme-style="confete"] .op-screen--detalhamento a:active,
html[data-theme-style="confete"] .op-screen--shared-debts button:active {
  transform: scale(0.985);
}

@media (prefers-reduced-motion: no-preference) {
  html[data-theme-style="confete"] .op-screen--month .op-month-row,
  html[data-theme-style="confete"] .op-screen--summary tbody td,
  html[data-theme-style="confete"] .op-screen--shared-debts article,
  html[data-theme-style="confete"] .op-form-card,
  html[data-theme-style="confete"] [data-month-sheet-surface],
  html[data-theme-style="confete"] [data-shared-debts-sheet] > div:last-child {
    animation: op-confete-rise 420ms cubic-bezier(.2,.8,.2,1);
  }
}

@keyframes op-confete-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  html[data-theme-style="confete"] .op-screen::before {
    background:
      radial-gradient(circle at 6% 0%, rgba(255, 196, 226, 0.16), transparent 22%),
      radial-gradient(circle at 100% 4%, rgba(192, 132, 252, 0.12), transparent 20%);
  }

  html[data-theme-style="confete"] .op-screen--summary tbody td,
  html[data-theme-style="confete"] .op-screen--summary tfoot td {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  html[data-theme-style="confete"] .op-screen--month .op-month-row,
  html[data-theme-style="confete"] .op-screen--summary .rounded-2xl,
  html[data-theme-style="confete"] .op-screen--shared-debts .rounded-2xl,
  html[data-theme-style="confete"] .op-form-card {
    box-shadow: 0 18px 30px rgba(236, 72, 153, 0.1), 0 8px 18px rgba(192, 38, 211, 0.06);
  }
}


/* ===== Orgulho theme ===== */
html[data-theme-style="orgulho"] {
  --op-bg: #fff5f7;
  --op-bg-dark: #170f24;
  --op-surface: rgba(255, 249, 252, 0.88);
  --op-surface-dark: rgba(33, 20, 50, 0.78);
  --op-border: rgba(244, 114, 182, 0.18);
  --op-border-dark: rgba(216, 180, 254, 0.14);
  --op-shadow: 0 18px 42px rgba(244, 114, 182, 0.08), 0 18px 40px rgba(168, 85, 247, 0.08);
  --op-shadow-strong: 0 30px 64px rgba(192, 38, 211, 0.18);
  --op-primary: #ec4899;
  --op-primary-ink: #431633;
  --op-muted: #865f7c;
}

html[data-theme-style="orgulho"] body {
  background:
    radial-gradient(circle at 8% 12%, rgba(251, 113, 133, 0.18), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(168, 85, 247, 0.18), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(45, 212, 191, 0.1), transparent 30%),
    linear-gradient(180deg, #fff5f7 0%, #fffaf3 46%, #fdf2ff 100%);
}

html.dark[data-theme-style="orgulho"] body {
  background:
    radial-gradient(circle at 12% 14%, rgba(251, 113, 133, 0.2), transparent 26%),
    radial-gradient(circle at 88% 14%, rgba(192, 132, 252, 0.2), transparent 28%),
    radial-gradient(circle at 46% 100%, rgba(45, 212, 191, 0.12), transparent 30%),
    linear-gradient(180deg, #170f24 0%, #241338 52%, #160f22 100%);
}

html[data-theme-style="orgulho"] body.op-shell::before,
html[data-theme-style="orgulho"] body.op-shell::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  filter: blur(14px);
}

html[data-theme-style="orgulho"] body.op-shell::before {
  top: 8rem;
  right: -4rem;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.18), transparent 68%);
}

html[data-theme-style="orgulho"] body.op-shell::after {
  left: -5rem;
  bottom: 9rem;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle, rgba(251, 113, 133, 0.16), transparent 70%);
}

html[data-theme-style="orgulho"] header,
html[data-theme-style="orgulho"] .op-app-main {
  position: relative;
  z-index: 1;
}

html[data-theme-style="orgulho"] .op-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
}

html[data-theme-style="orgulho"] .mobile-top-chrome-fix {
  background: linear-gradient(180deg, rgba(255, 117, 140, 0.92), rgba(191, 90, 242, 0.16));
}

html.dark[data-theme-style="orgulho"] .mobile-top-chrome-fix {
  background: linear-gradient(180deg, rgba(49, 24, 74, 0.92), rgba(49, 24, 74, 0.28));
}

html[data-theme-style="orgulho"] .op-topbar-shell {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(255, 95, 109, 0.95), rgba(191, 90, 242, 0.88) 54%, rgba(34, 211, 238, 0.82));
  box-shadow: 0 22px 52px rgba(236, 72, 153, 0.22);
}

html.dark[data-theme-style="orgulho"] .op-topbar-shell {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 34%),
    linear-gradient(135deg, rgba(68, 26, 78, 0.94), rgba(113, 39, 103, 0.9) 54%, rgba(16, 76, 105, 0.82));
  box-shadow: 0 22px 52px rgba(17, 8, 27, 0.34);
}

html[data-theme-style="orgulho"] .op-nav-link {
  color: rgba(255, 247, 252, 0.82);
}

html[data-theme-style="orgulho"] .op-nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

html[data-theme-style="orgulho"] .op-nav-link.is-active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12));
  box-shadow: 0 16px 34px rgba(255, 255, 255, 0.16);
}

html[data-theme-style="orgulho"] .op-utility-btn {
  color: rgba(255, 247, 252, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

html[data-theme-style="orgulho"] .op-utility-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

html[data-theme-style="orgulho"] .op-page-hero {
  background:
    radial-gradient(circle at top right, rgba(255, 186, 223, 0.42), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 251, 0.84));
  box-shadow: 0 24px 54px rgba(236, 72, 153, 0.12);
}

html[data-theme-style="orgulho"] .op-page-hero::before {
  background: radial-gradient(circle, rgba(251, 113, 133, 0.2), transparent 72%);
}

html[data-theme-style="orgulho"] .op-page-hero::after {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.16), transparent 68%);
}

html.dark[data-theme-style="orgulho"] .op-page-hero {
  background:
    radial-gradient(circle at top right, rgba(251, 113, 133, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(37, 18, 52, 0.92), rgba(28, 17, 44, 0.84));
  box-shadow: 0 26px 58px rgba(17, 8, 27, 0.34);
}

html[data-theme-style="orgulho"] .op-page-hero__eyebrow {
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(251, 113, 133, 0.18);
  color: #be185d;
}

html.dark[data-theme-style="orgulho"] .op-page-hero__eyebrow {
  background: rgba(251, 113, 133, 0.14);
  border-color: rgba(251, 113, 133, 0.24);
  color: #f9a8d4;
}

html[data-theme-style="orgulho"] .op-kpi-card,
html[data-theme-style="orgulho"] .op-surface-card,
html[data-theme-style="orgulho"] .op-admin-status-panel,
html[data-theme-style="orgulho"] .op-empty-state,
html[data-theme-style="orgulho"] .op-notification-item,
html[data-theme-style="orgulho"] .op-style-center-panel,
html[data-theme-style="orgulho"] .op-notification-center {
  box-shadow: 0 24px 54px rgba(236, 72, 153, 0.12);
}

html[data-theme-style="orgulho"] .op-kpi-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 252, 0.84));
  border-color: rgba(244, 114, 182, 0.18);
}

html.dark[data-theme-style="orgulho"] .op-kpi-card {
  background: linear-gradient(180deg, rgba(40, 21, 58, 0.88), rgba(29, 18, 46, 0.82));
  border-color: rgba(192, 132, 252, 0.16);
}

html[data-theme-style="orgulho"] .op-surface-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(255, 248, 252, 0.84));
}

html.dark[data-theme-style="orgulho"] .op-surface-card {
  background: linear-gradient(180deg, rgba(37, 20, 53, 0.86), rgba(25, 18, 41, 0.8));
}

html[data-theme-style="orgulho"] .badge {
  color: #7a2559;
  border-color: rgba(251, 113, 133, 0.18);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.1);
}

html.dark[data-theme-style="orgulho"] .badge {
  color: #fde7f3;
  border-color: rgba(236, 72, 153, 0.2);
  background: rgba(55, 28, 72, 0.8);
}

html[data-theme-style="orgulho"] .op-btn-primary {
  background: linear-gradient(135deg, #fb7185, #f43f5e 45%, #a855f7);
  border-color: rgba(244, 63, 94, 0.3);
  box-shadow: 0 18px 34px rgba(244, 63, 94, 0.22);
}

html[data-theme-style="orgulho"] .op-btn-primary:hover {
  background: linear-gradient(135deg, #f43f5e, #db2777 45%, #9333ea);
}

html[data-theme-style="orgulho"] .op-btn-success {
  background: linear-gradient(135deg, #fb7185, #f97316);
  box-shadow: 0 18px 34px rgba(251, 113, 133, 0.22);
}

html[data-theme-style="orgulho"] .op-btn-success:hover {
  background: linear-gradient(135deg, #f43f5e, #ea580c);
}

html[data-theme-style="orgulho"] .op-btn-info {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  box-shadow: 0 18px 34px rgba(168, 85, 247, 0.22);
}

html[data-theme-style="orgulho"] .op-btn-info:hover {
  background: linear-gradient(135deg, #7c3aed, #db2777);
}

html[data-theme-style="orgulho"] .op-btn-ghost,
html[data-theme-style="orgulho"] .op-icon-btn {
  color: #7a2559;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(251, 113, 133, 0.16);
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.08);
}

html[data-theme-style="orgulho"] .op-btn-ghost:hover,
html[data-theme-style="orgulho"] .op-icon-btn:hover {
  border-color: rgba(192, 38, 211, 0.24);
  color: #4a1940;
}

html.dark[data-theme-style="orgulho"] .op-btn-ghost,
html.dark[data-theme-style="orgulho"] .op-icon-btn {
  color: #fde7f3;
  background: rgba(55, 28, 72, 0.76);
  border-color: rgba(192, 132, 252, 0.18);
}

html[data-theme-style="orgulho"] .op-bottom-nav__inner {
  background: linear-gradient(135deg, rgba(255, 95, 109, 0.94), rgba(191, 90, 242, 0.9));
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 52px rgba(236, 72, 153, 0.28);
}

html.dark[data-theme-style="orgulho"] .op-bottom-nav__inner {
  background: linear-gradient(135deg, rgba(68, 26, 78, 0.96), rgba(85, 36, 95, 0.92));
  box-shadow: 0 24px 54px rgba(16, 8, 27, 0.42);
}

html[data-theme-style="orgulho"] .op-bottom-nav__link {
  color: rgba(255, 247, 252, 0.84);
}

html[data-theme-style="orgulho"] .op-bottom-nav__link:hover .op-bottom-nav__icon,
html[data-theme-style="orgulho"] .op-bottom-nav__link.is-active .op-bottom-nav__icon {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12));
  box-shadow: 0 12px 22px rgba(255, 255, 255, 0.16);
}

html[data-theme-style="orgulho"] .op-bottom-nav__badge,
html[data-theme-style="orgulho"] .op-utility-btn__badge {
  background: linear-gradient(135deg, #f59e0b, #f43f5e);
}

html[data-theme-style="orgulho"] .op-empty-state {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 249, 252, 0.86));
  border-color: rgba(251, 113, 133, 0.18);
}

html.dark[data-theme-style="orgulho"] .op-empty-state {
  background: linear-gradient(180deg, rgba(39, 22, 57, 0.88), rgba(28, 18, 44, 0.82));
  border-color: rgba(216, 180, 254, 0.16);
}

html[data-theme-style="orgulho"] .op-empty-state__icon {
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.16), rgba(168, 85, 247, 0.18));
  color: #be185d;
}

html.dark[data-theme-style="orgulho"] .op-empty-state__icon {
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.16), rgba(168, 85, 247, 0.2));
  color: #fbcfe8;
}

html[data-theme-style="orgulho"] .op-notification-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 252, 0.88));
  border-color: rgba(251, 113, 133, 0.16);
}

html.dark[data-theme-style="orgulho"] .op-notification-item {
  background: linear-gradient(180deg, rgba(40, 21, 58, 0.88), rgba(29, 18, 46, 0.82));
  border-color: rgba(192, 132, 252, 0.16);
}

html[data-theme-style="orgulho"] .op-notification-item.is-unread {
  background: linear-gradient(180deg, rgba(255, 247, 252, 0.98), rgba(255, 238, 247, 0.92));
  border-color: rgba(244, 63, 94, 0.18);
}

html.dark[data-theme-style="orgulho"] .op-notification-item.is-unread {
  background: linear-gradient(180deg, rgba(53, 22, 62, 0.9), rgba(36, 18, 45, 0.86));
}

html[data-theme-style="orgulho"] .op-notification-item__icon {
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.14), rgba(168, 85, 247, 0.16));
  color: #be185d;
}

html.dark[data-theme-style="orgulho"] .op-notification-item__icon {
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.18), rgba(168, 85, 247, 0.16));
  color: #fbcfe8;
}

html[data-theme-style="orgulho"] .op-admin-status-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 252, 0.86));
  border-color: rgba(251, 113, 133, 0.18);
}

html.dark[data-theme-style="orgulho"] .op-admin-status-panel {
  background: linear-gradient(180deg, rgba(38, 21, 56, 0.88), rgba(28, 18, 44, 0.82));
  border-color: rgba(216, 180, 254, 0.16);
}

html[data-theme-style="orgulho"] .op-admin-status-item,
html[data-theme-style="orgulho"] .op-admin-hero-action--secondary {
  border-color: rgba(251, 113, 133, 0.16);
  background: rgba(255, 255, 255, 0.88);
}

html.dark[data-theme-style="orgulho"] .op-admin-status-item,
html.dark[data-theme-style="orgulho"] .op-admin-hero-action--secondary {
  border-color: rgba(216, 180, 254, 0.16);
  background: rgba(40, 21, 58, 0.82);
}

html[data-theme-style="orgulho"] .op-admin-hero-action--primary {
  background: linear-gradient(135deg, #fb7185, #f43f5e 45%, #a855f7);
}

html.dark[data-theme-style="orgulho"] .op-admin-hero-action--primary {
  background: linear-gradient(135deg, #c026d3, #ec4899 45%, #f97316);
}

html[data-theme-style="orgulho"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
html[data-theme-style="orgulho"] select,
html[data-theme-style="orgulho"] textarea {
  border-color: rgba(251, 113, 133, 0.16) !important;
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.04);
}

html[data-theme-style="orgulho"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):focus,
html[data-theme-style="orgulho"] select:focus,
html[data-theme-style="orgulho"] textarea:focus {
  border-color: rgba(236, 72, 153, 0.34) !important;
}

html[data-theme-style="orgulho"] [class*="rounded"][class*="border-slate-200"],
html[data-theme-style="orgulho"] [class*="rounded"][class*="bg-white"],
html[data-theme-style="orgulho"] [class*="rounded"][class*="bg-slate-50"] {
  border-color: rgba(251, 113, 133, 0.14);
}

html.dark[data-theme-style="orgulho"] [class*="dark:border-slate-700"] {
  border-color: rgba(216, 180, 254, 0.16) !important;
}

html.dark[data-theme-style="orgulho"] [class*="dark:bg-slate-800"],
html.dark[data-theme-style="orgulho"] [class*="dark:bg-slate-900"] {
  background-color: rgba(39, 22, 57, 0.88) !important;
}

html[data-theme-style="orgulho"] .selection\:bg-blue-300::selection,
html[data-theme-style="orgulho"] body::selection {
  background: rgba(251, 113, 133, 0.3);
  color: #4a1940;
}

@media (max-width: 767px) {
  .op-style-card {
    padding: 1rem;
  }

  .op-style-card__preview {
    height: 118px;
  }
}

/* === Orgulho deep refinement: main screens, dense lists, sheets and microinteractions === */
html[data-theme-style="orgulho"] .op-screen {
  position: relative;
}

html[data-theme-style="orgulho"] .op-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  background:
    radial-gradient(circle at 0% 12%, rgba(255, 196, 226, 0.18), transparent 26%),
    radial-gradient(circle at 100% 6%, rgba(192, 132, 252, 0.16), transparent 22%);
}

html[data-theme-style="orgulho"] .op-screen > :not([data-manual-modal]):not(.fixed) {
  position: relative;
  z-index: 1;
}

html[data-theme-style="orgulho"] .op-form-card,
html[data-theme-style="orgulho"] .op-inline-alert,
html[data-theme-style="orgulho"] .op-month-selection-toolbar,
html[data-theme-style="orgulho"] .op-screen--summary .rounded-2xl,
html[data-theme-style="orgulho"] .op-screen--summary .rounded-3xl,
html[data-theme-style="orgulho"] .op-screen--shared-debts .rounded-2xl,
html[data-theme-style="orgulho"] .op-screen--shared-debts .rounded-3xl,
html[data-theme-style="orgulho"] .op-screen--month details,
html[data-theme-style="orgulho"] .op-screen--month .op-month-row,
html[data-theme-style="orgulho"] .op-screen--detalhamento .rounded-2xl,
html[data-theme-style="orgulho"] .op-screen--detalhamento .rounded-3xl,
html[data-theme-style="orgulho"] .op-screen--home .rounded-2xl,
html[data-theme-style="orgulho"] .op-screen--home .rounded-3xl,
html[data-theme-style="orgulho"] .op-screen--txn .rounded-2xl,
html[data-theme-style="orgulho"] .op-screen--txn .rounded-3xl {
  box-shadow: 0 18px 36px rgba(236, 72, 153, 0.08), 0 8px 18px rgba(192, 38, 211, 0.06);
}

html[data-theme-style="orgulho"] .op-form-card,
html[data-theme-style="orgulho"] .op-inline-alert,
html[data-theme-style="orgulho"] .op-month-selection-toolbar {
  border-color: rgba(251, 113, 133, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 252, 0.86));
}

html.dark[data-theme-style="orgulho"] .op-form-card,
html.dark[data-theme-style="orgulho"] .op-inline-alert,
html.dark[data-theme-style="orgulho"] .op-month-selection-toolbar {
  border-color: rgba(216, 180, 254, 0.16);
  background:
    linear-gradient(180deg, rgba(40, 22, 58, 0.9), rgba(29, 18, 46, 0.84));
}

html[data-theme-style="orgulho"] .op-screen--home .op-page-hero,
html[data-theme-style="orgulho"] .op-screen--txn .op-page-hero,
html[data-theme-style="orgulho"] .op-screen--month .op-page-hero,
html[data-theme-style="orgulho"] .op-screen--summary .op-page-hero,
html[data-theme-style="orgulho"] .op-screen--detalhamento .op-page-hero,
html[data-theme-style="orgulho"] .op-screen--shared-debts .op-page-hero {
  overflow: hidden;
  border: 1px solid rgba(251, 113, 133, 0.14);
}

html[data-theme-style="orgulho"] .op-screen--month .op-page-hero,
html[data-theme-style="orgulho"] .op-screen--shared-debts .op-page-hero {
  background:
    radial-gradient(circle at 88% 10%, rgba(251, 113, 133, 0.24), transparent 26%),
    radial-gradient(circle at 8% 0%, rgba(34, 211, 238, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 250, 0.88));
}

html.dark[data-theme-style="orgulho"] .op-screen--month .op-page-hero,
html.dark[data-theme-style="orgulho"] .op-screen--shared-debts .op-page-hero {
  background:
    radial-gradient(circle at 88% 10%, rgba(251, 113, 133, 0.18), transparent 24%),
    radial-gradient(circle at 6% 0%, rgba(34, 211, 238, 0.12), transparent 20%),
    linear-gradient(135deg, rgba(41, 20, 57, 0.94), rgba(31, 18, 45, 0.86));
}

html[data-theme-style="orgulho"] .op-screen--summary .op-page-hero,
html[data-theme-style="orgulho"] .op-screen--detalhamento .op-page-hero {
  background:
    radial-gradient(circle at 85% 18%, rgba(192, 132, 252, 0.22), transparent 30%),
    radial-gradient(circle at 12% 6%, rgba(251, 113, 133, 0.14), transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 252, 0.9));
}

html.dark[data-theme-style="orgulho"] .op-screen--summary .op-page-hero,
html.dark[data-theme-style="orgulho"] .op-screen--detalhamento .op-page-hero {
  background:
    radial-gradient(circle at 85% 18%, rgba(192, 132, 252, 0.18), transparent 26%),
    radial-gradient(circle at 10% 8%, rgba(251, 113, 133, 0.12), transparent 18%),
    linear-gradient(135deg, rgba(38, 20, 55, 0.94), rgba(29, 18, 45, 0.88));
}

html[data-theme-style="orgulho"] .op-screen--summary .op-surface-card,
html[data-theme-style="orgulho"] .op-screen--shared-debts article,
html[data-theme-style="orgulho"] .op-screen--shared-debts section > div.rounded-3xl,
html[data-theme-style="orgulho"] .op-screen--month .op-surface-card,
html[data-theme-style="orgulho"] .op-screen--detalhamento .op-surface-card,
html[data-theme-style="orgulho"] .op-screen--home .op-surface-card {
  border-color: rgba(251, 113, 133, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 252, 0.86));
}

html.dark[data-theme-style="orgulho"] .op-screen--summary .op-surface-card,
html.dark[data-theme-style="orgulho"] .op-screen--shared-debts article,
html.dark[data-theme-style="orgulho"] .op-screen--shared-debts section > div.rounded-3xl,
html.dark[data-theme-style="orgulho"] .op-screen--month .op-surface-card,
html.dark[data-theme-style="orgulho"] .op-screen--detalhamento .op-surface-card,
html.dark[data-theme-style="orgulho"] .op-screen--home .op-surface-card {
  border-color: rgba(216, 180, 254, 0.16);
  background:
    linear-gradient(180deg, rgba(39, 22, 57, 0.9), rgba(28, 18, 44, 0.84));
}

html[data-theme-style="orgulho"] .op-screen--month details,
html[data-theme-style="orgulho"] .op-screen--shared-debts details {
  border-color: rgba(251, 113, 133, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 252, 0.86));
}

html.dark[data-theme-style="orgulho"] .op-screen--month details,
html.dark[data-theme-style="orgulho"] .op-screen--shared-debts details {
  border-color: rgba(216, 180, 254, 0.16);
  background: linear-gradient(180deg, rgba(42, 23, 60, 0.9), rgba(29, 18, 46, 0.84));
}

html[data-theme-style="orgulho"] .op-screen--month .op-month-row {
  border-color: rgba(251, 113, 133, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 252, 0.9));
}

html[data-theme-style="orgulho"] .op-screen--month .op-month-row__meta {
  background: linear-gradient(180deg, rgba(255, 246, 251, 0.96), rgba(255, 241, 248, 0.86));
}

html.dark[data-theme-style="orgulho"] .op-screen--month .op-month-row {
  border-color: rgba(216, 180, 254, 0.18);
  background: linear-gradient(180deg, rgba(40, 22, 58, 0.92), rgba(29, 18, 46, 0.86));
}

html.dark[data-theme-style="orgulho"] .op-screen--month .op-month-row__meta {
  background: linear-gradient(180deg, rgba(49, 24, 74, 0.8), rgba(35, 18, 52, 0.74));
}

html[data-theme-style="orgulho"] .op-screen--month .op-month-row:hover,
html[data-theme-style="orgulho"] .op-screen--month .op-month-row:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 42px rgba(236, 72, 153, 0.12), 0 10px 22px rgba(192, 38, 211, 0.08);
}

html[data-theme-style="orgulho"] .op-screen--month .op-month-selection-toolbar {
  border-color: rgba(251, 113, 133, 0.18);
  background:
    radial-gradient(circle at top right, rgba(251, 113, 133, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 251, 0.9));
  box-shadow: 0 28px 54px rgba(236, 72, 153, 0.16);
}

html.dark[data-theme-style="orgulho"] .op-screen--month .op-month-selection-toolbar {
  background:
    radial-gradient(circle at top right, rgba(251, 113, 133, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(45, 22, 60, 0.96), rgba(29, 18, 46, 0.9));
}

html[data-theme-style="orgulho"] .op-screen--summary .op-summary-scroll-shell,
html[data-theme-style="orgulho"] .op-screen--month .overflow-x-auto {
  scrollbar-color: rgba(236, 72, 153, 0.45) transparent;
}

html[data-theme-style="orgulho"] .op-screen--summary table thead,
html[data-theme-style="orgulho"] .op-screen--month table thead {
  background: linear-gradient(135deg, rgba(255, 241, 247, 0.96), rgba(250, 232, 255, 0.92));
}

html.dark[data-theme-style="orgulho"] .op-screen--summary table thead,
html.dark[data-theme-style="orgulho"] .op-screen--month table thead {
  background: linear-gradient(135deg, rgba(51, 25, 73, 0.94), rgba(34, 20, 53, 0.9));
}

html[data-theme-style="orgulho"] .op-screen--summary tbody td,
html[data-theme-style="orgulho"] .op-screen--summary tfoot td {
  border-top: 1px solid rgba(251, 113, 133, 0.12);
  border-bottom: 1px solid rgba(251, 113, 133, 0.12);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
}

html[data-theme-style="orgulho"] .op-screen--summary tbody td:first-child,
html[data-theme-style="orgulho"] .op-screen--summary tfoot td:first-child {
  border-left: 1px solid rgba(251, 113, 133, 0.12);
  border-radius: 1.15rem 0 0 1.15rem;
}

html[data-theme-style="orgulho"] .op-screen--summary tbody td:last-child,
html[data-theme-style="orgulho"] .op-screen--summary tfoot td:last-child {
  border-right: 1px solid rgba(251, 113, 133, 0.12);
  border-radius: 0 1.15rem 1.15rem 0;
}

html.dark[data-theme-style="orgulho"] .op-screen--summary tbody td,
html.dark[data-theme-style="orgulho"] .op-screen--summary tfoot td {
  border-color: rgba(216, 180, 254, 0.14);
  background: rgba(47, 25, 67, 0.8);
}

html[data-theme-style="orgulho"] .op-screen--summary tbody tr:hover td {
  background: rgba(255, 241, 247, 0.92);
}

html.dark[data-theme-style="orgulho"] .op-screen--summary tbody tr:hover td {
  background: rgba(58, 28, 77, 0.88);
}

html[data-theme-style="orgulho"] .op-screen--summary .op-summary-money-input {
  background: rgba(255, 251, 253, 0.96);
}

html.dark[data-theme-style="orgulho"] .op-screen--summary .op-summary-money-input {
  background: rgba(35, 20, 52, 0.96);
}

html[data-theme-style="orgulho"] .op-screen--txn .op-form-card,
html[data-theme-style="orgulho"] .op-screen--home [data-manual-modal] .pointer-events-auto,
html[data-theme-style="orgulho"] .op-screen--month [data-manual-modal] .pointer-events-auto,
html[data-theme-style="orgulho"] .op-screen--detalhamento [data-manual-modal] .pointer-events-auto,
html[data-theme-style="orgulho"] [data-month-sheet-surface],
html[data-theme-style="orgulho"] [data-shared-debts-sheet] > div:last-child {
  border: 1px solid rgba(251, 113, 133, 0.16) !important;
  background:
    radial-gradient(circle at top right, rgba(255, 196, 226, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 248, 252, 0.92)) !important;
  box-shadow: 0 34px 74px rgba(236, 72, 153, 0.18), 0 16px 30px rgba(192, 38, 211, 0.08) !important;
}

html.dark[data-theme-style="orgulho"] .op-screen--txn .op-form-card,
html.dark[data-theme-style="orgulho"] .op-screen--home [data-manual-modal] .pointer-events-auto,
html.dark[data-theme-style="orgulho"] .op-screen--month [data-manual-modal] .pointer-events-auto,
html.dark[data-theme-style="orgulho"] .op-screen--detalhamento [data-manual-modal] .pointer-events-auto,
html.dark[data-theme-style="orgulho"] [data-month-sheet-surface],
html.dark[data-theme-style="orgulho"] [data-shared-debts-sheet] > div:last-child {
  border-color: rgba(216, 180, 254, 0.18) !important;
  background:
    radial-gradient(circle at top right, rgba(251, 113, 133, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(42, 22, 60, 0.98), rgba(28, 18, 44, 0.94)) !important;
  box-shadow: 0 36px 76px rgba(13, 8, 22, 0.54), 0 16px 34px rgba(192, 38, 211, 0.08) !important;
}

.op-manual-modal__scroll {
  padding-bottom: calc(var(--op-mobile-bottom-clearance, 96px) + 0.9rem) !important;
}

@media (min-width: 768px) {
  .op-manual-modal__scroll {
    padding-bottom: 1.75rem !important;
  }
}

html[data-theme-style="orgulho"] [data-manual-modal] {
  position: fixed;
  inset: 0;
  z-index: 10020;
  background: rgba(52, 8, 40, 0.34);
}

html[data-theme-style="orgulho"] [data-month-sheet-header],
html[data-theme-style="orgulho"] [data-shared-debts-sheet] h3,
html[data-theme-style="orgulho"] [data-shared-debts-sheet] [data-pix-sheet-title] {
  color: #551b48;
}

html.dark[data-theme-style="orgulho"] [data-month-sheet-header],
html.dark[data-theme-style="orgulho"] [data-shared-debts-sheet] h3,
html.dark[data-theme-style="orgulho"] [data-shared-debts-sheet] [data-pix-sheet-title] {
  color: #fff1f8;
}

html[data-theme-style="orgulho"] [data-month-sheet-actions],
html[data-theme-style="orgulho"] [data-shared-debts-sheet] form .border-t,
html[data-theme-style="orgulho"] [data-shared-debts-sheet] > div:last-child > div:last-child {
  background: rgba(255, 251, 253, 0.9);
}

html.dark[data-theme-style="orgulho"] [data-month-sheet-actions],
html.dark[data-theme-style="orgulho"] [data-shared-debts-sheet] > div:last-child > div:last-child {
  background: rgba(34, 20, 52, 0.88);
}

html[data-theme-style="orgulho"] .op-inline-alert--info,
html[data-theme-style="orgulho"] .op-inline-alert--warning,
html[data-theme-style="orgulho"] .op-inline-alert--success {
  border-color: rgba(251, 113, 133, 0.14);
}

html[data-theme-style="orgulho"] .op-empty-state,
html[data-theme-style="orgulho"] .op-inline-alert {
  position: relative;
  overflow: hidden;
}

html[data-theme-style="orgulho"] .op-empty-state::after,
html[data-theme-style="orgulho"] .op-inline-alert::after {
  content: "";
  position: absolute;
  inset: auto -10% -55% auto;
  width: 10rem;
  height: 10rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12), transparent 68%);
  pointer-events: none;
}

html[data-theme-style="orgulho"] .op-screen--shared-debts .badge,
html[data-theme-style="orgulho"] .op-screen--month .badge,
html[data-theme-style="orgulho"] .op-screen--summary .badge {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 251, 0.84));
}

html[data-theme-style="orgulho"] .op-screen--shared-debts .op-kpi-card:nth-child(1) {
  background: linear-gradient(180deg, rgba(255, 250, 253, 0.98), rgba(255, 240, 247, 0.9));
}

html[data-theme-style="orgulho"] .op-screen--shared-debts .op-kpi-card:nth-child(2) {
  background: linear-gradient(180deg, rgba(250, 245, 255, 0.98), rgba(243, 234, 255, 0.9));
}

html[data-theme-style="orgulho"] .op-screen--shared-debts .op-kpi-card:nth-child(3) {
  background: linear-gradient(180deg, rgba(255, 248, 238, 0.98), rgba(255, 239, 228, 0.9));
}

html.dark[data-theme-style="orgulho"] .op-screen--shared-debts .op-kpi-card:nth-child(1),
html.dark[data-theme-style="orgulho"] .op-screen--shared-debts .op-kpi-card:nth-child(2),
html.dark[data-theme-style="orgulho"] .op-screen--shared-debts .op-kpi-card:nth-child(3) {
  background: linear-gradient(180deg, rgba(44, 23, 63, 0.96), rgba(31, 18, 47, 0.88));
}

html[data-theme-style="orgulho"] .op-screen--home .op-page-hero__actions,
html[data-theme-style="orgulho"] .op-screen--summary .op-page-hero__actions,
html[data-theme-style="orgulho"] .op-screen--txn .op-page-hero__actions {
  gap: 0.75rem;
}

html[data-theme-style="orgulho"] .op-screen--summary [class*="bg-emerald-500"],
html[data-theme-style="orgulho"] .op-screen--detalhamento [class*="bg-emerald-500"] {
  box-shadow: 0 22px 38px rgba(251, 113, 133, 0.18);
}

html[data-theme-style="orgulho"] .op-screen--home [data-manual-modal-open],
html[data-theme-style="orgulho"] .op-screen--month [data-manual-modal-open],
html[data-theme-style="orgulho"] .op-screen--summary a,
html[data-theme-style="orgulho"] .op-screen--shared-debts a.inline-flex,
html[data-theme-style="orgulho"] .op-screen--txn button,
html[data-theme-style="orgulho"] .op-screen--txn a,
html[data-theme-style="orgulho"] .op-screen--month button,
html[data-theme-style="orgulho"] .op-screen--month a,
html[data-theme-style="orgulho"] .op-screen--summary button,
html[data-theme-style="orgulho"] .op-screen--detalhamento button,
html[data-theme-style="orgulho"] .op-screen--detalhamento a,
html[data-theme-style="orgulho"] .op-screen--shared-debts button {
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

html[data-theme-style="orgulho"] .op-screen--home [data-manual-modal-open]:active,
html[data-theme-style="orgulho"] .op-screen--month [data-manual-modal-open]:active,
html[data-theme-style="orgulho"] .op-screen--summary a:active,
html[data-theme-style="orgulho"] .op-screen--shared-debts a.inline-flex:active,
html[data-theme-style="orgulho"] .op-screen--txn button:active,
html[data-theme-style="orgulho"] .op-screen--txn a:active,
html[data-theme-style="orgulho"] .op-screen--month button:active,
html[data-theme-style="orgulho"] .op-screen--month a:active,
html[data-theme-style="orgulho"] .op-screen--summary button:active,
html[data-theme-style="orgulho"] .op-screen--detalhamento button:active,
html[data-theme-style="orgulho"] .op-screen--detalhamento a:active,
html[data-theme-style="orgulho"] .op-screen--shared-debts button:active {
  transform: scale(0.985);
}

@media (prefers-reduced-motion: no-preference) {
  html[data-theme-style="orgulho"] .op-screen--month .op-month-row,
  html[data-theme-style="orgulho"] .op-screen--summary tbody td,
  html[data-theme-style="orgulho"] .op-screen--shared-debts article,
  html[data-theme-style="orgulho"] .op-form-card,
  html[data-theme-style="orgulho"] [data-month-sheet-surface],
  html[data-theme-style="orgulho"] [data-shared-debts-sheet] > div:last-child {
    animation: op-orgulho-rise 420ms cubic-bezier(.2,.8,.2,1);
  }
}

@keyframes op-orgulho-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  html[data-theme-style="orgulho"] .op-screen::before {
    background:
      radial-gradient(circle at 6% 0%, rgba(255, 196, 226, 0.16), transparent 22%),
      radial-gradient(circle at 100% 4%, rgba(192, 132, 252, 0.12), transparent 20%);
  }

  html[data-theme-style="orgulho"] .op-screen--summary tbody td,
  html[data-theme-style="orgulho"] .op-screen--summary tfoot td {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  html[data-theme-style="orgulho"] .op-screen--month .op-month-row,
  html[data-theme-style="orgulho"] .op-screen--summary .rounded-2xl,
  html[data-theme-style="orgulho"] .op-screen--shared-debts .rounded-2xl,
  html[data-theme-style="orgulho"] .op-form-card {
    box-shadow: 0 18px 30px rgba(236, 72, 153, 0.1), 0 8px 18px rgba(192, 38, 211, 0.06);
  }
}


/* ===== Orgulho theme color overrides ===== */
html[data-theme-style="orgulho"] {
  color-scheme: light;
}

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

html[data-theme-style="orgulho"] body {
  background:
    radial-gradient(circle at 8% 16%, rgba(244, 63, 94, 0.22), transparent 26%),
    radial-gradient(circle at 28% 10%, rgba(249, 115, 22, 0.22), transparent 28%),
    radial-gradient(circle at 52% 0%, rgba(245, 158, 11, 0.2), transparent 30%),
    radial-gradient(circle at 74% 16%, rgba(16, 185, 129, 0.18), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(14, 165, 233, 0.18), transparent 24%),
    radial-gradient(circle at 84% 80%, rgba(139, 92, 246, 0.18), transparent 30%),
    linear-gradient(180deg, #fff8f2 0%, #fffdf9 48%, #fff8fb 100%);
}

html.dark[data-theme-style="orgulho"] body {
  background:
    radial-gradient(circle at 12% 14%, rgba(244, 63, 94, 0.22), transparent 24%),
    radial-gradient(circle at 32% 10%, rgba(249, 115, 22, 0.18), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(14, 165, 233, 0.18), transparent 24%),
    radial-gradient(circle at 80% 82%, rgba(139, 92, 246, 0.22), transparent 28%),
    linear-gradient(180deg, #160f2a 0%, #191235 54%, #110b20 100%);
}

html[data-theme-style="orgulho"] body.op-shell::before {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0));
}

html[data-theme-style="orgulho"] body.op-shell::after {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0));
}

html[data-theme-style="orgulho"] .mobile-top-chrome-fix {
  background: linear-gradient(180deg, rgba(225, 29, 72, 0.96), rgba(139, 92, 246, 0.52));
}

html.dark[data-theme-style="orgulho"] .mobile-top-chrome-fix {
  background: linear-gradient(180deg, rgba(18, 11, 36, 0.97), rgba(18, 11, 36, 0.54));
}

html[data-theme-style="orgulho"] .op-topbar-shell {
  background:
    linear-gradient(135deg, rgba(225, 29, 72, 0.86), rgba(249, 115, 22, 0.82) 32%, rgba(16, 185, 129, 0.8) 66%, rgba(139, 92, 246, 0.82));
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 26px 56px rgba(225, 29, 72, 0.14);
}

html.dark[data-theme-style="orgulho"] .op-topbar-shell {
  background:
    linear-gradient(135deg, rgba(28, 17, 56, 0.94), rgba(57, 21, 71, 0.9) 40%, rgba(20, 47, 77, 0.9));
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme-style="orgulho"] .op-nav-link.is-active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff9fb;
  box-shadow: 0 16px 28px rgba(225, 29, 72, 0.16);
}

html[data-theme-style="orgulho"] .op-utility-btn,
html[data-theme-style="orgulho"] .op-btn-ghost,
html[data-theme-style="orgulho"] .op-icon-btn {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 200, 214, 0.56);
  color: #7f1d3f;
}

html[data-theme-style="orgulho"] .op-utility-btn:hover,
html[data-theme-style="orgulho"] .op-btn-ghost:hover,
html[data-theme-style="orgulho"] .op-icon-btn:hover {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(244, 63, 94, 0.24);
}

html.dark[data-theme-style="orgulho"] .op-utility-btn,
html.dark[data-theme-style="orgulho"] .op-btn-ghost,
html.dark[data-theme-style="orgulho"] .op-icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fef2ff;
}

html[data-theme-style="orgulho"] .op-page-hero {
  background:
    radial-gradient(circle at 0% 0%, rgba(249, 115, 22, 0.24), transparent 26%),
    radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.22), transparent 28%),
    radial-gradient(circle at 50% 110%, rgba(139, 92, 246, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 250, 247, 0.94), rgba(255, 246, 251, 0.9));
  border-color: rgba(255, 198, 213, 0.48);
  box-shadow: 0 28px 50px rgba(225, 29, 72, 0.1);
}

html[data-theme-style="orgulho"] .op-page-hero::before {
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.18), rgba(244, 63, 94, 0));
}

html[data-theme-style="orgulho"] .op-page-hero::after {
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.16), rgba(14, 165, 233, 0));
}

html.dark[data-theme-style="orgulho"] .op-page-hero {
  background:
    radial-gradient(circle at 8% 14%, rgba(244, 63, 94, 0.18), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(29, 18, 53, 0.92), rgba(18, 11, 36, 0.94));
  border-color: rgba(244, 63, 94, 0.2);
  box-shadow: 0 28px 56px rgba(6, 3, 14, 0.4);
}

html[data-theme-style="orgulho"] .op-page-hero__eyebrow {
  background: linear-gradient(135deg, rgba(255, 240, 245, 0.95), rgba(255, 247, 232, 0.94));
  border-color: rgba(244, 63, 94, 0.16);
  color: #9f1239;
}

html.dark[data-theme-style="orgulho"] .op-page-hero__eyebrow {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fde7f3;
}

html[data-theme-style="orgulho"] .op-kpi-card,
html[data-theme-style="orgulho"] .op-surface-card,
html[data-theme-style="orgulho"] .op-admin-status-panel,
html[data-theme-style="orgulho"] .op-empty-state,
html[data-theme-style="orgulho"] .op-notification-item,
html[data-theme-style="orgulho"] .op-style-center-panel,
html[data-theme-style="orgulho"] .op-notification-center,
html[data-theme-style="orgulho"] .op-form-card,
html[data-theme-style="orgulho"] .op-inline-alert,
html[data-theme-style="orgulho"] .op-month-selection-toolbar,
html[data-theme-style="orgulho"] [data-month-sheet-surface],
html[data-theme-style="orgulho"] [data-shared-debts-sheet] > div:last-child {
  border-color: rgba(255, 201, 216, 0.48);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 248, 0.92));
  box-shadow: 0 22px 48px rgba(225, 29, 72, 0.08);
}

html.dark[data-theme-style="orgulho"] .op-kpi-card,
html.dark[data-theme-style="orgulho"] .op-surface-card,
html.dark[data-theme-style="orgulho"] .op-admin-status-panel,
html.dark[data-theme-style="orgulho"] .op-empty-state,
html.dark[data-theme-style="orgulho"] .op-notification-item,
html.dark[data-theme-style="orgulho"] .op-style-center-panel,
html.dark[data-theme-style="orgulho"] .op-notification-center,
html.dark[data-theme-style="orgulho"] .op-form-card,
html.dark[data-theme-style="orgulho"] .op-inline-alert,
html.dark[data-theme-style="orgulho"] .op-month-selection-toolbar,
html.dark[data-theme-style="orgulho"] [data-month-sheet-surface],
html.dark[data-theme-style="orgulho"] [data-shared-debts-sheet] > div:last-child {
  border-color: rgba(244, 63, 94, 0.14);
  background: linear-gradient(180deg, rgba(30, 18, 52, 0.9), rgba(18, 11, 36, 0.94));
  box-shadow: 0 24px 52px rgba(5, 2, 12, 0.42);
}

html[data-theme-style="orgulho"] .badge,
html[data-theme-style="orgulho"] .op-screen--shared-debts .badge,
html[data-theme-style="orgulho"] .op-screen--month .badge,
html[data-theme-style="orgulho"] .op-screen--summary .badge {
  background: linear-gradient(135deg, rgba(255, 245, 247, 0.95), rgba(255, 250, 235, 0.95));
  border-color: rgba(244, 63, 94, 0.18);
  color: #9f1239;
}

html.dark[data-theme-style="orgulho"] .badge,
html.dark[data-theme-style="orgulho"] .op-screen--shared-debts .badge,
html.dark[data-theme-style="orgulho"] .op-screen--month .badge,
html.dark[data-theme-style="orgulho"] .op-screen--summary .badge {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fde7f3;
}

html[data-theme-style="orgulho"] .op-btn-primary {
  background: linear-gradient(135deg, #e11d48, #f97316 42%, #8b5cf6 100%);
  color: #fff;
  box-shadow: 0 18px 32px rgba(225, 29, 72, 0.22);
}

html[data-theme-style="orgulho"] .op-btn-primary:hover {
  background: linear-gradient(135deg, #be123c, #ea580c 42%, #7c3aed 100%);
}

html[data-theme-style="orgulho"] .op-btn-success {
  background: linear-gradient(135deg, #0f766e, #10b981);
  color: #fff;
}

html[data-theme-style="orgulho"] .op-btn-info {
  background: linear-gradient(135deg, #0369a1, #0ea5e9);
  color: #fff;
}

html[data-theme-style="orgulho"] .op-bottom-nav__inner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 244, 0.94));
  border-color: rgba(255, 201, 216, 0.56);
  box-shadow: 0 22px 42px rgba(225, 29, 72, 0.12);
}

html.dark[data-theme-style="orgulho"] .op-bottom-nav__inner {
  background: linear-gradient(135deg, rgba(28, 17, 50, 0.94), rgba(18, 11, 35, 0.94));
  border-color: rgba(244, 63, 94, 0.16);
}

html[data-theme-style="orgulho"] .op-bottom-nav__link:hover .op-bottom-nav__icon,
html[data-theme-style="orgulho"] .op-bottom-nav__link.is-active .op-bottom-nav__icon {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.18), rgba(249, 115, 22, 0.16), rgba(139, 92, 246, 0.16));
  box-shadow: 0 12px 20px rgba(225, 29, 72, 0.14);
}

html[data-theme-style="orgulho"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
html[data-theme-style="orgulho"] select,
html[data-theme-style="orgulho"] textarea {
  border-color: rgba(255, 200, 214, 0.58);
  background: rgba(255, 255, 255, 0.9);
}

html[data-theme-style="orgulho"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):focus,
html[data-theme-style="orgulho"] select:focus,
html[data-theme-style="orgulho"] textarea:focus {
  border-color: rgba(244, 63, 94, 0.46);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.14);
}

html[data-theme-style="orgulho"] .op-screen::before {
  background:
    radial-gradient(circle at 12% 12%, rgba(244, 63, 94, 0.12), transparent 22%),
    radial-gradient(circle at 36% 8%, rgba(249, 115, 22, 0.1), transparent 22%),
    radial-gradient(circle at 78% 14%, rgba(14, 165, 233, 0.08), transparent 20%),
    radial-gradient(circle at 86% 88%, rgba(139, 92, 246, 0.08), transparent 22%);
}

html[data-theme-style="orgulho"] .op-screen--month .op-month-row,
html[data-theme-style="orgulho"] .op-screen--summary tbody td,
html[data-theme-style="orgulho"] .op-screen--summary tfoot td,
html[data-theme-style="orgulho"] .op-screen--shared-debts article,
html[data-theme-style="orgulho"] .op-screen--month details,
html[data-theme-style="orgulho"] .op-screen--shared-debts details {
  border-color: rgba(255, 200, 214, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 251, 248, 0.9));
}

html.dark[data-theme-style="orgulho"] .op-screen--month .op-month-row,
html.dark[data-theme-style="orgulho"] .op-screen--summary tbody td,
html.dark[data-theme-style="orgulho"] .op-screen--summary tfoot td,
html.dark[data-theme-style="orgulho"] .op-screen--shared-debts article,
html.dark[data-theme-style="orgulho"] .op-screen--month details,
html.dark[data-theme-style="orgulho"] .op-screen--shared-debts details {
  border-color: rgba(244, 63, 94, 0.12);
  background: linear-gradient(180deg, rgba(31, 19, 54, 0.86), rgba(19, 11, 37, 0.92));
}

html[data-theme-style="orgulho"] .op-screen--month .op-month-row:hover,
html[data-theme-style="orgulho"] .op-screen--month .op-month-row:focus-visible,
html[data-theme-style="orgulho"] .op-screen--summary tbody tr:hover td {
  background: linear-gradient(180deg, rgba(255, 245, 247, 0.98), rgba(255, 250, 238, 0.98));
}

html.dark[data-theme-style="orgulho"] .op-screen--month .op-month-row:hover,
html.dark[data-theme-style="orgulho"] .op-screen--month .op-month-row:focus-visible,
html.dark[data-theme-style="orgulho"] .op-screen--summary tbody tr:hover td {
  background: linear-gradient(180deg, rgba(48, 25, 66, 0.98), rgba(23, 14, 40, 0.98));
}

html[data-theme-style="orgulho"] .op-screen--summary table thead,
html[data-theme-style="orgulho"] .op-screen--month table thead {
  background: linear-gradient(135deg, rgba(255, 243, 247, 0.98), rgba(255, 250, 235, 0.98));
}

html.dark[data-theme-style="orgulho"] .op-screen--summary table thead,
html.dark[data-theme-style="orgulho"] .op-screen--month table thead {
  background: linear-gradient(135deg, rgba(43, 24, 67, 0.98), rgba(20, 13, 40, 0.98));
}

html[data-theme-style="orgulho"] .op-screen--shared-debts .op-kpi-card:nth-child(1) {
  background: linear-gradient(135deg, rgba(255, 242, 245, 0.98), rgba(255, 247, 232, 0.98));
}

html[data-theme-style="orgulho"] .op-screen--shared-debts .op-kpi-card:nth-child(2) {
  background: linear-gradient(135deg, rgba(239, 255, 247, 0.98), rgba(236, 253, 255, 0.98));
}

html[data-theme-style="orgulho"] .op-screen--shared-debts .op-kpi-card:nth-child(3) {
  background: linear-gradient(135deg, rgba(245, 243, 255, 0.98), rgba(255, 243, 251, 0.98));
}

html.dark[data-theme-style="orgulho"] .op-screen--shared-debts .op-kpi-card:nth-child(1),
html.dark[data-theme-style="orgulho"] .op-screen--shared-debts .op-kpi-card:nth-child(2),
html.dark[data-theme-style="orgulho"] .op-screen--shared-debts .op-kpi-card:nth-child(3) {
  background: linear-gradient(180deg, rgba(31, 19, 55, 0.92), rgba(18, 11, 35, 0.94));
}

html[data-theme-style="orgulho"] .op-inline-alert--info,
html[data-theme-style="orgulho"] .op-inline-alert--warning,
html[data-theme-style="orgulho"] .op-inline-alert--success,
html[data-theme-style="orgulho"] .op-empty-state::after,
html[data-theme-style="orgulho"] .op-inline-alert::after {
  background-image: linear-gradient(135deg, rgba(244, 63, 94, 0.12), rgba(249, 115, 22, 0.12), rgba(14, 165, 233, 0.08), rgba(139, 92, 246, 0.12));
}

@media (max-width: 767px) {
  html[data-theme-style="orgulho"] .op-screen::before {
    opacity: 0.9;
  }
}


/* ===== Orgulho theme bugfix + stronger rainbow presence ===== */
html[data-theme-style="orgulho"] {
  --op-orgulho-rainbow: linear-gradient(90deg, #ef4444 0%, #f97316 16%, #f59e0b 32%, #22c55e 48%, #06b6d4 64%, #3b82f6 80%, #a855f7 100%);
  --op-orgulho-shell-light: linear-gradient(135deg, rgba(239, 68, 68, 0.98), rgba(249, 115, 22, 0.94) 18%, rgba(245, 158, 11, 0.92) 34%, rgba(34, 197, 94, 0.92) 52%, rgba(6, 182, 212, 0.9) 70%, rgba(59, 130, 246, 0.9) 84%, rgba(168, 85, 247, 0.92) 100%);
  --op-orgulho-shell-dark: linear-gradient(135deg, rgba(92, 20, 48, 0.98), rgba(122, 57, 17, 0.96) 18%, rgba(110, 89, 16, 0.95) 34%, rgba(16, 89, 75, 0.95) 52%, rgba(10, 84, 112, 0.94) 70%, rgba(30, 64, 175, 0.94) 84%, rgba(109, 40, 217, 0.95) 100%);
}

html[data-theme-style="orgulho"] .op-style-center-panel {
  max-height: calc(var(--op-app-height, 100dvh) - 1.25rem);
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 63, 94, 0.38) transparent;
}

html[data-theme-style="orgulho"] .op-style-center-panel::-webkit-scrollbar {
  width: 8px;
}

html[data-theme-style="orgulho"] .op-style-center-panel::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.55), rgba(168, 85, 247, 0.5));
  border-radius: 999px;
}

html[data-theme-style="orgulho"] .op-topbar-shell {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 32%),
    var(--op-orgulho-shell-light);
  box-shadow: 0 26px 58px rgba(225, 29, 72, 0.2);
}

html.dark[data-theme-style="orgulho"] .op-topbar-shell {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 34%),
    var(--op-orgulho-shell-dark);
  box-shadow: 0 28px 60px rgba(17, 8, 27, 0.42);
}

html[data-theme-style="orgulho"] .mobile-top-chrome-fix {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.98), rgba(168, 85, 247, 0.56));
}

html.dark[data-theme-style="orgulho"] .mobile-top-chrome-fix {
  background: linear-gradient(180deg, rgba(54, 17, 48, 0.98), rgba(22, 14, 44, 0.62));
}

html[data-theme-style="orgulho"] .op-btn-primary {
  background: linear-gradient(135deg, #ef4444 0%, #f97316 18%, #f59e0b 34%, #22c55e 50%, #06b6d4 68%, #3b82f6 84%, #a855f7 100%);
  border-color: rgba(244, 63, 94, 0.32);
  box-shadow: 0 20px 38px rgba(225, 29, 72, 0.22), 0 10px 24px rgba(6, 182, 212, 0.14);
}

html[data-theme-style="orgulho"] .op-btn-primary:hover {
  background: linear-gradient(135deg, #dc2626 0%, #ea580c 18%, #d97706 34%, #16a34a 50%, #0891b2 68%, #2563eb 84%, #9333ea 100%);
}

html[data-theme-style="orgulho"] .op-btn-success {
  background: linear-gradient(135deg, #22c55e 0%, #14b8a6 38%, #06b6d4 68%, #3b82f6 100%);
  box-shadow: 0 20px 36px rgba(34, 197, 94, 0.22), 0 10px 22px rgba(6, 182, 212, 0.14);
}

html[data-theme-style="orgulho"] .op-btn-success:hover {
  background: linear-gradient(135deg, #16a34a 0%, #0d9488 38%, #0891b2 68%, #2563eb 100%);
}

html[data-theme-style="orgulho"] .op-btn-info {
  background: linear-gradient(135deg, #f97316 0%, #ec4899 36%, #8b5cf6 70%, #3b82f6 100%);
  box-shadow: 0 20px 36px rgba(249, 115, 22, 0.2), 0 10px 22px rgba(168, 85, 247, 0.16);
}

html[data-theme-style="orgulho"] .op-btn-info:hover {
  background: linear-gradient(135deg, #ea580c 0%, #db2777 36%, #7c3aed 70%, #2563eb 100%);
}

html[data-theme-style="orgulho"] .op-btn-export {
  background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 36%, #3b82f6 70%, #8b5cf6 100%);
  border-color: rgba(59, 130, 246, 0.28);
  box-shadow: 0 20px 36px rgba(6, 182, 212, 0.18), 0 10px 22px rgba(139, 92, 246, 0.14);
}

html[data-theme-style="orgulho"] .op-btn-export:hover {
  background: linear-gradient(135deg, #0d9488 0%, #0891b2 36%, #2563eb 70%, #7c3aed 100%);
}

html[data-theme-style="orgulho"] .op-utility-btn,
html[data-theme-style="orgulho"] .op-btn-ghost,
html[data-theme-style="orgulho"] .op-icon-btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 251, 0.9));
  border-color: rgba(244, 63, 94, 0.18);
  box-shadow: 0 14px 28px rgba(225, 29, 72, 0.08), inset 0 1px 0 rgba(255,255,255,0.5);
}

html[data-theme-style="orgulho"] .op-utility-btn:hover,
html[data-theme-style="orgulho"] .op-btn-ghost:hover,
html[data-theme-style="orgulho"] .op-icon-btn:hover {
  border-color: rgba(168, 85, 247, 0.26);
  box-shadow: 0 18px 34px rgba(225, 29, 72, 0.1), 0 8px 20px rgba(6, 182, 212, 0.08);
}

html.dark[data-theme-style="orgulho"] .op-utility-btn,
html.dark[data-theme-style="orgulho"] .op-btn-ghost,
html.dark[data-theme-style="orgulho"] .op-icon-btn {
  background: linear-gradient(180deg, rgba(55, 25, 62, 0.88), rgba(26, 20, 51, 0.9));
  border-color: rgba(244, 63, 94, 0.16);
  box-shadow: 0 16px 30px rgba(12, 7, 23, 0.32), inset 0 1px 0 rgba(255,255,255,0.06);
}

html[data-theme-style="orgulho"] .op-bottom-nav {
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(239, 68, 68, 0.08) 36%, rgba(168, 85, 247, 0.12));
}

html.dark[data-theme-style="orgulho"] .op-bottom-nav {
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(72, 19, 52, 0.12) 40%, rgba(30, 27, 75, 0.18));
}

html[data-theme-style="orgulho"] .op-bottom-nav__inner {
  background:
    radial-gradient(circle at 15% 0%, rgba(255,255,255,0.18), transparent 26%),
    var(--op-orgulho-shell-light);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 56px rgba(225, 29, 72, 0.22), 0 12px 28px rgba(6, 182, 212, 0.14);
}

html.dark[data-theme-style="orgulho"] .op-bottom-nav__inner {
  background:
    radial-gradient(circle at 15% 0%, rgba(255,255,255,0.08), transparent 28%),
    var(--op-orgulho-shell-dark);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 58px rgba(12, 7, 23, 0.48), 0 12px 30px rgba(109, 40, 217, 0.14);
}

html[data-theme-style="orgulho"] .op-bottom-nav__icon {
  background: rgba(255,255,255,0.08);
}

html[data-theme-style="orgulho"] .op-bottom-nav__link:hover .op-bottom-nav__icon,
html[data-theme-style="orgulho"] .op-bottom-nav__link.is-active .op-bottom-nav__icon {
  background: linear-gradient(135deg, rgba(255,255,255,0.32), rgba(255,255,255,0.14));
  box-shadow: 0 14px 28px rgba(255,255,255,0.16);
}

html[data-theme-style="orgulho"] .op-page-hero,
html[data-theme-style="orgulho"] .op-surface-card,
html[data-theme-style="orgulho"] .op-form-card,
html[data-theme-style="orgulho"] .op-inline-alert,
html[data-theme-style="orgulho"] .op-month-selection-toolbar,
html[data-theme-style="orgulho"] [data-month-sheet-surface],
html[data-theme-style="orgulho"] [data-shared-debts-sheet] > div:last-child,
html[data-theme-style="orgulho"] .op-screen--shared-debts article,
html[data-theme-style="orgulho"] .op-screen--shared-debts section > div.rounded-3xl,
html[data-theme-style="orgulho"] .op-screen--month details {
  position: relative;
  overflow: hidden;
}

html[data-theme-style="orgulho"] .op-page-hero::after,
html[data-theme-style="orgulho"] .op-surface-card::before,
html[data-theme-style="orgulho"] .op-form-card::before,
html[data-theme-style="orgulho"] .op-inline-alert::before,
html[data-theme-style="orgulho"] .op-month-selection-toolbar::before,
html[data-theme-style="orgulho"] [data-month-sheet-surface]::before,
html[data-theme-style="orgulho"] [data-shared-debts-sheet] > div:last-child::before,
html[data-theme-style="orgulho"] .op-screen--shared-debts article::before,
html[data-theme-style="orgulho"] .op-screen--shared-debts section > div.rounded-3xl::before,
html[data-theme-style="orgulho"] .op-screen--month details::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--op-orgulho-rainbow);
  opacity: 0.95;
  pointer-events: none;
}

html[data-theme-style="orgulho"] .op-page-hero {
  background:
    radial-gradient(circle at 0% 0%, rgba(249, 115, 22, 0.26), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.24), transparent 24%),
    radial-gradient(circle at 50% 110%, rgba(139, 92, 246, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(255, 251, 247, 0.97), rgba(255, 245, 250, 0.94));
  box-shadow: 0 30px 58px rgba(225, 29, 72, 0.12), 0 12px 30px rgba(14, 165, 233, 0.08);
}

html.dark[data-theme-style="orgulho"] .op-page-hero {
  background:
    radial-gradient(circle at 0% 0%, rgba(249, 115, 22, 0.24), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.22), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(168, 85, 247, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(35, 20, 58, 0.96), rgba(19, 14, 39, 0.95));
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 62px rgba(10, 7, 20, 0.48), 0 12px 30px rgba(168, 85, 247, 0.14);
}

html[data-theme-style="orgulho"] .op-page-hero::before {
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.22), rgba(244, 63, 94, 0));
}

html[data-theme-style="orgulho"] .op-page-hero::after {
  background:
    linear-gradient(90deg, rgba(239, 68, 68, 0.9), rgba(249, 115, 22, 0.9), rgba(245, 158, 11, 0.9), rgba(34, 197, 94, 0.9), rgba(6, 182, 212, 0.9), rgba(59, 130, 246, 0.9), rgba(168, 85, 247, 0.92));
  height: 5px;
  inset: auto 1.15rem 1rem 1.15rem;
  border-radius: 999px;
  opacity: 1;
}

html.dark[data-theme-style="orgulho"] .op-screen::before {
  background:
    radial-gradient(circle at 10% 2%, rgba(239, 68, 68, 0.18), transparent 22%),
    radial-gradient(circle at 32% 6%, rgba(249, 115, 22, 0.14), transparent 24%),
    radial-gradient(circle at 54% 0%, rgba(245, 158, 11, 0.12), transparent 24%),
    radial-gradient(circle at 76% 4%, rgba(6, 182, 212, 0.14), transparent 24%),
    radial-gradient(circle at 94% 10%, rgba(168, 85, 247, 0.16), transparent 22%);
}

@media (min-width: 768px) {
  html[data-theme-style="orgulho"] .op-screen::before {
    background:
      radial-gradient(circle at 6% 4%, rgba(239, 68, 68, 0.18), transparent 18%),
      radial-gradient(circle at 24% 0%, rgba(249, 115, 22, 0.15), transparent 20%),
      radial-gradient(circle at 44% 4%, rgba(245, 158, 11, 0.13), transparent 18%),
      radial-gradient(circle at 64% 0%, rgba(34, 197, 94, 0.12), transparent 20%),
      radial-gradient(circle at 82% 3%, rgba(6, 182, 212, 0.13), transparent 18%),
      radial-gradient(circle at 96% 10%, rgba(168, 85, 247, 0.16), transparent 20%);
    opacity: 1;
  }

  html[data-theme-style="orgulho"] .op-screen--home .op-page-hero,
  html[data-theme-style="orgulho"] .op-screen--txn .op-page-hero,
  html[data-theme-style="orgulho"] .op-screen--month .op-page-hero,
  html[data-theme-style="orgulho"] .op-screen--summary .op-page-hero,
  html[data-theme-style="orgulho"] .op-screen--detalhamento .op-page-hero,
  html[data-theme-style="orgulho"] .op-screen--shared-debts .op-page-hero {
    box-shadow: 0 34px 64px rgba(225, 29, 72, 0.14), 0 16px 36px rgba(6, 182, 212, 0.08);
  }

  html[data-theme-style="orgulho"] .op-surface-card,
  html[data-theme-style="orgulho"] .op-form-card,
  html[data-theme-style="orgulho"] .op-screen--shared-debts article,
  html[data-theme-style="orgulho"] .op-screen--shared-debts section > div.rounded-3xl,
  html[data-theme-style="orgulho"] .op-screen--month details,
  html[data-theme-style="orgulho"] [data-month-sheet-surface],
  html[data-theme-style="orgulho"] [data-shared-debts-sheet] > div:last-child {
    box-shadow: 0 28px 50px rgba(225, 29, 72, 0.12), 0 10px 24px rgba(14, 165, 233, 0.08);
  }
}

/* Orgulho + modo escuro: garante contraste legivel em campos, chips e blocos utilitarios */
html.dark[data-theme-style="orgulho"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
html.dark[data-theme-style="orgulho"] select,
html.dark[data-theme-style="orgulho"] textarea,
html.dark[data-theme-style="orgulho"] option {
  background: rgba(32, 18, 48, 0.94) !important;
  color: #fff4fa !important;
  border-color: rgba(244, 114, 182, 0.28) !important;
  caret-color: #fff4fa;
}

html.dark[data-theme-style="orgulho"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):hover,
html.dark[data-theme-style="orgulho"] select:hover,
html.dark[data-theme-style="orgulho"] textarea:hover {
  background: rgba(38, 22, 57, 0.96) !important;
  border-color: rgba(251, 146, 60, 0.3) !important;
}

html.dark[data-theme-style="orgulho"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):focus,
html.dark[data-theme-style="orgulho"] select:focus,
html.dark[data-theme-style="orgulho"] textarea:focus,
html.dark[data-theme-style="orgulho"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):focus-visible,
html.dark[data-theme-style="orgulho"] select:focus-visible,
html.dark[data-theme-style="orgulho"] textarea:focus-visible {
  background: rgba(43, 24, 64, 0.98) !important;
  color: #ffffff !important;
  border-color: rgba(244, 114, 182, 0.46) !important;
}

html.dark[data-theme-style="orgulho"] input::placeholder,
html.dark[data-theme-style="orgulho"] textarea::placeholder {
  color: rgba(255, 228, 239, 0.66) !important;
}

html.dark[data-theme-style="orgulho"] input:-webkit-autofill,
html.dark[data-theme-style="orgulho"] input:-webkit-autofill:hover,
html.dark[data-theme-style="orgulho"] input:-webkit-autofill:focus,
html.dark[data-theme-style="orgulho"] textarea:-webkit-autofill,
html.dark[data-theme-style="orgulho"] select:-webkit-autofill {
  -webkit-text-fill-color: #fff4fa !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(32, 18, 48, 0.94) inset !important;
  transition: background-color 9999s ease-in-out 0s;
}

html.dark[data-theme-style="orgulho"] .badge,
html.dark[data-theme-style="orgulho"] [class*="rounded-full"][class*="border"][class*="bg-white"],
html.dark[data-theme-style="orgulho"] [class*="rounded-full"][class*="border"][class*="bg-slate-50"],
html.dark[data-theme-style="orgulho"] [class*="rounded-full"][class*="border"][class*="bg-slate-100"],
html.dark[data-theme-style="orgulho"] [class*="rounded-full"][class*="border"][class*="bg-slate-800"],
html.dark[data-theme-style="orgulho"] [class*="rounded-full"][class*="border"][class*="bg-slate-900"] {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff0f7 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

html.dark[data-theme-style="orgulho"] [class*="rounded-full"][class*="border"][class*="text-slate-50"],
html.dark[data-theme-style="orgulho"] [class*="rounded-full"][class*="border"][class*="text-white"],
html.dark[data-theme-style="orgulho"] [class*="rounded-full"][class*="border"][class*="text-slate-100"],
html.dark[data-theme-style="orgulho"] [class*="rounded-full"][class*="border"][class*="text-slate-200"],
html.dark[data-theme-style="orgulho"] [class*="rounded-full"][class*="border"][class*="text-slate-300"] {
  color: #fff0f7 !important;
}

html.dark[data-theme-style="orgulho"] .op-screen--detalhamento [class*="bg-white"][class*="dark:text-white"],
html.dark[data-theme-style="orgulho"] .op-screen--people [class*="bg-white"][class*="dark:text-white"],
html.dark[data-theme-style="orgulho"] .op-screen--shared-debts [class*="bg-white"][class*="dark:text-white"],
html.dark[data-theme-style="orgulho"] .op-screen--summary [class*="bg-white"][class*="dark:text-white"],
html.dark[data-theme-style="orgulho"] .op-screen--month [class*="bg-white"][class*="dark:text-white"],
html.dark[data-theme-style="orgulho"] .op-screen--txn [class*="bg-white"][class*="dark:text-white"] {
  background: rgba(32, 18, 48, 0.92) !important;
  color: #fff4fa !important;
  border-color: rgba(244, 114, 182, 0.22) !important;
}

html.dark[data-theme-style="orgulho"] .op-screen--detalhamento [class*="bg-slate-50"][class*="dark:text-white"],
html.dark[data-theme-style="orgulho"] .op-screen--people [class*="bg-slate-50"][class*="dark:text-white"],
html.dark[data-theme-style="orgulho"] .op-screen--shared-debts [class*="bg-slate-50"][class*="dark:text-white"],
html.dark[data-theme-style="orgulho"] .op-screen--summary [class*="bg-slate-50"][class*="dark:text-white"],
html.dark[data-theme-style="orgulho"] .op-screen--month [class*="bg-slate-50"][class*="dark:text-white"],
html.dark[data-theme-style="orgulho"] .op-screen--txn [class*="bg-slate-50"][class*="dark:text-white"] {
  background: rgba(35, 20, 52, 0.9) !important;
  color: #fff4fa !important;
  border-color: rgba(244, 114, 182, 0.22) !important;
}

html.dark[data-theme-style="orgulho"] .op-screen--detalhamento [class*="text-slate-50"],
html.dark[data-theme-style="orgulho"] .op-screen--detalhamento [class*="text-slate-100"],
html.dark[data-theme-style="orgulho"] .op-screen--people [class*="text-slate-50"],
html.dark[data-theme-style="orgulho"] .op-screen--people [class*="text-slate-100"] {
  color: #fff4fa !important;
}


/* Keep the month bulk-action toolbar anchored to the viewport in themed mode. */
html[data-theme-style="orgulho"] .op-screen--month .op-month-selection-toolbar,
html.dark[data-theme-style="orgulho"] .op-screen--month .op-month-selection-toolbar {
  position: fixed;
}

/* Force the month bulk-action toolbar to stay pinned in the viewport on Orgulho theme. */
html[data-theme-style="orgulho"] .op-screen--month > #monthSelectionToolbar.op-month-selection-toolbar,
html.dark[data-theme-style="orgulho"] .op-screen--month > #monthSelectionToolbar.op-month-selection-toolbar {
  position: fixed !important;
  left: 1rem !important;
  right: 1rem !important;
  bottom: calc(var(--op-mobile-bottom-clearance, 5.75rem) + 0.75rem) !important;
  z-index: 70 !important;
}

@media (min-width: 768px) {
  html[data-theme-style="orgulho"] .op-screen--month > #monthSelectionToolbar.op-month-selection-toolbar,
  html.dark[data-theme-style="orgulho"] .op-screen--month > #monthSelectionToolbar.op-month-selection-toolbar {
    left: 50% !important;
    right: auto !important;
    bottom: 1.5rem !important;
    width: min(760px, calc(100vw - 3rem)) !important;
  }
}



.op-card-brand-face {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgb(51 65 85);
  overflow: hidden;
  flex: 0 0 auto;
}

html.dark .op-card-brand-face {
  border-color: rgba(71, 85, 105, 0.88);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.86));
  color: rgb(226 232 240);
}

.op-card-brand-face__logo {
  max-width: 2rem;
  max-height: 1.45rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.op-card-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.86);
  color: rgb(51 65 85);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: blur(10px);
}

html.dark .op-card-brand-badge {
  border-color: rgba(71, 85, 105, 0.9);
  background: rgba(15, 23, 42, 0.9);
  color: rgb(226 232 240);
}

.op-card-brand-logo {
  display: block;
  width: auto;
  height: 1rem;
  object-fit: contain;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

html.dark .op-card-brand-logo {
  background: transparent;
  border: 0;
}


.op-card-brand-preview {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.6rem;
  padding: 0.5rem 0.8rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(248, 250, 252, 0.9);
  color: rgb(71 85 105);
  font-size: 0.75rem;
  font-weight: 700;
}

html.dark .op-card-brand-preview {
  border-color: rgba(71, 85, 105, 0.82);
  background: rgba(15, 23, 42, 0.72);
  color: rgb(203 213 225);
}

.op-shared-action-row {
  align-items: stretch;
}

.op-shared-action-row > a.inline-flex,
.op-shared-action-row > button,
.op-shared-action-row > form {
  flex: 1 1 11rem;
  min-width: 0;
}

.op-shared-action-row > form > button,
.op-shared-action-row > form > a,
.op-shared-action-row > a.inline-flex,
.op-shared-action-row > button {
  width: 100%;
  min-height: 2.75rem;
  white-space: nowrap;
}

.op-shared-action-row--compact > a.inline-flex,
.op-shared-action-row--compact > button,
.op-shared-action-row--compact > form {
  flex-basis: 10rem;
}

@media (max-width: 639px) {
  .op-shared-action-row > a.inline-flex,
  .op-shared-action-row > button,
  .op-shared-action-row > form {
    flex-basis: 100%;
  }
}


/* ===== Analytics graph layout refresh ===== */
.op-analytics-graph-grid {
  align-items: start;
}

@media (min-width: 1280px) {
  .op-analytics-graph-grid--overview {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

.op-analytics-graph-card {
  min-width: 0;
}

.op-analytics-donut-layout {
  display: grid;
  gap: 1.1rem;
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1024px) {
  .op-analytics-donut-layout {
    grid-template-columns: minmax(22rem, 24rem) minmax(0, 1fr);
    column-gap: 1.35rem;
    align-items: center;
  }
}

.op-analytics-donut-stage,
.op-analytics-donut-legend,
.op-analytics-line-wrap {
  min-width: 0;
}

.op-analytics-donut-shell {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.op-analytics-donut-figure {
  position: relative;
  width: min(100%, 22rem);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}

.op-analytics-donut-svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.op-analytics-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2.4rem;
}

.op-analytics-donut-center__eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #64748b;
}

.op-analytics-donut-center__value {
  margin-top: 0.45rem;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.op-analytics-donut-center__copy {
  margin-top: 0.4rem;
  max-width: 10rem;
  font-size: 0.74rem;
  line-height: 1.45;
  font-weight: 600;
  color: #64748b;
}

html.dark .op-analytics-donut-center__eyebrow,
html.dark .op-analytics-donut-center__copy {
  color: #94a3b8;
}

html.dark .op-analytics-donut-center__value {
  color: #f8fafc;
}

.op-analytics-category-stack {
  display: grid;
  gap: 0.95rem;
}

.op-analytics-donut-stage {
  display: flex;
  justify-content: center;
}

.op-analytics-donut-summary {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.op-analytics-donut-summary-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.3rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(248, 250, 252, 0.85);
  padding: 0.9rem 1rem;
}

html.dark .op-analytics-donut-summary-card {
  border-color: rgba(51, 65, 85, 0.95);
  background: rgba(15, 23, 42, 0.7);
}

.op-analytics-donut-summary-card__label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #64748b;
}

.op-analytics-donut-summary-card__value {
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 900;
  color: #0f172a;
  word-break: break-word;
}

.op-analytics-donut-summary-card__sub {
  font-size: 0.74rem;
  line-height: 1.45;
  color: #64748b;
}

html.dark .op-analytics-donut-summary-card__label,
html.dark .op-analytics-donut-summary-card__sub {
  color: #94a3b8;
}

html.dark .op-analytics-donut-summary-card__value {
  color: #f8fafc;
}

.op-analytics-category-list {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 1024px) {
  .op-analytics-category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
  }
}

.op-analytics-category-item {
  display: flex;
  width: 100%;
  min-width: 0;
  border-radius: 1.1rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(248, 250, 252, 0.82);
  padding: 0.78rem 0.85rem;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.op-analytics-category-item:hover,
.op-analytics-category-item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(139, 92, 246, 0.36);
  background: rgba(245, 243, 255, 0.92);
  box-shadow: 0 12px 24px rgba(139, 92, 246, 0.12);
  outline: none;
}

html.dark .op-analytics-category-item {
  border-color: rgba(51, 65, 85, 0.95);
  background: rgba(15, 23, 42, 0.7);
}

html.dark .op-analytics-category-item:hover,
html.dark .op-analytics-category-item:focus-visible {
  border-color: rgba(139, 92, 246, 0.42);
  background: rgba(46, 16, 101, 0.22);
  box-shadow: 0 14px 28px rgba(76, 29, 149, 0.18);
}

.op-analytics-category-item__title {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.55rem;
}

.op-analytics-category-item__swatch {
  width: 0.72rem;
  height: 0.72rem;
  flex: 0 0 auto;
  border-radius: 999px;
}

.op-analytics-category-item__body {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.38rem;
}

.op-analytics-category-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.op-analytics-category-item__label {
  min-width: 0;
  font-size: 0.92rem;
  line-height: 1.25;
  font-weight: 900;
  color: #0f172a;
  word-break: break-word;
}

html.dark .op-analytics-category-item__label {
  color: #f8fafc;
}

.op-analytics-category-item__share {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.96);
  padding: 0.16rem 0.5rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
}

html.dark .op-analytics-category-item__share {
  border-color: rgba(71, 85, 105, 0.95);
  background: rgba(15, 23, 42, 0.92);
  color: #cbd5e1;
}

.op-analytics-category-item__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.op-analytics-category-item__meta {
  font-size: 0.72rem;
  line-height: 1.4;
  font-weight: 600;
  color: #64748b;
}

.op-analytics-category-item__amount {
  font-size: 0.74rem;
  line-height: 1.35;
  font-weight: 800;
  color: #334155;
}

html.dark .op-analytics-category-item__meta {
  color: #94a3b8;
}

html.dark .op-analytics-category-item__amount {
  color: #e2e8f0;
}

.op-analytics-category-item__bar {
  display: block;
  height: 0.36rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.2);
}

.op-analytics-category-item__bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.op-analytics-category-item__hint {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #94a3b8;
}

.op-analytics-category-item__hint--active {
  color: #7c3aed;
}

html.dark .op-analytics-category-item__hint {
  color: #64748b;
}

html.dark .op-analytics-category-item__hint--active {
  color: #c4b5fd;
}

.op-analytics-line-layout {
  display: grid;
  gap: 0.95rem;
}

.op-analytics-line-layout--desktop {
  grid-template-columns: minmax(0, 1fr) 18rem;
  align-items: start;
}

.op-analytics-line-shell {
  display: grid;
  gap: 0.65rem;
}

.op-analytics-line-points {
  min-width: 0;
}

.op-analytics-line-layout--desktop .op-analytics-line-points {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}

.op-analytics-line-scroller {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pinch-zoom;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.38) transparent;
  padding-bottom: 0.35rem;
}

.op-analytics-line-scroller::-webkit-scrollbar {
  height: 7px;
}

.op-analytics-line-scroller::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.4);
}

.op-analytics-line-stage {
  position: relative;
}

.op-analytics-line-svg {
  display: block;
  width: 100%;
  height: auto;
}

.op-analytics-line-hint {
  font-size: 0.73rem;
  line-height: 1.4;
  font-weight: 700;
  color: #64748b;
}

html.dark .op-analytics-line-hint {
  color: #94a3b8;
}

@media (max-width: 1279px) {
  .op-analytics-category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Mobile/PWA polish sweep — recent screens */
@media (max-width: 767px) {
  .op-screen--analytics .op-page-hero__meta,
  .op-screen--shared-debts .op-page-hero__meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
  }

  .op-screen--analytics .op-page-hero__meta .badge,
  .op-screen--shared-debts .op-page-hero__meta .badge {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    white-space: normal;
    line-height: 1.3;
    text-wrap: pretty;
  }

  .op-screen--analytics .op-page-hero__actions--compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 0.75rem;
  }

  .op-screen--analytics .op-page-hero__actions--compact > a,
  .op-screen--analytics .op-page-hero__actions--compact > button {
    width: 100%;
    min-width: 0;
  }

  .op-screen--analytics .op-page-hero__actions--compact > :last-child {
    grid-column: 1 / -1;
  }

  .op-screen--analytics .op-tab-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .op-screen--analytics .op-tab-btn {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0.75rem 0.7rem;
    border-radius: 1rem;
    white-space: normal;
    line-height: 1.18;
    text-align: center;
    text-wrap: balance;
    font-size: 0.84rem;
  }

  .op-screen--analytics [data-summary-donut-chart],
  .op-screen--analytics [data-summary-line-chart],
  .op-screen--analytics [data-summary-donut-legend] {
    overflow: visible;
    min-width: 0;
  }

  .op-analytics-donut-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .op-analytics-donut-figure {
    width: min(100%, 18.25rem);
  }

  .op-analytics-donut-center {
    padding: 0 1.9rem;
  }

  .op-analytics-donut-center__value {
    font-size: 1.85rem;
  }

  .op-analytics-donut-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .op-analytics-donut-summary > :last-child {
    grid-column: 1 / -1;
  }

  .op-analytics-category-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .op-analytics-category-item {
    padding: 0.88rem 0.92rem;
  }

  .op-analytics-category-item__top {
    gap: 0.55rem;
  }

  .op-analytics-category-item__label {
    font-size: 0.94rem;
  }

  .op-analytics-category-item__meta,
  .op-analytics-category-item__amount {
    font-size: 0.74rem;
  }

  .op-analytics-line-scroller {
    margin-inline: -0.15rem;
    padding-inline: 0.15rem;
  }

  .op-analytics-line-stage {
    width: max-content;
  }

  .op-screen--analytics [data-summary-chart-scroller] {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x;
  }

  .op-screen--analytics [data-summary-chart-scroller]::-webkit-scrollbar {
    display: none;
  }

  .op-screen--shared-debts [data-shared-debts-sheet] > div:last-child {
    max-height: min(88dvh, calc(100dvh - max(var(--op-top-safe), 0px) - 0.75rem)) !important;
    bottom: max(0px, var(--op-bottom-safe)) !important;
  }
}

@media (max-width: 479px) {
  .op-screen--analytics .op-page-hero__actions--compact {
    grid-template-columns: minmax(0, 1fr);
  }

  .op-screen--analytics .op-page-hero__actions--compact > :last-child {
    grid-column: auto;
  }

  .op-screen--analytics .op-tab-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .op-screen--analytics .op-tab-btn {
    min-height: 46px;
    padding-inline: 0.6rem;
    font-size: 0.8rem;
  }

  .op-analytics-donut-center__value {
    font-size: 1.65rem;
  }

  .op-analytics-donut-summary-card {
    padding: 0.8rem 0.9rem;
  }
}
