:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #f2f5ff;
  background: #0b1020;
  color-scheme: dark;
  --blue: #4b6aff;
  --line: #28324a;
  --muted: #b5c0da;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #b8c6ff;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 4px;
}
button,
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 650;
  cursor: pointer;
  line-height: 1.4;
}
button:hover,
.button:hover {
  filter: brightness(1.1);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.secondary,
.button.secondary {
  background: #1c2843;
  border-color: #344563;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 5%;
  border-bottom: 1px solid var(--line);
  background: #10182b;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 750;
  letter-spacing: -0.4px;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 450;
  margin-top: 4px;
  letter-spacing: 0;
}
#account {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}
.layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  max-width: 1500px;
  margin: auto;
  min-height: calc(100vh - 90px);
}
aside {
  padding: 42px 22px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #a8baff;
  font-weight: 700;
}
#menu {
  display: grid;
  gap: 8px;
}
#menu button {
  justify-content: start;
  background: transparent;
  color: var(--muted);
  text-align: left;
}
#menu button.active {
  background: #223357;
  color: white;
}
.back {
  font-size: 13px;
  margin-top: auto;
}
main {
  padding: 42px clamp(20px, 4vw, 64px);
  min-width: 0;
}
h1 {
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: -1.3px;
  margin: 12px 0;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
  margin: 0 0 14px;
}
h3 {
  font-size: 18px;
  margin: 0 0 10px;
}
p {
  line-height: 1.65;
  color: var(--muted);
  margin: 8px 0 18px;
}
.lead {
  max-width: 650px;
  margin-bottom: 32px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 22px;
}
.card {
  background: linear-gradient(145deg, #18243c, #121b2e);
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: 20px;
  min-width: 0;
}
.card + .card:not(.grid .card) {
  margin-top: 24px;
}
.card .badge {
  margin-bottom: 18px;
}
.badge {
  display: inline-flex;
  border-radius: 100px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 650;
  background: #29365a;
  color: #c6d1ff;
}
.badge.green {
  background: #183a33;
  color: #94e9c3;
}
.price {
  font-size: 32px;
  color: white;
  font-weight: 750;
  letter-spacing: -1px;
  margin: 20px 0;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.row.between {
  justify-content: space-between;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.empty {
  border: 1px dashed #405073;
  border-radius: 16px;
  padding: 28px;
  color: var(--muted);
  line-height: 1.7;
}
.form {
  max-width: 780px;
  display: grid;
  gap: 18px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
input,
textarea,
select {
  width: 100%;
  min-width: 0;
  background: #0e1627;
  border: 1px solid #3a4868;
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
}
textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}
label.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 450;
}
input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: var(--blue);
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.auth {
  max-width: 470px;
  margin: 20px auto;
}
.auth .form {
  margin-top: 24px;
}
progress {
  width: 100%;
  height: 9px;
  accent-color: #6c8bff;
  margin: 16px 0 6px;
}
.lesson {
  margin: 22px 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #131e32;
}
.lesson-body {
  white-space: pre-wrap;
  line-height: 1.8;
  color: #d1daed;
}
.lesson video {
  width: 100%;
  max-height: 480px;
  margin: 18px 0;
  border-radius: 12px;
  background: #000;
}
details {
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 16px 0;
  background: #131e32;
}
summary {
  padding: 22px;
  cursor: pointer;
  font-weight: 650;
}
details .form {
  padding: 0 22px 24px;
  max-width: none;
}
.table-row {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.table-row:last-child {
  border: 0;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: min(520px, calc(100vw - 48px));
  background: #243a60;
  border: 1px solid #6c8bff;
  box-shadow: 0 15px 60px #0008;
  padding: 18px 24px;
  border-radius: 14px;
  z-index: 20;
  line-height: 1.5;
}
#notice.error {
  border-color: #ff9fae;
  background: #452431;
}
.intro {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}
.intro img {
  width: 64px;
  height: 64px;
}
.stack {
  display: grid;
  gap: 14px;
}
.hint {
  padding: 16px 20px;
  border-left: 3px solid #7394ff;
  background: #1a2945;
  border-radius: 0 10px 10px 0;
  margin: 20px 0;
  color: #cbd7f3;
  font-size: 14px;
  line-height: 1.7;
}
.status {
  font-size: 12px;
  color: #b5c7ff;
}
.error-text {
  color: #ffbac5;
  min-height: 20px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (max-width: 800px) {
  header {
    padding: 16px 20px;
  }
  .brand small {
    display: none;
  }
  .layout {
    display: block;
  }
  aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px;
    gap: 14px;
  }
  #menu {
    display: flex;
    overflow: auto;
    gap: 6px;
  }
  #menu button {
    white-space: nowrap;
    padding: 10px 13px;
  }
  .back {
    display: none;
  }
  main {
    padding: 28px 20px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .eyebrow {
    font-size: 9px;
  }
  #account {
    font-size: 12px;
    gap: 8px;
  }
  #account button {
    padding: 8px 12px;
  }
  .card {
    padding: 22px;
  }
  .lesson {
    padding: 20px;
  }
}

[hidden] {
  display: none !important;
}
.unit-card {
  position: relative;
}
.unit-number {
  font-size: 12px;
  color: #a5b9f4;
}
.unit-card.is-next {
  border-color: #6d8fff;
  box-shadow: 0 0 0 1px #6d8fff33;
}
.unit-card .badge {
  margin-top: 12px;
}
/* Keep the course workspace accessible while editing a long unit. */
header{position:sticky;top:0;z-index:10}
@media(min-width:801px){aside{position:sticky;top:89px;align-self:start;height:calc(100vh - 89px)}}

/* Alternância de visualização da equipe */
#account { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.view-switch { font-size:.85rem; padding:10px 14px; }
.view-switch[aria-pressed="true"] { border:2px solid var(--blue); }
.preview-notice { margin-bottom:24px; border-left:3px solid var(--blue); }
@media(max-width:600px) { header { flex-wrap:wrap; gap:12px; } #account { width:100%; justify-content:space-between; } .view-switch { white-space:normal; } }
