/* Kaloré Study Studio — a calm, readable workspace. */
:root {
  --bg: #0c1115;
  --bg2: #10181e;
  --panel: #141d24;
  --panel2: #18242c;
  --panel3: #21352f;
  --text: #edf4f4;
  --muted: #a0b0b6;
  --line: #2a373e;
  --line2: #4d685c;
  --green: #b8ef83;
  --green2: #92cf5e;
  --cyan: #8fd9ca;
  --amber: #efcf91;
  --red: #ff9a90;
  --radius: 20px;
  --shadow: 0 20px 60px #0003;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
[data-theme="light"] {
  --bg: #f4f6f3;
  --bg2: #eef2ed;
  --panel: #fff;
  --panel2: #f7faf6;
  --panel3: #e7f0df;
  --text: #203126;
  --muted: #56665c;
  --line: #d9e2d7;
  --line2: #9aaf93;
  --green: #497b28;
  --green2: #6a963f;
  --cyan: #267469;
  --amber: #986a15;
  --red: #a83e31;
}
body {
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
}
button,
a {
  touch-action: manipulation;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
  transform: none !important;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
  box-shadow: none;
}
textarea {
  max-width: 100%;
}
.topbar {
  background: var(--bg);
  height: 76px;
}
.top-inner {
  max-width: none;
  height: 100%;
  padding: 0 28px;
}
.brand {
  font-size: 24px;
  min-width: 194px;
}
.brand-mark {
  background: var(--green);
  color: var(--bg);
  border: 0;
  border-radius: 14px;
  font-size: 24px;
}
.brand small {
  font-size: 9px;
  letter-spacing: 1.6px;
}
.product-switch {
  display: flex;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}
.product-switch a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 7px;
}
.product-switch a.active {
  background: var(--panel3);
  color: var(--green);
}
.top-actions {
  gap: 8px;
}
.top-actions > .btn {
  font-size: 12px;
}
.icon-btn {
  border-color: transparent;
  background: transparent;
}
.data-menu {
  position: relative;
}
.data-menu summary {
  cursor: pointer;
  list-style: none;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 700;
  font-size: 12px;
}
.data-menu[open] > div {
  position: absolute;
  right: 0;
  top: 48px;
  display: grid;
  gap: 8px;
  min-width: 205px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.nav-tabs {
  position: fixed;
  top: 76px;
  bottom: 0;
  left: 0;
  width: 226px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  padding: 28px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: auto;
  z-index: 20;
  box-shadow: none;
}
.nav-label {
  font: 600 9px var(--mono);
  letter-spacing: 1px;
  color: var(--muted);
  padding: 0 14px 16px;
  white-space: normal;
}
.nav-tabs button {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-size: 13px;
  padding: 11px 13px;
  font-weight: 600;
  border: 1px solid transparent;
}
.nav-tabs button:before {
  content: "◇";
  font-size: 18px;
  width: 20px;
  text-align: center;
  color: var(--muted);
}
.nav-tabs button[data-tab="hoje"]:before {
  content: "⌂";
}
.nav-tabs button[data-tab="redacao"]:before {
  content: "✎";
}
.nav-tabs button[data-tab="simulado"]:before {
  content: "◷";
}
.nav-tabs button[data-tab="questoes"]:before {
  content: "≡";
}
.nav-tabs button[data-tab="plano"]:before {
  content: "▦";
}
.nav-tabs button[data-tab="flashcards"]:before {
  content: "▱";
}
.nav-tabs button.on {
  background: var(--panel3);
  color: var(--green);
  border-color: color-mix(in srgb, var(--green) 18%, transparent);
}
.nav-tabs button.on:before {
  color: var(--green);
}
.nav-radar {
  color: var(--green);
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 12px;
  padding: 16px;
  border-radius: 13px;
  margin-top: auto;
}
.nav-radar small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.wrap {
  max-width: 1480px;
  margin: 0 auto 0 226px;
  padding: 0 36px 45px;
}
.hero {
  grid-template-columns: 1.4fr 0.75fr;
  gap: 36px;
  padding: 40px 0 28px;
}
.eyebrow {
  font: 700 10px var(--mono);
  letter-spacing: 1.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero h1 {
  font-size: clamp(36px, 4.2vw, 62px);
  line-height: 1.07;
  letter-spacing: -2.7px;
  margin: 14px 0 16px;
}
.hero-copy {
  font-size: 14px;
  line-height: 1.8;
  max-width: 530px;
}
.hero-actions {
  margin-top: 22px;
  gap: 10px;
}
.btn {
  font-size: 13px;
  padding: 11px 16px;
  border-radius: 10px;
  min-height: 43px;
}
.btn.primary {
  color: #1b2c16;
  box-shadow: 0 4px 0 #55733d33;
}
.btn.tiny {
  min-height: 34px;
}
.hero-trust {
  color: var(--muted);
  font-size: 11px;
  gap: 15px;
  margin-top: 20px;
}
.hero-trust span:before {
  content: "✓";
  color: var(--green);
  margin-right: 6px;
}
.count-card {
  background: linear-gradient(135deg, var(--panel3), var(--panel));
  padding: 24px;
  isolation: isolate;
}
.count-card:after {
  display: none;
}
.count-label {
  font-size: 9px;
  max-width: 190px;
  position: relative;
}
.count-number {
  font-family: var(--sans);
  font-size: 78px;
  letter-spacing: -5px;
  line-height: 1;
  margin: 10px 0 4px;
}
.count-orbit {
  position: absolute;
  right: -24px;
  top: -18px;
  width: 180px;
  height: 180px;
  z-index: -1;
}
.count-orbit i {
  position: absolute;
  inset: 20px;
  border: 1px solid #b8ef8333;
  border-radius: 50%;
  transform: rotate(-30deg) scaleX(0.65);
}
.count-orbit i:last-child {
  transform: rotate(40deg) scaleX(0.65);
}
.count-orbit span {
  position: absolute;
  left: 73px;
  top: 57px;
  color: var(--green);
  font-size: 44px;
}
.count-source {
  color: var(--muted);
  font-size: 10px;
  display: inline-block;
  margin-top: 14px;
  text-underline-offset: 3px;
}
.exam-row {
  padding: 9px 0;
  margin-top: 10px;
}
.metric-grid {
  gap: 12px;
  margin-bottom: 6px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.metric {
  background: var(--panel);
  padding: 17px 20px;
  border-radius: 14px;
}
.metric b {
  font-size: 28px;
}
.metric small {
  font-size: 11px;
}
.metric .sub {
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
}
.panel {
  background: var(--panel);
  box-shadow: none;
  padding: 24px;
  border-radius: 18px;
}
.tab {
  padding-top: 28px;
}
.section-head {
  margin-bottom: 22px;
}
.section-head h2 {
  font-size: 29px;
  line-height: 1.25;
  letter-spacing: -1px;
}
.section-head p {
  font-size: 13px;
  max-width: 450px;
}
.section-head .eyebrow {
  font-size: 9px;
}
.panel h3 {
  font-size: 19px;
}
.mission {
  background: linear-gradient(130deg, var(--panel3), var(--panel));
  border-color: var(--line2);
}
.mission h3 {
  font-size: 25px;
  max-width: 390px;
  margin-top: 8px;
}
.muted {
  font-size: 13px;
}
.small-copy {
  font-size: 11px;
  margin: 0 0 10px;
}
.grid2 {
  gap: 16px;
}
.area-row {
  grid-template-columns: 95px 1fr 40px;
  margin: 15px 0;
  font-size: 12px;
}
.progress {
  background: var(--bg2);
  height: 6px;
}
.quick-grid button {
  font-size: 12px;
  min-height: 60px;
  background: var(--bg2);
}
.sprint {
  margin-top: 20px;
  grid-template-columns: 1.5fr 0.65fr;
  background: var(--panel);
  border-color: var(--line2);
}
.sprint-step {
  padding: 12px;
  background: var(--bg2);
}
.sprint-step > span {
  background: var(--panel3);
  color: var(--green);
  border: 1px solid var(--line);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.sprint-step.complete {
  opacity: 0.65;
}
.sprint-clock {
  background: var(--bg2);
  border: 0;
  border-radius: 14px;
}
.daily-ring {
  background: conic-gradient(var(--green) var(--p), var(--line) 0);
}
.sprint-clock > span {
  font-size: 11px;
  color: var(--muted);
}
.daily-ring:before {
  background: var(--bg2);
}
.field {
  font-size: 12px;
}
.field input,
.field textarea,
.field select {
  font-size: 14px;
  min-width: 0;
}
.profile-row {
  margin-top: 20px;
}
.diff-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.week {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}
.day-card {
  padding: 16px;
}
.task {
  font-size: 12px;
}
.blueprint {
  margin-bottom: 18px;
  padding: 18px 24px;
}
.blueprint summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.blueprint summary span {
  float: right;
  color: var(--green);
}
.blueprint[open] summary {
  margin-bottom: 12px;
}
.blueprint .grid2 {
  margin-top: 20px;
}
.editor {
  padding: 0;
}
.editor-top {
  flex-wrap: wrap;
}
.editor-top select {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  font-size: 13px;
}
.editor-actions .btn {
  font-size: 11px;
  padding: 9px 12px;
}
.coach-score {
  font-size: 36px;
  margin: 18px 0;
}
.coach-score small {
  font-size: 13px;
  font-weight: 400;
}
.feedback.good {
  color: var(--text);
  border-color: var(--line2);
}
.question {
  margin-top: 16px;
}
.question h3,
.sim-question h3 {
  font-size: 18px;
  line-height: 1.65;
}
.option,
.lesson-option {
  padding: 14px;
  font-size: 14px;
  min-height: 46px;
}
.option.selected {
  border-color: var(--green);
  background: var(--panel3);
}
.question-explain {
  font-size: 14px;
}
.quiz-toolbar {
  align-items: end;
}
.quiz-toolbar .field {
  margin: 0;
}
.quiz-toolbar select {
  max-width: 100%;
  min-width: 140px;
}
.flash-face {
  background: var(--panel);
  border-color: var(--line);
  min-height: 240px;
  padding: 24px;
}
.flash-inner,
.flashcard {
  min-height: 240px;
}
.flashcard:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
  border-radius: 15px;
}
.flash-face h3 {
  font-size: 20px;
}
.flash-face p {
  font-size: 14px;
}
.flashcard.flip .flash-inner {
  transform: rotateY(180deg);
}
.flash-face {
  backface-visibility: hidden;
}
.flash-actions.three {
  flex-wrap: wrap;
}
.badge.on {
  color: var(--green);
}
.full {
  width: 100%;
}
.lesson-node small {
  font-size: 12px;
  width: 165px;
  line-height: 1.4;
}
.lesson-panel {
  top: 96px;
}
.trail-map {
  overflow: hidden;
  min-height: 610px;
}
.lesson-node {
  margin-bottom: 25px;
}
.trail-kpis .chip {
  font-size: 11px;
}
.trail-switch button {
  font-size: 12px;
}
.sim-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
#simClock {
  font: 700 24px var(--mono);
  color: var(--green);
}
.sim-map {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 18px 0 26px;
}
.sim-map button {
  width: 33px;
  height: 33px;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--muted);
  border-radius: 8px;
  cursor: pointer;
}
.sim-map button.current {
  border-color: var(--green);
  color: var(--green);
}
.sim-map button.answered {
  background: var(--panel3);
}
.sim-map button.flagged {
  box-shadow: inset 0 -3px var(--amber);
}
.sim-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
}
.sim-result {
  background: var(--panel3);
  padding: 22px;
  border-radius: 14px;
  margin-bottom: 20px;
}
.sim-result h3 {
  font-size: 32px;
  margin: 10px 0;
}
.sim-result p {
  font-size: 13px;
  color: var(--muted);
}
.sim-review {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  font-size: 14px;
}
.sim-review summary {
  cursor: pointer;
  font-weight: 600;
}
.answer-state {
  font-size: 18px;
  margin-right: 6px;
}
.answer-state.right {
  color: var(--green);
}
.answer-state.wrong {
  color: var(--red);
}
.formula-expression {
  padding: 16px;
  background: var(--bg2);
  border-radius: 10px;
  margin: 16px 0;
  font: 600 16px/1.8 var(--mono);
  color: var(--green);
  overflow-wrap: anywhere;
}
.resource p {
  font-size: 13px;
}
.library-toolbar .search {
  flex: 1;
  width: auto;
  min-width: 180px;
}
.library-toolbar select {
  min-width: 160px;
}
.resource-grid {
  gap: 16px;
}
.resource h3 {
  font-size: 18px;
}
.footer {
  font-size: 11px;
  padding-bottom: 20px;
}
.mobile-dock {
  display: none;
}
@media (min-width: 1650px) {
  .wrap {
    margin-left: auto;
    max-width: 1360px;
  }
}
@media (max-width: 1180px) {
  .wrap {
    padding-left: 25px;
    padding-right: 25px;
  }
  .hero {
    gap: 20px;
  }
  .hero h1 {
    font-size: 43px;
  }
  .metric {
    padding: 14px;
  }
  .metric small {
    font-size: 10px;
  }
  .hero-trust {
    gap: 10px;
  }
  .essay-layout {
    grid-template-columns: 1fr;
  }
  .flash-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 980px) {
  .nav-tabs {
    width: 195px;
    padding: 22px 10px;
  }
  .wrap {
    margin-left: 195px;
  }
  .brand {
    min-width: 164px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 50px;
  }
  .count-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
  }
  .count-number {
    grid-row: 2/4;
  }
  .count-card > small {
    grid-row: 4;
  }
  .count-source {
    grid-column: 2;
    grid-row: 4;
  }
  .count-orbit {
    right: -24px;
    opacity: 0.35;
  }
  .metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .metric:last-child {
    grid-column: auto;
  }
  .grid2,
  .trail-layout {
    grid-template-columns: 1fr;
  }
  .section-head {
    display: block;
  }
  .section-head p {
    margin-top: 10px;
  }
  .sprint {
    grid-template-columns: 1fr;
  }
  .sprint-clock {
    min-height: 180px;
  }
  .top-actions > .btn {
    display: none;
  }
  .trail-summary {
    flex-direction: column;
  }
  .nav-radar {
    font-size: 11px;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 68px;
  }
  .top-inner {
    padding: 0 16px;
    gap: 10px;
  }
  .brand {
    min-width: 0;
    font-size: 20px;
  }
  .brand-mark {
    height: 34px;
    width: 34px;
    font-size: 20px;
  }
  .brand small {
    font-size: 8px;
  }
  .product-switch {
    margin-left: auto;
  }
  .product-switch a {
    padding: 6px 10px;
    font-size: 11px;
  }
  .top-actions {
    margin-left: 0;
    gap: 3px;
  }
  .top-actions #shareBtn {
    display: none;
  }
  .icon-btn {
    width: 30px;
    height: 34px;
  }
  .data-menu summary {
    font-size: 10px;
    padding: 7px;
  }
  .nav-tabs {
    position: sticky;
    top: 68px;
    width: auto;
    height: auto;
    bottom: auto;
    left: auto;
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 8px 14px;
    gap: 5px;
    overflow-x: auto;
  }
  .nav-label,
  .nav-radar {
    display: none;
  }
  .nav-tabs button {
    padding: 8px 11px;
    font-size: 12px;
  }
  .nav-tabs button:before {
    display: none;
  }
  .wrap {
    margin: 0;
    padding: 0 18px 95px;
    display: flex;
    flex-direction: column;
  }
  .hero {
    order: -4;
    padding: 30px 0 24px;
    gap: 22px;
  }
  .hero h1 {
    font-size: 42px;
    letter-spacing: -2px;
  }
  .hero-copy {
    font-size: 14px;
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 1.1px;
  }
  .hero-actions .btn {
    font-size: 12px;
  }
  .hero-trust {
    font-size: 10px;
    gap: 12px;
  }
  .count-card {
    padding: 20px;
  }
  .count-number {
    font-size: 60px;
  }
  .exam-row {
    margin-top: 6px;
    font-size: 11px;
  }
  .exam-row b {
    font-size: 10px;
  }
  .exam-row span {
    font-size: 9px;
  }
  .count-card > small {
    font-size: 10px;
  }
  .count-label {
    font-size: 8px;
  }
  .count-source {
    font-size: 9px;
  }
  .metric-grid {
    order: -3;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
  }
  .metric {
    padding: 12px;
  }
  .metric b {
    font-size: 23px;
  }
  .metric small {
    font-size: 9px;
  }
  .metric .sub {
    font-size: 7px;
  }
  .metric:nth-child(4),
  .metric:nth-child(5) {
    display: none;
  }
  .nav-tabs {
    order: -2;
    margin: 0 -18px;
  }
  .install-banner {
    order: -1;
  }
  .tab {
    padding-top: 25px;
  }
  .section-head h2 {
    font-size: 26px;
  }
  .panel {
    padding: 20px;
  }
  .section-head .eyebrow {
    font-size: 8px;
  }
  .mission h3 {
    font-size: 24px;
  }
  .sprint h3 {
    font-size: 22px;
  }
  .sprint-clock {
    display: none;
  }
  .quick-grid button {
    font-size: 12px;
  }
  .grid2,
  .grid3 {
    grid-template-columns: 1fr;
  }
  .profile-row {
    grid-template-columns: 1fr;
  }
  .diff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .flash-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }
  .flash-face {
    min-height: 235px;
  }
  .flash-inner,
  .flashcard {
    min-height: 235px;
  }
  .essay-layout {
    grid-template-columns: 1fr;
  }
  .editor {
    padding: 0;
  }
  .editor-top {
    padding: 12px;
  }
  .editor-top .btn {
    font-size: 11px;
  }
  #essay {
    font-size: 16px;
    padding: 18px;
    min-height: 440px;
  }
  .blueprint {
    padding: 18px;
  }
  .blueprint summary {
    font-size: 13px;
  }
  .coach-score {
    font-size: 32px;
  }
  .sim-actions {
    flex-wrap: wrap;
  }
  .sim-actions .btn {
    font-size: 11px;
    padding: 10px;
  }
  .sim-status {
    gap: 10px;
  }
  .sim-map {
    margin: 18px 0;
  }
  .quiz-toolbar select {
    min-width: 110px;
  }
  .quiz-toolbar .field {
    flex: 1;
  }
  .quiz-toolbar .btn {
    width: 100%;
  }
  .sim-question h3 {
    font-size: 17px;
  }
  .formula-expression {
    font-size: 14px;
  }
  .trail-map {
    min-height: 620px;
  }
  .lesson-node small {
    font-size: 11px;
    width: 150px;
  }
  .lesson-panel {
    position: static;
  }
  .mobile-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    justify-content: space-around;
    background: var(--bg);
    border-top: 1px solid var(--line);
    padding: 7px 12px max(7px, env(safe-area-inset-bottom));
  }
  .mobile-dock button {
    display: grid;
    place-items: center;
    gap: 1px;
    font-size: 23px;
    background: transparent;
    color: var(--muted);
    border: 0;
    min-width: 65px;
    min-height: 48px;
    cursor: pointer;
  }
  .mobile-dock button span {
    font-size: 9px;
    font-weight: 600;
  }
  .mobile-dock button.on {
    color: var(--green);
  }
  .toast {
    bottom: 82px;
    max-width: calc(100% - 32px);
  }
  .library-toolbar .search {
    width: 100%;
  }
  .library-toolbar select {
    width: 100%;
  }
  .modal-shell {
    padding: 12px;
  }
  .onboard {
    padding: 22px;
  }
}
@media (max-width: 380px) {
  .product-switch a {
    padding: 6px;
    font-size: 10px;
  }
  .brand {
    gap: 6px;
  }
  .brand-mark {
    display: none;
  }
  .hero h1 {
    font-size: 37px;
  }
  .hero-trust {
    gap: 8px;
    font-size: 9px;
  }
  .count-card {
    gap: 0 14px;
  }
  .wrap {
    padding-left: 14px;
    padding-right: 14px;
  }
  .nav-tabs {
    margin: 0 -14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
.brand-mark {
  flex: none;
}
.product-switch a {
  white-space: nowrap;
}
@media (max-width: 460px) {
  .brand-mark {
    display: none;
  }
  .brand {
    font-size: 20px;
  }
  .product-switch a {
    font-size: 10px;
    padding: 7px 8px;
  }
  .top-inner {
    gap: 8px;
  }
  .hero h1 {
    font-size: 40px;
  }
}
