﻿:root {
  --bg: #070b16;
  --bg-soft: #0b1122;
  --surface: #10182d;
  --surface-2: #16203a;
  --surface-3: #1c2847;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f6ff;
  --muted: #9aa7c7;
  --muted-2: #6f7da3;
  --lime: #c8ff4d;
  --lime-soft: rgba(200, 255, 77, 0.14);
  --teal: #4de0c0;
  --blue: #6c8cff;
  --coral: #ff7a7a;
  --violet: #b69cff;
  --amber: #ffd166;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(108, 140, 255, 0.16), transparent 60%),
    radial-gradient(900px 600px at -10% 15%, rgba(200, 255, 77, 0.08), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 75%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.app {
  min-height: 100dvh;
}

.main {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 16px calc(108px + env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hello {
  margin: 0;
  font-size: clamp(24px, 6.4vw, 34px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.05;
}

.hello .dot {
  color: var(--lime);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}

.streak {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.streak svg {
  width: 15px;
  height: 15px;
  color: var(--lime);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.pill-accent {
  background: var(--lime);
  color: #08101f;
}

.view {
  animation: fadeUp 0.38s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 24px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(28, 40, 71, 0.9), rgba(10, 16, 32, 0.94)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -90px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 255, 77, 0.24), transparent 65%);
}

.hero::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  left: -100px;
  bottom: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 140, 255, 0.22), transparent 65%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-copy {
  max-width: 560px;
}

.hero h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 8vw, 48px);
  font-weight: 800;
  letter-spacing: -1.8px;
  line-height: 0.98;
}

.hero h2 .count {
  color: var(--lime);
  font-family: var(--mono);
  letter-spacing: -2px;
}

.hero p {
  margin: 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-side {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ring {
  --p: 0%;
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--lime) var(--p), rgba(255, 255, 255, 0.08) 0);
}

.ring::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #0b1324;
}

.ring-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.ring-inner strong {
  display: block;
  font-family: var(--mono);
  font-size: 27px;
  line-height: 1;
}

.ring-inner span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  max-width: 16ch;
}

.grid {
  display: grid;
  align-items: start;
  gap: 12px;
}

.grid-2,
.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014));
}

.grid > *,
.q-card,
.week-card {
  min-width: 0;
}

.card.tight {
  padding: 15px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.2px;
}

.card-sub {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.section {
  margin-top: 26px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.45px;
}

.section-link {
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat .num {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1;
}

.stat .label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat .hint {
  color: var(--muted-2);
  font-size: 11px;
}

.stat-card {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.stat-card:hover {
  border-color: rgba(200, 255, 77, 0.35);
}

.stat-card .stat-arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  color: var(--lime);
  opacity: 0.75;
}

.stat-card .stat-arrow svg {
  width: 16px;
  height: 16px;
}

.focus-list {
  display: flex;
  flex-direction: column;
}

.focus-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.focus-item:first-child {
  border-top: 0;
  padding-top: 2px;
}

.focus-rank {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--lime-soft);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.focus-body {
  flex: 1;
  min-width: 0;
}

.focus-name {
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-meta {
  color: var(--muted);
  font-size: 11px;
}

.focus-btn {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s;
}

.focus-btn:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.check-list {
  display: flex;
  flex-direction: column;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.check-row:first-child {
  border-top: 0;
  padding-top: 2px;
}

.check-box {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 1.5px solid var(--line-strong);
  border-radius: 7px;
  transition: 0.18s;
}

.check-box svg {
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: scale(0.6);
  transition: 0.18s;
}

.check-row.done .check-box {
  border-color: var(--lime);
  background: var(--lime);
  color: #08101f;
}

.check-row.done .check-box svg {
  opacity: 1;
  transform: scale(1);
}

.check-row.done .check-label {
  color: var(--muted-2);
  text-decoration: line-through;
}

.check-label {
  font-size: 13.5px;
  font-weight: 600;
  transition: 0.18s;
}

.check-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.cal-scroll {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.cal-scroll::-webkit-scrollbar,
.chips::-webkit-scrollbar {
  display: none;
}

.cal-card {
  min-width: 132px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.cal-card .prova {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.cal-card .dias {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
}

.cal-card .dias small {
  color: var(--muted);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
}

.cal-card[data-cor="lime"] .dias {
  color: var(--lime);
}

.cal-card[data-cor="blue"] .dias {
  color: var(--blue);
}

.cal-card[data-cor="teal"] .dias {
  color: var(--teal);
}

.cal-card.past {
  opacity: 0.45;
}

.cal-head {
  padding: 14px;
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cal-arrow {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.cal-arrow:hover {
  border-color: rgba(200, 255, 77, 0.4);
}

.cal-title {
  flex: 1;
  text-align: center;
}

.cal-title strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.3px;
}

.cal-title span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}

.cal-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin: 12px 0 5px;
}

.cal-week span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.cal-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 52px;
  padding: 5px 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  cursor: pointer;
}

.cal-day:hover {
  border-color: rgba(200, 255, 77, 0.35);
}

.cal-num {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
}

.cal-dots {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 6px;
}

.cal-dots i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.cal-dots .more {
  width: auto;
  height: auto;
  background: none !important;
  color: var(--muted);
  font-size: 8px;
  line-height: 1;
}

.cal-day.out {
  opacity: 0.35;
}

.cal-day.today {
  border-color: rgba(200, 255, 77, 0.6);
}

.cal-day.selected {
  background: var(--lime-soft);
  border-color: var(--lime);
}

.cal-event {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.cal-event:first-of-type {
  border-top: 0;
}

.cal-event-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.cal-event-body {
  flex: 1;
  min-width: 0;
}

.cal-event-body strong {
  display: block;
  font-size: 13.5px;
  line-height: 1.35;
}

.cal-event-body span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.cal-event.done .cal-event-body strong {
  text-decoration: line-through;
  opacity: 0.55;
}

.cal-check {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
}

.cal-check.done {
  border-color: var(--lime);
  background: var(--lime);
  color: #08101f;
}

.cal-check svg {
  width: 14px;
  height: 14px;
}

.cal-icon {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}

.cal-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px 118px auto;
  gap: 8px;
  margin-top: 10px;
}

.cal-input {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
}

.cal-input:focus {
  outline: 1px solid rgba(200, 255, 77, 0.6);
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 10.5px;
}

.cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cal-legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

@media (max-width: 639px) {
  .cal-form {
    grid-template-columns: 1fr 1fr;
  }

  .cal-title-input {
    grid-column: 1 / -1;
  }

  .cal-form button {
    grid-column: 1 / -1;
  }
}

.erro-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.erro-list {
  margin-top: 12px;
}

.erro-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.erro-row:first-child {
  border-top: 0;
}

.erro-info {
  flex: 1;
  min-width: 0;
}

.erro-info strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12.5px;
  line-height: 1.35;
}

.erro-info span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}

.erro-row > a {
  flex: 0 0 auto;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
}

.mapa-list {
  margin-top: 4px;
}

.mapa-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.mapa-row:first-child {
  border-top: 0;
}

.mapa-info {
  min-width: 0;
}

.mapa-info strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12.5px;
  line-height: 1.35;
}

.mapa-info span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}

.mapa-metrics {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
}

.mapa-row .btn {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
}

.mapa-status {
  justify-self: end;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mapa-status.atacar {
  background: rgba(255, 122, 122, 0.13);
  color: var(--coral);
}

.mapa-status.revisar {
  background: rgba(255, 209, 102, 0.13);
  color: var(--amber);
}

.mapa-status.manter {
  background: rgba(77, 224, 192, 0.12);
  color: var(--teal);
}

.mapa-status.sem {
  background: var(--lime-soft);
  color: var(--lime);
}

.mapa-mini {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.mapa-mini:first-child {
  border-top: 0;
}

.mapa-mini > div strong {
  display: block;
  font-size: 12.5px;
}

.mapa-mini > div span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}

.chips {
  display: flex;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
}

.chip {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: 0.18s;
}

.chip:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.chip.active {
  border-color: var(--lime);
  background: var(--lime);
  color: #08101f;
}

.donut-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}

.donut {
  position: relative;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--seg, var(--lime)) 0);
}

.donut::before {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: #0e1629;
}

.donut-hole {
  position: relative;
  z-index: 1;
  text-align: center;
}

.donut-hole strong {
  display: block;
  font-family: var(--mono);
  font-size: 22px;
  line-height: 1;
}

.donut-hole span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11.5px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 3px;
}

.legend-row strong {
  margin-left: auto;
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}

.bar-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  align-items: center;
}

.bar-name {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-val {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
}

.bar-track {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.bar-fill {
  height: 100%;
  width: var(--w, 0%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lime), var(--teal));
  transform-origin: left;
  animation: grow 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.bar-fill.blue {
  background: linear-gradient(90deg, var(--blue), var(--violet));
}

.insight-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 16px;
  padding: 0;
  list-style: none;
}

.insight-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.insight-list li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(200, 255, 77, 0.12);
}

.insight-list strong {
  color: var(--text);
  font-weight: 700;
}

.coverage {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.coverage-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.coverage-head strong {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 13px;
}

.coverage-track {
  display: flex;
  height: 8px;
  margin: 9px 0 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.coverage-track i {
  display: block;
  width: var(--w, 0%);
  height: 100%;
}

.coverage-track .alta {
  background: var(--teal);
}

.coverage-track .media {
  background: var(--amber);
}

.coverage-track .baixa {
  background: var(--coral);
}

.coverage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  color: var(--muted);
  font-size: 11.5px;
}

.coverage-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.coverage-legend .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.coverage-legend .dot.alta {
  background: var(--teal);
}

.coverage-legend .dot.media {
  background: var(--amber);
}

.coverage-legend .dot.baixa {
  background: var(--coral);
}

.prio-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.prio-row:first-child {
  border-top: 0;
  padding-top: 2px;
}

.prio-name {
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prio-disc {
  color: var(--muted);
  font-size: 10.5px;
}

.prio-score {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.prio-badges {
  grid-column: 1 / -1;
  display: flex;
  gap: 4px;
  margin-top: 3px;
}

.mini-badge {
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
}

.mini-badge.f {
  color: var(--lime);
}

.mini-badge.u {
  color: var(--teal);
}

.mini-badge.e {
  color: var(--blue);
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 17px;
  width: 2px;
  background: linear-gradient(var(--lime), rgba(200, 255, 77, 0.05));
  opacity: 0.35;
}

.week {
  position: relative;
  padding-left: 46px;
}

.week-dot {
  position: absolute;
  top: 16px;
  left: 6px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
}

.week-dot svg {
  width: 13px;
  height: 13px;
}

.week.done .week-dot {
  border-color: var(--lime);
  background: var(--lime);
  color: #08101f;
}

.week-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
}

.week-card h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.2px;
}

.week-card .periodo {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.week-card ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.week-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #d8dff4;
  font-size: 12.5px;
  line-height: 1.45;
}

.week-card li::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--lime);
}

.week-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.week-toggle span {
  color: var(--muted);
  font-size: 11px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field label,
.field > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  appearance: none;
}

select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 30px;
}

input::placeholder {
  color: var(--muted-2);
}

input:focus,
select:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(200, 255, 77, 0.12);
}

.search {
  position: relative;
}

.search svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.search input {
  padding-left: 38px;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s;
  -webkit-tap-highlight-color: transparent;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--lime), var(--teal));
  color: #08101f;
  box-shadow: 0 10px 30px rgba(200, 255, 77, 0.16);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(200, 255, 77, 0.24);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
}

.btn-soft {
  background: var(--lime-soft);
  color: var(--lime);
}

.btn-sm {
  padding: 8px 12px;
  font-size: 11.5px;
}

.btn.done {
  background: var(--lime);
  color: #08101f;
}

.btn.rev {
  background: rgba(255, 122, 122, 0.14);
  color: var(--coral);
}

.q-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.q-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
}

.q-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-bottom: 9px;
}

.badge {
  padding: 4px 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.badge.fuvest {
  background: var(--lime-soft);
  color: var(--lime);
}

.badge.unesp {
  background: rgba(77, 224, 192, 0.12);
  color: var(--teal);
}

.badge.enem {
  background: rgba(108, 140, 255, 0.14);
  color: var(--blue);
}

.badge.alta {
  color: var(--teal);
}

.badge.media {
  color: var(--amber);
}

.badge.baixa {
  color: var(--coral);
}

.q-topic {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

.q-text {
  display: -webkit-box;
  overflow: hidden;
  color: #d8dff4;
  font-size: 13px;
  line-height: 1.52;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.q-text.full {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.q-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.q-foot .btn {
  flex: 0 0 auto;
}

.q-answer {
  margin-top: 11px;
  padding: 9px 12px;
  border: 1px solid rgba(77, 224, 192, 0.28);
  border-radius: 11px;
  background: rgba(77, 224, 192, 0.1);
  color: var(--teal);
  font-size: 12.5px;
}

.q-answer strong {
  font-family: var(--mono);
  font-size: 14px;
}

.treino-info {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12.5px;
}

.treino-info strong {
  color: var(--lime);
  font-family: var(--mono);
}

.treino-enunciado {
  margin: 10px 0 14px;
  overflow-wrap: anywhere;
  padding-right: 4px;
  color: #d8dff4;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.treino-opcoes {
  display: grid;
  gap: 8px;
}

.treino-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.treino-opt:hover:not(:disabled) {
  border-color: rgba(200, 255, 77, 0.4);
  background: rgba(200, 255, 77, 0.04);
}

.treino-opt:disabled {
  cursor: default;
}

.treino-opt > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.treino-opt > div {
  min-width: 0;
  overflow-wrap: anywhere;
  padding-top: 2px;
  font-size: 13.5px;
  line-height: 1.45;
}

.treino-opt.selected {
  border-color: rgba(200, 255, 77, 0.65);
  background: var(--lime-soft);
}

.treino-opt.selected > span {
  background: var(--lime);
  color: #08101f;
}

.treino-opt.correct {
  border-color: rgba(77, 224, 192, 0.55);
  background: rgba(77, 224, 192, 0.1);
}

.treino-opt.correct > span {
  background: var(--teal);
  color: #08101f;
}

.treino-opt.wrong {
  border-color: rgba(255, 122, 122, 0.55);
  background: rgba(255, 122, 122, 0.09);
}

.treino-opt.wrong > span {
  background: var(--coral);
  color: #08101f;
}

.treino-feedback {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
}

.treino-feedback.ok {
  background: rgba(77, 224, 192, 0.12);
  color: var(--teal);
}

.treino-feedback.err {
  background: rgba(255, 122, 122, 0.11);
  color: var(--coral);
}

.sim-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sim-hero-top h3 {
  margin: 2px 0 4px;
  font-size: 26px;
  letter-spacing: -0.8px;
}

.sim-clock {
  flex: 0 0 auto;
  text-align: right;
}

.sim-clock strong {
  display: block;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 24px;
  line-height: 1;
}

.sim-clock span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sim-pct {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 18px;
}

.sim-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sim-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.sim-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 7px 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sim-cell span {
  font-size: 9.5px;
  opacity: 0.8;
}

.sim-cell strong {
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
}

.sim-cell:hover {
  border-color: rgba(200, 255, 77, 0.35);
}

.sim-cell.answered {
  border-color: rgba(200, 255, 77, 0.5);
  background: var(--lime-soft);
}

.sim-cell.answered strong {
  color: var(--lime);
}

.sim-cell.flagged {
  border-color: rgba(255, 209, 102, 0.65);
  background: rgba(255, 209, 102, 0.1);
}

.sim-cell.flagged strong {
  color: var(--amber);
}

.sim-cell.current {
  outline: 2px solid var(--lime);
  outline-offset: 1px;
}

.sim-question-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.note.warning {
  border-color: rgba(255, 209, 102, 0.4);
  background: rgba(255, 209, 102, 0.08);
  color: var(--amber);
}

.sim-error {
  display: grid;
  grid-template-columns: 44px 1fr 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.sim-error:first-of-type {
  border-top: 0;
}

.sim-error > span:first-child {
  color: var(--muted);
  font-family: var(--mono);
}

.sim-error strong {
  color: var(--text);
  font-family: var(--mono);
}

.sim-error a {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 11px;
}

@media (max-width: 639px) {
  .sim-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .sim-hero-top h3 {
    font-size: 22px;
  }

  .sim-error {
    grid-template-columns: 38px 1fr 1fr auto;
    font-size: 11px;
  }
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.pager span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.pager button {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.pager button:disabled {
  opacity: 0.35;
  cursor: default;
}

.empty {
  padding: 34px 18px;
  color: var(--muted);
  text-align: center;
}

.empty svg {
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  color: var(--muted-2);
}

.empty strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 14px;
}

.note {
  padding: 12px 14px;
  border: 1px solid rgba(255, 209, 102, 0.18);
  border-radius: 14px;
  background: rgba(255, 209, 102, 0.06);
  color: #e8d9a8;
  font-size: 11.5px;
  line-height: 1.5;
}

.note strong {
  color: var(--amber);
}

.sidebar {
  display: none;
}

.tabbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  justify-content: space-around;
  gap: 2px;
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(7, 11, 22, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 12px;
  border-radius: 13px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 650;
  transition: 0.18s;
}

.tabbar a svg {
  width: 21px;
  height: 21px;
}

.tabbar a.active {
  background: var(--lime-soft);
  color: var(--lime);
}

.toast {
  position: fixed;
  bottom: calc(92px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: #08101f;
  font-size: 12.5px;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: 0.25s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.muted {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 639px) {
  .chips {
    flex-wrap: wrap;
    overflow-x: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inc-grid .inc-topics {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .inc-grid .inc-insight {
    grid-column: 1;
    grid-row: 2;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero {
    padding: 30px 28px;
  }

  .hero-inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
  }

  .hero-side {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .hero-note {
    text-align: right;
  }
}

@media (min-width: 960px) {
  .app {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    padding: 26px 16px;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 60%);
  }

  .main {
    padding: 34px 40px 60px;
  }

  .tabbar {
    display: none;
  }

  .toast {
    bottom: 28px;
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .topbar {
    margin-bottom: 28px;
  }

  .hello {
    font-size: 36px;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px 24px;
  }

  .brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
  }

  .brand-mark img {
    width: 34px;
    height: 34px;
  }

  .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
  }

  .brand-text strong {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.4px;
  }

  .brand-text small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .side-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .side-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 13px;
    border-radius: 13px;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 650;
    transition: 0.18s;
  }

  .side-nav a svg {
    width: 19px;
    height: 19px;
  }

  .side-nav a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
  }

  .side-nav a.active {
    background: var(--lime);
    color: #08101f;
  }

  .side-foot {
    margin-top: auto;
    padding-top: 18px;
  }

  .side-card {
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(200, 255, 77, 0.07), rgba(255, 255, 255, 0.015));
  }

  .mini-label {
    display: block;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .side-card strong {
    display: block;
    margin-top: 5px;
    font-size: 13px;
  }

  .side-dias {
    display: block;
    margin-top: 3px;
    color: var(--lime);
    font-family: var(--mono);
    font-size: 20px;
    font-weight: 700;
  }

  .side-note {
    margin: 14px 4px 0;
    color: var(--muted-2);
    font-size: 10.5px;
    line-height: 1.5;
  }

  .q-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .timeline {
    max-width: 760px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.goal-list {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.goal-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  font-size: 12px;
}

.goal-row span {
  color: var(--muted);
}

.goal-row strong {
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
}

.goal-row .bar-track {
  grid-column: 1 / -1;
}

.rel-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  height: 170px;
  margin-top: 10px;
}

.rel-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  height: 100%;
}

.rel-day > strong {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.rel-bar {
  display: flex;
  flex: 1;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  min-height: 100px;
}

.rel-bar i {
  display: block;
  width: 100%;
  max-width: 24px;
  min-height: 3px;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--lime), var(--teal));
}

.rel-day > span {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.rel-next {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rel-next strong {
  font-size: 18px;
}

.rel-next span {
  color: var(--muted);
  font-size: 12px;
}

.metas-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: end;
}

@media (max-width: 639px) {
  .metas-form {
    grid-template-columns: 1fr 1fr;
  }

  .metas-form button {
    grid-column: 1 / -1;
  }
}

.redacao-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.redacao-cta strong {
  font-size: 14px;
}

.redacao-cta .eyebrow {
  margin-bottom: 3px;
}

.red-tema h4 {
  margin: 8px 0 6px;
  font-size: 16px;
  letter-spacing: -0.3px;
}

.red-tema p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.red-tema .btn {
  margin-top: 4px;
}

.red-proposta {
  margin: 8px 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

.red-editor {
  width: 100%;
  min-height: 320px;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.7;
  resize: vertical;
}

.red-editor:focus {
  outline: 1px solid rgba(200, 255, 77, 0.6);
}

.red-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.red-chip {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
}

.red-chip.ok {
  background: rgba(77, 224, 192, 0.1);
  color: var(--teal);
}

.red-chip.warn {
  background: rgba(255, 122, 122, 0.1);
  color: var(--coral);
}

.red-rubrica {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.red-crit {
  display: block;
}

.red-crit-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.red-crit-head strong {
  color: var(--lime);
  font-family: var(--mono);
}

.red-crit input[type="range"] {
  width: 100%;
  accent-color: var(--lime);
}

.red-hist {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.red-hist:first-child {
  border-top: 0;
}

.red-hist summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

.red-hist summary::-webkit-details-marker {
  display: none;
}

.red-hist summary strong {
  display: block;
  font-size: 12.5px;
}

.red-hist summary span {
  color: var(--muted);
  font-size: 10.5px;
}

.red-hist pre {
  margin: 10px 0;
  color: #d8dff4;
  font-family: var(--font);
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre-wrap;
}

@media (max-width: 639px) {
  .redacao-cta {
    align-items: flex-start;
  }
}

.rep-card h4 {
  margin: 8px 0 6px;
  font-size: 15px;
  letter-spacing: -0.2px;
}

.rep-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.rep-fav {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.rep-fav.active {
  color: var(--lime);
}

.red-analise {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.red-analise-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.red-analise-head strong {
  color: var(--text);
}

.red-analise-head span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
}

.red-sugestoes {
  display: grid;
  gap: 6px;
  margin: 9px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.red-ok {
  margin: 9px 0 0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.rep-sug {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.rep-sug:first-of-type {
  border-top: 0;
}

.rep-sug > div {
  flex: 1;
  min-width: 0;
}

.rep-sug strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12.5px;
}

.rep-sug span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
}

.adapt-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.adapt-block:first-of-type {
  border-top: 0;
}

.adapt-info {
  flex: 1;
  min-width: 0;
}

.adapt-info .badge {
  display: inline-block;
  margin-bottom: 4px;
}

.adapt-info strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.adapt-info > span:last-child {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.adapt-block.done {
  opacity: 0.55;
}

.adapt-block.done strong {
  text-decoration: line-through;
}

.acomp-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 640px) {
  .acomp-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ia-config {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.ia-config .filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ia-config input {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 12px;
}

.ia-config code {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 10.5px;
}

.ia-result {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(108, 140, 255, 0.25);
  border-radius: 12px;
  background: rgba(108, 140, 255, 0.06);
}

.ia-result-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.ia-result-head strong {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 24px;
}

.ia-result-head span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.ia-notas {
  display: grid;
  gap: 5px;
  margin: 10px 0;
}

.ia-nota {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.ia-nota strong {
  color: var(--text);
  font-family: var(--mono);
}

.ia-comentario {
  margin: 10px 0;
  color: #d8dff4;
  font-size: 12.5px;
  line-height: 1.5;
}

.ia-listas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ia-listas strong {
  font-size: 12px;
}

.ia-listas ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

@media (max-width: 639px) {
  .ia-config .filters,
  .ia-listas {
    grid-template-columns: 1fr;
  }
}

.mais-card {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.mais-card:hover {
  border-color: rgba(200, 255, 77, 0.35);
}

.mais-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--lime-soft);
  color: var(--lime);
}

.mais-icon svg {
  width: 20px;
  height: 20px;
}

.mais-card > div {
  flex: 1;
  min-width: 0;
}

.mais-card strong {
  display: block;
  font-size: 14px;
}

.mais-card p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.mais-arrow {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--muted);
}

.mais-arrow svg {
  width: 18px;
  height: 18px;
}

.q-answer.resolucao {
  border-color: rgba(108, 140, 255, 0.3);
  background: rgba(108, 140, 255, 0.08);
  color: #d8dff4;
  line-height: 1.55;
}

.q-resolucao-box {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.q-resolucao-box summary {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.q-resolucao-box p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.q-page-image {
  margin: 10px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.q-page-image summary {
  padding: 10px 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.q-page-image img {
  display: block;
  width: 100%;
  height: auto;
}

.sf-group {
  margin-top: 8px;
}

.sf-field {
  display: block;
  margin-top: 10px;
}

.sf-field > span {
  display: block;
  margin-bottom: 4px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.sf-field textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
  resize: vertical;
}

.sf-field textarea:focus {
  outline: 1px solid rgba(200, 255, 77, 0.55);
}

.sf-field textarea:disabled {
  opacity: 0.7;
}


.sf-question-card {
  padding: 20px;
}

.sf-enunciado {
  margin: 14px 0 18px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
}

.sf-enunciado p {
  margin: 0 0 10px;
}

.sf-enunciado p:last-child {
  margin-bottom: 0;
}

.sf-answer textarea {
  min-height: 170px;
}

.sf-esperada {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(200, 255, 77, 0.28);
  border-radius: 12px;
  background: rgba(200, 255, 77, 0.05);
}

.sf-esperada > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sf-esperada p {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.sf-esperada p:last-child {
  margin-bottom: 0;
}
