:root {
  /* Design tokens live in src/ui/design-system.css. */
}

html {
  scrollbar-gutter: stable;
}

/* Edital refinado */
.edital-page.edital-refined {
  gap: 0;
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
}

.edital-head-refined {
  align-items: center;
  padding-right: 2px;
}

.edital-layout-refined {
  grid-template-columns: minmax(760px, 1fr) minmax(360px, 420px);
  gap: 16px;
  align-items: start;
}

.edital-left-zone {
  gap: 14px;
  min-width: 0;
}

.edital-metrics.edital-metrics-refined {
  grid-template-columns: repeat(5, minmax(118px, 1fr));
  gap: 10px;
}

.edital-metrics-refined .edital-metric {
  min-height: 92px;
  padding: 13px 14px;
  border-radius: 10px;
}

.edital-metric-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  background: rgba(139, 92, 246, 0.13);
  color: #a78bfa;
  font-size: 13px;
  font-style: normal;
}

.edital-metric.green .edital-metric-icon { color: #34d399; background: rgba(34, 197, 94, 0.1); }
.edital-metric.blue .edital-metric-icon { color: #22d3ee; background: rgba(6, 182, 212, 0.1); }
.edital-metric.magenta .edital-metric-icon { color: #f472b6; background: rgba(217, 70, 239, 0.1); }
.edital-metric.danger .edital-metric-icon { color: #fb7185; background: rgba(244, 63, 94, 0.1); }
.edital-metric.amber .edital-metric-icon { color: #fbbf24; background: rgba(250, 204, 21, 0.1); }

.edital-metrics-refined .edital-metric span {
  font-size: 12px;
  font-weight: 560;
}

.edital-metrics-refined .edital-metric strong {
  margin: 7px 0 3px;
  font-size: 25px;
  font-weight: 440;
  letter-spacing: 0;
}

.edital-metrics-refined .edital-metric small {
  font-size: 11px;
}

.edital-workspace.edital-workspace-refined {
  grid-template-columns: 282px minmax(0, 1fr);
  gap: 12px;
}

.edital-discipline-rail,
.edital-detail-card-refined,
.edital-side-panel-refined .edital-details-form {
  border-radius: 10px;
}

.edital-discipline-rail {
  padding: 12px;
}

.edital-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 10px;
}

.edital-search {
  position: relative;
  display: block;
}

.edital-search span {
  position: absolute;
  left: 10px;
  top: 50%;
  z-index: 1;
  color: #94a3b8;
  transform: translateY(-50%);
}

.edital-search input {
  width: 100%;
  min-height: 38px;
  padding-left: 32px;
}

.edital-add-discipline-button {
  min-height: 38px;
  padding-inline: 12px;
  white-space: nowrap;
}

.edital-inline-create {
  margin-bottom: 10px;
}

.edital-inline-create input {
  width: 100%;
  border-color: rgba(217, 70, 239, 0.42);
  background: rgba(76, 29, 149, 0.12);
}

.edital-discipline-card {
  padding: 13px 14px;
  border-radius: 9px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

.edital-discipline-card.active {
  border-color: rgba(168, 85, 247, 0.9);
  background:
    linear-gradient(135deg, rgba(88, 28, 135, 0.44), rgba(15, 23, 42, 0.8)),
    radial-gradient(circle at top left, rgba(217, 70, 239, 0.22), transparent 42%);
  box-shadow: inset 0 0 0 1px rgba(217, 70, 239, 0.12), 0 0 28px rgba(139, 92, 246, 0.22);
}

.edital-discipline-card strong {
  font-size: 14px;
  font-weight: 620;
  line-height: 1.24;
}

.edital-discipline-card i,
.pill {
  padding: 3px 7px;
  font-size: 10.5px;
  font-weight: 520;
}

.edital-discipline-card small {
  font-weight: 560;
}

.edital-detail-card-refined {
  padding: 14px 16px;
  overflow: hidden;
}

.edital-detail-card-refined h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 620;
}

.edital-card-actions {
  display: inline-flex;
  gap: 8px;
}

.edital-discipline-stats {
  margin: 14px -16px 10px;
  padding: 12px 16px;
}

.edital-discipline-stats span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 560;
}

.edital-discipline-stats i {
  color: #facc15;
  font-style: normal;
  text-shadow: 0 0 12px rgba(250, 204, 21, 0.35);
}

.edital-discipline-stats div:nth-child(2) i { color: #818cf8; text-shadow: 0 0 12px rgba(129, 140, 248, 0.4); }
.edital-discipline-stats div:nth-child(3) i { color: #fb7185; text-shadow: 0 0 12px rgba(251, 113, 133, 0.34); }

.edital-discipline-stats strong {
  font-size: 21px;
  font-weight: 430;
}

.edital-tree-area-refined {
  margin-top: 8px;
}

.edital-tree-area-refined .edital-tree-head,
.edital-topic-row-refined {
  grid-template-columns: minmax(250px, 1fr) 92px 92px 118px 34px;
  gap: 8px;
}

.edital-tree-area-refined .edital-tree-head {
  padding: 8px 9px;
  font-size: 10.5px;
  letter-spacing: .02em;
}

.edital-topic-row-refined {
  padding: 6px 9px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 0;
  background: rgba(10, 14, 28, 0.44);
}

.edital-topic-row-refined:hover,
.edital-subtopic-row:hover {
  background: rgba(17, 24, 39, 0.62);
}

.edital-topic-main input,
.edital-subtopic-row input,
.edital-incidence-cell input {
  min-height: 28px;
  border-color: transparent;
  background: transparent;
  color: #e5e7eb;
  font-weight: 460;
}

.edital-topic-main input:focus,
.edital-subtopic-row input:focus,
.edital-incidence-cell input:focus {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(15, 23, 42, 0.82);
}

.edital-number {
  color: #dbeafe;
  font-weight: 520;
}

.edital-incidence-cell {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.edital-incidence-cell input {
  width: 46px;
  padding: 4px 2px;
  color: #e2e8f0;
  font-size: 14px;
  text-align: right;
}

.edital-incidence-cell span {
  color: #94a3b8;
}

.edital-subtopics {
  gap: 1px;
  margin: 2px 0 0 38px;
  padding-left: 15px;
}

.edital-subtopic-row {
  grid-template-columns: auto 54px minmax(160px, 1fr) 118px 34px;
  min-height: 32px;
  padding-block: 1px;
}

.edital-empty-subtopic {
  padding: 6px 0 7px;
}

.edital-add-line {
  width: 100%;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px dashed rgba(168, 85, 247, 0.66);
  border-radius: 8px;
  background: rgba(88, 28, 135, 0.08);
  color: #d8b4fe;
}

.edital-side-panel-refined {
  min-width: 0;
}

.edital-details-form-refined {
  gap: 14px;
  min-height: 640px;
  padding: 17px;
  border-radius: 10px;
}

.edital-panel-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 620;
}

.edital-tabs {
  gap: 0;
}

.edital-tabs button {
  min-height: 42px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 460;
}

.edital-tabs button.active {
  border-bottom-color: #d946ef;
  color: #e879f9;
}

.edital-panel-form {
  display: grid;
  gap: 14px;
}

.edital-form-card {
  display: grid;
  gap: 13px;
  padding: 15px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  background: rgba(7, 10, 19, 0.42);
}

.edital-form-card h4 {
  margin: 0 0 2px;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 620;
}

.edital-form-card label,
.edital-panel-form label {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 560;
}

.edital-form-card small {
  display: block;
  margin-top: 6px;
  color: #94a3b8;
  font-weight: 440;
}

.edital-form-card input,
.edital-form-card select,
.edital-form-card textarea {
  margin-top: 7px;
}

.edital-tips b {
  color: #facc15;
  font-weight: 650;
}

.edital-preview-card strong {
  display: inline-block;
  margin-right: 8px;
  font-weight: 620;
}

.edital-preview-card p {
  margin: 12px 0 0;
  color: #cbd5e1;
}

.edital-preview-card p span {
  color: #facc15;
}

.edital-page input[type="range"] {
  display: none;
}

@media (max-width: 1500px) {
  .edital-layout-refined {
    grid-template-columns: 1fr;
  }

  .edital-side-panel-refined .edital-details-form {
    position: static;
    min-height: 0;
  }
}

@media (max-width: 980px) {
  .edital-metrics.edital-metrics-refined,
  .edital-workspace.edital-workspace-refined {
    grid-template-columns: 1fr;
  }

  .edital-tree-area-refined .edital-tree-head,
  .edital-topic-row-refined {
    grid-template-columns: minmax(180px, 1fr) 74px 72px 94px 30px;
  }
}

.edital-progress-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(176px, 0.86fr) minmax(360px, 1.62fr) minmax(238px, 1fr);
  align-items: center;
  gap: clamp(14px, 1.7vw, 26px);
  max-width: 1060px;
  width: 100%;
  min-height: 116px;
  margin: -10px auto 12px;
  padding: 14px 24px;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.88);
  border-radius: 18px;
  background:
    radial-gradient(circle at 42% 50%, rgba(59, 130, 246, 0.16), transparent 38%),
    radial-gradient(circle at 12% 20%, rgba(139, 92, 246, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(5, 8, 20, 0.96), rgba(9, 12, 28, 0.94));
  box-shadow:
    0 0 0 1px rgba(217, 70, 239, 0.16) inset,
    0 0 26px rgba(139, 92, 246, 0.32),
    0 24px 70px rgba(0, 0, 0, 0.36);
}

.edital-progress-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.08), transparent 48%);
  opacity: 0.42;
}

.edital-progress-banner > * {
  position: relative;
  z-index: 1;
}

.edital-progress-left,
.edital-progress-right {
  display: grid;
  align-content: center;
  gap: 7px;
}

.progress-caption {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 430;
  line-height: 1.2;
}

.progress-caption b {
  position: relative;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(203, 213, 225, 0.74);
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 520;
  cursor: help;
}

.progress-caption b::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: 260px;
  padding: 9px 11px;
  border: 1px solid rgba(139, 92, 246, 0.36);
  border-radius: 10px;
  background: rgba(8, 10, 20, 0.96);
  color: #dbeafe;
  font-size: 11px;
  font-weight: 430;
  line-height: 1.35;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32), 0 0 18px rgba(139, 92, 246, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 4;
}

.progress-caption b:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.edital-progress-left strong,
.edital-progress-right strong {
  color: #8b5cf6;
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 430;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(139, 92, 246, 0.5);
}

.edital-progress-left small,
.edital-progress-right p {
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 420;
  line-height: 1.32;
}

.edital-progress-center {
  display: grid;
  justify-items: center;
  gap: 9px;
}

.edital-progress-center h3 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 540;
  letter-spacing: 0.04em;
}

.edital-progress-center h3 span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #8b5cf6;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.7));
}

.edital-progress-center h3 svg,
.edital-progress-right small svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.edital-progress-visual {
  display: grid;
  grid-template-columns: 88px minmax(260px, 1fr);
  align-items: center;
  gap: 18px;
  width: 100%;
}

.edital-progress-segments {
  display: grid;
  gap: 7px;
}

.segment-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(34, minmax(5px, 1fr));
  gap: 5px;
  align-items: center;
  min-height: 26px;
}

.segment-track i {
  display: block;
  height: 24px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.56);
  box-shadow: inset 0 0 10px rgba(59, 130, 246, 0.1);
}

.segment-track i.active {
  background: linear-gradient(180deg, #8b5cf6, #06b6d4);
  box-shadow: 0 0 13px rgba(6, 182, 212, 0.34);
}

.segment-labels {
  position: relative;
  display: flex;
  justify-content: space-between;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 420;
}

.segment-labels::after {
  content: "";
  position: absolute;
  left: var(--marker);
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #8b5cf6;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.85);
  transform: translate(-50%, -50%);
}

.edital-progress-right {
  padding-left: clamp(2px, 0.8vw, 14px);
}

.edital-progress-right strong {
  color: #22d3ee;
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.48);
}

.edital-progress-right small {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #22d3ee;
  font-size: 12.5px;
  font-weight: 520;
}

.plan-navigation-actions {
  display: grid !important;
  justify-items: end;
  gap: 10px;
}

.week-navigation-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.plan-small-action {
  min-height: 36px !important;
  padding: 8px 13px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
}

.plan-clear-action {
  border-color: rgba(244, 63, 94, 0.4) !important;
  color: #fda4af !important;
  background: rgba(244, 63, 94, 0.08) !important;
}

.settings-danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(244, 63, 94, 0.24);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.08), rgba(13, 16, 32, 0.78));
}

.settings-danger-zone strong {
  color: #fecdd3;
}

.settings-danger-zone p {
  margin: 5px 0 0;
}

.planning-test-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.08), rgba(13, 16, 32, 0.78));
}

.planning-test-panel > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.planning-test-panel > header > div:first-child {
  display: grid;
  gap: 3px;
}

.planning-test-panel > header span {
  color: #22d3ee;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.planning-test-panel > header strong { font-size: 17px; font-weight: 540; }
.planning-test-panel > header p { margin: 0; color: #94a3b8; font-size: 12px; }
.planning-test-selector { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid rgba(139, 92, 246, 0.2); border-radius: 8px; background: rgba(7, 10, 19, 0.52); }
.planning-test-selector button { min-height: 32px; padding: 6px 11px; border: 0; border-radius: 6px; background: transparent; color: #94a3b8; font-size: 12px; cursor: pointer; }
.planning-test-selector button.active { background: rgba(139, 92, 246, 0.2); color: #f8fafc; box-shadow: 0 0 12px rgba(139, 92, 246, 0.14); }
.planning-test-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.planning-test-summary { display: grid; gap: 10px; padding: 12px; border: 1px solid rgba(139, 92, 246, 0.14); border-radius: 8px; background: rgba(7, 10, 19, 0.38); }
.planning-test-summary.is-active { border-color: rgba(34, 211, 238, 0.34); }
.planning-test-summary header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.planning-test-summary header strong { font-size: 14px; font-weight: 540; }
.planning-test-summary header small { color: #94a3b8; font-size: 10px; }
.planning-test-summary > div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.planning-test-summary > div > div { display: grid; gap: 2px; padding: 8px; border-left: 1px solid rgba(139, 92, 246, 0.14); }
.planning-test-summary > div span { color: #94a3b8; font-size: 10px; }
.planning-test-summary > div strong { color: #e2e8f0; font-size: 13px; font-weight: 520; }
.planning-test-panel > footer { display: flex; align-items: center; gap: 7px; color: #94a3b8; font-size: 11px; }
.planning-test-panel > footer svg { flex: 0 0 auto; width: 14px; height: 14px; fill: none; stroke: #22d3ee; }
.planning-test-empty { margin: 0; color: #94a3b8; font-size: 12px; }

@media (max-width: 980px) {
  .planning-test-panel > header { align-items: stretch; flex-direction: column; }
  .planning-test-selector { align-self: flex-start; }
  .planning-test-comparison { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .edital-progress-banner {
    grid-template-columns: 1fr;
    max-width: 760px;
    text-align: center;
  }

  .edital-progress-left,
  .edital-progress-right {
    justify-items: center;
  }
}

/* Prioridade por ordem manual mvp84 */
.topic-order-priority {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1px !important;
  justify-self: center !important;
  min-width: 82px !important;
  color: rgba(148, 163, 184, 0.28) !important;
  font-size: 14px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  user-select: none !important;
}

.topic-order-priority span {
  color: rgba(148, 163, 184, 0.26) !important;
  text-shadow: none !important;
}

.topic-order-priority span.active {
  color: #facc15 !important;
  text-shadow: 0 0 9px rgba(250, 204, 21, 0.42) !important;
}

/* Overrides finais mvp76 */
body {
  grid-template-columns: 98px 1fr !important;
  font-family: "Bahnschrift", "Arial Narrow", "Roboto Condensed", "Segoe UI", system-ui, sans-serif !important;
}

.sidebar {
  width: 98px !important;
  padding: 18px 10px !important;
  align-items: center !important;
}

.brand,
.sidebar-footer {
  display: none !important;
}

#nav {
  width: 100% !important;
  gap: 10px !important;
}

.nav-btn {
  width: 76px !important;
  min-height: 72px !important;
  margin-inline: auto !important;
  padding: 9px 5px !important;
  display: grid !important;
  grid-template-rows: 31px auto !important;
  place-items: center !important;
  gap: 4px !important;
  text-align: center !important;
}

.nav-btn small {
  display: block !important;
  max-width: 70px;
  font-size: 9.6px !important;
  line-height: 1.08 !important;
  text-transform: uppercase;
}

.nav-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-btn.active,
.nav-btn:hover {
  transform: none !important;
  border-color: rgba(217, 70, 239, 0.74) !important;
  background: linear-gradient(180deg, rgba(88, 28, 135, 0.5), rgba(31, 13, 55, 0.72)) !important;
  box-shadow: inset 0 0 0 1px rgba(217, 70, 239, 0.22), 0 0 22px rgba(168, 85, 247, 0.36) !important;
}

.edital-layout-refined {
  grid-template-columns: minmax(0, 3fr) minmax(430px, 2fr) !important;
}

.edital-side-panel-refined {
  grid-column: auto !important;
  width: 100%;
}

.edital-metrics.edital-metrics-refined {
  grid-template-columns: repeat(5, minmax(104px, 1fr)) !important;
  gap: 9px !important;
}

.edital-metrics-refined .edital-metric {
  aspect-ratio: 1.5 / 1 !important;
  min-height: 0 !important;
  height: auto !important;
}

.edital-metric-icon {
  width: 30px !important;
  height: 30px !important;
  flex: 0 0 30px !important;
}

.edital-metric-icon svg,
.icon-only svg,
.edital-discipline-stats svg,
.topic-toggle svg,
.edital-preview-card svg,
.edital-search svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.edital-metric small b {
  color: #22c55e;
  font-size: 13px;
}

.edital-workspace.edital-workspace-refined {
  grid-template-columns: 282px minmax(0, 1fr) !important;
}

.discipline-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(130px, .65fr);
  gap: 14px;
}

.edital-form-card small {
  font-size: 12px !important;
  line-height: 1.3;
}

.edital-discipline-card i {
  background: transparent !important;
  color: #aeb9cc !important;
  padding-inline: 0 !important;
}

.edital-discipline-card i.weight {
  padding: 3px 7px !important;
  background: rgba(139, 92, 246, 0.18) !important;
  color: #c4b5fd !important;
}

.edital-discipline-card i b {
  color: #f8fafc;
  font-weight: 560;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.18);
}

.edital-discipline-stats strong {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
}

.edital-discipline-stats strong i {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
}

.edital-tree-area-refined {
  padding-bottom: 82px;
}

.edital-tree-area-refined .edital-tree-head,
.edital-topic-row-refined {
  grid-template-columns: minmax(240px, 1fr) 86px 84px 106px 34px !important;
}

.edital-topic-row-refined {
  padding: 4px 8px !important;
}

.topic-toggle,
.drag-handle,
.drag-handle.small {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(203, 213, 225, 0.48) !important;
  box-shadow: none !important;
  font-size: 13px !important;
}

.edital-subtopic-row {
  min-height: 27px !important;
  grid-template-columns: 22px 52px minmax(150px, 1fr) 104px 30px !important;
}

.icon-only {
  display: inline-grid !important;
  width: 30px !important;
  height: 30px !important;
  place-items: center !important;
  padding: 0 !important;
}

@media (max-width: 1100px) {
  .edital-layout-refined {
    grid-template-columns: 1fr !important;
  }
}

/* Ajustes finos finais da aba Edital */
body {
  grid-template-columns: 110px 1fr !important;
}

.sidebar {
  width: 110px !important;
  padding-inline: 12px !important;
}

.nav-btn {
  width: 86px !important;
  min-height: 76px !important;
  border-radius: 11px !important;
}

.nav-btn small {
  max-width: 80px;
  font-size: 10.2px !important;
  letter-spacing: .018em;
}

.nav-icon,
.nav-btn span {
  width: 32px !important;
  height: 32px !important;
}

.nav-icon svg {
  width: 29px !important;
  height: 29px !important;
  stroke-width: 1.65 !important;
}

.edital-metrics-refined .edital-metric {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 14px;
  align-items: start;
}

.edital-metric-icon {
  width: 34px !important;
  height: 34px !important;
  flex-basis: 34px !important;
}

.edital-metric-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px !important;
}

.edital-metrics-refined .edital-metric-content > span {
  font-size: 12px !important;
  text-transform: uppercase;
  font-weight: 560 !important;
  font-family: "Bahnschrift", "Arial Narrow", "Roboto Condensed", "Segoe UI", system-ui, sans-serif !important;
}

.edital-metrics-refined .edital-metric small {
  font-size: 13.4px !important;
  font-weight: 500 !important;
}

.edital-metric-content small {
  font-size: 12.8px;
}

.edital-metrics-refined .edital-metric strong {
  font-size: 29px !important;
  line-height: 1 !important;
}

.edital-metrics-refined .edital-metric > small {
  margin-top: auto !important;
  padding-top: 8px !important;
  color: #aeb9cc !important;
  font-size: 12.4px !important;
  line-height: 1.15 !important;
}


.edital-metric small b,
.edital-metric small span {
  font-size: 12.4px !important;
}

.edital-search span {
  width: 16px !important;
  height: 16px !important;
  left: 11px !important;
}

.edital-search svg {
  width: 16px !important;
  height: 16px !important;
  stroke-width: 2.1 !important;
}

.edital-search input {
  padding-left: 34px !important;
}

.discipline-pill-row {
  justify-content: space-between;
  gap: 12px !important;
}

.edital-discipline-card i {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  text-shadow: none !important;
}

.edital-discipline-card i.weight {
  border: 1px solid rgba(139, 92, 246, .36);
  background: rgba(139, 92, 246, .08) !important;
}

.edital-discipline-card small {
  word-spacing: 3px;
  letter-spacing: .01em;
}

.edital-discipline-stats span {
  display: block !important;
  min-height: 18px;
}

.edital-discipline-stats strong {
  margin-top: 7px !important;
  gap: 8px !important;
}

.edital-discipline-stats strong i {
  width: 21px !important;
  height: 21px !important;
}

.edital-discipline-stats strong i svg {
  stroke-width: 2.15 !important;
}

.edital-topic-list {
  gap: 4px !important;
}

.edital-tree-area-refined .edital-tree-head {
  padding-block: 6px !important;
}

.edital-topic-row-refined {
  padding-block: 3px !important;
}

.edital-subtopics {
  margin-top: 0 !important;
  gap: 0 !important;
}

.edital-subtopic-row {
  min-height: 24px !important;
  padding-block: 0 !important;
}

.edital-incidence-cell input {
  min-height: 22px !important;
}

.edital-tabs {
  align-items: end !important;
}

.edital-tabs button {
  display: grid !important;
  place-items: center !important;
  min-height: 44px !important;
  padding: 0 6px !important;
  line-height: 1.1 !important;
}

.edital-panel-form {
  align-content: start;
}

.edital-preview-card {
  display: grid;
  gap: 14px;
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preview-head strong {
  margin: 0 !important;
}

.preview-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  color: #cbd5e1;
}

.preview-stats span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.preview-stats i {
  display: inline-grid;
  width: 17px;
  height: 17px;
  place-items: center;
  color: #facc15;
}

.preview-stats span:nth-child(2) i {
  color: #818cf8;
}

.preview-stats svg {
  width: 17px !important;
  height: 17px !important;
  stroke-width: 2 !important;
}

/* Ajustes finos mvp78 */
.edital-discipline-card i b {
  color: #f8fafc !important;
  text-shadow: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.edital-discipline-card i {
  box-shadow: none !important;
}

.edital-discipline-card i.weight b {
  background: transparent !important;
}

.edital-topic-list {
  gap: 1px !important;
}

.edital-topic-row-refined {
  padding-block: 2px !important;
}

.edital-subtopics {
  margin-top: -1px !important;
  margin-left: 40px !important;
  gap: 0 !important;
  padding-left: 12px !important;
}

.edital-subtopic-row {
  display: grid !important;
  grid-template-columns: minmax(240px, 1fr) 86px 84px 106px 34px !important;
  gap: 8px !important;
  min-height: 23px !important;
  align-items: center !important;
  padding: 0 8px 0 0 !important;
}

.edital-subtopic-main {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.edital-subtopic-main input {
  min-height: 22px !important;
  padding-block: 1px !important;
}

.edital-priority-empty,
.edital-incidence-dash {
  color: #64748b;
  font-size: 13px;
}

.edital-incidence-dash {
  padding-left: 8px;
}

.edital-incidence-cell {
  gap: 0 !important;
}

.edital-incidence-cell input {
  width: 32px !important;
  padding-right: 1px !important;
}

.edital-incidence-cell span {
  margin-left: 0 !important;
}

.edital-incidence-cell input::-webkit-outer-spin-button,
.edital-incidence-cell input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.edital-incidence-cell input {
  -moz-appearance: textfield;
}

.status-dot.nao_estudado {
  color: #94a3b8 !important;
}

.status-dot.em_andamento {
  color: #22c55e !important;
}

.status-dot.concluido {
  color: #22d3ee !important;
}

.status-dot.concluido::before {
  background: #22d3ee !important;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.edital-details-form-refined {
  display: grid !important;
  grid-template-rows: auto 44px auto !important;
  align-content: start !important;
  min-height: 720px !important;
}

.edital-tabs {
  min-height: 44px !important;
}

.edital-panel-form {
  margin-top: 0 !important;
  align-self: start !important;
}

.edital-form-card {
  align-content: start !important;
}

.discipline-info-grid {
  align-items: start !important;
}

.discipline-info-grid label {
  display: grid;
  align-content: start;
}

.discipline-info-grid input,
.discipline-info-grid select {
  min-height: 42px !important;
}

.preview-head {
  justify-content: flex-start !important;
}

.preview-head .pill {
  margin-left: 14px;
}

/* Polimento mvp76: menu compacto e Edital mais denso */
body {
  grid-template-columns: 98px 1fr;
  font-family: "Bahnschrift", "Arial Narrow", "Roboto Condensed", "Segoe UI", system-ui, sans-serif;
}

.sidebar {
  width: 98px;
  padding: 18px 10px;
  align-items: center;
}

.brand,
.sidebar-footer {
  display: none;
}

#nav {
  width: 100%;
  gap: 10px;
}

.nav-btn {
  width: 76px;
  min-height: 72px;
  margin-inline: auto;
  padding: 9px 5px;
  border-radius: 10px;
  display: grid;
  grid-template-rows: 31px auto;
  place-items: center;
  gap: 4px;
  text-align: center;
  color: #a8b3c7;
  background: rgba(6, 10, 22, 0.34);
}

.nav-btn small {
  display: block;
  max-width: 70px;
  color: inherit;
  font-size: 9.6px;
  font-weight: 520;
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.nav-btn span,
.nav-icon {
  width: 30px;
  height: 30px;
}

.nav-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-btn.active,
.nav-btn:hover {
  transform: none;
  color: #f8f4ff;
  border-color: rgba(217, 70, 239, 0.74);
  background: linear-gradient(180deg, rgba(88, 28, 135, 0.5), rgba(31, 13, 55, 0.72));
  box-shadow: inset 0 0 0 1px rgba(217, 70, 239, 0.22), 0 0 22px rgba(168, 85, 247, 0.36);
}

.app-shell {
  padding: 30px 28px 28px;
}

.edital-layout-refined {
  grid-template-columns: minmax(0, 3fr) minmax(430px, 2fr);
}

.edital-metrics.edital-metrics-refined {
  grid-template-columns: repeat(5, minmax(104px, 1fr));
  gap: 9px;
}

.edital-metrics-refined .edital-metric {
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 12px;
}

.edital-metric-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

.edital-metric-icon svg,
.icon-only svg,
.edital-discipline-stats svg,
.topic-toggle svg,
.edital-preview-card svg,
.edital-search svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.edital-metrics-refined .edital-metric span {
  font-size: 12.8px;
  line-height: 1.05;
}

.edital-metrics-refined .edital-metric strong {
  margin-top: 10px;
  font-size: 27px;
}

.edital-metrics-refined .edital-metric small {
  font-size: 12px;
  line-height: 1.18;
}

.edital-metric small b {
  color: #22c55e;
  font-size: 13px;
  font-weight: 650;
}

.edital-metric small span {
  color: #cbd5e1;
  font-size: 12px;
}

.edital-details-form-refined {
  min-height: 0;
}

.discipline-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(130px, .65fr);
  gap: 14px;
}

.discipline-info-grid label:nth-child(3),
.discipline-info-grid label:nth-child(4) {
  grid-column: span 1;
}

.edital-form-card small {
  font-size: 12px;
  line-height: 1.3;
}

.edital-discipline-card i {
  background: transparent;
  color: #aeb9cc;
  padding-inline: 0;
}

.edital-discipline-card i.weight {
  padding: 3px 7px;
  background: rgba(139, 92, 246, 0.18);
  color: #c4b5fd;
}

.edital-discipline-card i b {
  color: #f8fafc;
  font-weight: 560;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.18);
}

.edital-discipline-stats span {
  min-height: 18px;
}

.edital-discipline-stats strong {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 5px;
}

.edital-discipline-stats strong i {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #facc15;
}

.edital-discipline-stats div:nth-child(2) strong i {
  color: #818cf8;
}

.edital-discipline-stats div:nth-child(3) strong i {
  color: #fb7185;
}

.edital-tree-area-refined {
  padding-bottom: 82px;
}

.edital-tree-area-refined .edital-tree-head,
.edital-topic-row-refined {
  grid-template-columns: minmax(240px, 1fr) 86px 84px 106px 34px;
}

.edital-topic-row-refined {
  padding: 4px 8px;
}

.edital-topic-main,
.edital-subtopic-row {
  gap: 5px;
}

.topic-toggle,
.drag-handle,
.drag-handle.small {
  width: 22px;
  height: 22px;
  min-width: 22px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(203, 213, 225, 0.48);
  box-shadow: none;
  font-size: 13px;
}

.drag-handle:hover,
.drag-handle.small:hover,
.topic-toggle:hover {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.11);
}

.edital-topic-main input,
.edital-subtopic-row input,
.edital-incidence-cell input {
  min-height: 24px;
  padding-block: 2px;
}

.edital-subtopics {
  margin-left: 42px;
}

.edital-subtopic-row {
  min-height: 27px;
  grid-template-columns: 22px 52px minmax(150px, 1fr) 104px 30px;
}

.icon-only {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
}

.icon-only svg {
  width: 17px;
  height: 17px;
}

.topic-add-subtopic {
  color: #22d3ee;
}

.danger-soft {
  color: #fb7185;
}

@media (max-width: 1100px) {
  .edital-layout-refined {
    grid-template-columns: 1fr;
  }
  .review-drawer-backdrop {
    padding: 16px;
  }
}

@media (max-width: 760px) {
  body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    width: auto;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  background:
    radial-gradient(circle at 22% 6%, rgba(139, 92, 246, 0.18), transparent 28%),
    radial-gradient(circle at 82% 0%, rgba(6, 182, 212, 0.12), transparent 30%),
    linear-gradient(180deg, var(--body-edge) 0%, var(--bg) 44%, var(--body-edge) 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.sidebar {
  min-height: 100vh;
  padding: 18px;
  background: linear-gradient(180deg, var(--sidebar-1), var(--sidebar-2));
  border-right: 1px solid var(--sidebar-border);
  color: var(--ink);
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 18px 0 60px rgba(0, 0, 0, 0.28);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px 26px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 70, 239, 0.46);
  border-radius: 14px;
  background: radial-gradient(circle at 30% 20%, rgba(217, 70, 239, 0.34), rgba(139, 92, 246, 0.12));
  color: #ffffff;
  font-weight: 800;
  box-shadow: var(--glow-purple);
}

.brand span,
.list-row span,
.session-block span,
.execution-row span,
.metric small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.brand span {
  color: var(--text-secondary);
  letter-spacing: 0.08em;
}

#nav {
  display: grid;
  gap: 7px;
}

.nav-btn {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text-secondary);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.nav-btn.active,
.nav-btn:hover {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.28), rgba(217, 70, 239, 0.1));
  border-color: rgba(217, 70, 239, 0.34);
  color: #ffffff;
  box-shadow: inset 3px 0 0 var(--magenta), var(--glow-purple);
  transform: translateX(2px);
}

.nav-btn span {
  display: grid;
  place-items: center;
  width: 22px;
  color: #e879f9;
}

.app-shell {
  min-width: 0;
  padding: 24px 34px 28px;
}

.topbar,
.section-title,
.session-foot,
.dialog-actions,
.row-actions,
.list-row,
.execution-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 20px;
}

h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

p {
  color: var(--muted);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

/* Keep Home-only generated content out of inactive views' accessibility trees. */
.view:not(.active) .progress-caption b::after,
.view:not(.active) .streak-card .card-title span:first-child::after {
  content: none;
}

.grid {
  display: grid;
  gap: 16px;
}

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

.panel,
.metric,
.empty,
.topic-card,
.modal,
.table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel {
  padding: 18px;
}

.metric {
  min-height: 112px;
  padding: 15px;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
}

.primary,
.secondary,
.ghost,
.danger,
.light {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.primary {
  background: linear-gradient(135deg, var(--primary), #7c3aed 48%, #6105C1);
  color: white;
  box-shadow: var(--glow-purple);
}

.secondary {
  background: var(--primary-2);
  color: var(--primary);
  border: 1px solid rgba(139, 92, 246, 0.32);
}

.ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--primary);
  border: 1px solid var(--line);
}

.danger {
  background: #fee4e2;
  color: var(--danger);
}

.light {
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.compact {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 14px;
  font-weight: 450;
}

.slider-field {
  gap: 2px;
  font-size: 11px;
}

.slider-field span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.slider-field input[type="range"] {
  padding: 0;
  height: 18px;
  accent-color: var(--primary);
}

.compact-actions {
  justify-content: flex-start;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 9px 10px;
}

textarea {
  resize: vertical;
}

.form-grid,
.availability-grid {
  display: grid;
  gap: 12px;
}

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

.span-2 {
  grid-column: 1 / -1;
}

.topic-card,
.empty {
  padding: 14px;
  margin-bottom: 12px;
}

.topic-board {
  display: grid;
  gap: 14px;
}

.drag-handle {
  min-width: 34px;
  min-height: 34px;
  border-radius: 8px;
  background: #eef2f6;
  color: #334155;
  cursor: grab;
}

.drag-handle:active {
  cursor: grabbing;
}

.drag-handle.small {
  min-width: 30px;
  min-height: 30px;
}

.subtopic-list {
  display: grid;
  gap: 8px;
  margin: 10px 0;
  padding-left: 32px;
}

.subtopic-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.muted-box {
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fafbfc;
}

.edital-page {
  gap: 18px;
}

.edital-head,
.edital-detail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.edital-head h2 {
  margin-bottom: 6px;
  font-size: 28px;
}

.edital-head p {
  margin-bottom: 0;
}

.edital-page input,
.edital-page select,
.edital-page textarea,
.edital-import-modal textarea {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(7, 10, 19, 0.78);
  color: var(--ink);
}

.edital-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.edital-metric,
.edital-detail-card,
.edital-disciplines,
.edital-details-form {
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(18, 22, 42, 0.82), rgba(8, 11, 24, 0.88)),
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.14), transparent 34%);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.24);
}

.edital-metric {
  min-height: 112px;
  padding: 17px;
}

.edital-metric span,
.edital-tree-head,
.edital-discipline-card small,
.edital-discipline-stats span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.edital-metric strong {
  display: block;
  margin: 8px 0 4px;
  color: #fff;
  font-size: 28px;
  font-weight: 500;
}

.edital-metric small {
  color: var(--muted);
}

.edital-metric.green strong { color: #86efac; }
.edital-metric.danger strong { color: #fb7185; }
.edital-metric.amber strong { color: #fbbf24; }
.edital-metric.magenta strong { color: #e879f9; }
.edital-metric.blue strong { color: #67e8f9; }

.edital-workspace {
  grid-template-columns: 300px minmax(420px, 1fr) minmax(320px, 380px);
  gap: 16px;
  align-items: start;
}

.edital-disciplines,
.edital-detail-card,
.edital-details-form {
  padding: 16px;
}

.edital-quick-add {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 14px;
}

.edital-discipline-list {
  display: grid;
  gap: 10px;
}

.edital-discipline-card {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  background: rgba(8, 13, 27, 0.76);
  color: var(--ink);
  text-align: left;
}

.edital-discipline-card.active,
.edital-discipline-card:hover {
  border-color: rgba(217, 70, 239, 0.7);
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.22);
}

.edital-discipline-card strong {
  display: block;
  margin-bottom: 10px;
}

.edital-discipline-card span {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}

.edital-discipline-card i,
.pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(139, 92, 246, 0.16);
  color: #c4b5fd;
  font-size: 11px;
  font-style: normal;
}

.edital-discipline-card em {
  display: block;
  height: 5px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
}

.edital-discipline-card b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--magenta));
}

.edital-discipline-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px -16px 14px;
  padding: 14px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.edital-discipline-stats strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
  font-weight: 500;
}

.danger-text strong,
.danger-text {
  color: #fb7185;
}

.edital-alert {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(244, 63, 94, 0.36);
  border-radius: 10px;
  background: rgba(244, 63, 94, 0.08);
  color: #fda4af;
  font-size: 13px;
}

.edital-tree-head,
.edital-topic-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 116px 104px 128px 42px;
  gap: 10px;
  align-items: center;
}

.edital-tree-head {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  text-transform: uppercase;
}

.edital-topic-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.edital-topic-row {
  padding: 10px 12px;
  margin: 0;
  background: rgba(7, 10, 19, 0.44);
  box-shadow: none;
}

.edital-topic-main,
.edital-subtopic-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.edital-number {
  min-width: 34px;
  color: #e2e8f0;
  font-weight: 700;
  text-align: right;
}

.edital-number.small {
  min-width: 48px;
  color: var(--muted);
}

.edital-topic-main input,
.edital-subtopic-row input {
  min-height: 32px;
  padding: 6px 8px;
  border-color: transparent;
  background: transparent;
}

.edital-topic-main input:focus,
.edital-subtopic-row input:focus {
  border-color: rgba(139, 92, 246, 0.42);
  background: rgba(15, 23, 42, 0.72);
}

.edital-details-form input[type="range"] {
  height: 18px;
  padding: 0;
  accent-color: var(--primary);
}

.status-dot {
  color: var(--muted);
  font-size: 12px;
}

.status-dot::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #64748b;
}

.status-dot.em_andamento::before {
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.55);
}

.status-dot.concluido::before {
  background: #06b6d4;
}

.edital-subtopics {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  margin: 4px 0 0 34px;
  padding-left: 16px;
  border-left: 1px solid rgba(148, 163, 184, 0.16);
}

.edital-subtopic-row {
  display: grid;
  grid-template-columns: auto auto minmax(180px, 1fr) 128px 42px;
}

.edital-empty-subtopic {
  color: var(--muted);
  font-size: 12px;
}

.edital-details-form {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 24px;
}

.edital-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.edital-tabs span {
  padding: 10px 0;
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
}

.edital-tabs .active {
  color: #e879f9;
  border-bottom: 2px solid var(--magenta);
}

.edital-tips,
.edital-preview-card,
.edital-import-preview {
  padding: 14px;
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 12px;
  background: rgba(7, 10, 19, 0.44);
}

.edital-tips p {
  margin: 7px 0 0;
  font-size: 13px;
}

.edital-preview-card {
  border-color: rgba(139, 92, 246, 0.55);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(217, 70, 239, 0.08));
}

@media (max-width: 1500px) {
  .edital-workspace {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .edital-tree-head,
  .edital-topic-row {
    grid-template-columns: minmax(210px, 1fr) 84px 82px 96px 34px;
    gap: 8px;
  }

  .edital-side-panel {
    grid-column: 1 / -1;
  }

  .edital-details-form {
    position: static;
  }
}

.availability-grid {
  grid-template-columns: repeat(7, minmax(110px, 1fr));
}

.day-input {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.day-input.sunday {
  background: #111827;
  color: white;
}

.day-input.sunday small {
  color: #d1d5db;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 12px 0;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.swatch {
  width: 18px;
  height: 10px;
  border-radius: 2px;
}

.swatch.theory {
  background: var(--theory);
}

.swatch.daily {
  background: var(--daily);
}

.swatch.weekly {
  background: var(--weekly);
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(170px, 1fr));
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.day-col {
  min-height: 390px;
  padding: 10px;
  border-right: 1px solid var(--line);
  background: #f8fafc;
}

.day-col:last-child {
  border-right: 0;
}

.day-head {
  margin-bottom: 10px;
}

.day-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.session-block {
  display: grid;
  gap: 10px;
  min-height: 100px;
  margin-bottom: 8px;
  padding: 10px;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  user-select: none;
}

.session-block[draggable="true"] {
  cursor: pointer;
}

.session-block[draggable="true"]:active {
  cursor: grabbing;
}

.session-block.theory {
  background: var(--theory);
}

.session-block.daily {
  background: var(--daily);
}

.session-block.weekly {
  border: 1px solid rgba(59, 130, 246, 0.32);
  background: linear-gradient(135deg, #071a3d, #081225);
  box-shadow: inset 0 0 18px rgba(59, 130, 246, 0.16);
}

.session-block.completed strong,
.session-block.completed span {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.session-block span,
.session-block small {
  color: rgba(255, 255, 255, 0.9);
}

.session-block .time-pill,
.time-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: white;
  color: #111827;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.late-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid rgba(244, 63, 94, 0.5);
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.18);
  color: #fecdd3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.3);
  text-decoration: none;
}

.planned-duration {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 700;
}

.bulk-import {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.bulk-import summary {
  padding: 10px 12px;
  color: var(--primary);
  font-weight: 800;
  cursor: pointer;
}

.bulk-import form {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.execution-row,
.list-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.execution-row:last-child,
.list-row:last-child {
  border-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.notice {
  margin: 0;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(139, 92, 246, 0.34);
  background:
    linear-gradient(180deg, rgba(18, 22, 42, 0.96), rgba(7, 10, 19, 0.96));
  color: var(--ink);
  box-shadow: var(--shadow), 0 0 24px rgba(139, 92, 246, 0.28);
  animation: toastIn 0.18s ease both;
  backdrop-filter: blur(14px);
}

.notice.success {
  border-color: rgba(34, 197, 94, 0.36);
  color: #bbf7d0;
}

.notice.error {
  border-color: rgba(244, 63, 94, 0.42);
  color: #fb7185;
}

.notice.loading {
  border-color: rgba(250, 204, 21, 0.42);
  color: #fde68a;
}

/* Rich confirmation (opt-in via setMessage's { rich: true }): a drawn checkmark and a depleting bar, for the
   moments the student's data just landed on the platform (today: the study-session drawer's save). */
.notice-rich {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 13px;
  position: relative;
  overflow: hidden;
  pointer-events: auto;
  animation: noticeRichIn 0.26s cubic-bezier(.22, .75, .2, 1) both;
}
.notice-rich-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
}
.notice-rich-icon svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: noticeRichCheckDraw 0.32s 0.16s cubic-bezier(.65, 0, .35, 1) forwards;
}
.notice-rich-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  transform-origin: left;
  animation: noticeRichDeplete 1.44s linear both;
}
@keyframes noticeRichIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
}
@keyframes noticeRichCheckDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes noticeRichDeplete {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .notice-rich { animation: none; }
  .notice-rich-icon svg { animation: none; stroke-dashoffset: 0; }
  .notice-rich-bar { animation: none; opacity: 0.5; }
}

.status-area {
  position: fixed;
  top: 22px;
  right: 28px;
  z-index: 100;
  display: grid;
  gap: 8px;
  max-width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--modal-backdrop);
}

.modal {
  width: min(620px, 100%);
  padding: 18px;
}

.settings-reset-confirmation-modal {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
}

.settings-reset-confirmation-modal h2,
.settings-reset-confirmation-modal p {
  margin: 0;
}

.settings-reset-confirmation-modal p {
  color: var(--muted);
  line-height: 1.5;
}

.settings-reset-confirmation-modal .dialog-actions {
  justify-content: flex-end;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-row input {
  width: auto;
}

#pageTitle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.topbar-page-icon {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  color: #e879f9;
  filter: drop-shadow(0 0 8px rgba(217, 70, 239, 0.28));
}

.topbar-page-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-context-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
}

.page-context-title-lockup {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
  transform: translateY(15px);
}

.page-context-copy {
  min-width: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.page-context-head .page-context-copy h2 {
  margin: 0 0 6px;
  font-family: inherit;
  font-size: 22px;
  font-weight: 620;
  line-height: 1.1;
  letter-spacing: 0;
}

.page-context-head .page-context-copy p {
  margin: 0;
  color: #94a3b8;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
}

.page-context-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  transform: translateY(55px);
}

.view > .page-context-head {
  margin-bottom: 12px;
}

.view > .page-context-head + .panel,
.edital-page > .page-context-head + .edital-layout-refined {
  margin-top: var(--page-content-offset);
}

.neon-primary {
  min-height: 48px;
  padding-inline: 22px;
}

.sidebar-footer {
  display: grid;
  gap: 14px;
  margin-top: clamp(42px, 9vh, 86px);
  padding-top: 18px;
}

.profile-card,
.xp-card {
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 16px;
  background: rgba(13, 16, 32, 0.72);
  box-shadow: var(--shadow);
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.profile-card > div:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.profile-card strong {
  line-height: 1.2;
}

.profile-card span,
.xp-card span,
.xp-card small {
  color: var(--muted);
  font-size: 12px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.22);
  color: #ffffff;
  box-shadow: var(--glow-purple);
}

.xp-card {
  padding: 14px;
}

.xp-card strong {
  display: block;
  margin: 8px 0;
  color: #e879f9;
}

.xp-bar {
  height: 9px;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
}

.xp-bar i {
  display: block;
  width: 52%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--magenta));
  box-shadow: var(--glow-purple);
}

.dashboard-grid {
  gap: 18px;
}

.dashboard-lower {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.dashboard-main,
.dashboard-rail {
  align-content: start;
  gap: 18px;
}

.home-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.dashboard-content {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.neon-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(18, 22, 42, 0.88), rgba(8, 10, 20, 0.92)),
    radial-gradient(circle at 20% 0%, rgba(139, 92, 246, 0.18), transparent 42%);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.neon-card:hover {
  border-color: rgba(217, 70, 239, 0.42);
  box-shadow: var(--shadow), var(--glow-purple);
  transform: translateY(-2px);
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-height: 24px;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 450;
  letter-spacing: 0;
  text-transform: uppercase;
}

.card-icon {
  color: #e879f9;
  font-size: 18px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 8px rgba(217, 70, 239, 0.8));
}

.stat-neon {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.next-session-card,
.review-today-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
}

.stat-value,
.neon-card > strong {
  display: block;
  color: #ffffff;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 540;
  line-height: 1.05;
}

.next-session-card > strong {
  font-size: 18px;
  font-weight: 520;
  line-height: 1.25;
  text-align: left;
}

.next-session-card > p {
  text-align: left;
}

.session-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  margin-bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.tag-theory {
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.32);
}

.tag-review {
  border: 1px solid rgba(59, 130, 246, 0.44);
  background: rgba(59, 130, 246, 0.14);
  color: #93c5fd;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.34);
}

.content-breakdown {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.content-breakdown span {
  display: block;
  min-width: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-breakdown small {
  display: inline-block;
  min-width: 58px;
  margin-right: 8px;
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.neon-card p {
  margin: 8px 0 0;
  color: var(--text-secondary);
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.stat-footer {
  color: #c084fc;
  font-weight: 560;
  white-space: nowrap;
}

.mini-progress {
  flex: 0 1 160px;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
}

.mini-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #d946ef);
  box-shadow: 0 0 18px rgba(217, 70, 239, 0.55);
}

.accuracy-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.accuracy-line span {
  color: var(--text-secondary);
  font-size: 12px;
}

.accuracy-line strong {
  color: #d946ef;
  font-size: 20px;
  font-weight: 620;
  text-shadow: 0 0 16px rgba(217, 70, 239, 0.55);
}

.card-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.next-session-card .card-action-row,
.review-today-card .card-action-row {
  padding-top: 24px;
}

.review-today-card .card-action-row {
  padding-top: 32px;
}

.duration-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-size: 12px;
  font-weight: 760;
}

.progress-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 150px;
}

.ring-svg {
  position: relative;
  display: grid;
  place-items: center;
  width: 136px;
  height: 136px;
  margin: 2px auto 0;
  border-radius: 999px;
}

.progress-ring {
  width: 158px;
  height: 158px;
  margin-top: 0;
}

.ring-svg svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}

.ring-track,
.ring-fill {
  fill: none;
  stroke-width: 5.4;
}

.progress-ring .ring-track,
.progress-ring .ring-fill {
  stroke-width: 7;
}

.ring-track {
  stroke: rgba(139, 92, 246, 0.17);
}

.ring-fill {
  stroke: url(#ringGradient);
  stroke-linecap: round;
  filter: drop-shadow(0 0 9px rgba(217, 70, 239, 0.9));
}

.ring-content {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 6px;
}

.ring-content strong {
  color: #ffffff;
  font-size: 31px;
  font-weight: 520;
  line-height: 1;
}

.ring-content span {
  color: var(--text-secondary);
  font-size: 12px;
}

.wide-card {
  min-height: 300px;
}

.today-timeline {
  position: relative;
  display: grid;
  gap: 10px;
}

.today-timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 9px;
  width: 1px;
  background: linear-gradient(var(--magenta), var(--cyan));
  opacity: 0.74;
}

.today-session {
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 12px 14px 12px 36px;
  border: 1px solid rgba(139, 92, 246, 0.16);
  border-radius: 14px;
  background: rgba(18, 22, 42, 0.62);
  cursor: pointer;
}

.today-session.done {
  opacity: 0.72;
}

.today-session.done .today-session-main {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.timeline-dot {
  position: absolute;
  left: 4px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  box-shadow: 0 0 18px currentColor;
}

.timeline-dot.theory {
  color: var(--cyan);
  background: var(--cyan);
}

.timeline-dot.review {
  color: var(--magenta);
  background: var(--magenta);
}

.timeline-dot.tone-0 {
  color: #d946ef;
  background: linear-gradient(135deg, #d946ef, #8b5cf6);
}

.timeline-dot.tone-1 {
  color: #8b5cf6;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
}

.timeline-dot.tone-2 {
  color: #06b6d4;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.timeline-dot.tone-3 {
  color: #a855f7;
  background: linear-gradient(135deg, #a855f7, #06b6d4);
}

.timeline-dot.tone-4 {
  color: #3b82f6;
  background: linear-gradient(135deg, #3b82f6, #d946ef);
}

.timeline-dot.tone-5 {
  color: #22d3ee;
  background: linear-gradient(135deg, #22d3ee, #8b5cf6);
}

.today-order strong,
.today-session-main strong {
  display: block;
  color: #ffffff;
  font-weight: 620;
}

.today-order small,
.today-session-main span {
  display: block;
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 12px;
}

.focus-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: center;
  flex: 1;
}

.donut-chart {
  position: relative;
  width: 230px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: var(--glow-cyan);
}

.donut-chart::after {
  content: "";
  position: absolute;
  width: 137px;
  height: 137px;
  border-radius: 50%;
  background: #070A13;
}

.donut-chart span,
.donut-chart small {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
}

.donut-chart span {
  transform: translateY(-8px);
  font-size: 32px;
  font-weight: 500;
}

.donut-chart small {
  margin-top: 46px;
  color: rgba(203, 213, 225, 0.78);
  font-size: 14px;
}

.donut-chart {
  background:
    conic-gradient(var(--focus-gradient, var(--primary) 0 100%));
}

.donut-chart {
  justify-self: center;
}

.focus-list {
  display: grid;
  gap: 13px;
  align-content: center;
}

.focus-list div {
  display: grid;
  grid-template-columns: 12px minmax(0, 0.82fr) 42px;
  gap: 10px;
  align-items: center;
  font-size: 15px;
  font-weight: 300;
  color: var(--text-secondary);
}

.focus-list i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
}

.focus-list strong {
  color: #F8FAFC;
  font-size: 14px;
  font-weight: 400;
}

.center-action {
  display: block;
  width: fit-content;
  margin: 18px auto 0;
}

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

.performance-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.review-summary,
.performance-grid div {
  position: relative;
  padding: 16px;
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 14px;
  background: rgba(7, 10, 19, 0.6);
}

.review-summary strong,
.review-summary span,
.review-summary small,
.performance-grid span {
  display: block;
}

.review-summary {
  min-height: 178px;
  overflow: hidden;
}

.review-summary strong {
  color: #ffffff;
  font-size: 16px;
  font-weight: 520;
}

.review-summary b {
  display: block;
  margin-top: 16px;
  color: #ffffff;
  font-size: 32px;
  font-weight: 520;
}

.review-summary span,
.review-summary small,
.performance-grid span {
  color: var(--text-secondary);
  font-size: 12px;
}

.review-summary-icon {
  display: block;
  position: absolute;
  right: 14px;
  bottom: 14px;
}

.review-divider {
  display: block;
  width: 18px;
  height: 2px;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8b5cf6, transparent);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.7);
}

.review-icon-svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.clock-review {
  stroke: #a855f7;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.85)) drop-shadow(0 0 18px rgba(168, 85, 247, 0.45));
}

.calendar-review {
  stroke: #3b82f6;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.85)) drop-shadow(0 0 18px rgba(59, 130, 246, 0.35));
}

.calendar-review text {
  fill: currentColor;
  stroke: none;
  font-size: 16px;
  font-weight: 700;
}

.weekly-review-icon {
  color: #60a5fa;
}

.monthly-review-icon {
  color: #f0abfc;
  stroke: #d946ef;
  filter: drop-shadow(0 0 8px rgba(217, 70, 239, 0.85)) drop-shadow(0 0 18px rgba(217, 70, 239, 0.42));
}

.performance-hero {
  position: relative;
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 16px;
  background: rgba(7, 10, 19, 0.58);
}

.performance-hero span,
.performance-hero small {
  display: block;
  color: var(--text-secondary);
}

.performance-hero strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 34px;
  font-weight: 620;
}

.line-chart {
  position: absolute;
  right: 16px;
  bottom: 18px;
  width: min(260px, 58%);
  height: 94px;
  overflow: visible;
}

.line-chart-path {
  fill: none;
  filter: url(#lineGlow);
  stroke: url(#lineChartGradient);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.line-chart-points circle {
  fill: #8b5cf6;
  filter: drop-shadow(0 0 8px rgba(217, 70, 239, 0.85));
  stroke: #d946ef;
  stroke-width: 1.5;
}

.positive-compare {
  color: var(--success) !important;
}

.negative-compare {
  color: var(--danger) !important;
}

.muted-compare {
  color: var(--muted) !important;
}

.success-text {
  color: var(--success) !important;
}

.danger-text {
  color: var(--danger) !important;
}

.streak-card {
  text-align: center;
}

.streak-card .card-title span:first-child::after {
  content: " \1F525";
}

.streak-ring {
  position: relative;
  width: 148px;
  height: 148px;
  margin: 2px auto 16px;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.08), transparent 64%);
  box-shadow: 0 0 34px rgba(217, 70, 239, 0.5), inset 0 0 24px rgba(139, 92, 246, 0.18);
}

.streak-ring::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(217, 70, 239, 0.28);
  border-radius: inherit;
  box-shadow: inset 0 0 18px rgba(217, 70, 239, 0.22);
}

.streak-ring .ring-track,
.streak-ring .ring-fill {
  stroke-width: 5;
}

.streak-ring .ring-fill {
  filter: drop-shadow(0 0 10px rgba(217, 70, 239, 1)) drop-shadow(0 0 18px rgba(139, 92, 246, 0.8));
}

.achievement-list {
  display: grid;
  gap: 14px;
}

.achievement-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
}

.achievement-item i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(6, 182, 212, 0.5);
  border-radius: 12px;
  color: var(--cyan);
  font-style: normal;
  font-weight: 700;
  box-shadow: var(--glow-cyan);
}

.achievement-item strong,
.achievement-item span {
  display: block;
}

.achievement-item span {
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 12px;
}

.motivation-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  align-items: center;
}

.motivation-orb {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 68% 24%, #ffffff, transparent 6%),
    radial-gradient(circle at 38% 44%, rgba(217, 70, 239, 0.95), transparent 26%),
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.62), rgba(6, 182, 212, 0.14) 70%, transparent 72%);
  box-shadow: var(--glow-purple);
}

.motivation-card p {
  margin: 0;
  color: #ffffff;
}

.motivation-card small {
  color: var(--muted);
}

.empty-neon {
  padding: 16px;
  border: 1px dashed rgba(139, 92, 246, 0.34);
  border-radius: 14px;
  background: rgba(7, 10, 19, 0.44);
}

.empty-neon strong {
  color: #ffffff;
}

.placeholder-panel {
  min-height: 300px;
}

input,
select,
textarea {
  background: rgba(7, 10, 19, 0.72);
  color: var(--ink);
  border-color: rgba(139, 92, 246, 0.24);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(139, 92, 246, 0.28);
  border-color: rgba(217, 70, 239, 0.46);
}

.muted-box,
.day-input,
.bulk-import {
  background: rgba(7, 10, 19, 0.42);
  border-color: rgba(139, 92, 246, 0.18);
}

.day-col {
  background: rgba(7, 10, 19, 0.62);
}

.danger {
  background: rgba(244, 63, 94, 0.14);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.26);
}

body.focus-mode-open > .sidebar,
body.focus-mode-open > .app-shell {
  filter: blur(7px) brightness(0.52);
  transition: filter 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.focus-mode-open {
  overflow: hidden;
}

.focus-floating-button {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 36;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 60px;
  height: 60px;
  padding: 0 18px;
  border: 1px solid rgba(139, 92, 246, 0.48);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 20%, rgba(217, 70, 239, 0.28), transparent 35%),
    rgba(10, 14, 30, 0.88);
  color: #ffffff;
  box-shadow: 0 0 26px rgba(139, 92, 246, 0.42), 0 0 26px rgba(6, 182, 212, 0.22);
  cursor: pointer;
  transform: translateX(-50%);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.focus-floating-button:hover {
  border-color: rgba(6, 182, 212, 0.54);
  box-shadow: 0 0 34px rgba(139, 92, 246, 0.48), 0 0 36px rgba(6, 182, 212, 0.28);
  transform: translateX(-50%) translateY(-2px);
}

.focus-floating-button.attention {
  border-color: rgba(34, 211, 238, 0.82);
  background:
    radial-gradient(circle at 50% 20%, rgba(217, 70, 239, 0.38), transparent 38%),
    radial-gradient(circle at 50% 78%, rgba(6, 182, 212, 0.22), transparent 46%),
    rgba(10, 14, 30, 0.9);
  animation: focusFloatingAttention 1.9s ease-in-out infinite;
}

@keyframes focusFloatingAttention {
  0%, 100% {
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.44), 0 0 28px rgba(6, 182, 212, 0.28);
  }
  50% {
    box-shadow: 0 0 42px rgba(217, 70, 239, 0.62), 0 0 56px rgba(34, 211, 238, 0.48);
  }
}

.focus-floating-button.attention .floating-clock::before {
  animation: focusFloatingClockAttention 1.9s ease-in-out infinite;
}

@keyframes focusFloatingClockAttention {
  0%, 100% {
    box-shadow: 0 0 16px rgba(217, 70, 239, 0.58), 0 0 18px rgba(6, 182, 212, 0.3);
    opacity: 0.88;
  }
  50% {
    box-shadow: 0 0 24px rgba(217, 70, 239, 0.82), 0 0 28px rgba(6, 182, 212, 0.54);
    opacity: 1;
  }
}

.floating-clock {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 25px;
  color: transparent;
}

.floating-clock::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 2px solid rgba(248, 250, 252, 0.92);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.18), transparent 58%),
    conic-gradient(from -35deg, transparent 0 68deg, rgba(217, 70, 239, 0.95) 70deg 118deg, rgba(6, 182, 212, 0.95) 154deg 228deg, transparent 260deg 360deg);
  box-shadow: 0 0 16px rgba(217, 70, 239, 0.58), 0 0 18px rgba(6, 182, 212, 0.3);
  mask: radial-gradient(circle, transparent 0 52%, #000 54% 100%);
}

.floating-clock::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-left: 2px solid rgba(248, 250, 252, 0.94);
  border-bottom: 2px solid rgba(248, 250, 252, 0.94);
  border-radius: 0 0 0 2px;
  transform: translate(2px, -1px) rotate(-3deg);
  transform-origin: left bottom;
  filter: drop-shadow(0 0 8px rgba(248, 250, 252, 0.42));
}

.focus-floating-button strong {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.focus-overlay {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  padding: 36px clamp(20px, 4vw, 64px) 38px;
  overflow: hidden;
  color: #ffffff;
}

.focus-overlay.entering {
  animation: focusOverlayRise 760ms cubic-bezier(0.18, 0.84, 0.22, 1) both;
}

.focus-overlay-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 58%, rgba(139, 92, 246, 0.16), transparent 33%),
    radial-gradient(circle at 62% 54%, rgba(6, 182, 212, 0.11), transparent 31%),
    rgba(2, 5, 13, 0.9);
  backdrop-filter: blur(18px);
}

.focus-overlay-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 55%, black, transparent 72%);
  opacity: 0.22;
}

@keyframes focusOverlayRise {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.965);
    clip-path: circle(30px at 50% calc(100% - 54px));
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    clip-path: circle(145% at 50% 55%);
  }
}

.focus-close {
  position: fixed;
  top: 24px;
  left: auto;
  right: 42px;
  z-index: 4;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(248, 250, 252, 0.72);
  font-size: 26px;
  cursor: pointer;
  /* estilos existentes */
  transition: color 180ms ease,
    box-shadow 180ms ease, transform 180ms ease;
}

.focus-config-button {
  position: fixed;
  top: 24px;
  right: 96px;
  z-index: 4;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(248, 250, 252, 0.74);
  font-size: 18px;
  cursor: pointer;
  transition:  color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.focus-close,
.focus-config-button {
  box-sizing: border-box;
}

.focus-config-button:hover,
.focus-close:hover {
  color: #ffffff;
  border: 1px solid rgba(217, 70, 239, 0.46);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.26);
}

.focus-config-button:hover {
  transform: rotate(14deg);
}

.focus-close:hover {
  transform: rotate(0deg);
}

.focus-mode-selector {
  top: -8px;
  position: relative;
  z-index: 3;
  justify-self: center;
  display: inline-flex;
  gap: clamp(26px, 5vw, 82px);
  padding: 8px 16px;
}

.focus-mode-selector button {
  position: relative;
  border: 0;
  background: transparent;
  color: rgba(203, 213, 225, 0.68);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease;
}

.focus-mode-selector button.active {
  color: #ffffff;
}

.focus-mode-selector button:active {
  transform: translateY(1px) scale(0.98);
}

.focus-mode-selector button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -15px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8b5cf6, #d946ef);
  box-shadow: 0 0 16px rgba(217, 70, 239, 0.55);
}

.focus-return-message {
  position: fixed;
  top: 88px;
  left: 50%;
  z-index: 4;
  padding: 10px 14px;
  border: 1px solid rgba(6, 182, 212, 0.22);
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.1);
  color: #a5f3fc;
  font-size: 12px;
  transform: translateX(-50%);
}

.focus-stage {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  align-self: center;
  min-height: min(64vh, 620px);
  transform: translateY(-1vh);
}

.focus-stage::before {
  content: "";
  position: absolute;
  width: min(70vh, 690px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(6, 182, 212, 0.08) 35%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.focus-circle {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(245px, 38vh, 415px);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  overflow: visible;
  transform: translateZ(0);
  transition: filter 500ms ease, transform 500ms ease;
  isolation: isolate;
}

.focus-overlay.entering .focus-circle {
  animation: focusCircleBirth 820ms cubic-bezier(0.18, 0.84, 0.22, 1) both;
}

.focus-overlay.soft-shift .focus-circle {
  animation: focusSoftShift 360ms ease both;
}

.focus-overlay.soft-shift .focus-inner {
  animation: focusInnerShift 300ms ease both;
}

body.focus-mode-running .focus-circle {
  filter:
    drop-shadow(0 0 22px rgba(217, 70, 239, 0.14))
    drop-shadow(0 0 34px rgba(6, 182, 212, 0.08));
}

@keyframes focusCircleBirth {
  from {
    opacity: 0.35;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes focusSoftShift {
  0% {
    transform: scale(0.992);
    filter: drop-shadow(0 0 18px rgba(139, 92, 246, 0.24));
  }
  52% {
    transform: scale(1.012);
    filter: drop-shadow(0 0 30px rgba(217, 70, 239, 0.34)) drop-shadow(0 0 24px rgba(6, 182, 212, 0.2));
  }
  100% {
    transform: scale(1);
  }
}

@keyframes focusInnerShift {
  0% {
    opacity: 0.72;
    transform: translateY(3px) scale(0.992);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.focus-canvas,
.focus-disc {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transform: translateZ(0);
}

.focus-canvas {
  z-index: 2;
  inset: auto;
  top: -9%;
  left: -9%;
  width: 118%;
  height: 118%;
  mix-blend-mode: screen;
}

.focus-disc {
  z-index: 4;
  inset: 5%;
  border: 1px solid rgba(255,255,255,0.045);
  background:
    radial-gradient(circle at 50% 42%, rgba(10, 13, 28, 0.98) 0%, rgba(4, 6, 16, 0.995) 64%, #01030a 100%);
  box-shadow:
    inset 0 0 22px rgba(248, 250, 252, 0.018),
    inset 0 0 72px rgba(0, 0, 0, 0.88),
    0 0 28px rgba(139, 92, 246, 0.14);
}

body.focus-mode-running .focus-disc {
  animation: focusDiscBreath 6.8s ease-in-out infinite;
}

@keyframes focusDiscBreath {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      inset 0 0 22px rgba(248, 250, 252, 0.018),
      inset 0 0 72px rgba(0, 0, 0, 0.88),
      0 0 28px rgba(139, 92, 246, 0.14);
  }
  50% {
    transform: scale(1.006);
    box-shadow:
      inset 0 0 18px rgba(248, 250, 252, 0.034),
      inset 0 0 66px rgba(0, 0, 0, 0.82),
      0 0 12px rgba(248, 250, 252, 0.16),
      0 0 34px rgba(217, 70, 239, 0.16),
      0 0 42px rgba(6, 182, 212, 0.1);
  }
}

.focus-disc::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 1.4px;
  background:
    conic-gradient(
      from -90deg,
      rgba(217, 70, 239, 0.38),
      rgba(139, 92, 246, 0.18),
      rgba(10, 132, 255, 0.28),
      rgba(6, 182, 212, 0.22),
      rgba(217, 70, 239, 0.38)
    );
  filter: drop-shadow(0 0 7px rgba(139, 92, 246, 0.16)) drop-shadow(0 0 8px rgba(6, 182, 212, 0.09));
  opacity: 0.34;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.focus-overlay.finished .focus-circle {
  animation: focusFinish 720ms ease both;
}

@keyframes focusFinish {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.045);
  }
  100% {
    transform: scale(1);
  }
}

.focus-inner {
  position: relative;
  z-index: 8;
  display: grid;
  justify-items: center;
}

.focus-inner strong {
  color: #ffffff;
  font-size: clamp(46px, 6.6vw, 88px);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1;
  transition: color 180ms ease, text-shadow 180ms ease, filter 180ms ease;
}

.focus-inner strong:hover {
  color: #f8fafc;
  text-shadow: 0 0 14px rgba(248, 250, 252, 0.72), 0 0 28px rgba(6, 182, 212, 0.38), 0 0 42px rgba(217, 70, 239, 0.26);
  filter: brightness(1.08);
}

.focus-inner small {
  margin-top: 16px;
  color: #d946ef;
  font-size: clamp(13px, 1.5vw, 18px);
  font-weight: 500;
  letter-spacing: 0.16em;
}

.focus-check {
  display: grid;
  place-items: center;
  width: clamp(72px, 8vw, 112px);
  height: clamp(72px, 8vw, 112px);
  border: 2px solid rgba(34, 197, 94, 0.7);
  border-radius: 50%;
  color: #86efac;
  font-size: clamp(42px, 5vw, 64px);
  font-style: normal;
  box-shadow: 0 0 34px rgba(34, 197, 94, 0.28);
}

.focus-controls {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  margin-top: -108px;
  transform: translateY(-80px);
}

.focus-primary,
.focus-ghost,
.focus-round {
  border: 1px solid rgba(139, 92, 246, 0.42);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.14);
  color: #ffffff;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.focus-primary {
  min-width: 180px;
  min-height: 50px;
  padding: 0 26px;
  background: linear-gradient(135deg, #4c1d95, #7e22ce);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.34);
  font-size: 15px;
}

.focus-round {
  width: 62px;
  height: 62px;
  font-size: 24px;
  background: rgba(7, 10, 19, 0.6);
}

.focus-ghost {
  min-width: 112px;
  min-height: 48px;
  padding: 0 18px;
  background: rgba(7, 10, 19, 0.34);
  color: rgba(248, 250, 252, 0.76);
}

.focus-primary:hover,
.focus-ghost:hover,
.focus-round:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(217, 70, 239, 0.25);
}

.focus-primary:active,
.focus-ghost:active,
.focus-round:active {
  transform: translateY(0) scale(0.98);
}

.focus-controls [data-focus-action="start"],
.focus-controls [data-focus-action="start-break"],
.focus-controls [data-focus-action="next-pomodoro-cycle"],
.focus-controls [data-focus-action="pause-continue"],
.focus-controls [data-focus-action="finish"],
.focus-controls [data-focus-action="register"],
.focus-controls [data-focus-action="register-free-study"],
.focus-controls [data-focus-action="end-pomodoro-session"] {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  min-width: 62px;
  height: 62px;
  min-height: 62px;
  padding: 0;
  border-radius: 50%;
  font-size: 0;
  line-height: 0;
}

.focus-controls [data-focus-action="start"],
.focus-controls [data-focus-action="start-break"],
.focus-controls [data-focus-action="next-pomodoro-cycle"],
.focus-controls [data-focus-action="pause-continue"] {
  background: rgba(12, 16, 33, 0.68);
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.28), inset 0 0 18px rgba(139, 92, 246, 0.1);
}

.focus-controls [data-focus-action="finish"],
.focus-controls [data-focus-action="register"],
.focus-controls [data-focus-action="register-free-study"],
.focus-controls [data-focus-action="end-pomodoro-session"] {
  border-color: rgba(34, 197, 94, 0.62);
  background: rgba(6, 78, 59, 0.18);
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.22), inset 0 0 18px rgba(34, 197, 94, 0.1);
}

.focus-controls [data-focus-action="start"]::before,
.focus-overlay.paused .focus-controls [data-focus-action="pause-continue"]::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #f8fafc;
  filter: drop-shadow(0 0 10px rgba(217, 70, 239, 0.72));
}

.focus-controls [data-focus-action="start-break"]::before,
.focus-controls [data-focus-action="next-pomodoro-cycle"]::before {
  content: "";
  width: 21px;
  height: 27px;
  border-top: 3px solid #e9d5ff;
  border-bottom: 3px solid #7dd3fc;
  border-left: 2px solid rgba(232, 121, 249, 0.9);
  border-right: 2px solid rgba(96, 165, 250, 0.9);
  border-radius: 6px;
  box-shadow: 0 0 14px rgba(217, 70, 239, 0.62), 0 0 18px rgba(6, 182, 212, 0.42);
}

.focus-controls [data-focus-action="start-break"]::after,
.focus-controls [data-focus-action="next-pomodoro-cycle"]::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 19px;
  background: linear-gradient(180deg, rgba(217, 70, 239, 0.95), rgba(6, 182, 212, 0.95));
  clip-path: polygon(10% 0, 90% 0, 57% 45%, 90% 100%, 10% 100%, 43% 45%);
  filter: drop-shadow(0 0 9px rgba(217, 70, 239, 0.85)) drop-shadow(0 0 8px rgba(6, 182, 212, 0.65));
}

.focus-overlay.running .focus-controls [data-focus-action="pause-continue"]::before,
.focus-overlay.running .focus-controls [data-focus-action="pause-continue"]::after {
  content: "";
  width: 6px;
  height: 21px;
  border-radius: 999px;
  background: #f8fafc;
  box-shadow: 0 0 12px rgba(217, 70, 239, 0.7);
}

.focus-overlay.running .focus-controls [data-focus-action="pause-continue"]::before {
  transform: translateX(-5px);
}

.focus-overlay.running .focus-controls [data-focus-action="pause-continue"]::after {
  position: absolute;
  transform: translateX(5px);
}

.focus-controls [data-focus-action="finish"]::before,
.focus-controls [data-focus-action="register"]::before,
.focus-controls [data-focus-action="register-free-study"]::before,
.focus-controls [data-focus-action="end-pomodoro-session"]::before {
  content: "";
  width: 21px;
  height: 11px;
  border-left: 3px solid #86efac;
  border-bottom: 3px solid #86efac;
  border-radius: 0 0 0 2px;
  transform: translateY(-3px) rotate(-45deg);
  filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.8));
}

.focus-settings-panel {
  position: absolute;
  right: clamp(12px, 7vw, 86px);
  top: 50%;
  z-index: 5;
  display: grid;
  gap: 14px;
  width: min(350px, calc(100vw - 34px));
  padding: 22px;
  border: 1px solid rgba(139, 92, 246, 0.26);
  border-radius: 18px;
  background: rgba(10, 14, 30, 0.88);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38), 0 0 30px rgba(139, 92, 246, 0.16);
  backdrop-filter: blur(18px);
  transform: translateY(-50%);
  animation: focusSettingsIn 220ms ease both;
}

@keyframes focusSettingsIn {
  from {
    opacity: 0;
    transform: translateY(-48%) translateX(14px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

.focus-settings-panel strong {
  font-size: 15px;
  font-weight: 700;
}

.focus-settings-panel small {
  color: rgba(203, 213, 225, 0.74);
  font-size: 12px;
}

.focus-audio-panel {
  width: min(430px, calc(100vw - 34px));
}

.focus-settings-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
}

.focus-time-fields {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 10px;
}

.focus-time-fields b {
  padding-top: 14px;
  color: rgba(248, 250, 252, 0.72);
}

.focus-time-fields label {
  display: grid;
  gap: 7px;
  text-align: center;
}

.focus-time-fields input {
  min-height: 52px;
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 22px;
  text-align: center;
}

.focus-time-fields span {
  color: rgba(203, 213, 225, 0.62);
  font-size: 10px;
}

.focus-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.focus-suggestions button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(139, 92, 246, 0.16);
  border-radius: 10px;
  background: rgba(7, 10, 19, 0.42);
  color: rgba(248, 250, 252, 0.82);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.focus-suggestions button.active {
  border-color: rgba(139, 92, 246, 0.6);
  background: linear-gradient(135deg, #4c1d95, #7e22ce);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.24);
}

.focus-suggestions button:active,
.focus-confirm:active {
  transform: scale(0.98);
}

.focus-confirm {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #581c87, #6d28d9);
  color: #ffffff;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.focus-confirm:hover {
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.32);
}

.focus-sound-master {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 12px;
  background: rgba(7, 10, 19, 0.34);
  color: rgba(248, 250, 252, 0.86);
  font-size: 13px;
}

.focus-sound-master input {
  width: auto;
  accent-color: #8b5cf6;
}

.focus-volume-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  color: rgba(203, 213, 225, 0.78);
  font-size: 12px;
}

.focus-volume-row input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: #8b5cf6;
}

.focus-volume-row b {
  color: #f8fafc;
  font-size: 12px;
  font-weight: 600;
}

.focus-sound-options {
  display: grid;
  gap: 10px;
}

.focus-sound-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.focus-sound-row label {
  display: grid;
  gap: 6px;
}

.focus-sound-row span {
  color: rgba(203, 213, 225, 0.74);
  font-size: 12px;
}

.focus-sound-row select {
  min-height: 38px;
  width: 100%;
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 10px;
  background: rgba(7, 10, 19, 0.56);
  color: #f8fafc;
  padding: 0 10px;
}

.focus-test-sound {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(6, 182, 212, 0.22);
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.08);
  color: #a5f3fc;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.focus-test-sound:hover,
.focus-test-sound.tested {
  border-color: rgba(34, 197, 94, 0.44);
  color: #bbf7d0;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.18);
}

.focus-test-sound:active {
  transform: scale(0.97);
}

body.focus-registering .modal-backdrop {
  z-index: 45;
  background: rgba(3, 7, 18, 0.42);
  backdrop-filter: blur(10px);
}

body.focus-registering .modal {
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 18px;
  background: rgba(13, 16, 32, 0.88);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.18), 0 26px 80px rgba(0, 0, 0, 0.42);
}

body.focus-registering .focus-overlay {
  z-index: 40;
}

@media (max-width: 900px) {
  .focus-overlay {
    padding: 28px 18px 30px;
  }

  @media (max-width: 900px) {
  .focus-controls {
    transform: translateY(-48px);
  }
}

  .focus-mode-selector {
    gap: 26px;
  }

  .focus-circle {
    width: min(82vw, 460px);
  }

  .focus-settings-panel {
    inset: auto 16px 104px;
    width: auto;
    transform: none;
  }
}

@media (max-width: 1120px) {
  body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    min-height: auto;
  }

  #nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-footer {
    display: none;
  }

  .dashboard-lower {
    grid-template-columns: 1fr;
  }

  .home-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar,
  .section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .grid.cols-2,
  .form-grid,
  .availability-grid {
    grid-template-columns: 1fr;
  }

  .edital-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edital-workspace {
    grid-template-columns: 1fr;
  }

  .edital-details-form {
    position: static;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 18px;
  }

  .brand {
    padding-bottom: 14px;
  }

  #nav {
    grid-template-columns: 1fr;
  }

  .neon-primary {
    width: 100%;
  }

  .home-stats,
  .dashboard-content,
  .review-summary-grid,
  .performance-grid,
  .focus-layout,
  .edital-metrics {
    grid-template-columns: 1fr;
  }

  .edital-head,
  .edital-detail-top {
    flex-direction: column;
  }

  .edital-tree-head {
    display: none;
  }

  .edital-topic-row {
    grid-template-columns: 1fr;
  }

  .edital-subtopic-row {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .edital-subtopic-row .status-dot,
  .edital-subtopic-row .ghost {
    display: none;
  }

  .today-session {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .donut-chart {
    margin: 0 auto;
  }

  .motivation-card {
    grid-template-columns: 1fr;
  }

}

/* Overrides finais da aba Edital */
.edital-page.edital-refined {
  gap: 0;
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
}

.edital-head-refined {
  align-items: center;
}

.edital-layout-refined {
  grid-template-columns: minmax(760px, 1fr) minmax(360px, 420px);
  gap: 16px;
  align-items: start;
}

.edital-left-zone {
  gap: 14px;
  min-width: 0;
}

.edital-metrics.edital-metrics-refined {
  grid-template-columns: repeat(5, minmax(118px, 1fr));
  gap: 10px;
}

.edital-metrics-refined .edital-metric {
  min-height: 92px;
  padding: 13px 14px;
  border-radius: 10px;
}

.edital-metric-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  background: rgba(139, 92, 246, 0.13);
  color: #a78bfa;
  font-size: 13px;
  font-style: normal;
}

.edital-metric.green .edital-metric-icon { color: #34d399; background: rgba(34, 197, 94, 0.1); }
.edital-metric.blue .edital-metric-icon { color: #22d3ee; background: rgba(6, 182, 212, 0.1); }
.edital-metric.magenta .edital-metric-icon { color: #f472b6; background: rgba(217, 70, 239, 0.1); }
.edital-metric.danger .edital-metric-icon { color: #fb7185; background: rgba(244, 63, 94, 0.1); }
.edital-metric.amber .edital-metric-icon { color: #fbbf24; background: rgba(250, 204, 21, 0.1); }

.edital-metrics-refined .edital-metric-content small span {
  font-size: 14px !important;
  font-weight: 600 !important;
}

.edital-metrics-refined .edital-metric-content small {
  font-size: 14px !important;
  font-weight: 600 !important;
  font-style: normal;
  color: #cbd5e1;
}

.edital-metrics-refined .edital-metric-content b {
  font-size: 14px !important;
  font-weight: 600 !important;
}

.edital-metrics-refined .edital-metric strong {
  margin: 7px 0 3px;
  font-size: 25px;
  font-weight: 440;
}

.edital-workspace.edital-workspace-refined {
  grid-template-columns: 282px minmax(0, 1fr);
  gap: 12px;
}

.edital-discipline-rail,
.edital-detail-card-refined,
.edital-side-panel-refined .edital-details-form {
  border-radius: 10px;
}

.edital-discipline-rail {
  padding: 12px;
}

.edital-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 10px;
}

.edital-search {
  position: relative;
  display: block;
}

.edital-search span {
  position: absolute;
  left: 10px;
  top: 50%;
  z-index: 1;
  color: #94a3b8;
  transform: translateY(-50%);
}

.edital-search input {
  width: 100%;
  min-height: 38px;
  padding-left: 32px;
}

.edital-add-discipline-button {
  min-height: 38px;
  padding-inline: 12px;
  white-space: nowrap;
}

.edital-inline-create {
  margin-bottom: 10px;
}

.edital-inline-create input {
  width: 100%;
  border-color: rgba(217, 70, 239, 0.42);
  background: rgba(76, 29, 149, 0.12);
}

.edital-discipline-card {
  padding: 13px 14px;
  border-radius: 9px;
}

.edital-discipline-card.active {
  border-color: rgba(168, 85, 247, 0.9);
  background:
    linear-gradient(135deg, rgba(88, 28, 135, 0.44), rgba(15, 23, 42, 0.8)),
    radial-gradient(circle at top left, rgba(217, 70, 239, 0.22), transparent 42%);
  box-shadow: inset 0 0 0 1px rgba(217, 70, 239, 0.12), 0 0 28px rgba(139, 92, 246, 0.22);
}

.edital-discipline-card strong {
  font-size: 14px;
  font-weight: 620;
  line-height: 1.24;
}

.edital-discipline-card i,
.pill {
  padding: 3px 7px;
  font-size: 10.5px;
  font-weight: 520;
}

.edital-detail-card-refined {
  padding: 14px 16px;
  overflow: hidden;
}

.edital-detail-card-refined h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 620;
}

.edital-card-actions {
  display: inline-flex;
  gap: 8px;
}

.edital-discipline-stats {
  margin: 14px -16px 10px;
  padding: 12px 16px;
}

.edital-discipline-stats span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 560;
}

.edital-discipline-stats i {
  color: #facc15;
  font-style: normal;
  text-shadow: 0 0 12px rgba(250, 204, 21, 0.35);
}

.edital-discipline-stats strong {
  font-size: 21px;
  font-weight: 430;
}

.edital-tree-area-refined .edital-tree-head,
.edital-topic-row-refined {
  grid-template-columns: minmax(250px, 1fr) 92px 92px 118px 34px;
  gap: 8px;
}

.edital-tree-area-refined .edital-tree-head {
  display: grid;
  padding: 8px 9px;
  font-size: 10.5px;
}

.edital-topic-row-refined {
  padding: 6px 9px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 0;
  background: rgba(10, 14, 28, 0.44);
}

.edital-topic-main input,
.edital-subtopic-row input,
.edital-incidence-cell input {
  min-height: 28px;
  border-color: transparent;
  background: transparent;
  color: #e5e7eb;
  font-weight: 460;
}

.edital-incidence-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.edital-incidence-cell input {
  width: 46px;
  padding: 4px 2px;
  text-align: right;
}

.edital-subtopics {
  gap: 1px;
  margin: 2px 0 0 38px;
  padding-left: 15px;
}

.edital-subtopic-row {
  display: grid;
  grid-template-columns: auto 54px minmax(160px, 1fr) 118px 34px;
  min-height: 32px;
  padding-block: 1px;
}

.edital-add-line {
  width: 100%;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px dashed rgba(168, 85, 247, 0.66);
  border-radius: 8px;
  background: rgba(88, 28, 135, 0.08);
  color: #d8b4fe;
}

.edital-details-form-refined {
  gap: 14px;
  min-height: 640px;
  padding: 17px;
  border-radius: 10px;
}

.edital-tabs button {
  min-height: 42px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 460;
}

.edital-tabs button.active {
  border-bottom-color: #d946ef;
  color: #e879f9;
}

.edital-panel-form,
.edital-form-card {
  display: grid;
  gap: 14px;
}

.edital-form-card {
  padding: 15px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  background: rgba(7, 10, 19, 0.42);
}

.edital-form-card h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 620;
}

.edital-tips b {
  color: #facc15;
  font-weight: 650;
}

.edital-page input[type="range"] {
  display: none;
}

@media (max-width: 1500px) {
  .edital-layout-refined {
    grid-template-columns: 1fr;
  }

  .edital-side-panel-refined .edital-details-form {
    position: static;
    min-height: 0;
  }
}

@media (max-width: 980px) {
  .edital-metrics.edital-metrics-refined,
  .edital-workspace.edital-workspace-refined {
    grid-template-columns: 1fr;
  }

  .edital-tree-area-refined .edital-tree-head,
  .edital-topic-row-refined {
    grid-template-columns: minmax(180px, 1fr) 74px 72px 94px 30px;
  }
}

/* Ajustes finais definitivos mvp81 */
.edital-discipline-card .discipline-pill-row i:not(.weight) {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #aab7cc !important;
}

.edital-discipline-card .discipline-pill-row i:not(.weight) b,
.edital-discipline-card .discipline-pill-row i.weight b {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #f8fafc !important;
  text-shadow: none !important;
}

.edital-tree-area-refined .edital-tree-head,
.edital-topic-row-refined,
.edital-subtopic-row {
  grid-template-columns: minmax(250px, 1fr) 98px 96px 118px 34px !important;
  column-gap: 8px !important;
  align-items: center !important;
}

.edital-tree-area-refined .edital-tree-head span:nth-child(2),
.edital-tree-area-refined .edital-tree-head span:nth-child(3),
.edital-incidence-cell,
.edital-priority-empty,
.edital-incidence-dash {
  justify-self: center !important;
}

.edital-tree-area-refined .edital-tree-head span:nth-child(4),
.edital-subtopic-row .status-dot,
.edital-topic-row-refined > .status-dot {
  justify-self: start !important;
  text-align: left !important;
  white-space: nowrap !important;
}

.edital-incidence-cell {
  min-width: 0 !important;
}

.edital-incidence-cell {
  gap: 0 !important;
}

.edital-incidence-cell input {
  width: 45px !important;
  padding-right: 0 !important;
}

.edital-incidence-cell span {
  margin-left: 0 !important;
}

.edital-incidence-cell input::-webkit-outer-spin-button,
.edital-incidence-cell input::-webkit-inner-spin-button {
  margin: 0 !important;
  opacity: 1 !important;
  -webkit-appearance: auto !important;
}

.edital-incidence-cell input {
  appearance: auto !important;
  -moz-appearance: auto !important;
}

.edital-subtopic-row {
  padding: 0 9px !important;
}

.edital-subtopic-main {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  min-width: 0 !important;
}

/* Polimento definitivo mvp83 da tabela do edital */
.edital-discipline-card .discipline-pill-row {
  align-items: center !important;
}

.edital-discipline-card .discipline-pill-row i {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  line-height: 1 !important;
}

.edital-discipline-card .discipline-pill-row i b {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
  transform: none !important;
}

.edital-tree-area-refined .edital-tree-head,
.edital-topic-row-refined,
.edital-subtopic-row {
  grid-template-columns: minmax(250px, 1fr) 98px 96px 120px 58px !important;
}

.edital-topic-row-refined > .status-dot,
.edital-subtopic-row > .status-dot {
  justify-self: start !important;
  align-self: center !important;
}

.topic-action-stack,
.edital-subtopic-row > .danger-soft {
  justify-self: center !important;
  align-self: center !important;
}

.topic-action-stack {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  min-width: 52px !important;
}

.topic-action-stack .icon-only,
.edital-subtopic-row > .icon-only {
  width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 !important;
}

.topic-delete-button {
  opacity: 0.28 !important;
}

.edital-topic-row-refined:hover .topic-delete-button,
.topic-delete-button:focus-visible {
  opacity: 0.9 !important;
}

.edital-subtopic-row .edital-subtopic-main {
  grid-column: 1 / 4 !important;
}

.edital-subtopic-row .edital-priority-empty,
.edital-subtopic-row .edital-incidence-dash {
  display: none !important;
}

.edital-incidence-cell {
  gap: 1px !important;
}

.edital-incidence-cell input {
  width: 42px !important;
}

.edital-incidence-cell span {
  margin-left: 1px !important;
}

.edital-incidence-cell input::-webkit-outer-spin-button,
.edital-incidence-cell input::-webkit-inner-spin-button {
  opacity: 0 !important;
  -webkit-appearance: auto !important;
  transition: opacity 0.14s ease !important;
}

.edital-incidence-cell:hover input::-webkit-outer-spin-button,
.edital-incidence-cell:hover input::-webkit-inner-spin-button,
.edital-incidence-cell input:focus::-webkit-outer-spin-button,
.edital-incidence-cell input:focus::-webkit-inner-spin-button {
  opacity: 1 !important;
}

.edital-incidence-cell input {
  appearance: auto !important;
  -moz-appearance: textfield !important;
}
/* Home: ajustes consolidados do topo e Progresso do Edital */
.topbar {
  margin-bottom: 0 !important;
}

.dashboard-grid {
  position: relative;
  gap: 18px !important;
}

.dashboard-grid > .page-context-head,
.panel > .page-context-head,
.edital-page > .page-context-head {
  margin-bottom: 0;
}

.home-head {
  align-items: center;
}

.home-head .page-context-actions,
.edital-head-refined .page-context-actions {
  align-self: center;
}


@media (min-width: 981px) {
  .edital-head-refined .page-context-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .edital-head-refined .page-context-actions > button {
    white-space: nowrap;
  }
}

.edital-head-refined.page-context-head .page-context-copy h2,
.questions-header.page-context-head .page-context-copy h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 620;
  line-height: 1.1;
  letter-spacing: 0;
}

.edital-head-refined.page-context-head .page-context-copy p,
.questions-header.page-context-head .page-context-copy p {
  margin: 0;
  color: #94a3b8;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.questions-header.page-context-head {
  min-height: auto;
}

.edital-head-refined.page-context-head,
.edital-head-refined.page-context-head .page-context-title-lockup,
.edital-head-refined.page-context-head .page-context-copy,
.edital-head-refined.page-context-head .page-context-copy h2,
.edital-head-refined.page-context-head .page-context-copy p {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.edital-head-refined.page-context-head .page-context-title-lockup {
  transform: translateY(15px);
}

.edital-head-refined.page-context-head .page-context-copy h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 620;
  line-height: 1.1;
}

.edital-head-refined.page-context-head .page-context-copy p {
  margin: 0;
  color: #94a3b8;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.home-start-session,
.home-exam-selector {
  width: 170px;
  min-width: 170px;
  max-width: 170px;
  height: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 8px;
  box-shadow: 0 0 14px rgba(217, 70, 239, 0.22);
  font-size: 15px;
  font-weight: 450;
}

.home-exam-selector {
  padding: 9px 12px;
  border-color: rgba(139, 92, 246, 0.28);
  background: rgba(5, 8, 18, 0.72);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0;
}

.plan-week-range {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 12px;
  background: rgba(8, 10, 20, 0.36);
}

.plan-week-range h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 560;
}

.plan-week-range p {
  margin: 0;
  color: #94a3b8;
}

.home-start-session svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.edital-head-refined .page-context-actions .edital-context-selector {
  width: 176px;
  min-width: 176px;
  max-width: 176px;
  height: 38px;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 450;
  letter-spacing: 0;
}

.exam-context-selector {
  width: 176px;
  min-width: 176px;
  max-width: 176px;
  height: 38px;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.28);
  background: rgba(5, 8, 18, 0.72);
  color: var(--ink);
  font-size: 13px;
  font-weight: 520;
  letter-spacing: 0;
  box-shadow: none !important;
}

.edital-head-refined .page-context-actions > button {
  height: 38px;
  min-height: 38px;
  border-radius: 8px;
  font-weight: 620;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  padding: 0 16px;
}

.exam-manager-drawer-backdrop--centered {
  justify-content: center;
  animation: none !important;
}

.exam-manager-drawer.ds-app-drawer {
  width: min(760px, calc(100vw - 48px));
  height: min(760px, calc(100vh - 64px));
  border-color: rgba(139, 92, 246, 0.34);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.56), 0 0 36px rgba(139, 92, 246, 0.12);
  animation: none !important;
}

.exam-manager-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--card-border);
}

.exam-manager-toolbar > div {
  display: grid;
  gap: 4px;
}

.exam-manager-toolbar strong {
  color: var(--ink);
  font-size: 16px;
}

.exam-manager-toolbar span,
.exam-manager-card-meta,
.exam-manager-empty p {
  color: var(--muted);
  font-size: 13px;
}

.exam-manager-list {
  display: grid;
  gap: 12px;
  padding-top: 18px;
}

.exam-manager-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--card-1), var(--card-2));
}

.exam-manager-card.is-active {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: inset 3px 0 0 rgba(6, 182, 212, 0.9), 0 0 20px rgba(6, 182, 212, 0.08);
}

.exam-manager-card-copy,
.exam-manager-card-title-row,
.exam-manager-card-meta,
.exam-manager-card-actions {
  min-width: 0;
}

.exam-manager-card-copy {
  display: grid;
  gap: 9px;
}

.exam-manager-card-title-row,
.exam-manager-card-meta,
.exam-manager-card-actions {
  display: flex;
  align-items: center;
}

.exam-manager-card-title-row {
  gap: 9px;
}

.exam-manager-card-title-row strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exam-manager-active-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.85);
}

.exam-manager-card-meta {
  flex-wrap: wrap;
  gap: 7px 14px;
}

.exam-manager-card-meta span + span::before {
  content: "•";
  margin-right: 14px;
  color: rgba(148, 163, 184, 0.55);
}

.exam-manager-card-actions {
  justify-content: flex-end;
  gap: 8px;
}

.exam-manager-active-badge {
  white-space: nowrap;
}

.exam-manager-empty,
.edital-first-exam-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 48px 24px;
  text-align: center;
}

.exam-manager-empty-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.12);
  color: #c084fc;
  font-size: 27px;
}

.exam-manager-empty strong {
  color: var(--ink);
  font-size: 18px;
}

.exam-manager-empty p {
  max-width: 470px;
  margin: 0;
  line-height: 1.55;
}

.exam-manager-form-grid {
  align-content: start;
}

.edital-first-exam-empty {
  min-height: 320px;
  margin-top: 66px;
}

@media (max-width: 720px) {
  .exam-manager-drawer-backdrop--centered {
    align-items: flex-end;
    padding: 0;
  }

  .exam-manager-drawer.ds-app-drawer {
    width: 100vw;
    height: min(92vh, 760px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 16px 16px 0 0;
  }

  .exam-manager-toolbar,
  .exam-manager-card {
    align-items: stretch;
  }

  .exam-manager-toolbar,
  .exam-manager-card {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .exam-manager-toolbar .ds-action-button {
    width: 100%;
  }

  .exam-manager-card-actions {
    justify-content: stretch;
  }

  .exam-manager-card-actions > * {
    flex: 1 1 0;
  }
}

.page-context-actions > button,
.page-context-actions > select {
  height: 38px;
  min-height: 38px;
  font-weight: 450;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 0.35;
  padding: 0 16px;
}

.home-exam-selector.exam-context-selector,
.page-context-actions > select.exam-context-selector,
.edital-head-refined .page-context-actions .edital-context-selector.exam-context-selector {
  width: 176px;
  min-width: 176px;
  max-width: 320px;
  height: 38px;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 8px;
  background: rgba(5, 8, 18, 0.72);
  color: var(--ink);
  font-family: "Bahnschrift", "Arial Narrow", "Roboto Condensed", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 350;
  letter-spacing: 0;
  box-shadow: none !important;
}

.edital-head-refined .page-context-actions .edital-context-selector.exam-context-selector:disabled {
  width: min(240px, 100%);
  min-width: 0;
  max-width: 240px;
}

@media (max-width: 900px) {
  .edital-head-refined .page-context-actions .edital-context-selector.exam-context-selector:disabled {
    width: calc((100% - 8px) / 2);
    max-width: none;
  }
}

.edital-progress-banner {
  width: min(900px, 100%) !important;
  max-width: 900px !important;
  grid-template-columns: 215px minmax(360px, 1fr) 240px !important;
  gap: 16px !important;
  height: 124px !important;
  min-height: 124px !important;
  margin: -66px auto 0 !important;
  padding: 14px 20px !important;
  align-items: center !important;
}

.dashboard-grid > .edital-progress-banner {
  margin: -94px auto 0 !important;
}

.edital-progress-left,
.edital-progress-right {
  align-content: center !important;
}

.edital-progress-left strong,
.edital-progress-right strong {
  font-size: clamp(28px, 2.35vw, 34px) !important;
}

.edital-progress-left small {
  white-space: nowrap !important;
  font-size: 12px !important;
}

.edital-progress-right {
  transform: translateY(-8px) !important;
}

.edital-progress-right strong {
  margin-top: 2px !important;
}

.edital-progress-right p {
  max-width: 236px !important;
  font-size: 12px !important;
  line-height: 1.22 !important;
}

.edital-progress-right small {
  max-width: 236px !important;
  font-size: 11.5px !important;
}

.edital-progress-right small span,
.edital-progress-right small svg {
  width: 20px !important;
  height: 20px !important;
}

.edital-progress-right small svg {
  stroke-width: 2 !important;
}

.edital-progress-center {
  transform: translateY(-7px) !important;
}

.edital-progress-visual {
  grid-template-columns: 78px minmax(270px, 1fr) !important;
  gap: 16px !important;
  transform: translateY(-6px) !important;
}

.edital-progress-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 78px !important;
  height: 78px !important;
  align-self: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(5, 8, 18, 0.96) 0 54%, transparent 55%),
    radial-gradient(circle, rgba(139, 92, 246, 0.12), transparent 72%);
}

.edital-progress-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}

.edital-banner-ring-track,
.edital-banner-ring-fill {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
}

.edital-banner-ring-track {
  stroke: rgba(139, 92, 246, 0.18);
}

.edital-banner-ring-fill {
  stroke: url(#editalBannerProgressGradient);
  filter: url(#editalBannerProgressGlow);
}

.edital-progress-ring span {
  position: relative;
  z-index: 1;
  color: #f8fafc;
  font-size: 16px;
  font-weight: 520;
  line-height: 1;
  text-shadow: 0 0 12px rgba(248, 250, 252, 0.2);
}

.segment-track {
  grid-template-columns: repeat(34, minmax(4px, 1fr)) !important;
  gap: 4px !important;
  min-height: 19px !important;
}

.segment-track i {
  height: 18px !important;
}

.segment-labels::after {
  left: var(--marker) !important;
}

.home-stats {
  gap: 14px !important;
}

.home-stats .neon-card,
.home-stats .stat-neon,
.home-stats .progress-card,
.home-stats .next-session-card,
.home-stats .review-today-card {
  height: 226px !important;
  min-height: 226px !important;
}

.home-stats .next-session-card {
  display: flex !important;
  flex-direction: column !important;
}

.home-stats .progress-ring.ring-svg {
  width: 154px !important;
  height: 154px !important;
  margin-top: 0 !important;
}

.home-stats .progress-ring .ring-content strong {
  font-size: 31px !important;
}

.home-stats .progress-ring .ring-content span {
  font-size: 10.5px !important;
}

.home-stats .card-title {
  margin-bottom: 12px !important;
}

.home-stats .next-session-card,
.home-stats .next-session-card > strong,
.home-stats .next-session-card > p,
.home-stats .next-session-card .session-tag,
.home-stats .next-session-card .duration-badge,
.home-stats .next-session-card button {
  font-family: "Bahnschrift", "Arial Narrow", "Roboto Condensed", "Segoe UI", system-ui, sans-serif !important;
  letter-spacing: 0 !important;
}

.home-stats .next-session-card > strong {
  font-size: 17px !important;
  line-height: 1.22 !important;
  font-weight: 700 !important;
  margin-top: 4px !important;
}

.home-stats .next-session-card > p {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  overflow: hidden !important;
  margin-top: 6px !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  font-weight: 400 !important;
}

.home-stats .next-session-card .card-action-row,
.home-stats .review-today-card .card-action-row {
  padding-top: 14px !important;
}

.home-stats .review-today-card .card-action-row {
  padding-top: 18px !important;
}

.home-stats .empty-neon {
  padding: 12px !important;
}

.home-stats .empty-neon strong {
  font-size: 14px !important;
  line-height: 1.22 !important;
}

.home-stats .empty-neon p {
  font-size: 12.5px !important;
  line-height: 1.25 !important;
}

.settings-danger-zone .plan-small-action {
  min-width: 128px;
}

@media (max-width: 1450px) {
  .edital-progress-banner {
    width: min(820px, 100%) !important;
    max-width: min(820px, 100%) !important;
    grid-template-columns: 190px minmax(310px, 1fr) 210px !important;
    height: 124px !important;
    min-height: 124px !important;
    margin: -18px auto 0 !important;
    transform: translateX(92px) !important;
  }

  .edital-progress-left small {
    white-space: normal !important;
  }

  .edital-progress-right p {
    max-width: 210px !important;
  }
}
/* Topo em coluna e progresso do edital mais clean */
.segment-labels::after {
  display: none !important;
}

@media (max-width: 760px) {
  .home-start-session,
  .home-exam-selector {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .edital-progress-banner {
    padding: 20px;
  }

  .edital-progress-visual {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .edital-progress-segments {
    width: 100%;
  }

  .segment-track {
    gap: 4px;
  }

  .segment-track i {
    height: 24px;
  }

  .settings-danger-zone {
    align-items: stretch;
    flex-direction: column;
  }
}

.edital-tree-area-refined .edital-tree-head,
.edital-topic-row-refined,
.edital-subtopic-row {
  grid-template-columns: minmax(240px, 1fr) 86px 84px 116px 42px !important;
  column-gap: 8px !important;
}

.edital-topic-row-refined > .status-dot,
.edital-subtopic-row > .status-dot {
  grid-column: 4 !important;
  justify-self: start !important;
  width: 116px !important;
  min-width: 116px !important;
  text-align: left !important;
  white-space: nowrap !important;
}

.edital-subtopic-row .edital-subtopic-main {
  grid-column: 1 !important;
  min-width: 0 !important;
}

.edital-subtopic-row > .danger-soft {
  grid-column: 5 !important;
  justify-self: center !important;
}

/* Aba Questões */
.questions-page {
  padding: 0;
}

.questions-header .page-context-actions {
  display: grid;
  grid-template-columns: auto minmax(150px, 170px) auto minmax(190px, auto);
  align-items: center;
  align-self: center;
  gap: 10px;
  justify-content: end;
  max-width: 100%;
  transform: translateY(55px);
}

.questions-header .page-context-actions select,
.questions-page select {
  border: 1px solid rgba(139, 92, 246, 0.26);
  border-radius: 10px;
  background: rgba(7, 10, 19, 0.72);
  color: #f8fafc;
}

.questions-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
}

/* Novo css para os novos questions-highlight-cards */
.question-highlight-card .highlight-title {
  margin-top: 6px;
  font-size: 18px;
}

.question-highlight-card .highlight-subtitle {
  margin: 4px 0 8px;
  color: rgba(203, 213, 225, 0.72);
  font-size: 13px;
}

.question-highlight-card .highlight-result {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
}

.question-highlight-card .highlight-result strong {
  margin: 0;
  color: #06b6d4;
  font-size: 34px;
  line-height: 1;
  text-shadow: 0 0 18px rgba(6, 182, 212, 0.38);
}

.question-highlight-card .highlight-result span {
  color: rgba(203, 213, 225, 0.78);
  font-size: 13px;
}

.question-highlight-card .highlight-questions {
  margin: 6px 0 0;
  color: rgba(148, 163, 184, 0.78);
  font-size: 14px;
}

.questions-stat-card {
  min-height: 132px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  padding: 18px;
}

.questions-stat-body {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
}

.questions-stat-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #c084fc;
  background: rgba(139, 92, 246, 0.14);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.18);
}

.questions-stat-card svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.questions-stat-card.target > span {
  color: #8b5cf6;
}

.questions-stat-card.trophy > span {
  color: #90EE90;
}

.questions-stat-card.alert > span {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.12);
}

.questions-stat-body > small,
.questions-card h3 {
  display: block;
  color: rgba(248, 250, 252, 0.88);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0;
}

.questions-stat-card strong {
  display: block;
  margin-top: 6px;
  color: #f8fafc;
  font-size: 29px;
  font-weight: 640;
  line-height: 1.05;
}

.weekly-questions-card .questions-stat-body > strong,
.questions-stat-card.target .questions-stat-body > strong {
  margin-top: 15px;
}

.questions-stat-card p {
  margin: 8px 0 0;
  color: rgba(203, 213, 225, 0.72);
  font-size: 14px;
}

.questions-stat-card em {
  display: inline-flex;
  margin-top: 0px;
  color: #22c55e;
  font-size: 13px;
  font-style: normal;
}

.chart-card .questions-card-head h3 {
  font-size: 13px;
  font-weight: 500;
  position: relative;
  top: -6px;
}

.questions-main-grid {
  grid-template-columns: minmax(0, 1.7fr) minmax(350px, 1.6fr) minmax(220px, 0.9fr);
  align-items: stretch;
}

.questions-card {
  padding: 16px;
}

.questions-page .questions-card.ds-card {
  border-color: rgba(139, 92, 246, 0.24);
  background:
    radial-gradient(circle at 16% 0%, rgba(139, 92, 246, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(18, 22, 42, 0.88), rgba(6, 10, 24, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 20px 50px rgba(0, 0, 0, 0.18);
}

.questions-card-head {
  margin-bottom: 12px;
}

.questions-card h3 {
  margin: 0;
}

.questions-card p {
  margin: 8px 0 14px;
  color: rgba(203, 213, 225, 0.74);
  font-size: 13px;
  line-height: 1.45;
}

.span-2 {
  grid-column: span 2;
}

.questions-chart-wrap {
  min-height: 288px;
}

.questions-line-chart {
  min-height: 260px;
  flex: 1;
}

.questions-line-chart line {
  stroke: rgba(148, 163, 184, 0.11);
  stroke-width: 1;
}

.questions-line-chart .line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px currentColor);
}

.questions-line-chart .line.questions {
  color: #8b5cf6;
  stroke: #8b5cf6;
  fill: none;
}

.questions-line-chart .dot.questions {
  stroke: #8b5cf6;
  fill: #8b5cf6;
}

.questions-line-chart .line.accuracy {
  color: #06b6d4;
  stroke: #06b6d4;
  fill: none;
}

.questions-line-chart .dot.accuracy {
  stroke: #06b6d4;
  fill: #06b6d4;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: rgba(203, 213, 225, 0.76);
  font-size: 14px;
}

.chart-legend {
  margin-top: 8px;
}

.chart-legend .purple {
  background: #8b5cf6;
}

.chart-legend .cyan {
  background: #06b6d4;
}

.questions-donut-layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  align-items: center;
  flex: 1;
}

.questions-donut {
  position: relative;
  width: 230px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--question-donut));
  box-shadow: 0 0 34px rgba(6, 182, 212, 0.15);
  margin-left: 12px;
  margin-top: -25px;
}

.questions-donut::after {
  content: "";
  position: absolute;
  width: 137px;
  height: 137px;
  border-radius: 50%;
  background: #070a13;
}

.questions-donut strong,
.questions-donut span {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
}

.questions-donut strong {
  transform: translateY(-8px);
  font-size: 32px;
  font-weight: 500;
}

.questions-donut span {
  transform: translateY(22px);
  color: rgba(203, 213, 225, 0.78);
  font-size: 14px;
}

.questions-donut-list {
  display: grid;
  gap: 12px;
  margin-left: 70px;
  margin-top: -30px;
}

.questions-donut-list div {
  display: grid;
  grid-template-columns: 12px minmax(0, 0.82fr) 42px;
  gap: 10px;
  align-items: center;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 300;
}

.questions-donut-list i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
}

.questions-donut-list b {
  justify-self: end;
}

.attention-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(139, 92, 246, 0.16);
  border-left: 3px solid #facc15;
  border-radius: 10px;
  background: rgba(7, 10, 19, 0.38);
  font-weight: 400;
}

.attention-row + .attention-row {
  margin-top: 8px;
}

.attention-row strong,
.attention-row span,
.attention-row small {
  display: block;
}

.attention-row span {
  margin-top: 3px;
  color: rgba(203, 213, 225, 0.78);
  font-size: 13px;
  font-weight: 400;
}

.attention-row small {
  margin-top: 5px;
  color: rgba(148, 163, 184, 0.76);
  font-size: 12px;
}

.questions-table {
  font-size: 14px;
}

.questions-table th {
  color: rgba(203, 213, 225, 0.68);
  font-weight: 520;
  text-align: left;
}

.questions-table th,
.questions-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  white-space: nowrap;
}

.questions-table td {
  color: rgba(248, 250, 252, 0.88);
  padding: 5px 8px;
}

.questions-table .good {
  color: #22c55e;
}

.questions-table .warn {
  color: #facc15;
}

.questions-table .bad {
  color: #f43f5e;
}

.trend-list {
  display: grid;
  gap: 8px;
}

.trend-list button:not(.card-bottom-action),
.quick-card button {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 10px;
  background: rgba(7, 10, 19, 0.44);
  color: rgba(248, 250, 252, 0.9);
  cursor: pointer;
}

.trend-list i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-style: normal;
}

.trend-list i.up {
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.5);
}

.trend-list i.down {
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.5);
}

.trend-list span {
  display: grid;
  text-align: left;
}

.trend-list small {
  color: rgba(203, 213, 225, 0.72);
}

.import-card {
  border-color: rgba(6, 182, 212, 0.22);
  min-height: 118px;
}

.quick-card {
  display: grid;
  gap: 8px;
}

.quick-card h3 {
  margin-bottom: 3px;
}

.questions-empty {
  min-height: 380px;
}

.questions-empty strong {
  font-size: 22px;
}

.empty-mini {
  padding: 18px;
  border: 1px dashed rgba(139, 92, 246, 0.26);
  border-radius: 12px;
  color: rgba(203, 213, 225, 0.76);
  background: rgba(7, 10, 19, 0.34);
}

.question-live-result {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(6, 182, 212, 0.24);
  border-radius: 10px;
  color: #67e8f9;
  background: rgba(8, 145, 178, 0.08);
}

.attention-modal-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.wide-modal {
  max-width: 760px;
}

@media (max-width: 1280px) {
  .questions-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .questions-main-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .questions-header .page-context-actions select,
  .questions-header .page-context-actions button {
    width: 100%;
  }

  .questions-stat-grid {
    grid-template-columns: 1fr;
  }

  .questions-donut-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .attention-row {
    grid-template-columns: 1fr;
  }
}

/* Refinamento operacional da aba Questões */
.questions-header .page-context-actions .ghost,
.questions-header .page-context-actions .primary,
.questions-header .page-context-actions select {
  min-height: 38px;
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  white-space: nowrap;
}

.questions-header .page-context-actions select {
  padding: 0 26px 0 12px;
  text-align: left;
}

.questions-header .page-context-actions .primary,
.quick-card button svg,
.questions-header .page-context-actions button svg {
  flex: 0 0 auto;
}

.questions-header .page-context-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 450;
}

.questions-header .page-context-actions [data-action="open-question-log"] {
  font-size: 15px;
  font-weight: 450;
}

.questions-header .page-context-actions button svg {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.questions-header .page-context-actions svg {
  width: 18px;
  height: 18px;
}

.weekly-questions-card .questions-stat-body {
  min-width: 0;
}

.weekly-question-progress {
  width: min(210px, 70%);
}

.weekly-question-progress-row {
  display: flex;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.weekly-question-progress-row em {
  margin: 0;
  color: #a855f7;
  font-weight: 600;
  font-style: normal;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 14px;
}

.questions-analysis-grid {
  grid-template-columns: minmax(0, 2.3fr) minmax(330px, 0.62fr);
  align-items: stretch;
}

.questions-analysis-grid > .questions-card:not(#questionDisciplineTable) .trend-list {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.questions-analysis-grid > .questions-card:not(#questionDisciplineTable) .trend-list .ghost.full {
  margin-top: auto;
}

.questions-bottom-grid {
  grid-template-columns: minmax(0, 2.3fr) minmax(330px, 0.62fr);
  align-items: stretch;
}

.questions-side-stack {
  grid-template-rows: auto 1fr;
}

.questions-card-head h3 span {
  color: rgba(203, 213, 225, 0.7);
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
}

.attention-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.attention-head svg {
  width: 20px;
  height: 20px;
  color: #f43f5e;
  stroke: currentColor;
  fill: none;
}

.card-bottom-action {
  margin-top: auto;
  min-height: 38px;
  justify-content: center;
  margin-bottom: 4px;
  padding: 6px 15px;
}

.chart-legend-top {
  order: 0;
  margin: 0 0 8px;
  font-weight: 350;
}

.questions-line-chart text {
  font-family: "Bahnschrift", "Arial Narrow", "Roboto Condensed", "Segoe UI", system-ui, sans-serif;
  fill: rgba(203, 213, 225, 0.75);
  font-size: 12px;
  font-weight: 350;
}

.questions-line-chart .axis-label.right {
  text-anchor: start;
}

.questions-line-chart .axis-label.left {
  text-anchor: start;
}

.questions-line-chart .point-label {
  text-anchor: middle;
  font-size: 12px;
  font-weight: 400;
}

.questions-line-chart .questions-label {
  fill: #a855f7;
}

.questions-line-chart .accuracy-label {
  fill: #22d3ee;
}

.chart-labels {
  padding: 0 48px;
}

.discipline-donut-card,
.attention-card {
  min-height: 320px;
}

.attention-card .empty-mini {
  margin-bottom: 12px;
}

#questionDisciplineTable .questions-table {
  font-family: "Bahnschrift", "Arial Narrow", "Roboto Condensed", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
}

#questionDisciplineTable .questions-table th,
#questionDisciplineTable .questions-table td {
  padding: 6px 10px;
  vertical-align: middle;
}

.questions-table th:not(:first-child),
.questions-table td:not(:first-child) {
  text-align: center;
}

.questions-table th:first-child,
.questions-table td:first-child,
.questions-table.recent th:nth-child(2),
.questions-table.recent td:nth-child(2),
.questions-table.recent th:nth-child(3),
.questions-table.recent td:nth-child(3),
.questions-table.recent th:nth-child(4),
.questions-table.recent td:nth-child(4) {
  text-align: left;
}

#questionDisciplineTable .questions-table,
.records-card .questions-table {
  font-family: "Bahnschrift", "Arial Narrow", "Roboto Condensed", "Segoe UI", system-ui, sans-serif;
  font-weight: 300;
}

#questionDisciplineTable .questions-table th,
#questionDisciplineTable .questions-table td,
.records-card .questions-table th,
.records-card .questions-table td {
  font-weight: 300;
  vertical-align: middle;
}

#questionDisciplineTable .questions-table th,
.records-card .questions-table th {
  font-weight: 300;
  color: rgba(203, 213, 225, 0.72);
}

#questionDisciplineTable .questions-table b,
.records-card .questions-table b {
  font-weight: 300;
}

#questionDisciplineTable .table-wrap,
.records-card .table-wrap {
  margin-bottom: 6px;
}

.records-card .table-wrap,
.question-records-modal .table-wrap {
  overflow: auto;
}

.records-card .questions-table.recent {
  min-width: 1180px;
}

.quick-card button {
  justify-content: flex-start;
  padding: 0 12px;
}

.quick-card button svg {
  width: 18px;
  height: 18px;
  stroke: #a855f7;
  fill: none;
}

.inline-setting-input {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inline-setting-input input {
  width: 128px;
  height: 42px;
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 10px;
  background: rgba(7, 10, 19, 0.68);
  color: #f8fafc;
  padding: 0 12px;
}

.inline-setting-input span {
  color: rgba(203, 213, 225, 0.76);
  font-size: 13px;
}

.plan-weekly-goal-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 12px;
  background: rgba(13, 16, 32, 0.64);
}

.plan-weekly-goal-card strong,
.plan-weekly-goal-card span {
  display: block;
}

.plan-weekly-goal-card strong {
  color: #f8fafc;
  font-size: 14px;
}

.plan-weekly-goal-card > div > span {
  margin-top: 3px;
  color: rgba(203, 213, 225, 0.7);
  font-size: 12px;
}

@media (max-width: 1500px) {
  .questions-main-grid,
  .questions-analysis-grid,
  .questions-bottom-grid {
    grid-template-columns: 1fr;
  }

  .questions-side-stack {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
}

@media (max-width: 980px) {
  .questions-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .questions-header .page-context-actions {
    grid-template-columns: 1fr 1fr;
    width: 100%;
    transform: none;
  }

  .questions-side-stack {
    grid-template-columns: 1fr;
  }
}

/* Home: cards superiores consolidados */
.home-stats {
  grid-template-columns: minmax(210px, 0.82fr) minmax(210px, 0.82fr) minmax(420px, 1.55fr) minmax(360px, 1.34fr) !important;
  align-items: stretch !important;
}

.home-stats .weekly-time-card,
.home-stats .home-question-week-card {
  height: 196px !important;
  min-height: 196px !important;
  padding: 14px 18px !important;
}

.weekly-time-card .card-title,
.home-question-week-card .card-title {
  margin-bottom: 10px !important;
}

.weekly-time-card-layout,
.home-question-week-layout {
  display: grid;
  height: calc(100% - 30px);
  min-height: 0;
}

.weekly-time-card-layout {
  grid-template-columns: 145px minmax(210px, 1fr) 150px;
  gap: 18px;
  align-items: stretch;
}

.weekly-time-summary strong,
.home-question-week-main strong,
.home-question-week-accuracy strong {
  display: block;
  color: #f8fafc;
  font-size: 31px;
  font-weight: 400;
  line-height: 1;
  margin-top: 10px;
}

.weekly-time-summary p,
.home-question-week-main p,
.home-question-week-accuracy p {
  margin: 8px 0 0;
  color: rgba(203, 213, 225, 0.78);
  font-size: 14px;
  font-weight: 400;
}

.weekly-time-summary em {
  display: block;
  margin-top: 12px;
  color: #22d3ee;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
}

.weekly-time-summary em span {
  color: rgba(203, 213, 225, 0.78); /* restante do texto */
  font-weight: 400;
}

.weekly-time-chart {
  position: relative;
  min-height: 112px;
  padding: 8px 0 20px;
}

.weekly-time-lines {
  position: absolute;
  inset: 8px 0 28px;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  pointer-events: none;
}

.weekly-time-lines i {
  border-top: 1px dashed rgba(148, 163, 184, 0.18);
}

.weekly-time-bars {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 12px;
  height: 100%;
}

.weekly-time-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;

  /* Ajuste este valor */
  bottom: 28px;

  height: 1px;
  background: rgba(148, 163, 184, 0.18);
}

.weekly-time-bars span {
  display: grid;
  grid-template-rows: 0.91fr 22px;
  align-items: end;
  height: 91%;
  min-width: 0;
}

.weekly-time-bars i {
  display: block;
  width: min(24px, 70%);
  margin: 0 auto;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #38bdf8, #8b5cf6 54%, #d946ef);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.42), 0 0 18px rgba(217, 70, 239, 0.26);
}

.weekly-time-bars b {
  align-self: end;
  color: rgba(203, 213, 225, 0.78);
  font-size: 11px;
  font-weight: 420;
  text-align: center;
}

.weekly-time-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-left: 18px;
  padding-top: 12px;
}

.weekly-time-aside::before {
  content: "";
  position: absolute;

  left: 1px;
  top: -10px;
  bottom: 15px;

  width: 1px;
  background: rgba(139, 92, 246, 0.18);
}

.weekly-time-aside span {
  color: rgba(203, 213, 225, 0.72);
  font-size: 13px;
}

.weekly-time-aside strong {
  margin: 4px 0 12px;
  color: #f8fafc;
  font-size: 20px;
  font-weight: 400;
}

.weekly-time-aside b {
  padding-top: 4px;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 400;
}

.weekly-time-aside .card-bottom-action,
.home-question-week-layout .card-bottom-action {
  min-height: 18px;
  margin-top: auto;
  font-size: 14px;
  font-weight: 500;
}

.weekly-time-aside .card-bottom-action.ghost.full {
  width: 100%;
  min-width: 160px;
  padding: 6px 15px;
  white-space: nowrap;
  border-radius: 9px;
  margin-bottom: 4px;
}

.home-question-week-layout {
  grid-template-columns: minmax(145px, 1fr) minmax(130px, 0.9fr);
  column-gap: 18px;
  row-gap: 10px;
}

.home-question-week-main {
  position: relative;
  padding-right: 18px;
  border-right: 1px solid rgba(139, 92, 246, 0.18);
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: -4px;
}

.home-question-week-main .weekly-question-progress {
  width: min(230px, 78%);
  height: 8px;
  margin-top: 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.8);
}

.home-question-week-main .weekly-question-progress b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #a855f7);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.5);
}

.home-question-week-main em {
  color: #a855f7;
  font-style: normal;
  font-weight: 520;
  white-space: nowrap;
}

.home-question-week-accuracy span {
  display: block;
  color: rgba(203, 213, 225, 0.78);
  font-size: 14px;
  font-weight: 400px;
  margin-top: -10px;
}

.home-question-week-accuracy strong {
  margin-top: 6px;
  color: #22d3ee;
  text-shadow: 0 0 16px rgba(34, 211, 238, 0.3);
}

.home-question-week-layout .card-bottom-action {
  grid-column: 1 / -1;
}

@media (max-width: 1500px) {
  .home-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Revisões: central inteligente orientada pelo IUR */
.reviews-hub-page,
.review-details-drawer,
.recovery-center-backdrop {
  --review-critical: #fb4f68;
  --review-high: #ff8a1f;
  --review-medium: #facc15;
  --review-low: #22d3ee;
}

.reviews-hub-page {
  display: grid;
  gap: 14px;
  padding-bottom: 88px;
  color: #f8fafc;
}

.reviews-hub-head {
  margin-bottom: calc(var(--page-content-offset) - var(--page-gap));
}

.reviews-hub-head .page-context-copy h2 {
  max-width: 660px;
}

.reviews-hub-head .page-context-actions {
  flex-wrap: nowrap;
}

.review-head-button {
  min-height: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 450;
}

.review-free-button,
.review-sort-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 450;
}

.review-free-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.review-head-button,
.review-free-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.review-head-button .review-icon {
  width: 17px;
  height: 17px;
}

.review-head-button[data-action="review-open-filters"] .review-icon svg {
  stroke-width: 2.3;
}

.review-sort-control {
  min-width: 190px;
  padding: 0 34px 0 13px;
  border: 1px solid rgba(139, 92, 246, 0.24);
  border-color: rgba(139, 92, 246, 0.24);
  background: rgba(7, 10, 19, 0.78);
  color: #f8fafc;
}

.review-icon .chart-icon {
  fill: currentColor;
  stroke: none;
}

.review-hub-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.05fr) minmax(0, 1.58fr);
  gap: 14px;
}

.review-summary-card {
  display: flex;
  height: 210px;
  min-height: 210px;
  padding: 16px 18px;
  flex-direction: column;
}

.review-card-heading > .review-icon {
  color: #d946ef;
  filter: drop-shadow(0 0 7px rgba(217, 70, 239, 0.42));
}

.review-pending-layout {
  display: grid;
  grid-template-columns: minmax(90px, 0.8fr) 1.2fr;
  align-items: end;
  gap: 20px;
  margin: 18px 0 0;
}

.review-pending-layout > div:first-child {
  transform: translateX(18px);
}

.review-pending-layout > div strong {
  display: block;
  font-size: 38px;
  font-weight: 430;
  line-height: 1;
}

.review-pending-layout > div span,
.review-pending-layout li span {
  color: rgba(203, 213, 225, 0.76);
  font-size: 14px;
  font-weight: 420;
}

.review-pending-layout ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.review-pending-layout li {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 8px;
}

.review-pending-layout li i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8b5cf6;
  box-shadow: 0 0 8px currentColor;
}

.review-pending-layout li i.weekly { background: #06b6d4; }
.review-pending-layout li i.monthly { background: #fb8c1e; }
.review-pending-layout li b {
  padding-right: 24px;
  font-size: 14px;
  font-weight: 500;
}

.review-week-main {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 22px;
  margin: 15px 0 0;
}

.review-week-main > div:first-child strong {
  display: block;
  font-size: 36px;
  font-weight: 430;
  line-height: 1;
}

.review-week-main > div span {
  display: block;
  margin-top: 4px;
  color: rgba(203, 213, 225, 0.72);
  font-size: 13px;
}

.review-week-main > div:nth-child(2) b {
  display: block;
  color: #22d3ee;
  font-size: 28px;
  font-weight: 480;
  line-height: 1;
  text-shadow: 0 0 13px rgba(34, 211, 238, 0.26);
}

.review-week-trend,
.review-neutral-trend {
  margin-top: 6px !important;
  font-size: 12px !important;
}

.review-week-trend.up { color: #22c55e !important; }
.review-week-trend.down { color: #fb7185 !important; }
.review-neutral-trend { color: #64748b !important; }

.review-week-footer {
  display: grid;
  grid-template-columns: auto auto minmax(90px, 1fr);
  align-items: center;
  gap: 9px;
  margin: auto 0 0;
  padding-top: 9px;
  border-top: 1px solid rgba(139, 92, 246, 0.12);
  color: rgba(203, 213, 225, 0.72);
  font-size: 12px;
}

.review-week-footer strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #f8fafc;
  font-weight: 470;
}

.review-week-footer .review-icon { width: 16px; height: 16px; }

.review-recovery-card p {
  margin: 9px 0;
  color: rgba(203, 213, 225, 0.76);
  font-size: 13px;
  line-height: 1.35;
}

.review-time-options {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-left: 0;
}

.review-time-choice {
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 7px;
  background: rgba(7, 10, 19, 0.62);
  color: rgba(226, 232, 240, 0.82);
  font-size: 12px;
  font-weight: 440;
}

.review-time-choice:hover,
.review-time-choice:focus-visible,
.review-time-choice.active {
  border-color: rgba(217, 70, 239, 0.64);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.72), rgba(109, 40, 217, 0.64));
  color: #fff;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.25);
}

.review-recovery-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 11px 0 0;
  color: rgba(203, 213, 225, 0.66);
  font-size: 13px;
  line-height: 1.35;
}

.review-recovery-result span,
.review-recovery-result small { display: block; }
.review-recovery-result small { margin-top: 1px; color: #94a3b8; font-size: 12px; line-height: 1.3; }
.review-recovery-result strong { color: #22d3ee; font-weight: 500; }
.review-recovery-card .review-card-action { margin: auto 0 0; width: 100%; }

.review-card-action,
.review-card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 32px;
  margin-top: 10px;
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(76, 29, 149, 0.7), rgba(88, 28, 135, 0.48));
  color: #e9d5ff;
  font-size: 12.48px;
  font-weight: 480;
}

.review-card-action:hover,
.review-card-link:hover,
.review-card-action:focus-visible,
.review-card-link:focus-visible {
  border-color: rgba(217, 70, 239, 0.52);
  color: #fff;
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.2);
}

.review-card-action:disabled,
.review-card-link:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}

.review-card-action .review-icon,
.review-card-link .review-icon { width: 15px; height: 15px; }

.review-feature-grid,
.review-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(320px, 0.86fr);
  gap: 14px;
  align-items: stretch;
}

.review-next-card {
  min-height: 248px;
  padding: 16px 20px;
  border-color: color-mix(in srgb, var(--review-level-color, var(--review-critical)), transparent 25%);
  box-shadow: inset 3px 0 0 var(--review-level-color, var(--review-critical)), 0 0 24px color-mix(in srgb, var(--review-level-color, var(--review-critical)), transparent 84%);
}

.review-next-card.urgency-critical { --review-level-color: var(--review-critical); }
.review-next-card.urgency-high { --review-level-color: var(--review-high); }
.review-next-card.urgency-medium { --review-level-color: var(--review-medium); }
.review-next-card.urgency-low { --review-level-color: var(--review-low); }
.review-next-card.urgency-unscored { --review-level-color: #64748b; }

.review-next-title {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 560;
}

.review-next-title > div {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
}

.review-next-title > div .review-icon { color: var(--review-level-color); }

.review-level-badge.critical { border-color: rgba(244, 63, 94, 0.48); color: var(--review-critical); }
.review-level-badge.high { border-color: rgba(249, 115, 22, 0.48); color: var(--review-high); }
.review-level-badge.medium { border-color: rgba(250, 204, 21, 0.42); color: var(--review-medium); }
.review-level-badge.low { border-color: rgba(34, 211, 238, 0.4); color: var(--review-low); }
.review-level-badge.unscored { border-color: rgba(100, 116, 139, 0.48); color: #94a3b8; }

.review-next-content {
  display: grid;
  grid-template-columns: 112px minmax(600px, 1.65fr) minmax(270px, 0.85fr);
  align-items: center;
  gap: 20px;
  margin: 16px 0 0 30px;
}

.review-score-ring {
  --ring-color: var(--review-low);
  box-shadow: -2px -1px 22px color-mix(in srgb, var(--ring-color), transparent 68%);
}

.review-score-track,
.review-score-progress {
  fill: none;
  stroke-width: 8;
}

.review-score-track { stroke: rgba(30, 41, 59, 0.82); }
.review-score-progress {
  stroke: var(--ring-color);
  stroke-dasharray: var(--review-score) 100;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--ring-color), transparent 35%));
}

.review-score-ring.size-large { width: 104px; height: 104px; }
.review-score-ring.size-medium { width: 86px; height: 86px; }
.review-score-ring.critical { --ring-color: var(--review-critical); }
.review-score-ring.high { --ring-color: var(--review-high); }
.review-score-ring.medium { --ring-color: var(--review-medium); }
.review-score-ring.low { --ring-color: var(--review-low); }
.review-score-ring.unscored { --ring-color: #64748b; }

.review-score-ring strong { font-size: 25px; font-weight: 500; line-height: 1; }
.review-score-ring span { margin-top: 5px; color: #94a3b8; font-size: 10px; }

.review-next-subject h3 {
  margin: 0 0 3px;
  font-size: 20px;
  font-weight: 510;
  line-height: 1.15;
}

.review-next-subject > p {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.4;
}

.review-next-meta {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  color: #94a3b8;
  font-size: 13px;
}

.review-next-meta span { display: inline-flex; align-items: center; gap: 5px; }
.review-next-meta .review-icon { width: 15px; height: 15px; }
.review-next-meta .late { color: #fb7185; }
.review-next-meta .on-time { color: #22c55e; }

.review-evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(62px, 1fr));
  gap: 7px;
}

.review-evidence-grid > div {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(139, 92, 246, 0.16);
  border-radius: 7px;
  background: rgba(7, 10, 19, 0.42);
}

.review-evidence-grid strong,
.review-evidence-grid span { display: block; }
.review-evidence-grid strong { font-size: 15px; font-weight: 480; }
.review-evidence-grid span { margin-top: 3px; color: #94a3b8; font-size: 11px; line-height: 1.3; }

.review-next-evidence-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.65fr);
  align-items: end;
  gap: 7px;
  margin-top: 12px;
}

.review-topic-performance {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(139, 92, 246, 0.16);
  border-radius: 7px;
  background: rgba(7, 10, 19, 0.42);
  min-height: 68px;
}

.review-topic-performance-head,
.review-topic-performance-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.review-topic-performance-head > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  color: #8290a4;
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-topic-performance-head .review-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 2px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 5px;
  background: rgba(51, 65, 85, 0.3);
  color: #94a3b8;
}
.review-topic-performance-head > strong { flex: 0 0 auto; font-size: 20px; font-weight: 500; line-height: 1; }
.review-topic-performance-detail { margin-top: 6px; }
.review-topic-performance-detail > strong {
  min-width: 0;
  overflow: hidden;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 480;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-left: 34px; /* ícone de 28px + gap de 6px */
}
.review-topic-performance-detail > span { flex: 0 0 auto; color: #f8fafc; font-size: 12px; font-weight: 470; white-space: nowrap; }
.review-topic-performance .good,
.review-detail-evidence .good { color: #22c55e; }
.review-topic-performance .warn,
.review-detail-evidence .warn { color: #facc15; }
.review-topic-performance .bad,
.review-detail-evidence .bad { color: #fb7185; }
.review-topic-performance .unscored,
.review-detail-evidence .unscored { color: #94a3b8; }

.review-next-reasons {
  padding-left: 20px;
  border-left: 1px solid rgba(139, 92, 246, 0.14);
  transform: translateY(-10px);
}

.review-next-reasons h4 { margin: 0 0 8px; font-size: 13px; font-weight: 500; }
.review-next-reasons ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.review-next-reasons li { display: flex; align-items: flex-start; gap: 7px; color: #aab7ca; font-size: 12px; line-height: 1.4; }
.review-next-reasons li .review-icon { width: 13px; height: 13px; color: #c084fc; }

.review-next-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 13px;
}
.review-next-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  gap: 6px;
}
.review-next-actions .review-icon { width: 24px; height: 24px; }

.review-next-actions .primary {
  font-weight: 450;
}

.review-empty-card {
  --review-level-color: rgba(139, 92, 246, 0.36);
  display: grid;
  min-height: 248px;
  place-items: center;
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: inset 3px 0 0 rgba(139, 92, 246, 0.24);
  text-align: center;
}

.review-empty-card > div > .review-icon { width: 34px; height: 34px; margin: 0 auto 8px; color: #22c55e; }
.review-empty-card h3 { margin-bottom: 5px; }
.review-empty-card p { max-width: 480px; margin: 0; }

.review-today-hub-card {
  display: flex;
  min-height: 248px;
  padding: 17px 18px;
  flex-direction: column;
}

.review-today-hub-card .review-card-heading { justify-content: space-between; }
.review-today-hub-card .review-card-heading > span { display: flex; align-items: center; gap: 8px; }
.review-today-hub-card .review-card-heading small { color: #94a3b8; font-size: 12px; font-weight: 430; text-transform: none; }
.review-today-score { display: flex; align-items: baseline; justify-content: space-between; margin: 15px 0 9px; }
.review-today-hub-card > .review-progress-track,
.review-today-hub-card > .review-today-times { margin-left: 0; }
.review-today-hub-card > .review-progress-track { width: 100%; }
.review-today-score strong { font-size: 17px; font-weight: 470; }
.review-today-score b { color: #22d3ee; font-size: 22px; font-weight: 500; }

.review-today-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 13px;
}

.review-today-times > div {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid rgba(139, 92, 246, 0.16);
  border-radius: 7px;
  background: rgba(7, 10, 19, 0.38);
}

.review-today-times > div:first-child .review-icon { color: #06b6d4; }
.review-today-times > div:last-child .review-icon { color: #f59e0b; }
.review-today-times span, .review-today-times strong { display: block; }
.review-today-times span { color: #94a3b8; font-size: 12px; line-height: 1.3; }
.review-today-times strong { margin-top: 1px; color: #f8fafc; font-size: 14px; font-weight: 470; }
.review-today-hub-card .review-card-action { margin-top: auto; }

.review-today-empty-state {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: auto 0;
}
.review-today-empty-state > .review-icon { width: 28px; height: 28px; color: #22c55e; }
.review-today-empty-state strong,
.review-today-empty-state span { display: block; }
.review-today-empty-state strong { font-size: 14px; font-weight: 500; }
.review-today-empty-state span { margin-top: 4px; color: #94a3b8; font-size: 12px; line-height: 1.4; }

.review-inbox-card { min-height: 292px; padding: 13px 14px 8px; }
.review-inbox-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.review-inbox-head h3, .review-side-card h3, .review-history-head h3 { margin: 0; font-size: 13px; font-weight: 560; text-transform: uppercase; }

.review-quick-filters { display: flex; gap: 7px; flex-wrap: wrap; }
.review-quick-filters button {
  min-height: 29px;
  padding: 4px 13px;
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 7px;
  background: rgba(7, 10, 19, 0.48);
  color: #94a3b8;
  font-size: 12px;
}

.review-quick-filters button:hover,
.review-quick-filters button:focus-visible,
.review-quick-filters button.active { border-color: rgba(168, 85, 247, 0.54); background: rgba(109, 40, 217, 0.42); color: #f8fafc; }

.review-table-wrap { overflow-x: auto; }
.review-inbox-table, .review-history-table { width: 100%; border-collapse: collapse; table-layout: auto; }
.review-inbox-table th, .review-history-table th { padding: 6px 9px; color: #718096; font-size: 10px; font-weight: 520; text-align: left; white-space: nowrap; }
.review-inbox-table td, .review-history-table td { height: 38px; padding: 4px 9px; border-bottom: 1px solid rgba(139, 92, 246, 0.1); color: #d7dfeb; font-size: 12px; font-weight: 410; line-height: 1.22; text-align: left; vertical-align: middle; }
.review-inbox-table td > strong, .review-inbox-table td > span, .review-history-table td > strong, .review-history-table td > span { display: block; }
.review-inbox-table td:nth-child(2) > strong,
.review-inbox-table td:nth-child(3) > strong { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f8fafc; font-size: 13px; font-weight: 490; }
.review-inbox-table td:nth-child(3) > span,
.review-inbox-table td:nth-child(8) > span,
.review-history-table td:nth-child(4) > span { margin-top: 2px; color: #8290a4; font-size: 11px; }

.review-inbox-table th:nth-child(n+7),
.review-inbox-table td:nth-child(n+7),
.review-history-table th:nth-child(n+5):nth-child(-n+9),
.review-history-table td:nth-child(n+5):nth-child(-n+9) { text-align: center; }
.review-inbox-table th:last-child,
.review-inbox-table td:last-child,
.review-history-table th:last-child,
.review-history-table td:last-child { text-align: center; }
.review-inbox-table td:nth-child(7) .review-score-line { margin-right: auto; margin-left: auto; }
.review-inbox-table td:last-child .review-row-actions,
.review-history-table td:last-child .review-history-actions { justify-content: center; }

.review-table-priority { display: inline-flex !important; align-items: center; gap: 8px; min-width: 82px; padding: 4px 7px; border: 1px solid currentColor; border-radius: 5px; background: rgba(7, 10, 19, 0.48); }
.review-table-priority b { font-size: 10px; font-weight: 550; text-transform: uppercase; }
.review-table-priority strong { margin-left: auto; font-size: 12px; font-weight: 520; }
.review-table-priority.critical { color: var(--review-critical); }
.review-table-priority.high { color: var(--review-high); }
.review-table-priority.medium { color: var(--review-medium); }
.review-table-priority.low { color: var(--review-low); }
.review-table-priority.unscored { color: #94a3b8; }

.review-type-badge { display: inline-flex !important; width: fit-content; padding: 3px 8px; border: 1px solid rgba(6, 182, 212, 0.34); border-radius: 5px; background: rgba(6, 182, 212, 0.09); color: #22d3ee; font-size: 10px; line-height: 1.15; }
.review-type-badge.semanal { border-color: rgba(139, 92, 246, 0.34); background: rgba(139, 92, 246, 0.09); color: #c4b5fd; }
.review-type-badge.mensal { border-color: rgba(245, 158, 11, 0.38); color: #fbbf24; }
.review-type-badge.livre { border-color: rgba(34, 197, 94, 0.34); color: #4ade80; }
.review-late { color: #fb7185; }
.review-on-time { color: #22c55e; }
.review-inbox-table td:nth-child(7) > strong small { color: #718096; font-size: 9px; font-weight: 400; }
.review-score-line { width: 76px; height: 3px; margin-top: 4px; border-radius: 99px; background: #172033; }
.review-score-line i { display: block; height: 100%; border-radius: inherit; }
.review-score-line i.critical { background: var(--review-critical); }
.review-score-line i.high { background: var(--review-high); }
.review-score-line i.medium { background: var(--review-medium); }
.review-score-line i.low { background: var(--review-low); }
.review-score-line i.unscored { background: #64748b; }

.review-row-actions { display: flex; align-items: center; gap: 5px; }
.review-icon-button,
.review-history-actions button,
.review-drawer-close {
  display: inline-grid;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 7px;
  background: rgba(7, 10, 19, 0.44);
  color: #94a3b8;
}

.review-icon-button .review-icon,
.review-history-actions .review-icon { width: 14px; height: 14px; }
.review-icon-button:hover, .review-icon-button:focus-visible, .review-history-actions button:hover, .review-history-actions button:focus-visible { border-color: rgba(168, 85, 247, 0.46); color: #c084fc; box-shadow: 0 0 13px rgba(139, 92, 246, 0.14); }
.review-row-actions-modal { width: min(430px, calc(100vw - 32px)); }
.review-row-actions-modal > p { margin: 5px 0 16px; color: #94a3b8; }
.review-row-actions-list { display: grid; gap: 8px; }
.review-row-actions-list button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.review-row-actions-list .review-icon { width: 16px; height: 16px; }
.review-history-actions button.danger { color: #fb7185; }
.review-history-actions button.danger:hover, .review-history-actions button.danger:focus-visible { border-color: rgba(244, 63, 94, 0.44); background: rgba(244, 63, 94, 0.08); }

.review-card-link { min-height: 27px; margin: 6px 0 0; border: 0; background: transparent; color: #c084fc; }
.review-card-link .review-icon { transform: none; transition: transform .2s ease; }
.review-card-link[aria-expanded="true"] .review-icon { transform: rotate(90deg); }

.review-side-stack { display: grid; grid-template-rows: 1fr auto; gap: 10px; }
.review-side-card { padding: 12px 14px; }
.review-side-card h3 { margin-bottom: 8px; }
.review-insights-card > div { display: grid; gap: 5px; }
.review-insight-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 9px; width: 100%; min-height: 48px; padding: 7px 8px; border: 1px solid rgba(139, 92, 246, 0.16); border-radius: 7px; background: rgba(7, 10, 19, 0.36); color: #dce5f2; text-align: left; }
.review-insight-row > .review-icon:first-child { width: 27px; height: 27px; padding: 5px; border-radius: 7px; background: rgba(139, 92, 246, 0.12); }
.review-insight-row > .review-icon:last-child { width: 13px; height: 13px; color: #94a3b8; }
.review-insight-row span, .review-insight-row strong, .review-insight-row small { display: block; }
.review-insight-row strong { font-size: 12px; font-weight: 470; }
.review-insight-row small { margin-top: 2px; color: #8290a4; font-size: 11px; line-height: 1.35; }
.review-insight-row.danger > .review-icon:first-child { color: #fb7185; background: rgba(244, 63, 94, 0.12); }
.review-insight-row.blue > .review-icon:first-child { color: #38bdf8; background: rgba(14, 165, 233, 0.1); }
.review-insight-row.green > .review-icon:first-child { color: #22c55e; background: rgba(34, 197, 94, 0.1); }
.review-insight-row.purple > .review-icon:first-child { color: #c084fc; background: rgba(168, 85, 247, 0.1); }

.review-delay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.review-delay-grid span { display: grid; min-height: 50px; padding: 7px; place-content: center; border: 1px solid rgba(139, 92, 246, 0.16); border-radius: 7px; text-align: center; }
.review-delay-grid strong, .review-delay-grid b { display: block; }
.review-delay-grid strong { color: #fbbf24; font-size: 11px; font-weight: 500; line-height: 1.3; }
.review-delay-grid b { margin-top: 4px; color: #e2e8f0; font-size: 12px; font-weight: 450; line-height: 1.3; }
.review-delay-grid span:last-child strong { color: #fb7185; }

.review-history-card { padding: 12px 14px 8px; }
.review-history-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 6px; }
.review-history-head > div { display: flex; gap: 8px; }
.review-history-head input, .review-history-head select { min-height: 32px; padding: 5px 9px; border-color: rgba(139, 92, 246, 0.2); background: rgba(7, 10, 19, 0.62); color: #f8fafc; font-size: 11px; }
.review-history-head input { min-width: 220px; }
.review-history-head select { min-width: 125px; }
.review-history-table td { white-space: nowrap; }
.review-history-table td:nth-child(4) { max-width: 260px; white-space: normal; }
.review-history-datetime { display: inline-flex !important; align-items: baseline; gap: 5px; white-space: nowrap; }
.review-history-datetime strong,
.review-history-datetime span { display: inline; }
.review-history-table .success-text { color: #22c55e; }
.review-history-table .danger-text { color: #fb7185; }
.review-history-actions { display: flex; gap: 3px; }
.review-history-footer { display: flex; justify-content: center; gap: 8px; }
.review-history-footer .review-card-link { width: auto; min-width: 220px; }

.review-history-table td:nth-child(3) > strong,
.review-history-table td:nth-child(4) > strong {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 490;
}

.review-history-table td:nth-child(4) > span {
  font-size: 11px;
}

.review-inline-empty,
.review-load-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 170px;
  color: #94a3b8;
  text-align: left;
}

.review-inline-empty > .review-icon { width: 30px; height: 30px; color: #22c55e; }
.review-inline-empty strong, .review-inline-empty span { display: block; }
.review-inline-empty strong { color: #f8fafc; font-size: 14px; font-weight: 500; }
.review-inline-empty span { margin-top: 4px; font-size: 12px; line-height: 1.4; }
.review-mini-empty { min-height: 90px; display: grid; place-items: center; color: #718096; font-size: 12px; line-height: 1.4; text-align: center; }
.review-load-error { min-height: 260px; flex-direction: column; padding: 24px; text-align: center; }

.review-drawer-backdrop {
  justify-content: flex-end;
  padding: 16px;
  padding: 16px 360px 100px 16px;
  background: rgba(2, 4, 12, 0.72);
  backdrop-filter: blur(8px);
}

.review-details-drawer {
  width: min(590px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid rgba(139, 92, 246, 0.34);
  border-radius: 12px;
  background: linear-gradient(160deg, #0d1020, #070a13 72%);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.42);
}

.review-details-drawer > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(139, 92, 246, 0.15); }
.review-details-drawer h2 { margin: 9px 0 4px; font-size: 24px; font-weight: 520; }
.review-details-drawer header p { margin: 0; color: #94a3b8; font-size: 13px; line-height: 1.45; }
.review-drawer-close { font-size: 22px; line-height: 1; }
.review-details-drawer > section { padding: 17px 0; border-bottom: 1px solid rgba(139, 92, 246, 0.12); }
.review-details-drawer section h3 { margin: 0 0 10px; font-size: 13px; font-weight: 530; text-transform: uppercase; }
.review-detail-score { display: flex; align-items: center; gap: 18px; }
.review-detail-score > div strong { font-size: 18px; font-weight: 510; }
.review-detail-score > div p { margin: 5px 0 0; font-size: 13px; line-height: 1.5; }
.review-pedagogical-heading { position: relative; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.review-pedagogical-heading h3 { margin: 0 !important; }
.review-iur-info { position: relative; }
.review-iur-info summary {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 0;
  color: #c4b5fd;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  cursor: help;
  list-style: none;
}
.review-iur-info summary::-webkit-details-marker { display: none; }
.review-iur-info summary .review-icon { width: 17px; height: 17px; }
.review-iur-info summary:focus-visible { outline: 2px solid #22d3ee; outline-offset: 2px; }
.review-iur-info p {
  position: absolute;
  top: 26px;
  left: 0;
  right: auto;
  z-index: 5;
  display: none;
  width: min(290px, calc(100vw - 72px));
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(139, 92, 246, 0.34);
  border-radius: 8px;
  background: #0d1020;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 430;
  line-height: 1.45;
  text-transform: none;
}
.review-iur-info[open] p,
.review-iur-info:hover p { display: block; }
.review-component-list { display: grid; gap: 9px; }
.review-component-row { display: grid; grid-template-columns: 170px 1fr 54px; align-items: center; gap: 9px; color: #aab7ca; font-size: 12px; }
.review-component-row > div { height: 5px; overflow: hidden; border-radius: 99px; background: #172033; }
.review-component-row > div i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8b5cf6, #d946ef, #06b6d4); }
.review-component-row > strong { color: #f8fafc; font-weight: 490; text-align: right; }
.review-component-row > strong small { color: #718096; font-size: 10px; }
.review-detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.review-detail-columns ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.review-detail-columns li { display: flex; align-items: flex-start; gap: 7px; color: #aab7ca; font-size: 12px; line-height: 1.45; }
.review-detail-columns li .review-icon { width: 13px; height: 13px; color: #c084fc; }
.review-detail-columns p, .review-detail-quality p { margin: 0; font-size: 12px; line-height: 1.45; }
.review-detail-warnings p { display: flex; gap: 7px; margin: 7px 0 0; color: #fbbf24; font-size: 12px; line-height: 1.4; }
.review-detail-warnings .review-icon { width: 14px; height: 14px; }
.review-detail-evidence {
  display: grid;
  grid-template-columns: 116px 116px 134px 152px;
  justify-content: space-between;
  gap: 8px;
}
.review-detail-evidence > div { padding: 9px; border: 1px solid rgba(139, 92, 246, 0.15); border-radius: 7px; }
.review-detail-evidence span, .review-detail-evidence strong { display: block; }
.review-detail-evidence span { color: #718096; font-size: 10px; text-transform: uppercase; }
.review-detail-evidence strong { margin-top: 4px; font-size: 12px; font-weight: 470; }
.review-detail-evidence strong b { font: inherit; }
.review-details-drawer footer { position: sticky; bottom: -22px; z-index: 2; margin: 0 -22px -22px; padding: 14px 22px; border-top: 1px solid rgba(139, 92, 246, 0.22); background: rgba(7, 10, 19, 0.96); }
.review-details-drawer footer button { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; }

.review-recovery-preview { margin-top: 14px; padding: 13px; border: 1px solid rgba(139, 92, 246, 0.18); border-radius: 8px; background: rgba(7, 10, 19, 0.42); }
.review-recovery-preview > strong { font-size: 14px; font-weight: 500; }
.review-recovery-overview { display: grid; gap: 5px; margin-top: 10px; color: #cbd5e1; font-size: 12px; line-height: 1.4; }
.review-recovery-preview ol { display: grid; gap: 8px; margin: 12px 0 0; padding-left: 20px; }
.review-recovery-preview li { padding-left: 4px; color: #c4b5fd; }
.review-recovery-preview li span, .review-recovery-preview li b { display: block; }
.review-recovery-preview li span { color: #f8fafc; font-size: 12px; }
.review-recovery-preview li b { margin-top: 3px; color: #8290a4; font-size: 11px; font-weight: 430; line-height: 1.35; }
.review-log-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 15px; }
.review-log-detail-grid > div { padding: 10px; border: 1px solid rgba(139, 92, 246, 0.16); border-radius: 8px; background: rgba(7, 10, 19, 0.4); }
.review-log-detail-grid span, .review-log-detail-grid strong { display: block; }
.review-log-detail-grid span { color: #718096; font-size: 9px; text-transform: uppercase; }
.review-log-detail-grid strong { margin-top: 4px; font-size: 13px; font-weight: 480; }
.review-log-notes { margin-top: 12px; }
.review-log-notes p { margin: 5px 0 0; white-space: pre-wrap; }

.reviews-hub-page button:focus-visible,
.reviews-hub-page select:focus-visible,
.reviews-hub-page input:focus-visible,
.review-details-drawer button:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 2px;
}

@media (max-width: 1500px) {
  .review-next-content { grid-template-columns: 98px minmax(490px, 1.55fr) minmax(240px, 0.75fr); gap: 14px; }
  .review-next-evidence-row { grid-template-columns: minmax(0, 1fr) minmax(210px, 0.65fr); }
  .review-next-actions button { min-width: 0; }
}

@media (max-width: 1320px) and (min-width: 1181px) {
  .review-next-content {
    grid-template-columns: 92px minmax(0, 1fr);
    margin-left: 16px;
  }
  .review-next-reasons { grid-column: 1 / -1; padding: 14px 0 0; border-left: 0; border-top: 1px solid rgba(139, 92, 246, 0.14); transform: none; }
}

@media (max-width: 1180px) {
  .review-hub-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-recovery-card { grid-column: 1 / -1; }
  .review-feature-grid, .review-workspace-grid { grid-template-columns: 1fr; }
  .review-side-stack { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .review-next-content {
    grid-template-columns: 92px minmax(0, 1fr);
    margin-left: 16px;
  }
  .review-next-reasons {
    grid-column: 1 / -1;
    padding: 14px 0 0;
    border-top: 1px solid rgba(139, 92, 246, 0.14);
    border-left: 0;
    transform: none;
  }
}

@media (max-width: 840px) {
  .reviews-hub-head { margin-bottom: 20px; align-items: flex-start; flex-direction: column; }
  .reviews-hub-head .page-context-actions { width: 100%; flex-wrap: wrap; transform: none; }
  .review-head-button, .review-sort-control, .review-free-button { flex: 1 1 160px; }
  .review-sort-control { min-width: 0; }
  .review-hub-summary-grid, .review-side-stack { grid-template-columns: 1fr; }
  .review-recovery-card { grid-column: auto; }
  .review-next-content {
    grid-template-columns: 82px minmax(0, 1fr);
    margin-left: 0;
  }
  .review-next-evidence-row { grid-template-columns: 1fr; }
  .review-next-reasons { grid-column: 1 / -1; padding: 14px 0 0; border-left: 0; border-top: 1px solid rgba(139, 92, 246, 0.14); transform: none; }
  .review-score-ring.size-large { width: 80px; height: 80px; }
  .review-score-ring strong { font-size: 21px; }
  .review-evidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-history-head { align-items: flex-start; flex-direction: column; }
  .review-history-head > div { width: 100%; }
  .review-history-head label { flex: 1; }
  .review-history-head input { min-width: 0; }
  .review-detail-columns, .review-detail-evidence { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .review-hub-summary-grid, .review-feature-grid, .review-workspace-grid { gap: 10px; }
  .review-summary-card, .review-next-card, .review-today-hub-card, .review-inbox-card, .review-side-card, .review-history-card { padding: 13px; }
  .review-pending-layout, .review-week-main { grid-template-columns: 1fr 1fr; gap: 12px; }
  .review-recovery-result { grid-template-columns: 1fr; }
  .review-next-title { align-items: flex-start; flex-wrap: wrap; }
  .review-next-title > div { width: 100%; }
  .review-next-content { grid-template-columns: 1fr; }
  .review-next-content { margin-left: 0; }
  .review-score-ring.size-large { margin: 0 auto; }
  .review-next-subject { text-align: center; }
  .review-next-meta { justify-content: center; flex-wrap: wrap; }
  .review-next-evidence-row { grid-template-columns: 1fr; }
  .review-today-times, .review-log-detail-grid { grid-template-columns: 1fr; }
  .review-quick-filters { width: 100%; }
  .review-inbox-head { align-items: flex-start; flex-direction: column; }
  .review-history-head > div { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-hub-page *,
  .review-details-drawer * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Questões: ações em ícones compactos */
.question-table-actions {
  justify-content: center;
  gap: 3px;
}

.question-table-icon.danger-soft {
  color: #fb7185;
}

.question-table-icon.danger-soft:hover,
.question-table-icon.danger-soft:focus-visible {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.12);
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.18);
}

/* Ajustes finais: Home consolidada e indicadores de questoes */
.home-stats {
  grid-template-columns: minmax(175px, 0.70fr) minmax(175px, 0.68fr) minmax(520px, 1.6fr) minmax(315px, 1fr) !important;
  align-items: stretch !important;
}

.home-stats .neon-card,
.home-stats .next-session-card,
.home-stats .review-today-card,
.home-stats .weekly-time-card,
.home-stats .home-question-week-card {
  position: relative;
  height: 214px !important;
  min-height: 214px !important;
}

.home-stats .next-session-card > .session-tag {
  position: absolute;
  top: 15px;
  right: 18px;
  z-index: 2;
}

.neon-card .section-title > button,
.neon-card .card-title > button {
  position: absolute;
  top: 16px;
  right: 16px;
}

.focus-card {
  display: flex;
  flex-direction: column;
  padding-bottom: 10px;
}

.focus-card .center-action {
  margin-top: 15px;
  margin-bottom: 0;
}

.home-stats .next-session-card .card-title {
  padding-right: 88px;
}

.home-stats .next-session-card > strong {
  margin-top: 22px;
}

.weekly-time-card-layout {
  grid-template-columns: 165px minmax(240px, 0.90fr) 134px !important;
  gap: 14px !important;
}

.weekly-time-chart {
  min-height: 132px !important;
  padding: 26px 0px 22px 34px !important;
}

.weekly-time-meta {
  position: absolute;
  top: -10px;
  right: 15px;
  color: rgba(203, 213, 225, 0.9);
  font-size: 15px;
  font-weight: 400;
}

.weekly-time-axis {
  position: absolute;
  left: 5px;
  top: 26px;
  bottom: 32px;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  width: 28px;
  color: rgba(203, 213, 225, 0.72);
  font-size: 11px;
  font-weight: 350;
  line-height: 1;
  pointer-events: none;
}

.weekly-time-axis span {
  transform: translateY(-0.45em);
}

.weekly-time-lines {
  inset: 26px 0px 32px 34px !important;
}

.weekly-time-bars {
  gap: 10px !important;
}

.weekly-time-bars i {
  background: var(--bar-color, #8b5cf6) !important;
  box-shadow: 0 0 16px color-mix(in srgb, var(--bar-color, #8b5cf6), transparent 48%);
}

.home-question-week-layout {
  grid-template-columns: minmax(142px, 0.96fr) minmax(130px, 0.9fr) !important;
}

.home-question-week-accuracy .delta-indicator,
.questions-stat-card .delta-indicator {
  margin-top: 8px;
}

.delta-indicator {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: rgba(203, 213, 225, 0.78);
  font-style: normal;
  font-size: 14px;
  font-weight: 450;
  line-height: 1.25;
}

.delta-indicator i {
  font-style: normal;
  font-size: 0.82em;
}

.delta-indicator.up {
  color: #22c55e;
}

.delta-indicator.down {
  color: #fb7185;
}

.delta-indicator.neutral {
  color: rgba(148, 163, 184, 0.82);
}

@media (max-width: 1500px) {
  .home-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}



/* ==========================================================================
   Tema claro — camada legada (styles.css)
   Padrão de referência: Edital. Tudo aqui é escopado em html[data-theme="light"], então o tema
   escuro não é afetado. Regras: (1) trocar cor/fundo literal por token de design-system.css;
   (2) onde a regra escura usa !important, repetir !important aqui; (3) só o que é cor —
   layout e tipografia continuam nas regras originais.
   ========================================================================== */

/* Campos de formulário globais: especificidade zero (:where) para não vencer estilos de componente. */
:where(html[data-theme="light"]) :is(input, select, textarea) {
  background: var(--input-bg);
  border-color: var(--input-border);
  color: var(--ink);
}

:where(html[data-theme="light"]) :is(input, textarea)::placeholder {
  color: var(--text-muted);
}

/* Selo de status compartilhado (design-system.css fixa #c4b5fd). */
:where(html[data-theme="light"]) .ds-status-badge {
  border-color: rgba(124, 58, 237, 0.32);
  color: var(--primary);
}

/* Campos dentro do Edital (a regra escura .edital-page input tem especificidade maior que a global). */
html[data-theme="light"] .edital-page input,
html[data-theme="light"] .edital-page select,
html[data-theme="light"] .edital-page textarea,
html[data-theme="light"] .edital-import-modal textarea {
  border-color: var(--input-border);
  background: var(--input-bg);
  color: var(--ink);
}

/* Seletor de edital e subtítulo de cabeçalho (compartilhados com Home/Questões). */
html[data-theme="light"] .home-exam-selector.exam-context-selector,
html[data-theme="light"] .page-context-actions > select.exam-context-selector,
html[data-theme="light"] .edital-head-refined .page-context-actions .edital-context-selector.exam-context-selector {
  border-color: var(--input-border);
  background: var(--input-bg);
  color: var(--ink);
}

html[data-theme="light"] .edital-head-refined.page-context-head .page-context-copy p,
html[data-theme="light"] .questions-header.page-context-head .page-context-copy p {
  color: var(--muted);
}

/* Cartões principais */
html[data-theme="light"] .edital-metric,
html[data-theme="light"] .edital-detail-card,
html[data-theme="light"] .edital-disciplines,
html[data-theme="light"] .edital-details-form {
  border-color: var(--card-border);
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.07), transparent 38%),
    linear-gradient(145deg, var(--card-1), var(--card-2));
  box-shadow: 0 14px 34px rgba(57, 44, 89, 0.1);
}

/* Indicadores */
html[data-theme="light"] .edital-metric strong { color: var(--ink); }
html[data-theme="light"] .edital-metric.green strong { color: var(--success); }
html[data-theme="light"] .edital-metric.danger strong { color: var(--danger); }
html[data-theme="light"] .edital-metric.amber strong { color: var(--warning); }
html[data-theme="light"] .edital-metric.magenta strong { color: var(--magenta); }
html[data-theme="light"] .edital-metric.blue strong { color: var(--cyan); }
html[data-theme="light"] .edital-metric-icon { background: var(--primary-2); color: var(--primary); }
html[data-theme="light"] .edital-metric.green .edital-metric-icon { background: rgba(22, 138, 80, 0.12); color: var(--success); }
html[data-theme="light"] .edital-metric.blue .edital-metric-icon { background: rgba(8, 145, 178, 0.12); color: var(--cyan); }
html[data-theme="light"] .edital-metric.magenta .edital-metric-icon { background: rgba(192, 38, 211, 0.12); color: var(--magenta); }
html[data-theme="light"] .edital-metric.danger .edital-metric-icon { background: rgba(217, 45, 78, 0.12); color: var(--danger); }
html[data-theme="light"] .edital-metric.amber .edital-metric-icon { background: rgba(161, 98, 7, 0.12); color: var(--warning); }
html[data-theme="light"] .edital-metrics-refined .edital-metric > small,
html[data-theme="light"] .edital-metrics-refined .edital-metric-content small,
html[data-theme="light"] .edital-metric small span { color: var(--muted) !important; }
html[data-theme="light"] .edital-metric small b { color: var(--success); }

/* Lista de disciplinas */
html[data-theme="light"] .edital-search span { color: var(--muted); }
html[data-theme="light"] .edital-inline-create input { border-color: rgba(192, 38, 211, 0.4); background: var(--surface-soft-strong); }
html[data-theme="light"] .edital-discipline-card {
  border-color: var(--card-border);
  background: var(--surface-soft);
}
html[data-theme="light"] .edital-discipline-card.active,
html[data-theme="light"] .edital-discipline-card:hover {
  border-color: rgba(124, 58, 237, 0.62);
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(192, 38, 211, 0.05)),
    var(--card-1);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.1), 0 8px 22px rgba(124, 58, 237, 0.12);
}
html[data-theme="light"] .edital-discipline-card i,
html[data-theme="light"] .edital-discipline-card .discipline-pill-row i:not(.weight) { color: var(--muted) !important; }
html[data-theme="light"] .edital-discipline-card i.weight,
html[data-theme="light"] .pill {
  border-color: rgba(124, 58, 237, 0.3);
  background: var(--primary-2) !important;
  color: var(--primary) !important;
}
html[data-theme="light"] .edital-discipline-card i b,
html[data-theme="light"] .edital-discipline-card .discipline-pill-row i:not(.weight) b,
html[data-theme="light"] .edital-discipline-card .discipline-pill-row i.weight b {
  color: var(--ink) !important;
  text-shadow: none;
}
html[data-theme="light"] .edital-discipline-card em { background: var(--surface-soft-strong); }
html[data-theme="light"] .edital-discipline-stats,
html[data-theme="light"] .edital-tree-head,
html[data-theme="light"] .edital-tabs { border-color: var(--card-border); }
html[data-theme="light"] .edital-discipline-stats i,
html[data-theme="light"] .edital-discipline-stats strong i { color: #b45309; text-shadow: none; }
html[data-theme="light"] .edital-discipline-stats div:nth-child(2) i,
html[data-theme="light"] .edital-discipline-stats div:nth-child(2) strong i { color: var(--primary); text-shadow: none; }
html[data-theme="light"] .edital-discipline-stats div:nth-child(3) i,
html[data-theme="light"] .edital-discipline-stats div:nth-child(3) strong i { color: var(--danger); text-shadow: none; }

/* Árvore de tópicos */
html[data-theme="light"] .edital-topic-row,
html[data-theme="light"] .edital-topic-row-refined {
  border-bottom-color: var(--card-border);
  background: var(--surface-soft);
}
html[data-theme="light"] .edital-topic-row-refined:hover,
html[data-theme="light"] .edital-subtopic-row:hover { background: var(--surface-soft-strong); }
html[data-theme="light"] .edital-subtopics { border-left-color: var(--card-border); }
html[data-theme="light"] .edital-number { color: var(--ink); }
html[data-theme="light"] .edital-topic-main input,
html[data-theme="light"] .edital-subtopic-row input,
html[data-theme="light"] .edital-incidence-cell input { color: var(--ink); }
/* Edição inline: sem caixa até receber foco (mesmo comportamento do tema escuro). */
html[data-theme="light"] .edital-topic-main input,
html[data-theme="light"] .edital-subtopic-row input,
html[data-theme="light"] .edital-incidence-cell input {
  border-color: transparent;
  background: transparent;
}
html[data-theme="light"] .edital-topic-main input:focus,
html[data-theme="light"] .edital-subtopic-row input:focus,
html[data-theme="light"] .edital-incidence-cell input:focus {
  border-color: rgba(124, 58, 237, 0.5);
  background: var(--input-bg);
}
html[data-theme="light"] .edital-incidence-cell span { color: var(--muted); }
html[data-theme="light"] .edital-priority-empty,
html[data-theme="light"] .edital-incidence-dash { color: var(--text-muted); }
html[data-theme="light"] .topic-toggle,
html[data-theme="light"] .drag-handle,
html[data-theme="light"] .drag-handle.small {
  background: transparent;
  color: var(--icon-muted) !important;
}
html[data-theme="light"] .drag-handle:hover,
html[data-theme="light"] .drag-handle.small:hover,
html[data-theme="light"] .topic-toggle:hover { background: var(--primary-2); color: var(--primary) !important; }
html[data-theme="light"] .topic-order-priority { color: rgba(57, 44, 89, 0.2) !important; }
html[data-theme="light"] .topic-order-priority span { color: rgba(57, 44, 89, 0.2) !important; }
html[data-theme="light"] .topic-order-priority span.active { color: #c98700 !important; text-shadow: none !important; }
html[data-theme="light"] .topic-add-subtopic { color: var(--cyan); }
html[data-theme="light"] .status-dot.nao_estudado { color: var(--text-muted) !important; }
html[data-theme="light"] .status-dot.em_andamento { color: var(--success) !important; }
html[data-theme="light"] .status-dot.concluido { color: var(--cyan) !important; }
html[data-theme="light"] .status-dot::before { background: var(--text-muted); }
html[data-theme="light"] .status-dot.em_andamento::before { background: var(--success); box-shadow: 0 0 8px rgba(22, 138, 80, 0.4); }
html[data-theme="light"] .status-dot.concluido::before { background: var(--cyan) !important; box-shadow: 0 0 8px rgba(8, 145, 178, 0.4); }
html[data-theme="light"] .edital-add-line {
  border-color: rgba(124, 58, 237, 0.5);
  background: var(--primary-2);
  color: var(--primary);
}
html[data-theme="light"] .edital-alert {
  border-color: rgba(217, 45, 78, 0.32);
  background: rgba(217, 45, 78, 0.07);
  color: var(--danger);
}

/* Painel lateral: abas, formulários, dicas e prévia */
html[data-theme="light"] .edital-tabs button { color: var(--text-secondary); }
html[data-theme="light"] .edital-tabs button.active,
html[data-theme="light"] .edital-tabs .active { border-bottom-color: var(--magenta); color: var(--magenta); }
html[data-theme="light"] .edital-form-card { border-color: var(--card-border); background: var(--surface-soft); }
html[data-theme="light"] .edital-form-card h4 { color: var(--ink); }
html[data-theme="light"] .edital-form-card label,
html[data-theme="light"] .edital-panel-form label { color: var(--text-secondary); }
html[data-theme="light"] .edital-form-card small { color: var(--muted); }
html[data-theme="light"] .edital-tips,
html[data-theme="light"] .edital-import-preview { border-color: var(--card-border); background: var(--surface-soft); }
html[data-theme="light"] .edital-tips b { color: var(--warning); }
html[data-theme="light"] .edital-preview-card {
  border-color: rgba(124, 58, 237, 0.4);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(192, 38, 211, 0.05));
}
html[data-theme="light"] .edital-preview-card p { color: var(--text-secondary); }
html[data-theme="light"] .edital-preview-card p span { color: var(--warning); }
html[data-theme="light"] .preview-stats { color: var(--text-secondary); }
html[data-theme="light"] .preview-stats i { color: #b45309; }
html[data-theme="light"] .preview-stats span:nth-child(2) i { color: var(--primary); }

/* --- Home --- */
html[data-theme="light"] .page-context-head .page-context-copy p { color: var(--muted); }

html[data-theme="light"] .neon-card {
  border-color: var(--card-border);
  background:
    radial-gradient(circle at 20% 0%, rgba(139, 92, 246, 0.08), transparent 42%),
    linear-gradient(145deg, var(--card-1), var(--card-2));
  box-shadow: 0 14px 34px rgba(57, 44, 89, 0.1);
}
html[data-theme="light"] .neon-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 16px 38px rgba(57, 44, 89, 0.14), 0 0 0 1px rgba(124, 58, 237, 0.08);
}
html[data-theme="light"] .today-session,
html[data-theme="light"] .review-summary,
html[data-theme="light"] .performance-grid div,
html[data-theme="light"] .performance-hero {
  border-color: var(--card-border);
  background-color: var(--surface-soft);
}
html[data-theme="light"] .home-question-week-main .weekly-question-progress { background: var(--progress-track-bg); }
html[data-theme="light"] .home-start-session,
html[data-theme="light"] .home-exam-selector { box-shadow: 0 6px 16px rgba(124, 58, 237, 0.18); }

/* Banner de progresso do edital (Home) */
html[data-theme="light"] .edital-progress-banner {
  border-color: rgba(124, 58, 237, 0.4);
  background:
    radial-gradient(circle at 42% 50%, rgba(59, 130, 246, 0.08), transparent 38%),
    radial-gradient(circle at 12% 20%, rgba(139, 92, 246, 0.1), transparent 34%),
    linear-gradient(135deg, var(--card-1), var(--card-2));
  box-shadow: 0 0 0 1px rgba(192, 38, 211, 0.08) inset, 0 12px 32px rgba(124, 58, 237, 0.14);
}
html[data-theme="light"] .edital-progress-banner::before { background: radial-gradient(circle at 50% 50%, rgba(8, 145, 178, 0.06), transparent 48%); }
html[data-theme="light"] .edital-progress-left strong { color: var(--primary); text-shadow: none; }
html[data-theme="light"] .edital-progress-left small,
html[data-theme="light"] .edital-progress-right p { color: var(--text-secondary); }
html[data-theme="light"] .edital-progress-center h3 { color: var(--ink); }
html[data-theme="light"] .edital-progress-center h3 span { color: var(--primary); }
html[data-theme="light"] .edital-progress-right strong,
html[data-theme="light"] .edital-progress-right small { color: var(--cyan); text-shadow: none; }
html[data-theme="light"] .edital-progress-ring {
  background:
    radial-gradient(circle at 50% 50%, var(--card-1) 0 54%, transparent 55%),
    radial-gradient(circle, rgba(124, 58, 237, 0.1), transparent 72%);
}
html[data-theme="light"] .edital-banner-ring-track { stroke: rgba(124, 58, 237, 0.16); }
html[data-theme="light"] .edital-progress-ring span { color: var(--ink); text-shadow: none; }

/* Home: textos, etiquetas e gráficos com cor fixa clara */
html[data-theme="light"] .progress-caption,
html[data-theme="light"] .stat-value,
html[data-theme="light"] .neon-card > strong,
html[data-theme="light"] .ring-content strong,
html[data-theme="light"] .today-order strong,
html[data-theme="light"] .today-session-main strong,
html[data-theme="light"] .focus-list strong,
html[data-theme="light"] .review-summary strong,
html[data-theme="light"] .review-summary b,
html[data-theme="light"] .performance-hero strong,
html[data-theme="light"] .motivation-card p,
html[data-theme="light"] .weekly-time-summary strong,
html[data-theme="light"] .home-question-week-main strong,
html[data-theme="light"] .weekly-time-aside strong,
html[data-theme="light"] .weekly-time-aside b { color: var(--ink); }
html[data-theme="light"] .weekly-time-summary p,
html[data-theme="light"] .home-question-week-main p,
html[data-theme="light"] .home-question-week-accuracy p,
html[data-theme="light"] .home-question-week-accuracy span,
html[data-theme="light"] .weekly-time-summary em span,
html[data-theme="light"] .weekly-time-bars b,
html[data-theme="light"] .weekly-time-aside span,
html[data-theme="light"] .weekly-time-axis,
html[data-theme="light"] .donut-chart small,
html[data-theme="light"] .delta-indicator { color: var(--muted); }
html[data-theme="light"] .weekly-time-meta { color: var(--text-secondary); }
html[data-theme="light"] .weekly-time-summary em,
html[data-theme="light"] .home-question-week-accuracy strong { color: var(--cyan); text-shadow: none; }
html[data-theme="light"] .delta-indicator.down { color: var(--danger); }
html[data-theme="light"] .delta-indicator.up { color: var(--success); }
html[data-theme="light"] .delta-indicator.neutral { color: var(--muted); }
html[data-theme="light"] .progress-caption b { border-color: rgba(75, 66, 88, 0.5); color: var(--text-secondary); }
html[data-theme="light"] .progress-caption b::after {
  border-color: var(--card-border);
  background: var(--panel);
  color: var(--text-secondary);
  box-shadow: 0 12px 28px rgba(57, 44, 89, 0.16);
}
html[data-theme="light"] .tag-theory { border-color: rgba(22, 138, 80, 0.4); background: rgba(22, 138, 80, 0.1); color: var(--success); box-shadow: none; }
html[data-theme="light"] .tag-review { border-color: rgba(37, 99, 235, 0.38); background: rgba(37, 99, 235, 0.1); color: var(--blue); box-shadow: none; }
html[data-theme="light"] .donut-chart::after { background: var(--panel); }
html[data-theme="light"] .weekly-time-lines i { border-top-color: var(--card-border); }
html[data-theme="light"] .weekly-time-bars::after { background: var(--card-border); }
html[data-theme="light"] .weekly-time-aside::before { background: var(--card-border); }

/* Home: barra de progresso do edital, etiquetas de tempo e ícones de revisão */
html[data-theme="light"] .segment-track i { background: rgba(57, 44, 89, 0.14); box-shadow: none; }
html[data-theme="light"] .segment-track i.active { box-shadow: 0 0 10px rgba(8, 145, 178, 0.28); }
html[data-theme="light"] .segment-labels { color: var(--muted); }
html[data-theme="light"] .neon-card .time-pill { border: 1px solid rgba(124, 58, 237, 0.3); background: var(--primary-2); color: var(--ink); }
html[data-theme="light"] .weekly-review-icon { color: var(--blue); }
html[data-theme="light"] .monthly-review-icon { color: var(--magenta); }

/* --- Revisões (central inteligente) --- */
html[data-theme="light"] .reviews-hub-page,
html[data-theme="light"] .review-details-drawer,
html[data-theme="light"] .recovery-center-backdrop {
  --review-critical: #d92d4e;
  --review-high: #c2570c;
  --review-medium: #a16207;
  --review-low: #0891b2;
}
html[data-theme="light"] .review-next-card.urgency-unscored,
html[data-theme="light"] .review-score-ring.unscored { --review-level-color: var(--text-muted); --ring-color: var(--text-muted); }

/* Texto principal / secundário / apagado */
html[data-theme="light"] .review-week-footer strong,
html[data-theme="light"] .review-topic-performance-detail > strong,
html[data-theme="light"] .review-topic-performance-detail > span,
html[data-theme="light"] .review-today-times strong,
html[data-theme="light"] .review-inbox-table td:nth-child(2) > strong,
html[data-theme="light"] .review-inbox-table td:nth-child(3) > strong,
html[data-theme="light"] .review-history-table td:nth-child(3) > strong,
html[data-theme="light"] .review-history-table td:nth-child(4) > strong,
html[data-theme="light"] .review-inline-empty strong,
html[data-theme="light"] .review-recovery-preview li span { color: var(--ink); }
html[data-theme="light"] .review-inbox-table td,
html[data-theme="light"] .review-history-table td,
html[data-theme="light"] .review-next-reasons li,
html[data-theme="light"] .review-detail-columns li,
html[data-theme="light"] .review-insight-row,
html[data-theme="light"] .review-delay-grid b,
html[data-theme="light"] .review-recovery-overview { color: var(--text-secondary); }
html[data-theme="light"] .review-pending-layout > div span,
html[data-theme="light"] .review-pending-layout li span,
html[data-theme="light"] .review-week-main > div span,
html[data-theme="light"] .review-week-footer,
html[data-theme="light"] .review-recovery-card p,
html[data-theme="light"] .review-recovery-result,
html[data-theme="light"] .review-recovery-result small,
html[data-theme="light"] .review-score-ring span,
html[data-theme="light"] .review-next-subject > p,
html[data-theme="light"] .review-next-meta,
html[data-theme="light"] .review-evidence-grid span,
html[data-theme="light"] .review-topic-performance-head > span,
html[data-theme="light"] .review-topic-performance .unscored,
html[data-theme="light"] .review-detail-evidence .unscored,
html[data-theme="light"] .review-today-hub-card .review-card-heading small,
html[data-theme="light"] .review-today-times span,
html[data-theme="light"] .review-today-empty-state span,
html[data-theme="light"] .review-inbox-table td:nth-child(3) > span,
html[data-theme="light"] .review-inbox-table td:nth-child(8) > span,
html[data-theme="light"] .review-history-table td:nth-child(4) > span,
html[data-theme="light"] .review-table-priority.unscored,
html[data-theme="light"] .review-level-badge.unscored,
html[data-theme="light"] .review-insight-row small,
html[data-theme="light"] .review-insight-row > .review-icon:last-child,
html[data-theme="light"] .review-inline-empty,
html[data-theme="light"] .review-load-error,
html[data-theme="light"] .review-details-drawer header p,
html[data-theme="light"] .review-recovery-preview li b { color: var(--muted); }
html[data-theme="light"] .review-inbox-table th,
html[data-theme="light"] .review-history-table th,
html[data-theme="light"] .review-inbox-table td:nth-child(7) > strong small,
html[data-theme="light"] .review-detail-evidence span { color: var(--text-muted); }

/* Cores semânticas */
html[data-theme="light"] .review-week-main > div:nth-child(2) b,
html[data-theme="light"] .review-recovery-result strong,
html[data-theme="light"] .review-today-score b,
html[data-theme="light"] .review-type-badge { color: var(--cyan); text-shadow: none; }
html[data-theme="light"] .review-week-trend.up,
html[data-theme="light"] .review-next-meta .on-time,
html[data-theme="light"] .review-on-time,
html[data-theme="light"] .review-topic-performance .good,
html[data-theme="light"] .review-detail-evidence .good,
html[data-theme="light"] .review-history-table .success-text,
html[data-theme="light"] .review-empty-card > div > .review-icon,
html[data-theme="light"] .review-today-empty-state > .review-icon,
html[data-theme="light"] .review-inline-empty > .review-icon,
html[data-theme="light"] .review-type-badge.livre,
html[data-theme="light"] .review-insight-row.green > .review-icon:first-child { color: var(--success) !important; }
html[data-theme="light"] .review-week-trend.down,
html[data-theme="light"] .review-next-meta .late,
html[data-theme="light"] .review-late,
html[data-theme="light"] .review-topic-performance .bad,
html[data-theme="light"] .review-detail-evidence .bad,
html[data-theme="light"] .review-history-table .danger-text,
html[data-theme="light"] .review-history-actions button.danger,
html[data-theme="light"] .review-delay-grid span:last-child strong,
html[data-theme="light"] .review-insight-row.danger > .review-icon:first-child { color: var(--danger) !important; }
html[data-theme="light"] .review-topic-performance .warn,
html[data-theme="light"] .review-detail-evidence .warn,
html[data-theme="light"] .review-delay-grid strong,
html[data-theme="light"] .review-detail-warnings p,
html[data-theme="light"] .review-type-badge.mensal { color: var(--warning); }
html[data-theme="light"] .review-type-badge.semanal,
html[data-theme="light"] .review-card-heading > .review-icon,
html[data-theme="light"] .review-next-reasons li .review-icon,
html[data-theme="light"] .review-detail-columns li .review-icon,
html[data-theme="light"] .review-insight-row.purple > .review-icon:first-child,
html[data-theme="light"] .review-recovery-preview li { color: var(--primary); }
html[data-theme="light"] .review-insight-row.blue > .review-icon:first-child { color: var(--blue); }
html[data-theme="light"] .review-today-times > div:first-child .review-icon { color: var(--cyan); }
html[data-theme="light"] .review-today-times > div:last-child .review-icon { color: #b45309; }
html[data-theme="light"] .review-type-badge { border-color: rgba(8, 145, 178, 0.38); background: rgba(8, 145, 178, 0.08); }
html[data-theme="light"] .review-type-badge.semanal { border-color: rgba(124, 58, 237, 0.34); background: var(--primary-2); }
html[data-theme="light"] .review-type-badge.mensal { border-color: rgba(161, 98, 7, 0.4); background: rgba(161, 98, 7, 0.08); }
html[data-theme="light"] .review-type-badge.livre { border-color: rgba(22, 138, 80, 0.36); background: rgba(22, 138, 80, 0.08); }
html[data-theme="light"] .review-pending-layout li i.monthly { background: #c2570c; }

/* Superfícies internas e controles */
html[data-theme="light"] .review-evidence-grid > div,
html[data-theme="light"] .review-topic-performance,
html[data-theme="light"] .review-today-times > div,
html[data-theme="light"] .review-insight-row,
html[data-theme="light"] .review-recovery-preview,
html[data-theme="light"] .review-table-priority { border-color: var(--card-border); background: var(--surface-soft); }
html[data-theme="light"] .review-detail-evidence > div,
html[data-theme="light"] .review-delay-grid span { border-color: var(--card-border); }
html[data-theme="light"] .review-topic-performance-head .review-icon { border-color: var(--card-border); background: var(--surface-soft-strong); color: var(--muted); }
html[data-theme="light"] .review-sort-control,
html[data-theme="light"] .review-history-head input,
html[data-theme="light"] .review-history-head select { border-color: var(--input-border); background: var(--input-bg); color: var(--ink); }
html[data-theme="light"] .review-time-choice { border-color: var(--card-border); background: var(--surface-soft); color: var(--text-secondary); }
html[data-theme="light"] .review-time-choice:hover,
html[data-theme="light"] .review-time-choice:focus-visible,
html[data-theme="light"] .review-time-choice.active { border-color: rgba(124, 58, 237, 0.7); background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff; box-shadow: 0 6px 16px rgba(124, 58, 237, 0.24); }
html[data-theme="light"] .review-card-action,
html[data-theme="light"] .review-card-link { border-color: rgba(124, 58, 237, 0.34); background: var(--primary-2); color: var(--primary); }
html[data-theme="light"] .review-card-action:hover,
html[data-theme="light"] .review-card-link:hover,
html[data-theme="light"] .review-card-action:focus-visible,
html[data-theme="light"] .review-card-link:focus-visible { border-color: rgba(124, 58, 237, 0.6); color: var(--primary); box-shadow: 0 6px 16px rgba(124, 58, 237, 0.16); }
html[data-theme="light"] .review-quick-filters button { border-color: var(--card-border); background: var(--surface-soft); color: var(--muted); }
html[data-theme="light"] .review-quick-filters button:hover,
html[data-theme="light"] .review-quick-filters button:focus-visible,
html[data-theme="light"] .review-quick-filters button.active { border-color: rgba(124, 58, 237, 0.5); background: rgba(124, 58, 237, 0.14); color: var(--primary); }
html[data-theme="light"] .review-icon-button,
html[data-theme="light"] .review-history-actions button,
html[data-theme="light"] .review-drawer-close { border-color: var(--card-border); background: var(--surface-soft); color: var(--muted); }
html[data-theme="light"] .review-icon-button:hover,
html[data-theme="light"] .review-icon-button:focus-visible,
html[data-theme="light"] .review-history-actions button:hover,
html[data-theme="light"] .review-history-actions button:focus-visible,
html[data-theme="light"] .review-drawer-close:hover,
html[data-theme="light"] .review-drawer-close:focus-visible { border-color: rgba(124, 58, 237, 0.46); color: var(--primary); box-shadow: none; }
html[data-theme="light"] .review-history-actions button.danger:hover,
html[data-theme="light"] .review-history-actions button.danger:focus-visible { border-color: rgba(217, 45, 78, 0.44); background: rgba(217, 45, 78, 0.08); }
html[data-theme="light"] .review-inbox-table td,
html[data-theme="light"] .review-history-table td { border-bottom-color: var(--card-border); }
html[data-theme="light"] .review-week-footer,
html[data-theme="light"] .review-next-reasons { border-color: var(--card-border); }
html[data-theme="light"] .review-score-track { stroke: rgba(57, 44, 89, 0.14); }
html[data-theme="light"] .review-score-line { background: var(--progress-track-bg); }
html[data-theme="light"] .review-score-line i.unscored { background: var(--text-muted); }
html[data-theme="light"] .review-insight-row > .review-icon:first-child { background: var(--primary-2); }
html[data-theme="light"] .review-insight-row.danger > .review-icon:first-child { background: rgba(217, 45, 78, 0.1); }
html[data-theme="light"] .review-insight-row.blue > .review-icon:first-child { background: rgba(37, 99, 235, 0.1); }
html[data-theme="light"] .review-insight-row.green > .review-icon:first-child { background: rgba(22, 138, 80, 0.1); }
html[data-theme="light"] .review-insight-row.purple > .review-icon:first-child { background: var(--primary-2); }
html[data-theme="light"] .reviews-hub-page button:focus-visible,
html[data-theme="light"] .reviews-hub-page select:focus-visible,
html[data-theme="light"] .reviews-hub-page input:focus-visible { outline-color: var(--cyan); }

/* Drawer de detalhes da revisão */
html[data-theme="light"] .review-drawer-backdrop { background: var(--drawer-backdrop); }
html[data-theme="light"] .review-details-drawer {
  border-color: var(--drawer-border);
  background: linear-gradient(160deg, var(--drawer-1), var(--drawer-2) 72%);
  box-shadow: -24px 0 60px rgba(57, 44, 89, 0.2);
}
html[data-theme="light"] .review-details-drawer > header,
html[data-theme="light"] .review-details-drawer > section { border-bottom-color: var(--card-border); }
html[data-theme="light"] .review-details-drawer footer { border-top-color: var(--card-border); background: var(--drawer-footer-bg); }

html[data-theme="light"] .reviews-hub-page { color: var(--ink); }

/* --- Questões --- */
html[data-theme="light"] .questions-header .page-context-actions select,
html[data-theme="light"] .questions-page select { border-color: var(--input-border); background: var(--input-bg); color: var(--ink); }
html[data-theme="light"] .questions-page .questions-card.ds-card {
  border-color: var(--card-border);
  background:
    radial-gradient(circle at 16% 0%, rgba(139, 92, 246, 0.07), transparent 34%),
    linear-gradient(145deg, var(--card-1), var(--card-2));
  box-shadow: 0 14px 34px rgba(57, 44, 89, 0.1);
}
html[data-theme="light"] .import-card { border-color: rgba(8, 145, 178, 0.28); }
html[data-theme="light"] .questions-stat-body > small,
html[data-theme="light"] .questions-card h3,
html[data-theme="light"] .questions-stat-card strong,
html[data-theme="light"] .questions-table td { color: var(--ink); }
html[data-theme="light"] .question-highlight-card .highlight-subtitle,
html[data-theme="light"] .question-highlight-card .highlight-result span,
html[data-theme="light"] .question-highlight-card .highlight-questions,
html[data-theme="light"] .questions-stat-card p,
html[data-theme="light"] .questions-card p,
html[data-theme="light"] .questions-card-head h3 span,
html[data-theme="light"] .questions-donut span,
html[data-theme="light"] .questions-table th,
html[data-theme="light"] #questionDisciplineTable .questions-table th,
html[data-theme="light"] .records-card .questions-table th { color: var(--muted); }
html[data-theme="light"] .question-highlight-card .highlight-result strong { color: var(--cyan); text-shadow: none; }
html[data-theme="light"] .questions-stat-icon { background: var(--primary-2); color: var(--primary); box-shadow: none; }
html[data-theme="light"] .questions-stat-card.target > span { color: var(--primary); }
html[data-theme="light"] .questions-stat-card.trophy > span { color: var(--success); }
html[data-theme="light"] .questions-stat-card.alert > span { background: rgba(217, 45, 78, 0.1); color: var(--danger); }
html[data-theme="light"] .questions-stat-card em,
html[data-theme="light"] .questions-table .good { color: var(--success); }
html[data-theme="light"] .questions-table .warn { color: var(--warning); }
html[data-theme="light"] .questions-table .bad { color: var(--danger); }
html[data-theme="light"] .questions-table th,
html[data-theme="light"] .questions-table td { border-bottom-color: var(--card-border); }
html[data-theme="light"] .questions-line-chart line { stroke: rgba(57, 44, 89, 0.12); }
html[data-theme="light"] .questions-line-chart text { fill: var(--muted); }
html[data-theme="light"] .questions-line-chart .questions-label { fill: var(--primary); }
html[data-theme="light"] .questions-line-chart .accuracy-label { fill: var(--cyan); }
html[data-theme="light"] .questions-donut { box-shadow: 0 0 24px rgba(8, 145, 178, 0.14); }
html[data-theme="light"] .questions-donut::after { background: var(--panel); }
html[data-theme="light"] .question-live-result { border-color: rgba(8, 145, 178, 0.3); background: rgba(8, 145, 178, 0.08); color: var(--cyan); }
html[data-theme="light"] .weekly-question-progress-row em { color: var(--primary); }
html[data-theme="light"] .question-table-icon.danger-soft { color: var(--danger); }
html[data-theme="light"] .question-table-icon.danger-soft:hover,
html[data-theme="light"] .question-table-icon.danger-soft:focus-visible { color: var(--danger); background: rgba(217, 45, 78, 0.1); box-shadow: none; }
html[data-theme="light"] .ds-segmented-option.active { background: var(--primary-2); color: var(--primary); }

/* Questões: linhas de atenção, tendências, ações rápidas e rótulos de gráfico */
html[data-theme="light"] .chart-labels,
html[data-theme="light"] .attention-row span,
html[data-theme="light"] .attention-row small,
html[data-theme="light"] .trend-list small { color: var(--muted); }
html[data-theme="light"] .attention-row strong { color: var(--ink); }
html[data-theme="light"] .attention-row { border-color: var(--card-border); border-left-color: #d99a06; background: var(--surface-soft); }
html[data-theme="light"] .trend-list button:not(.card-bottom-action),
html[data-theme="light"] .quick-card button { border-color: var(--card-border); background: var(--surface-soft); color: var(--ink); }
html[data-theme="light"] .trend-list i.up { border-color: rgba(22, 138, 80, 0.5); color: var(--success); }
html[data-theme="light"] .trend-list i.down { border-color: rgba(217, 45, 78, 0.5); color: var(--danger); }
html[data-theme="light"] .quick-card button svg { stroke: var(--primary); }
html[data-theme="light"] .weekly-time-axis { color: var(--muted); }

/* Revisões: tooltip do IUR, composição do índice e detalhes de log */
html[data-theme="light"] .review-iur-info summary:focus-visible { outline-color: var(--cyan); }
html[data-theme="light"] .review-iur-info p { border-color: var(--card-border); background: var(--panel); box-shadow: 0 14px 30px rgba(57, 44, 89, 0.16); color: var(--text-secondary); }
html[data-theme="light"] .review-component-row { color: var(--muted); }
html[data-theme="light"] .review-component-row > div { background: var(--progress-track-bg); }
html[data-theme="light"] .review-component-row > strong { color: var(--ink); }
html[data-theme="light"] .review-component-row > strong small { color: var(--text-muted); }
html[data-theme="light"] .review-log-detail-grid > div { border-color: var(--card-border); background: var(--surface-soft); }
html[data-theme="light"] .review-log-detail-grid span { color: var(--text-muted); }

/* Configurações: campo inline (meta semanal) */
html[data-theme="light"] .inline-setting-input input { border-color: var(--input-border); background: var(--input-bg); color: var(--ink); }
html[data-theme="light"] .inline-setting-input span { color: var(--muted); }

/* ==========================================================================
   Tema claro — Timer / Modo Foco
   Escopado em html[data-theme="light"]; o tema escuro não é afetado. Só cor, via tokens de design-system.css.
   ========================================================================== */
html[data-theme="light"] .focus-floating-button {
  border-color: rgba(124, 58, 237, 0.42);
  background:
    radial-gradient(circle at 50% 20%, rgba(217, 70, 239, 0.16), transparent 42%),
    var(--card-1);
  color: var(--primary);
  box-shadow: 0 10px 26px rgba(124, 58, 237, 0.26);
}
html[data-theme="light"] .focus-floating-button:hover { border-color: rgba(8, 145, 178, 0.6); box-shadow: 0 12px 30px rgba(124, 58, 237, 0.34); }
html[data-theme="light"] .focus-floating-button.attention {
  border-color: rgba(8, 145, 178, 0.75);
  background:
    radial-gradient(circle at 50% 20%, rgba(217, 70, 239, 0.2), transparent 40%),
    radial-gradient(circle at 50% 78%, rgba(8, 145, 178, 0.16), transparent 45%),
    var(--card-1);
}
html[data-theme="light"] .floating-clock::before {
  border-color: var(--primary);
  background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.1), transparent 58%);
  box-shadow: none;
}
html[data-theme="light"] .floating-clock::after { border-left-color: var(--primary); border-bottom-color: var(--primary); }

/* Overlay */
html[data-theme="light"] .focus-overlay { color: var(--ink); }
html[data-theme="light"] .focus-overlay-bg {
  background:
    radial-gradient(circle at 50% 58%, rgba(139, 92, 246, 0.12), transparent 36%),
    radial-gradient(circle at 62% 54%, rgba(8, 145, 178, 0.08), transparent 33%),
    rgba(246, 243, 251, 0.95);
}
html[data-theme="light"] .focus-overlay-bg::after {
  background-image: linear-gradient(rgba(57, 44, 89, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(57, 44, 89, 0.04) 1px, transparent 1px);
}
html[data-theme="light"] .focus-close,
html[data-theme="light"] .focus-config-button { border-color: var(--card-border); background: var(--card-1); color: var(--muted); }
html[data-theme="light"] .focus-config-button:hover,
html[data-theme="light"] .focus-close:hover { border-color: rgba(124, 58, 237, 0.5); color: var(--primary); box-shadow: 0 6px 16px rgba(124, 58, 237, 0.16); }
html[data-theme="light"] .focus-mode-selector button { color: var(--muted); }
html[data-theme="light"] .focus-mode-selector button.active { color: var(--ink); }
html[data-theme="light"] .focus-mode-selector button.active::after { box-shadow: none; }
html[data-theme="light"] .focus-return-message { border-color: rgba(8, 145, 178, 0.3); background: rgba(8, 145, 178, 0.08); color: var(--cyan); }
html[data-theme="light"] .focus-stage::before { background: radial-gradient(circle, rgba(139, 92, 246, 0.14) 0%, rgba(8, 145, 178, 0.06) 35%, transparent 70%); }
html[data-theme="light"] .focus-circle { color: var(--ink); }
html[data-theme="light"] .focus-disc {
  border-color: var(--card-border);
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #f8f5fd 64%, #efe9f8 100%);
  box-shadow: inset 0 0 22px rgba(124, 58, 237, 0.05), inset 0 0 48px rgba(124, 58, 237, 0.06), 0 14px 44px rgba(124, 58, 237, 0.16);
}
html[data-theme="light"] .focus-inner strong { color: var(--ink); }
html[data-theme="light"] .focus-inner strong:hover { color: var(--primary); text-shadow: none; }
html[data-theme="light"] .focus-inner small { color: var(--magenta); }
html[data-theme="light"] .focus-check { border-color: rgba(22, 138, 80, 0.7); color: var(--success); box-shadow: 0 0 24px rgba(22, 138, 80, 0.2); }

/* Controles */
html[data-theme="light"] .focus-primary,
html[data-theme="light"] .focus-ghost,
html[data-theme="light"] .focus-round { border-color: rgba(124, 58, 237, 0.4); background: var(--primary-2); color: var(--primary); }
html[data-theme="light"] .focus-primary { background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff; box-shadow: 0 8px 20px rgba(124, 58, 237, 0.28); }
html[data-theme="light"] .focus-round { background: var(--card-1); color: var(--ink); }
html[data-theme="light"] .focus-ghost { background: var(--surface-soft); color: var(--muted); }
html[data-theme="light"] .focus-primary:hover,
html[data-theme="light"] .focus-ghost:hover,
html[data-theme="light"] .focus-round:hover { box-shadow: 0 8px 20px rgba(124, 58, 237, 0.2); }
html[data-theme="light"] .focus-controls [data-focus-action="start"],
html[data-theme="light"] .focus-controls [data-focus-action="start-break"],
html[data-theme="light"] .focus-controls [data-focus-action="next-pomodoro-cycle"],
html[data-theme="light"] .focus-controls [data-focus-action="pause-continue"] { background: var(--card-1); box-shadow: 0 8px 22px rgba(124, 58, 237, 0.22), inset 0 0 14px rgba(124, 58, 237, 0.06); }
html[data-theme="light"] .focus-controls [data-focus-action="finish"],
html[data-theme="light"] .focus-controls [data-focus-action="register"],
html[data-theme="light"] .focus-controls [data-focus-action="register-free-study"],
html[data-theme="light"] .focus-controls [data-focus-action="end-pomodoro-session"] { border-color: rgba(22, 138, 80, 0.55); background: rgba(22, 138, 80, 0.1); box-shadow: 0 8px 20px rgba(22, 138, 80, 0.16); }
html[data-theme="light"] .focus-controls [data-focus-action="start"]::before,
html[data-theme="light"] .focus-overlay.paused .focus-controls [data-focus-action="pause-continue"]::before { border-left-color: var(--primary); filter: none; }
html[data-theme="light"] .focus-controls [data-focus-action="start-break"]::before,
html[data-theme="light"] .focus-controls [data-focus-action="next-pomodoro-cycle"]::before { border-top-color: var(--primary); border-bottom-color: var(--cyan); border-left-color: rgba(192, 38, 211, 0.9); border-right-color: rgba(37, 99, 235, 0.9); box-shadow: none; }
html[data-theme="light"] .focus-controls [data-focus-action="start-break"]::after,
html[data-theme="light"] .focus-controls [data-focus-action="next-pomodoro-cycle"]::after { filter: none; }
html[data-theme="light"] .focus-overlay.running .focus-controls [data-focus-action="pause-continue"]::before,
html[data-theme="light"] .focus-overlay.running .focus-controls [data-focus-action="pause-continue"]::after { background: var(--primary); box-shadow: none; }
html[data-theme="light"] .focus-controls [data-focus-action="finish"]::before,
html[data-theme="light"] .focus-controls [data-focus-action="register"]::before,
html[data-theme="light"] .focus-controls [data-focus-action="register-free-study"]::before,
html[data-theme="light"] .focus-controls [data-focus-action="end-pomodoro-session"]::before { border-left-color: var(--success); border-bottom-color: var(--success); filter: none; }

/* Painel de configurações do timer */
html[data-theme="light"] .focus-settings-panel { border-color: var(--card-border); background: var(--card-1); box-shadow: 0 24px 60px rgba(57, 44, 89, 0.2); }
html[data-theme="light"] .focus-settings-panel small,
html[data-theme="light"] .focus-time-fields span,
html[data-theme="light"] .focus-volume-row,
html[data-theme="light"] .focus-sound-row span { color: var(--muted); }
html[data-theme="light"] .focus-settings-close { background: var(--surface-soft); color: var(--ink); }
html[data-theme="light"] .focus-time-fields b,
html[data-theme="light"] .focus-volume-row b { color: var(--ink); }
html[data-theme="light"] .focus-time-fields input,
html[data-theme="light"] .focus-sound-row select { border-color: var(--input-border); background: var(--input-bg); color: var(--ink); }
html[data-theme="light"] .focus-suggestions button { border-color: var(--card-border); background: var(--surface-soft); color: var(--text-secondary); }
html[data-theme="light"] .focus-suggestions button.active { border-color: rgba(124, 58, 237, 0.6); background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff; box-shadow: 0 6px 16px rgba(124, 58, 237, 0.22); }
html[data-theme="light"] .focus-confirm { box-shadow: 0 8px 20px rgba(124, 58, 237, 0.26); }
html[data-theme="light"] .focus-sound-master { border-color: var(--card-border); background: var(--surface-soft); color: var(--ink); }
html[data-theme="light"] .focus-test-sound { border-color: rgba(8, 145, 178, 0.3); background: rgba(8, 145, 178, 0.08); color: var(--cyan); }
html[data-theme="light"] .focus-test-sound:hover,
html[data-theme="light"] .focus-test-sound.tested { border-color: rgba(22, 138, 80, 0.44); color: var(--success); box-shadow: none; }
html[data-theme="light"] body.focus-registering .modal-backdrop { background: var(--modal-backdrop); }
html[data-theme="light"] body.focus-registering .modal { border-color: var(--card-border); background: var(--card-1); box-shadow: 0 26px 70px rgba(57, 44, 89, 0.24); }

/* Timer: a animação de respiração do disco usa sombras internas pretas; versão clara com o mesmo ritmo. */
@keyframes focusDiscBreathLight {
  0%,
  100% {
    transform: scale(1);
    box-shadow: inset 0 0 22px rgba(124, 58, 237, 0.05), inset 0 0 48px rgba(124, 58, 237, 0.06), 0 14px 44px rgba(124, 58, 237, 0.16);
  }
  50% {
    transform: scale(1.006);
    box-shadow: inset 0 0 18px rgba(124, 58, 237, 0.07), inset 0 0 44px rgba(124, 58, 237, 0.08), 0 16px 50px rgba(124, 58, 237, 0.22), 0 0 34px rgba(192, 38, 211, 0.12);
  }
}
html[data-theme="light"] body.focus-mode-running .focus-disc { animation-name: focusDiscBreathLight; }

/* ==========================================================================
   Toggle de tema no topo (portado dos protótipos frozen de Desempenho/Simulados).
   Criado por app.js (renderThemeToggle) dentro de .topbar; oculto em Configurações.
   ========================================================================== */
.theme-toggle {
  position: relative;
  z-index: 8;
  align-self: flex-start;
  width: fit-content;
  height: 34px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: rgba(16, 14, 38, 0.72);
  color: var(--muted);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
  transition: border-color 0.16s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { border-color: rgba(139, 92, 246, 0.3); }
.theme-toggle:focus-visible { outline: 2px solid rgba(139, 92, 246, 0.6); outline-offset: 2px; }
.theme-toggle .theme-icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.58;
  transition: opacity 0.16s ease, color 0.16s ease;
}
.theme-toggle .theme-switch {
  width: 30px;
  height: 18px;
  padding: 2px;
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.18);
  transition: background 0.18s ease;
}
.theme-toggle .theme-knob {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d9d4e8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  transform: translateX(0);
  transition: transform 0.18s cubic-bezier(0.2, 0.72, 0.2, 1), background 0.18s ease;
}
.theme-toggle[aria-pressed="true"] .theme-knob { transform: translateX(12px); background: #fff; }
.theme-toggle[aria-pressed="false"] .theme-moon { opacity: 1; color: #c8b8ff; }
.theme-toggle[aria-pressed="true"] .theme-sun { opacity: 1; color: #8b5cf6; }
html[data-theme="light"] .theme-toggle { background: rgba(255, 255, 255, 0.86); color: #756d86; box-shadow: 0 4px 14px rgba(66, 48, 96, 0.05); }
html[data-theme="light"] .theme-toggle .theme-switch { background: rgba(139, 92, 246, 0.14); }
html[data-theme="light"] .theme-toggle .theme-knob { background: #8b5cf6; box-shadow: 0 1px 4px rgba(66, 48, 96, 0.25); }
@media (max-width: 760px) {
  .theme-toggle { height: 38px; padding: 4px 6px; gap: 5px; }
  .theme-toggle .theme-switch { width: 28px; height: 17px; }
  .theme-toggle .theme-knob { width: 13px; height: 13px; }
  .theme-toggle[aria-pressed="true"] .theme-knob { transform: translateX(11px); }
}
