@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

/* Fundo do documento no html — evita tela branca entre navegações MPA */
html {
  background-color: #f0fcfb;
  color-scheme: light;
}
html.dark {
  background-color: #020617;
  color-scheme: dark;
}

:root {
  --or-surface-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 10px 28px -8px rgba(15, 58, 64, 0.18),
    0 24px 48px -16px rgba(21, 130, 128, 0.14);
  --or-surface-shadow-sm:
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 6px 16px -6px rgba(15, 58, 64, 0.14);
  --or-surface-shadow-hover:
    0 2px 4px rgba(15, 23, 42, 0.08),
    0 16px 36px -8px rgba(15, 58, 64, 0.22),
    0 28px 56px -16px rgba(21, 130, 128, 0.16);
}

/* Mantém o frame anterior até a nova página pintar (sem cross-fade / “pisca”) */
@view-transition {
  navigation: auto;
}
::view-transition-group(root),
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
  height: 100%;
}
#sidebar-menu {
  view-transition-name: or-sidebar;
  transition: width 0.3s ease;
}
::view-transition-old(or-sidebar),
::view-transition-new(or-sidebar) {
  animation: none;
  mix-blend-mode: normal;
  height: 100%;
}
@media (max-width: 767px) {
  #sidebar-menu {
    transition: transform 0.3s ease, width 0.3s ease;
  }
}
@media (prefers-reduced-motion: reduce) {
  #sidebar-menu,
  html.sidebar-animating .or-page-shell {
    transition: none !important;
  }
}

/* Tipografia — Outfit tem espaço U+0020 estreito (~0.19em). Sem word-spacing extra
   o texto parece colado em toda a plataforma (login, dashboard, fórum, etc.). */
html {
  font-size: 13px;
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
}
@media (min-width: 768px) {
  html {
    font-size: 14px;
  }
}
@media (min-width: 1536px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Outfit tem espaço estreito; valor moderado evita texto colado SEM estourar labels */
  word-spacing: 0.08em;
  letter-spacing: 0.005em;
  background-color: #f8fafc;
  color: #0f172a;
}

body:has(.or-login-shell) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100dvh;
  box-sizing: border-box;
}

.dark body,
html.dark body {
  background-color: #0f172a;
  color: #f1f5f9;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  word-spacing: 0.1em;
}

/* tracking-* já separa letras — NÃO somar word-spacing alto (corta "FERRAMEN...") */
.tracking-tighter,
.tracking-tight {
  word-spacing: 0.08em;
}
.tracking-wide,
.tracking-wider,
.tracking-widest {
  word-spacing: normal;
}

input, textarea, select, button {
  word-spacing: 0.08em;
}

/* Layout utilities — CSS real (não @apply: style.css é servido sem compilação).
   body NÃO pode ser flex-row: #app-dock e [data-or-bg] são irmãos do shell e
   viravam colunas de 50%, espremendo a plataforma à esquerda. */
.layout-container {
  display: block !important;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
}

.main-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.or-page-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

#app-dock {
  position: absolute;
  width: 0;
  height: 0;
  overflow: visible;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 1.5rem;
  transition: all 300ms;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 10px 28px -8px rgba(15, 58, 64, 0.18),
    0 24px 48px -16px rgba(21, 130, 128, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.dark .glass-panel,
html.dark .glass-panel {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.glass-header {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  position: sticky;
  top: 0;
  z-index: 40;
  transition: background-color 300ms, border-color 300ms;
}

.dark .glass-header,
html.dark .glass-header {
  background: rgba(15, 23, 42, 0.5);
  border-bottom-color: rgba(30, 41, 59, 0.5);
}

.input-group {
  display: flex;
  align-items: center;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 9999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(24px);
  transition: border-color 300ms, box-shadow 300ms;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.dark .input-group,
html.dark .input-group {
  border-color: rgba(51, 65, 85, 0.8);
  background: rgba(30, 41, 59, 0.8);
}

.input-field {
  width: 100%;
  padding: 0.875rem 1.25rem 0.875rem 0.75rem;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: #0f172a;
}

.dark .input-field,
html.dark .input-field {
  color: #f1f5f9;
}

.input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 1.25rem;
  padding-right: 0.5rem;
  color: #94a3b8;
}

.btn-primary {
  position: relative;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(90deg, #44d2c9, #158280);
  color: #fff;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.025em;
  word-spacing: 0.16em;
  transition: transform 300ms, box-shadow 300ms;
  box-shadow: 0 4px 6px -1px rgba(21, 130, 128, 0.25);
}

.btn-secondary {
  padding: 0.875rem 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #e2e8f0;
  color: #334155;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  word-spacing: 0.16em;
}

.dark .btn-secondary,
html.dark .btn-secondary {
  background: rgba(30, 41, 59, 0.8);
  border-color: #334155;
  color: #e2e8f0;
}

.radio-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 0.75rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
}

.radio-card.active {
  border-color: #44d2c9;
  background: rgba(68, 210, 201, 0.1);
}

.blob-shape {
  position: absolute;
  border-radius: 9999px;
  filter: blur(64px);
  opacity: 0.7;
}

.notification-button,
.notifications-button,
.notification-icon,
.bell-icon,
.btn-notificacoes,
.btn-notificacao,
#notification-button,
#notifications-button,
#notificacoes-button,
#notificacao-button,
[aria-label*="notifica" i],
[aria-label*="sino" i],
[title*="notifica" i],
[title*="sino" i],
button:has(svg path[d^="M15 17h5"]),
button:has(svg path[d^="M18 8a6 6"]),
a:has(svg path[d^="M15 17h5"]),
a:has(svg path[d^="M18 8a6 6"]) {
  display: none !important;
}

.hover-scale {
  transition: transform 300ms, box-shadow 300ms;
}
.hover-scale:hover {
  transform: translateY(-0.25rem);
}

/* Animations */
@keyframes floatUp {
  0% {
    transform: translateY(110vh) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) rotate(360deg) scale(1.5);
    opacity: 0;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar,
*::-webkit-scrollbar,
.custom-scroll::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}

::-webkit-scrollbar-track,
*::-webkit-scrollbar-track,
.custom-scroll::-webkit-scrollbar-track {
  background: transparent !important; 
}

::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb,
.custom-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4) !important;
  border-radius: 8px !important;
  border: none !important;
}

::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover,
.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.7) !important;
}

.dark ::-webkit-scrollbar-thumb,
.dark *::-webkit-scrollbar-thumb,
.dark .custom-scroll::-webkit-scrollbar-thumb {
  background: rgba(51, 65, 85, 0.6) !important;
}

.dark ::-webkit-scrollbar-thumb:hover,
.dark *::-webkit-scrollbar-thumb:hover,
.dark .custom-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(71, 85, 105, 0.9) !important;
}

html, * {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(148, 163, 184, 0.4) transparent !important;
}

.dark html, .dark * {
  scrollbar-color: rgba(51, 65, 85, 0.6) transparent !important;
}

/* ===== Custom Select (dropdowns redondos) ===== */
.or-select {
  --or-select-accent: #6366f1;
  --or-select-accent-soft: rgba(99, 102, 241, 0.14);
  --or-select-radius: 1rem;
  position: relative;
  display: inline-block;
  width: auto;
  max-width: 100%;
  vertical-align: middle;
  font-family: inherit;
}

.or-select--block,
.modern-select-wrap,
.modern-select-wrap .or-select {
  display: block;
  width: 100%;
  max-width: 100%;
}

.or-select--pill {
  --or-select-radius: 9999px;
  display: inline-flex;
  width: auto;
  max-width: 100%;
  vertical-align: middle;
  align-self: center;
}

.or-select--pill .or-select__trigger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: auto;
  min-width: 11rem;
  height: auto !important;
  min-height: 2.75rem !important;
  padding: 0.7rem 1.15rem !important;
  overflow: visible !important;
  border-radius: 9999px !important;
  color: #1e293b !important;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  font-style: normal !important;
  line-height: 1.4 !important;
  white-space: nowrap;
}

.or-select--pill .or-select__label {
  flex: 0 1 auto;
  overflow: visible;
  color: #1e293b !important;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  font-style: normal !important;
  line-height: 1.4 !important;
}

.or-select--pill .or-select__label.is-placeholder {
  color: #475569 !important;
  font-style: normal !important;
  font-weight: 700 !important;
}

.or-select--pill .or-select__chevron {
  width: 1.1rem;
  height: 1.1rem;
  color: #334155;
}

.or-select--pink {
  --or-select-accent: #db2777;
  --or-select-accent-soft: rgba(219, 39, 119, 0.14);
}

.or-select--blue {
  --or-select-accent: #2563eb;
  --or-select-accent-soft: rgba(37, 99, 235, 0.14);
}

.or-select--teal {
  --or-select-accent: #14b8a6;
  --or-select-accent-soft: rgba(20, 184, 166, 0.14);
}

.or-select__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.or-select__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 1rem 0.65rem 1.15rem;
  margin: 0;
  border: 1px solid rgb(226 232 240);
  border-radius: var(--or-select-radius);
  background: rgb(248 250 252);
  color: rgb(51 65 85);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    transform 0.15s ease;
}

.or-select--block .or-select__trigger {
  min-height: 3rem;
  padding: 0.85rem 1.1rem 0.85rem 1.15rem;
  font-weight: 500;
  border-radius: 1rem;
}

.or-select__trigger:hover {
  border-color: color-mix(in srgb, var(--or-select-accent) 45%, rgb(203 213 225));
}

.or-select__trigger:focus,
.or-select.is-open .or-select__trigger {
  outline: none;
  border-color: var(--or-select-accent);
  box-shadow: 0 0 0 3px var(--or-select-accent-soft);
}

.or-select__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.or-select__label.is-placeholder {
  color: rgb(148 163 184);
  font-style: italic;
  font-weight: 500;
}

.or-select__chevron {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: rgb(148 163 184);
  transition: transform 0.2s ease, color 0.2s ease;
}

.or-select.is-open .or-select__chevron {
  transform: rotate(180deg);
  color: var(--or-select-accent);
}

.or-select__menu {
  --or-select-accent: #6366f1;
  --or-select-accent-soft: rgba(99, 102, 241, 0.14);
  position: absolute;
  z-index: 80;
  top: calc(100% + 0.25rem);
  left: 0;
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  max-height: 12.5rem;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  box-shadow:
    0 18px 40px -16px rgba(15, 23, 42, 0.32),
    0 8px 16px -12px rgba(15, 23, 42, 0.16);
  opacity: 0;
  transform: translateY(-4px) scale(0.98);
  transform-origin: top center;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, 0.7) transparent;
}

.or-select__menu::-webkit-scrollbar {
  width: 8px;
}

.or-select__menu::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.55);
  border-radius: 8px;
}

.or-select__menu.is-ported {
  position: fixed !important;
  z-index: 9999 !important;
  right: auto !important;
  bottom: auto;
}

.or-select.is-open .or-select__menu,
.or-select__menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}

.or-select__empty,
.or-select__option {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 100%;
  margin: 0;
  padding: 0.7rem 0.9rem;
  border: 0;
  border-radius: 0;
  text-align: left;
  text-indent: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: inherit;
  font-size: 0.8125rem;
  line-height: 1.3;
}

.or-select__option:first-child,
.or-select__empty:first-child {
  border-radius: 0.85rem 0.85rem 0 0;
}

.or-select__option:last-child,
.or-select__empty:last-child {
  border-radius: 0 0 0.85rem 0.85rem;
}

.or-select__option:only-child,
.or-select__empty:only-child {
  border-radius: 0.85rem;
}

.or-select__empty {
  background: #f8fafc;
  color: #64748b;
  font-weight: 500;
  font-style: italic;
}

.or-select__option {
  background: transparent;
  color: #334155;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.or-select__option + .or-select__option {
  margin-top: 0;
}

.or-select__option:hover,
.or-select__option.is-active {
  background: #f1f5f9;
  color: #0f172a !important;
}

.or-select__option.is-selected {
  background: var(--or-select-accent);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 8px 18px -10px rgba(15, 23, 42, 0.35);
}

.or-select__option.is-selected:hover,
.or-select__option.is-selected.is-active {
  background: var(--or-select-accent);
  color: #ffffff !important;
}

.or-select__option:disabled,
.or-select__option.is-disabled {
  color: #94a3b8 !important;
  font-style: italic;
  cursor: not-allowed;
  opacity: 0.8;
}

.or-select__option:disabled:hover,
.or-select__option.is-disabled:hover {
  background: transparent;
}

.or-select-host > .pointer-events-none {
  display: none !important;
}

.modern-select-wrap.or-select-host::after {
  display: none !important;
}

.dark .or-select__trigger,
html.dark .or-select__trigger {
  background: rgb(30 41 59 / 0.8);
  border-color: rgb(51 65 85 / 0.75);
  color: rgb(241 245 249);
}

.dark .or-select__trigger:hover,
html.dark .or-select__trigger:hover {
  border-color: color-mix(in srgb, var(--or-select-accent) 50%, rgb(71 85 105));
}

.dark .or-select__label,
html.dark .or-select__label {
  color: rgb(241 245 249);
}

.dark .or-select__label.is-placeholder,
html.dark .or-select__label.is-placeholder {
  color: rgb(148 163 184);
}

.dark .or-select__chevron,
html.dark .or-select__chevron {
  color: rgb(148 163 184);
}

/* Pill: override light-mode !important colors for dark theme readability */
.dark .or-select--pill .or-select__trigger,
html.dark .or-select--pill .or-select__trigger {
  color: #f1f5f9 !important;
  background: rgb(30 41 59 / 0.85);
  border-color: rgb(71 85 105 / 0.9);
}

.dark .or-select--pill .or-select__label,
html.dark .or-select--pill .or-select__label {
  color: #f1f5f9 !important;
}

.dark .or-select--pill .or-select__label.is-placeholder,
html.dark .or-select--pill .or-select__label.is-placeholder {
  color: #94a3b8 !important;
}

.dark .or-select--pill .or-select__chevron,
html.dark .or-select--pill .or-select__chevron {
  color: #94a3b8;
}

.dark .or-select--pill.is-open .or-select__chevron,
html.dark .or-select--pill.is-open .or-select__chevron {
  color: var(--or-select-accent);
}

.dark .or-select__empty,
html.dark .or-select__empty {
  background: #1e293b;
  color: #94a3b8 !important;
}

.dark .or-select__menu,
html.dark .or-select__menu {
  background: #0f172a;
  border-color: #334155;
  color: #f8fafc;
  box-shadow:
    0 22px 44px -18px rgba(0, 0, 0, 0.55),
    0 10px 18px -12px rgba(0, 0, 0, 0.35);
}

.dark .or-select__option,
html.dark .or-select__option {
  color: #e2e8f0 !important;
}

.dark .or-select__option:hover,
.dark .or-select__option.is-active,
html.dark .or-select__option:hover,
html.dark .or-select__option.is-active {
  background: #1e293b;
  color: #f8fafc !important;
}

.dark .or-select__option.is-selected,
.dark .or-select__option.is-selected:hover,
.dark .or-select__option.is-selected.is-active,
html.dark .or-select__option.is-selected,
html.dark .or-select__option.is-selected:hover,
html.dark .or-select__option.is-selected.is-active {
  color: #ffffff !important;
}

/* Sidebar (HTML layout.js) */
html.sidebar-collapsed #sidebar-menu {
  width: 5rem;
}
html.sidebar-collapsed .sidebar-text {
  opacity: 0;
  width: 0;
  margin-left: 0;
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
}
html.sidebar-collapsed #sidebar-collapse-btn .collapse-icon {
  transform: rotate(180deg);
}
html.sidebar-collapsed #sidebar-menu a.group\/item:hover .sidebar-tooltip {
  opacity: 1;
}
html.sidebar-animating .or-page-shell {
  transition: padding-left 0.3s ease;
}
@media (min-width: 768px) {
  html:not(.sidebar-collapsed) .or-page-shell {
    padding-left: 16rem !important;
  }
  html.sidebar-collapsed .or-page-shell {
    padding-left: 5rem !important;
  }
}

/* Páginas visíveis de imediato — o fade-in antigo deixava a tela “travada” em opacity 0 */
.animate-fade-in-up {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Login — blobs atmosféricos estáticos (sem movimento para fotossensibilidade) */
.or-login-blob,
.or-login-blob-delayed {
  animation: none;
}

/* Page chrome — estrutura única; cores ficam nas pages */
.or-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  margin-top: 0.5rem;
  position: relative;
  z-index: 20;
  background: transparent;
}

@media (min-width: 1024px) {
  .or-page-header {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

:root {
  --or-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --or-card-radius: 1.5rem;
}

/* ===== Premium card system ===== */
.or-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--or-card-radius);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    var(--or-surface-shadow-sm),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.dark .or-card {
  background: rgba(15, 23, 42, 0.62);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.or-card--bezel {
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--or-surface-shadow-sm);
}

.dark .or-card--bezel {
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(255, 255, 255, 0.08);
}

.or-card--bezel > .or-card__core {
  border-radius: calc(var(--or-card-radius) - 0.25rem);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.dark .or-card--bezel > .or-card__core {
  background: rgba(15, 23, 42, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.or-card--lift:hover,
.or-fx-card:hover,
.or-kpi:hover {
  transform: none;
  box-shadow: var(--or-surface-shadow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-color: rgba(21, 130, 128, 0.28);
}

.dark .or-card--lift:hover,
.dark .or-fx-card:hover,
.dark .or-kpi:hover {
  border-color: rgba(68, 210, 201, 0.28);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.or-card__shine,
.or-fx-card::after {
  display: none;
}

.or-kpi {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.15rem 1.2rem 1.1rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--or-surface-shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.or-kpi__label {
  margin: 0 0 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
  word-spacing: normal;
  text-transform: uppercase;
  color: #64748b;
  white-space: normal;
  overflow-wrap: break-word;
}

.dark .or-kpi__label,
html.dark .or-kpi__label {
  color: #94a3b8;
}

.or-kpi__value {
  margin: 0;
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 900;
  line-height: 1.2;
  color: #1e293b;
  word-spacing: 0.08em;
  overflow-wrap: break-word;
}

@media (min-width: 640px) {
  .or-kpi__value {
    font-size: 1.25rem;
  }
}

.or-kpi__value--lg {
  font-size: 1.875rem;
  line-height: 1;
}

.dark .or-kpi__value,
html.dark .or-kpi__value {
  color: #fff;
}

.or-kpi::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--or-kpi-accent, #14b8a6);
}

.dark .or-kpi {
  background: rgba(15, 23, 42, 0.58);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Cards com listas/empty states não devem clipar texto */
.or-card:has(#activities-list),
.or-card:has(.or-empty) {
  overflow: visible;
}

.or-kpi--teal { --or-kpi-accent: #14b8a6; }
.or-kpi--blue { --or-kpi-accent: #3b82f6; }
.or-kpi--cyan { --or-kpi-accent: #06b6d4; }
.or-kpi--purple { --or-kpi-accent: #a855f7; }

.or-fx-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.or-fx-card .or-fx-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 1;
  z-index: 2;
}

.or-icon-btn,
.theme-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
  color: #475569;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: transform 0.45s var(--or-ease), background 0.3s var(--or-ease), box-shadow 0.45s var(--or-ease);
}

.or-icon-btn:hover,
.theme-toggle:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 8px 18px -8px rgba(15, 58, 64, 0.22);
}

.dark .or-icon-btn,
.dark .theme-toggle {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.or-back-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.9rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: rgba(255, 255, 255, 0.9);
  color: #475569;
  border: 1px solid rgba(241, 245, 249, 1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.45s var(--or-ease), box-shadow 0.45s var(--or-ease);
}

.or-back-chip:hover {
  transform: translateX(-3px);
  box-shadow: 0 8px 18px -10px rgba(15, 58, 64, 0.2);
}

.dark .or-back-chip {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.or-search {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.75rem;
  border-radius: 0.95rem;
  font-weight: 500;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.or-search:focus {
  border-color: rgba(68, 210, 201, 0.55);
  box-shadow: 0 0 0 4px rgba(68, 210, 201, 0.14);
}

.dark .or-search {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

.or-form-field {
  width: 100%;
  min-height: 3rem;
  padding: 0.85rem 1.15rem;
  border-radius: 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

form.space-y-5 input[type="text"],
form.space-y-5 input[type="email"],
form.space-y-5 textarea {
  min-height: 3rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  border-radius: 1rem;
}

#usersList tr {
  transition: background 0.35s var(--or-ease, cubic-bezier(0.32, 0.72, 0, 1));
}

#usersList td:first-child {
  border-radius: 0.85rem 0 0 0.85rem;
}

#usersList td:last-child {
  border-radius: 0 0.85rem 0.85rem 0;
}

#sidebar-menu {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(22px);
}

html.dark #sidebar-menu {
  background: rgba(10, 15, 28, 0.82) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.or-sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0.65rem 0.85rem;
  padding: 0.7rem 0.75rem;
  border-radius: 1rem;
  background: rgba(240, 253, 250, 0.7);
  border: 1px solid rgba(204, 251, 241, 0.7);
}

.dark .or-sidebar-user {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(255, 255, 255, 0.08);
}

html.sidebar-collapsed .or-sidebar-user {
  justify-content: center;
  padding: 0.55rem;
}

html.sidebar-collapsed .or-sidebar-user__meta {
  display: none;
}

/* ===== Wizard Consultar / Publicar ===== */
.or-wizard-steps-island {
  padding: 0.5rem 0.85rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--or-surface-shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.dark .or-wizard-steps-island {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.or-wizard-steps {
  --or-wizard-accent: #3b82f6;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 0.15rem 0;
  -webkit-overflow-scrolling: touch;
}

.or-wizard-steps--publicar {
  --or-wizard-accent: #10b981;
}

.or-wizard-steps ol {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.or-wizard-step {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1 1 0;
  min-width: 0;
  position: relative;
}

.or-wizard-step:not(:last-child)::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  margin: 0 0.65rem;
  min-width: 1.25rem;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.45), rgba(148, 163, 184, 0.18));
}

.or-wizard-step.is-done:not(:last-child)::after,
.or-wizard-step.is-current:not(:last-child)::after {
  background: color-mix(in srgb, var(--or-wizard-accent) 55%, transparent);
}

.or-wizard-step__index {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 9999px;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #64748b;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.dark .or-wizard-step__index {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

.or-wizard-step__check {
  display: none;
  width: 0.9rem;
  height: 0.9rem;
}

.or-wizard-step.is-current .or-wizard-step__index {
  color: #fff;
  background: var(--or-wizard-accent);
  border-color: transparent;
  box-shadow: 0 8px 16px -8px color-mix(in srgb, var(--or-wizard-accent) 70%, transparent);
}

.or-wizard-step.is-done .or-wizard-step__index {
  color: #fff;
  background: var(--or-wizard-accent);
  border-color: transparent;
}

.or-wizard-step.is-done .or-wizard-step__num {
  display: none;
}

.or-wizard-step.is-done .or-wizard-step__check {
  display: block;
}

.or-wizard-step__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  white-space: nowrap;
}

.or-wizard-step.is-current .or-wizard-step__label,
.or-wizard-step.is-done .or-wizard-step__label {
  color: #334155;
}

.dark .or-wizard-step.is-current .or-wizard-step__label,
.dark .or-wizard-step.is-done .or-wizard-step__label {
  color: #e2e8f0;
}

.or-wizard-hero {
  position: relative;
  overflow: hidden;
  padding: 0.2rem;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--or-surface-shadow-sm);
}

.dark .or-wizard-hero {
  background: rgba(15, 23, 42, 0.38);
  border-color: rgba(255, 255, 255, 0.08);
}

.or-wizard-hero__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2;
}

.or-wizard-hero__core {
  position: relative;
  z-index: 1;
  padding: 1.05rem 1.25rem 1rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.dark .or-wizard-hero__core {
  background: rgba(15, 23, 42, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.or-wizard-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.65rem;
  margin-bottom: 0.55rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #475569;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.dark .or-wizard-eyebrow {
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
}

.or-wizard-hero__title {
  margin: 0 0 0.45rem;
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.28rem, 2.1vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #0f172a;
}

.dark .or-wizard-hero__title {
  color: #fff;
}

.or-wizard-hero__text {
  margin: 0;
  max-width: 40rem;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.55;
  color: #64748b;
}

.dark .or-wizard-hero__text {
  color: #94a3b8;
}

/* ===== Publicar atelier (scoped) ===== */
.or-publicar-atelier {
  --or-wizard-accent: #158280;
  position: relative;
}

.or-publicar-atelier::before {
  content: '';
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.4;
  background:
    radial-gradient(ellipse 70% 45% at 8% -10%, rgba(68, 210, 201, 0.16), transparent 55%),
    radial-gradient(ellipse 55% 40% at 96% 8%, rgba(21, 130, 128, 0.1), transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23158280' stroke-opacity='0.045' stroke-width='1'%3E%3Crect x='10' y='14' width='28' height='34' rx='2'/%3E%3Cpath d='M16 24h16M16 30h12M16 36h14'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, auto, 72px 72px;
}

.dark .or-publicar-atelier::before {
  opacity: 0.55;
  background:
    radial-gradient(ellipse 70% 45% at 8% -10%, rgba(68, 210, 201, 0.08), transparent 55%),
    radial-gradient(ellipse 55% 40% at 96% 12%, rgba(21, 130, 128, 0.07), transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%2344d2c9' stroke-opacity='0.04' stroke-width='1'%3E%3Crect x='10' y='14' width='28' height='34' rx='2'/%3E%3Cpath d='M16 24h16M16 30h12M16 36h14'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, auto, 72px 72px;
}

.or-publicar-atelier > * {
  position: relative;
  z-index: 1;
}

.or-text-brand {
  background: linear-gradient(135deg, #158280, #44d2c9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.or-wizard-hero--atelier {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-radius: 1.35rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(240, 252, 251, 0.78));
  border: 1px solid rgba(21, 130, 128, 0.14);
  box-shadow:
    0 18px 40px -28px rgba(21, 130, 128, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: or-atelier-hero-in 0.55s var(--or-ease) both;
}

.dark .or-wizard-hero--atelier {
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.78));
  border-color: rgba(68, 210, 201, 0.16);
  box-shadow:
    0 18px 40px -24px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.or-wizard-hero--atelier .or-wizard-hero__glow {
  position: absolute;
  top: -40%;
  right: -8%;
  width: min(18rem, 55%);
  height: 140%;
  opacity: 0.1;
  filter: blur(18px);
  border-radius: 9999px;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

.dark .or-wizard-hero--atelier .or-wizard-hero__glow {
  opacity: 0.14;
}

.or-wizard-hero--atelier .or-wizard-hero__rail,
.or-wizard-hero--atelier .or-wizard-hero__bar {
  display: none;
}

.or-wizard-hero--atelier .or-wizard-hero__core {
  position: relative;
  z-index: 1;
  padding: 1.35rem 1.4rem 1.25rem;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dark .or-wizard-hero--atelier .or-wizard-hero__core {
  background: transparent;
  box-shadow: none;
}

.or-wizard-hero--atelier .or-wizard-eyebrow {
  border-radius: 9999px;
  letter-spacing: 0.14em;
  color: #0f766e;
  background: rgba(68, 210, 201, 0.14);
  border-color: rgba(21, 130, 128, 0.18);
}

.dark .or-wizard-hero--atelier .or-wizard-eyebrow {
  color: #99f6e4;
  background: rgba(68, 210, 201, 0.12);
  border-color: rgba(68, 210, 201, 0.22);
}

.or-wizard-hero--atelier .or-wizard-hero__title {
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  letter-spacing: -0.04em;
  max-width: 20ch;
}

.or-wizard-hero--atelier .or-wizard-hero__text {
  max-width: 38rem;
  font-size: 0.92rem;
}

.or-section-head--atelier {
  margin-bottom: 0.95rem;
  padding-bottom: 0;
  border-bottom: none;
}

.or-section-kicker__step {
  display: none;
}

.or-section-head--atelier .or-section-kicker {
  color: #0f766e;
  letter-spacing: 0.14em;
}

.dark .or-section-head--atelier .or-section-kicker {
  color: #5eead4;
}

.or-section-head--atelier h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.3rem);
  margin-top: 0.25rem;
}

.or-catalog-tile--atelier {
  position: relative;
  min-height: 11.5rem;
  padding: 1.35rem 1.3rem 1.3rem;
  border-radius: 1.25rem;
  transition: transform 0.28s var(--or-ease), box-shadow 0.28s var(--or-ease), border-color 0.28s ease;
}

.or-catalog-tile__rail {
  display: none;
}

.or-catalog-tile--premium,
.or-sub-tile--premium,
.or-tool-tile--premium {
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #ffffff;
  background-image:
    linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 10px 28px -18px rgba(15, 23, 42, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.dark .or-catalog-tile--premium,
.dark .or-sub-tile--premium,
.dark .or-tool-tile--premium {
  border-color: rgba(255, 255, 255, 0.12);
  background: #0f172a;
  background-image:
    linear-gradient(165deg, #1e293b 0%, #0f172a 100%);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 14px 32px -16px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.or-catalog-tile__wash,
.or-sub-tile__wash,
.or-tool-tile__wash {
  position: absolute;
  inset: auto -12% -38% auto;
  width: 9.5rem;
  height: 9.5rem;
  border-radius: 9999px;
  opacity: 0.09;
  /* Soft radial wash — no filter blur (keeps card text crisp) */
  filter: none;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
  z-index: 0;
  transition: opacity 0.3s ease, transform 0.3s var(--or-ease);
}

.dark .or-catalog-tile__wash,
.dark .or-sub-tile__wash,
.dark .or-tool-tile__wash {
  opacity: 0.14;
}

.or-catalog-tile--atelier:hover .or-catalog-tile__wash,
.or-sub-tile--atelier:hover .or-sub-tile__wash,
.or-tool-tile--atelier:hover .or-tool-tile__wash {
  opacity: 0.16;
  transform: scale(1.06) translate(-2%, -2%);
}

.or-catalog-tile--atelier:hover,
.or-sub-tile--premium:hover,
.or-tool-tile--premium:hover {
  transform: translateY(-2px);
  border-color: rgba(21, 130, 128, 0.28);
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.04),
    0 16px 36px -20px rgba(21, 130, 128, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.dark .or-catalog-tile--atelier:hover,
.dark .or-sub-tile--premium:hover,
.dark .or-tool-tile--premium:hover {
  border-color: rgba(68, 210, 201, 0.32);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.25),
    0 18px 40px -16px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.or-catalog-tile--atelier .or-catalog-tile__icon {
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 1.05rem;
}

.or-catalog-tile--atelier .or-catalog-tile__meta {
  display: none;
}

.or-sub-tile--atelier,
.or-tool-tile--atelier {
  transition: transform 0.28s var(--or-ease), box-shadow 0.28s var(--or-ease), border-color 0.28s ease;
}

.or-sub-tile--atelier:hover,
.or-tool-tile--atelier:hover {
  transform: translateY(-2px);
}

.or-tool-tile--premium {
  min-height: 10rem;
}

.or-tool-tile--premium .or-tool-tile__icon {
  width: 3.65rem;
  height: 3.65rem;
  border-radius: 1.2rem;
  color: #0f766e;
  background: rgba(68, 210, 201, 0.12);
  border: 1px solid rgba(21, 130, 128, 0.16);
}

.dark .or-tool-tile--premium .or-tool-tile__icon {
  color: #99f6e4;
  background: rgba(68, 210, 201, 0.1);
  border-color: rgba(68, 210, 201, 0.18);
}

.or-tool-tile.is-selected {
  border-color: color-mix(in srgb, var(--or-wizard-accent, #158280) 55%, white);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--or-wizard-accent, #158280) 55%, transparent),
    0 18px 36px -20px color-mix(in srgb, var(--or-wizard-accent, #158280) 45%, transparent);
}

.or-tool-tile.is-selected .or-tool-tile__wash {
  opacity: 0.18;
}

@keyframes or-atelier-hero-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes or-atelier-bar-shine {
  0%, 100% { background-position: 0% 50%; opacity: 0.7; }
  50% { background-position: 100% 50%; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .or-wizard-hero--atelier,
  .or-wizard-hero--atelier .or-wizard-hero__bar,
  .or-catalog-tile--atelier,
  .or-sub-tile--atelier,
  .or-tool-tile--atelier {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

.or-catalog-tile {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 11.25rem;
  padding: 1.2rem;
  border-radius: 1.35rem;
}

.or-catalog-tile__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.or-catalog-tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 0.95rem;
  color: #fff;
  flex-shrink: 0;
}

.or-island-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  flex-shrink: 0;
  color: #64748b;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.dark .or-island-arrow {
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
}

.group:hover .or-island-arrow,
.or-catalog-tile:hover .or-island-arrow,
.or-sub-tile:hover .or-island-arrow {
  color: #0f766e;
  border-color: rgba(20, 184, 166, 0.4);
  background: rgba(68, 210, 201, 0.14);
  transform: translateX(2px);
}

.or-catalog-tile__body {
  margin-top: auto;
}

.or-catalog-tile__meta {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #94a3b8;
}

.or-catalog-tile:hover,
.or-sub-tile:hover,
.or-tool-tile:hover,
.or-rule-tile:hover {
  box-shadow: var(--or-surface-shadow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-color: rgba(21, 130, 128, 0.28);
}

.dark .or-catalog-tile:hover,
.dark .or-sub-tile:hover,
.dark .or-tool-tile:hover,
.dark .or-rule-tile:hover {
  border-color: rgba(68, 210, 201, 0.28);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.or-sub-tile {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 8.25rem;
  padding: 1.05rem;
  border-radius: 1.2rem;
}

.or-sub-tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 0.95rem;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.85);
}

.dark .or-sub-tile__icon {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
}

.or-sub-tile h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #0f172a;
}

.dark .or-sub-tile h4 {
  color: #f8fafc;
}

.or-sub-tile .or-island-arrow {
  margin-top: auto;
  align-self: flex-end;
}

.or-tool-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.85rem;
  min-height: 9.5rem;
  padding: 1.1rem 0.9rem;
  border-radius: 1.25rem;
  cursor: pointer;
}

.or-tool-tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1.15rem;
  color: #64748b;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.85);
}

.dark .or-tool-tile__icon {
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
}

.or-tool-tile.is-selected {
  box-shadow: 0 0 0 2px var(--or-wizard-accent, #3b82f6), var(--or-surface-shadow-sm);
}

.or-wizard-cta-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
}

@media (min-width: 640px) {
  .or-wizard-cta-bar {
    flex-direction: row;
    align-items: center;
  }
}

.or-wizard-cta-dock {
  position: sticky;
  bottom: 1rem;
  z-index: 30;
  margin-top: 0.5rem;
  padding-top: 0.25rem;
}

.or-wizard-cta-bar--dock {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.85rem;
  width: 100%;
  padding: 0.95rem 1.05rem;
  border-radius: 1.2rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 252, 251, 0.92));
  border: 1px solid rgba(21, 130, 128, 0.2);
  box-shadow:
    0 18px 40px -18px rgba(21, 130, 128, 0.4),
    0 8px 24px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.dark .or-wizard-cta-bar--dock {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.92));
  border-color: rgba(68, 210, 201, 0.22);
  box-shadow:
    0 18px 40px -14px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

@media (min-width: 640px) {
  .or-wizard-cta-bar--dock {
    flex-direction: row;
    align-items: center;
    padding: 0.85rem 0.9rem 0.85rem 1.2rem;
  }
}

.or-wizard-cta-bar__info {
  min-width: 0;
  flex: 1 1 auto;
}

.or-wizard-cta-bar__label {
  margin: 0 0 0.2rem;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #94a3b8;
}

.or-wizard-cta-bar__title {
  margin: 0;
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dark .or-wizard-cta-bar__title {
  color: #f8fafc;
}

.or-wizard-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.4rem 0.4rem 1.05rem;
  border-radius: 9999px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 22px -10px rgba(15, 23, 42, 0.35);
  transition: box-shadow 0.25s ease, filter 0.25s ease, transform 0.2s ease;
}

.or-wizard-cta:hover {
  filter: brightness(1.04);
  box-shadow: 0 12px 22px -10px rgba(15, 23, 42, 0.4);
}

.or-wizard-cta--dock {
  flex: 0 0 auto;
  align-self: stretch;
  justify-content: center;
  width: 100%;
  padding: 0.55rem 0.55rem 0.55rem 1.15rem;
  box-shadow: 0 12px 24px -12px rgba(21, 130, 128, 0.55);
}

@media (min-width: 640px) {
  .or-wizard-cta--dock {
    width: auto;
    align-self: center;
    min-width: 11.5rem;
  }
}

.or-wizard-cta--dock:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -12px rgba(21, 130, 128, 0.6);
}

.or-wizard-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.18);
}

.or-crumb-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.85);
  color: #475569;
}

.dark .or-crumb-chip {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.or-section-head {
  margin-bottom: 0.85rem;
}

.or-section-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94a3b8;
}

.or-section-head h3 {
  margin: 0;
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.dark .or-section-head h3 {
  color: #fff;
}

.or-count-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(68, 210, 201, 0.14);
  color: #0f766e;
  border: 1px solid rgba(21, 130, 128, 0.16);
}

.dark .or-count-pill {
  background: rgba(68, 210, 201, 0.12);
  color: #99f6e4;
  border-color: rgba(68, 210, 201, 0.22);
}

.or-rule-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.05rem 1.15rem 1rem 1.25rem;
  border-radius: 1.2rem;
}

@media (min-width: 640px) {
  .or-rule-tile {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.or-rule-tile::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  bottom: 0.85rem;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--or-rule-accent, #3b82f6);
  z-index: 2;
}

.or-rule-tile--erp {
  --or-rule-accent: #158280;
}

.or-rule-tile--hcm {
  --or-rule-accent: #3b82f6;
}

.or-rule-tile--atelier {
  overflow: hidden;
  transition: transform 0.28s var(--or-ease), box-shadow 0.28s var(--or-ease), border-color 0.28s ease;
}

.or-rule-tile--premium {
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #ffffff;
  background-image:
    linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 10px 28px -18px rgba(15, 23, 42, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.dark .or-rule-tile--premium {
  border-color: rgba(255, 255, 255, 0.12);
  background: #0f172a;
  background-image:
    linear-gradient(165deg, #1e293b 0%, #0f172a 100%);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 14px 32px -16px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.or-rule-tile__wash {
  position: absolute;
  inset: auto -12% -48% auto;
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 9999px;
  opacity: 0.08;
  filter: none;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
  z-index: 0;
  transition: opacity 0.3s ease, transform 0.3s var(--or-ease);
}

.dark .or-rule-tile__wash {
  opacity: 0.12;
}

.or-rule-tile--atelier:hover {
  transform: translateY(-2px);
  border-color: rgba(21, 130, 128, 0.28);
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.04),
    0 16px 36px -20px rgba(21, 130, 128, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.dark .or-rule-tile--atelier:hover {
  border-color: rgba(68, 210, 201, 0.32);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.25),
    0 18px 40px -16px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.or-rule-tile--atelier:hover .or-rule-tile__wash {
  opacity: 0.14;
  transform: scale(1.05) translate(-2%, -2%);
}

.or-publicar-atelier .or-rule-tile--atelier {
  padding: 1.15rem 1.25rem 1.1rem 1.35rem;
  border-radius: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .or-rule-tile--atelier {
    transition: none !important;
    transform: none !important;
  }

  .or-rule-tile--atelier:hover .or-rule-tile__wash {
    transform: none;
  }
}

.or-rule-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #64748b;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.85);
}

.dark .or-rule-meta {
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
}

.or-wizard-cta-bar.or-card--bezel {
  padding: 0.3rem;
}

.or-wizard-cta-bar .or-card__core {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  width: 100%;
}

@media (min-width: 640px) {
  .or-wizard-cta-bar .or-card__core {
    flex-direction: row;
    align-items: center;
  }
}

/* ===== Rule forms ===== */
.or-form-intro {
  width: 100%;
  text-align: center;
  margin-bottom: 0.75rem;
}

.or-form-intro .or-wizard-eyebrow {
  margin-bottom: 0.7rem;
}

.or-form-intro h2 {
  margin: 0 0 0.4rem;
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.28rem, 2.2vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #0f172a;
}

.dark .or-form-intro h2 {
  color: #fff;
}

.or-form-intro p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
}

.or-form-intro--atelier {
  text-align: left;
  padding-left: 0;
  border-left: none;
  border-image: none;
  animation: or-atelier-hero-in 0.55s var(--or-ease) both;
}

.or-form-intro--atelier h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  letter-spacing: -0.035em;
  max-width: 18ch;
}

.or-form-intro--atelier p {
  font-size: 0.8125rem;
}

.or-form-intro--wide {
  margin-bottom: 0.35rem;
}

.or-form-intro--wide h2 {
  max-width: none;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
}

.or-form-intro--wide p {
  font-size: 0.875rem;
  max-width: 42rem;
}

.or-form-shell {
  width: 100%;
}

.or-form-shell > .or-card__core {
  padding: 1.05rem 1.1rem 1.15rem;
}

@media (min-width: 640px) {
  .or-form-shell > .or-card__core {
    padding: 1.25rem 1.4rem 1.35rem;
  }
}

.or-form-shell--atelier {
  border-radius: 1.1rem;
}

.or-form-shell--atelier > .or-card__core {
  padding: 0.9rem 0.95rem 1rem;
  background:
    linear-gradient(180deg, rgba(240, 252, 251, 0.65), rgba(255, 255, 255, 0.92));
}

@media (min-width: 640px) {
  .or-form-shell--atelier > .or-card__core {
    padding: 1rem 1.1rem 1.1rem;
  }
}

.or-form-shell--wide {
  border-radius: 1.35rem;
}

.or-form-shell--wide > .or-card__core {
  padding: 1.15rem 1.15rem 1.25rem;
}

@media (min-width: 640px) {
  .or-form-shell--wide > .or-card__core {
    padding: 1.4rem 1.55rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .or-form-shell--wide > .or-card__core {
    padding: 1.55rem 1.75rem 1.65rem;
  }
}

.dark .or-form-shell--atelier > .or-card__core {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.88));
}

.or-form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.or-form--atelier {
  gap: 0.95rem;
}

.or-form--wide {
  gap: 1.25rem;
}

.or-form-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 900px) {
  .or-form-layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(17.5rem, 0.95fr);
    gap: 0;
    align-items: stretch;
  }
}

.or-form-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.or-form--atelier .or-form-section {
  gap: 0.6rem;
  padding-top: 0.15rem;
}

.or-form--atelier .or-form-section + .or-form-section {
  margin-top: 0.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.dark .or-form--atelier .or-form-section + .or-form-section {
  border-top-color: rgba(148, 163, 184, 0.14);
}

.or-form--wide .or-form-section {
  gap: 0.85rem;
}

.or-form--wide .or-form-layout > .or-form-section + .or-form-section {
  margin-top: 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

@media (min-width: 900px) {
  .or-form--wide .or-form-section--identify {
    padding-right: 1.75rem;
  }

  .or-form--wide .or-form-section--attach {
    display: flex;
    flex-direction: column;
    padding-left: 1.75rem;
    padding-top: 0.15rem;
    border-top: none;
    border-left: 1px solid rgba(148, 163, 184, 0.22);
  }

  .or-form--wide .or-form-layout > .or-form-section + .or-form-section {
    margin-top: 0;
    padding-top: 0.15rem;
    border-top: none;
  }

  .dark .or-form--wide .or-form-section--attach {
    border-left-color: rgba(148, 163, 184, 0.14);
  }

  .or-form--wide .or-form-attach-panel {
    flex: 1;
    justify-content: flex-start;
  }
}

.dark .or-form--wide .or-form-layout > .or-form-section + .or-form-section {
  border-top-color: rgba(148, 163, 184, 0.14);
}

.or-form-attach-panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.or-form-section__head {
  margin-bottom: 0.05rem;
}

.or-form-section__label {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0f766e;
}

.dark .or-form-section__label {
  color: #5eead4;
}

.or-form-section__hint {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
}

.or-form--atelier .or-field {
  gap: 0.3rem;
}

.or-form--atelier .or-field__label {
  font-size: 0.625rem;
  letter-spacing: 0.12em;
}

.or-form--atelier .or-field__control,
.or-form--atelier .or-field .modern-select {
  min-height: 2.35rem;
  padding: 0.5rem 0.8rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
}

.or-form--atelier .or-field textarea.or-field__control {
  min-height: 3.25rem;
}

.or-form--wide .or-field {
  gap: 0.4rem;
}

.or-form--wide .or-field__label {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
}

.or-form--wide .or-field__control,
.or-form--wide .or-field .modern-select {
  min-height: 2.65rem;
  padding: 0.65rem 0.95rem;
  border-radius: 0.9rem;
  font-size: 0.875rem;
}

.or-form--wide .or-field textarea.or-field__control {
  min-height: 5.5rem;
}

.or-form--atelier .or-form-action {
  padding: 0.6rem 0.75rem;
  border-radius: 0.85rem;
}

.or-form--atelier .or-form-action__icon {
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 0.7rem;
}

.or-form--atelier .or-form-action__title {
  font-size: 0.875rem;
}

.or-form--wide .or-form-action {
  padding: 0.8rem 0.95rem;
  border-radius: 1rem;
}

.or-form--wide .or-form-action__icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.8rem;
}

.or-form--wide .or-form-action__title {
  font-size: 0.9375rem;
}

.or-form--atelier .or-form-ged {
  padding: 0.65rem 0.8rem;
  gap: 0.55rem;
  border-radius: 0.85rem;
}

.or-form--atelier .or-form-ged__mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
}

.or-form--atelier .or-form-ged__cta {
  padding: 0.4rem 0.4rem 0.4rem 0.85rem;
  font-size: 0.7rem;
}

.or-form--wide .or-form-ged {
  padding: 0.85rem 1rem;
  gap: 0.75rem;
  border-radius: 1rem;
  flex-direction: column;
  align-items: stretch;
}

.or-form--wide .or-form-ged__mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
}

.or-form--wide .or-form-ged__cta {
  width: 100%;
  justify-content: center;
  padding: 0.55rem 0.55rem 0.55rem 1rem;
  font-size: 0.75rem;
}

.or-form--atelier .or-form-submit {
  padding: 0.35rem 0.35rem 0.35rem 0.95rem;
  font-size: 0.8125rem;
}

.or-form--wide .or-form-submit {
  margin-top: 0.15rem;
  padding: 0.45rem 0.45rem 0.45rem 1.2rem;
  font-size: 0.9375rem;
}

.or-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.or-field__label {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
  transition: color 0.3s var(--or-ease);
}

.or-field:focus-within .or-field__label {
  color: #0f766e;
}

.dark .or-field:focus-within .or-field__label {
  color: #5eead4;
}

.or-field__req {
  color: #f43f5e;
}

.or-field__control,
.or-field .modern-select {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.65rem 0.95rem;
  border-radius: 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.or-field textarea.or-field__control {
  min-height: 4.25rem;
  resize: vertical;
}

.or-field .modern-select {
  padding-right: 2.6rem;
  cursor: pointer;
}

.or-field__control:focus,
.or-field .modern-select:focus {
  border-color: rgba(21, 130, 128, 0.55);
  box-shadow: 0 0 0 4px rgba(68, 210, 201, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.dark .or-field__control,
.dark .or-field .modern-select {
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.62);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.or-form-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .or-form-actions {
    grid-template-columns: 1fr 1fr;
  }
}

/* Wide publish form: keep attachment actions stacked (overrides sm: two-col above) */
.or-form--wide .or-form-actions.or-form-actions--stack {
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) and (max-width: 899px) {
  .or-form--wide .or-form-actions.or-form-actions--stack {
    grid-template-columns: 1fr 1fr;
  }
}

.or-form-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--or-ease);
}

.or-form-action:hover {
  border-color: rgba(21, 130, 128, 0.4);
  box-shadow: var(--or-surface-shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

.dark .or-form-action {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(255, 255, 255, 0.1);
}

.or-form-action__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.8rem;
  flex-shrink: 0;
  color: #158280;
  background: rgba(68, 210, 201, 0.14);
}

.or-form-action--anexo .or-form-action__icon {
  color: #0f766e;
  background: rgba(21, 130, 128, 0.12);
}

.or-form-action__body {
  flex: 1;
  min-width: 0;
}

.or-form-action__title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.dark .or-form-action__title {
  color: #f1f5f9;
}

.or-form-action__meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
}

.or-form-ged {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.8rem 0.95rem;
  border-radius: 1rem;
  background: rgba(240, 252, 251, 0.72);
  border: 1px solid rgba(21, 130, 128, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

@media (min-width: 640px) {
  .or-form-ged {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  .or-form--wide .or-form-ged {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .or-form--wide .or-form-ged__cta {
    width: 100%;
  }
}

.dark .or-form-ged {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(68, 210, 201, 0.18);
}

.or-form-ged__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.85rem;
  flex-shrink: 0;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, #158280, #44d2c9);
}

.or-form-ged__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #158280, #2aa8a0);
  white-space: nowrap;
}

.or-form-ged__cta span.or-wizard-cta__icon {
  width: 1.65rem;
  height: 1.65rem;
}

.or-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.4rem 0.4rem 0.4rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #fff;
  background: linear-gradient(135deg, #158280, #44d2c9);
  box-shadow: 0 12px 24px -12px rgba(21, 130, 128, 0.55);
  transition: box-shadow 0.25s ease, filter 0.25s ease;
}

.or-form-submit:hover {
  filter: brightness(1.04);
  box-shadow: 0 14px 26px -12px rgba(21, 130, 128, 0.6);
}

.or-form-submit .or-wizard-cta__icon {
  margin-left: auto;
}

@media (max-width: 640px) {
  .or-wizard-step__label {
    display: none;
  }
  .or-wizard-step:not(:last-child)::after {
    margin: 0 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .or-card,
  .or-card--lift,
  .or-fx-card,
  .or-kpi,
  .or-icon-btn,
  .theme-toggle,
  .or-back-chip,
  .or-wizard-cta,
  .or-island-arrow,
  .or-catalog-tile,
  .or-sub-tile,
  .or-tool-tile,
  .or-form-action,
  .or-form-submit,
  .or-rule-tile {
    transition: none !important;
    transform: none !important;
  }
  .or-fx-card::after,
  .or-card__shine {
    display: none;
  }
}

/* Empty state neutro (herda tipografia; acentos vêm do HTML da página) */
.or-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  gap: 0.35rem;
}

.or-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 0.85rem;
  border-radius: 1.5rem;
}

.or-empty__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1e293b;
}

.dark .or-empty__title {
  color: #e2e8f0;
}

.or-empty__text {
  margin: 0.35rem 0 0;
  max-width: 22rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  color: #64748b;
}

.dark .or-empty__text {
  color: #94a3b8;
}

.or-empty__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Focus visível neutro (não força brand teal em áreas indigo/rosa/violeta) */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid rgba(100, 116, 139, 0.85);
  outline-offset: 2px;
}

.dark :focus-visible {
  outline-color: rgba(148, 163, 184, 0.9);
}

/* Toasts independentes do Tailwind CDN (classes geradas em JS não entram no scan) */
#or-toast-stack {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 400;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.75rem;
  width: min(calc(100% - 1.5rem), 22rem);
  pointer-events: none;
}

/* Evita colisão com o FAB do menu no mobile */
@media (max-width: 767px) {
  #or-toast-stack {
    bottom: 6rem;
    right: 1rem;
    left: 1rem;
    width: auto;
  }
}

.or-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.94);
  color: #1e293b;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateX(1.25rem);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.or-toast.is-on {
  opacity: 1;
  transform: translateX(0);
}

.dark .or-toast {
  background: rgba(15, 23, 42, 0.94);
  border-color: rgba(51, 65, 85, 0.8);
  color: #f1f5f9;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.or-toast__icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.or-toast--success .or-toast__icon {
  background: rgba(20, 184, 166, 0.16);
  color: #0f766e;
}

.or-toast--error .or-toast__icon {
  background: rgba(244, 63, 94, 0.16);
  color: #e11d48;
}

.or-toast--info .or-toast__icon {
  background: rgba(100, 116, 139, 0.16);
  color: #475569;
}

.dark .or-toast--success .or-toast__icon { color: #2dd4bf; }
.dark .or-toast--error .or-toast__icon { color: #fb7185; }
.dark .or-toast--info .or-toast__icon { color: #cbd5e1; }

.or-toast__body {
  flex: 1;
  min-width: 0;
  padding-top: 0.1rem;
}

.or-toast__label {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.or-toast__text {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}

.or-toast__close {
  flex-shrink: 0;
  padding: 0.2rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
}

.or-toast__close:hover {
  color: #334155;
  background: rgba(241, 245, 249, 0.9);
}

.dark .or-toast__close:hover {
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.9);
}

/* Skeleton de carregamento dos grids de módulo */
@keyframes orSkelPulse {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.or-skel-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.7);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  min-height: 5.5rem;
}

.or-skel-card--modulo {
  min-height: 13.5rem;
  height: auto;
  padding: 1.5rem;
  border-radius: 1.5rem;
  gap: 1.25rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

@media (min-width: 1024px) {
  .or-skel-card--modulo {
    min-height: 13.5rem;
    padding: 1.5rem;
  }
}

.dark .or-skel-card {
  border-color: rgba(51, 65, 85, 0.7);
  background: rgba(15, 23, 42, 0.55);
}

.or-skel {
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0.18) 0%,
    rgba(148, 163, 184, 0.35) 50%,
    rgba(148, 163, 184, 0.18) 100%
  );
  background-size: 200% 100%;
  animation: orSkelPulse 1.1s ease-in-out infinite;
  border-radius: 0.6rem;
}

.dark .or-skel {
  background: linear-gradient(
    90deg,
    rgba(71, 85, 105, 0.35) 0%,
    rgba(100, 116, 139, 0.55) 50%,
    rgba(71, 85, 105, 0.35) 100%
  );
  background-size: 200% 100%;
}

.or-skel-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  flex-shrink: 0;
}

.or-skel-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.or-skel-line {
  height: 0.75rem;
  width: 72%;
}

.or-skel-line.short {
  width: 48%;
  height: 0.55rem;
}

.or-skel-banner {
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: none;
}

/* Dark theme: remove harsh white outlines around selection icons */
html.dark .or-icon-box,
.dark .or-icon-box {
  border-color: transparent !important;
  box-shadow: none;
}

/* Light mode: elevate floating surfaces against the mint canvas */
html:not(.dark) .or-surface,
html:not(.dark) .glass-card,
html:not(.dark) .or-fx-card {
  box-shadow: var(--or-surface-shadow);
}

html:not(.dark) .glass-panel {
  box-shadow:
    var(--or-surface-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

html:not(.dark) .or-surface-sm,
html:not(.dark) .radio-card,
html:not(.dark) .or-skel-card {
  box-shadow: var(--or-surface-shadow-sm);
}

html:not(.dark) .or-fx-card:hover {
  box-shadow: var(--or-surface-shadow-hover);
}

/* Crisp premium tiles on consultar/publicar — beat global glass shadows */
html:not(.dark) .or-catalog-tile--premium.or-fx-card,
html:not(.dark) .or-sub-tile--premium.or-fx-card,
html:not(.dark) .or-tool-tile--premium.or-fx-card,
html:not(.dark) .or-rule-tile--premium.or-fx-card {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 10px 28px -18px rgba(15, 23, 42, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

html:not(.dark) .or-catalog-tile--atelier.or-fx-card:hover,
html:not(.dark) .or-sub-tile--premium.or-fx-card:hover,
html:not(.dark) .or-tool-tile--premium.or-fx-card:hover,
html:not(.dark) .or-rule-tile--atelier.or-fx-card:hover {
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.04),
    0 16px 36px -20px rgba(21, 130, 128, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

html.dark .or-catalog-tile--premium.or-fx-card,
html.dark .or-sub-tile--premium.or-fx-card,
html.dark .or-tool-tile--premium.or-fx-card,
html.dark .or-rule-tile--premium.or-fx-card {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 14px 32px -16px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html.dark .or-catalog-tile--atelier.or-fx-card:hover,
html.dark .or-sub-tile--premium.or-fx-card:hover,
html.dark .or-tool-tile--premium.or-fx-card:hover,
html.dark .or-rule-tile--atelier.or-fx-card:hover {
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.25),
    0 18px 40px -16px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html:not(.dark) .glass-header {
  box-shadow: 0 4px 18px -6px rgba(15, 58, 64, 0.12);
}

html:not(.dark) #sidebar-menu {
  box-shadow: 6px 0 28px -10px rgba(15, 23, 42, 0.10);
}

html.dark .or-surface,
html.dark .or-card,
html.dark .or-fx-card {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Dark theme: readable placeholders and muted UI copy */
html.dark #searchFilter::placeholder,
.dark #searchFilter::placeholder {
  color: rgb(148 163 184);
  opacity: 1;
}

html.dark #rulesList .text-slate-400,
.dark #rulesList .text-slate-400 {
  color: rgb(203 213 225);
}

/* Login shell — compact, static, brand-aligned */
.or-login-shell {
  box-sizing: border-box;
  width: min(100%, 58rem);
  max-width: 58rem;
  min-width: min(100%, 20rem);
  min-height: 30.5rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0.5rem;
  margin: 0 auto;
  flex: 0 1 auto;
  align-self: center;
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 24px 64px -16px rgba(21, 130, 128, 0.18), 0 8px 24px -8px rgba(11, 35, 56, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px);
}

.dark .or-login-shell {
  background: rgba(11, 35, 56, 0.55);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.45), 0 8px 24px -8px rgba(68, 210, 201, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

@media (min-width: 768px) {
  .or-login-shell {
    flex-direction: row;
    align-items: stretch;
  }
}

.or-login-brand-col {
  display: none;
  padding: 0.25rem;
}

@media (min-width: 768px) {
  .or-login-brand-col {
    display: flex;
    width: 46%;
    flex-shrink: 0;
  }
}

.or-login-brand {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: linear-gradient(to bottom right, #158280, #158280, #44d2c9);
}

html.dark .or-login-brand,
.dark .or-login-brand {
  background: linear-gradient(to bottom right, #0b2338, #193b55, rgba(21, 130, 128, 0.8));
}

.or-login-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1.5rem 1.65rem;
}

@media (min-width: 640px) {
  .or-login-panel {
    padding: 2rem 2.25rem;
  }
}

@media (min-width: 768px) {
  .or-login-panel {
    width: 54%;
    padding: 2.15rem 2.4rem;
  }
}

.or-login-field {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
  font-weight: 500;
  color: #0b2338;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.or-login-field:focus {
  border-color: #158280;
  box-shadow: 0 0 0 4px rgba(21, 130, 128, 0.14);
}

input.or-login-field[type="password"] {
  padding-right: 2.5rem;
}

.dark .or-login-field {
  color: #fff;
  background: rgba(25, 59, 85, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dark .or-login-field:focus {
  border-color: #44d2c9;
  box-shadow: 0 0 0 4px rgba(68, 210, 201, 0.14);
}

.or-login-submit {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.4rem 0.4rem 0.4rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #fff;
  border-radius: 9999px;
  background: linear-gradient(90deg, #158280, #44d2c9);
  box-shadow: 0 12px 28px -8px rgba(21, 130, 128, 0.55);
  transition: box-shadow 0.25s ease, filter 0.25s ease;
}

.or-login-submit:hover {
  filter: brightness(1.04);
  box-shadow: 0 14px 30px -8px rgba(21, 130, 128, 0.6);
}

.or-login-ms {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.95rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.9);
  color: #0b2338;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.or-login-ms:hover {
  border-color: rgba(21, 130, 128, 0.4);
  box-shadow: var(--or-surface-shadow-sm);
}

.dark .or-login-ms {
  background: rgba(25, 59, 85, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.dark .or-login-ms:hover {
  border-color: rgba(68, 210, 201, 0.4);
}

/* ===== Central de Dúvidas — visual chic ===== */
.or-duvidas-page {
  --duvidas-rose: #ec4899;
  --duvidas-rose-soft: rgba(236, 72, 153, 0.14);
  --duvidas-ease: cubic-bezier(0.32, 0.72, 0, 1);
}

.or-duvidas-page main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 10;
  min-height: 0;
  min-width: 0;
}

@media (min-width: 1024px) {
  .or-duvidas-page main {
    grid-template-columns: 17rem minmax(0, 1fr);
    gap: 1.25rem;
    align-items: stretch;
  }
}

.or-duvidas-page .or-page-header {
  flex-shrink: 0;
  gap: 0.75rem;
}

.or-duvidas-ambient {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.or-duvidas-ambient__orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(72px);
  opacity: 0.45;
  animation: or-duvidas-float 18s var(--duvidas-ease) infinite alternate;
}

.or-duvidas-ambient__orb--a {
  width: 22rem;
  height: 22rem;
  top: -6rem;
  right: 8%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.45), transparent 68%);
}

.or-duvidas-ambient__orb--b {
  width: 18rem;
  height: 18rem;
  bottom: 12%;
  left: 4%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.28), transparent 70%);
  animation-delay: -6s;
}

.or-duvidas-ambient__orb--c {
  width: 14rem;
  height: 14rem;
  top: 42%;
  right: 28%;
  background: radial-gradient(circle, rgba(251, 113, 133, 0.22), transparent 70%);
  animation-delay: -11s;
}

.dark .or-duvidas-ambient__orb--a {
  opacity: 0.35;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.32), transparent 70%);
}

.dark .or-duvidas-ambient__orb--b {
  opacity: 0.28;
}

.dark .or-duvidas-ambient__orb--c {
  opacity: 0.22;
}

@keyframes or-duvidas-float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(12px, -18px, 0) scale(1.06); }
}

.or-duvidas-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.95rem;
  color: #ec4899;
  background: linear-gradient(145deg, rgba(251, 207, 232, 0.85), rgba(255, 255, 255, 0.55));
  border: 1px solid rgba(244, 114, 182, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.dark .or-duvidas-title-icon {
  color: #f9a8d4;
  background: linear-gradient(145deg, rgba(236, 72, 153, 0.22), rgba(15, 23, 42, 0.55));
  border-color: rgba(244, 114, 182, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.or-duvidas-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  background: linear-gradient(105deg, #db2777 0%, #f43f5e 55%, #fb7185 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dark .or-duvidas-title {
  background: linear-gradient(105deg, #f9a8d4 0%, #fb7185 55%, #fda4af 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.or-duvidas-online {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  word-spacing: 0.14em;
  color: #475569;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(12px);
}

.dark .or-duvidas-online {
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.72);
  border-color: rgba(255, 255, 255, 0.1);
}

.or-duvidas-online__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  animation: or-duvidas-pulse 2.2s ease-out infinite;
}

@keyframes or-duvidas-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.or-duvidas-wa-panel {
  background: rgba(255, 255, 255, 0.7);
}

.dark .or-duvidas-wa-panel {
  background: rgba(15, 23, 42, 0.58);
}

.or-duvidas-wa-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.85rem;
  flex-shrink: 0;
  color: #25d366;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.18);
}

.or-duvidas-wa-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border-radius: 1.05rem;
  background: rgba(248, 250, 252, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: transform 0.35s var(--duvidas-ease), border-color 0.25s ease, box-shadow 0.35s var(--duvidas-ease), background 0.25s ease;
}

.dark .or-duvidas-wa-link {
  background: rgba(30, 41, 59, 0.45);
  border-color: rgba(255, 255, 255, 0.08);
}

.or-duvidas-wa-link:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 211, 102, 0.35);
  background: rgba(240, 253, 244, 0.7);
  box-shadow: 0 10px 24px -14px rgba(37, 211, 102, 0.45);
}

.dark .or-duvidas-wa-link:hover {
  background: rgba(6, 78, 59, 0.22);
  box-shadow: 0 12px 28px -16px rgba(0, 0, 0, 0.55);
}

.or-duvidas-wa-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  flex-shrink: 0;
  color: #25d366;
  background: rgba(37, 211, 102, 0.12);
}

.or-duvidas-wa-link__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  flex-shrink: 0;
  color: #94a3b8;
  background: rgba(241, 245, 249, 0.95);
  transition: color 0.25s ease, background 0.25s ease, transform 0.35s var(--duvidas-ease);
}

.dark .or-duvidas-wa-link__arrow {
  background: rgba(15, 23, 42, 0.7);
  color: #64748b;
}

.or-duvidas-wa-link:hover .or-duvidas-wa-link__arrow {
  color: #25d366;
  background: rgba(37, 211, 102, 0.15);
  transform: translateX(2px);
}

/* Dúvidas — composer */
.or-duvidas-composer .or-card__core {
  padding: 1.05rem 1.15rem 1.1rem;
}

@media (min-width: 640px) {
  .or-duvidas-composer .or-card__core {
    padding: 1.25rem 1.35rem 1.25rem;
  }
}

.or-duvidas-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, #ec4899, #f43f5e);
  box-shadow: 0 8px 18px -10px rgba(236, 72, 153, 0.55);
}

.or-duvidas-avatar--composer {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.05rem;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.9),
    0 8px 18px -10px rgba(236, 72, 153, 0.55);
}

.dark .or-duvidas-avatar--composer {
  box-shadow:
    0 0 0 2px rgba(15, 23, 42, 0.95),
    0 8px 18px -10px rgba(236, 72, 153, 0.45);
}

.or-duvidas-textarea {
  width: 100%;
  min-height: 3.25rem;
  resize: none;
  outline: none;
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  font-size: 0.925rem;
  line-height: 1.6;
  color: #1e293b;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.or-duvidas-textarea::placeholder {
  color: #94a3b8;
}

.or-duvidas-textarea:focus {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(244, 114, 182, 0.45);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.12);
}

.dark .or-duvidas-textarea {
  color: #f1f5f9;
  background: rgba(30, 41, 59, 0.55);
  border-color: rgba(71, 85, 105, 0.55);
}

.dark .or-duvidas-textarea:focus {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(244, 114, 182, 0.4);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.16);
}

@media (min-width: 640px) {
  .or-duvidas-textarea {
    font-size: 1rem;
  }
}

.or-duvidas-composer__divider {
  height: 1px;
  margin: 0.9rem 0;
  background: linear-gradient(90deg, transparent, rgba(226, 232, 240, 0.95) 18%, rgba(226, 232, 240, 0.95) 82%, transparent);
}

.dark .or-duvidas-composer__divider {
  background: linear-gradient(90deg, transparent, rgba(71, 85, 105, 0.7) 18%, rgba(71, 85, 105, 0.7) 82%, transparent);
}

.or-duvidas-attach {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 9999px;
  cursor: pointer;
  color: #db2777;
  background: rgba(252, 231, 243, 0.7);
  border: 1px solid rgba(244, 114, 182, 0.18);
  transition: transform 0.3s var(--duvidas-ease), background 0.25s ease, color 0.25s ease;
}

.or-duvidas-attach:hover {
  transform: translateY(-1px);
  background: rgba(251, 207, 232, 0.95);
  color: #be185d;
}

.dark .or-duvidas-attach {
  color: #f9a8d4;
  background: rgba(236, 72, 153, 0.12);
  border-color: rgba(244, 114, 182, 0.18);
}

.dark .or-duvidas-attach:hover {
  background: rgba(236, 72, 153, 0.22);
}

.or-duvidas-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 0.9rem;
  padding: 0.55rem 2.1rem 0.55rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  background-color: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.95);
  cursor: pointer;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.or-duvidas-select:focus {
  border-color: rgba(244, 114, 182, 0.45);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.12);
}

.dark .or-duvidas-select {
  color: #cbd5e1;
  background-color: rgba(30, 41, 59, 0.55);
  border-color: rgba(71, 85, 105, 0.55);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
}

.or-duvidas-publish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.5rem;
  padding: 0.6rem 1.45rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  background: linear-gradient(120deg, #db2777, #e11d48 55%, #f43f5e);
  box-shadow: 0 10px 22px -10px rgba(225, 29, 72, 0.55);
  transition: transform 0.3s var(--duvidas-ease), box-shadow 0.3s var(--duvidas-ease), opacity 0.2s ease, filter 0.2s ease;
}

.or-duvidas-publish:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -12px rgba(225, 29, 72, 0.6);
  filter: brightness(1.03);
}

.or-duvidas-publish:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.or-duvidas-feed {
  background: rgba(255, 255, 255, 0.62);
}

.dark .or-duvidas-feed {
  background: rgba(15, 23, 42, 0.52);
}

.or-duvidas-tabs__track {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem;
  border-radius: 9999px;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.dark .or-duvidas-tabs__track {
  background: rgba(30, 41, 59, 0.55);
  border-color: rgba(255, 255, 255, 0.08);
}

.or-duvidas-tab {
  position: relative;
  padding: 0.55rem 1.05rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #94a3b8;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.or-duvidas-tab:hover {
  color: #475569;
}

.dark .or-duvidas-tab:hover {
  color: #e2e8f0;
}

.or-duvidas-tab.is-active {
  color: #be185d;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 14px -8px rgba(190, 24, 93, 0.35);
}

.dark .or-duvidas-tab.is-active {
  color: #f9a8d4;
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.55);
}

.or-duvidas-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 3px solid rgba(244, 114, 182, 0.25);
  border-top-color: #ec4899;
  animation: or-duvidas-spin 0.8s linear infinite;
}

@keyframes or-duvidas-spin {
  to { transform: rotate(360deg); }
}

.or-duvidas-post {
  position: relative;
  padding: 1.05rem 1.1rem;
  transition: border-color 0.25s ease, box-shadow 0.3s var(--duvidas-ease);
}

@media (min-width: 640px) {
  .or-duvidas-post {
    padding: 1.25rem 1.35rem;
  }
}

.or-duvidas-post:hover {
  border-color: rgba(244, 114, 182, 0.22);
  box-shadow: var(--or-surface-shadow-sm), 0 0 0 1px rgba(244, 114, 182, 0.06);
}

.dark .or-duvidas-post:hover {
  border-color: rgba(244, 114, 182, 0.2);
}

.or-duvidas-post__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #334155;
  background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.dark .or-duvidas-post__avatar {
  color: #cbd5e1;
  background: linear-gradient(145deg, #334155, #1e293b);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.9);
}

.or-duvidas-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #be185d;
  background: rgba(252, 231, 243, 0.85);
  border: 1px solid rgba(244, 114, 182, 0.2);
}

.dark .or-duvidas-badge {
  color: #f9a8d4;
  background: rgba(236, 72, 153, 0.14);
  border-color: rgba(244, 114, 182, 0.22);
}

.or-wa-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 1rem;
}

.or-wa-link:hover {
  box-shadow: var(--or-surface-shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-color: rgba(37, 211, 102, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .or-duvidas-ambient__orb,
  .or-duvidas-online__dot,
  .or-duvidas-wa-link,
  .or-duvidas-attach,
  .or-duvidas-publish {
    animation: none !important;
    transition: none !important;
  }
}

