:root {
  --bg: #090d1a;
  --card: #121a2c;
  --card2: #172238;
  --line: #263451;
  --ink: #eef4ff;
  --muted: #aab7cf;
  --blue: #77b9ff;
  --cyan: #5ce1db;
  --violet: #a698ff;
  --red: #ff7a92;
  --gold: #efd07f;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(800px 500px at 80% -10%, #1d2a5b88, transparent 70%),
    radial-gradient(600px 500px at 0 15%, #103d4b66, transparent 68%), var(--bg);
  line-height: 1.5;
}
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    radial-gradient(#d4e9ff 1px, transparent 1px),
    radial-gradient(#92a9e9 1px, transparent 1px);
  background-size:
    100px 100px,
    170px 170px;
  background-position:
    14px 42px,
    80px 5px;
}
header,
main {
  position: relative;
  z-index: 1;
}
header {
  height: 78px;
  padding: 0 max(5vw, 25px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff13;
  background: #090d1ad9;
  backdrop-filter: blur(15px);
  position: sticky;
  top: 0;
}
.brand {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 10px;
  letter-spacing: 1.6px;
  line-height: 1.15;
}
.brand span {
  font-size: 38px;
  color: var(--cyan);
  line-height: 0;
}
.brand b {
  font-size: 12px;
  color: #fff;
  letter-spacing: 1.3px;
}
nav {
  display: flex;
  gap: 25px;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: 0.2s;
}
nav a:hover,
nav a.active {
  color: var(--cyan);
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: white;
  font-size: 24px;
}
main {
  width: min(1180px, 90vw);
  margin: auto;
}
.view {
  display: none;
  padding: 60px 0 90px;
  animation: in 0.35s ease;
}
.view.active {
  display: block;
}
@keyframes in {
  from {
    opacity: 0.25;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(32px, 5vw, 62px);
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 20px;
}
h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: var(--cyan);
}
h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
}
.eyebrow,
small {
  font-size: 11px;
  letter-spacing: 1.7px;
  color: var(--cyan);
  font-weight: 700;
}
.lead {
  max-width: 680px;
  font-size: 18px;
  color: var(--muted);
}
.hero {
  padding-top: 80px;
}
.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  gap: 12px;
  margin: 35px 0 50px;
}
.hero-cards article {
  padding: 16px;
  border-left: 1px solid var(--cyan);
  background: #ffffff05;
}
.hero-cards b,
.hero-cards span {
  display: block;
}
.hero-cards b {
  font-size: 13px;
  margin-bottom: 5px;
}
.hero-cards span {
  font-size: 13px;
  color: var(--muted);
}
.split {
  display: grid;
  grid-template-columns: minmax(320px, 540px) 1fr;
  gap: 36px;
  align-items: stretch;
}
.split.single {
  grid-template-columns: minmax(300px, 470px);
  justify-content: center;
}
.hero .split {
  grid-template-columns: minmax(320px, 540px);
  justify-content: center;
}
.card {
  background: linear-gradient(130deg, #19243bd9, #101729eb);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 28px;
  box-shadow: 0 20px 60px #00000035;
}
.card-head p,
.form-note {
  color: var(--muted);
  font-size: 13px;
}
.form-card {
  display: grid;
  gap: 16px;
}
.form-card.compact {
  max-width: 480px;
}
label {
  font-size: 13px;
  color: #dbe7fa;
  display: grid;
  gap: 7px;
}
input,
select,
textarea {
  appearance: none;
  color: var(--ink);
  background: #0b1221;
  border: 1px solid #324360;
  border-radius: 9px;
  padding: 12px 13px;
  font: inherit;
  outline: none;
  transition: 0.2s;
  width: 100%;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px #5ce1db1c;
}
select {
  background: #0b1221;
}
textarea {
  min-height: 85px;
  resize: vertical;
}
.consent {
  grid-template-columns: 18px 1fr;
  align-items: start;
  color: var(--muted);
  font-size: 12px;
}
.consent input {
  width: 16px;
  height: 16px;
  margin: 2px 0;
}
.consent small {
  display: block;
  color: #8191ad;
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 4px;
}
.lgpd-block {
  border: 1px solid #536887;
  border-radius: 10px;
  padding: 14px;
  display: grid;
  gap: 10px;
  background: #0b1425;
}
.lgpd-block > b {
  font-size: 13px;
  color: #dbe8ff;
}
.lgpd-block .consent {
  grid-template-columns: 34px 1fr;
  font-size: 14px;
  color: #e5edfb;
  line-height: 1.45;
}
.lgpd-block .consent input[type="checkbox"] {
  appearance: none;
  width: 24px;
  height: 24px;
  min-width: 24px;
  padding: 0;
  margin: 2px 0 0;
  border: 2px solid #61e4dc;
  border-radius: 7px;
  background: #091525;
  display: grid;
  place-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 4px #5ce1db12;
}
.lgpd-block .consent input[type="checkbox"]::after {
  content: "✓";
  color: #06121c;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  transform: scale(0);
  transition: transform 0.15s ease;
}
.lgpd-block .consent input[type="checkbox"]:checked {
  background: #61e4dc;
  border-color: #8af8f0;
}
.lgpd-block .consent input[type="checkbox"]:checked::after {
  transform: scale(1);
}
.lgpd-block .consent span {
  text-align: justify;
  hyphens: auto;
}
.access-hint {
  margin: -8px 0 0;
  color: #3e286e;
  background: #ffefaa;
  border-radius: 7px;
  padding: 8px 10px;
  width: max-content;
  max-width: 100%;
  font-size: 14px;
}
.primary,
.secondary,
.outline,
.danger {
  border: 0;
  border-radius: 9px;
  padding: 12px 16px;
  font: 700 13px inherit;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: 0.2s;
}
.primary {
  background: linear-gradient(110deg, var(--cyan), #81acff);
  color: #07101e;
}
.primary:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}
.primary span {
  float: right;
  font-size: 18px;
  line-height: 12px;
}
.secondary {
  background: #213452;
  color: var(--ink);
  border: 1px solid #3b5377;
}
.outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid #526480;
}
.danger {
  background: #5e2637;
  color: #ffdce3;
  border: 1px solid #a44a64;
}
.large {
  font-size: 15px;
  padding: 15px 18px;
  width: 100%;
}
.night-note {
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(150deg, #122b3aaa, #17153b99);
  border: 1px solid #31536b;
  border-radius: 17px;
  min-height: 420px;
}
.moon {
  font-size: 100px;
  color: #d8f8ff;
  text-shadow: 0 0 35px #76d4ff99;
  line-height: 1;
}
.night-note p {
  color: var(--muted);
  font-size: 14px;
}
.section-title {
  margin-bottom: 32px;
}
.section-title p {
  color: var(--muted);
}
.dashboard-head,
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.dashboard-head {
  margin-bottom: 28px;
}
.dashboard-head h1 {
  font-size: 38px;
  margin: 6px 0;
}
.dashboard-head p {
  color: var(--muted);
  margin: 0;
}
.overview {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}
.night-card,
.stat {
  background: linear-gradient(130deg, #1c3450, #151b37);
  border: 1px solid #35516f;
  border-radius: 16px;
  padding: 25px;
}
.night-card h2 {
  margin: 8px 0;
}
.night-card p,
.stat span {
  color: var(--muted);
  font-size: 13px;
}
.stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat strong {
  font-size: 27px;
  margin: 5px 0;
}
.text-button {
  border: 0;
  background: none;
  color: var(--cyan);
  padding: 5px 0;
  font: 600 13px inherit;
  cursor: pointer;
  text-align: left;
  margin-top: 8px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.schedule-card h2,
.recovery-card h2 {
  margin: 5px 0;
}
.schedule-card p,
.recovery-card p {
  color: var(--muted);
  font-size: 13px;
}
.schedule-form {
  display: grid;
  gap: 14px;
  margin: 20px 0;
}
.schedule-form:not(.hidden) {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.schedule-form fieldset,
.schedule-form .consent,
.schedule-form button {
  grid-column: 1/-1;
}
.schedule-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.schedule-form legend {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 7px;
}
.weekdays {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.day {
  position: relative;
  width: 30px;
  height: 30px;
  display: block;
}
.day input {
  position: absolute;
  opacity: 0;
}
.day span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
}
.day input:checked + span {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #07101e;
  font-weight: 800;
}
.active-session {
  padding: 28px;
  border-radius: 18px;
  background: linear-gradient(110deg, #153a45, #21305e);
  border: 1px solid #4c8c9e;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.active-session strong {
  font-size: clamp(35px, 5vw, 60px);
  letter-spacing: -2px;
  display: block;
}
.active-session > span {
  color: #b9d0ec;
  font-size: 13px;
}
.mic-status {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.mic-status i {
  height: 9px;
  width: 9px;
  border-radius: 50%;
  background: #ffbb6a;
  box-shadow: 0 0 8px #ffbb6a;
}
.mic-status.ok i {
  background: #6df4c3;
  box-shadow: 0 0 8px #6df4c3;
}
.session-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.history {
  margin-top: 20px;
}
.bar-chart {
  height: 170px;
  display: flex;
  align-items: end;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.bar {
  background: linear-gradient(var(--cyan), #4f7ee5);
  min-width: 12px;
  flex: 1;
  border-radius: 5px 5px 0 0;
  position: relative;
  cursor: pointer;
}
.bar:hover::after {
  content: attr(data-label);
  position: absolute;
  bottom: 105%;
  left: 50%;
  transform: translateX(-50%);
  background: #060a13;
  padding: 5px 7px;
  border-radius: 5px;
  color: white;
  font-size: 11px;
  white-space: nowrap;
}
.history-list {
  display: grid;
  gap: 0;
}
.history-item {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #ffffff0c;
  color: var(--muted);
  font-size: 13px;
}
.history-item strong {
  color: var(--ink);
  font-size: 14px;
}
.report-status {
  color: var(--gold);
  font-size: 13px;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 25px 0;
}
.metric {
  padding: 18px;
  background: #121b2e;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.metric b {
  display: block;
  font-size: 23px;
}
.metric span {
  color: var(--muted);
  font-size: 12px;
}
.timeline {
  margin-top: 22px;
  position: relative;
  padding-left: 25px;
}
.timeline:before {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  bottom: 5px;
  width: 1px;
  background: #4c678b;
}
.event {
  position: relative;
  margin: 13px 0;
  padding: 11px 13px;
  background: #ffffff07;
  border-radius: 8px;
  font-size: 13px;
}
.event:before {
  content: "";
  position: absolute;
  left: -24px;
  top: 16px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--cyan);
  background: var(--bg);
  border-radius: 50%;
}
.event.gap:before {
  border-color: var(--red);
}
.event small {
  color: var(--muted);
  letter-spacing: 0.5px;
}
.bio {
  max-width: 800px;
  padding: 50px;
  background: linear-gradient(135deg, #17243ad6, #161231bb);
  border-radius: 20px;
  border: 1px solid var(--line);
}
.bio p {
  color: #c4d1e5;
  font-size: 18px;
  max-width: 650px;
}
.bio-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.quote {
  margin-top: 45px;
  border-left: 2px solid var(--gold);
  padding: 7px 15px;
  color: var(--gold);
  font-family: Georgia, serif;
}
.table-wrap {
  overflow: auto;
}
.user-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.user-table th,
.user-table td {
  text-align: left;
  padding: 11px 8px;
  border-bottom: 1px solid #ffffff13;
  white-space: nowrap;
}
.user-table th {
  color: var(--muted);
  font-weight: 500;
}
.delete-user {
  background: transparent;
  border: 0;
  color: var(--red);
  cursor: pointer;
}
.hidden {
  display: none !important;
}
dialog {
  padding: 0;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: var(--ink);
  max-width: min(420px, 90vw);
}
dialog::backdrop {
  background: #030711bb;
  backdrop-filter: blur(4px);
}
.modal {
  position: relative;
  background: #17233a;
  padding: 28px;
  border: 1px solid #42607f;
  border-radius: 15px;
  display: grid;
  gap: 13px;
}
.modal h2 {
  margin: 0;
}
.modal p {
  color: var(--muted);
  font-size: 13px;
}
.close {
  position: absolute;
  right: 12px;
  top: 8px;
  background: transparent;
  border: 0;
  color: white;
  font-size: 25px;
  cursor: pointer;
}
#toast {
  position: fixed;
  z-index: 30;
  right: 22px;
  bottom: 22px;
  padding: 12px 16px;
  background: #153c3c;
  color: #dafffb;
  border: 1px solid #4fb8ae;
  border-radius: 9px;
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: 0.25s;
  font-size: 13px;
  max-width: 340px;
}
#toast.show {
  opacity: 1;
  transform: none;
}
.print-footer {
  display: none;
}
@media (max-width: 800px) {
  header {
    height: auto;
    min-height: 66px;
    padding: 12px 5vw;
    flex-wrap: wrap;
  }
  nav {
    display: none;
    width: 100%;
    order: 3;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
  }
  header.open nav {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .hero {
    padding-top: 45px;
  }
  .hero-cards,
  .split,
  .overview,
  .dashboard-grid,
  .active-session {
    grid-template-columns: 1fr;
  }
  .hero-cards {
    margin-bottom: 28px;
  }
  .night-note {
    min-height: 0;
    padding: 25px;
  }
  .moon {
    font-size: 72px;
  }
  .active-session {
    gap: 10px;
  }
  .session-actions {
    flex-direction: row;
  }
  .session-actions button {
    flex: 1;
  }
  .report-grid {
    grid-template-columns: 1fr 1fr;
  }
  .history-item {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .history-item span:nth-of-type(3),
  .history-item span:nth-of-type(4) {
    display: none;
  }
  .dashboard-head {
    align-items: flex-start;
  }
  .dashboard-head .outline {
    padding: 8px;
  }
  .view {
    padding-top: 38px;
  }
  h1 {
    letter-spacing: -1.3px;
  }
  .schedule-form:not(.hidden) {
    grid-template-columns: 1fr;
  }
  .schedule-form fieldset,
  .schedule-form .consent,
  .schedule-form button {
    grid-column: auto;
  }
}
@media print {
  body {
    background: white;
    color: #101522;
  }
  .stars,
  header,
  .outline,
  .print,
  .view:not(#relatorio),
  #report-back {
    display: none !important;
  }
  .view#relatorio {
    display: block !important;
    width: 100%;
    padding: 0;
  }
  .report-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .metric,
  .event {
    background: #f5f8fb;
    border-color: #c5d2e0;
  }
  .print-footer {
    display: block;
    margin-top: 30px;
    font-size: 10px;
    color: #435;
  }
  .eyebrow {
    color: #16716c;
  }
}
