:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --primary-dark: #0B1220;
  --accent: #2563EB;
  --text-main: #475569;
  --border: #E2E8F0;
  --text-muted: #64748B;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F172A;
  --surface: #111827;
  --primary-dark: #F8FAFC;
  --accent: #60A5FA;
  --text-main: #D6E0F0;
  --text-muted: #94A3B8;
  --border: #334155;
}

* {
  box-sizing: border-box;
}

body.app-body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-main);
  overflow-x: hidden;
}

html[data-theme="dark"] body.app-body {
  background: var(--bg);
  color: var(--text-main);
}

.navbar {
  height: 60px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  top: 0;
  z-index: 20;
}

html[data-theme="dark"] .navbar {
  background: rgba(15, 23, 42, 0.92);
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary-dark);
}

.brand-logo {
  width: auto;
  height: 41px;
  max-width: 192px;
  object-fit: contain;
  display: block;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--primary-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.brand-text {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 18px;
  letter-spacing: 0.01em;
}

.navbar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(840px, calc(100vw - 420px));
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  gap: 10px;
}

.search-form {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
}

.search-input {
  width: 100%;
  max-width: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #F1F5F9;
  font-size: 14px;
  outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

html[data-theme="dark"] .search-input {
  background: #0F172A;
  color: var(--text-main);
  border-color: var(--border);
}

.search-input::placeholder {
  color: #94A3B8;
}

.search-input:focus {
  background: #FFFFFF;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
}

html[data-theme="dark"] .search-input:focus {
  background: #111827;
}

.navbar-calendar-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: #EEF4FF;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, transform 0.08s ease;
}

.navbar-calendar-button:hover {
  background: #E0E7FF;
  border-color: rgba(37, 99, 235, 0.28);
  color: #1D4ED8;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
  transform: translateY(-0.5px);
}

html[data-theme="dark"] .navbar-calendar-button {
  background: rgba(96, 165, 250, 0.14);
  color: #BFDBFE;
  border-color: rgba(96, 165, 250, 0.22);
}

.navbar-calendar-icon {
  font-size: 15px;
  line-height: 1;
}

.navbar-calendar-label {
  display: inline-block;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.navbar-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #F8FAFC;
  color: var(--primary-dark);
  text-decoration: none;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, transform 0.08s ease;
}

.navbar-home-button:hover {
  background: #E5EDFF;
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
  transform: translateY(-0.5px);
}

html[data-theme="dark"] .navbar-home-button,
html[data-theme="dark"] .user-menu-button {
  background: #0F172A;
  color: var(--text-main);
  border-color: var(--border);
}

.navbar-home-icon {
  font-size: 16px;
  line-height: 1;
}

.user-menu {
  position: relative;
}

.user-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  background: #F8FAFC;
  cursor: pointer;
  font-size: 14px;
  color: var(--primary-dark);
}

.user-menu-button:hover {
  background: #E5EDFF;
  border-color: var(--accent);
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
}

.user-avatar-image {
  display: block;
  object-fit: cover;
  background: #E2E8F0;
}

.user-name {
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-caret {
  font-size: 10px;
  color: #94A3B8;
}

.user-dropdown {
  position: absolute;
  right: 0;
  margin-top: 8px;
  min-width: 180px;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  padding: 6px 0;
  display: none;
  z-index: 40;
}

html[data-theme="dark"] .user-dropdown {
  background: #111827;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
}

.user-dropdown.open {
  display: block;
}

.user-dropdown-item {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-main);
  text-decoration: none;
}

html[data-theme="dark"] .user-dropdown-item {
  color: var(--text-main);
}

.user-dropdown-form {
  margin: 0;
}

.user-dropdown-button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.user-dropdown-item:hover {
  background: #F8FAFC;
}

html[data-theme="dark"] .user-dropdown-item:hover {
  background: rgba(96, 165, 250, 0.12);
}

.user-dropdown-item-danger {
  color: #DC2626;
}

.btn-primary,
.btn-secondary {
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--primary-dark);
  border-color: var(--border);
}

html[data-theme="dark"] .btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #0F172A;
}

html[data-theme="dark"] .btn-primary:hover {
  background-color: #93C5FD;
  border-color: #93C5FD;
  color: #0F172A;
}

html[data-theme="dark"] .btn-secondary {
  color: var(--text-main);
  border-color: var(--border);
}

.btn-text {
  border: none;
  background: transparent;
  padding: 4px 0;
  font-size: 13px;
  color: #64748B;
  cursor: pointer;
}

.btn-primary,
.btn-secondary {
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, transform 0.08s ease;
}

.btn-primary:hover {
  background: #1D4ED8;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
  transform: translateY(-0.5px);
}

.btn-secondary:hover {
  background: #F1F5F9;
  border-color: #CBD5F5;
}

.layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1.6fr) 320px;
  gap: 26px;
  padding: 28px;
  max-width: 1520px;
  margin: 0 auto;
}

.layout.layout-no-right-panel {
  grid-template-columns: 240px minmax(0, 1fr);
  max-width: 1600px;
}

.layout.layout-no-sidebar {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1680px;
}

.layout.layout-no-sidebar.layout-no-right-panel {
  grid-template-columns: minmax(0, 1fr);
}

.layout.layout-no-sidebar .content {
  min-height: calc(100vh - 108px);
}

.layout.layout-no-sidebar .sidebar,
.layout.layout-no-sidebar .right-panel {
  display: none;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-nav {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
}

.sidebar-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #94A3B8;
}

.sidebar-link {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  color: var(--text-main);
  text-decoration: none;
  transition: background-color 0.12s ease, color 0.12s ease, transform 0.08s ease;
}

.sidebar-link-active {
  background: #EEF2FF;
  color: var(--accent);
}

.sidebar-link:hover {
  background: #F1F5F9;
  transform: translateX(1px);
}

.sidebar-section {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
}

.sidebar-subtitle {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #94A3B8;
}

.chip {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #F8FAFC;
  padding: 6px 12px;
  min-height: 32px;
  font-size: 12px;
  cursor: pointer;
  margin-right: 6px;
  margin-bottom: 6px;
  text-decoration: none;
  color: var(--text-main);
  display: inline-block;
}

.chip-active {
  background: #EEF2FF;
  border-color: var(--accent);
  color: var(--accent);
}

.chip:hover {
  background: #E5EDFF;
}

.filter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.filter-field span {
  color: #64748B;
}

.filter-field input {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 14px;
}

.filter-field select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 14px;
  background: #FFFFFF;
  color: var(--primary-dark);
}

.filter-field select option {
  color: var(--primary-dark);
  background: #FFFFFF;
}

.filter-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.filter-date {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-date-toggle {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #F8FAFC;
  padding: 10px 12px;
  font-size: 13px;
  color: #0F172A;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.filter-date-main {
  font-weight: 600;
}

.filter-date-summary {
  font-size: 12px;
  color: #64748B;
}

.filter-date-popover {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #FFFFFF;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
  z-index: 40;
  min-width: 400px;
  max-width: 440px;
}

.filter-date.open .filter-date-popover {
  display: block;
}

.date-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.date-popover-title {
  font-size: 12px;
  font-weight: 600;
  color: #0F172A;
}

.date-popover-nav {
  display: flex;
  gap: 4px;
}

.date-nav-btn {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #F8FAFC;
  font-size: 14px;
  color: #0F172A;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.date-range-calendars {
  display: flex;
  gap: 12px;
}

.date-calendar {
  flex: 1;
}

.date-calendar-header {
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 4px;
  color: #0F172A;
}

.date-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  font-size: 10px;
  color: #94A3B8;
  margin-bottom: 2px;
}

.date-calendar-weekdays span {
  text-align: center;
}

.date-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.date-cell {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 11px;
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.date-cell-empty {
  cursor: default;
}

.date-cell.is-today {
  border: 1px solid var(--accent);
}

.date-cell.is-start,
.date-cell.is-end {
  background: var(--accent);
  color: #FFFFFF;
}

.date-cell.is-in-range {
  background: #DBEAFE;
}

.date-popover-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.date-footer-btn {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #F8FAFC;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  color: #0F172A;
}

.filter-submit {
  margin-top: 4px;
}

.filter-clear {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: #64748B;
  text-decoration: none;
}

.filter-clear:hover {
  color: var(--accent);
  text-decoration: underline;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.layout.layout-no-right-panel .content {
  min-height: calc(100vh - 108px);
}

.feed-header {
  margin-bottom: 16px;
}

.feed-title {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.15;
  color: var(--primary-dark);
}

.feed-subtitle {
  margin: 0;
  font-size: 14px;
  color: #94A3B8;
}

.feed-count {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 400;
  color: #9CA3AF;
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 18px 20px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.03);
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.empty-card {
  text-align: center;
  color: #94A3B8;
}

.edital-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.edital-unified-card {
  position: relative;
}

.edital-unified-card-public {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.edital-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  border-color: rgba(129, 140, 248, 0.65);
}

.edital-unified-card-public:hover {
  border-color: rgba(37, 99, 235, 0.24);
}

.edital-unified-card-head {
  margin-bottom: 0;
}

.edital-unified-card-copy {
  min-width: 0;
}

.edital-unified-title {
  color: var(--primary-dark);
  line-height: 1.35;
}

.edital-unified-meta-line {
  word-break: break-word;
}

.edital-unified-badge-row {
  min-height: 28px;
}

.edital-unified-footer {
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.edital-unified-footer-split {
  justify-content: space-between;
}

.edital-card-secondary-link {
  display: inline-flex;
  align-items: center;
  color: #64748B;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.edital-card-secondary-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.edital-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.edital-header-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.edital-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  color: var(--primary-dark);
}

.edital-orgao {
  font-size: 13px;
  color: #94A3B8;
}

.edital-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: #EFF6FF;
  color: #1D4ED8;
}

.inscricao-periodo {
  color: #0F766E;
}

.inscricao-status {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

.inscricao-status-today {
  background: #FEF2F2;
  color: #B91C1C;
}

.inscricao-status-soon {
  background: #FFFBEB;
  color: #92400E;
}

.inscricao-status-open {
  background: #ECFEFF;
  color: #155E75;
}

.edital-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  gap: 12px;
}

.favorite-button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 999px;
  color: #CBD5F5;
}

.favorite-button:hover {
  background: #EEF2FF;
  color: var(--accent);
}

.favorite-button.favorite-button-active {
  color: var(--accent);
}

.edital-unified-card .edital-card-favorite {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  color: #CBD5F5;
  font-size: 20px;
  line-height: 1;
  z-index: 2;
}

.edital-unified-card .edital-card-favorite:hover {
  background: #F8FAFC;
  color: var(--accent);
  transform: translateY(-0.5px);
}

.edital-unified-card .edital-card-favorite.favorite-button-active {
  color: #F59E0B;
}

.link-primary {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.link-primary:hover {
  text-decoration: underline;
}

.edital-data {
  color: #94A3B8;
}

/* Painel (Meu painel) */

.painel-main {
  max-width: 1560px;
  margin: 32px auto 40px;
  padding: 0 20px 32px;
}

.painel-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.painel-dashboard {
  gap: 24px;
}

.painel-radar-inteligente,
.painel-decision,
.painel-recommendations,
.painel-favorites,
.painel-subscription {
  padding: 24px;
}

.painel-radar-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.painel-radar-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.painel-radar-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.painel-radar-summary-card,
.painel-decision-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.16);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.painel-radar-summary-card strong,
.painel-decision-card strong {
  font-size: 24px;
  line-height: 1;
  color: var(--primary-dark);
}

.painel-summary-note {
  font-size: 12px;
  line-height: 1.45;
  color: #64748B;
}

.painel-radar-focus {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
  border: 1px solid rgba(59, 130, 246, 0.14);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.painel-radar-focus-label {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  background: #DBEAFE;
  color: #1D4ED8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.painel-radar-focus-title {
  font-size: 22px;
  line-height: 1.15;
  color: var(--primary-dark);
}

.painel-radar-focus-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
}

.painel-radar-insights {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px solid rgba(148, 163, 184, 0.16);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.painel-section-header-tight {
  margin-bottom: 0;
}

.painel-insights-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-main);
}

.painel-decision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.painel-decision-card-positive {
  border-color: rgba(22, 163, 74, 0.16);
}

.painel-decision-card-neutral {
  border-color: rgba(245, 158, 11, 0.16);
}

.painel-decision-card-negative {
  border-color: rgba(220, 38, 38, 0.16);
}

.painel-recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.painel-recommendation-card {
  position: relative;
  min-height: 100%;
}

.painel-recommendation-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.painel-recommendation-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
}

.painel-empty-state {
  padding: 20px;
  border-radius: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.24);
  background: rgba(248, 250, 252, 0.8);
}

.painel-empty-state-text {
  margin: 0 0 12px;
  color: #64748B;
  font-size: 14px;
  line-height: 1.55;
}

.painel-subscription {
  padding: 18px 24px;
}

.painel-subscription-compact {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.painel-subscription-title {
  margin-bottom: 4px;
}

.painel-subscription-compact .painel-section-subtitle {
  margin-top: 0;
}

.painel-subscription-compact .btn {
  margin-left: auto;
}

.painel-favorite-card {
  padding-top: 24px;
}

.painel-recommendation-card .radar-result-footer,
.painel-favorite-card .radar-result-footer {
  margin-top: 14px;
}

.painel-favorite-card .radar-result-head h4,
.painel-favorite-card .radar-result-head .h6,
.painel-recommendation-card .radar-result-head .h6 {
  margin-bottom: 0;
}

.painel-profile-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.painel-profile {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  width: 100%;
  max-width: none;
  align-self: stretch;
  min-height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #FFFFFF 100%);
}

.painel-profile-header {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.painel-avatar-img {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 0 2px #E5E7EB;
}

.painel-avatar-fallback {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 600;
}

.painel-profile-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.painel-profile-name {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--primary-dark);
}

.painel-profile-meta {
  margin: 0;
  font-size: 13px;
  color: #6B7280;
}

.painel-profile-description {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: #4B5563;
  max-width: 100%;
  word-break: break-word;
  line-clamp: 4;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.painel-profile-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.painel-edit-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  padding-inline: 10px;
}

.painel-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.painel-field span {
  color: #64748B;
}


.painel-top-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.15fr);
  gap: 22px;
  align-items: flex-start;
}
.painel-field input,
.painel-field textarea {
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 6px 8px;
  font-size: 13px;
}

.painel-radar,
.painel-subscription {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 100%;
  align-self: stretch;
}

.painel-subscription-summary {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, #FFFFFF 100%);
  border: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.painel-subscription-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748B;
}

.painel-subscription-status {
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  color: var(--primary-dark);
}

.painel-subscription-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
}

.painel-subscription-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.painel-subscription-stat {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.painel-subscription-stat strong {
  font-size: 20px;
  line-height: 1;
  color: var(--primary-dark);
}

.painel-subscription-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.painel-subscription-actions .btn {
  flex: 1 1 180px;
}

.painel-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.painel-section-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94A3B8;
}

.painel-section-title {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  color: var(--primary-dark);
}

.painel-section-subtitle {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #64748B;
}

.painel-plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}

.painel-plan-badge-free {
  background: #FEF3C7;
  color: #92400E;
  border-color: #FDE68A;
}

.painel-plan-badge-premium,
.painel-plan-badge-admin {
  background: #E0E7FF;
  color: #3730A3;
  border-color: #C7D2FE;
}

.painel-summary-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
}

.radar-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.radar-block {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
}

.radar-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.radar-block-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-dark);
}

.radar-block-note {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #64748B;
}

.radar-block-note-inline {
  margin-top: 8px;
}

.radar-block-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #EEF2FF;
  color: #4338CA;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.radar-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.radar-chip-list-wrap {
  margin-bottom: 10px;
}

.radar-chip {
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #334155;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease, transform 0.08s ease;
}

.radar-chip:hover {
  border-color: #93C5FD;
  background: #EFF6FF;
}

.radar-chip-active {
  background: #DBEAFE;
  border-color: var(--accent);
  color: #1D4ED8;
}

.radar-chip-locked,
.radar-chip:disabled {
  opacity: 0.78;
  cursor: not-allowed;
}

.radar-hidden-inputs {
  display: none;
}

.radar-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.radar-page-header {
  padding: 10px 2px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.radar-page-header-copy {
  min-width: 0;
}

.radar-page-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748B;
}

.radar-page-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  color: var(--primary-dark);
}

.radar-page-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: #64748B;
}

.radar-page-header-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.radar-page-metrics {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.radar-page-metric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #F8FAFC;
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 12px;
  color: #475569;
}

.radar-page-metric strong {
  color: var(--primary-dark);
}

.radar-page-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.radar-page-action-button,
.radar-page-calendar-button,
.radar-result-details-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, transform 0.08s ease;
}

.radar-page-action-button {
  padding: 10px 16px;
  min-height: 40px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  color: var(--primary-dark);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.radar-page-action-button:hover {
  background: #EEF4FF;
  border-color: rgba(37, 99, 235, 0.25);
  color: var(--accent);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
  transform: translateY(-0.5px);
}

.radar-page-calendar-button {
  padding: 9px 14px;
  min-height: 38px;
  background: #F8FAFC;
  color: var(--primary-dark);
}

.radar-page-calendar-button:hover {
  background: #EEF4FF;
  border-color: rgba(37, 99, 235, 0.28);
  color: var(--accent);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
  transform: translateY(-0.5px);
}

.radar-result-details-button {
  padding: 9px 14px;
  min-height: 38px;
  background: #EEF2FF;
  border-color: rgba(99, 102, 241, 0.18);
  color: #1D4ED8;
}

.radar-result-details-button:hover {
  background: #DBEAFE;
  border-color: rgba(59, 130, 246, 0.28);
  color: #1D4ED8;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
  transform: translateY(-0.5px);
}

.radar-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
  align-items: start;
}

.radar-editor-card,
.radar-results-card {
  background: var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
  padding: 18px;
}

.radar-editor-card {
  align-self: start;
}

.radar-results-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: start;
}

.radar-editor {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.radar-editor-section {
  padding: 14px;
  border-radius: 22px;
  border: 1px solid #E2E8F0;
  background: linear-gradient(180deg, #FCFDFF 0%, #F8FAFC 100%);
}

.radar-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.radar-section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
}

.radar-section-note {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #64748B;
}

.radar-section-note-inline {
  margin-top: 10px;
}

.radar-section-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #EEF2FF;
  color: #4338CA;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.radar-custom-create-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.radar-chip-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
}

.radar-chip-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radar-chip-removable {
  padding-right: 4px;
}

.radar-chip-remove {
  border: 0;
  background: transparent;
  color: #94A3B8;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  cursor: pointer;
  flex: 0 0 auto;
  line-height: 1;
}

.radar-chip-remove:hover {
  background: #F1F5F9;
  color: #475569;
}

.radar-term-empty {
  font-size: 12px;
  color: #94A3B8;
}

.radar-results-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.radar-results-title {
  margin: 0;
  font-size: 18px;
  color: var(--primary-dark);
}

.radar-results-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: #64748B;
}

.radar-results-list {
  display: grid;
  gap: 10px;
}

.radar-result-card {
  position: relative;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: #FFFFFF;
}

.radar-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding-right: 56px;
}

.radar-result-summary {
  margin: 0 0 10px;
  font-size: 13px;
  color: #64748B;
}

.radar-favorite-button {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #CBD5F5;
  cursor: pointer;
  z-index: 2;
  box-shadow: none;
}

.radar-favorite-button:hover {
  background: #F8FAFC;
  color: var(--accent);
  transform: translateY(-0.5px);
}

.radar-favorite-button.is-favorite {
  color: #F59E0B;
}

.radar-favorite-button.is-favorite:hover {
  background: #FFF7ED;
  color: #D97706;
}

.radar-favorite-icon {
  font-size: 20px;
  line-height: 1;
}

.radar-result-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.radar-result-reasons {
  margin-top: 6px;
}

.radar-empty-state {
  padding: 28px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.24);
  background: #FFFFFF;
  text-align: center;
}

.radar-custom-toggle {
  margin-top: 0;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: #EEF4FF;
  color: var(--accent);
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
}

.radar-custom-toggle-active {
  background: #DBEAFE;
}

.radar-custom-panel {
  display: none;
}

.radar-custom-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.radar-custom-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #CBD5E1;
  font-size: 14px;
}

.radar-save-row {
  display: flex;
  justify-content: flex-end;
}

.radar-save-button {
  min-width: 180px;
}

.painel-section-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.radar-open-button {
  white-space: nowrap;
}

.radar-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.radar-summary-card {
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.radar-summary-label,
.radar-custom-summary-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
}

.radar-summary-card strong {
  font-size: 24px;
  line-height: 1;
  color: var(--primary-dark);
}

.radar-summary-note,
.radar-custom-summary-empty-text {
  font-size: 12px;
  color: #64748B;
}

.radar-custom-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid #DBEAFE;
  background: #EFF6FF;
}

.radar-custom-summary-empty {
  justify-content: space-between;
}

.radar-chip-custom {
  min-height: 34px;
}

.radar-custom-create {
  padding-inline: 0;
}

.radar-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.radar-modal[hidden] {
  display: none;
}

.radar-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.radar-modal-dialog {
  position: relative;
  width: min(100%, 860px);
  max-height: min(88vh, 900px);
  overflow: auto;
  z-index: 1;
  padding: 24px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

.radar-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.radar-modal-close {
  flex: 0 0 auto;
}

.radar-custom-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.radar-block-head-tight {
  margin-bottom: 8px;
}

.radar-custom-created-group {
  padding-top: 4px;
}

.radar-custom-empty {
  font-size: 12px;
  color: #94A3B8;
}

.radar-lock-scroll {
  overflow: hidden;
}

.radar-chip-locked {
  opacity: 0.65;
  cursor: not-allowed;
}
.painel-edit-popover {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  padding: 14px 16px;
  min-width: 260px;
  z-index: 20;
  display: none;
}

.painel-profile.open .painel-edit-popover {
  display: block;
}

.painel-profile-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.painel-edit-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.painel-favorites {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.painel-favorites-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: flex-start;
}

.painel-favorites-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.painel-favorite-card {
  width: 100%;
}

.painel-column-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-dark);
}

.right-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel-card {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 16px 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.03);
}

.panel-title {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--primary-dark);
}

.panel-empty {
  margin: 0;
  font-size: 13px;
  color: #94A3B8;
}

.plans-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.plans-page::before {
  content: '';
  position: absolute;
  inset: -40px -28px auto auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16) 0%, rgba(37, 99, 235, 0) 70%);
  pointer-events: none;
}

.plans-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: stretch;
}

.plans-hero-copy,
.plans-hero-card,
.plans-section,
.plans-final-cta {
  animation: plansFadeUp 0.38s ease both;
}

.plans-hero-copy { animation-delay: 0s; }
.plans-hero-card { animation-delay: 0.06s; }
.plans-trust-strip { animation-delay: 0.09s; }
.plans-section:nth-of-type(1) { animation-delay: 0.12s; }
.plans-section:nth-of-type(2) { animation-delay: 0.16s; }
.plans-section:nth-of-type(3) { animation-delay: 0.20s; }
.plans-section:nth-of-type(4) { animation-delay: 0.24s; }
.plans-final-cta { animation-delay: 0.28s; }

.plans-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 6px 0;
}

.plans-title {
  margin: 8px 0 12px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--primary-dark);
  max-width: 12ch;
}

.plans-subtitle {
  margin: 0;
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
}

.plans-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.plans-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin: 0 0 12px;
  padding: 8px 12px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.06);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plans-alert {
  margin: 0;
}

.plans-action-row,
.plans-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.plans-checkout-form {
  margin: 0;
}

.plans-primary-cta,
.plans-secondary-cta {
  padding-inline: 18px;
  min-width: 172px;
}

.plans-primary-cta {
  min-width: 208px;
}

.plans-badge-soft {
  position: relative;
}

.plans-badge-soft::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px solid rgba(37, 99, 235, 0.22);
  pointer-events: none;
}

.plans-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
}

.plans-points li {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
}

html[data-theme="dark"] .plans-points li {
  background: rgba(17, 24, 39, 0.7);
}

.plans-hero-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
}

.plans-hero-card::after {
  content: '';
  position: absolute;
  inset: auto -44px -44px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0) 72%);
}

html[data-theme="dark"] .plans-hero-card {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.98) 0%, rgba(15, 23, 42, 0.96) 100%);
}

.plans-price-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.plans-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plans-badge-soft {
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent);
}

html[data-theme="dark"] .plans-badge-soft {
  background: rgba(96, 165, 250, 0.16);
  color: #BFDBFE;
}

.plans-price-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plans-price-label {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.plans-price-label-launch {
  color: var(--accent);
}

.plans-price-value {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  color: var(--primary-dark);
  letter-spacing: -0.04em;
}

.plans-price-note {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.plans-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.plans-checklist li,
.plans-faq-card,
.plans-feature-card {
  line-height: 1.6;
}

.plans-checklist li {
  padding-left: 26px;
  position: relative;
}

.plans-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.plans-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.plans-section-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plans-section-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  color: var(--primary-dark);
}

.plans-section-subtitle {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 72ch;
}

.plans-how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plans-how-it-works-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plans-how-it-works-card h3 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 18px;
}

.plans-how-it-works-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.plans-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  font-weight: 700;
}

.plans-feature-grid,
.plans-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.plans-feature-card h3,
.plans-faq-card h3 {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 18px;
}

.plans-feature-card p,
.plans-faq-card p {
  margin: 0;
  color: var(--text-muted);
}

.plans-comparison {
  display: grid;
  gap: 12px;
}

.plans-comparison-head,
.plans-comparison-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr));
  gap: 12px;
  align-items: center;
}

.plans-comparison-head {
  font-size: 12px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.plans-comparison-row {
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 14px;
}

.plans-comparison-row strong {
  color: var(--primary-dark);
}

.plans-comparison-head span:last-child,
.plans-comparison-row .plans-col-premium {
  background: rgba(37, 99, 235, 0.14);
  color: var(--primary-dark);
  padding: 10px 12px;
  border-radius: 12px;
}

.plans-comparison-head span:last-child {
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.plans-comparison-row .plans-col-premium {
  font-weight: 600;
}

.plans-comparison-row .plans-col-premium {
  position: relative;
}

.plans-comparison-row .plans-col-premium::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.10);
  pointer-events: none;
}

.plans-comparison-row .plans-col-premium::before {
  content: '✓';
  margin-right: 8px;
  color: var(--accent);
  font-weight: 700;
}

.plans-final-cta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(14, 165, 233, 0.06) 100%);
  border: 1px solid rgba(37, 99, 235, 0.18);
}

.plans-final-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  min-width: 200px;
  justify-content: center;
  align-self: center;
}

@keyframes plansFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .plans-hero,
  .plans-final-cta {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .plans-final-cta {
    display: flex;
  }

  .plans-final-actions {
    min-width: 0;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 820px) {
  .plans-feature-grid,
  .plans-faq-grid {
    grid-template-columns: 1fr;
  }

  .plans-how-it-works-grid {
    grid-template-columns: 1fr;
  }

  .auth-wrapper-nfse .auth-choice-grid {
    grid-template-columns: 1fr;
  }

  .plans-comparison-head,
  .plans-comparison-row {
    grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.75fr));
  }
}

@media (max-width: 576px) {
  .plans-page {
    gap: 18px;
  }

  .plans-title {
    max-width: none;
  }

  .plans-section-title {
    font-size: 24px;
  }

  .plans-comparison-head,
  .plans-comparison-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .plans-comparison-head span:not(:first-child),
  .plans-comparison-row span {
    padding-left: 14px;
  }

  .plans-primary-cta,
  .plans-secondary-cta {
    width: 100%;
  }

  .plans-primary-cta {
    min-width: 0;
  }

  .plans-points {
    flex-direction: column;
  }

  .plans-points li {
    width: 100%;
  }

  .plans-trust-strip {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .plans-trust-sep {
    display: none;
  }

  .plans-faq-list {
    gap: 8px;
  }

  .plans-final-cta {
    flex-direction: column;
  }

  .plans-final-checklist {
    display: none;
  }
}

.plans-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.plans-price-freq {
  font-size: 17px;
  color: var(--text-muted);
  font-weight: 400;
}

.plans-price-anchor {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.plans-price-note {
  font-size: 14px;
}

.plans-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  animation: plansFadeUp 0.38s 0.09s ease both;
}

.plans-faq-section {
  scroll-margin-top: 96px;
}

.plans-final-copy .feed-kicker {
  margin-bottom: 8px;
}

html[data-theme="dark"] .plans-trust-strip {
  background: rgba(17, 24, 39, 0.5);
}

.plans-trust-strip > span {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 16px;
}

.plans-trust-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  flex-shrink: 0;
  padding: 0 !important;
}

.plans-trust-icon {
  font-size: 14px;
}

.plans-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(37, 99, 235, 0.08);
  font-size: 22px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

html[data-theme="dark"] .plans-feature-icon {
  background: rgba(96, 165, 250, 0.12);
}

.plans-col-premium {
  color: var(--accent);
  font-weight: 600;
}

.plans-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plans-faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.plans-faq-item[open] {
  border-color: rgba(37, 99, 235, 0.28);
}

.plans-faq-item[open] .plans-faq-summary {
  color: var(--accent);
}

.plans-faq-summary {
  list-style: none;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--primary-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
  transition: color 0.12s ease;
}

.plans-faq-summary::-webkit-details-marker {
  display: none;
}

.plans-faq-summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.12s ease;
  line-height: 1;
}

.plans-faq-item[open] .plans-faq-summary::after {
  content: '−';
  color: var(--accent);
}

.plans-faq-answer {
  margin: 0;
  padding: 12px 20px 16px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  border-top: 1px solid var(--border);
}

.plans-final-copy {
  flex: 1;
  min-width: 0;
}

.plans-final-checklist {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.plans-final-checklist li {
  padding-left: 22px;
  position: relative;
}

.plans-final-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: 700;
}

html[data-theme="dark"] .plans-final-checklist li::before {
  color: #34D399;
}

.feed-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}

/* ─────────────────────────────────────────────────────── */

.painel-empty-alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
  color: var(--text-main);
}

.painel-empty-alert-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: #EEF4FF;
  color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.painel-empty-alert-copy {
  min-width: 0;
}

.painel-empty-alert-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
}

.painel-empty-alert-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

html[data-theme="dark"] .painel-empty-alert {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.98) 0%, rgba(15, 23, 42, 0.96) 100%);
  border-color: rgba(96, 165, 250, 0.18);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .painel-empty-alert-icon {
  background: rgba(96, 165, 250, 0.16);
  color: #BFDBFE;
}

html[data-theme="dark"] .painel-empty-alert-title {
  color: var(--text-main);
}

html[data-theme="dark"] .painel-empty-alert-text {
  color: var(--text-muted);
}

.panel-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: #64748B;
}

.panel-alert-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel-alert-item {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
}

.panel-alert-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.panel-alert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: #E2E8F0;
  color: #334155;
}

.panel-alert-badge-accent {
  background: #E0E7FF;
  color: #3730A3;
}

.panel-alert-badge-success {
  background: #DCFCE7;
  color: #166534;
}

.panel-alert-badge-danger {
  background: #FEE2E2;
  color: #B91C1C;
}

.panel-alert-badge-muted {
  background: #E2E8F0;
  color: #64748B;
}

.panel-alert-date {
  font-size: 11px;
  color: #94A3B8;
  white-space: nowrap;
}

.edital-detail-page {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.edital-detail-hero,
.edital-detail-card {
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.edital-detail-hero {
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: start;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 1) 100%);
}

.edital-detail-hero::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 180px;
  height: 180px;
  border-radius: 0 0 180px 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0));
  pointer-events: none;
}

.edital-detail-hero::after {
  content: '';
  position: absolute;
  right: -36px;
  top: -36px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.06);
  pointer-events: none;
}

.edital-detail-hero-copy,
.edital-detail-hero-aside {
  position: relative;
  z-index: 1;
}

.edital-detail-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.edital-detail-hero-summary {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-main);
  max-width: 72ch;
}

.edital-detail-kicker,
.edital-detail-card-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.edital-detail-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.08;
  color: var(--primary-dark);
}

.edital-detail-subtitle {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--text-muted);
}

.edital-detail-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.edital-detail-highlight {
  padding: 18px 18px 16px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 1) 100%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.edital-detail-highlight-label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.edital-detail-highlight-value {
  display: block;
  font-size: 15px;
  line-height: 1.35;
  color: var(--primary-dark);
}

.edital-detail-highlight-note {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}

.edital-detail-badges,
.edital-detail-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.edital-detail-badges {
  margin-top: 16px;
}

.edital-detail-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  flex: 0 0 auto;
  margin-top: 4px;
}

.edital-detail-hero-actions .btn {
  min-width: 156px;
}

.edital-detail-favorite-button,
.edital-detail-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.edital-detail-favorite-button {
  min-width: 164px;
}

.edital-detail-favorite-icon {
  font-size: 16px;
  line-height: 1;
}

.edital-detail-hero-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.edital-detail-verdict {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.98) 0%, rgba(255, 255, 255, 1) 100%);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.08);
}

.edital-detail-verdict-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.edital-detail-verdict-title {
  display: block;
  font-size: 22px;
  line-height: 1.15;
  color: var(--primary-dark);
}

.edital-detail-verdict-note {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.edital-detail-score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.edital-detail-score-item {
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(248, 250, 252, 0.95);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.03);
}

.edital-detail-score-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.edital-detail-score-value {
  display: block;
  font-size: 15px;
  line-height: 1.35;
  color: var(--primary-dark);
}

.edital-detail-score-note {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}

.edital-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.edital-detail-card {
  padding: 22px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.edital-detail-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
}

.edital-detail-card-wide {
  grid-column: 1 / -1;
}

.edital-detail-strategy-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.edital-detail-strategy-summary {
  padding: 18px;
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.edital-detail-strategy-summary-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.edital-detail-strategy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.edital-detail-strategy-text {
  margin-top: 14px;
}

.edital-detail-strategy-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.edital-detail-strategy-pair-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.edital-detail-strategy-dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin: 0;
}

.edital-detail-strategy-dl dt {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94A3B8;
}

.edital-detail-strategy-dl dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-main);
}

.edital-detail-strategy-dual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.edital-detail-strategy-dual-card {
  min-height: 100%;
}

.edital-detail-strategy-dual-card-positive {
  border-color: rgba(22, 163, 74, 0.12);
}

.edital-detail-strategy-dual-card-negative {
  border-color: rgba(220, 38, 38, 0.12);
}

.edital-detail-summary-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.edital-detail-summary-panel {
  padding: 16px;
  border-radius: 18px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.edital-detail-summary-panel-highlight {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.92) 0%, rgba(255, 255, 255, 1) 100%);
  border-color: rgba(37, 99, 235, 0.14);
}

.edital-detail-summary-panel-wide {
  grid-column: 1 / -1;
}

.edital-detail-summary-list {
  margin-top: 0;
}

.edital-detail-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.edital-detail-card-title {
  margin: 0;
  font-size: 18px;
  color: var(--primary-dark);
}

.edital-detail-dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 0;
}

.edital-detail-dl div {
  min-width: 0;
}

.edital-detail-dl dt {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94A3B8;
}

.edital-detail-dl dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-main);
}

.edital-detail-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
}

.edital-detail-text-lead {
  font-size: 15px;
}

.edital-detail-text-prewrap {
  white-space: pre-wrap;
}

.edital-detail-muted {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

.edital-detail-subhead {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
}

.edital-detail-list-block + .edital-detail-list-block {
  margin-top: 16px;
}

.edital-detail-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-main);
}

.edital-detail-two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.edital-detail-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.edital-detail-info-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.edital-detail-info-box {
  padding: 16px;
  border-radius: 18px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.edital-detail-ai-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.edital-detail-ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.edital-detail-ai-panel {
  padding: 16px;
  border-radius: 18px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.edital-detail-ai-panel-emphasis {
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
  border-color: rgba(59, 130, 246, 0.14);
}

.edital-detail-ai-panel-wide {
  grid-column: 1 / -1;
}

.edital-detail-ai-keywords {
  margin-top: 2px;
}

.edital-detail-ai-list {
  margin-top: 2px;
}

.edital-detail-empty-state {
  padding: 16px;
  border-radius: 18px;
  background: rgba(148, 163, 184, 0.08);
}

.edital-detail-paywall {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(239, 246, 255, 0.98) 0%, rgba(255, 255, 255, 1) 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.08);
}

.edital-detail-paywall-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  color: var(--primary-dark);
}

.edital-detail-paywall-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-main);
}

.edital-detail-paywall-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-main);
  font-size: 14px;
}

.edital-detail-paywall-list li::marker {
  color: var(--accent);
}

.edital-detail-grid-public {
  margin-top: 2px;
}

.edital-detail-grid-public > .edital-detail-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 1) 100%);
}

.edital-detail-cargo-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.edital-detail-cargo-item {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.5);
}

.edital-detail-cargo-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.edital-detail-cargo-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
}

.edital-detail-cargo-salary {
  font-weight: 600;
  color: var(--accent);
}

.radar-page-guest-cta,
.radar-guest-banner {
  background: var(--surface);
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.radar-page-guest-cta {
  padding: 18px;
  max-width: 380px;
}

.radar-page-guest-cta .radar-page-actions {
  flex-wrap: wrap;
}

.radar-page-guest-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.radar-page-guest-title {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.25;
  color: var(--primary-dark);
}

.radar-guest-banner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
}

.radar-guest-title {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--primary-dark);
}

.radar-guest-text,
.radar-save-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

html[data-theme="dark"] .edital-detail-hero,
html[data-theme="dark"] .edital-detail-card,
html[data-theme="dark"] .edital-detail-highlight,
html[data-theme="dark"] .edital-detail-verdict,
html[data-theme="dark"] .edital-detail-score-item,
html[data-theme="dark"] .edital-detail-strategy-summary,
html[data-theme="dark"] .edital-detail-strategy-pair-card,
html[data-theme="dark"] .radar-page-guest-cta,
html[data-theme="dark"] .radar-guest-banner {
  background: rgba(15, 23, 42, 0.94);
  border-color: rgba(96, 165, 250, 0.14);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] .edital-detail-hero {
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(17, 24, 39, 1) 100%);
}

html[data-theme="dark"] .edital-detail-verdict {
  background: rgba(15, 23, 42, 0.84);
}

html[data-theme="dark"] .edital-detail-score-item {
  background: rgba(15, 23, 42, 0.72);
}

html[data-theme="dark"] .edital-detail-cargo-item {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(96, 165, 250, 0.12);
}

html[data-theme="dark"] .edital-detail-ai-panel,
html[data-theme="dark"] .edital-detail-strategy-dual-card,
html[data-theme="dark"] .edital-detail-summary-panel,
html[data-theme="dark"] .edital-detail-ai-panel-emphasis {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(96, 165, 250, 0.12);
}

html[data-theme="dark"] .edital-detail-ai-panel-emphasis {
  background: rgba(15, 23, 42, 0.82);
}

html[data-theme="dark"] .edital-detail-summary-panel-highlight {
  background: rgba(15, 23, 42, 0.84);
}

@media (max-width: 992px) {
  .edital-detail-hero {
    grid-template-columns: 1fr;
  }

  .edital-detail-hero::before,
  .edital-detail-hero::after {
    display: none;
  }

  .edital-detail-grid,
  .edital-detail-two-cols,
  .edital-detail-info-grid,
  .edital-detail-ai-grid,
  .edital-detail-cargo-list,
  .edital-detail-dl,
  .edital-detail-highlights,
  .edital-detail-score-grid,
  .edital-detail-strategy-pair,
  .edital-detail-strategy-dual,
  .edital-detail-summary-layout {
    grid-template-columns: 1fr;
  }

  .edital-detail-info-grid-compact {
    grid-template-columns: 1fr;
  }

  .edital-detail-strategy-summary-head {
    flex-direction: column;
  }

  .edital-detail-strategy-meta {
    justify-content: flex-start;
  }

  .edital-detail-hero-actions {
    justify-content: flex-start;
  }

  .radar-guest-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1200px) {
  .edital-detail-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.panel-alert-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
}

.panel-alert-text {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #64748B;
}

.panel-alert-meta {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  color: #94A3B8;
}

.panel-alert-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.panel-alert-link:hover {
  text-decoration: underline;
}

.panel-favorites-list {
  list-style: none;
  padding-left: 0;
}

.panel-favorites-list li + li {
  margin-top: 6px;
}

.panel-fav-meta {
  display: block;
  font-size: 12px;
  color: #9CA3AF;
}

.calendar-page {
  width: 100%;
}

.calendar-shell {
  background: var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 22px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.calendar-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
  position: relative;
  top: auto;
  z-index: 5;
  backdrop-filter: blur(10px);
}

.calendar-toolbar-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.calendar-toolbar-left,
.calendar-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calendar-toolbar-center {
  text-align: center;
}

.calendar-page-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

.calendar-page-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748B;
}

.calendar-today-btn,
.calendar-secondary-link,
.calendar-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, transform 0.08s ease;
}

.calendar-today-btn,
.calendar-secondary-link {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: #EEF4FF;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.calendar-today-btn:hover,
.calendar-secondary-link:hover {
  background: #E0E7FF;
  color: #1D4ED8;
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.10);
}

.calendar-nav-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: #F8FAFC;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.calendar-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--primary-dark);
  font-size: 20px;
  line-height: 1;
  border: 1px solid rgba(148, 163, 184, 0.20);
}

.calendar-icon-btn:hover {
  background: #EEF4FF;
  border-color: rgba(37, 99, 235, 0.22);
  color: var(--accent);
}

.calendar-toolbar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 8px 2px 10px;
  margin-top: 2px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.72), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.10);
  border-radius: 16px;
}

.calendar-toolbar-weekdays span {
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #64748B;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: #FFFFFF;
  border-top: 1px solid rgba(148, 163, 184, 0.10);
}

.calendar-day {
  min-height: 146px;
  padding: 8px 8px 10px;
  border-right: 1px solid rgba(148, 163, 184, 0.10);
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background-color 0.12s ease, box-shadow 0.12s ease;
}

.calendar-day:hover {
  background: #FCFDFF;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.06);
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day.is-outside {
  background: #FBFCFE;
  color: #94A3B8;
}

.calendar-day.is-today {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.06), rgba(255, 255, 255, 1));
}

.calendar-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.calendar-day-number {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
}

.calendar-day.is-outside .calendar-day-number {
  color: #94A3B8;
}

.calendar-day.is-today .calendar-day-number {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.calendar-day-count {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #E0E7FF;
  color: #3730A3;
  font-size: 10px;
  font-weight: 700;
}

.calendar-day-events {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
}

.calendar-event {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 5px 7px;
  border-radius: 9px;
  text-decoration: none;
  font-size: 11px;
  line-height: 1.25;
  border: 1px solid transparent;
}

.calendar-event:hover {
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.calendar-event-blue {
  background: #E8F0FE;
  color: #174EA6;
  border-color: #D2E3FC;
}

.calendar-event-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  flex: 0 0 auto;
}

.calendar-event-title {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.calendar-more {
  font-size: 10px;
  color: #64748B;
  font-weight: 600;
  padding-left: 4px;
}

.calendar-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 60;
}

.calendar-modal.is-open {
  display: block;
}

.calendar-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(4px);
}

.calendar-modal-panel {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  width: min(540px, calc(100vw - 48px));
  max-height: min(78vh, 760px);
  overflow: hidden;
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
  display: flex;
  flex-direction: column;
}

.calendar-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), #FFFFFF);
}

.calendar-modal-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748B;
}

.calendar-modal-header h2 {
  margin: 0;
  font-size: 18px;
  color: var(--primary-dark);
}

.calendar-modal-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #F1F5F9;
  color: #334155;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.calendar-modal-close:hover {
  background: #E2E8F0;
}

.calendar-modal-body {
  padding: 18px 20px 20px;
  overflow: auto;
}

.calendar-commitments-list {
  display: grid;
  gap: 12px;
}

.calendar-commitment-card {
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: #F8FAFC;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.calendar-commitment-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.calendar-commitment-date {
  font-size: 12px;
  font-weight: 700;
  color: #2563EB;
  background: #E0E7FF;
  padding: 4px 8px;
  border-radius: 999px;
}

.calendar-commitment-remove {
  border: 0;
  background: transparent;
  color: #B91C1C;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.calendar-commitment-remove:hover {
  text-decoration: underline;
}

.calendar-commitment-title {
  display: block;
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.35;
}

.calendar-commitment-title:hover {
  color: var(--accent);
}

.calendar-commitment-meta {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #64748B;
}

.calendar-commitment-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.calendar-commitment-secondary-link {
  display: inline-flex;
  align-items: center;
  color: #64748B;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.calendar-commitment-secondary-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.calendar-commitment-details-link {
  min-height: 34px;
  padding: 8px 12px;
}

.calendar-empty-state {
  margin: 0;
  font-size: 14px;
  color: #64748B;
}

.auth-layout {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-wrapper {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
}

.auth-wrapper-nfse {
  max-width: 980px;
}

.auth-card {
  width: 100%;
}

.auth-card-nfse {
  padding: 32px;
}

.auth-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 1.25rem;
}

.auth-choice-card {
  padding: 24px;
}

.auth-choice-form {
  margin-top: 1rem;
}

html[data-theme="dark"] .auth-card {
  background: var(--surface);
  color: var(--text-main);
  border-color: var(--border);
}

.auth-title {
  margin: 0 0 4px;
  font-size: 22px;
  color: var(--primary-dark);
}

html[data-theme="dark"] .auth-title {
  color: var(--text-main);
}

.auth-subtitle {
  margin: 0 0 16px;
  font-size: 14px;
  color: #94A3B8;
}

html[data-theme="dark"] .auth-subtitle,
html[data-theme="dark"] .auth-field span,
html[data-theme="dark"] .auth-consent,
html[data-theme="dark"] .auth-footer-text {
  color: var(--text-muted);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.auth-field span {
  color: #64748B;
}

.auth-field input,
.auth-field select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
  background: #fff;
  color: var(--primary-dark);
  caret-color: var(--accent);
  -webkit-text-fill-color: var(--primary-dark);
}

html[data-theme="dark"] .auth-field input,
html[data-theme="dark"] .auth-field select {
  background: #0F172A;
  color: var(--text-main);
  border-color: var(--border);
  -webkit-text-fill-color: var(--text-main);
}

.auth-field input::placeholder,
.auth-field select::placeholder {
  color: #94A3B8;
}

html[data-theme="dark"] .auth-field input::placeholder,
html[data-theme="dark"] .auth-field select::placeholder {
  color: #64748B;
}

.auth-field select,
.auth-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  min-height: 42px;
  padding: 10px 40px 10px 12px;
  cursor: pointer;
  color: var(--primary-dark);
  font-weight: 500;
  border-radius: 12px;
  border-color: #CBD5E1;
  background-color: #F8FAFC;
  background-image: linear-gradient(45deg, transparent 50%, #64748B 50%), linear-gradient(135deg, #64748B 50%, transparent 50%), linear-gradient(to right, transparent, transparent);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px), 100% 0;
  background-size: 6px 6px, 6px 6px, 2.5em 2.5em;
  background-repeat: no-repeat;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, transform 0.08s ease;
}

.auth-field input:focus,
.auth-field select:focus {
  outline: none;
  background-color: #FFFFFF;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.auth-field select:hover {
  border-color: #94A3B8;
  background-color: #FFFFFF;
}

html[data-theme="dark"] .auth-field input:focus,
html[data-theme="dark"] .auth-field select:focus,
html[data-theme="dark"] .auth-field select:hover {
  background-color: #111827;
}

.auth-row {
  display: flex;
  gap: 8px;
}

.auth-field-small {
  flex: 0 0 132px;
}

.auth-submit {
  margin-top: 8px;
  width: 100%;
}

.auth-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
}

.auth-consent input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.auth-footer-text {
  margin-top: 16px;
  font-size: 13px;
  color: #64748B;
}

.site-footer {
  margin-top: 24px;
  padding: 18px 20px 28px;
}

html[data-theme="dark"] .site-footer {
  color: var(--text-muted);
}

.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

html[data-theme="dark"] .site-footer-inner {
  border-top-color: rgba(148, 163, 184, 0.18);
}

.site-footer-copy {
  margin: 0;
  font-size: 13px;
  color: #64748B;
}

html[data-theme="dark"] .site-footer-copy {
  color: var(--text-muted);
}

.site-footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer-link {
  font-size: 13px;
  color: #0F172A;
  text-decoration: none;
  font-weight: 600;
}

.site-footer-link:hover {
  color: #2563EB;
  text-decoration: underline;
}

html[data-theme="dark"] .site-footer-link {
  color: #BFDBFE;
}

html[data-theme="dark"] .site-footer-link:hover {
  color: #E0F2FE;
}

.site-footer-auth {
  margin-top: 12px;
}

.privacy-page {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 8px 0 24px;
}

.privacy-card {
  padding: 24px;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .privacy-card,
html[data-theme="dark"] .config-card {
  background: var(--surface);
  color: var(--text-main);
  border-color: var(--border);
}

.privacy-section + .privacy-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.privacy-section h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--text-main);
}

html[data-theme="dark"] .privacy-section h2,
html[data-theme="dark"] .config-theme-field label {
  color: var(--text-main);
}

.privacy-section p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.privacy-section ul {
  margin: 0 0 0 18px;
  padding: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.config-page {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 8px 0 24px;
}

.radar-personalizado-page {
  width: min(1180px, 100%);
}

.radar-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.radar-form-panel,
.radar-summary-card {
  padding: 24px;
}

.radar-form-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.radar-panel-head h2,
.radar-summary-head h2 {
  margin: 8px 0 0;
  font-size: 18px;
  color: var(--text-main);
}

.radar-panel-head p,
.radar-summary-head p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.radar-form {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.radar-form-section {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, #FCFDFF 0%, #F8FAFC 100%);
}

.radar-form-actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 4px;
}

.radar-switch {
  margin-top: 2px;
}

.radar-choice-chip {
  margin-right: 0;
  margin-bottom: 0;
}

.radar-range-field {
  gap: 6px;
}

.radar-range-field span {
  font-size: 12px;
  color: #64748B;
}

.radar-summary-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.radar-summary-card-sticky {
  position: sticky;
  top: 82px;
}

.radar-summary-head {
  margin-bottom: 14px;
}

.radar-summary-list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.radar-summary-list div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #F8FAFC;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.radar-summary-list dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748B;
}

.radar-summary-list dd {
  margin: 0;
  color: var(--text-main);
  line-height: 1.45;
  word-break: break-word;
}

html[data-theme="dark"] .radar-form-section {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.94) 0%, rgba(15, 23, 42, 1) 100%);
}

html[data-theme="dark"] .radar-summary-list div {
  background: rgba(15, 23, 42, 0.92);
}

@media (max-width: 991.98px) {
  .radar-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .radar-summary-card-sticky {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .radar-personalizado-page {
    width: 100%;
  }

  .radar-form-panel,
  .radar-summary-card {
    padding: 18px;
  }

  .radar-form-section {
    padding: 14px;
  }
}

.config-card {
  padding: 24px;
}

.config-theme-form {
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.config-action-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.config-action-box {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #F8FAFC 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.config-action-box-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.config-action-box-danger {
  border-color: rgba(220, 38, 38, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #FFF7F7 100%);
}

.config-action-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748B;
}

.config-action-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  color: var(--primary-dark);
}

.config-action-text {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

.config-action-box-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.config-action-button {
  min-height: 42px;
  padding-inline: 16px;
}

.config-cancel-form {
  min-width: 0;
}

.config-cancel-form .config-action-box-footer {
  justify-content: flex-start;
}

.config-cancel-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 14px 14px 14px 12px;
  border-radius: 16px;
  background: rgba(254, 242, 242, 0.8);
  border: 1px solid rgba(248, 113, 113, 0.18);
  color: #991B1B;
  font-size: 13px;
  line-height: 1.5;
}

.config-cancel-confirmation input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.config-theme-field {
  width: min(320px, 100%);
}

.config-theme-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
}

.config-theme-select {
  width: 100%;
}

.config-theme-status {
  margin: 14px 0 0;
  min-height: 1.25em;
  font-size: 13px;
  color: var(--text-muted);
}

html[data-theme="dark"] .form-select,
html[data-theme="dark"] .form-control {
  background-color: #0F172A;
  color: var(--text-main);
  border-color: var(--border);
}

html[data-theme="dark"] .form-select:focus,
html[data-theme="dark"] .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.18);
}

html[data-theme="dark"] .config-theme-status {
  color: var(--text-muted);
}

html[data-theme="dark"] .config-action-box {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.96) 0%, rgba(15, 23, 42, 1) 100%);
  border-color: var(--border);
}

html[data-theme="dark"] .config-action-box-danger {
  border-color: rgba(248, 113, 113, 0.28);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.96) 0%, rgba(30, 41, 59, 0.98) 100%);
}

html[data-theme="dark"] .config-action-kicker {
  color: #94A3B8;
}

html[data-theme="dark"] .config-action-title {
  color: var(--text-main);
}

html[data-theme="dark"] .config-cancel-confirmation {
  background: rgba(127, 29, 29, 0.18);
  border-color: rgba(248, 113, 113, 0.22);
  color: #FCA5A5;
}

.config-card-danger {
  border: 1px solid rgba(220, 38, 38, 0.18);
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.06);
}

html[data-theme="dark"] .config-card-danger {
  border-color: rgba(248, 113, 113, 0.28);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.config-warning {
  font-weight: 600;
  color: #991B1B;
}

html[data-theme="dark"] .config-warning {
  color: #FCA5A5;
}

.config-form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
}

.config-delete-button {
  min-width: 220px;
}

.config-delete-form {
  flex-direction: column;
  gap: 16px;
}

.config-delete-consents {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.config-delete-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
}

.config-delete-consent input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

html[data-theme="dark"] .config-delete-consent {
  color: var(--text-muted);
}

@media (max-width: 767.98px) {
  .config-action-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .config-action-box {
    padding: 16px;
  }

  .config-action-title {
    font-size: 16px;
  }
}

.auth-alert {
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
}

.auth-alert-error {
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

html[data-theme="dark"] .auth-alert-error {
  background: rgba(127, 29, 29, 0.25);
  color: #FCA5A5;
  border-color: rgba(248, 113, 113, 0.28);
}

.auth-alert-success {
  background: #ECFDF3;
  color: #166534;
  border: 1px solid #BBF7D0;
}

html[data-theme="dark"] .auth-alert-success {
  background: rgba(6, 95, 70, 0.24);
  color: #6EE7B7;
  border-color: rgba(110, 231, 183, 0.24);
}

/* Google OAuth button */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--border-color, #d1d5db);
  border-radius: 8px;
  background: var(--card-bg, #fff);
  color: var(--text-primary, #111);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-google:hover {
  background: var(--hover-bg, #f3f4f6);
  border-color: var(--border-color-strong, #9ca3af);
  color: var(--text-primary, #111);
  text-decoration: none;
}

html[data-theme="dark"] .btn-google {
  background: var(--card-bg, #1f2937);
  border-color: var(--border-color, #374151);
  color: var(--text-primary, #f9fafb);
}

html[data-theme="dark"] .btn-google:hover {
  background: var(--hover-bg, #374151);
}

/* Divider between OAuth and form */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-secondary, #6b7280);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color, #e5e7eb);
}

/* Google confirm page: profile display */
.auth-google-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  margin-bottom: 16px;
}

.auth-google-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.auth-google-name {
  font-weight: 600;
  margin: 0 0 2px;
  font-size: 1rem;
}

.auth-google-email {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary, #6b7280);
}

.uf-group {
  margin-bottom: 16px;
}

.uf-heading {
  margin: 8px 4px 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94A3B8;
}

.pagination {
  margin-top: 16px;
  display: flex;
   justify-content: flex-end;
  gap: 8px;
  font-size: 13px;
}

.pagination-link {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-main);
  text-decoration: none;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.pagination-link-primary {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.pagination-link:hover {
  background: #F1F5F9;
}

.pagination-link-primary:hover {
  background: #1D4ED8;
}

/* Admin / manutenção de editais */

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.admin-overview-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-overview-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94A3B8;
}

.admin-overview-value {
  font-size: 18px;
  color: var(--primary-dark);
}

.admin-status-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.admin-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.admin-inline-action {
  width: auto;
  align-self: flex-start;
}

.admin-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-back-link {
  text-decoration: none;
}

.admin-editor-card {
  margin-top: 8px;
}

.admin-editor-subtitle {
  margin-bottom: 0;
}

.admin-grow-1 {
  flex: 1;
}

.admin-grow-2 {
  flex: 2;
}

.admin-search-card {
  margin-bottom: 16px;
}

.admin-search-card-fill {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.admin-search-form {
  margin-top: 8px;
}

.admin-list-summary {
  margin-top: 10px;
}

.admin-results-wrapper {
  margin-top: 16px;
  flex: 1;
  min-height: 320px;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #FFFFFF;
}

.admin-pagination {
  margin-top: 16px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table thead {
  position: sticky;
  top: 0;
  background: #F8FAFC;
  z-index: 1;
}

.admin-table th,
.admin-table td {
  padding: 6px 10px;
  text-align: left;
}

.admin-table thead th {
  font-weight: 500;
  color: #64748B;
}

.admin-table tbody tr + tr td {
  border-top: 1px solid #E2E8F0;
}

.admin-table td.is-id,
.admin-table td.is-date {
  white-space: nowrap;
}

.admin-table td.is-url {
  white-space: nowrap;
}

.admin-table td.is-title,
.admin-table td.is-orgao {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #EEF2FF;
  color: #3730A3;
}

.admin-status-badge-success {
  background: #DCFCE7;
  color: #166534;
}

.admin-status-badge-muted {
  background: #E2E8F0;
  color: #475569;
}

.nfse-status-requested {
  background: #EEF2FF;
  color: #3730A3;
}

.nfse-status-em_analise {
  background: #FEF3C7;
  color: #92400E;
}

.nfse-status-emitida,
.nfse-status-notificada {
  background: #DCFCE7;
  color: #166534;
}

.nfse-status-cancelada {
  background: #FEE2E2;
  color: #991B1B;
}

.admin-nfse-action-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 260px;
}

.admin-inline-field {
  margin: 0;
}

.admin-inline-field select {
  min-width: 100%;
}

.admin-nfse-action {
  border: none;
  background: transparent;
  padding: 0;
  color: var(--accent);
  font: inherit;
  margin-right: 12px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}

.admin-nfse-action:hover {
  text-decoration: underline;
}

html[data-theme="dark"] .btn-text {
  color: var(--text-muted);
}

html[data-theme="dark"] .btn-secondary:hover,
html[data-theme="dark"] .filter-date-toggle:hover,
html[data-theme="dark"] .date-nav-btn:hover,
html[data-theme="dark"] .date-footer-btn:hover,
html[data-theme="dark"] .calendar-icon-btn:hover,
html[data-theme="dark"] .calendar-modal-close:hover,
html[data-theme="dark"] .radar-chip:hover,
html[data-theme="dark"] .radar-custom-toggle:hover {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.22);
  color: var(--text-main);
}

html[data-theme="dark"] .radar-page-action-button,
html[data-theme="dark"] .radar-page-calendar-button,
html[data-theme="dark"] .radar-result-details-button {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  border-color: rgba(96, 165, 250, 0.14);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .radar-page-action-button:hover,
html[data-theme="dark"] .radar-page-calendar-button:hover,
html[data-theme="dark"] .radar-result-details-button:hover {
  background: rgba(30, 41, 59, 0.96);
  color: #DBEAFE;
  border-color: rgba(96, 165, 250, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .sidebar-nav,
html[data-theme="dark"] .sidebar-section,
html[data-theme="dark"] .filter-date-toggle,
html[data-theme="dark"] .filter-date-popover,
html[data-theme="dark"] .calendar-shell,
html[data-theme="dark"] .calendar-modal-panel,
html[data-theme="dark"] .panel-alert-item,
html[data-theme="dark"] .radar-block,
html[data-theme="dark"] .radar-editor-section,
html[data-theme="dark"] .radar-editor-card,
html[data-theme="dark"] .radar-results-card,
html[data-theme="dark"] .radar-result-card,
html[data-theme="dark"] .radar-empty-state,
html[data-theme="dark"] .admin-overview-card,
html[data-theme="dark"] .admin-search-card,
html[data-theme="dark"] .admin-editor-card,
html[data-theme="dark"] .admin-results-wrapper,
html[data-theme="dark"] .card,
html[data-theme="dark"] .filter-date-popover,
html[data-theme="dark"] .calendar-event,
html[data-theme="dark"] .calendar-day-event,
html[data-theme="dark"] .calendar-commitment-card {
  background: var(--surface);
  color: var(--text-main);
  border-color: var(--border);
}

html[data-theme="dark"] .filter-field span,
html[data-theme="dark"] .filter-date-summary,
html[data-theme="dark"] .date-popover-title,
html[data-theme="dark"] .date-calendar-header,
html[data-theme="dark"] .date-calendar-weekdays,
html[data-theme="dark"] .date-cell,
html[data-theme="dark"] .date-footer-btn,
html[data-theme="dark"] .calendar-page-subtitle,
html[data-theme="dark"] .calendar-modal-kicker,
html[data-theme="dark"] .calendar-commitment-meta,
html[data-theme="dark"] .calendar-commitment-date,
html[data-theme="dark"] .panel-list,
html[data-theme="dark"] .panel-alert-date,
html[data-theme="dark"] .panel-alert-text,
html[data-theme="dark"] .panel-alert-meta,
html[data-theme="dark"] .panel-fav-meta,
html[data-theme="dark"] .sidebar-title,
html[data-theme="dark"] .sidebar-subtitle,
html[data-theme="dark"] .radar-block-note,
html[data-theme="dark"] .radar-section-note,
html[data-theme="dark"] .radar-page-kicker,
html[data-theme="dark"] .radar-page-subtitle,
html[data-theme="dark"] .radar-results-subtitle,
html[data-theme="dark"] .radar-result-summary,
html[data-theme="dark"] .radar-term-empty,
html[data-theme="dark"] .admin-list-summary,
html[data-theme="dark"] .admin-table thead th,
html[data-theme="dark"] .admin-table td,
html[data-theme="dark"] .admin-empty,
html[data-theme="dark"] .auth-consent,
html[data-theme="dark"] .filter-clear {
  color: var(--text-muted);
}

html[data-theme="dark"] .filter-date-toggle,
html[data-theme="dark"] .calendar-icon-btn,
html[data-theme="dark"] .date-nav-btn,
html[data-theme="dark"] .date-footer-btn,
html[data-theme="dark"] .calendar-modal-close,
html[data-theme="dark"] .radar-chip,
html[data-theme="dark"] .radar-custom-toggle,
html[data-theme="dark"] .radar-chip-remove {
  background-color: #0F172A;
  color: var(--text-main);
  border-color: var(--border);
}

html[data-theme="dark"] .calendar-today-btn,
html[data-theme="dark"] .calendar-secondary-link {
  background: rgba(96, 165, 250, 0.14);
  color: #BFDBFE;
  border-color: rgba(96, 165, 250, 0.24);
  box-shadow: none;
}

html[data-theme="dark"] .calendar-today-btn:hover,
html[data-theme="dark"] .calendar-secondary-link:hover {
  background: rgba(96, 165, 250, 0.20);
  border-color: rgba(96, 165, 250, 0.34);
  color: #E0F2FE;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .calendar-nav-group {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .calendar-icon-btn {
  background: rgba(15, 23, 42, 0.98);
  color: var(--text-main);
}

html[data-theme="dark"] .calendar-icon-btn:hover {
  background: rgba(96, 165, 250, 0.16);
  color: #E0F2FE;
  border-color: rgba(96, 165, 250, 0.26);
}

html[data-theme="dark"] .calendar-commitment-remove {
  color: #FCA5A5;
}

html[data-theme="dark"] .calendar-commitment-remove:hover {
  color: #FEE2E2;
}

html[data-theme="dark"] .calendar-commitment-date {
  background: rgba(96, 165, 250, 0.16);
  color: #BFDBFE;
}

html[data-theme="dark"] .calendar-empty-state {
  color: var(--text-muted);
}

html[data-theme="dark"] .filter-date-popover,
html[data-theme="dark"] .calendar-modal-header,
html[data-theme="dark"] .calendar-toolbar,
html[data-theme="dark"] .calendar-toolbar-weekdays,
html[data-theme="dark"] .calendar-grid,
html[data-theme="dark"] .radar-results-header,
html[data-theme="dark"] .radar-page-header,
html[data-theme="dark"] .radar-section-head,
html[data-theme="dark"] .radar-block-head,
html[data-theme="dark"] .panel-alert-item,
html[data-theme="dark"] .admin-table thead {
  background: rgba(15, 23, 42, 0.86);
}

html[data-theme="dark"] .calendar-toolbar,
html[data-theme="dark"] .calendar-modal-header {
  border-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .calendar-toolbar-weekdays span,
html[data-theme="dark"] .date-calendar-weekdays,
html[data-theme="dark"] .calendar-day.is-outside,
html[data-theme="dark"] .calendar-day-number,
html[data-theme="dark"] .calendar-event,
html[data-theme="dark"] .calendar-commitment-card,
html[data-theme="dark"] .panel-alert-badge,
html[data-theme="dark"] .panel-alert-badge-muted,
html[data-theme="dark"] .panel-alert-badge-danger,
html[data-theme="dark"] .panel-alert-badge-success,
html[data-theme="dark"] .panel-alert-badge-accent,
html[data-theme="dark"] .panel-alert-badge-default,
html[data-theme="dark"] .admin-table thead th {
  color: var(--text-main);
}

html[data-theme="dark"] .panel-alert-badge,
html[data-theme="dark"] .panel-alert-badge-muted {
  background: rgba(148, 163, 184, 0.14);
}

html[data-theme="dark"] .panel-alert-badge-accent,
html[data-theme="dark"] .radar-chip-active,
html[data-theme="dark"] .radar-custom-toggle-active,
html[data-theme="dark"] .date-cell.is-start,
html[data-theme="dark"] .date-cell.is-end,
html[data-theme="dark"] .calendar-day.is-today .calendar-day-number {
  background: rgba(96, 165, 250, 0.2);
  color: #BFDBFE;
  border-color: rgba(96, 165, 250, 0.34);
}

html[data-theme="dark"] .panel-alert-badge-success {
  background: rgba(34, 197, 94, 0.16);
  color: #86EFAC;
}

html[data-theme="dark"] .tag {
  background: rgba(96, 165, 250, 0.16);
  color: #BFDBFE;
}

html[data-theme="dark"] .edital-card-secondary-link {
  color: #94A3B8;
}

html[data-theme="dark"] .edital-card-secondary-link:hover {
  color: #BFDBFE;
}

html[data-theme="dark"] .inscricao-status-today {
  background: rgba(248, 113, 113, 0.14);
  color: #FCA5A5;
}

html[data-theme="dark"] .inscricao-status-soon {
  background: rgba(245, 158, 11, 0.16);
  color: #FCD34D;
}

html[data-theme="dark"] .inscricao-status-open {
  background: rgba(34, 211, 238, 0.14);
  color: #A5F3FC;
}

html[data-theme="dark"] .panel-alert-badge-danger {
  background: rgba(239, 68, 68, 0.16);
  color: #FCA5A5;
}

html[data-theme="dark"] .calendar-grid,
html[data-theme="dark"] .calendar-day,
html[data-theme="dark"] .calendar-day.is-outside,
html[data-theme="dark"] .calendar-modal-body,
html[data-theme="dark"] .admin-results-wrapper {
  border-color: rgba(148, 163, 184, 0.14);
}

html[data-theme="dark"] .calendar-day:hover,
html[data-theme="dark"] .calendar-event:hover,
html[data-theme="dark"] .radar-result-card:hover,
html[data-theme="dark"] .panel-alert-item:hover {
  background: rgba(96, 165, 250, 0.08);
}

html[data-theme="dark"] .radar-favorite-button {
  color: #94A3B8;
}

html[data-theme="dark"] .radar-favorite-button:hover {
  background: rgba(96, 165, 250, 0.12);
  color: #BFDBFE;
}

html[data-theme="dark"] .radar-favorite-button.is-favorite {
  color: #FBBF24;
}

html[data-theme="dark"] .radar-favorite-button.is-favorite:hover {
  background: rgba(245, 158, 11, 0.12);
  color: #FCD34D;
}

html[data-theme="dark"] .edital-unified-card .edital-card-favorite {
  color: #94A3B8;
}

html[data-theme="dark"] .edital-unified-card .edital-card-favorite:hover {
  background: rgba(96, 165, 250, 0.12);
  color: #BFDBFE;
}

html[data-theme="dark"] .edital-unified-card .edital-card-favorite.favorite-button-active {
  color: #FBBF24;
}

html[data-theme="dark"] .calendar-day.is-today {
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.10), rgba(17, 24, 39, 1));
}

html[data-theme="dark"] .calendar-day.is-in-range {
  background: rgba(59, 130, 246, 0.16);
}

html[data-theme="dark"] .calendar-shell {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .calendar-toolbar {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.96) 0%, rgba(15, 23, 42, 0.98) 100%);
}

html[data-theme="dark"] .calendar-toolbar-weekdays {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(17, 24, 39, 0.96));
  border-color: rgba(148, 163, 184, 0.14);
}

html[data-theme="dark"] .calendar-grid {
  background: var(--surface);
  border-top-color: rgba(148, 163, 184, 0.14);
}

html[data-theme="dark"] .calendar-day {
  background: var(--surface);
  border-right-color: rgba(148, 163, 184, 0.14);
  border-bottom-color: rgba(148, 163, 184, 0.14);
}

html[data-theme="dark"] .calendar-day:hover {
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.10);
}

html[data-theme="dark"] .calendar-day.is-outside {
  background: rgba(15, 23, 42, 0.86);
}

html[data-theme="dark"] .calendar-event-blue {
  background: rgba(59, 130, 246, 0.16);
  color: #BFDBFE;
  border-color: rgba(96, 165, 250, 0.24);
}

html[data-theme="dark"] .calendar-day-count {
  background: rgba(96, 165, 250, 0.18);
  color: #BFDBFE;
}

html[data-theme="dark"] .calendar-more {
  color: var(--text-muted);
}

html[data-theme="dark"] .calendar-modal-panel {
  background: var(--surface);
  border-color: var(--border);
}

html[data-theme="dark"] .calendar-modal-header {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.98));
  border-bottom-color: rgba(148, 163, 184, 0.14);
}

html[data-theme="dark"] .calendar-modal-close {
  background: #111827;
  color: var(--text-main);
  border: 1px solid var(--border);
}

html[data-theme="dark"] .calendar-modal-close:hover {
  background: rgba(96, 165, 250, 0.14);
}

html[data-theme="dark"] .calendar-modal-body {
  background: var(--surface);
}

html[data-theme="dark"] .calendar-commitment-card {
  background: rgba(15, 23, 42, 0.86);
  border-color: rgba(148, 163, 184, 0.14);
}

html[data-theme="dark"] .calendar-commitment-date {
  background: rgba(96, 165, 250, 0.16);
  color: #BFDBFE;
}

html[data-theme="dark"] .calendar-commitment-remove {
  color: #FCA5A5;
}

html[data-theme="dark"] .calendar-commitment-title {
  color: var(--text-main);
}

html[data-theme="dark"] .calendar-commitment-secondary-link {
  color: var(--text-muted);
}

html[data-theme="dark"] .calendar-commitment-secondary-link:hover {
  color: #BFDBFE;
}

html[data-theme="dark"] .calendar-commitment-meta,
html[data-theme="dark"] .calendar-empty-state {
  color: var(--text-muted);
}

html[data-theme="dark"] .admin-table tbody tr + tr td {
  border-top-color: rgba(148, 163, 184, 0.14);
}

html[data-theme="dark"] .admin-table thead {
  color: var(--text-muted);
}

html[data-theme="dark"] .sidebar-link:hover,
html[data-theme="dark"] .chip:hover,
html[data-theme="dark"] .radar-chip-active,
html[data-theme="dark"] .radar-custom-summary,
html[data-theme="dark"] .radar-page-metric,
html[data-theme="dark"] .radar-summary-card,
html[data-theme="dark"] .painel-edit-popover,
html[data-theme="dark"] .painel-profile-card,
html[data-theme="dark"] .panel-card,
html[data-theme="dark"] .panel-alert-item,
html[data-theme="dark"] .filter-field input,
html[data-theme="dark"] .filter-field select,
html[data-theme="dark"] .auth-field input,
html[data-theme="dark"] .auth-field select,
html[data-theme="dark"] .calendar-modal-panel {
  background: var(--surface);
  color: var(--text-main);
}

html[data-theme="dark"] .calendar-modal-backdrop {
  background: rgba(15, 23, 42, 0.68);
}

html[data-theme="dark"] .sidebar-link-active,
html[data-theme="dark"] .chip-active,
html[data-theme="dark"] .radar-summary-card strong,
html[data-theme="dark"] .radar-page-metric strong,
html[data-theme="dark"] .calendar-day-number,
html[data-theme="dark"] .panel-alert-title,
html[data-theme="dark"] .panel-title,
html[data-theme="dark"] .painel-column-title,
html[data-theme="dark"] .panel-alert-link,
html[data-theme="dark"] .radar-section-title,
html[data-theme="dark"] .radar-block-title,
html[data-theme="dark"] .radar-page-title,
html[data-theme="dark"] .radar-results-title,
html[data-theme="dark"] .calendar-page-title,
html[data-theme="dark"] .calendar-modal-header h2,
html[data-theme="dark"] .date-cell.is-start,
html[data-theme="dark"] .date-cell.is-end,
html[data-theme="dark"] .date-cell.is-today {
  color: var(--text-main);
}

html[data-theme="dark"] .sidebar-link-active,
html[data-theme="dark"] .chip-active,
html[data-theme="dark"] .radar-chip-active,
html[data-theme="dark"] .radar-custom-summary,
html[data-theme="dark"] .radar-page-metric,
html[data-theme="dark"] .radar-summary-card,
html[data-theme="dark"] .panel-card,
html[data-theme="dark"] .painel-edit-popover,
html[data-theme="dark"] .filter-field input,
html[data-theme="dark"] .filter-field select,
html[data-theme="dark"] .auth-field input,
html[data-theme="dark"] .auth-field select {
  border-color: var(--border);
}

html[data-theme="dark"] .sidebar-link-active,
html[data-theme="dark"] .chip-active,
html[data-theme="dark"] .radar-chip-active {
  background: rgba(96, 165, 250, 0.16);
  border-color: rgba(96, 165, 250, 0.34);
  color: #BFDBFE;
}

html[data-theme="dark"] .radar-custom-summary,
html[data-theme="dark"] .radar-summary-card,
html[data-theme="dark"] .radar-page-metric {
  background: rgba(15, 23, 42, 0.78);
}

html[data-theme="dark"] .painel-edit-popover,
html[data-theme="dark"] .calendar-modal-panel {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .panel-alert-link:hover,
html[data-theme="dark"] .sidebar-link:hover,
html[data-theme="dark"] .chip:hover {
  color: #E0F2FE;
}

.admin-actions-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-delete-form {
  margin: 0;
}

.admin-delete-button {
  border: none;
  background: transparent;
  color: #DC2626;
  font-size: 13px;
  padding: 0;
  cursor: pointer;
}

.admin-delete-button:hover {
  text-decoration: underline;
}

.admin-empty-state {
  margin-top: 12px;
}

.admin-textarea {
  resize: vertical;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  width: 100%;
  color: var(--primary-dark);
  background: #FFFFFF;
}

html[data-theme="dark"] .admin-textarea {
  color: var(--text-main);
  background: var(--surface);
}

@media (max-width: 1024px) {
  .painel-top-grid {
    grid-template-columns: 1fr;
  }

  .painel-radar,
  .painel-subscription {
    order: 2;
  }

  .painel-radar-hero-grid {
    grid-template-columns: 1fr;
  }

  .painel-radar-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .painel-decision-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .radar-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .painel-section-header,
  .radar-block-head,
  .painel-edit-footer,
  .radar-save-row,
  .painel-subscription-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .painel-plan-badge,
  .radar-block-counter,
  .radar-save-button,
  .radar-custom-toggle,
  .painel-subscription-actions .btn {
    width: 100%;
  }

  .painel-radar-summary-grid,
  .painel-decision-grid {
    grid-template-columns: 1fr;
  }

  .painel-subscription-compact {
    flex-direction: column;
    align-items: stretch;
  }

  .painel-subscription-compact .btn {
    margin-left: 0;
  }

  .painel-edit-popover {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    padding: 14px 16px;
    min-width: 260px;
    z-index: 20;
    display: none;
  }
}

@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 220px minmax(0, 1.8fr);
  }

  .right-panel {
    display: none;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: auto;
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .navbar-left,
  .navbar-right {
    flex: 0 0 auto;
  }

  .navbar-left {
    min-width: 0;
  }

  .navbar-right {
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
    margin-left: auto;
  }

  .navbar-center {
    display: flex;
    position: static;
    transform: none;
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    padding: 0;
  }

  .navbar-right {
    order: 2;
  }

  .layout {
    display: flex;
    flex-direction: column;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .layout > * {
    min-width: 0;
    width: 100%;
  }

  .sidebar {
    order: 1;
  }

  .content {
    order: 2;
  }

  .right-panel {
    order: 3;
  }

  .layout.layout-no-sidebar {
    display: block;
  }

  .layout.layout-no-sidebar .content {
    order: initial;
  }

  .calendar-toolbar {
    position: static;
    top: auto;
    gap: 12px;
    padding: 16px;
  }

  .calendar-toolbar-main {
    grid-template-columns: 1fr;
    justify-items: stretch;
    text-align: left;
    gap: 12px;
  }

  .calendar-toolbar-left,
  .calendar-toolbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .calendar-toolbar-center {
    text-align: left;
  }

  .calendar-page-title {
    font-size: 22px;
  }

  .calendar-page-subtitle {
    font-size: 12px;
  }

  .calendar-toolbar-weekdays span {
    padding: 6px 4px 0;
    font-size: 11px;
  }

  .calendar-day {
    min-height: 126px;
    padding: 8px;
    gap: 8px;
  }

  .calendar-event {
    padding: 5px 7px;
    border-radius: 9px;
  }

  .calendar-modal-panel {
    top: auto;
    right: 12px;
    left: 12px;
    bottom: 12px;
    transform: none;
    width: auto;
    max-height: none;
    border-radius: 20px;
  }

  .calendar-modal-header,
  .calendar-modal-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
  }

  .sidebar-title {
    width: 100%;
  }

  .sidebar-nav,
  .sidebar-section {
    padding: 15px;
    border-radius: 16px;
  }

  .sidebar-link {
    flex: 1 1 calc(50% - 8px);
    min-width: 120px;
    text-align: center;
    padding: 10px 12px;
    font-size: 15px;
  }

  .sidebar-section {
    display: flex;
    flex-direction: column;
  }

  .filter-form {
    gap: 12px;
  }

  .filter-field input,
  .filter-field select {
    width: 100%;
    min-height: 42px;
  }

  .filter-date-toggle,
  .btn-primary,
  .btn-secondary,
  .filter-submit,
  .filter-clear,
  .user-menu-button {
    min-height: 44px;
  }

  .filter-date-popover {
    min-width: 0;
    width: 100%;
    max-width: none;
  }

  .date-range-calendars {
    flex-direction: column;
  }

  .date-calendar {
    width: 100%;
  }

  .feed-header {
    margin-bottom: 10px;
  }

  .feed-title {
    font-size: 21px;
    line-height: 1.2;
  }

  .feed-subtitle {
    font-size: 13px;
    line-height: 1.5;
  }

  .feed-list {
    gap: 14px;
  }

  .card {
    padding: 14px 15px;
    border-radius: 16px;
  }

  .edital-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .favorite-button {
    align-self: flex-end;
    width: 40px;
    height: 40px;
    border-radius: 999px;
  }

  .edital-unified-card .edital-card-favorite,
  .radar-favorite-button {
    top: 12px;
    right: 12px;
  }

  .edital-title {
    font-size: 17px;
    line-height: 1.35;
  }

  .edital-orgao {
    font-size: 12px;
  }

  .edital-meta {
    gap: 6px;
  }

  .tag {
    font-size: 11px;
    padding: 3px 8px;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .pagination-link {
    padding: 7px 11px;
  }

  .auth-layout {
    padding: 16px;
    min-height: calc(100vh - 84px);
  }

  .painel-favorites-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .admin-overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-page-header {
    flex-direction: column;
  }

  .admin-section-header,
  .admin-page-header,
  .painel-profile-header,
  .auth-row {
    flex-direction: column;
  }

  .painel-subscription-status {
    font-size: 24px;
  }

  .auth-row {
    gap: 12px;
  }

  .auth-field-small {
    flex: 1 1 auto;
  }

  .admin-pagination {
    justify-content: flex-start;
  }

  .radar-page-header,
  .radar-results-header,
  .radar-result-head,
  .radar-page-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .radar-page-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .radar-page-metrics {
    width: 100%;
  }

  .radar-custom-create-row {
    grid-template-columns: 1fr;
  }

  .radar-result-head {
    padding-right: 0;
  }

  .radar-favorite-button {
    top: 12px;
    right: 12px;
  }

  .edital-unified-footer-split {
    justify-content: flex-end;
  }

  .edital-card-secondary-link {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 576px) {
  .navbar {
    padding: 10px 12px 12px;
    gap: 10px;
  }

  .brand-logo {
    height: 36px;
    max-width: 154px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .brand-text {
    display: none;
  }

  .btn-primary,
  .btn-secondary {
    padding: 7px 12px;
  }

  .user-menu-button {
    padding: 4px 8px;
  }

  .user-name {
    display: none;
  }

  .user-dropdown {
    min-width: 160px;
  }

  .layout {
    padding: 12px;
    gap: 12px;
  }

  .card,
  .panel-card,
  .admin-overview-card,
  .admin-search-card,
  .admin-editor-card,
  .auth-card {
    border-radius: 16px;
  }

  .auth-title {
    font-size: 20px;
  }

  .auth-subtitle,
  .auth-footer-text {
    font-size: 13px;
  }

  .search-input {
    padding: 10px 12px;
    font-size: 15px;
  }

  .navbar-center {
    position: static;
    transform: none;
    order: 3;
    width: 100%;
    justify-content: stretch;
  }

  .search-form {
    flex: 1 1 auto;
  }

  .navbar-calendar-button {
    padding: 8px 12px;
  }

  .sidebar-title {
    font-size: 12px;
  }

  .sidebar-link {
    flex: 1 1 100%;
    min-width: 0;
    font-size: 14px;
    padding: 9px 10px;
  }

  .sidebar-subtitle {
    font-size: 12px;
  }

  .filter-field span {
    font-size: 12px;
  }

  .filter-field input,
  .filter-field select {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
  }

  .filter-date-toggle {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .filter-submit,
  .filter-clear {
    width: 100%;
    justify-content: center;
  }

  .filter-clear {
    text-align: center;
  }

  .date-popover-header,
  .date-popover-footer {
    gap: 8px;
  }

  .painel-profile {
    padding: 20px 18px;
  }

  .painel-profile-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .painel-radar-focus-title {
    font-size: 20px;
  }

  .painel-favorites-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-table {
    font-size: 13px;
  }

  .admin-results-wrapper {
    border-radius: 10px;
  }

  .navbar-calendar-label {
    display: none;
  }

  .calendar-commitment-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .calendar-commitment-details-link,
  .calendar-commitment-secondary-link {
    width: 100%;
    justify-content: center;
  }

}
