@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&display=swap");

:root {
  --bg-main: #070910;
  --bg-panel: rgba(12, 16, 28, 0.88);
  --bg-soft: rgba(255, 255, 255, 0.04);
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text-main: #f4efe7;
  --text-muted: #9ea6b8;
  --text-soft: #d9deea;
  --accent: #ff564f;
  --accent-dark: #cf3c39;
  --accent-soft: rgba(255, 86, 79, 0.12);
  --halo: rgba(160, 188, 255, 0.18);
  --hero-glow: rgba(255, 86, 79, 0.18);
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --sidebar-collapsed: 88px;
  --sidebar-expanded: 248px;
  --platform-gutter: clamp(18px, 2.2vw, 34px);
  --container: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Avenir Next", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at 18% 14%, rgba(105, 139, 255, 0.12), transparent 24%),
    radial-gradient(circle at 85% 10%, rgba(255, 86, 79, 0.1), transparent 22%),
    linear-gradient(180deg, #090c13 0%, #070910 58%, #05070c 100%);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-glow {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.36;
}

.page-glow-left {
  top: 160px;
  left: -140px;
  background: rgba(138, 167, 255, 0.18);
}

.page-glow-right {
  top: 40px;
  right: -100px;
  background: rgba(255, 86, 79, 0.15);
}

.site-shell,
.platform-shell {
  width: 100%;
}

.site-header {
  width: var(--container);
  margin: 0 auto;
  padding: 24px 0 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

.brand-logo {
  width: clamp(150px, 18vw, 214px);
  opacity: 0.95;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text-main);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-solid {
  background: linear-gradient(135deg, var(--accent) 0%, #ff7362 100%);
  color: #fff7f6;
  box-shadow: 0 10px 24px rgba(255, 86, 79, 0.18);
}

.button-outline {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text-main);
}

.button-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-main);
}

.login-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

.login-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 100%;
  max-width: 160px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 16, 28, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 150ms ease,
    transform 150ms ease,
    visibility 0s linear 150ms;
  z-index: 80;
}

.login-menu.is-open .login-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 150ms ease,
    transform 150ms ease,
    visibility 0s linear 0s;
}

.login-menu-item {
  border-radius: 10px;
  padding: 10px 12px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: left;
  transition: background-color 150ms ease, color 150ms ease;
}

.login-menu-item:hover,
.login-menu-item:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  outline: none;
}

main {
  display: block;
}

.hero,
.feature-strip,
.section-grid,
.section-split,
.cta-panel {
  width: var(--container);
  margin: 0 auto;
}

.hero {
  padding: 36px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 42px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #bec7d6;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.hero h1,
.platform-header h1,
.section-heading h2,
.split-copy h2,
.cta-panel h2,
.panel-hero h2,
.panel-heading h2 {
  font-family: "Plus Jakarta Sans", "Avenir Next", sans-serif;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.02;
  margin: 14px 0 0;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.25rem);
  max-width: 8ch;
}

.hero-text {
  max-width: 42ch;
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.hero-copy {
  animation: rise-in 720ms ease both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.stat-card,
.method-card,
.surface-card,
.overview-card,
.material-card,
.teacher-profile {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.025) 100%);
  box-shadow: var(--shadow-md);
}

.stat-card {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  backdrop-filter: blur(16px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.stat-card strong {
  display: inline;
  font-size: 0.86rem;
  margin-bottom: 0;
}

.stat-card span {
  color: var(--text-muted);
  line-height: 1.4;
  font-size: 0.82rem;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  animation: rise-in 880ms ease 120ms both;
}

.hero-orbit {
  position: absolute;
  inset: 18px 4px 18px 42px;
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top left, rgba(255, 86, 79, 0.16), transparent 35%),
    #0b1220;
  box-shadow: var(--shadow-lg);
}

.hero-orbit::after {
  content: "";
  position: absolute;
  inset: auto auto 18px 18px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(180, 204, 255, 0.14);
  filter: blur(24px);
  animation: pulse-glow 9s ease-in-out infinite;
}

.hero-feed {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
  animation: subtle-zoom 14s ease-in-out infinite alternate;
}

.floating-card {
  position: absolute;
  width: min(220px, 60%);
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(10, 14, 25, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}

.floating-card-top {
  top: 8px;
  right: 0;
  animation: rise-in 820ms ease 260ms both;
}

.floating-label,
.card-kicker,
.mini-label {
  display: inline-flex;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #ffc9c3;
  margin-bottom: 8px;
}

.floating-card strong,
.method-card h3,
.panel-hero-card strong,
.class-card h3,
.teacher-profile h3,
.material-card h3 {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.floating-card p,
.method-card p,
.split-copy p,
.panel-hero-card p,
.overview-card p,
.schedule-item p,
.class-card p,
.teacher-profile p,
.material-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}

.feature-strip-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}

.feature-strip-card img {
  width: 42px;
  height: 42px;
  object-fit: cover;
}

.feature-strip-card h2 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.feature-strip-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.section-grid,
.section-split {
  padding: 20px 0 48px;
}

.section-heading {
  max-width: 620px;
  margin-bottom: 20px;
}

.section-heading h2,
.split-copy h2,
.cta-panel h2,
.panel-hero h2,
.panel-heading h2 {
  font-size: clamp(1.85rem, 4vw, 3.1rem);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.method-card {
  padding: 20px;
  border-radius: 22px;
  min-height: 180px;
}

.method-card-highlight {
  background:
    radial-gradient(circle at top right, var(--hero-glow), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.03));
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: center;
}

.split-preview {
  position: relative;
}

.mini-platform {
  padding: 16px;
  border-radius: 28px;
  background:
    radial-gradient(circle at bottom left, rgba(130, 160, 255, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(11, 15, 26, 0.96), rgba(8, 11, 20, 0.92));
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  box-shadow: var(--shadow-lg);
}

.mini-sidebar {
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  align-content: start;
  gap: 12px;
}

.mini-brand {
  font-size: 1.12rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.mini-item {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.mini-item-active {
  color: var(--text-main);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 86, 79, 0.3);
}

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

.mini-panel {
  min-height: 120px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-panel.large {
  grid-column: span 2;
  min-height: 160px;
}

.mini-panel strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.mini-panel p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.cta-panel {
  margin-bottom: 52px;
  padding: 24px 26px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(255, 86, 79, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.platform-shell {
  display: grid;
  grid-template-columns: var(--sidebar-expanded) minmax(0, 1fr);
  gap: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: 100vh;
  padding: 0 0 34px;
  align-items: stretch;
  overflow: visible;
}

.platform-topbar {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 40;
  display: grid;
  justify-items: end;
  gap: 4px;
  pointer-events: none;
}

.header-plan {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}

.header-role {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}

.header-plan[hidden],
.header-role[hidden] {
  display: none !important;
}

.header-plan-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.role-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 86, 79, 0.9);
}

.role-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan-badge {
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.plan-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.plan-badge.is-gold .plan-dot {
  background: #f6c24c;
  box-shadow: 0 0 0 3px rgba(246, 194, 76, 0.18);
}

.plan-badge.is-diamond .plan-dot {
  background: #5da7ff;
  box-shadow: 0 0 0 3px rgba(93, 167, 255, 0.18);
}

.plan-badge.is-turma .plan-dot {
  background: #45d483;
  box-shadow: 0 0 0 3px rgba(69, 212, 131, 0.18);
}

.plan-credits {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

body[data-role="teacher"] .live-credits-row,
body[data-role="admin"] .live-credits-row {
  display: none;
}

.plan-renewal {
  color: #8a90a0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.platform-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 86, 79, 0.14), transparent 25%),
    radial-gradient(circle at 80% 0%, rgba(98, 134, 255, 0.2), transparent 26%),
    linear-gradient(180deg, #05070d 0%, #08101b 52%, #070910 100%);
}

.platform-sidebar,
.platform-main {
  position: relative;
  z-index: 1;
}

.platform-sidebar {
  width: 100%;
  min-height: 100vh;
  padding: 24px 18px;
  border-radius: 0 28px 28px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
    rgba(8, 12, 22, 0.9);
  box-shadow: var(--shadow-lg);
  display: grid;
  align-content: start;
  gap: 18px;
  animation: rise-in 620ms ease both;
  overflow: hidden;
  z-index: 3;
  will-change: width;
  transform: translateZ(0);
  position: sticky;
  top: 0;
  transition:
    width 360ms cubic-bezier(0.22, 1, 0.36, 1),
    padding 360ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 320ms ease;
}

.sidebar-topbar {
  display: flex;
  justify-content: flex-end;
}

.sidebar-toggle {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus-visible {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sidebar-toggle-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 44px;
  padding-inline: 0;
  transition:
    gap 320ms cubic-bezier(0.22, 1, 0.36, 1),
    padding 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sidebar-brand img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  flex: 0 0 44px;
}

.sidebar-brand-copy {
  min-width: 0;
  max-width: 180px;
  transition:
    opacity 160ms ease,
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    max-width 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sidebar-brand strong {
  display: block;
  font-size: 1.04rem;
}

.sidebar-brand span {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
}

.sidebar-link {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.92rem;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    padding 320ms cubic-bezier(0.22, 1, 0.36, 1),
    gap 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sidebar-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-text {
  white-space: nowrap;
  max-width: 160px;
  transition:
    opacity 160ms ease,
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    max-width 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sidebar-link.is-active,
.sidebar-link:hover,
.sidebar-link:focus-visible {
  border-color: rgba(255, 86, 79, 0.28);
  background: rgba(255, 86, 79, 0.1);
  color: var(--text-main);
}

.sidebar-badge {
  margin-left: auto;
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 78, 70, 0.16);
  border: 1px solid rgba(255, 78, 70, 0.3);
  color: #FF4E46;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (hover: hover) and (pointer: fine) and (min-width: 1101px) {
  .platform-sidebar {
    width: var(--sidebar-collapsed);
    padding: 20px 14px;
  }

  body[data-sidebar-expanded="true"] .platform-sidebar {
    width: var(--sidebar-expanded);
    padding: 20px;
    box-shadow: 0 26px 64px rgba(0, 0, 0, 0.28);
  }

  .platform-sidebar .sidebar-brand {
    gap: 0;
    padding-inline: calc((var(--sidebar-collapsed) - 44px) / 2 - 14px);
  }

  .platform-sidebar .sidebar-brand-copy,
  .platform-sidebar .sidebar-text {
    max-width: 0;
    opacity: 0;
    transform: translateX(-6px);
    overflow: hidden;
    pointer-events: none;
  }

  .platform-sidebar .sidebar-link {
    padding-inline: calc((var(--sidebar-collapsed) - 20px) / 2 - 14px);
    gap: 0;
  }

  body[data-sidebar-expanded="true"] .platform-sidebar .sidebar-brand {
    gap: 14px;
    padding-inline: 0;
  }

  body[data-sidebar-expanded="true"] .platform-sidebar .sidebar-brand-copy,
  body[data-sidebar-expanded="true"] .platform-sidebar .sidebar-text {
    max-width: 180px;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  body[data-sidebar-expanded="true"] .platform-sidebar .sidebar-link {
    padding-inline: 14px;
    gap: 12px;
  }
}

.platform-main {
  min-width: 0 !important;
  width: 100% !important;
  padding: 24px var(--platform-inline-padding) 0 18px !important;
  gap: 0 !important;
  animation: rise-in 700ms ease both;
  height: 100vh;
}

.platform-header {
  padding: 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.platform-header[hidden] {
  display: none !important;
}

body[data-active-panel="gravadas"] .platform-header,
body[data-active-panel="ao-vivo"] .platform-header {
  display: none;
}

.platform-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6fe07c;
  box-shadow: 0 0 14px rgba(111, 224, 124, 0.6);
}

.platform-panel {
  display: none;
}

.platform-panel.is-visible {
  display: grid;
  gap: 16px;
  width: 100%;
  animation: fade-panel 240ms ease both;
}

.panel-hero {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(255, 86, 79, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 260px;
  gap: 16px;
  align-items: end;
}

.panel-hero-copy p {
  max-width: 58ch;
  color: var(--text-muted);
  line-height: 1.7;
}

.panel-hero-card,
.overview-card,
.surface-card,
.class-card,
.teacher-card,
.teacher-profile,
.material-card {
  border-radius: 20px;
}

.panel-hero-card {
  padding: 18px;
  background: rgba(6, 10, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.overview-card {
  padding: 18px;
}

.overview-card strong {
  display: block;
  font-size: 1.45rem;
  margin-bottom: 8px;
}

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

.surface-card {
  padding: 18px;
}

.card-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
}

.card-heading h3 {
  margin: 0;
  font-size: 1.04rem;
}

.card-heading span,
.schedule-item span,
.booking-feedback,
.teacher-card span {
  color: var(--text-muted);
}

.schedule-list,
.teacher-list,
.routine-card,
.materials-grid,
.teacher-showcase {
  display: grid;
  gap: 12px;
}

.schedule-item,
.teacher-card,
.routine-step {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.schedule-item strong,
.teacher-card strong {
  display: block;
  margin-bottom: 8px;
}

.routine-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: center;
}

.routine-step span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: #ffd1cc;
}

.routine-step p {
  margin: 0;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 320px;
  gap: 14px;
  align-items: stretch;
}

.focus-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(255, 86, 79, 0.2), transparent 30%),
    radial-gradient(circle at bottom left, rgba(101, 135, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 18px;
  align-items: end;
}

.focus-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -50px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 86, 79, 0.12);
  filter: blur(30px);
}

.focus-card-copy,
.focus-card-aside {
  position: relative;
  z-index: 1;
}

.focus-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.focus-chip,
.focus-time,
.schedule-type,
.schedule-emphasis,
.section-counter,
.progress-stage {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.focus-chip {
  background: rgba(255, 86, 79, 0.14);
  border: 1px solid rgba(255, 86, 79, 0.24);
  color: #ffd5cf;
}

.focus-time {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
}

.focus-card h2 {
  margin: 18px 0 10px;
  font-family: "Plus Jakarta Sans", "Avenir Next", sans-serif;
  font-size: clamp(2.5rem, 4vw, 4.35rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.focus-card p {
  max-width: 38ch;
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.focus-card-aside {
  display: grid;
  gap: 12px;
  align-self: stretch;
  align-content: end;
}

.focus-stat,
.task-item,
.schedule-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 24, 0.58);
  backdrop-filter: blur(14px);
}

.focus-stat {
  padding: 16px;
  border-radius: 18px;
}

.focus-stat span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.focus-stat strong {
  display: block;
  font-size: 1.1rem;
}

.dashboard-aside {
  display: grid;
  gap: 14px;
}

.progress-card,
.streak-card,
.tasks-card,
.schedule-card {
  padding: 20px;
}

.progress-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.progress-card-header strong {
  display: block;
  margin-top: 10px;
  font-size: 2.2rem;
  line-height: 0.9;
}

.progress-stage {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff564f 0%, #ff7f69 58%, #f6beb1 100%);
  box-shadow: 0 0 18px rgba(255, 86, 79, 0.28);
}

.progress-card p,
.streak-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.streak-card {
  background: rgba(255, 255, 255, 0.03);
}

.streak-card strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 1.75rem;
}

.dashboard-sections {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.dashboard-section-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.dashboard-section-header h3 {
  margin: 6px 0 0;
  font-size: 1.16rem;
}

.section-counter {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.task-list {
  display: grid;
  gap: 12px;
}

.task-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  border-radius: 18px;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.task-item:hover {
  transform: translateY(-1px);
}

.task-item-primary {
  border-color: rgba(255, 86, 79, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 86, 79, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(10, 14, 24, 0.58);
}

.task-index {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 86, 79, 0.14);
  color: #ffd5cf;
  font-weight: 600;
}

.task-copy {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.task-copy strong {
  font-size: 0.98rem;
  line-height: 1.4;
}

.task-copy span {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.schedule-list-compact {
  gap: 10px;
}

.schedule-item {
  padding: 16px;
  border-radius: 18px;
  display: grid;
  gap: 12px;
}

.schedule-item-next {
  border-color: rgba(255, 86, 79, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 86, 79, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(10, 14, 24, 0.58);
}

.schedule-item-top,
.schedule-item-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.schedule-item-top strong {
  margin: 0;
  font-size: 1rem;
}

.schedule-item-bottom {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.schedule-type {
  background: rgba(255, 86, 79, 0.12);
  border: 1px solid rgba(255, 86, 79, 0.2);
  color: #ffd5cf;
}

.schedule-type-soft {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
}

.schedule-emphasis {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.dashboard-redesign {
  display: grid;
  gap: 16px;
}

.dashboard-redesign[hidden] {
  display: none !important;
}

.teacher-insights-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.score-card-body-compact {
  min-height: 100%;
  display: grid;
  place-items: center;
  gap: 10px;
  padding-top: 12px;
}

.score-card-rating-compact strong {
  font-size: clamp(2.2rem, 3.2vw, 3.05rem);
}

.score-card-rating-compact span {
  margin-top: 0.56em;
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
}

.teacher-score-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

.teacher-classes-card .bar-column-value {
  display: none;
}

.teacher-bar-day {
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.teacher-bar-pair {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
}

.teacher-students-sections {
  display: grid;
  gap: 16px;
}

.teacher-students-section {
  display: grid;
  gap: 10px;
}

.teacher-section-head {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.teacher-students-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.teacher-student-row {
  min-height: 54px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.teacher-student-row .ranking-avatar {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 16px rgba(0, 0, 0, 0.12);
}

.teacher-student-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.teacher-student-copy strong {
  font-size: 0.94rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-student-copy span {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.teacher-student-row-missing {
  border-color: rgba(255, 86, 79, 0.12);
  background: rgba(255, 86, 79, 0.06);
}

.teacher-missing-badge {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 86, 79, 0.24);
  background: rgba(255, 86, 79, 0.12);
  color: rgba(255, 216, 211, 0.95);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.teacher-cancel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.teacher-cancel-item {
  min-height: 54px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.teacher-cancel-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.teacher-cancel-main strong {
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-cancel-main span {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.teacher-cancel-tag {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.teacher-cancel-tag.is-urgent {
  border-color: rgba(255, 86, 79, 0.24);
  background: rgba(255, 86, 79, 0.12);
  color: rgba(255, 216, 211, 0.95);
}

.teacher-notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.teacher-notice-item {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.teacher-notice-item.is-unread {
  border-color: rgba(255, 86, 79, 0.12);
  background: rgba(255, 86, 79, 0.04);
}

.teacher-notice-toggle {
  width: 100%;
  padding: 16px 16px 14px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 10px;
}

.teacher-notice-head {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
}

.teacher-notice-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  margin-top: 4px;
}

.teacher-notice-item.is-unread .teacher-notice-dot {
  background: rgba(255, 86, 79, 0.92);
  box-shadow: 0 0 0 3px rgba(255, 86, 79, 0.18);
}

.teacher-notice-title {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-notice-meta {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.teacher-notice-body {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.55;
}

.teacher-notice-thread {
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 12px;
}

.teacher-notice-thread[hidden] {
  display: none !important;
}

.teacher-comments {
  display: grid;
  gap: 10px;
}

.teacher-comment {
  padding: 12px 12px 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 6px;
}

.teacher-comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.teacher-comment-meta strong {
  font-size: 0.9rem;
}

.teacher-comment-meta span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.teacher-comment-text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.55;
}

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

.teacher-comment-input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  font-weight: 600;
  resize: none;
  outline: none;
}

.teacher-comment-input:focus-visible {
  border-color: rgba(255, 86, 79, 0.26);
  box-shadow: 0 0 0 3px rgba(255, 86, 79, 0.12);
}

.teacher-comment-send {
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 14px;
}

.overview-stat-card,
.analytics-card,
.tasks-card-refined,
.weekly-schedule-card,
.streak-side-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
    rgba(9, 13, 24, 0.94);
  box-shadow: var(--shadow-md);
}

.overview-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.overview-stat-card {
  min-height: 200px;
  padding: 22px;
  border-radius: 24px;
}

.overview-stat-card strong {
  display: block;
  margin-top: 16px;
  font-size: 2.5rem;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.overview-stat-card p {
  margin: 10px 0 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.overview-stat-level {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 16px;
  align-items: center;
}

.level-progress-ring {
  --ring-size: 116px;
  width: var(--ring-size);
  height: var(--ring-size);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #0b0f1a 58%, transparent 59%),
    conic-gradient(
      from 180deg,
      rgba(255, 86, 79, 0.16) 0deg,
      rgba(255, 86, 79, 0.16) calc((100 - var(--level-progress)) * 3.6deg),
      #ff564f calc((100 - var(--level-progress)) * 3.6deg),
      #ff917f 360deg
    );
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.level-progress-ring span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 14px;
}

.analytics-card {
  min-height: 420px;
  padding: 22px;
  border-radius: 26px;
  display: grid;
  align-content: start;
  gap: 20px;
}

.analytics-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.analytics-header h3 {
  margin: 6px 0 0;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.chart-filter-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.chart-filter-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.chart-filter-button:hover,
.chart-filter-button:focus-visible,
.chart-filter-button.is-active {
  color: var(--text-main);
  border-color: rgba(255, 86, 79, 0.24);
  background: rgba(255, 86, 79, 0.12);
}

.line-chart-card-body,
.bar-chart-shell {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.line-chart-scale,
.bar-chart-scale {
  display: grid;
  align-content: space-between;
  height: 280px;
  padding-top: 8px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.72rem;
}

.line-chart-stage,
.bar-chart-stage {
  position: relative;
  height: 280px;
  padding: 6px 0 28px;
}

.line-chart-svg {
  width: 100%;
  height: 100%;
}

.line-chart-grid line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.line-chart-area {
  fill: rgba(255, 86, 79, 0.12);
}

.line-chart-path {
  fill: none;
  stroke: #ff6a61;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-chart-point {
  fill: #0b0f1a;
  stroke: #ff7e73;
  stroke-width: 3;
}

.line-chart-point.is-last {
  fill: #ff6a61;
  stroke: #ffd9d5;
}

.line-chart-labels,
.bar-chart-labels {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.line-chart-labels {
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
}

.bar-chart-labels {
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
}

.line-chart-labels span,
.bar-chart-labels span {
  text-align: center;
}

.bar-chart-stage {
  overflow: hidden;
}

.bar-chart-grid {
  position: absolute;
  inset: 6px 0 28px 0;
  display: grid;
  align-content: space-between;
}

.bar-chart-grid span {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.bar-chart-bars {
  position: absolute;
  inset: 6px 0 28px 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: end;
  gap: 10px;
}

.bar-column {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  height: 100%;
}

.bar-column-fill {
  width: 100%;
  border-radius: 14px 14px 6px 6px;
  background: linear-gradient(180deg, #ff8370 0%, #ff564f 100%);
  box-shadow: 0 10px 24px rgba(255, 86, 79, 0.2);
  transition:
    height 240ms ease,
    background 240ms ease,
    box-shadow 240ms ease;
}

.bar-column.is-muted .bar-column-fill {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  box-shadow: none;
}

.bar-column-value {
  position: absolute;
  inset: auto 0 calc(100% + 8px) 0;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.72rem;
}

.dashboard-support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 220px;
  gap: 14px;
}

.tasks-card-refined,
.weekly-schedule-card,
.streak-side-card {
  padding: 22px;
  border-radius: 24px;
}

.refined-header {
  margin-bottom: 18px;
}

.refined-task-list {
  gap: 10px;
}

.dashboard-redesign .task-item,
.dashboard-redesign .schedule-item {
  backdrop-filter: blur(14px);
}

.streak-side-card {
  display: grid;
  align-content: start;
  gap: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02)),
    rgba(8, 12, 22, 0.88);
}

.streak-side-card strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.streak-side-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.platform-header h1 {
  font-size: clamp(1.72rem, 3vw, 2.5rem);
}

.dashboard-redesign {
  gap: 18px;
}

.overview-stats-grid {
  grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(210px, 1fr));
}

.overview-stat-card {
  min-height: 168px;
  padding: 22px;
  border-radius: 24px;
}

.overview-stat-card strong {
  margin-top: 18px;
}

.overview-stat-level {
  grid-template-columns: minmax(0, 1fr) 120px;
}

.analytics-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.9fr) minmax(300px, 0.72fr);
  gap: 16px;
}

.analytics-card {
  min-height: 430px;
  gap: 18px;
}

.analytics-card-score {
  min-height: 430px;
  align-items: center;
  justify-items: center;
}

.analytics-header h3 {
  margin: 0;
  font-size: 1.14rem;
}

.chart-filter-dropdown {
  position: relative;
}

.chart-filter-trigger {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.chart-filter-trigger svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-filter-trigger:hover,
.chart-filter-trigger:focus-visible,
.chart-filter-dropdown.is-open .chart-filter-trigger {
  border-color: rgba(255, 86, 79, 0.24);
  background: rgba(255, 86, 79, 0.12);
}

.chart-filter-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(9, 13, 24, 0.98);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 6px;
  z-index: 6;
}

.chart-filter-menu[hidden] {
  display: none;
}

.chart-filter-option {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.chart-filter-option:hover,
.chart-filter-option:focus-visible,
.chart-filter-option.is-active {
  color: var(--text-main);
  border-color: rgba(255, 86, 79, 0.2);
  background: rgba(255, 86, 79, 0.12);
}

.journey-chart-shell {
  display: grid;
  gap: 16px;
}

.journey-chart-stage {
  position: relative;
  min-height: 264px;
}

.journey-chart-svg {
  width: 100%;
  height: 264px;
  overflow: visible;
}

.journey-track-base {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 16;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.journey-track-progress {
  fill: none;
  stroke: #ff6a61;
  stroke-width: 16;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 10px 18px rgba(255, 86, 79, 0.22));
}

.journey-node {
  fill: #0b0f1a;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 4;
}

.journey-node.is-past {
  fill: #ff6a61;
  stroke: rgba(255, 216, 211, 0.8);
}

.journey-node.is-current {
  fill: #fff7f6;
  stroke: #ff6a61;
  stroke-width: 5;
}

.journey-node.is-dimmed {
  fill: rgba(255, 255, 255, 0.08);
  stroke: rgba(255, 255, 255, 0.12);
}

.journey-tag {
  position: absolute;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 13, 24, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  color: var(--text-main);
  white-space: nowrap;
  transform: translateX(var(--tag-shift, -50%));
  pointer-events: none;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.journey-tag-start {
  border-color: rgba(101, 135, 255, 0.24);
  color: #d8e2ff;
}

.journey-tag-current {
  border-color: rgba(255, 86, 79, 0.24);
  color: #ffd4ce;
}

.journey-levels {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 10px;
}

.journey-levels span {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.journey-levels span.is-past {
  color: var(--text-soft);
}

.journey-levels span.is-current {
  color: var(--text-main);
}

.journey-levels span.is-dimmed {
  color: rgba(255, 255, 255, 0.26);
}

.bar-chart-shell {
  grid-template-columns: 42px minmax(0, 1fr);
}

.bar-chart-stage {
  padding: 6px 0 0;
}

.bar-chart-grid,
.bar-chart-bars {
  inset: 6px 0 0 0;
}

.score-card-body {
  width: 100%;
  min-height: 100%;
  display: grid;
  place-items: center;
}

.score-card-rating {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  letter-spacing: -0.06em;
  line-height: 0.88;
}

.score-card-rating strong {
  margin: 0;
  font-size: clamp(3.6rem, 5.1vw, 4.8rem);
  font-weight: 700;
  color: var(--text-main);
}

.score-card-rating span {
  margin-top: 0.62em;
  font-size: clamp(1.7rem, 2.1vw, 2.35rem);
  font-weight: 600;
  color: var(--text-muted);
}

.dashboard-secondary-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.today-availability-card,
.ranking-card,
.streak-side-card,
.recommendations-card {
  padding: 22px;
  border-radius: 24px;
}

.today-slots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.today-slot-button {
  min-height: 58px;
  padding: 0 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.today-slot-button:hover,
.today-slot-button:focus-visible,
.today-slot-button-primary {
  border-color: rgba(255, 86, 79, 0.24);
  background: rgba(255, 86, 79, 0.12);
}

.today-slot-button:hover,
.today-slot-button:focus-visible {
  transform: translateY(-1px);
}

.ranking-card {
  display: grid;
  gap: 16px;
}

.ranking-list {
  display: grid;
  gap: 8px;
}

.ranking-row {
  min-height: 54px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  grid-template-columns: 28px 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.ranking-row-top {
  border-color: rgba(255, 86, 79, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 86, 79, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
}

.ranking-position {
  color: var(--text-soft);
  font-size: 0.84rem;
  text-align: center;
}

.ranking-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff7d6d 0%, #7a88ff 100%);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 16px rgba(0, 0, 0, 0.16);
}

.ranking-row strong {
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-xp {
  color: var(--text-main);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.ranking-self-card {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 10px;
}

.ranking-row-self {
  border-color: rgba(255, 86, 79, 0.2);
  background: rgba(255, 86, 79, 0.1);
}

.ranking-avatar-self {
  background: linear-gradient(135deg, #ff564f 0%, #ff8f73 100%);
}

.streak-side-card {
  align-content: center;
  justify-items: start;
}

.streak-stat-card {
  min-height: 168px;
}

.streak-stat-card strong {
  margin-top: 18px;
}

.streak-header {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.streak-fire {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ff7d67;
}

.streak-fire svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 0;
}

.streak-side-card strong {
  margin-top: 12px;
}

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

.recommendation-item {
  min-height: 132px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  align-content: space-between;
  gap: 14px;
}

.recommendation-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 86, 79, 0.12);
  border: 1px solid rgba(255, 86, 79, 0.2);
  color: #ffd5cf;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.recommendation-item strong {
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .analytics-grid,
  .dashboard-secondary-grid,
  .recommendations-grid {
    grid-template-columns: 1fr;
  }

  .streak-side-card {
    min-height: 0;
  }
}

@media (max-width: 980px) {
  .overview-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-stat-level {
    grid-column: 1 / -1;
  }

  .today-slots-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .dashboard-redesign {
    gap: 16px;
  }

  .overview-stats-grid,
  .today-slots-grid {
    grid-template-columns: 1fr;
  }

  .overview-stat-level {
    grid-template-columns: 1fr;
  }

  .level-progress-ring {
    justify-self: start;
  }

  .analytics-card {
    min-height: 0;
  }

  .chart-filter-menu {
    min-width: 188px;
  }

  .journey-chart-stage {
    min-height: 228px;
  }

  .journey-chart-svg {
    height: 228px;
  }

  .journey-levels {
    gap: 6px;
  }

  .journey-levels span {
    font-size: 0.64rem;
  }

  .ranking-row {
    grid-template-columns: 24px 36px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .ranking-avatar {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 560px) {
  .chart-filter-menu {
    left: 0;
    right: auto;
  }

  .journey-tag {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.68rem;
  }

  .journey-levels span {
    font-size: 0.58rem;
  }

  .ranking-row {
    grid-template-columns: 22px 34px minmax(0, 1fr);
  }

  .ranking-xp {
    grid-column: 2 / -1;
    padding-left: 2px;
  }

  .recommendations-grid {
    gap: 10px;
  }
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
}

.chip-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.82rem;
}

.chip-active {
  background: rgba(255, 86, 79, 0.14);
  border-color: rgba(255, 86, 79, 0.3);
  color: var(--text-main);
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.class-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.class-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.class-card-copy {
  padding: 16px;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.slot-button {
  min-height: 64px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  font-size: 0.92rem;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.slot-button:hover,
.slot-button:focus-visible,
.slot-button.is-selected {
  background: rgba(255, 86, 79, 0.14);
  border-color: rgba(255, 86, 79, 0.34);
  box-shadow: 0 16px 28px rgba(255, 86, 79, 0.14);
  transform: translateY(-1px);
}

.teacher-showcase {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.teacher-profile,
.material-card {
  padding: 18px;
}

body[data-view="interno"] .site-shell {
  display: none;
}

body[data-view="interno"] .platform-shell {
  display: grid;
}

body[data-view="publico"] .site-shell {
  display: block;
}

body[data-view="publico"] .platform-shell {
  display: none;
}

body[data-view="auth"] .site-shell {
  display: none;
}

body[data-view="auth"] .platform-shell {
  display: none;
}

body[data-view="auth"] .auth-shell {
  display: none;
}

body[data-view="auth"] .auth-shell:not([hidden]) {
  display: flex;
}

body[data-view="auth"] .auth-shell-login:not([hidden]) {
  display: grid;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-panel {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes subtle-zoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.04);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }

  50% {
    opacity: 0.75;
    transform: scale(1.08);
  }
}

@media (max-width: 1100px) {
  .hero,
  .section-split,
  .platform-shell,
  .dashboard-layout,
  .dashboard-sections,
  .analytics-grid,
  .dashboard-support-grid,
  .live-grid {
    grid-template-columns: 1fr;
  }

  .feature-strip,
  .class-grid,
  .teacher-showcase,
  .method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .focus-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .focus-card-aside,
  .dashboard-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .streak-side-card {
    grid-column: span 2;
  }

  .hero-visual {
    min-height: 460px;
  }

  .platform-shell {
    grid-template-columns: 1fr;
    padding-bottom: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 820px) {
  :root {
    --container: min(100vw - 28px, 1000px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-stats,
  .feature-strip,
  .class-grid,
  .method-grid,
  .teacher-showcase {
    grid-template-columns: 1fr;
  }

  .overview-stats-grid,
  .dashboard-support-grid {
    grid-template-columns: 1fr;
  }

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

  .focus-card {
    padding: 24px;
  }

  .focus-card h2 {
    font-size: clamp(2.1rem, 8vw, 3.3rem);
  }

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

  .task-copy,
  .schedule-item-top,
  .schedule-item-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .analytics-header,
  .dashboard-section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .chart-filter-group {
    justify-content: flex-start;
  }

  .overview-stat-level {
    grid-template-columns: 1fr;
  }

  .level-progress-ring {
    justify-self: start;
  }

  .hero {
    padding-top: 20px;
  }

  .hero-visual {
    min-height: 380px;
  }

  .hero-orbit {
    inset: 20px 0 20px 0;
  }

  .floating-card {
    width: min(220px, calc(100% - 28px));
  }

  .mini-platform {
    grid-template-columns: 1fr;
  }

  .mini-content,
  .slot-grid {
    grid-template-columns: 1fr;
  }

  .mini-panel.large {
    grid-column: span 1;
  }

  .cta-panel,
  .panel-heading,
  .platform-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .platform-sidebar {
    gap: 14px;
  }

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

@media (max-width: 560px) {
  .site-header,
  .platform-shell {
    padding-top: 18px;
  }

  .brand-logo {
    width: 140px;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .hero-actions,
  .header-actions {
    width: 100%;
  }

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

  .platform-sidebar {
    padding: 18px;
  }

  .sidebar-nav {
    grid-template-columns: 1fr;
  }

  .panel-hero,
  .surface-card,
  .class-card-copy,
  .teacher-profile,
  .material-card,
  .cta-panel,
  .method-card,
  .feature-strip-card {
    padding: 18px;
  }

  .focus-card,
  .progress-card,
  .streak-card,
  .tasks-card,
  .schedule-card,
  .overview-stat-card,
  .analytics-card,
  .tasks-card-refined,
  .weekly-schedule-card,
  .streak-side-card {
    padding: 18px;
  }

  .line-chart-card-body,
  .bar-chart-shell {
    grid-template-columns: 1fr;
  }

  .line-chart-scale,
  .bar-chart-scale {
    display: none;
  }
}

.platform-shell {
  --platform-inline-padding: clamp(18px, 2.2vw, 34px);
  --sidebar-width: var(--sidebar-collapsed);
  width: 100vw;
  max-width: 100%;
  margin: 0;
  padding: 0 0 28px;
  gap: 0;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  align-items: stretch;
  transition: grid-template-columns 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-sidebar-expanded="true"] .platform-shell {
  --sidebar-width: var(--sidebar-expanded);
}

body[data-sidebar-expanded="false"] .sidebar-toggle-icon {
  transform: rotate(180deg);
}

.platform-sidebar {
  min-height: 100vh;
  padding: 24px 18px;
  border-radius: 0 28px 28px 0;
  border-left: 0;
  position: sticky;
  top: 0;
}

body[data-active-panel="ao-vivo"] .platform-main {
  padding: 24px var(--platform-inline-padding) 34px 18px !important;
  gap: 0 !important;
  overflow-y: auto;
}

.platform-header {
  padding: 0;
}

.platform-header h1 {
  font-size: clamp(1.55rem, 2.6vw, 2.24rem);
}

.overview-stat-level {
  align-items: start;
}

.overview-stat-level .overview-stat-copy {
  align-self: start;
  padding-top: 2px;
}

.overview-stat-level .level-progress-ring {
  align-self: center;
}

.overview-stat-card .card-kicker {
  white-space: nowrap;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

.analytics-header h3,
.dashboard-section-header h3,
.panel-heading h2 {
  white-space: nowrap;
}

.dashboard-section-header {
  align-items: center;
}

.ghost-action-button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffc9c3;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: none;
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.ghost-action-button:hover,
.ghost-action-button:focus-visible {
  color: #ffd7d1;
  opacity: 0.92;
}

.journey-chart-stage {
  padding-top: 6px;
}

.journey-tag {
  z-index: 2;
}

.journey-tag-connector {
  position: absolute;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.28));
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}

.journey-tag-connector-current {
  background: linear-gradient(180deg, rgba(255, 212, 206, 0.68), rgba(255, 86, 79, 0.18));
}

.today-slots-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ranking-card {
  gap: 14px;
}

.ranking-list {
  gap: 6px;
}

.ranking-row {
  min-height: 48px;
  padding: 8px 10px;
  grid-template-columns: 18px 34px minmax(0, 1fr) auto;
  gap: 10px;
}

.ranking-position {
  font-size: 0.74rem;
}

.ranking-avatar {
  width: 34px;
  height: 34px;
  font-size: 0.66rem;
}

.ranking-xp {
  font-size: 0.78rem;
}

.panel-title-compact {
  font-size: clamp(1.46rem, 2vw, 1.98rem);
}

.panel-title-schedule {
  font-size: clamp(1.38rem, 1.8vw, 1.82rem);
}

.panel-heading-schedule {
  align-items: center;
}

.booking-feedback {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.class-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.live-scheduler-shell {
  padding: 20px 22px 24px;
  display: grid;
  gap: 20px;
}

.live-scheduler-toolbar {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  gap: 12px;
  align-items: center;
}

.scheduler-nav-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.scheduler-nav-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scheduler-nav-button[disabled] {
  opacity: 0.72;
}

.live-scheduler-timezone {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.live-scheduler-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.live-day-column {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.live-day-head {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.live-day-weekday {
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.live-day-date {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--text-main);
}

.live-day-column.is-today .live-day-date {
  background: rgba(255, 86, 79, 0.16);
  border-color: rgba(255, 86, 79, 0.32);
  box-shadow: 0 10px 20px rgba(255, 86, 79, 0.16);
}

.live-day-slots {
  display: grid;
  gap: 10px;
}

.scheduler-slot {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  text-align: center;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.scheduler-slot:hover,
.scheduler-slot:focus-visible,
.scheduler-slot.is-selected {
  border-color: rgba(255, 86, 79, 0.3);
  background: rgba(255, 86, 79, 0.14);
  box-shadow: 0 14px 22px rgba(255, 86, 79, 0.12);
  transform: translateY(-1px);
}

@media (hover: hover) and (pointer: fine) and (min-width: 1101px) {
  .platform-sidebar {
    width: 100%;
  }

  body[data-sidebar-expanded="false"] .platform-sidebar {
    padding-inline: 16px;
  }

  body[data-sidebar-expanded="false"] .platform-sidebar .sidebar-brand {
    gap: 0;
    padding-inline: calc((var(--sidebar-collapsed) - 44px) / 2 - 16px);
  }

  body[data-sidebar-expanded="false"] .platform-sidebar .sidebar-brand-copy,
  body[data-sidebar-expanded="false"] .platform-sidebar .sidebar-text {
    max-width: 0;
    opacity: 0;
    transform: translateX(-6px);
    overflow: hidden;
    pointer-events: none;
  }

  body[data-sidebar-expanded="false"] .platform-sidebar .sidebar-link {
    padding-inline: calc((var(--sidebar-collapsed) - 20px) / 2 - 16px);
    gap: 0;
  }

  body[data-sidebar-expanded="true"] .platform-sidebar .sidebar-brand {
    gap: 14px;
    padding-inline: 0;
  }

  body[data-sidebar-expanded="true"] .platform-sidebar .sidebar-brand-copy,
  body[data-sidebar-expanded="true"] .platform-sidebar .sidebar-text {
    max-width: 180px;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  body[data-sidebar-expanded="true"] .platform-sidebar .sidebar-link {
    padding-inline: 14px;
    gap: 12px;
  }
}

@media (max-width: 1100px) {
  .platform-shell {
    width: 100%;
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 16px;
  }

  .platform-sidebar {
    min-height: 0;
    position: static;
    border-radius: 26px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }

  .sidebar-topbar {
    display: none;
  }

  .platform-main {
    padding: 0;
  }

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

@media (max-width: 820px) {
  .dashboard-section-header {
    flex-wrap: wrap;
    flex-direction: row;
  }

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

  .live-scheduler-grid {
    grid-template-columns: 1fr;
  }

  .live-scheduler-toolbar {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
  }
}

@media (max-width: 560px) {
  .platform-shell {
    width: 100%;
    padding: 14px;
  }

  .platform-sidebar {
    padding: 16px;
  }

  .platform-main {
    gap: 18px;
  }

  .panel-heading,
  .panel-heading-schedule {
    flex-direction: column;
    align-items: flex-start;
  }

  .booking-feedback {
    width: 100%;
    justify-content: flex-start;
  }

  .today-slots-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-section-header h3,
  .analytics-header h3,
  .panel-heading h2 {
    font-size: 1rem;
  }

  .ranking-row {
    grid-template-columns: 18px 32px minmax(0, 1fr);
  }

  .ranking-xp {
    grid-column: 2 / -1;
  }
}

body[data-active-panel="ao-vivo"] {
  background: #0d0f12;
}

body[data-active-panel="ao-vivo"] .page-glow {
  display: none;
}

body[data-active-panel="ao-vivo"] .platform-backdrop {
  background: #0d0f12;
}

body[data-active-panel="ao-vivo"] .platform-sidebar {
  background: #0d0f12;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.platform-panel[data-panel="ao-vivo"] {
  gap: 10px !important;
  margin-top: 0 !important;
  padding-top: 6px !important;
  align-content: start;
}

.schedule-page-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 18px !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

.header-plan--schedule {
  padding-top: 2px;
}

.schedule-breadcrumb {
  color: #5a6070;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.schedule-page-title {
  margin: 0;
  font-family: "Inter", "Plus Jakarta Sans", "Avenir Next", sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #ffffff;
}

body[data-role="teacher"] .schedule-page-title {
  display: none;
}

.schedule-context-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

.schedule-timezone-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5a6070;
  font-size: 13px;
  font-weight: 500;
}

.schedule-context-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.schedule-context-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.schedule-context-copy {
  color: #5a6070;
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  text-align: right;
}

.live-booking-panel {
  display: grid;
  gap: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #151820;
  box-shadow: 0 2px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.live-schedule-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

[data-live-student][hidden] {
  display: none !important;
}

[data-live-teacher][hidden] {
  display: none !important;
}

[data-live-admin][hidden] {
  display: none !important;
}

.admin-schedule-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 420px;
  gap: 16px;
  align-items: start;
}

@media (max-width: 980px) {
  .admin-schedule-layout {
    grid-template-columns: 1fr;
  }
}

.admin-ranking-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.admin-ranking-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: grab;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease;
}

.admin-ranking-item:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.admin-ranking-item.is-dragging {
  opacity: 0.72;
  cursor: grabbing;
}

.admin-ranking-item.is-drop-target {
  border-color: rgba(232, 69, 60, 0.38);
  background: rgba(232, 69, 60, 0.1);
}

.admin-ranking-position {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.admin-ranking-name {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-ranking-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
}

.admin-ranking-handle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-ranking-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-ranking-status,
.admin-user-status {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.58);
}

.admin-ranking-status[data-tone="error"],
.admin-user-status[data-tone="error"] {
  color: rgba(255, 118, 110, 0.96);
}

.admin-ranking-status[data-tone="success"],
.admin-user-status[data-tone="success"] {
  color: rgba(175, 255, 214, 0.9);
}

.admin-user-form {
  margin-top: 6px;
  display: grid;
  gap: 12px;
}

.admin-user-actions {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body:not([data-role="admin"]):not([data-role="FINANCE"]) [data-admin-only],
body[data-role="FINANCE"] [data-admin-only]:not([data-panel-target="alunos"]) {
  display: none !important;
}

.admin-students-shell {
  width: 100%;
  display: grid;
  gap: 14px;
}

.admin-students-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-students-title {
  margin: 0;
  font-family: "Inter", "Plus Jakarta Sans", "Avenir Next", sans-serif;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: #ffffff;
}

.admin-students-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

.admin-students-filter {
  display: grid;
  gap: 8px;
  min-width: min(320px, 100%);
}

.admin-students-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-students-search {
  display: inline-flex;
  align-items: center;
}

.admin-students-search-input {
  width: min(280px, 56vw);
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 750;
  outline: none;
}

.admin-students-search-input:focus {
  border-color: rgba(89, 144, 189, 0.45);
  box-shadow: 0 0 0 3px rgba(89, 144, 189, 0.12);
}

.admin-students-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.admin-students-filters-badge {
  margin-left: 8px;
  height: 18px;
  min-width: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 78, 70, 0.16);
  border: 1px solid rgba(255, 78, 70, 0.24);
  color: rgba(255, 78, 70, 0.95);
  font-size: 11px;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

/* Admin > Alunos filters popover */
.admin-students-filters-popover {
  position: fixed;
  width: min(360px, calc(100vw - 24px));
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 18, 28, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  display: grid;
  gap: 10px;
  z-index: 9999;
  animation: fade-dropdown 150ms ease both;
}

.admin-students-filters-row {
  display: grid;
  gap: 6px;
}

.admin-students-filters-row label {
  font-size: 11px;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.45);
}

.admin-students-filters-row input[type="date"],
.admin-students-filters-row select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.92);
  outline: none;
}

.admin-students-filters-row input[type="date"]:focus,
.admin-students-filters-row select:focus {
  border-color: rgba(255, 86, 79, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 86, 79, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.admin-students-filters-grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-students-filters-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-students-filters-clear {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.admin-students-filters-apply {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.admin-students-filters-apply:hover,
.admin-students-filters-apply:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.admin-students-filters-clear:hover,
.admin-students-filters-clear:focus-visible {
  background: rgba(255, 255, 255, 0.05);
}

.admin-students-filter-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
}

.admin-students-select-wrap {
  position: relative;
}

.admin-students-select {
  width: 100%;
  height: 42px;
  padding: 0 42px 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.92);
  outline: none;
  appearance: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.admin-students-select:focus {
  border-color: rgba(255, 86, 79, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 86, 79, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.admin-students-select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.admin-students-status {
  font-size: 13px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.58);
  min-height: 18px;
  text-align: right;
}

.admin-students-status[data-tone="error"] {
  color: rgba(255, 118, 110, 0.96);
}

.admin-students-card {
  padding: 0;
  overflow: hidden;
}

.admin-students-list {
  display: grid;
}

.admin-students-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 18px 40px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.admin-students-row + .admin-students-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-students-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.admin-students-row:focus-visible {
  outline: 2px solid rgba(89, 144, 189, 0.6);
  outline-offset: -2px;
}

.admin-students-avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(89, 144, 189, 0.12);
  border: 1px solid rgba(89, 144, 189, 0.22);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-students-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
}

.admin-students-alert {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(255, 78, 70, 0.22);
  background: rgba(255, 78, 70, 0.1);
  color: rgba(255, 78, 70, 0.95);
}

.admin-students-meta {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.55);
}

.admin-students-email {
  color: rgba(255, 255, 255, 0.65);
}

.admin-students-dot {
  color: rgba(255, 255, 255, 0.28);
}

.admin-students-kpis {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.52);
}

.admin-students-kpis strong {
  color: rgba(255, 255, 255, 0.88);
  font-variant-numeric: tabular-nums;
}

.admin-students-risk {
  display: inline-flex;
  gap: 6px;
}

.admin-students-risk.is-red strong {
  color: rgba(255, 78, 70, 0.95);
}

.admin-students-risk.is-yellow strong {
  color: rgba(251, 191, 36, 0.92);
}

.admin-students-risk.is-green strong {
  color: rgba(93, 202, 165, 0.92);
}

.admin-students-emailline {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.58);
}

.admin-students-chips {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-students-chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.admin-students-chip.is-muted {
  color: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.06);
}

.admin-students-chip.is-country {
  text-transform: none;
}

.admin-students-chip.is-green {
  border-color: rgba(93, 202, 165, 0.18);
  background: rgba(93, 202, 165, 0.1);
  color: rgba(93, 202, 165, 0.92);
}

.admin-students-chip.is-gray {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.7);
}

.admin-students-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-students-chevron {
  font-size: 18px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.35);
}

.admin-students-actions-trigger {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
}

.admin-students-actions-trigger svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-students-empty,
.admin-students-error {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.55);
}

.admin-students-error {
  color: rgba(255, 118, 110, 0.96);
}

/* Admin > Alunos drawer (history) */
.admin-students-drawer {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.admin-students-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.admin-students-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.admin-students-drawer-inner {
  position: relative;
  width: min(560px, 94vw);
  height: 100vh;
  background: #0d1a2a;
  border-left: 0.5px solid rgba(89, 144, 189, 0.12);
  box-shadow: -24px 0 54px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-student-sheet-drawer-inner {
  width: min(1120px, 94vw);
}

.admin-students-drawer.is-open .admin-students-drawer-inner {
  transform: translateX(0);
}

.admin-students-drawer-head {
  padding: 18px 18px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 0.5px solid rgba(89, 144, 189, 0.08);
}

.admin-students-drawer-title {
  font-weight: 800;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.95);
}

.admin-students-drawer-sub {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.4);
}

.admin-students-drawer-close {
  border: 0;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
}

.admin-students-drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 20px 20px;
  display: grid;
  gap: 14px;
}

.admin-student-sheet-drawer-inner .admin-students-drawer-body {
  padding: 0;
  display: block;
}

/* Admin > Alunos: unified student sheet */
.admin-student-sheet {
  height: 100%;
}

.admin-student-sheet-grid {
  min-height: 100%;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 20px 20px;
}

.admin-student-sheet-left {
  display: grid;
  align-content: start;
  gap: 14px;
  padding-right: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-student-id {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.admin-student-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(89, 144, 189, 0.12);
  border: 1px solid rgba(89, 144, 189, 0.22);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-student-name {
  font-size: 15px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.95);
}

.admin-student-email {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.5);
}

.admin-student-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-student-tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 750;
}

.admin-student-tag.is-green {
  border-color: rgba(93, 202, 165, 0.18);
  background: rgba(93, 202, 165, 0.1);
  color: rgba(93, 202, 165, 0.92);
}

.admin-student-tag.is-gray {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.72);
}

.admin-student-tag.is-plan {
  border-color: rgba(137, 85, 255, 0.28);
  background: rgba(137, 85, 255, 0.12);
  color: rgba(196, 172, 255, 0.95);
}

.admin-student-tag.is-plan-empty {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.62);
}

.admin-student-tag.is-country {
  color: rgba(255, 255, 255, 0.75);
}

.admin-student-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-student-metric {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 6px;
}

.admin-student-metric span {
  font-size: 11px;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.42);
}

.admin-student-metric strong {
  font-size: 12px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.92);
  font-variant-numeric: tabular-nums;
}

.admin-student-personal {
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 10px;
}

.admin-student-personal-title {
  font-size: 11px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.55);
}

.admin-student-personal-grid {
  display: grid;
  gap: 10px;
}

.admin-student-personal-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.52);
}

.admin-student-personal-row strong {
  font-weight: 850;
  color: rgba(255, 255, 255, 0.9);
}

.admin-student-left-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

.admin-student-sheet-right {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  padding-left: 6px;
}

.admin-student-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.admin-student-tab {
  height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.admin-student-tab.is-active {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.92);
}

.admin-student-tab-panels {
  display: grid;
  gap: 14px;
}

.admin-student-tab-panel {
  display: none;
}

.admin-student-tab-panel.is-active {
  display: block;
}

.admin-student-panel-card {
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 10px;
}

.admin-student-panel-title {
  font-size: 12px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.9);
}

.admin-student-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-student-field {
  display: grid;
  gap: 6px;
}

.admin-student-field span {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.45);
}

.admin-student-field-wide {
  grid-column: 1 / -1;
}

.admin-student-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 700;
  outline: none;
}

.admin-student-input:focus {
  border-color: rgba(89, 144, 189, 0.45);
  box-shadow: 0 0 0 3px rgba(89, 144, 189, 0.12);
}

.admin-student-input.is-error {
  border-color: rgba(255, 78, 70, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 78, 70, 0.12);
}

.admin-student-textarea {
  height: auto;
  padding: 10px 12px;
  min-height: 84px;
  resize: vertical;
}

.admin-student-edit-error {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 78, 70, 0.22);
  background: rgba(255, 78, 70, 0.08);
  color: rgba(255, 78, 70, 0.9);
  font-size: 12px;
  font-weight: 750;
}

.admin-student-panel-empty {
  font-size: 13px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.55);
}

/* Admin > Alunos: Arquivos tab */
.admin-student-files-upload {
  display: grid;
  gap: 10px;
}

.admin-student-upload-zone {
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
  padding: 14px 14px;
  display: grid;
  gap: 6px;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.admin-student-upload-zone:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(89, 144, 189, 0.3);
}

.admin-student-upload-zone strong {
  font-size: 13px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.92);
}

.admin-student-upload-zone span {
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.5);
}

.admin-student-files-inline-error {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 78, 70, 0.22);
  background: rgba(255, 78, 70, 0.08);
  color: rgba(255, 78, 70, 0.9);
  font-size: 12px;
  font-weight: 750;
}

.admin-student-files-empty {
  font-size: 13px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.55);
  padding: 12px 2px 2px;
}

.admin-student-files-empty.is-error {
  color: rgba(255, 118, 110, 0.96);
}

.admin-student-files-list {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.admin-student-file {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.admin-student-file-name {
  font-size: 13px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-student-file-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.52);
}

.admin-student-file-dot {
  color: rgba(255, 255, 255, 0.22);
}

.admin-student-file-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-student-file-btn {
  height: 32px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.admin-student-file-btn:hover,
.admin-student-file-btn:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.admin-student-file-btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.admin-student-file-btn.is-danger {
  border-color: rgba(255, 78, 70, 0.25);
  background: rgba(255, 78, 70, 0.08);
  color: rgba(255, 78, 70, 0.92);
}

.admin-student-panel-note {
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.55);
}

.admin-student-fin-grid {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-student-fin-card {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 6px;
}

.admin-student-fin-card span {
  font-size: 11px;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.42);
}

.admin-student-fin-card strong {
  font-size: 12px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.9);
}

.admin-student-fin-table-empty,
.admin-student-fin-timeline-empty {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.55);
}

.admin-student-fin-table-empty.is-error,
.admin-student-chatwoot-loading.is-error {
  color: rgba(255, 118, 110, 0.96);
}

.admin-student-fin-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-student-fin-table {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  overflow-x: auto;
}

.admin-student-fin-row {
  min-width: 820px;
  display: grid;
  grid-template-columns: 0.8fr 0.8fr 0.9fr 1fr 0.8fr 2.4fr;
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.74);
}

.admin-student-fin-head {
  border: 0;
  background: transparent;
  padding-top: 0;
  padding-bottom: 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-student-fin-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  font-weight: 850;
}

.admin-student-fin-status.is-green {
  border-color: rgba(82, 190, 128, 0.28);
  background: rgba(82, 190, 128, 0.1);
  color: rgba(126, 222, 166, 0.95);
}

.admin-student-fin-status.is-yellow {
  border-color: rgba(242, 201, 76, 0.28);
  background: rgba(242, 201, 76, 0.09);
  color: rgba(244, 211, 94, 0.95);
}

.admin-student-fin-status.is-red {
  border-color: rgba(255, 78, 70, 0.28);
  background: rgba(255, 78, 70, 0.09);
  color: rgba(255, 118, 110, 0.95);
}

.admin-student-fin-status.is-gray {
  color: rgba(255, 255, 255, 0.55);
}

.admin-student-fin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.admin-student-fin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-student-chatwoot-loading {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.58);
}

.admin-student-chatwoot-list {
  display: grid;
  gap: 10px;
  max-height: min(62vh, 640px);
  overflow: auto;
  padding-right: 4px;
}

.admin-student-chatwoot-message {
  width: min(88%, 560px);
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.admin-student-chatwoot-message.is-outgoing {
  justify-self: end;
  border-color: rgba(89, 144, 189, 0.18);
  background: rgba(89, 144, 189, 0.08);
}

.admin-student-chatwoot-message.is-private {
  justify-self: center;
  border-color: rgba(242, 201, 76, 0.24);
  background: rgba(242, 201, 76, 0.08);
}

.admin-student-chatwoot-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.admin-student-chatwoot-meta strong {
  color: rgba(255, 255, 255, 0.86);
}

.admin-student-chatwoot-content {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.finance-chat-shell {
  display: grid;
  grid-template-rows: auto minmax(260px, 56vh) auto;
  gap: 12px;
}

.finance-chat-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.finance-chat-head strong,
.finance-chat-head span {
  display: block;
}

.finance-chat-head strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
}

.finance-chat-head span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.finance-chat-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}

.finance-chat-id {
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 11px !important;
  font-weight: 850;
}

.finance-chat-list {
  display: grid;
  gap: 10px;
  max-height: none;
  min-height: 260px;
  padding: 6px 8px 6px 0;
}

.finance-chat-compose {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.finance-chat-input {
  resize: vertical;
  min-height: 84px;
}

.finance-chat-compose-actions,
.finance-chat-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.finance-chat-attachments {
  margin-top: 8px;
}

.finance-chat-attachments a {
  color: rgba(126, 222, 166, 0.95);
  font-size: 12px;
  font-weight: 800;
}

.finance-chat-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(420px, 1.6fr) minmax(230px, 0.72fr);
  height: clamp(560px, 68vh, 720px);
  min-height: 560px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, rgba(255, 86, 79, 0.1), transparent 30%),
    radial-gradient(circle at top right, rgba(89, 144, 189, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(16, 22, 31, 0.96), rgba(9, 13, 21, 0.98));
}

.finance-chat-threads,
.finance-chat-profile {
  min-width: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.finance-chat-threads {
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.finance-chat-profile {
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.finance-chat-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.finance-chat-section-head strong {
  color: rgba(255, 255, 255, 0.93);
  font-size: 13px;
  font-weight: 900;
}

.finance-chat-section-head span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 800;
}

.finance-chat-thread-list {
  display: grid;
  gap: 8px;
  max-height: 500px;
  overflow: auto;
  padding-right: 3px;
}

.finance-chat-thread {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 62px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
  cursor: pointer;
}

.finance-chat-thread:hover,
.finance-chat-thread.is-active {
  border-color: rgba(255, 86, 79, 0.28);
  background: rgba(255, 86, 79, 0.08);
}

.finance-chat-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(255, 86, 79, 0.52), rgba(89, 144, 189, 0.38));
  color: rgba(255, 255, 255, 0.95);
  font-size: 12px;
  font-weight: 900;
}

.finance-chat-avatar.is-large {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.finance-chat-thread-main {
  min-width: 0;
}

.finance-chat-thread-main strong,
.finance-chat-thread-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-chat-thread-main strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 900;
}

.finance-chat-thread-main small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 750;
}

.finance-chat-thread-status {
  justify-self: end;
  min-height: 22px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  font-weight: 850;
}

.finance-chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: 100%;
  min-width: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
}

.finance-chat-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.finance-chat-title-block {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.finance-chat-title-block strong,
.finance-chat-title-block span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-chat-title-block strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 15px;
  font-weight: 900;
}

.finance-chat-title-block span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 750;
}

.finance-chat-list.is-inline {
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  align-content: start;
  padding: 12px 18px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 28px 28px;
}

.finance-chat-compose.is-inline {
  padding: 9px 18px 11px;
  background: rgba(255, 255, 255, 0.025);
}

.finance-chat-compose.is-inline .finance-chat-input {
  min-height: 52px;
  max-height: 64px;
}

.finance-chat-list.is-inline .admin-student-chatwoot-message {
  padding: 8px 10px;
  border-radius: 12px;
}

.finance-chat-list.is-inline .admin-student-chatwoot-meta {
  margin-bottom: 4px;
}

.finance-chat-list.is-inline .admin-student-chatwoot-content {
  font-size: 12px;
  line-height: 1.3;
}

.finance-chat-truncated {
  justify-self: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 850;
}

.finance-dashboard-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.75fr;
  gap: 12px;
}

.finance-dashboard-panel {
  min-height: 170px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(255, 86, 79, 0.08), transparent 34%),
    radial-gradient(circle at bottom left, rgba(89, 144, 189, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.035);
}

.finance-dashboard-panel-wide {
  grid-column: span 2;
}

.finance-dashboard-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.finance-dashboard-panel-head span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 114, 108, 0.82);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.finance-dashboard-panel-head strong,
.finance-dashboard-panel-head b {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 900;
}

.finance-bar-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  min-height: 190px;
}

.finance-bar-item {
  display: grid;
  grid-template-rows: 34px 1fr 20px;
  align-items: end;
  gap: 7px;
  height: 190px;
  min-width: 0;
}

.finance-bar-item span {
  align-self: start;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-bar-item i {
  display: block;
  min-height: 8px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #ff625d, rgba(89, 144, 189, 0.62));
  box-shadow: 0 0 22px rgba(255, 86, 79, 0.17);
}

.finance-bar-item small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.finance-dashboard-stack {
  display: grid;
  gap: 10px;
}

.finance-dashboard-stack div,
.finance-dashboard-big-number {
  padding: 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
}

.finance-dashboard-stack span,
.finance-dashboard-big-number span {
  display: block;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 850;
}

.finance-dashboard-stack strong,
.finance-dashboard-big-number strong {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 22px;
  font-weight: 950;
}

.finance-priority-list,
.finance-ops-list {
  display: grid;
  gap: 10px;
}

.finance-priority-item,
.finance-priority-empty,
.finance-ops-list div {
  padding: 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
}

.finance-priority-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) minmax(180px, 0.9fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.finance-priority-item span {
  min-height: 24px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.finance-priority-item strong,
.finance-priority-item small,
.finance-priority-empty {
  min-width: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 850;
}

.finance-priority-item small {
  color: rgba(255, 255, 255, 0.54);
}

.finance-priority-item.is-red {
  border-color: rgba(255, 86, 79, 0.2);
  background: rgba(255, 86, 79, 0.06);
}

.finance-priority-item.is-yellow {
  border-color: rgba(242, 201, 76, 0.18);
  background: rgba(242, 201, 76, 0.055);
}

.finance-priority-item.is-blue {
  border-color: rgba(89, 144, 189, 0.22);
  background: rgba(89, 144, 189, 0.065);
}

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

.finance-ops-list span {
  display: block;
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.finance-ops-list strong {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.93);
  font-size: 22px;
  font-weight: 950;
}

.finance-location-map {
  position: relative;
  display: flex;
  min-height: 160px;
  flex-wrap: wrap;
  align-content: center;
  gap: 8px;
  padding: 14px;
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 38%, rgba(255, 86, 79, 0.78) 0 5px, transparent 6px),
    radial-gradient(circle at 38% 58%, rgba(89, 144, 189, 0.82) 0 4px, transparent 5px),
    radial-gradient(circle at 70% 36%, rgba(255, 86, 79, 0.62) 0 4px, transparent 5px),
    radial-gradient(circle at 82% 68%, rgba(89, 144, 189, 0.58) 0 4px, transparent 5px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    rgba(0, 0, 0, 0.12);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat, repeat, no-repeat;
  background-size: auto, auto, auto, auto, 24px 24px, 24px 24px, auto;
}

.finance-location-map::before {
  position: absolute;
  inset: 18px 16px;
  content: "";
  border-radius: 48% 52% 42% 58%;
  background:
    radial-gradient(ellipse at 22% 40%, rgba(255, 255, 255, 0.08) 0 12%, transparent 13%),
    radial-gradient(ellipse at 44% 48%, rgba(255, 255, 255, 0.065) 0 16%, transparent 17%),
    radial-gradient(ellipse at 70% 38%, rgba(255, 255, 255, 0.07) 0 18%, transparent 19%),
    radial-gradient(ellipse at 76% 70%, rgba(255, 255, 255, 0.055) 0 12%, transparent 13%);
  opacity: 0.85;
  pointer-events: none;
}

.finance-location-map span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 86, 79, 0.28);
  background: rgba(255, 86, 79, 0.09);
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 850;
}

.finance-location-map b {
  color: #ff7670;
}

.finance-location-map em {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.finance-status-bars {
  display: grid;
  gap: 12px;
}

.finance-status-bars div {
  display: grid;
  grid-template-columns: 110px 1fr 34px;
  gap: 10px;
  align-items: center;
}

.finance-status-bars span,
.finance-status-bars strong {
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.finance-status-bars i {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.finance-status-bars b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff625d, #5990bd);
}

.finance-chat-empty-state {
  align-self: center;
  justify-self: center;
  max-width: 320px;
  padding: 18px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.finance-chat-empty-state.is-error {
  border-color: rgba(255, 78, 70, 0.28);
  color: rgba(255, 118, 110, 0.95);
}

.finance-chat-profile-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.finance-chat-money-card {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 86, 79, 0.16);
  background:
    radial-gradient(circle at top right, rgba(255, 86, 79, 0.1), transparent 44%),
    rgba(255, 255, 255, 0.045);
}

.finance-chat-money-card span,
.finance-chat-money-card small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.finance-chat-money-card strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 20px;
  font-weight: 950;
}

.finance-chat-money-card small {
  font-size: 11px;
  line-height: 1.35;
  text-transform: none;
}

.finance-chat-money-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.finance-chat-profile-list div {
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.finance-chat-profile-list dt {
  margin: 0 0 5px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.finance-chat-profile-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.finance-shell {
  width: min(1280px, calc(100vw - 42px));
  margin: 0 auto;
  padding: 32px 0 46px;
}

.finance-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.finance-title {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 28px;
  line-height: 1.08;
}

.finance-subtitle {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.45;
}

.finance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.finance-status {
  min-height: 20px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.finance-status[data-tone="error"] {
  color: rgba(255, 118, 110, 0.95);
}

.finance-status[data-tone="success"] {
  color: rgba(126, 222, 166, 0.95);
}

.finance-summary-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.finance-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.finance-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  min-width: 100%;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.finance-filter-bar label {
  display: grid;
  gap: 5px;
  min-width: min(260px, 100%);
}

.finance-filter-bar label:first-child {
  flex: 1 1 300px;
}

.finance-filter-bar span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.finance-tab {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.finance-tab.is-active {
  border-color: rgba(89, 144, 189, 0.34);
  background: rgba(89, 144, 189, 0.14);
  color: rgba(255, 255, 255, 0.92);
}

.finance-summary-card {
  min-height: 74px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(255, 86, 79, 0.08), transparent 38%),
    radial-gradient(circle at bottom left, rgba(89, 144, 189, 0.08), transparent 40%),
    rgba(255, 255, 255, 0.045);
}

.finance-summary-card span {
  display: block;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.finance-summary-card strong {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
}

.finance-card {
  overflow: hidden;
  border-radius: 18px;
}

.finance-table {
  display: grid;
  overflow-x: auto;
  scrollbar-gutter: stable;
}

.finance-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) 100px 110px 112px 124px minmax(120px, 0.8fr) minmax(280px, 1.8fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.finance-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.finance-row-alunos {
  grid-template-columns: minmax(220px, 1.35fr) 145px minmax(260px, 1.3fr) 120px minmax(170px, 0.95fr) minmax(180px, 0.95fr) minmax(170px, 0.9fr) minmax(190px, 1.05fr) 145px;
  width: 1740px;
}

.finance-row-alunos > span {
  align-self: center;
}

.finance-row-cobrancas {
  grid-template-columns: minmax(180px, 1.3fr) 105px 112px 86px 96px 124px 112px 132px 130px minmax(280px, 1.7fr);
  width: 1440px;
}

.finance-row-pagamentos {
  grid-template-columns: minmax(180px, 1.3fr) 105px 112px 130px 120px 130px 160px 160px 160px;
  width: 1360px;
}

.finance-row-eventos {
  grid-template-columns: minmax(190px, 1.4fr) 130px 120px 105px 112px minmax(220px, 1.5fr) 130px;
  width: 1120px;
}

.finance-row-chatwoot {
  grid-template-columns: minmax(190px, 1.4fr) 120px minmax(170px, 1.2fr) 100px 170px minmax(240px, 1.4fr);
  width: 1040px;
}

.finance-head-row {
  min-height: 36px;
  border-top: 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.finance-student {
  display: grid;
  gap: 6px;
  justify-items: start;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 850;
}

.finance-missing,
.finance-ready {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.finance-missing {
  border: 1px solid rgba(255, 78, 70, 0.22);
  color: rgba(255, 118, 110, 0.94);
}

.finance-ready {
  margin-left: 0;
  border: 1px solid rgba(82, 190, 128, 0.28);
  color: rgba(126, 222, 166, 0.95);
}

.finance-row-alunos .admin-student-fin-actions {
  align-items: flex-start;
}

.finance-empty {
  padding: 24px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .finance-head {
    display: grid;
  }

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

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

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

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

  .finance-dashboard-panel-wide {
    grid-column: auto;
  }

  .finance-bar-chart {
    overflow-x: auto;
  }

  .finance-row {
    width: 980px;
  }

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

  .finance-chat-threads,
  .finance-chat-profile {
    border: 0;
  }

  .finance-chat-threads {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .finance-chat-profile {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .finance-chat-thread-list {
    max-height: 230px;
  }

  .finance-chat-panel-head {
    display: grid;
  }

  .admin-student-sheet-grid {
    grid-template-columns: 1fr;
  }
  .admin-student-sheet-left {
    border-right: 0;
    padding-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 14px;
  }
  .admin-student-sheet-right {
    padding-left: 0;
  }
}

.admin-students-history-filters {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  width: fit-content;
}

.admin-students-history-filter {
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.admin-students-history-filter.is-active {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.92);
}

.admin-students-history-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-students-summary-card {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 6px;
}

.admin-students-summary-card span {
  font-size: 11px;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.42);
}

.admin-students-summary-card strong {
  font-size: 13px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.92);
  font-variant-numeric: tabular-nums;
}

.admin-students-history-indicators {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-students-indicator {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 6px;
}

.admin-students-indicator span {
  font-size: 11px;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.42);
}

.admin-students-indicator strong {
  font-size: 13px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.9);
  font-variant-numeric: tabular-nums;
}

.admin-students-timeline {
  display: grid;
  gap: 12px;
}

.admin-students-tl-item {
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 8px;
}

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

.admin-students-tl-stamp {
  font-size: 12px;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.85);
}

.admin-students-tl-alert {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(255, 78, 70, 0.22);
  background: rgba(255, 78, 70, 0.1);
  color: rgba(255, 78, 70, 0.95);
}

.admin-students-tl-title {
  font-size: 13px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.9);
}

.admin-students-tl-by,
.admin-students-tl-summary,
.admin-students-tl-risk,
.admin-students-tl-obs {
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.58);
}

.admin-students-tl-avisos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-students-pill {
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 750;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.7);
}

.admin-students-pill.is-red {
  background: rgba(255, 78, 70, 0.1);
  border-color: rgba(255, 78, 70, 0.18);
  color: rgba(255, 78, 70, 0.95);
}

.admin-students-pill.is-yellow {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.18);
  color: rgba(251, 191, 36, 0.92);
}

.admin-students-pill.is-green {
  background: rgba(93, 202, 165, 0.1);
  border-color: rgba(93, 202, 165, 0.18);
  color: rgba(93, 202, 165, 0.92);
}

.admin-students-history-empty {
  font-size: 13px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.55);
  padding: 10px 0;
}

@media (max-width: 640px) {
  .admin-students-history-summary,
  .admin-students-history-indicators {
    grid-template-columns: 1fr;
  }
}

/* Teacher > Alunos (student list + history drawer) */
.teacher-students-shell {
  width: 100%;
  display: grid;
  gap: 14px;
}

.teacher-onboarding-shell {
  width: 100%;
  display: grid;
  gap: 14px;
}

.teacher-onboarding-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.teacher-onboarding-title {
  margin: 0;
  font-family: "Inter", "Plus Jakarta Sans", "Avenir Next", sans-serif;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: #ffffff;
}

.teacher-onboarding-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.52);
  max-width: 70ch;
}

.teacher-onboarding-progress {
  display: grid;
  gap: 8px;
  min-width: min(280px, 100%);
}

.teacher-onboarding-progress-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.55);
}

.teacher-onboarding-progress-top strong {
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
  font-variant-numeric: tabular-nums;
}

.teacher-onboarding-progress-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.teacher-onboarding-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(89, 144, 189, 0.9), rgba(137, 85, 255, 0.85));
}

.teacher-onboarding-status {
  min-height: 18px;
  font-size: 13px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.58);
  text-align: right;
}

.teacher-onboarding-status[data-tone="error"] {
  color: rgba(255, 118, 110, 0.96);
}

.teacher-onboarding-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 360px;
  gap: 14px;
  align-items: start;
}

.teacher-onboarding-main {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.teacher-onboarding-main-head {
  display: grid;
  gap: 4px;
}

.teacher-onboarding-current-kicker {
  font-size: 11px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.45);
}

.teacher-onboarding-current-title {
  font-size: 16px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.95);
}

.teacher-onboarding-current-sub {
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.55);
}

.teacher-onboarding-view {
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  min-height: 280px;
}

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

.teacher-onboarding-list {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.teacher-onboarding-list-title {
  font-size: 13px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
}

.teacher-onboarding-list-sub {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.55);
}

.teacher-onboarding-items {
  display: grid;
  gap: 10px;
}

.teacher-onboarding-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  padding: 12px 12px;
  display: grid;
  gap: 8px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.teacher-onboarding-item:hover,
.teacher-onboarding-item:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(89, 144, 189, 0.22);
}

.teacher-onboarding-item.is-active {
  border-color: rgba(89, 144, 189, 0.25);
  background: rgba(89, 144, 189, 0.08);
}

.teacher-onboarding-item-title {
  font-size: 13px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
}

.teacher-onboarding-item-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.teacher-onboarding-pill {
  font-size: 10px;
  font-weight: 850;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.66);
}

.teacher-onboarding-pill.is-done {
  border-color: rgba(93, 202, 165, 0.25);
  background: rgba(93, 202, 165, 0.12);
  color: rgba(93, 202, 165, 0.95);
}

.teacher-onboarding-pill.is-progress {
  border-color: rgba(89, 144, 189, 0.24);
  background: rgba(89, 144, 189, 0.12);
  color: rgba(89, 144, 189, 0.95);
}

.teacher-onboarding-pill.is-todo {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.72);
}

.teacher-onboarding-empty {
  padding: 12px 2px 2px;
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.55);
}

.teacher-onboarding-empty-title {
  font-size: 13px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.9);
}

.teacher-onboarding-empty-sub {
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.55);
}

.teacher-onboarding-video {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}

.teacher-onboarding-doc {
  display: grid;
  gap: 10px;
}

.teacher-onboarding-doc a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 850;
}

.teacher-onboarding-quiz {
  display: grid;
  gap: 12px;
}

.teacher-onboarding-quiz-q {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 10px;
}

.teacher-onboarding-quiz-q-title {
  font-size: 12px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.9);
}

.teacher-onboarding-quiz-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.7);
}

.teacher-onboarding-quiz-short {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 700;
  outline: none;
}

.teacher-onboarding-quiz-short:focus {
  border-color: rgba(89, 144, 189, 0.45);
  box-shadow: 0 0 0 3px rgba(89, 144, 189, 0.12);
}

@media (max-width: 960px) {
  .teacher-onboarding-grid {
    grid-template-columns: 1fr;
  }
}

.teacher-students-head {
  display: grid;
  gap: 6px;
}

.teacher-students-title {
  margin: 0;
  font-family: "Inter", "Plus Jakarta Sans", "Avenir Next", sans-serif;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: #ffffff;
}

.teacher-students-subtitle {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

.teacher-students-status {
  font-size: 13px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.58);
  min-height: 18px;
}

.teacher-students-status[data-tone="error"] {
  color: rgba(255, 118, 110, 0.96);
}

.teacher-students-status[data-tone="success"] {
  color: rgba(175, 255, 214, 0.9);
}

.teacher-students-card {
  padding: 0;
  overflow: hidden;
}

.teacher-students-list {
  display: grid;
}

.teacher-students-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 40px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
}

.teacher-students-row + .teacher-students-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.teacher-students-main {
  min-width: 0;
}

.teacher-students-empty,
.teacher-students-error {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.55);
}

.teacher-students-error {
  color: rgba(255, 118, 110, 0.96);
}

.teacher-students-drawer {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.teacher-students-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.teacher-students-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.teacher-students-drawer-inner {
  position: relative;
  width: min(560px, 94vw);
  height: 100vh;
  background: #0d1a2a;
  border-left: 0.5px solid rgba(89, 144, 189, 0.12);
  box-shadow: -24px 0 54px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.teacher-students-drawer.is-open .teacher-students-drawer-inner {
  transform: translateX(0);
}

.teacher-students-drawer-head {
  padding: 18px 18px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 0.5px solid rgba(89, 144, 189, 0.08);
}

.teacher-students-drawer-title {
  font-weight: 800;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.95);
}

.teacher-students-drawer-sub {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.4);
}

.teacher-students-drawer-close {
  border: 0;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
}

.teacher-students-drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 20px 20px;
  display: grid;
  gap: 14px;
}

.teacher-students-history-filters {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  width: fit-content;
}

.teacher-students-history-filter {
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.teacher-students-history-filter.is-active {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.92);
}

.teacher-students-history-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.teacher-students-summary-card {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 6px;
}

.teacher-students-summary-card span {
  font-size: 11px;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.42);
}

.teacher-students-summary-card strong {
  font-size: 13px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.92);
  font-variant-numeric: tabular-nums;
}

.teacher-students-history-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.teacher-students-info-row {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 6px;
}

.teacher-students-info-row span {
  font-size: 11px;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.42);
}

.teacher-students-info-row strong {
  font-size: 13px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.9);
  font-variant-numeric: tabular-nums;
}

.teacher-students-timeline {
  display: grid;
  gap: 12px;
}

.teacher-students-tl-item {
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 8px;
}

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

.teacher-students-tl-stamp {
  font-size: 12px;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.85);
}

.teacher-students-tl-alert {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(255, 78, 70, 0.22);
  background: rgba(255, 78, 70, 0.1);
  color: rgba(255, 78, 70, 0.95);
}

.teacher-students-tl-title {
  font-size: 13px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.9);
}

.teacher-students-tl-by,
.teacher-students-tl-details,
.teacher-students-tl-obs {
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.58);
}

.teacher-students-tl-avisos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.teacher-students-history-empty {
  font-size: 13px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.55);
  padding: 10px 0;
}

@media (max-width: 640px) {
  .teacher-students-history-summary,
  .teacher-students-history-info {
    grid-template-columns: 1fr;
  }
}

.admin-manage-shell {
  width: 100%;
  display: grid;
  gap: 14px;
}

.admin-manage-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.admin-manage-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-manage-title {
  margin: 0;
  font-family: "Inter", "Plus Jakarta Sans", "Avenir Next", sans-serif;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: #ffffff;
}

.admin-goals-card {
  padding: 16px 16px;
  overflow: hidden;
}

.admin-goals-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.admin-goals-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.admin-goals-sub {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.admin-goals-table {
  display: grid;
  width: 100%;
  min-width: 620px;
}

.admin-goals-row {
  display: grid;
  grid-template-columns: 140px 160px 120px 170px minmax(0, 1fr) 80px;
  gap: 10px;
  align-items: center;
  padding: 12px 10px;
  border-radius: 14px;
}

.admin-goals-row + .admin-goals-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-goals-row.is-head {
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-goals-row.is-head span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}

.admin-goals-competencia {
  font-size: 13px;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.9);
}

.admin-goals-value {
  font-size: 13px;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.86);
  font-variant-numeric: tabular-nums;
}

.admin-goals-updated {
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.5);
}

.admin-goals-by {
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-badge.is-current {
  border-color: rgba(255, 86, 79, 0.22);
  background: rgba(255, 86, 79, 0.08);
  color: rgba(255, 86, 79, 0.92);
}

.admin-badge.is-current::before {
  background: rgba(255, 86, 79, 0.92);
}

.admin-badge.is-future {
  border-color: rgba(89, 144, 189, 0.22);
  background: rgba(89, 144, 189, 0.08);
  color: rgba(89, 144, 189, 0.92);
}

.admin-badge.is-future::before {
  background: rgba(89, 144, 189, 0.92);
}

.admin-badge.is-past {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.6);
}

.admin-badge.is-past::before {
  background: rgba(255, 255, 255, 0.35);
}

.admin-goals-action {
  display: flex;
  justify-content: flex-end;
}

.admin-goals-edit {
  height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-weight: 700;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.admin-goals-edit:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 86, 79, 0.22);
}

.admin-goals-empty,
.admin-goals-error {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.55);
}

.admin-goals-error {
  color: rgba(255, 118, 110, 0.96);
}

@media (max-width: 840px) {
  .admin-goals-table {
    min-width: 0;
    overflow-x: auto;
  }
}

.admin-manage-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-status-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  flex: 0 0 auto;
}

.admin-status-tab {
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.admin-status-tab:hover,
.admin-status-tab:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
}

.admin-status-tab.is-active {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.92);
}

.admin-search {
  width: min(440px, 100%);
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.92);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.admin-search:focus {
  border-color: rgba(255, 86, 79, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 86, 79, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.admin-manage-status {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.58);
  min-height: 18px;
  text-align: right;
}

.admin-manage-status[data-tone="error"] {
  color: rgba(255, 118, 110, 0.96);
}

.admin-manage-status[data-tone="success"] {
  color: rgba(175, 255, 214, 0.9);
}

.admin-users-card {
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.admin-users-table {
  width: 100%;
  display: grid;
  min-width: 860px;
}

.admin-users-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1.1fr) minmax(0, 1.2fr) 140px 160px 52px;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}

.admin-users-row + .admin-users-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-users-head {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-users-head span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}

.admin-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 86, 79, 0.12);
  border: 1px solid rgba(255, 86, 79, 0.2);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-user-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-email {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-date {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.72);
}

.admin-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.admin-badge.is-active {
  border-color: rgba(175, 255, 214, 0.22);
  background: rgba(175, 255, 214, 0.08);
  color: rgba(175, 255, 214, 0.92);
}

.admin-badge.is-active::before {
  background: rgba(175, 255, 214, 0.92);
}

.admin-badge.is-inactive {
  border-color: rgba(255, 118, 110, 0.22);
  background: rgba(255, 118, 110, 0.08);
  color: rgba(255, 118, 110, 0.92);
}

.admin-badge.is-inactive::before {
  background: rgba(255, 118, 110, 0.92);
}

.admin-row-actions {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.admin-actions-trigger {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.admin-actions-trigger:hover,
.admin-actions-trigger:focus-visible {
  background: rgba(255, 86, 79, 0.12);
  border-color: rgba(255, 86, 79, 0.35);
  color: rgba(255, 255, 255, 0.92);
}

.admin-actions-trigger svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-actions-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 18, 28, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  display: none;
  z-index: 40;
}

.admin-actions-popover {
  position: fixed;
  min-width: 190px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 18, 28, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  display: grid;
  gap: 4px;
  z-index: 9999;
  animation: fade-dropdown 150ms ease both;
}

.admin-row-actions.is-open .admin-actions-menu {
  display: grid;
  gap: 4px;
  animation: fade-dropdown 150ms ease both;
}

.admin-action-item {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}

.admin-action-item:hover,
.admin-action-item:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

.admin-action-item.is-danger:hover,
.admin-action-item.is-danger:focus-visible {
  background: rgba(255, 86, 79, 0.14);
}

.admin-users-empty,
.admin-users-error {
  padding: 22px 16px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* Admin dashboard v2 (reference-driven layout). */
.admin-dashboard-v2 {
  width: 100%;
}

[data-dashboard-admin][hidden] {
  display: none !important;
}

.admin-dashboard-v2 * {
  box-sizing: border-box;
}

.admin-dashboard-v2 p {
  margin: 0;
}

.admin-dashboard-v2-surface {
  border-radius: 12px;
  padding: 32px 40px;
  background:
    radial-gradient(circle at 22% 10%, rgba(89, 144, 189, 0.14), transparent 46%),
    radial-gradient(circle at 82% 0%, rgba(255, 78, 70, 0.1), transparent 44%),
    linear-gradient(160deg, #0b1620 0%, #132436 34%, #162a40 55%, #132436 78%, #0b1620 100%);
  border: 1px solid rgba(89, 144, 189, 0.12);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  animation: rise-in 560ms ease both;
}

.admin-dashboard-v2-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.admin-dashboard-v2-eyebrow {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 4px;
}

.admin-dashboard-v2-greeting {
  color: #ffffff;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.admin-dashboard-v2-month {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 78, 70, 0.1);
  border: 1px solid rgba(255, 78, 70, 0.16);
}

.admin-dashboard-v2-month-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4e46;
}

.admin-dashboard-v2-month-label {
  color: #ff4e46;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.admin-dashboard-v2-section {
  margin-bottom: 24px;
}

.admin-dashboard-v2-section:last-child {
  margin-bottom: 0;
}

.admin-dashboard-v2-section-label {
  color: rgba(89, 144, 189, 0.5);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.admin-dashboard-v2-grid {
  display: grid;
  gap: 14px;
  align-items: start;
}

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

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

.admin-dashboard-v2-grid--ops {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
}

.admin-dashboard-v2-grid--spaced {
  margin-bottom: 24px;
}

.admin-dashboard-v2-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(89, 144, 189, 0.1);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.admin-dashboard-v2-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
  border-color: rgba(89, 144, 189, 0.16);
  background: rgba(255, 255, 255, 0.055);
}

.admin-dashboard-v2-card--p24 {
  padding: 24px;
}

.admin-dashboard-v2-card-label {
  color: rgba(89, 144, 189, 0.7);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.admin-dashboard-v2-card-value {
  color: #ffffff;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

.admin-dashboard-v2-card-meta {
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  margin: 6px 0 0;
}

.admin-dashboard-v2-empty {
  color: rgba(255, 255, 255, 0.38);
  font-size: 12px;
  line-height: 1.4;
}

.admin-dashboard-v2-empty--bar {
  height: 28px;
  margin-bottom: 16px;
  border-radius: 10px;
  border: 1px dashed rgba(89, 144, 189, 0.18);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.admin-dashboard-v2-empty--list {
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px dashed rgba(89, 144, 189, 0.14);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.admin-dashboard-v2-empty--table {
  padding: 10px 0 0;
  text-align: center;
}

.admin-dashboard-v2-card-meta--positive {
  color: #5dcaa5;
}

.admin-dashboard-v2-card-meta--negative {
  color: #ff4e46;
}

.admin-dashboard-v2-card--success {
  background: rgba(93, 202, 165, 0.06);
  border-color: rgba(93, 202, 165, 0.2);
}

.admin-dashboard-v2-card--success:hover {
  border-color: rgba(93, 202, 165, 0.26);
  background: rgba(93, 202, 165, 0.08);
}

.admin-dashboard-v2-card-label--success {
  color: rgba(93, 202, 165, 0.85);
}

.admin-dashboard-v2-card-value--success {
  color: #5dcaa5;
}

.admin-dashboard-v2-card-meta--success {
  color: rgba(93, 202, 165, 0.68);
}

.admin-dashboard-v2-card--accent {
  background: rgba(255, 78, 70, 0.08);
  border-color: rgba(255, 78, 70, 0.2);
}

.admin-dashboard-v2-card--accent:hover {
  border-color: rgba(255, 78, 70, 0.28);
  background: rgba(255, 78, 70, 0.1);
}

.admin-dashboard-v2-card-label--accent {
  color: rgba(255, 78, 70, 0.85);
}

.admin-dashboard-v2-card-value--accent {
  color: #ff4e46;
}

.admin-dashboard-v2-card-meta--accent {
  color: rgba(255, 255, 255, 0.4);
}

.admin-dashboard-v2-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.admin-dashboard-v2-card-head--tight {
  margin-bottom: 14px;
}

.admin-dashboard-v2-card-title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

/* Admin alerts (remarcações por professor). */
.admin-alerts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-alerts-title {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
}

.admin-alerts-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 78, 70, 0.14);
  border: 1px solid rgba(255, 78, 70, 0.22);
  color: #ff4e46;
  font-size: 12px;
  font-weight: 650;
}

.admin-alerts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-alerts-item {
  border-radius: 12px;
  border: 1px solid rgba(89, 144, 189, 0.1);
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 14px;
}

.admin-alerts-item-title {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 6px;
}

.admin-alerts-item-sub {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  line-height: 1.4;
}

.admin-dashboard-v2-card-title--spaced {
  margin-bottom: 16px;
}

.admin-dashboard-v2-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid rgba(89, 144, 189, 0.16);
  background: rgba(89, 144, 189, 0.08);
  color: rgba(89, 144, 189, 0.9);
  white-space: nowrap;
}

.admin-dashboard-v2-pill--success {
  border-color: rgba(93, 202, 165, 0.22);
  background: rgba(93, 202, 165, 0.1);
  color: #5dcaa5;
}

.admin-dashboard-v2-pill--danger {
  border-color: rgba(255, 78, 70, 0.22);
  background: rgba(255, 78, 70, 0.1);
  color: #ff4e46;
}

.admin-dashboard-v2-nps-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  height: 28px;
}

.admin-dashboard-v2-nps-segment {
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.admin-dashboard-v2-nps-segment:first-child {
  border-radius: 6px 0 0 6px;
}

.admin-dashboard-v2-nps-segment:last-child {
  border-radius: 0 6px 6px 0;
}

.admin-dashboard-v2-nps-segment--success {
  background: #5dcaa5;
  color: #04342c;
}

.admin-dashboard-v2-nps-segment--neutral {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

.admin-dashboard-v2-nps-segment--danger {
  background: #ff4e46;
  color: #ffffff;
}

.admin-dashboard-v2-nps-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.admin-dashboard-v2-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-dashboard-v2-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
}

.admin-dashboard-v2-legend-swatch--success {
  background: #5dcaa5;
}

.admin-dashboard-v2-legend-swatch--neutral {
  background: rgba(255, 255, 255, 0.15);
}

.admin-dashboard-v2-legend-swatch--danger {
  background: #ff4e46;
}

.admin-dashboard-v2-divider {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(89, 144, 189, 0.1);
}

.admin-dashboard-v2-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.admin-dashboard-v2-metric-row:last-child {
  margin-bottom: 0;
}

.admin-dashboard-v2-metric-row p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.admin-dashboard-v2-metric-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-dashboard-v2-metric-strong {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
}

.admin-dashboard-v2-metric-max {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
}

.admin-dashboard-v2-metric-plain {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

.admin-dashboard-v2-risk-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-dashboard-v2-risk-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-left: 3px solid rgba(255, 255, 255, 0.12);
}

.admin-dashboard-v2-risk-item--danger {
  background: rgba(255, 78, 70, 0.05);
  border-left-color: #ff4e46;
}

.admin-dashboard-v2-risk-item--warning {
  background: rgba(251, 191, 36, 0.04);
  border-left-color: #fbbf24;
}

.admin-dashboard-v2-risk-name {
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  margin: 0;
}

.admin-dashboard-v2-risk-meta {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  margin: 2px 0 0;
}

.admin-dashboard-v2-risk-tag {
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.admin-dashboard-v2-risk-tag--danger {
  background: rgba(255, 78, 70, 0.15);
  color: #ff4e46;
}

.admin-dashboard-v2-risk-tag--warning {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.admin-dashboard-v2-classes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-dashboard-v2-class-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  transition: background-color 160ms ease, border-color 160ms ease;
}

.admin-dashboard-v2-class-item:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(89, 144, 189, 0.14);
}

.admin-dashboard-v2-class-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-dashboard-v2-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
  flex: 0 0 32px;
}

.admin-dashboard-v2-avatar--blue {
  background: linear-gradient(135deg, #5990bd, #78aed4);
}

.admin-dashboard-v2-avatar--coral {
  background: linear-gradient(135deg, #ff4e46, #ff7a74);
}

.admin-dashboard-v2-avatar--navy {
  background: linear-gradient(135deg, #132436, #1e3a54);
}

.admin-dashboard-v2-class-name {
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  margin: 0;
}

.admin-dashboard-v2-class-meta {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  margin: 0;
}

.admin-dashboard-v2-time-pill {
  background: rgba(89, 144, 189, 0.15);
  padding: 3px 10px;
  border-radius: 6px;
  color: #5990bd;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.admin-dashboard-v2-lead-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.admin-dashboard-v2-ghost {
  border: 0;
  background: rgba(89, 144, 189, 0.1);
  padding: 5px 14px;
  border-radius: 6px;
  cursor: pointer;
  color: #5990bd;
  font-size: 12px;
  font-weight: 500;
  transition: background-color 150ms ease, transform 150ms ease;
}

.admin-dashboard-v2-ghost:hover,
.admin-dashboard-v2-ghost:focus-visible {
  background: rgba(89, 144, 189, 0.16);
  transform: translateY(-1px);
}

.admin-dashboard-v2-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-dashboard-v2-table-row {
  display: grid;
  grid-template-columns: 1.8fr 2fr 1fr 0.8fr;
  align-items: center;
  gap: 0;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.admin-dashboard-v2-table-row:last-child {
  border-bottom: 0;
}

.admin-dashboard-v2-table-head {
  border-bottom: 1px solid rgba(89, 144, 189, 0.08);
}

.admin-dashboard-v2-table-head span {
  color: rgba(89, 144, 189, 0.5);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.admin-dashboard-v2-table-primary {
  color: #ffffff;
  font-size: 13px;
}

.admin-dashboard-v2-table-muted {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}

.admin-dashboard-v2-table-dim {
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
}

.admin-dashboard-v2-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  width: fit-content;
}

.admin-dashboard-v2-tag--danger {
  background: rgba(255, 78, 70, 0.12);
  color: #ff4e46;
}

.admin-dashboard-v2-tag--info {
  background: rgba(89, 144, 189, 0.12);
  color: #5990bd;
}

.admin-dashboard-v2-tag--success {
  background: rgba(93, 202, 165, 0.12);
  color: #5dcaa5;
}

@media (max-width: 1100px) {
  .admin-dashboard-v2-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-dashboard-v2-grid--ops {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .admin-dashboard-v2-surface {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .admin-dashboard-v2-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 22px;
  }

  .admin-dashboard-v2-greeting {
    font-size: 20px;
  }

  .admin-dashboard-v2-grid--4,
  .admin-dashboard-v2-grid--2 {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-v2-table {
    min-width: 520px;
  }

  .admin-dashboard-v2-card[aria-label="Últimos leads"] {
    overflow-x: auto;
  }
}

.teacher-calendar-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  width: 100%;
  min-height: calc(100vh - 120px);
  position: relative;
  isolation: isolate;
}

.teacher-calendar-left {
  grid-column: 1;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 16px 14px;
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.teacher-calendar-actions {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 3;
}

.teacher-calendar-button {
  width: 100%;
  min-height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    transform 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease;
}

.teacher-calendar-button-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.teacher-calendar-button svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.teacher-calendar-button-primary {
  background: #FF4E46;
  border-color: rgba(255, 78, 70, 0.65);
  color: #ffffff;
}

.teacher-calendar-button-primary:hover,
.teacher-calendar-button-primary:focus-visible {
  background: #e03e36;
  transform: translateY(-1px);
}

.teacher-calendar-button-outline {
  justify-content: flex-start;
  padding: 0 12px;
  background: transparent;
  border-color: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.teacher-calendar-button-outline:hover,
.teacher-calendar-button-outline:focus-visible {
  background: rgba(89, 144, 189, 0.08);
  border-color: rgba(89, 144, 189, 0.22);
  color: rgba(255, 255, 255, 0.86);
  transform: translateY(-1px);
}

.teacher-calendar-button-outline span:last-child {
  flex: 1;
  min-width: 0;
  text-align: left;
  white-space: normal;
  line-height: 1.2;
}

.teacher-mini-cal {
  display: grid;
  gap: 10px;
}

.teacher-mini-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.teacher-mini-cal-title {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.teacher-mini-cal-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.teacher-mini-cal-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    color 150ms ease;
}

.teacher-mini-cal-nav-btn:hover,
.teacher-mini-cal-nav-btn:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
}

.teacher-mini-cal-nav-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.teacher-mini-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 28px);
  gap: 6px;
  justify-content: start;
}

.teacher-mini-cal-dow {
  width: 28px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.teacher-mini-cal-day {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.teacher-mini-cal-day.is-outside {
  opacity: 0.4;
}

.teacher-mini-cal-day:hover,
.teacher-mini-cal-day:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.teacher-mini-cal-day.is-today {
  background: #e8453c;
  color: #ffffff;
}

.teacher-mini-cal-day.is-selected {
  background: rgba(255, 255, 255, 0.34);
  color: #0d0f12;
}

.teacher-cal-list {
  display: grid;
  gap: 10px;
}

.teacher-cal-list-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.44);
}

.teacher-cal-list-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 600;
}

.teacher-cal-check {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(232, 69, 60, 0.5);
  background: rgba(232, 69, 60, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.teacher-cal-check.is-checked {
  background: rgba(232, 69, 60, 0.92);
  border-color: rgba(232, 69, 60, 0.92);
}

.teacher-calendar-main {
  grid-column: 2;
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.teacher-cal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 2px 0;
}

.teacher-cal-topbar-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.teacher-cal-today {
  height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.teacher-cal-today:hover,
.teacher-cal-today:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.teacher-cal-arrows {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.teacher-cal-arrow {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: rgba(255, 255, 255, 0.66);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.teacher-cal-arrow:hover,
.teacher-cal-arrow:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
}

.teacher-cal-arrow svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.teacher-cal-date {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teacher-cal-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.teacher-cal-view-btn {
  height: 30px;
  padding: 0 12px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.teacher-cal-view-btn.is-active {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.92);
}

.teacher-cal-view-btn:hover,
.teacher-cal-view-btn:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
}

.teacher-cal-tz {
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
  font-weight: 600;
  padding-left: 2px;
}

.teacher-cal-viewport {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  min-height: 560px;
}

.teacher-cal-day,
.teacher-cal-week {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  height: 100%;
}

.teacher-cal-day.is-multi {
  /* Grid columns are set inline by JS (60px + one column per selected agenda). */
  grid-template-rows: auto 1fr;
}

.teacher-cal-day.is-multi .teacher-cal-timecol {
  grid-column: 1;
}

.teacher-cal-day.is-multi .teacher-cal-grid {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 0;
}

.teacher-cal-day.is-multi .teacher-cal-head-cell {
  min-width: 0;
}

.teacher-cal-day.is-multi .teacher-cal-head-cell:not(:first-child) {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.teacher-cal-agenda-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teacher-cal-agenda-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.18);
}

.teacher-cal-week {
  grid-template-rows: auto 1fr;
}

.teacher-cal-week-head {
  grid-column: 1 / -1;
}

.teacher-cal-week .teacher-cal-timecol {
  grid-column: 1;
  grid-row: 2;
}

.teacher-cal-week .teacher-cal-week-cols {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
}

.teacher-cal-month {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}

.teacher-cal-head-cell {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(13, 15, 18, 0.35);
}

.teacher-cal-day-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.teacher-cal-day-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.teacher-cal-day-num.is-today {
  background: #e8453c;
  border-color: #e8453c;
  color: #ffffff;
}

.teacher-cal-timecol {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(13, 15, 18, 0.25);
}

.teacher-cal-time {
  height: 56px;
  padding-right: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.teacher-cal-grid {
  position: relative;
}

.teacher-cal-hour-row {
  height: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.teacher-cal-offhours {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.teacher-cal-offhours-seg,
.teacher-cal-offhours-top,
.teacher-cal-offhours-bottom {
  position: absolute;
  left: 0;
  right: 0;
  background: rgba(13, 15, 18, 0.38);
}

.calendar-slot.is-unavailable {
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 4px,
    rgba(255, 255, 255, 0.03) 4px,
    rgba(255, 255, 255, 0.03) 8px
  );
  background-color: rgba(0, 0, 0, 0.25);
  cursor: not-allowed;
  pointer-events: none;
  position: relative;
}

.calendar-slot-tooltip {
  position: fixed;
  z-index: 9999;
  transform: translate3d(0, 0, 0);
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(13, 15, 18, 0.92);
  border: 1px solid rgba(89, 144, 189, 0.18);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.teacher-log-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.teacher-log-card {
  padding: 18px;
}

.teacher-log-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.teacher-log-help {
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  font-weight: 600;
}

.teacher-log-status {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 700;
}

.teacher-log-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.teacher-log-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 0.5px solid rgba(89, 144, 189, 0.08);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.teacher-log-item:hover,
.teacher-log-item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(89, 144, 189, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.teacher-log-item.is-future {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.teacher-log-item-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.teacher-log-item-top {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.teacher-log-item-top span:first-child {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 700;
}

.teacher-log-item-sub {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teacher-log-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.8);
}

.teacher-log-pill.is-open {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.22);
  color: #FBBF24;
}

.teacher-log-pill.is-done {
  background: rgba(93, 202, 165, 0.12);
  border-color: rgba(93, 202, 165, 0.22);
  color: #5DCAA5;
}

.teacher-log-pill.is-future {
  background: rgba(89, 144, 189, 0.12);
  border-color: rgba(89, 144, 189, 0.22);
  color: #5990BD;
}

.teacher-log-empty,
.teacher-log-error {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 700;
}

.ped-log-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 14px;
}

.ped-log-status {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.ped-autosave {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
}

.ped-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ped-section-title {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(89, 144, 189, 0.55);
  margin: 0 0 10px;
}

.ped-radio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ped-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 0.5px solid rgba(89, 144, 189, 0.1);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ped-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ped-chip {
  border: 0.5px solid rgba(89, 144, 189, 0.14);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.ped-chip.is-active {
  border-color: rgba(93, 202, 165, 0.35);
  background: rgba(93, 202, 165, 0.1);
  color: #5DCAA5;
}

.ped-stars {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ped-star {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 0.5px solid rgba(89, 144, 189, 0.14);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.ped-star:hover {
  transform: translateY(-1px);
}

.ped-star.is-active {
  color: #FBBF24;
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}

@media (max-width: 768px) {
  .teacher-log-shell {
    padding-inline: 16px;
  }
  .teacher-log-toolbar {
    flex-direction: column;
  }
  .ped-radio-grid {
    grid-template-columns: 1fr;
  }
}

.teacher-cal-now-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(232, 69, 60, 0.9);
  z-index: 4;
  pointer-events: none;
}

.teacher-cal-now-dot {
  position: absolute;
  left: -4px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(232, 69, 60, 0.95);
  box-shadow: 0 0 0 3px rgba(232, 69, 60, 0.18);
}

.teacher-cal-events-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.teacher-cal-selection {
  position: absolute;
  left: 8px;
  right: 8px;
  border-radius: 10px;
  background: rgba(232, 69, 60, 0.5);
  border: 1px solid rgba(232, 69, 60, 0.98);
  z-index: 5;
  pointer-events: none;
  padding: 6px 8px;
  color: #ffffff;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
}

.teacher-cal-selection-time {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.teacher-cal-event {
  position: absolute;
  border-radius: 10px;
  padding: 8px 10px;
  overflow: hidden;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  border: 0;
  text-align: left;
  cursor: pointer;
}

.teacher-cal-event:focus-visible {
  outline: 2px solid rgba(232, 69, 60, 0.35);
  outline-offset: 2px;
}

.teacher-cal-month-pill {
  border: 0;
  text-align: left;
  cursor: pointer;
}

.teacher-cal-month-pill:focus-visible {
  outline: 2px solid rgba(232, 69, 60, 0.35);
  outline-offset: 2px;
}

body.is-cal-dragging {
  user-select: none;
}

body.is-cal-dragging .teacher-cal-grid {
  cursor: ns-resize;
}

.teacher-cal-event .teacher-cal-event-title {
  display: block;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teacher-cal-event .teacher-cal-event-time {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
}

.teacher-cal-event.is-lesson {
  background: rgba(232, 69, 60, 0.92);
}

.teacher-cal-event.is-manual {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.teacher-cal-week-cols {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.teacher-cal-week-head {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
}

.teacher-cal-week-head-days {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.teacher-cal-week-dayhead {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(13, 15, 18, 0.35);
}

.teacher-cal-week-dayhead:first-child {
  border-left: 0;
}

.teacher-cal-week-daylabel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.teacher-cal-week-daynum {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.teacher-cal-week-daynum.is-today {
  background: #e8453c;
  border-color: #e8453c;
  color: #ffffff;
}

.teacher-cal-week-col {
  position: relative;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.teacher-cal-week-col:first-child {
  border-left: 0;
}

.teacher-cal-month-head {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: rgba(13, 15, 18, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.teacher-cal-month-dow {
  padding: 10px 10px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.teacher-cal-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: minmax(120px, 1fr);
}

.teacher-cal-month-cell {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 10px;
  overflow: hidden;
}

.teacher-cal-month-cell:nth-child(7n) {
  border-right: 0;
}

.teacher-cal-month-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 700;
}

.teacher-cal-month-date.is-today {
  background: #e8453c;
  color: #ffffff;
}

.teacher-cal-month-date.is-outside {
  opacity: 0.4;
}

.teacher-cal-month-pill {
  margin-top: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(232, 69, 60, 0.18);
  border: 1px solid rgba(232, 69, 60, 0.24);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teacher-cal-month-pill.is-manual {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.teacher-cal-month-more {
  margin-top: 8px;
  border: 0;
  background: transparent;
  padding: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.teacher-cal-month-more:hover,
.teacher-cal-month-more:focus-visible {
  color: rgba(255, 255, 255, 0.84);
}

.live-scheduled-panel {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #151820;
  box-shadow: 0 2px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.live-scheduled-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.live-scheduled-title {
  margin: 0;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-scheduled-body {
  padding: 14px 16px 16px;
}

.live-scheduled-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.live-scheduled-item {
  padding: 12px 12px 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}

.live-scheduled-content {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 4px;
}

.live-scheduled-cancel {
  flex: 0 0 auto;
  margin-top: -2px;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(138, 144, 160, 0.85);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.live-scheduled-cancel:hover,
.live-scheduled-cancel:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  transform: translateY(-1px);
}

.live-scheduled-cancel:focus-visible {
  outline: 2px solid rgba(232, 69, 60, 0.35);
  outline-offset: 2px;
}

.live-scheduled-item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.live-scheduled-item.is-next {
  border-color: rgba(232, 69, 60, 0.22);
  background: rgba(232, 69, 60, 0.06);
}

.live-scheduled-item.is-next::before {
  background: rgba(232, 69, 60, 0.85);
  box-shadow: 0 0 0 3px rgba(232, 69, 60, 0.18);
}

.live-scheduled-when {
  padding-left: 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.live-scheduled-meta {
  padding-left: 10px;
  color: #8a90a0;
  font-size: 12px;
  font-weight: 600;
}

.live-scheduled-empty {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: #5a6070;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
}

.live-scheduled-empty[hidden] {
  display: none !important;
}

.live-booking-panel-header {
  padding: 12px 24px 8px !important;
  margin: 0 !important;
}

.live-credits-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.live-credits-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.live-credit-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.live-credit-dot.is-filled {
  background: rgba(232, 69, 60, 0.95);
  box-shadow: 0 0 0 3px rgba(232, 69, 60, 0.18);
}

.live-credits-caption {
  color: #8a90a0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.live-week-control {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.live-week-range {
  margin-left: 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}

.live-scheduler-grid {
  padding: 0 24px 20px !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 0 !important;
}

.live-day-column {
  display: grid !important;
  gap: 0 !important;
  min-width: 0 !important;
  padding: 6px 10px 0 !important;
  border-radius: 14px !important;
  border-top: 2px solid transparent !important;
  background: transparent !important;
  margin: 0 !important;
}

.live-day-column.is-today {
  background: rgba(232, 69, 60, 0.04);
  border-top-color: rgba(232, 69, 60, 0.3);
}

.live-day-head {
  display: grid !important;
  gap: 4px !important;
  justify-items: start !important;
  margin-bottom: 12px !important;
  padding: 0 !important;
}

.live-day-weekday {
  color: #5a6070;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-day-date {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.live-day-column.is-today .live-day-date {
  background: #e8453c;
  border-color: #e8453c;
  color: #ffffff;
  font-weight: 700;
  box-shadow: none;
}

.live-day-slots {
  display: grid;
  gap: 8px;
}

.live-day-empty {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: #5a6070;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
}

.live-day-empty[hidden] {
  display: none !important;
}

.scheduler-slot-row {
  min-height: 44px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  transform: translateZ(0);
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
}

.scheduler-slot-row:not(.is-selected):hover,
.scheduler-slot-row:not(.is-selected):focus-within {
  background: rgba(232, 69, 60, 0.12);
  border-color: rgba(232, 69, 60, 0.4);
  transform: translateY(-1px);
}

.scheduler-slot-time,
.scheduler-slot-advance {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #c8cdd8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  outline: none;
}

.scheduler-slot-row:not(.is-selected):hover .scheduler-slot-time,
.scheduler-slot-row:not(.is-selected):focus-within .scheduler-slot-time {
  color: #ffffff;
}

.scheduler-slot-time {
  flex: 1 1 100%;
  flex-basis: 100%;
  transition:
    flex-basis 260ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 220ms ease,
    color 220ms ease;
}

.scheduler-slot-advance {
  flex: 0 0 0%;
  flex-basis: 0%;
  max-width: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(10px);
  background: #e8453c;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition:
    flex-basis 260ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 160ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 150ms ease;
}

.scheduler-slot-row.is-selected {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.1);
  transform: none;
}

.scheduler-slot-row.is-selected .scheduler-slot-time {
  flex: 0 0 50%;
  flex-basis: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  cursor: default;
}

.scheduler-slot-row.is-selected .scheduler-slot-advance {
  flex: 0 0 50%;
  flex-basis: 50%;
  max-width: none;
  padding: 0 12px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.scheduler-slot-row.is-selected .scheduler-slot-advance:not(:disabled):hover,
.scheduler-slot-row.is-selected .scheduler-slot-advance:not(:disabled):focus-visible {
  background: #cc3530;
}

.scheduler-slot-advance:disabled {
  cursor: default;
  background: rgba(232, 69, 60, 0.55);
}

.scheduler-slot-time:focus-visible,
.scheduler-slot-advance:focus-visible {
  outline: 2px solid rgba(232, 69, 60, 0.45);
  outline-offset: -2px;
}

.live-confirm-bar {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #1a1d28;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
  animation: live-confirm-in 200ms ease both;
}

.live-confirm-summary {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.live-confirm-button {
  min-height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  background: #e8453c;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition:
    background-color 150ms ease,
    transform 150ms ease;
}

.live-confirm-button:hover,
.live-confirm-button:focus-visible {
  background: #cc3530;
  transform: translateY(-1px);
}

.live-confirm-bar[hidden] {
  display: none;
}

@keyframes live-confirm-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1280px) {
  .schedule-context-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .schedule-context-copy {
    text-align: left;
  }

  .live-schedule-layout {
    grid-template-columns: 1fr;
  }

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

  .teacher-insights-grid {
    grid-template-columns: 1fr;
  }

  .teacher-calendar-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .teacher-calendar-left,
  .teacher-calendar-main {
    grid-column: auto;
  }

  /* teacher-secondary-grid removed */
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(13, 15, 18, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  /* Prevent tall dialogs from being cut off: top-align + scroll the overlay when needed. */
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  animation: modal-fade-in 160ms ease both;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-dialog {
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #151820;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modal-pop-in 200ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.modal-header {
  padding: 16px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
}

.modal-title {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-right: auto;
}

.modal-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.modal-close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateY(-1px);
}

.modal-body {
  padding: 14px 18px 4px;
  color: #8a90a0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.65;
  flex: 1 1 auto;
  min-height: 0; /* allow children to scroll within flex column */
  overflow-y: auto;
}

.role-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.role-option {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.role-option:hover,
.role-option:focus-visible {
  background: rgba(232, 69, 60, 0.1);
  border-color: rgba(232, 69, 60, 0.35);
  color: #ffffff;
  transform: translateY(-1px);
}

.role-option.is-active {
  background: rgba(232, 69, 60, 0.14);
  border-color: rgba(232, 69, 60, 0.42);
  color: #ffffff;
}

.role-option:focus-visible {
  outline: 2px solid rgba(232, 69, 60, 0.35);
  outline-offset: 2px;
}

.modal-body strong {
  color: #ffffff;
  font-weight: 800;
}

.modal-form {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.modal-help {
  color: #8a90a0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

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

.ce-repeat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  user-select: none;
}

.ce-repeat-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #FF4E46;
}

.ce-repeat-config {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(89, 144, 189, 0.14);
  background: rgba(255, 255, 255, 0.02);
}

.ce-repeat-config[hidden],
.ce-repeat-custom[hidden],
.ce-repeat-day-times[hidden] {
  display: none !important;
}

.ce-repeat-options {
  display: grid;
  gap: 8px;
}

.ce-repeat-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.ce-repeat-option:hover {
  border-color: rgba(89, 144, 189, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.ce-repeat-option input {
  width: 16px;
  height: 16px;
  accent-color: #FF4E46;
}

.ce-repeat-custom {
  display: grid;
  gap: 10px;
}

.ce-repeat-hint {
  color: rgba(89, 144, 189, 0.65);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ce-repeat-days {
  display: grid;
  gap: 10px;
}

.ce-repeat-day {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 12px;
  display: grid;
  gap: 10px;
}

.ce-repeat-day-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  font-size: 13px;
}

.ce-repeat-day-check input {
  width: 16px;
  height: 16px;
  accent-color: #FF4E46;
}

.ce-repeat-day-times {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.modal-field {
  display: grid;
  gap: 6px;
}

.modal-field > span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal-input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.modal-input:focus {
  outline: 2px solid rgba(232, 69, 60, 0.35);
  outline-offset: 2px;
}

.modal-input.is-error {
  border-color: rgba(232, 69, 60, 0.7);
}

.modal-inline-error {
  grid-column: 1 / -1;
  margin-top: 6px;
  color: rgba(232, 69, 60, 0.92);
  font-size: 12px;
  font-weight: 700;
}

.modal-work-actions {
  display: inline-flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 6px;
}

.modal-icon-button {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.44);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 150ms ease, transform 150ms ease, background-color 150ms ease;
}

.modal-icon-button svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal-icon-button:hover,
.modal-icon-button:focus-visible {
  color: rgba(232, 69, 60, 0.95);
  background: rgba(232, 69, 60, 0.08);
  transform: translateY(-1px);
}

.modal-icon-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.28);
}

.modal-icon-button.is-danger:hover,
.modal-icon-button.is-danger:focus-visible {
  color: rgba(232, 69, 60, 0.95);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.modal-work-grid {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.modal-work-row {
  display: grid;
  grid-template-columns: 1fr 110px 18px 110px 64px;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.modal-work-row.is-disabled {
  background: rgba(255, 255, 255, 0.015);
  border-color: rgba(255, 255, 255, 0.04);
}

.modal-work-unavailable {
  grid-column: 2 / -1;
  align-self: center;
  justify-self: end;
  color: rgba(255, 255, 255, 0.36);
  font-size: 12px;
  font-weight: 700;
}

.modal-work-day {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 700;
}

.modal-work-day input {
  width: 14px;
  height: 14px;
  accent-color: #e8453c;
}

.modal-work-sep {
  color: rgba(255, 255, 255, 0.42);
  font-weight: 800;
  text-align: center;
}

.modal-input-time {
  padding: 0 10px;
}

.modal-textarea {
  width: 100%;
  min-height: 84px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  resize: vertical;
}

.modal-textarea:focus {
  outline: 2px solid rgba(232, 69, 60, 0.35);
  outline-offset: 2px;
}

.guest-field {
  position: relative;
  display: grid;
  gap: 8px;
}

.guest-chipbox {
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.guest-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.guest-chip button {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 150ms ease, background-color 150ms ease;
}

.guest-chip button:hover,
.guest-chip button:focus-visible {
  color: rgba(232, 69, 60, 0.95);
  background: rgba(232, 69, 60, 0.12);
}

.guest-search {
  flex: 1 1 160px;
  min-width: 140px;
  border: 0;
  background: transparent;
  padding: 6px 6px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.guest-search:focus {
  outline: none;
}

.guest-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #151820;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  z-index: 5;
}

.guest-option {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.guest-option:hover,
.guest-option:focus-visible {
  background: rgba(232, 69, 60, 0.08);
}

.guest-option .ranking-avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 12px;
}

.guest-option strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guest-option span {
  display: block;
  color: #8a90a0;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.guest-empty {
  padding: 12px;
  color: #8a90a0;
  font-size: 12px;
  font-weight: 700;
}

.upload-zone {
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.upload-zone:hover,
.upload-zone:focus-visible {
  border-color: rgba(232, 69, 60, 0.35);
  background: rgba(232, 69, 60, 0.06);
}

.upload-zone.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.upload-zone.is-disabled:hover,
.upload-zone.is-disabled:focus-visible {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
}

.upload-zone strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.upload-zone span {
  display: block;
  color: #8a90a0;
  font-size: 12px;
  font-weight: 700;
}

.upload-filelist {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.upload-file {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.upload-file-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 69, 60, 0.14);
  color: rgba(255, 216, 211, 0.95);
}

.upload-file-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-file strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-file span {
  display: block;
  color: #8a90a0;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.upload-file-remove {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 150ms ease, background-color 150ms ease;
}

.upload-file-remove:hover,
.upload-file-remove:focus-visible {
  color: rgba(232, 69, 60, 0.95);
  background: rgba(232, 69, 60, 0.12);
}

.modal-event-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 6px 0 12px;
}

.modal-event-meta {
  color: #8a90a0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.modal-event-section {
  margin-top: 14px;
}

.modal-event-section h4 {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal-guest-list {
  display: grid;
  gap: 8px;
}

.modal-guest-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.modal-guest-row .ranking-avatar {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  font-size: 12px;
}

.modal-doc-list {
  display: grid;
  gap: 8px;
}

.modal-doc-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.modal-doc-row a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  text-decoration: none;
}

.modal-doc-row a:hover,
.modal-doc-row a:focus-visible {
  color: rgba(232, 69, 60, 0.95);
}

.modal-doc-row span {
  display: block;
  color: #8a90a0;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.modal-doc-row .upload-file-icon {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.84);
}

.modal-list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 10px;
}

.modal-list-row span {
  color: #8a90a0;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.modal-actions {
  padding: 14px 18px 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #151820;
}

body.is-modal-open {
  overflow: hidden;
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-trash {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.46);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.modal-trash svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal-trash:hover,
.modal-trash:focus-visible {
  background: rgba(232, 69, 60, 0.08);
  color: rgba(232, 69, 60, 0.95);
  transform: translateY(-1px);
}

.modal-trash[hidden] {
  display: none;
}

@keyframes modal-pop-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 820px) {
  .schedule-page-header {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .header-plan--schedule {
    justify-items: start;
    text-align: left;
  }

  .header-plan--schedule .header-plan-row {
    justify-content: flex-start;
  }

  .live-booking-panel-header,
  .live-scheduler-grid,
  .live-confirm-bar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .live-confirm-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .teacher-comment-form {
    grid-template-columns: 1fr;
  }

  .teacher-comment-send {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .schedule-page-title {
    font-size: 24px;
  }

  .live-week-range {
    width: 100%;
  }

  .live-scheduler-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .role-picker {
    grid-template-columns: 1fr;
  }
}

/* Auth pages */
.auth-shell {
  position: relative;
  min-height: 100vh;
  padding: 32px;
  display: none;
  flex-direction: column;
  gap: 28px;
}

.auth-top {
  position: absolute;
  top: 26px;
  left: 26px;
  z-index: 2;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.auth-brand-logo {
  width: auto;
  height: 34px;
  opacity: 0.92;
}

.auth-center {
  width: min(920px, 100%);
  margin: auto;
  text-align: center;
  padding-top: 28px;
}

.auth-title {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.auth-subtitle {
  margin: 12px auto 0;
  max-width: 480px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.auth-role-grid {
  margin: 22px auto 0;
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.auth-role-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  cursor: pointer;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.auth-role-card strong {
  display: block;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background-clip: text;
  -webkit-background-clip: text;
  white-space: nowrap;
}

.auth-role-sub {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.auth-role-sub[hidden] {
  display: none;
}

.auth-role-card:hover,
.auth-role-card:focus-visible {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-2px);
}

.auth-role-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.92);
}

.auth-role-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-role-card[data-enter-role="student"] strong {
  background-image: linear-gradient(90deg, rgba(96, 165, 250, 1), rgba(160, 188, 255, 1));
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.auth-role-card[data-enter-role="teacher"] strong {
  background-image: linear-gradient(90deg, rgba(255, 86, 79, 1), rgba(255, 175, 160, 1));
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.auth-role-card[data-enter-role="admin"] strong {
  background-image: linear-gradient(90deg, rgba(34, 197, 94, 1), rgba(134, 239, 172, 1));
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: clamp(22px, 2.2vw, 26px);
  letter-spacing: 0.06em;
}

.auth-role-card[data-enter-role="growth"] strong {
  background-image: linear-gradient(90deg, rgba(89, 144, 189, 1), rgba(255, 78, 70, 1));
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.auth-role-card[data-enter-role="student"] .auth-role-icon {
  background: rgba(59, 130, 246, 0.15);
  color: rgba(147, 197, 253, 0.95);
}

.auth-role-card[data-enter-role="teacher"] .auth-role-icon {
  background: rgba(239, 68, 68, 0.15);
  color: rgba(255, 86, 79, 0.98);
}

.auth-role-card[data-enter-role="admin"] .auth-role-icon {
  background: rgba(34, 197, 94, 0.15);
  color: rgba(134, 239, 172, 0.92);
}

.auth-shell-login {
  padding: 0;
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.auth-login-left {
  background: var(--accent);
  color: #fff;
  padding: 42px 44px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.auth-login-logo-img {
  display: block;
  width: clamp(150px, 15vw, 205px);
  height: auto;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
  opacity: 1;
}

.auth-login-copy {
  margin-top: 72px;
  max-width: 420px;
}

.auth-login-phrase {
  margin: 0;
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.auth-login-sub {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.72;
}

.auth-login-footer-shape {
  position: absolute;
  inset: auto -120px -140px auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(1px);
  opacity: 0.55;
}

.auth-login-right {
  background: rgba(7, 9, 16, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
}

.auth-login-form-shell {
  width: min(420px, 100%);
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  transition: color 140ms ease;
}

.auth-back:hover,
.auth-back:focus-visible {
  color: var(--text-main);
}

.auth-login-badge {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  font-size: 13px;
}

.auth-form {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.auth-field span {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.auth-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.auth-input:focus {
  border-color: rgba(255, 86, 79, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 86, 79, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.auth-input.is-error {
  border-color: rgba(232, 69, 60, 0.7);
  box-shadow: 0 0 0 4px rgba(232, 69, 60, 0.14);
}

.auth-password {
  position: relative;
}

.auth-password .auth-input {
  padding-right: 42px;
}

.auth-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    background 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.auth-eye svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-eye:hover,
.auth-eye:focus-visible {
  background: rgba(255, 86, 79, 0.12);
  color: rgba(255, 255, 255, 0.92);
  transform: translateY(-50%) scale(1.02);
}

.auth-inline-error {
  margin-top: 8px;
  color: rgba(255, 118, 110, 0.95);
  font-size: 12px;
}

.auth-inline-hint {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
}

.admin-create-textarea {
  height: auto;
  min-height: 92px;
  padding: 12px 14px;
  line-height: 1.4;
  resize: vertical;
}

.auth-forgot {
  display: flex;
  justify-content: flex-end;
}

.auth-forgot a {
  font-size: 13px;
  color: var(--text-muted);
}

.auth-forgot a:hover,
.auth-forgot a:focus-visible {
  color: var(--text-main);
  text-decoration: underline;
}

.auth-submit {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 86, 79, 0.6);
  background: linear-gradient(180deg, rgba(255, 86, 79, 1) 0%, rgba(232, 69, 60, 1) 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition:
    transform 160ms ease,
    filter 160ms ease;
}

.auth-submit:hover,
.auth-submit:focus-visible {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-spinner {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: rgba(255, 255, 255, 0.95);
  animation: auth-spin 0.8s linear infinite;
}

@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}

.auth-form-error {
  margin-top: 6px;
  color: rgba(255, 118, 110, 0.92);
  font-size: 13px;
}

.auth-form-success {
  margin-top: 6px;
  color: rgba(170, 255, 214, 0.92);
  font-size: 13px;
}

.auth-reset-back {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  justify-self: start;
  width: max-content;
}

.auth-reset-head {
  display: grid;
  gap: 6px;
}

.auth-reset-title {
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.auth-reset-sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.66);
}

.auth-support {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.4;
}

.auth-support a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .auth-shell-login {
    grid-template-columns: 1fr;
  }

  .auth-login-left {
    padding: 32px 28px;
  }

  .auth-login-copy {
    margin-top: 44px;
  }
}

@media (max-width: 720px) {
  .auth-shell {
    padding: 24px;
  }

  .auth-top {
    top: 18px;
    left: 18px;
  }

  .auth-role-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Landing Page (Public v2)
   ========================= */

body[data-page="landing"] {
  --lp-bg: #132436;
  --lp-blue: #5990bd;
  --accent: #ff4e46;
  --accent-dark: #e03e36;
  --hero-glow: rgba(255, 78, 70, 0.18);
  --lp-font-display: "Gilroy", "Inter", "Poppins", "Plus Jakarta Sans", system-ui, sans-serif;
  --lp-font-body: "Comfortaa", system-ui, sans-serif;
  font-family: var(--lp-font-body);
  background:
    linear-gradient(to top, rgba(255, 78, 70, 0.03) 0, transparent 200px),
    radial-gradient(circle at 50% 20%, rgba(89, 144, 189, 0.07) 0%, rgba(255, 78, 70, 0.03) 50%, transparent 70%),
    linear-gradient(160deg, #0b1620 0%, #132436 30%, #162a40 50%, #132436 75%, #0b1620 100%);
}

body[data-page="landing"] .page-glow {
  display: none;
}

.lp-container {
  width: min(1180px, calc(100vw - 56px));
  margin: 0 auto;
}

.lp-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  height: 74px;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 0.5px solid rgba(89, 144, 189, 0.1);
  transition: background-color 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.lp-nav.is-scrolled {
  background: rgba(19, 36, 54, 0.86);
  border-bottom-color: rgba(89, 144, 189, 0.1);
  backdrop-filter: blur(12px);
}

.lp-nav-inner {
  width: min(1180px, calc(100vw - 56px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.lp-brand-mark {
  width: 28px;
  height: 30px;
  object-fit: cover;
  object-position: 58% center;
  flex: 0 0 auto;
}

.lp-brand-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  font-family: var(--lp-font-display);
}

.lp-nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 28px);
}

.lp-nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  transition: color 200ms ease;
  white-space: nowrap;
  font-family: var(--lp-font-body);
}

.lp-nav-links a:hover,
.lp-nav-links a:focus-visible {
  color: rgba(255, 255, 255, 0.9);
  outline: none;
}

.lp-nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.lp-nav-toggle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0.5px solid rgba(89, 144, 189, 0.18);
  background: rgba(89, 144, 189, 0.06);
  color: rgba(255, 255, 255, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.lp-nav-toggle:hover,
.lp-nav-toggle:focus-visible {
  transform: translateY(-1px);
  background: rgba(89, 144, 189, 0.1);
  border-color: rgba(255, 78, 70, 0.28);
  outline: none;
}

.lp-nav-toggle-icon {
  width: 18px;
  height: 12px;
  position: relative;
  display: block;
}

.lp-nav-toggle-icon::before,
.lp-nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
}

.lp-nav-toggle-icon::before {
  top: 0;
  box-shadow: 0 5px 0 rgba(255, 255, 255, 0.86);
}

.lp-nav-toggle-icon::after {
  bottom: 0;
}

.lp-mobile-menu {
  position: absolute;
  top: 74px;
  right: 16px;
  width: min(240px, calc(100vw - 32px));
  padding: 10px;
  border-radius: 16px;
  border: 0.5px solid rgba(89, 144, 189, 0.18);
  background: rgba(19, 36, 54, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.44);
  display: none;
  gap: 4px;
  z-index: 130;
}

.lp-mobile-menu a {
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
  transition: background-color 180ms ease, color 180ms ease;
  font-family: var(--lp-font-body);
}

.lp-mobile-menu a:hover,
.lp-mobile-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  outline: none;
}

.lp-login-menu {
  justify-content: flex-end;
}

.lp-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--lp-font-display);
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease, background-color 180ms ease;
}

.lp-login-button:hover,
.lp-login-button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.lp-login-dropdown {
  width: 160px;
  border: 0.5px solid rgba(89, 144, 189, 0.18);
  background: rgba(19, 36, 54, 0.96);
}

.lp-login-dropdown .login-menu-item {
  font-family: var(--lp-font-body);
}

.lp-main {
  width: 100%;
}

.lp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 110px 0 90px;
  overflow: hidden;
}

.lp-hero::before {
  content: "";
  position: absolute;
  inset: -30% -18% -20% -18%;
  background:
    radial-gradient(circle at 38% 34%, rgba(89, 144, 189, 0.12), transparent 46%),
    radial-gradient(circle at 60% 44%, rgba(255, 78, 70, 0.09), transparent 54%),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.04), transparent 58%);
  pointer-events: none;
  opacity: 0.9;
}

.lp-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.lp-hero-form-layout {
  padding-top: 8px;
}

.lp-hero-left {
  max-width: 640px;
}

.lp-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 18px;
  font-family: var(--lp-font-body);
}

.lp-hero-kicker::before {
  content: "";
  width: 44px;
  height: 1px;
  background: rgba(255, 78, 70, 0.7);
}

.lp-hero-headline {
  margin: 0 0 24px;
  font-size: clamp(34px, 4.2vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--lp-font-display);
}

.lp-accent {
  color: var(--accent);
}

.lp-hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  flex-wrap: wrap;
}

.lp-hero-avatars {
  display: flex;
  align-items: center;
}

.lp-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2.5px solid #132436;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  margin-left: -10px;
}

.lp-avatar:first-child {
  margin-left: 0;
}

.lp-avatar-1 {
  background: linear-gradient(135deg, #5990bd, #78aed4);
}

.lp-avatar-2 {
  background: linear-gradient(135deg, #ff4e46, #ff7a74);
}

.lp-avatar-3 {
  background: linear-gradient(135deg, #132436, #1e3a54);
}

.lp-avatar-4 {
  background: linear-gradient(135deg, #5990bd, #3d7aa8);
}

.lp-avatar-5 {
  background: linear-gradient(135deg, #ff4e46, #e03e36);
}

.lp-hero-stars {
  display: inline-flex;
  gap: 4px;
}

.lp-star {
  width: 15px;
  height: 15px;
  fill: rgba(89, 144, 189, 0.95);
  opacity: 0.92;
}

.lp-hero-proof-text {
  font-weight: 700;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--lp-font-body);
}

.lp-hero-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  max-width: 580px;
}

.lp-hero-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--lp-font-body);
}

.lp-benefit-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-top: 1px;
  border: 0;
}

.lp-benefit-icon svg {
  width: 11px;
  height: 11px;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-benefit-icon.is-blue {
  background: rgba(89, 144, 189, 0.15);
}

.lp-benefit-icon.is-blue svg {
  stroke: #5990bd;
}

.lp-benefit-icon.is-accent {
  background: rgba(255, 78, 70, 0.12);
}

.lp-benefit-icon.is-accent svg {
  stroke: #ff4e46;
}

.lp-hero-benefits li.is-award {
  color: #ff4e46;
  font-weight: 500;
}

.lp-lead-card {
  border-radius: 18px;
  padding: 32px 28px;
  border: 0.5px solid rgba(89, 144, 189, 0.12);
  background: rgba(89, 144, 189, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 14px;
}

.lp-field {
  display: grid;
  gap: 8px;
}

.lp-field-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(89, 144, 189, 0.7);
  font-family: var(--lp-font-body);
}

.lp-input {
  width: 100%;
  border-radius: 10px;
  padding: 14px 14px;
  border: 0.5px solid rgba(89, 144, 189, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
  font-family: var(--lp-font-body);
}

.lp-input:focus {
  border-color: rgba(255, 78, 70, 0.5);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(255, 78, 70, 0.08);
}

.lp-input.is-error {
  border-color: rgba(255, 78, 70, 0.7);
}

.lp-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.lp-field-error {
  font-size: 0.76rem;
  color: rgba(255, 78, 70, 0.9);
}

.lp-whatsapp {
  display: grid;
  grid-template-columns: auto 1fr;
  border-radius: 10px;
  overflow: hidden;
  border: 0.5px solid rgba(89, 144, 189, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.lp-whatsapp-prefix {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-right: 0.5px solid rgba(89, 144, 189, 0.12);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lp-flag-br-svg {
  width: 18px;
  height: 12px;
  border-radius: 3px;
  overflow: hidden;
  flex: 0 0 auto;
}

.lp-whatsapp-input {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.lp-whatsapp:focus-within {
  border-color: rgba(255, 78, 70, 0.5);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(255, 78, 70, 0.08);
}

.lp-whatsapp.is-error {
  border-color: rgba(255, 78, 70, 0.7);
}

.lp-lead-submit {
  margin-top: 6px;
  width: 100%;
  border-radius: 10px;
  padding: 16px;
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
  box-shadow: none;
  font-family: var(--lp-font-display);
}

.lp-lead-submit:hover,
.lp-lead-submit:focus-visible {
  transform: translateY(-1px);
  background: var(--accent-dark);
  box-shadow: 0 6px 28px rgba(255, 78, 70, 0.3);
  outline: none;
}

.lp-lead-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.lp-spinner {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: rgba(255, 255, 255, 0.95);
  animation: lp-spin 900ms linear infinite;
}

@keyframes lp-spin {
  to {
    transform: rotate(360deg);
  }
}

.lp-lead-feedback {
  font-size: 0.9rem;
  line-height: 1.4;
  padding-top: 6px;
}

.lp-lead-feedback.is-success {
  color: rgba(34, 197, 94, 0.9);
}

.lp-lead-feedback.is-error {
  color: rgba(255, 78, 70, 0.92);
}

.lp-lead-legal {
  font-size: 11px;
  color: rgba(89, 144, 189, 0.3);
  line-height: 1.4;
  margin-top: 4px;
  font-family: var(--lp-font-body);
}

.lp-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.lp-phone-wrap {
  position: relative;
  width: min(460px, 100%);
  display: grid;
  place-items: center;
}

.lp-phone {
  width: clamp(248px, 28vw, 330px);
  height: clamp(520px, 56vw, 660px);
  border-radius: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(0, 0, 0, 0.12) 100%);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
  position: relative;
  transform: rotate(9deg);
}

.lp-phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 20px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lp-phone-screen {
  position: absolute;
  inset: 18px;
  border-radius: 38px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(10, 12, 18, 0.9), rgba(5, 7, 12, 0.95));
}

.lp-phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.96;
}

.lp-push {
  position: absolute;
  width: min(272px, 56vw);
  padding: 10px 12px;
  border-radius: 14px;
  border: 0.5px solid rgba(89, 144, 189, 0.12);
  background: rgba(89, 144, 189, 0.08);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.32);
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.84rem;
  line-height: 1.25;
  font-family: var(--lp-font-body);
  --rot: 0deg;
  transform: rotate(var(--rot));
}

.lp-push-icon {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: rgba(255, 78, 70, 0.16);
  border: 1px solid rgba(255, 78, 70, 0.28);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.lp-push-icon img {
  width: 16px;
  height: 16px;
}

.lp-push-1 {
  top: 10%;
  left: -8%;
  --rot: -5deg;
}

.lp-push-2 {
  top: 30%;
  left: -18%;
  --rot: 4deg;
}

.lp-push-3 {
  top: 38%;
  right: -22%;
  --rot: 6deg;
}

.lp-push-4 {
  bottom: 16%;
  right: -10%;
  --rot: -4deg;
}

@keyframes lp-float {
  0%,
  100% {
    transform: translateY(0) rotate(var(--rot));
  }
  50% {
    transform: translateY(-6px) rotate(var(--rot));
  }
}

.lp-push[data-float] {
  animation: lp-float 6.6s ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}

.lp-band {
  background: var(--accent);
  padding: 56px 0;
  text-align: center;
}

.lp-band-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--lp-font-body);
}

.lp-band-title {
  margin: 14px 0 10px;
  font-size: clamp(28px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  font-family: var(--lp-font-display);
}

.lp-band-sub {
  margin: 0;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--lp-font-body);
}

.lp-testimonials {
  padding: 44px 0 86px;
}

.lp-video-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

/* Hero v2: hide old phone mockup blocks if any lingering markup exists */
body[data-page="landing"] .lp-hero-visual,
body[data-page="landing"] .lp-phone-wrap,
body[data-page="landing"] .lp-push {
  display: none;
}

.lp-video-card {
  border-radius: 14px;
  overflow: hidden;
  border: 0.5px solid rgba(89, 144, 189, 0.12);
  background: rgba(89, 144, 189, 0.04);
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.lp-video-card:hover,
.lp-video-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(255, 78, 70, 0.32);
  background: rgba(89, 144, 189, 0.06);
}

.lp-video-thumb {
  position: relative;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.12), transparent 46%),
    linear-gradient(135deg, rgba(89, 144, 189, 0.24), rgba(255, 78, 70, 0.16));
}

.lp-video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 36, 54, 0.12), rgba(19, 36, 54, 0.62));
}

.lp-thumb-2 {
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.12), transparent 46%),
    linear-gradient(135deg, rgba(255, 78, 70, 0.18), rgba(89, 144, 189, 0.18));
}

.lp-thumb-3 {
  background:
    radial-gradient(circle at 25% 12%, rgba(255, 255, 255, 0.12), transparent 46%),
    linear-gradient(135deg, rgba(89, 144, 189, 0.2), rgba(19, 36, 54, 0.22));
}

.lp-thumb-4 {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 46%),
    linear-gradient(135deg, rgba(255, 78, 70, 0.16), rgba(89, 144, 189, 0.18));
}

.lp-thumb-5 {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.12), transparent 46%),
    linear-gradient(135deg, rgba(19, 36, 54, 0.22), rgba(89, 144, 189, 0.2));
}

.lp-quote-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 900;
  z-index: 1;
}

.lp-play {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  border: 0.5px solid rgba(89, 144, 189, 0.12);
  z-index: 1;
}

.lp-play::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 15px;
  width: 0;
  height: 0;
  border-left: 12px solid rgba(255, 255, 255, 0.95);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.lp-section {
  padding: 72px 0;
  border-top: 0.5px solid rgba(89, 144, 189, 0.1);
}

.lp-section-last {
  padding-bottom: 96px;
}

.lp-section-title {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.96);
  font-family: var(--lp-font-display);
}

.lp-section-sub {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  font-family: var(--lp-font-body);
}

.lp-faq {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.lp-faq-item {
  border: 0.5px solid rgba(89, 144, 189, 0.12);
  background: rgba(89, 144, 189, 0.04);
  border-radius: 14px;
  padding: 14px 16px;
}

.lp-faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--lp-font-body);
}

.lp-faq-item summary::-webkit-details-marker {
  display: none;
}

.lp-faq-item p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
  font-family: var(--lp-font-body);
}

/* Reveal on scroll (landing only) */
body[data-page="landing"] [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.65, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

body[data-page="landing"] [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .lp-hero-inner {
    grid-template-columns: 1fr;
  }

  .lp-hero-benefits {
    grid-template-columns: 1fr;
  }

  .lp-phone {
    transform: rotate(6deg);
  }

  .lp-push-1 {
    left: -2%;
  }

  .lp-push-2 {
    left: -6%;
  }

  .lp-push-3 {
    right: -10%;
  }

  .lp-push-4 {
    right: -4%;
  }

  .lp-video-grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
  }

  .lp-video-card {
    scroll-snap-align: start;
  }
}

@media (max-width: 768px) {
  .lp-nav-links {
    display: none;
  }

  .lp-nav-toggle {
    display: inline-flex;
  }

  .lp-mobile-menu:not([hidden]) {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-login-button,
  .lp-video-card,
  [data-reveal] {
    transition: none !important;
  }
  .lp-push[data-float] {
    animation: none !important;
  }
}

.live-fixed-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.live-fixed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid rgba(89, 144, 189, 0.08);
  border-radius: 12px;
}

.badge-pendente {
  background: rgba(251, 191, 36, 0.12);
  color: #FBBF24;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 50px;
}

.badge-aprovado {
  background: rgba(93, 202, 165, 0.12);
  color: #5DCAA5;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 50px;
}

.badge-recusado {
  background: rgba(255, 78, 70, 0.12);
  color: #FF4E46;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 50px;
}

.admin-requests-card {
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid rgba(89, 144, 189, 0.08);
  border-radius: 14px;
  padding: 20px;
  margin-top: 6px;
  min-width: 0;
  overflow: hidden;
}

.admin-requests-body {
  display: grid;
  gap: 10px;
}

.admin-requests-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.admin-agendas-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.admin-agenda-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(13, 15, 18, 0.24);
  min-width: 0;
}

.admin-agenda-toggle {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
  padding: 0;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.admin-agenda-toggle:hover,
.admin-agenda-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.44);
}

.admin-agenda-toggle.is-on {
  background: var(--agenda-color, #5c9bd6);
  border-color: var(--agenda-color, #5c9bd6);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
}

.admin-agenda-toggle.is-on:hover,
.admin-agenda-toggle.is-on:focus-visible {
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.14);
}

.admin-agenda-avatar {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(89, 144, 189, 0.12);
  border: 1px solid rgba(89, 144, 189, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -0.01em;
  flex: 0 0 auto;
}

.admin-agenda-name {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-requests-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(13, 15, 18, 0.24);
  min-width: 0;
}

.admin-requests-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.admin-requests-title {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.admin-requests-meta {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-requests-reason {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-requests-actions {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
}

.admin-requests-btn {
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.admin-requests-btn:hover,
.admin-requests-btn:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
}

.admin-requests-btn.is-danger {
  background: rgba(255, 78, 70, 0.12);
  border-color: rgba(255, 78, 70, 0.24);
  color: #FF4E46;
}

.admin-requests-btn.is-danger:hover,
.admin-requests-btn.is-danger:focus-visible {
  background: rgba(255, 78, 70, 0.16);
  border-color: rgba(255, 78, 70, 0.34);
  color: rgba(255, 255, 255, 0.95);
}

/* Student dashboard v5 (Aluno home). */

body[data-role="student"][data-active-panel="dashboard"] .platform-header {
  display: none;
}

body[data-role="student"][data-active-panel="dashboard"] .platform-main {
  padding-left: 18px !important;
  padding-right: 18px !important;
}

.student-v5 {
  position: relative;
  overflow: hidden;
  width: min(100%, clamp(980px, 90vw, 1400px));
  margin: 8px auto 40px;
  padding: 24px 32px;
  border-radius: 18px;
  background: #0f1d2d;
  border: 0.5px solid rgba(89, 144, 189, 0.08);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.35);
}

.student-v5-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(0);
}

.student-v5-glow-blue {
  width: 520px;
  height: 520px;
  left: -220px;
  top: -200px;
  background: radial-gradient(circle, rgba(89, 144, 189, 0.12) 0%, transparent 70%);
}

.student-v5-glow-coral {
  width: 520px;
  height: 520px;
  right: -240px;
  bottom: -260px;
  background: radial-gradient(circle, rgba(255, 78, 70, 0.12) 0%, transparent 70%);
}

.student-v5-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.student-v5-eyebrow {
  margin: 0 0 6px;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(89, 144, 189, 0.5);
  font-weight: 700;
}

.student-v5-greeting {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.student-v5-date {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  font-weight: 600;
}

.student-v5-header-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.student-v5-plan {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 0.5px solid rgba(255, 78, 70, 0.2);
  background: rgba(255, 78, 70, 0.08);
  color: #FF4E46;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.student-v5-plan-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF4E46;
  box-shadow: 0 0 14px rgba(255, 78, 70, 0.3);
}

.student-v5-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, rgba(89, 144, 189, 0.55), rgba(255, 78, 70, 0.45));
  border: 0.5px solid rgba(255, 255, 255, 0.12);
}

.student-v5-row {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.student-v5-row-top {
  grid-template-columns: 1.3fr 1fr;
}

.student-v5-row-mid {
  grid-template-columns: 1fr 1fr;
}

.student-v5-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid rgba(89, 144, 189, 0.08);
  border-radius: 16px;
  padding: 18px 18px;
  min-width: 0;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.student-v5-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.24);
}

.student-v5-card-next {
  background: linear-gradient(
    155deg,
    rgba(255, 78, 70, 0.1) 0%,
    rgba(255, 78, 70, 0.02) 60%,
    rgba(89, 144, 189, 0.03) 100%
  );
  border-color: rgba(255, 78, 70, 0.15);
}

.student-v5-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.student-v5-card-head-row {
  align-items: center;
}

.student-v5-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.01em;
}

.student-v5-card-sub {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
}

.student-v5-card-empty {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
}

.student-v5-lessons {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.student-v5-lesson {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 0.5px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.18);
  min-width: 0;
}

.student-v5-lesson.is-primary {
  border-color: rgba(255, 78, 70, 0.22);
  background: rgba(255, 78, 70, 0.08);
}

.student-v5-lesson-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.student-v5-lesson-datechip {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
}

.student-v5-lesson-datechip strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1;
}

.student-v5-lesson-datechip span {
  margin-top: 2px;
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(89, 144, 189, 0.75);
}

.student-v5-lesson-meta {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.student-v5-lesson-time {
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
}

.student-v5-lesson-prof {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.student-v5-lesson-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.student-v5-lesson-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 78, 70, 0.12);
  border: 0.5px solid rgba(255, 78, 70, 0.2);
  color: #FF4E46;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.student-v5-lesson-link {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 12px;
  font-weight: 800;
  color: rgba(89, 144, 189, 0.85);
  cursor: pointer;
  transition: color 150ms ease, transform 150ms ease;
}

.student-v5-lesson-link:hover,
.student-v5-lesson-link:focus-visible {
  color: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}

.student-v5-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.student-v5-metric {
  border-radius: 14px;
  padding: 16px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid rgba(89, 144, 189, 0.08);
  min-width: 0;
}

.student-v5-metric-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.student-v5-metric-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.student-v5-metric-icon.is-blue {
  color: #5990BD;
  background: rgba(89, 144, 189, 0.14);
}

.student-v5-metric-icon.is-coral {
  color: #FF4E46;
  background: rgba(255, 78, 70, 0.12);
}

.student-v5-metric-icon.is-green {
  color: #5DCAA5;
  background: rgba(93, 202, 165, 0.12);
}

.student-v5-metric-icon.is-yellow {
  color: #FBBF24;
  background: rgba(251, 191, 36, 0.12);
}

.student-v5-metric-label {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: rgba(89, 144, 189, 0.55);
}

.student-v5-metric-value {
  margin: 8px 0 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.05;
}

.student-v5-unit {
  font-size: 14px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.55);
}

.student-v5-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(89, 144, 189, 0.08);
  overflow: hidden;
}

.student-v5-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(89, 144, 189, 0.95), rgba(93, 202, 165, 0.95));
}

.student-v5-metric-sub {
  margin: 10px 0 0;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.35);
}

.student-v5-metric-sub-green {
  color: rgba(93, 202, 165, 0.85);
}

.student-v5-metric-sub-coral {
  color: rgba(255, 78, 70, 0.85);
}

.student-v5-teacher-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.student-v5-teacher-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, rgba(89, 144, 189, 0.6), rgba(89, 144, 189, 0.15));
  border: 0.5px solid rgba(89, 144, 189, 0.18);
  flex: 0 0 auto;
}

.student-v5-teacher-name {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.student-v5-teacher-spec {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
}

.student-v5-teacher-stats {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.student-v5-teacher-stat p {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.student-v5-teacher-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}

.student-v5-star {
  color: #FBBF24;
}

.student-v5-divider {
  height: 0.5px;
  background: rgba(255, 255, 255, 0.08);
  margin: 14px 0;
}

.student-v5-ghost {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.42);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.student-v5-ghost-icon svg {
  width: 18px;
  height: 18px;
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.student-v5-ghost:hover,
.student-v5-ghost:focus-visible {
  background: rgba(255, 78, 70, 0.06);
  border-color: rgba(255, 78, 70, 0.22);
  color: rgba(255, 255, 255, 0.82);
  transform: translateY(-1px);
}

.student-v5-ghost:hover .student-v5-ghost-icon svg,
.student-v5-ghost:focus-visible .student-v5-ghost-icon svg {
  stroke: rgba(255, 78, 70, 0.8);
}

.student-v5-nps {
  background: rgba(93, 202, 165, 0.04);
  border-color: rgba(93, 202, 165, 0.12);
}

.student-v5-nps-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.student-v5-nps-like {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5DCAA5;
  background: rgba(93, 202, 165, 0.12);
  flex: 0 0 auto;
}

.student-v5-nps-like svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.student-v5-nps-question {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
}

.student-v5-nps-scale {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 6px;
}

.student-v5-nps-btn {
  height: 32px;
  border-radius: 10px;
  border: 0.5px solid rgba(89, 144, 189, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.student-v5-nps-btn:hover,
.student-v5-nps-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
}

.student-v5-nps-btn.is-bad {
  background: rgba(226, 75, 74, 0.22);
  border-color: rgba(226, 75, 74, 0.35);
  color: rgba(255, 255, 255, 0.92);
}

.student-v5-nps-btn.is-mid {
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(251, 191, 36, 0.32);
  color: rgba(255, 255, 255, 0.92);
}

.student-v5-nps-btn.is-good {
  background: rgba(93, 202, 165, 0.18);
  border-color: rgba(93, 202, 165, 0.32);
  color: rgba(255, 255, 255, 0.92);
}

.student-v5-nps-labels {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
}

.student-v5-nps-tone {
  margin: 12px 0 0;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.6);
}

.student-v5-nps-textarea {
  width: 100%;
  margin-top: 12px;
  min-height: 86px;
  resize: vertical;
  border-radius: 12px;
  border: 0.5px solid rgba(89, 144, 189, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 600;
  outline: none;
  transition: border-color 150ms ease;
}

.student-v5-nps-textarea:focus {
  border-color: rgba(93, 202, 165, 0.35);
}

.student-v5-nps-submit {
  width: 100%;
  margin-top: 12px;
  height: 44px;
  border-radius: 12px;
  border: 0;
  background: rgba(93, 202, 165, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.student-v5-nps-submit[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.student-v5-nps-submit:not([disabled]) {
  background: #5DCAA5;
}

.student-v5-nps-submit:not([disabled]):hover,
.student-v5-nps-submit:not([disabled]):focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(93, 202, 165, 0.18);
}

.student-v5-nps-feedback {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}

.student-v5-nps-feedback.is-error {
  color: rgba(255, 78, 70, 0.9);
}

.student-v5-nps-thanks-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}

.student-v5-nps-thanks-sub {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
}

.student-v5-path-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.4);
}

.student-v5-path-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF4E46;
  box-shadow: 0 0 14px rgba(255, 78, 70, 0.3);
}

.student-v5-path-bars {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  align-items: end;
}

.student-v5-path-item {
  min-width: 0;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.student-v5-path-bar {
  position: relative;
  width: 100%;
  height: 84px;
  border-radius: 12px;
  border: 0.5px solid rgba(89, 144, 189, 0.12);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.student-v5-path-bar.is-future {
  border-style: dashed;
  border-color: rgba(89, 144, 189, 0.25);
  background: rgba(89, 144, 189, 0.05);
}

.student-v5-path-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0%;
  border-radius: 12px;
}

.student-v5-path-bar.is-current {
  border-color: rgba(255, 78, 70, 0.28);
  box-shadow: 0 0 0 1px rgba(255, 78, 70, 0.08) inset;
}

.student-v5-path-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 78, 70, 0.16);
  border: 0.5px solid rgba(255, 78, 70, 0.24);
  color: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.student-v5-path-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  white-space: nowrap;
}

.student-v5-recs {
  background: rgba(89, 144, 189, 0.04);
  border-color: rgba(89, 144, 189, 0.12);
}

.student-v5-recs-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.student-v5-recs-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5DCAA5;
  background: rgba(93, 202, 165, 0.12);
}

.student-v5-recs-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.student-v5-recs-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.student-v5-rec {
  border-radius: 14px;
  padding: 14px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid rgba(89, 144, 189, 0.08);
  min-width: 0;
}

.student-v5-rec-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.student-v5-rec-tag.is-speaking {
  background: rgba(255, 78, 70, 0.14);
  color: #FF4E46;
}

.student-v5-rec-tag.is-listening {
  background: rgba(89, 144, 189, 0.16);
  color: rgba(146, 197, 232, 0.95);
}

.student-v5-rec-tag.is-review {
  background: rgba(251, 191, 36, 0.14);
  color: #FBBF24;
}

.student-v5-rec-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .student-v5 {
    padding: 22px 24px;
  }
}

@media (max-width: 860px) {
  .student-v5-row-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .student-v5 {
    width: 100%;
    margin: 8px 0 40px;
  }

  .student-v5-row-mid {
    grid-template-columns: 1fr;
  }

  .student-v5-recs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .student-v5 {
    padding: 20px 18px;
  }

  .student-v5-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .student-v5-header-right {
    width: 100%;
    justify-content: space-between;
  }

  .student-v5-metrics {
    grid-template-columns: 1fr;
  }

  .student-v5-path-bars {
    gap: 8px;
  }
}

/* Teacher dashboard v4 (Professor home). */

body[data-role="teacher"][data-active-panel="dashboard"] .platform-header {
  display: none;
}

.teacher-v4 {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 8px 0 40px;
  padding: clamp(20px, 2.2vw, 34px) clamp(18px, 2.6vw, 44px);
  border-radius: 18px;
  background: #0f1d2d;
  border: 0.5px solid rgba(89, 144, 189, 0.08);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.35);
}

.teacher-v4-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.teacher-v4-glow-coral {
  top: -100px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 78, 70, 0.035) 0%, transparent 70%);
}

.teacher-v4-glow-blue {
  bottom: -120px;
  left: -60px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(89, 144, 189, 0.025) 0%, transparent 70%);
}

.teacher-v4-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.teacher-v4-eyebrow {
  margin: 0 0 5px;
  color: rgba(89, 144, 189, 0.5);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.teacher-v4-greeting {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.teacher-v4-date {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.25);
  font-size: 12px;
}

.teacher-v4-header-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.teacher-v4-rating {
  background: rgba(93, 202, 165, 0.08);
  border: 0.5px solid rgba(93, 202, 165, 0.2);
  padding: 8px 16px;
  border-radius: 10px;
  text-align: center;
  min-width: 92px;
}

.teacher-v4-rating-label {
  margin: 0 0 2px;
  color: rgba(93, 202, 165, 0.6);
  font-size: 9px;
  letter-spacing: 1px;
}

.teacher-v4-rating-value {
  margin: 0;
  color: #5DCAA5;
  font-size: 20px;
  font-weight: 600;
}

.teacher-v4-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5990BD, #78aed4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
}

.teacher-v4-next {
  position: relative;
  z-index: 1;
  background: linear-gradient(
    155deg,
    rgba(255, 78, 70, 0.1) 0%,
    rgba(255, 78, 70, 0.02) 60%,
    rgba(89, 144, 189, 0.03) 100%
  );
  border: 0.5px solid rgba(255, 78, 70, 0.15);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
}

.teacher-v4-next-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.teacher-v4-next-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.teacher-v4-next-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 2.5px solid rgba(255, 78, 70, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 0 0 auto;
}

.teacher-v4-next-ring {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 2.5px solid #FF4E46;
  border-top-color: transparent;
  border-right-color: transparent;
  position: absolute;
  transform: rotate(var(--teacher-v4-ring-rotation, 200deg));
}

.teacher-v4-next-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #FF4E46;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.teacher-v4-next-icon svg circle {
  opacity: 0.75;
}

.teacher-v4-next-kicker {
  margin: 0 0 3px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  letter-spacing: 1px;
}

.teacher-v4-next-countline {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.teacher-v4-next-count {
  margin: 0;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
}

.teacher-v4-next-unit {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

.teacher-v4-next-time {
  background: rgba(255, 78, 70, 0.12);
  padding: 6px 14px;
  border-radius: 8px;
  color: #FF4E46;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.teacher-v4-next-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.teacher-v4-live-link,
.student-v5-lesson-enter,
.live-fixed-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 78, 70, 0.36);
  background: rgba(255, 78, 70, 0.14);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.teacher-v4-live-link {
  min-height: 30px;
  padding: 6px 12px;
  font-size: 12px;
}

.student-v5-lesson-enter,
.live-fixed-enter {
  min-height: 28px;
  padding: 6px 10px;
  font-size: 12px;
}

.admin-ped-live-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.admin-ped-live-grid .admin-ped-qualitymini-metric {
  min-height: 78px;
}

.teacher-v4-next-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 12px;
}

.teacher-v4-box {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  padding: 16px;
  min-width: 0;
}

.teacher-v4-student-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.teacher-v4-student-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 78, 70, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #FF4E46;
  font-weight: 700;
  flex: 0 0 auto;
}

.teacher-v4-student-name {
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.teacher-v4-student-meta {
  margin: 1px 0 0;
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
}

.teacher-v4-divider {
  border-top: 0.5px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
  margin-top: 10px;
}

.teacher-v4-labelrow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.teacher-v4-labelicon {
  width: 11px;
  height: 11px;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.teacher-v4-labelicon-info,
.teacher-v4-labelicon-clock {
  stroke: #5990BD;
}

.teacher-v4-labelicon-goal {
  stroke: #FBBF24;
}

.teacher-v4-labelicon-doc {
  stroke: #5DCAA5;
}

.teacher-v4-label {
  margin: 0;
  color: rgba(89, 144, 189, 0.7);
  font-size: 10px;
  letter-spacing: 0.5px;
}

.teacher-v4-label-goal {
  color: rgba(251, 191, 36, 0.7);
}

.teacher-v4-label-plan {
  color: rgba(93, 202, 165, 0.7);
}

.teacher-v4-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  line-height: 1.55;
}

.teacher-v4-text.is-placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.teacher-v4-plan-title.is-placeholder,
.teacher-v4-last-theme.is-placeholder {
  color: rgba(255, 255, 255, 0.28);
  font-weight: 600;
}

.teacher-v4-plan-title,
.teacher-v4-last-theme {
  margin: 0 0 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.teacher-v4-topics {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.teacher-v4-topic {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
}

.teacher-v4-topic-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #5DCAA5;
  margin-top: 5px;
  flex: 0 0 auto;
}

.teacher-v4-topic-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  line-height: 1.45;
}

.teacher-v4-material {
  margin-top: 10px;
  padding: 8px 10px;
  background: rgba(93, 202, 165, 0.06);
  border-radius: 8px;
  border: 0.5px solid rgba(93, 202, 165, 0.1);
}

.teacher-v4-material-head p {
  margin: 0 0 2px;
  color: rgba(93, 202, 165, 0.6);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.teacher-v4-material-title {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  line-height: 1.3;
}

.teacher-v4-last-meta {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.teacher-v4-last-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #FBBF24;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.teacher-v4-last-rating svg {
  width: 10px;
  height: 10px;
}

.teacher-v4-last-theme {
  font-size: 12px;
  margin-bottom: 6px;
}

.teacher-v4-attn {
  margin: 0;
  color: rgba(255, 78, 70, 0.6);
  font-size: 10px;
  letter-spacing: 0.5px;
}

.teacher-v4-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.teacher-v4-tag {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 0.5px solid transparent;
}

.teacher-v4-tag.is-weak {
  background: rgba(255, 78, 70, 0.08);
  color: rgba(255, 78, 70, 0.7);
  border-color: rgba(255, 78, 70, 0.16);
}

.teacher-v4-tag.is-positive {
  background: rgba(93, 202, 165, 0.08);
  color: rgba(93, 202, 165, 0.7);
  border-color: rgba(93, 202, 165, 0.16);
}

.teacher-v4-next-empty {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid rgba(89, 144, 189, 0.08);
}

.teacher-v4-empty-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(89, 144, 189, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.teacher-v4-empty-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: rgba(89, 144, 189, 0.8);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.teacher-v4-empty-title {
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.teacher-v4-empty-sub {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  line-height: 1.4;
}

.teacher-v4-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.teacher-v4-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.teacher-v4-grid-2 {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 14px;
}

.teacher-v4-metric,
.teacher-v4-card,
.teacher-v4-perf,
.teacher-v4-notices {
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid rgba(89, 144, 189, 0.08);
  border-radius: 14px;
}

.teacher-v4-metric {
  padding: 18px;
}

.teacher-v4-metric-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.teacher-v4-metric-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.teacher-v4-metric-icon-blue {
  background: rgba(89, 144, 189, 0.12);
}
.teacher-v4-metric-icon-blue svg {
  stroke: #5990BD;
}

.teacher-v4-metric-icon-green {
  background: rgba(93, 202, 165, 0.12);
}
.teacher-v4-metric-icon-green svg {
  stroke: #5DCAA5;
}

.teacher-v4-metric-icon-yellow {
  background: rgba(251, 191, 36, 0.14);
}
.teacher-v4-metric-icon-yellow svg {
  stroke: #FBBF24;
}

.teacher-v4-metric-label {
  margin: 0 0 5px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.teacher-v4-metric-value {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.teacher-v4-metric-sub {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
}

.teacher-v4-metric-sub-positive {
  color: rgba(93, 202, 165, 0.78);
  font-weight: 600;
}

.teacher-v4-card {
  padding: 20px;
}

.teacher-v4-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.teacher-v4-card-title {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.teacher-v4-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 18px;
}

.teacher-v4-timeline::before {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 8px;
  bottom: 8px;
  width: 1.5px;
  background: linear-gradient(to bottom, rgba(89, 144, 189, 0.15), rgba(89, 144, 189, 0.05));
}

.teacher-v4-timeline-item {
  position: relative;
  padding: 7px 0;
}

.teacher-v4-timeline-dot {
  position: absolute;
  left: -17px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 2px solid #0f1d2d;
  background: rgba(89, 144, 189, 0.15);
}

.teacher-v4-timeline-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
}

.teacher-v4-timeline-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.teacher-v4-timeline-time {
  margin: 0;
  min-width: 44px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
  font-weight: 700;
}

.teacher-v4-timeline-sep {
  width: 0.5px;
  height: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.teacher-v4-timeline-name {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teacher-v4-timeline-meta {
  margin: 1px 0 0;
  color: rgba(255, 255, 255, 0.2);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teacher-v4-timeline-badge {
  color: rgba(255, 255, 255, 0.25);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
}

.teacher-v4-timeline-item.is-completed .teacher-v4-timeline-dot {
  background: rgba(93, 202, 165, 0.35);
}

.teacher-v4-timeline-item.is-completed .teacher-v4-timeline-card {
  background: rgba(89, 144, 189, 0.04);
  opacity: 0.45;
}

.teacher-v4-timeline-item.is-completed .teacher-v4-timeline-badge {
  color: rgba(93, 202, 165, 0.85);
}

.teacher-v4-timeline-item.is-next .teacher-v4-timeline-dot {
  background: #FF4E46;
  box-shadow: 0 0 8px rgba(255, 78, 70, 0.5);
}

.teacher-v4-timeline-item.is-next .teacher-v4-timeline-card {
  background: rgba(255, 78, 70, 0.06);
  border: 0.5px solid rgba(255, 78, 70, 0.18);
}

.teacher-v4-timeline-item.is-next .teacher-v4-timeline-time {
  color: #FF4E46;
}

.teacher-v4-timeline-item.is-next .teacher-v4-timeline-sep {
  background: rgba(255, 78, 70, 0.12);
}

.teacher-v4-timeline-item.is-next .teacher-v4-timeline-badge {
  color: #FF4E46;
}

.teacher-v4-weekgrid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.teacher-v4-weekday {
  text-align: center;
  padding: 10px 0 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 0.5px solid rgba(89, 144, 189, 0.06);
  border-radius: 10px;
}

.teacher-v4-weekday.is-today {
  background: rgba(255, 78, 70, 0.07);
  border-color: rgba(255, 78, 70, 0.18);
}

.teacher-v4-weekday-label {
  margin: 0 0 3px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 9px;
}

.teacher-v4-weekday.is-today .teacher-v4-weekday-label {
  color: rgba(255, 255, 255, 0.35);
}

.teacher-v4-weekday-date {
  margin: 0 0 5px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
  font-weight: 700;
}

.teacher-v4-weekday.is-today .teacher-v4-weekday-date {
  color: #FF4E46;
}

.teacher-v4-weekday-count {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.teacher-v4-weekday-sub {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.2);
  font-size: 9px;
}

.teacher-v4-weekfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 0.5px solid rgba(89, 144, 189, 0.06);
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
}

.teacher-v4-weekfoot strong {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.teacher-v4-pending-badge {
  background: rgba(255, 78, 70, 0.1);
  padding: 3px 10px;
  border-radius: 50px;
  color: #FF4E46;
  font-size: 11px;
  font-weight: 700;
}

.teacher-v4-pending-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.teacher-v4-pending-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  cursor: default;
}

.teacher-v4-pending-item.is-yellow {
  border-left: 3px solid rgba(251, 191, 36, 0.9);
}

.teacher-v4-pending-item.is-blue {
  border-left: 3px solid rgba(89, 144, 189, 0.85);
}

.teacher-v4-pending-item-title {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
}

.teacher-v4-pending-item-meta {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.3);
  font-size: 10px;
}

.teacher-v4-pending-item-chevron {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.teacher-v4-perf {
  padding: 18px;
}

.teacher-v4-perf-label {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.teacher-v4-perf-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.teacher-v4-perf-value {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.teacher-v4-perf-sub {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
}

.teacher-v4-perf-pill {
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.teacher-v4-perf-pill-green {
  background: rgba(93, 202, 165, 0.12);
  color: #5DCAA5;
  border: 0.5px solid rgba(93, 202, 165, 0.2);
}

.teacher-v4-bar {
  margin-top: 10px;
  height: 5px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
  overflow: hidden;
}

.teacher-v4-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
}

.teacher-v4-bar-fill-bluegreen {
  background: linear-gradient(90deg, #5990BD, #5DCAA5);
}

.teacher-v4-bar-fill-coralyellow {
  background: linear-gradient(90deg, #FF4E46, #FBBF24);
}

.teacher-v4-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 2px;
}

.teacher-v4-stars svg {
  width: 13px;
  height: 13px;
}

.teacher-v4-notices {
  position: relative;
  z-index: 1;
  background: rgba(89, 144, 189, 0.04);
  border: 0.5px solid rgba(89, 144, 189, 0.12);
  padding: 20px;
  margin-bottom: 12px;
}

.teacher-v4-notices-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.teacher-v4-notices-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.teacher-v4-notices-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(89, 144, 189, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.teacher-v4-notices-icon svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #5990BD;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.teacher-v4-notices-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.teacher-v4-notice {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 0.5px solid rgba(89, 144, 189, 0.08);
}

.teacher-v4-notice-btn {
  width: 100%;
  text-align: left;
  cursor: pointer;
  appearance: none;
  font: inherit;
  color: inherit;
}

.teacher-v4-notice-btn:hover,
.teacher-v4-notice-btn:focus-visible {
  background: rgba(255, 255, 255, 0.04);
}

.teacher-v4-notice.is-important {
  background: rgba(255, 78, 70, 0.03);
  border-color: rgba(255, 78, 70, 0.12);
}

.teacher-v4-notice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.teacher-v4-notice-title {
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.teacher-v4-notice-meta {
  color: rgba(89, 144, 189, 0.5);
  font-size: 10px;
  white-space: nowrap;
}

.teacher-v4-notice-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  line-height: 1.5;
}

.teacher-v4-notice-tag {
  background: rgba(255, 78, 70, 0.12);
  color: #FF4E46;
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
}

.teacher-v4-card-empty {
  color: rgba(255, 255, 255, 0.28);
  font-size: 12px;
  padding: 10px 0 0;
}

@media (max-width: 768px) {
  .teacher-v4 {
    padding: 18px 16px;
  }

  .teacher-v4-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .teacher-v4-grid-3 {
    grid-template-columns: 1fr;
  }

  .teacher-v4-grid-2 {
    grid-template-columns: 1fr;
  }

  .teacher-v4-next-grid {
    grid-template-columns: 1fr;
  }

  .teacher-v4-weekgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .teacher-v4 {
    padding: clamp(26px, 2.4vw, 40px) clamp(24px, 3vw, 56px);
  }

  .teacher-v4-header {
    margin-bottom: 32px;
  }

  .teacher-v4-greeting {
    font-size: 24px;
  }

  .teacher-v4-next {
    padding: 28px;
  }

  .teacher-v4-next-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr) minmax(0, 1fr);
  }

  .teacher-v4-grid {
    gap: 14px;
    margin-bottom: 18px;
  }

  .teacher-v4-metric-value,
  .teacher-v4-perf-value {
    font-size: 26px;
  }

  .teacher-v4-card {
    padding: 22px;
  }
}

/* =========================
   Growth Dashboard (v2)
   ========================= */

body[data-page="growth"] {
  --growth-bg: #0f1d2d;
  --growth-accent: #ff4e46;
  --growth-blue: #5990bd;
  --growth-green: #5dcaa5;
  --growth-yellow: #fbbf24;
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 78, 70, 0.035), transparent 60%),
    radial-gradient(circle at 16% 92%, rgba(89, 144, 189, 0.025), transparent 62%),
    var(--growth-bg);
  color: #ffffff;
}

body[data-page="growth"] .page-glow {
  opacity: 0.26;
}

body[data-page="growth"] .platform-main {
  height: auto;
  min-height: 100vh;
  padding-bottom: 40px;
}

.growth-v2 {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 980px;
  margin: 0 auto 40px;
  padding: 24px 32px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.growth-v2[data-growth-view="dashboard"] {
  max-width: 980px;
}

.growth-v2::before {
  content: none;
}

.growth-v2 > * {
  position: relative;
  z-index: 1;
}

.growth-v2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.growth-v2-eyebrow {
  margin: 0 0 5px;
  color: rgba(89, 144, 189, 0.5);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.growth-v2-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

.growth-v2-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
}

.growth-v2-head-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.growth-v2-usercard {
  text-align: right;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(89, 144, 189, 0.08);
  border: 0.5px solid rgba(89, 144, 189, 0.15);
}

.growth-v2-user-name {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.growth-v2-user-role {
  margin-top: 3px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(89, 144, 189, 0.55);
}

.growth-v2-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.95);
  background: linear-gradient(135deg, rgba(89, 144, 189, 0.95), rgba(120, 174, 212, 0.35));
  border: 0.5px solid rgba(89, 144, 189, 0.25);
}

.growth-v2-section {
  margin-top: 14px;
}

.growth-v2-section-label {
  margin: 0 0 10px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(89, 144, 189, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
}

.growth-v2-section-label::after {
  content: "";
  flex: 1 1 auto;
  height: 0.5px;
  background: rgba(89, 144, 189, 0.06);
}

.growth-v2-grid {
  display: grid;
  gap: 12px;
}

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

.growth-v2-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.growth-v2[data-growth-view="dashboard"] .growth-v2-section[aria-label="Indicadores comerciais"] .growth-v2-grid-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.growth-v2[data-growth-view="dashboard"] .growth-v2-section[aria-label="Indicadores comerciais"] .growth-v2-grid-3 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.growth-v2[data-growth-view="dashboard"] .growth-v2-section[aria-label="Indicadores comerciais"] .growth-v2-grid-4 .growth-v2-card {
  background: rgba(255, 255, 255, 0.04);
}

.growth-v2[data-growth-view="dashboard"] .growth-v2-section[aria-label="Indicadores comerciais"] .growth-v2-grid-3 .growth-v2-card {
  background: rgba(255, 255, 255, 0.02);
}

.growth-v2[data-growth-view="dashboard"]
  .growth-v2-section[aria-label="Indicadores comerciais"]
  .growth-v2-grid-3
  .growth-v2-card-value {
  font-size: 18px;
  margin-top: 6px;
}

.growth-v2-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 18px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid rgba(89, 144, 189, 0.08);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease,
    background-color 200ms ease;
}

.growth-v2-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 78, 70, 0.16);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.26);
}

.growth-v2-card.is-realizado {
  background: rgba(255, 78, 70, 0.05);
  border-color: rgba(255, 78, 70, 0.12);
}

.growth-v2-card.is-receita {
  background: rgba(93, 202, 165, 0.04);
  border-color: rgba(93, 202, 165, 0.12);
}

.growth-v2-card-plans .growth-v2-card-label {
  margin-bottom: 10px;
}

.growth-v2-plans {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.growth-v2-pie {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background:
    conic-gradient(
      rgba(251, 191, 36, 0.92) 0deg 56.84deg,
      rgba(89, 144, 189, 0.92) 56.84deg 246.32deg,
      rgba(255, 78, 70, 0.92) 246.32deg 360deg
    );
  box-shadow: inset 0 0 0 6px rgba(15, 29, 45, 0.95);
  flex: 0 0 54px;
}

.growth-v2[data-growth-view="dashboard"] .growth-v2-card-plans .growth-v2-pie {
  display: none;
}

.growth-v2[data-growth-view="dashboard"] .growth-v2-card-plans .growth-v2-plans {
  display: grid;
  gap: 10px;
}

.growth-v2-plans-legend {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  flex: 1 1 auto;
}

.growth-v2-plans-item {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.growth-v2-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.growth-v2-dot.is-turma {
  background: rgba(251, 191, 36, 0.92);
}

.growth-v2-dot.is-gold {
  background: rgba(89, 144, 189, 0.92);
}

.growth-v2-dot.is-diamond {
  background: rgba(255, 78, 70, 0.92);
}

.growth-v2-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.growth-v2-icon svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.growth-v2-icon.is-blue {
  background: rgba(89, 144, 189, 0.1);
  color: var(--growth-blue);
}

.growth-v2-icon.is-coral {
  background: rgba(255, 78, 70, 0.1);
  color: var(--growth-accent);
}

.growth-v2-icon.is-green {
  background: rgba(93, 202, 165, 0.1);
  color: var(--growth-green);
}

.growth-v2-icon.is-yellow {
  background: rgba(251, 191, 36, 0.1);
  color: var(--growth-yellow);
}

.growth-v2-card-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(89, 144, 189, 0.55);
}

.growth-v2-card-label.is-coral {
  color: rgba(255, 78, 70, 0.7);
}

.growth-v2-card-label.is-green {
  color: rgba(93, 202, 165, 0.7);
}

.growth-v2-card-value {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.growth-v2-card-value.is-coral {
  color: var(--growth-accent);
}

.growth-v2-card-value.is-green {
  color: var(--growth-green);
}

.growth-v2-card-sub {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.34);
}

.growth-v2-card-sub.is-green {
  color: rgba(93, 202, 165, 0.8);
}

.growth-v2-card-sub.is-yellow {
  color: rgba(251, 191, 36, 0.78);
}

.growth-v2-progress {
  margin-top: 12px;
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.growth-v2-progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 78, 70, 0.95), rgba(251, 191, 36, 0.95));
}

.growth-v2-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.growth-v2-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.growth-v2-card-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.growth-v2-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.growth-v2-pill.is-coral {
  background: rgba(255, 78, 70, 0.1);
  border: 0.5px solid rgba(255, 78, 70, 0.22);
  color: rgba(255, 78, 70, 0.92);
}

.growth-v2-pill.is-danger {
  background: rgba(255, 78, 70, 0.12);
  border: 0.5px solid rgba(255, 78, 70, 0.22);
  color: rgba(255, 78, 70, 0.95);
  letter-spacing: 0.08em;
}

.growth-v2-table-head {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 60px 80px;
  gap: 12px;
  padding: 0 10px 10px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(89, 144, 189, 0.4);
}

.growth-v2-rank-list {
  display: grid;
  gap: 10px;
}

.growth-v2-rank-row {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 60px 80px;
  gap: 12px;
  align-items: center;
  padding: 12px 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 0.5px solid rgba(89, 144, 189, 0.08);
  overflow: hidden;
}

.growth-v2-rank-row.is-top {
  background: rgba(255, 78, 70, 0.06);
  border-color: rgba(255, 78, 70, 0.15);
}

.growth-v2-rank-pos {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
}

.growth-v2-rank-row.is-top .growth-v2-rank-pos {
  color: rgba(255, 78, 70, 0.95);
}

.growth-v2-rank-vendor {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.growth-v2-rank-avatar {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.95);
  flex: 0 0 32px;
}

.growth-v2-rank-avatar.is-coral {
  background: linear-gradient(135deg, rgba(255, 78, 70, 0.95), rgba(255, 122, 116, 0.36));
}

.growth-v2-rank-avatar.is-blue {
  background: rgba(89, 144, 189, 0.18);
  color: rgba(89, 144, 189, 0.95);
}

.growth-v2-rank-avatar.is-green {
  background: rgba(93, 202, 165, 0.18);
  color: rgba(93, 202, 165, 0.95);
}

.growth-v2-rank-avatar.is-yellow {
  background: rgba(251, 191, 36, 0.18);
  color: rgba(251, 191, 36, 0.95);
}

.growth-v2-rank-name {
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.growth-v2-rank-sales,
.growth-v2-rank-value {
  text-align: right;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
  font-variant-numeric: tabular-nums;
}

.growth-v2-rank-row.is-top .growth-v2-rank-sales,
.growth-v2-rank-row.is-top .growth-v2-rank-value {
  color: rgba(255, 78, 70, 0.9);
}

.growth-v2-rank-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: rgba(89, 144, 189, 0.12);
}

.growth-v2-rank-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 78, 70, 0.95), rgba(251, 191, 36, 0.95));
}

.growth-v2-rank-bar span.is-blue {
  background: linear-gradient(90deg, rgba(89, 144, 189, 0.92), rgba(89, 144, 189, 0.5));
}

.growth-v2-rank-bar span.is-green {
  background: linear-gradient(90deg, rgba(93, 202, 165, 0.92), rgba(93, 202, 165, 0.55));
}

.growth-v2-rank-bar span.is-yellow {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.92), rgba(251, 191, 36, 0.55));
}

.growth-v2-stack {
  display: grid;
  gap: 12px;
}

.growth-v2-exec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.growth-v2-pace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.growth-v2-mini-card {
  text-align: center;
  padding: 14px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid rgba(89, 144, 189, 0.08);
}

.growth-v2-mini-card.is-critical {
  background: rgba(255, 78, 70, 0.04);
  border-color: rgba(255, 78, 70, 0.18);
}

.growth-v2-mini-card.is-critical .growth-v2-mini-label {
  color: rgba(255, 78, 70, 0.7);
}

.growth-v2-mini-card.is-critical .growth-v2-mini-value {
  color: var(--growth-accent);
}

.growth-v2-mini-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(89, 144, 189, 0.45);
}

.growth-v2[data-growth-view="dashboard"]
  .growth-v2-section[aria-label="Resultado do mês"]
  .growth-v2-grid
  > article:nth-child(3) {
  display: none;
}

.growth-v2[data-growth-view="dashboard"] .growth-v2-realizado-progress {
  margin-top: 12px;
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.growth-v2[data-growth-view="dashboard"] .growth-v2-realizado-progress > span {
  display: block;
  height: 100%;
  width: var(--growth-realizado-progress, 0%);
  background: linear-gradient(90deg, rgba(255, 78, 70, 0.95), rgba(251, 191, 36, 0.95));
}

.growth-v2[data-growth-view="dashboard"] .growth-v2-realizado-sub {
  margin-top: 8px;
  font-size: 10px;
  color: rgba(255, 78, 70, 0.6);
  letter-spacing: 0.02em;
}

.growth-v2[data-growth-view="dashboard"] .growth-v2-card.is-forecast {
  background: rgba(93, 202, 165, 0.04);
  border-color: rgba(93, 202, 165, 0.12);
}

.growth-v2[data-growth-view="dashboard"] .growth-v2-card.is-forecast .growth-v2-card-label {
  color: rgba(93, 202, 165, 0.7);
}

.growth-v2[data-growth-view="dashboard"] .growth-v2-card.is-forecast .growth-v2-card-value {
  color: rgba(93, 202, 165, 0.95);
}

.growth-v2[data-growth-view="dashboard"] .growth-v2-card.is-forecast .growth-v2-icon {
  background: rgba(93, 202, 165, 0.1);
  color: var(--growth-green);
}

.growth-v2-skeleton {
  position: relative;
  color: transparent !important;
  user-select: none;
}

.growth-v2-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 45%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: growth-shimmer 1.1s ease-in-out infinite;
  pointer-events: none;
}

@keyframes growth-shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

body[data-page="growth"] [data-growth-crm-state="loading"] .growth-v2-card-value,
body[data-page="growth"] [data-growth-crm-state="loading"] .growth-v2-rank-sales,
body[data-page="growth"] [data-growth-crm-state="loading"] .growth-v2-rank-value,
body[data-page="growth"] [data-growth-crm-state="loading"] .growth-v2-last-value,
body[data-page="growth"] [data-growth-crm-state="loading"] .growth-v2-last-sub {
  letter-spacing: 0;
}

body[data-page="growth"] [data-growth-crm-state="loading"] .growth-v2-rank-row .growth-v2-rank-bar span {
  width: 0% !important;
}

/* removed: exec mini-card label override (the "Execução do dia" grid no longer exists) */

@media (max-width: 980px) {
  .growth-v2 {
    padding: 22px 22px;
  }
}

@media (max-width: 820px) {
  .growth-v2[data-growth-view="dashboard"] .growth-v2-section[aria-label="Indicadores comerciais"] .growth-v2-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .growth-v2 {
    padding: 20px 16px;
  }

  .growth-v2-grid-4,
  .growth-v2-grid-3,
  .growth-v2[data-growth-view="dashboard"] .growth-v2-section[aria-label="Indicadores comerciais"] .growth-v2-grid-4,
  .growth-v2[data-growth-view="dashboard"] .growth-v2-section[aria-label="Indicadores comerciais"] .growth-v2-grid-3 {
    grid-template-columns: 1fr;
  }

  .growth-v2-two-col {
    grid-template-columns: 1fr;
  }
}

.growth-v2-mini-value {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.growth-v2-last-sale {
  padding: 14px 14px;
  border-radius: 12px;
  background: rgba(255, 78, 70, 0.04);
  border: 0.5px solid rgba(255, 78, 70, 0.1);
}

.growth-v2-last-value {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.growth-v2-last-sub {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255, 78, 70, 0.75);
}

.growth-v2-leads {
  display: grid;
  gap: 10px;
}

.growth-v2-lead-row {
  width: 100%;
  border: 0;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 0.5px solid rgba(89, 144, 189, 0.08);
  border-left: 3px solid rgba(89, 144, 189, 0.24);
  color: rgba(255, 255, 255, 0.9);
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    background-color 200ms ease;
}

.growth-v2-lead-row:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 78, 70, 0.16);
}

.growth-v2-lead-row.is-danger {
  border-left-color: rgba(255, 78, 70, 0.85);
}

.growth-v2-lead-row.is-warn {
  border-left-color: rgba(251, 191, 36, 0.9);
}

.growth-v2-lead-title {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.growth-v2-lead-sub {
  margin-top: 2px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.34);
}

.growth-v2-chevron svg {
  width: 18px;
  height: 18px;
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Growth - Contratos */
.sales-copilot-shell {
  width: min(1240px, calc(100vw - 42px));
  margin: 0 auto;
  padding: 22px 0 42px;
}

.sales-copilot-top,
.sales-copilot-crud-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.sales-copilot-kicker,
.sales-copilot-crud-head span {
  color: rgba(255, 114, 108, 0.82);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sales-copilot-title {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 28px;
  line-height: 1.05;
}

.sales-copilot-subtitle {
  margin: 8px 0 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.45;
}

.sales-copilot-status {
  min-height: 34px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(89, 144, 189, 0.28);
  background: rgba(89, 144, 189, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 900;
}

.sales-copilot-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 8px 0;
  backdrop-filter: blur(12px);
}

.sales-copilot-tab {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.sales-copilot-tab.is-active {
  border-color: rgba(255, 86, 79, 0.34);
  background: rgba(255, 86, 79, 0.13);
  color: rgba(255, 255, 255, 0.94);
}

.sales-copilot-view {
  min-height: 520px;
}

.sales-copilot-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(560px, 1fr);
  gap: 14px;
}

.sales-copilot-card,
.sales-copilot-view:not([data-growth-copilot-view="copilot-vendas"]) {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(255, 86, 79, 0.08), transparent 36%),
    radial-gradient(circle at bottom left, rgba(89, 144, 189, 0.08), transparent 38%),
    rgba(13, 18, 27, 0.82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.sales-copilot-card {
  padding: 14px;
}

.sales-copilot-context {
  align-self: start;
}

.sales-copilot-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sales-copilot-card-head strong,
.sales-copilot-crud-head strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  font-weight: 950;
}

.sales-copilot-card-head span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 800;
}

.sales-copilot-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.sales-copilot-form label,
.sales-copilot-filter label {
  display: grid;
  gap: 5px;
}

.sales-copilot-form span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.sales-copilot-wide {
  grid-column: 1 / -1;
}

.sales-copilot-main {
  display: grid;
  gap: 10px;
}

.sales-copilot-actions,
.sales-copilot-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sales-copilot-stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.sales-copilot-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.sales-copilot-mode-btn {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.sales-copilot-mode-btn.is-active {
  border-color: rgba(255, 86, 79, 0.42);
  background: rgba(255, 86, 79, 0.16);
  color: rgba(255, 255, 255, 0.94);
}

.sales-copilot-stage span,
.sales-copilot-temperature span,
.sales-copilot-consent {
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 850;
}

.sales-copilot-stage strong,
.sales-copilot-temperature strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 18px;
  font-weight: 950;
  text-transform: capitalize;
}

.sales-copilot-temperature {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(89, 144, 189, 0.16);
  background: rgba(89, 144, 189, 0.08);
}

.sales-copilot-temperature small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  line-height: 1.35;
}

.sales-copilot-consent {
  margin: 10px 0 0;
  line-height: 1.4;
}

.sales-copilot-live-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sales-copilot-live-summary div,
.sales-copilot-metric {
  display: grid;
  gap: 6px;
  min-height: 64px;
  padding: 11px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
}

.sales-copilot-live-summary span,
.sales-copilot-metric span {
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.sales-copilot-live-summary strong,
.sales-copilot-metric strong {
  min-width: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.sales-copilot-analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.sales-copilot-suggestions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}

.sales-copilot-suggestion {
  padding: 13px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
}

.sales-copilot-suggestion.is-alta {
  border-color: rgba(255, 86, 79, 0.24);
  background: rgba(255, 86, 79, 0.07);
}

.sales-copilot-suggestion.is-média,
.sales-copilot-suggestion.is-media {
  border-color: rgba(242, 201, 76, 0.18);
  background: rgba(242, 201, 76, 0.055);
}

.sales-copilot-suggestion-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.sales-copilot-suggestion-top span,
.sales-copilot-suggestion-top b {
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.sales-copilot-suggestion strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  font-weight: 950;
}

.sales-copilot-suggestion p {
  margin: 8px 0 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.45;
}

.sales-copilot-transcript,
.sales-copilot-summary {
  display: grid;
  gap: 8px;
  max-height: 180px;
  overflow: auto;
  padding: 12px;
  border-radius: 14px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    rgba(0, 0, 0, 0.14);
  background-size: 24px 24px;
}

.sales-copilot-transcript p,
.sales-copilot-summary p,
.sales-copilot-muted,
.sales-copilot-empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.sales-copilot-manual {
  margin: 10px 0;
  min-height: 90px;
}

.sales-copilot-view:not([data-growth-copilot-view="copilot-vendas"]) {
  padding: 18px;
}

.sales-copilot-crud-list {
  display: grid;
  gap: 10px;
}

.sales-copilot-grid-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.sales-copilot-crud-item {
  display: grid;
  gap: 8px;
  padding: 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.sales-copilot-crud-item span,
.sales-copilot-crud-item small {
  color: rgba(255, 114, 108, 0.78);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.sales-copilot-crud-item strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
}

.sales-copilot-crud-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .sales-copilot-top,
  .sales-copilot-crud-head {
    display: grid;
  }

  .sales-copilot-layout {
    grid-template-columns: 1fr;
  }

  .sales-copilot-form {
    grid-template-columns: 1fr;
  }

  .sales-copilot-live-summary {
    grid-template-columns: 1fr;
  }
}

.growth-contracts-new {
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  background: #ff4e46;
  color: #ffffff;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  white-space: nowrap;
}

.growth-contracts-new:hover,
.growth-contracts-new:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(255, 78, 70, 0.22);
  filter: brightness(0.98);
}

.growth-contracts-searchbar {
  margin-top: 12px;
}

.growth-contracts-search {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(89, 144, 189, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.growth-contracts-search::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.growth-contracts-search:focus {
  border-color: rgba(255, 78, 70, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 78, 70, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.growth-contracts-tabs {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.growth-contracts-tab {
  border: 0.5px solid rgba(89, 144, 189, 0.18);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 650;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.growth-contracts-tab:hover,
.growth-contracts-tab:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 78, 70, 0.28);
  color: rgba(255, 255, 255, 0.9);
}

.growth-contracts-tab.is-active {
  background: rgba(255, 78, 70, 0.14);
  border-color: rgba(255, 78, 70, 0.42);
  color: rgba(255, 78, 70, 0.95);
}

.growth-contracts-table-card {
  margin-top: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid rgba(89, 144, 189, 0.08);
  overflow: hidden;
}

.growth-contracts-table {
  width: 100%;
  display: grid;
}

.growth-contracts-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 160px 180px 120px 140px 56px;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}

.growth-contracts-row + .growth-contracts-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.growth-contracts-head {
  background: rgba(255, 255, 255, 0.02);
  padding-top: 14px;
  padding-bottom: 14px;
}

.growth-contracts-head span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}

.growth-contracts-name {
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.growth-contracts-cpf {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

.growth-contracts-value {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 10px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.growth-contracts-value strong {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.growth-contracts-old {
  color: rgba(255, 255, 255, 0.34);
  text-decoration: line-through;
  font-size: 12px;
}

.growth-contracts-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-variant-numeric: tabular-nums;
}

.growth-contract-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.growth-contract-badge.is-draft {
  background: rgba(89, 144, 189, 0.12);
  border-color: rgba(89, 144, 189, 0.22);
  color: #5990bd;
}

.growth-contract-badge.is-sent {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.22);
  color: #fbbf24;
}

.growth-contract-badge.is-signed {
  background: rgba(93, 202, 165, 0.12);
  border-color: rgba(93, 202, 165, 0.22);
  color: #5dcaa5;
}

.growth-contracts-empty {
  padding: 26px 18px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.55);
}

.growth-contracts-empty strong {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.growth-contracts-empty-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(89, 144, 189, 0.08);
  border: 0.5px solid rgba(89, 144, 189, 0.14);
  display: grid;
  place-items: center;
  color: rgba(89, 144, 189, 0.72);
}

.growth-contracts-empty-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.growth-contracts-loading {
  padding: 18px 16px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 650;
}

.growth-contract-modal {
  border: 0.5px solid rgba(89, 144, 189, 0.12);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

.growth-contract-modal .modal-field > span {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(89, 144, 189, 0.7);
}

.growth-contract-modal .modal-input {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(89, 144, 189, 0.1);
}

.growth-contract-modal .modal-input:focus {
  outline: none;
  border-color: rgba(255, 78, 70, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 78, 70, 0.12);
}

.growth-contract-money-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.growth-contract-money {
  position: relative;
  display: grid;
}

.growth-contract-money span {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.36);
  font-weight: 700;
  font-size: 13px;
  pointer-events: none;
}

.growth-contract-money input {
  padding-left: 34px;
}

.growth-contract-phone {
  display: flex;
  gap: 10px;
  align-items: center;
}

.growth-contract-country {
  flex: 0 0 150px;
  padding-right: 34px;
  cursor: pointer;
}

.growth-contract-phone input.modal-input {
  flex: 1 1 auto;
  min-width: 0;
}

.growth-contract-feedback {
  margin-top: 10px;
  color: rgba(255, 78, 70, 0.92);
  font-size: 12px;
  font-weight: 700;
}

.growth-contract-btn {
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.growth-contract-btn:hover,
.growth-contract-btn:focus-visible {
  transform: translateY(-1px);
}

.growth-contract-btn.is-outline {
  background: transparent;
  border: 0.5px solid rgba(89, 144, 189, 0.18);
  color: rgba(255, 255, 255, 0.75);
}

.growth-contract-btn.is-blue {
  background: rgba(89, 144, 189, 0.16);
  border: 0.5px solid rgba(89, 144, 189, 0.28);
  color: rgba(255, 255, 255, 0.9);
}

.growth-contract-btn.is-coral {
  background: #ff4e46;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(255, 78, 70, 0.18);
}

.growth-contract-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.growth-contract-confirm-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.6;
}

.growth-contract-history {
  display: grid;
  gap: 8px;
}

.growth-contract-history-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid rgba(89, 144, 189, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 650;
}

@media (max-width: 900px) {
  .growth-contracts-row {
    grid-template-columns: minmax(0, 1.2fr) 150px 160px 110px 120px 56px;
  }
}

@media (max-width: 720px) {
  .growth-contract-money-row {
    grid-template-columns: 1fr;
  }

  .growth-contracts-row {
    grid-template-columns: minmax(0, 1.3fr) 1fr 56px;
    grid-template-areas:
      "name name actions"
      "cpf value actions"
      "status date actions";
    row-gap: 6px;
  }

  .growth-contracts-row > :nth-child(1) {
    grid-area: name;
  }

  .growth-contracts-row > :nth-child(2) {
    grid-area: cpf;
  }

  .growth-contracts-row > :nth-child(3) {
    grid-area: value;
    justify-content: flex-start;
  }

  .growth-contracts-row > :nth-child(4) {
    grid-area: status;
  }

  .growth-contracts-row > :nth-child(5) {
    grid-area: date;
  }

  .growth-contracts-row > :nth-child(6) {
    grid-area: actions;
  }

  .growth-contracts-head {
    display: none;
  }
}

@media (max-width: 980px) {
  .growth-v2 {
    width: 100%;
    max-width: 100%;
  }

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

@media (max-width: 860px) {
  .growth-v2-two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .growth-v2 {
    padding: 20px 18px;
  }

  .growth-v2-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .growth-v2-head-right {
    width: 100%;
    justify-content: space-between;
  }

  .growth-v2-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------
   Teacher: Controle Pedagógico
---------------------------- */
.pedagogico-container {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 24px 32px;
}

.pedagogico-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.pedagogico-subtitle {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  line-height: 1.45;
}

.pedagogico-status {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.pedagogico-status[data-tone="success"] {
  color: rgba(93, 202, 165, 0.9);
}

.pedagogico-status[data-tone="error"] {
  color: rgba(255, 78, 70, 0.95);
}

.pedagogico-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pedagogico-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid rgba(89, 144, 189, 0.08);
  cursor: pointer;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.pedagogico-item {
  pointer-events: auto;
}

.pedagogico-item * {
  /* Garante que o clique sempre "cai" no botão/card pai (evita target em span/div). */
  pointer-events: none;
}

.pedagogico-item:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 78, 70, 0.16);
  background: rgba(255, 255, 255, 0.035);
}

.pedagogico-item.is-future {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.pedagogico-item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pedagogico-item-date {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.pedagogico-item-student {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.95);
}

.pedagogico-item-title {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
}

.pedagogico-badge {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pedagogico-badge.is-yellow {
  background: rgba(251, 191, 36, 0.15);
  color: #FBBF24;
  border-color: rgba(251, 191, 36, 0.22);
}

.pedagogico-badge.is-green {
  background: rgba(93, 202, 165, 0.15);
  color: #5DCAA5;
  border-color: rgba(93, 202, 165, 0.22);
}

.pedagogico-badge.is-blue {
  background: rgba(89, 144, 189, 0.15);
  color: #5990BD;
  border-color: rgba(89, 144, 189, 0.22);
}

.pedagogico-empty,
.pedagogico-error {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.pedagogico-error {
  color: rgba(255, 78, 70, 0.85);
}

.pedagogico-drawer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.pedagogico-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.pedagogico-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pedagogico-drawer-inner {
  position: relative;
  width: min(480px, 92vw);
  height: 100vh;
  background: #0d1a2a;
  border-left: 0.5px solid rgba(89, 144, 189, 0.12);
  box-shadow: -24px 0 54px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden; /* garante que o scroll fique somente no body */
}

.pedagogico-drawer.is-open .pedagogico-drawer-inner {
  transform: translateX(0);
}

.pedagogico-drawer-head {
  padding: 18px 18px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 0.5px solid rgba(89, 144, 189, 0.08);
}

.pedagogico-drawer-title {
  font-weight: 750;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.95);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pedagogico-drawer-autosave {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

.pedagogico-drawer-close {
  border: 0;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
}

.pedagogico-drawer-body {
  flex: 1 1 auto;
  min-height: 0; /* necessário para scroll funcionar dentro de flex */
  padding: 0;
  overflow: hidden; /* scroll fica no ped-scroll */
}

/* Drawer (novo) */
.ped-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ped-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
  overscroll-behavior: contain;
}

.ped-progress {
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.ped-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #5990BD, #5DCAA5);
  transition: width 160ms ease;
}

.ped-lesson-summary {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  padding: 10px 12px;
  border-radius: 12px;
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.ped-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 10px;
  text-transform: none;
  letter-spacing: 0;
}

.ped-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
}

[data-ped-dynamic-fields] {
  display: block;
  visibility: visible;
  opacity: 1;
  height: auto;
  min-height: 0;
}

.ped-field {
  display: flex;
  flex-direction: column;
}

.ped-sel-wrap {
  position: relative;
}

.ped-sel {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 36px 10px 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  outline: none;
}

.ped-arr {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.22);
  font-size: 11px;
  pointer-events: none;
}

.ped-in,
.ped-ta {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  outline: none;
}

.ped-ta {
  resize: vertical;
  min-height: 64px;
}

.ped-sel:focus,
.ped-in:focus,
.ped-ta:focus {
  border-color: rgba(89, 144, 189, 0.45);
}

.ped-status-pill {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 0.5px solid rgba(255, 255, 255, 0.08);
}

.ped-status-pill.hidden {
  display: none;
}

.ped-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 0.5px solid rgba(255, 255, 255, 0.08);
}

.ped-pill-red {
  background: rgba(255, 78, 70, 0.12);
  border-color: rgba(255, 78, 70, 0.22);
  color: #FF4E46;
}

.ped-pill-yellow {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.22);
  color: #FBBF24;
}

.ped-pill-green {
  background: rgba(93, 202, 165, 0.12);
  border-color: rgba(93, 202, 165, 0.22);
  color: #5DCAA5;
}

.ped-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ped-stars {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.ped-star {
  border: 0;
  background: transparent;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: color 0.1s ease;
  padding: 0;
  line-height: 1;
}

.ped-star:hover,
.ped-star:focus-visible {
  color: rgba(251, 191, 36, 0.9);
}

.ped-star.on {
  color: #FBBF24;
}

.ped-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ped-chip {
  padding: 5px 12px;
  border-radius: 20px;
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  cursor: pointer;
}

.ped-chip.on {
  border-color: #5990BD;
  background: rgba(89, 144, 189, 0.12);
  color: #5990BD;
}

.ped-infobox {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.ped-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ped-reveal {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.ped-reveal.is-shown {
  opacity: 1;
  transform: translateY(0);
}

.ped-reveal.is-shown .ped-field,
.ped-reveal.is-shown .ped-grid2,
.ped-reveal.is-shown .ped-infobox,
.ped-reveal.is-shown .ped-multisel,
.ped-reveal.is-shown .ped-multisel-wrap {
  animation: pedFadeUp 220ms ease both;
}

@keyframes pedFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ped-footer {
  flex: 0 0 auto;
  background: #0d1a2a;
  border-top: 0.5px solid rgba(255, 255, 255, 0.05);
  padding: 16px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.ped-btn-save {
  flex: 0 0 auto;
  min-width: 240px;
  padding: 10px;
  background: #FF4E46;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ped-btn-close {
  flex: 0 0 auto;
  min-width: 110px;
  padding: 10px 14px;
  background: transparent;
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  cursor: pointer;
}

.ped-multisel-wrap {
  position: relative;
}

.ped-multisel-trigger {
  width: 100%;
  padding: 10px 36px 10px 12px;
  border-radius: 10px;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}

.ped-multisel-badge {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 78, 70, 0.95);
  color: #fff;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Portal dropdown (rendered in document.body) */
.ped-portal-dropdown {
  pointer-events: auto;
  background: #0f1d2d;
  background-color: #0f1d2d;
  opacity: 1;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  max-height: 280px;
  overflow-y: auto;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  filter: none;
  mix-blend-mode: normal;
  isolation: isolate;
  transform: translateZ(0);
}

.ped-portal-dropdown-surface {
  pointer-events: auto;
  background: #0f1d2d;
  opacity: 1;
  border-radius: inherit;
  overflow: hidden;
}

.ped-ta--conteudo {
  min-height: 72px;
}

.ped-ta--obs {
  min-height: 56px;
}

@media (max-width: 520px) {
  .ped-grid2 {
    grid-template-columns: 1fr;
  }
}

.ped-multisel-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0f1d2d;
  color: rgba(255, 255, 255, 0.92);
  border: 0;
  text-align: left;
  cursor: pointer;
  pointer-events: auto;
  padding: 12px 14px;
  font-size: 13px;
}

.ped-multisel-option:hover {
  background: #16283d;
}

.ped-multisel-check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #fff;
  flex: 0 0 auto;
}

.ped-multisel-option.is-on.is-red .ped-multisel-check {
  background: #FF4E46;
  border-color: #FF4E46;
}

.ped-multisel-option.is-on.is-yellow .ped-multisel-check {
  background: #FBBF24;
  border-color: #FBBF24;
}

.ped-multisel-option.is-on.is-green .ped-multisel-check {
  background: #5DCAA5;
  border-color: #5DCAA5;
}

.ped-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pedagogico-radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pedagogico-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pedagogico-radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid rgba(89, 144, 189, 0.08);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  user-select: none;
  font-size: 12px;
}

.pedagogico-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pedagogico-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid rgba(89, 144, 189, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}

.pedagogico-chip.is-active {
  background: rgba(89, 144, 189, 0.25);
  border-color: rgba(89, 144, 189, 0.85);
  color: #5990BD;
}

.pedagogico-divider {
  height: 1px;
  background: rgba(89, 144, 189, 0.08);
  margin: 8px 0;
}

.pedagogico-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 10px;
}

.pedagogico-status-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pedagogico-seg {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.pedagogico-seg-btn {
  border-radius: 12px;
  padding: 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.pedagogico-seg-btn:hover {
  transform: translateY(-1px);
}

.pedagogico-seg[data-tone="green"] .pedagogico-seg-btn.is-active {
  border-color: rgba(93, 202, 165, 0.55);
  background: rgba(93, 202, 165, 0.14);
  color: #5DCAA5;
}

.pedagogico-seg[data-tone="blue"] .pedagogico-seg-btn.is-active {
  border-color: rgba(89, 144, 189, 0.6);
  background: rgba(89, 144, 189, 0.14);
  color: #5990BD;
}

.pedagogico-seg[data-tone="amber"] .pedagogico-seg-btn.is-active {
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(251, 191, 36, 0.12);
  color: #FBBF24;
}

.pedagogico-seg[data-tone="coral"] .pedagogico-seg-btn.is-active {
  border-color: rgba(255, 78, 70, 0.55);
  background: rgba(255, 78, 70, 0.12);
  color: #FF4E46;
}

.status-btn {
  border-radius: 12px;
  padding: 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease, transform 120ms ease;
}

.status-btn:hover {
  transform: translateY(-1px);
}

.status-btn.is-selected.selected-realizada {
  border-color: #5DCAA5;
  background: rgba(93, 202, 165, 0.15);
  color: #5DCAA5;
}

.status-btn.is-selected.selected-falta {
  border-color: #FF4E46;
  background: rgba(255, 78, 70, 0.15);
  color: #FF4E46;
}

.status-btn.is-selected.selected-remarcada {
  border-color: #FBBF24;
  background: rgba(251, 191, 36, 0.15);
  color: #FBBF24;
}

.status-btn.is-selected.selected-cancelada {
  border-color: #6b7280;
  background: rgba(107, 114, 128, 0.15);
  color: #cbd5e1;
}

.pedagogico-stars-lg {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.pedagogico-star-lg {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #374151;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.pedagogico-star-lg:hover {
  transform: translateY(-1px);
}

.pedagogico-star-lg.is-active {
  color: #FBBF24;
  border-color: rgba(251, 191, 36, 0.22);
  background: rgba(251, 191, 36, 0.08);
}

.pedagogico-reveal {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.pedagogico-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.pedagogico-drawer-footer {
  position: sticky;
  bottom: 0;
  background: #0f1d2d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin: 18px -18px -18px;
}

.pedagogico-drawer-footer .button {
  flex: 0 0 auto;
}

.pedagogico-stars {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.pedagogico-star {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 0.5px solid rgba(89, 144, 189, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.pedagogico-star.is-active {
  color: #FBBF24;
  border-color: rgba(251, 191, 36, 0.22);
  background: rgba(251, 191, 36, 0.08);
}

.pedagogico-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pedagogico-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 4px;
}

@media (max-width: 820px) {
  .pedagogico-container {
    padding: 20px 18px;
  }

  .pedagogico-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .pedagogico-grid {
    grid-template-columns: 1fr;
  }
}

/* Admin > Controle Pedagógico (gestão) */
.admin-ped-shell {
  width: 100%;
  display: grid;
  gap: 14px;
}

.admin-ped-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-ped-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-ped-actionmenu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.admin-ped-actionmenu-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 14, 0.98);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  display: grid;
  gap: 6px;
  z-index: 40;
}

.admin-ped-actionmenu-item {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.86);
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.admin-ped-actionmenu-item:hover {
  background: rgba(89, 144, 189, 0.14);
  border-color: rgba(89, 144, 189, 0.28);
}

.admin-ped-title {
  margin: 0;
  font-family: "Inter", "Plus Jakarta Sans", "Avenir Next", sans-serif;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: #ffffff;
}

.admin-ped-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.52);
  max-width: 66ch;
}

.admin-ped-kpis {
  display: grid;
  gap: 10px;
}

.admin-ped-kpis-hero {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-ped-kpis-mini {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.admin-ped-kpi {
  padding: 14px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-ped-kpi.is-hero {
  background: radial-gradient(1200px 320px at 10% 10%, rgba(89, 144, 189, 0.18), transparent 45%),
    rgba(255, 255, 255, 0.02);
  border-color: rgba(89, 144, 189, 0.18);
}

.admin-ped-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-ped-kpi-label {
  font-size: 11px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-ped-kpi-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-ped-kpi-badge.is-danger {
  background: rgba(232, 69, 60, 0.16);
  border-color: rgba(232, 69, 60, 0.35);
}

.admin-ped-kpi-badge.is-warn {
  background: rgba(232, 168, 56, 0.14);
  border-color: rgba(232, 168, 56, 0.28);
}

.admin-ped-kpi-value {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.94);
  font-variant-numeric: tabular-nums;
}

.admin-ped-kpi-value.is-mini {
  font-size: 18px;
  margin-top: 10px;
}

.admin-ped-kpi-sub {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.55);
  min-height: 16px;
}

.admin-ped-kpi-action {
  margin-top: 12px;
  width: 100%;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.admin-ped-kpi-action:hover {
  background: rgba(89, 144, 189, 0.14);
  border-color: rgba(89, 144, 189, 0.28);
}

.admin-ped-nav {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.admin-ped-groups {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-ped-group {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.62);
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.admin-ped-group.is-active {
  background: rgba(89, 144, 189, 0.14);
  border-color: rgba(89, 144, 189, 0.3);
  color: rgba(255, 255, 255, 0.92);
}

.admin-ped-subtabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-ped-subtab {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.12);
  color: rgba(255, 255, 255, 0.62);
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.admin-ped-subtab.is-active {
  background: rgba(155, 109, 214, 0.14);
  border-color: rgba(155, 109, 214, 0.28);
  color: rgba(255, 255, 255, 0.92);
}

.admin-ped-op {
  display: grid;
  gap: 12px;
}

.admin-ped-op-block {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.admin-ped-op-title {
  font-size: 13px;
  font-weight: 950;
  color: rgba(255, 255, 255, 0.92);
}

.admin-ped-op-sub {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.55);
}

.admin-ped-workqueue {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.admin-ped-workitem {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.14);
}

.admin-ped-workitem.is-ok {
  opacity: 0.75;
}

.admin-ped-workitem-title {
  font-size: 12px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
}

.admin-ped-workitem-meta {
  margin-top: 8px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-ped-op-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-ped-op-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.admin-ped-op-cardhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
}

.admin-ped-op-cardtitle {
  font-size: 13px;
  font-weight: 950;
  color: rgba(255, 255, 255, 0.92);
}

.admin-ped-op-cardsub {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.55);
}

.admin-ped-agendaquick {
  display: grid;
  gap: 8px;
}

.admin-ped-agendaquick-item {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.14);
  cursor: pointer;
}

.admin-ped-agendaquick-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.admin-ped-agendaquick-time {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.88);
}

.admin-ped-agendaquick-title {
  font-size: 12px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
}

.admin-ped-agendaquick-sub {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.55);
}

.admin-ped-qualitymini {
  display: grid;
  gap: 10px;
}

.admin-ped-qualitymini-metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.14);
}

.admin-ped-qualitymini-metric span {
  font-size: 12px;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.6);
}

.admin-ped-qualitymini-metric strong {
  font-size: 13px;
  font-weight: 950;
  color: rgba(255, 255, 255, 0.92);
  font-variant-numeric: tabular-nums;
}

.admin-ped-qualitymini-note {
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.55);
}

.admin-ped-mini-list {
  display: grid;
  gap: 10px;
}

.admin-ped-mini-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.14);
}

.admin-ped-mini-title {
  font-size: 12px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.9);
}

.admin-ped-mini-sub {
  font-size: 12px;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
}

.admin-ped-empty-inline {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.01);
}

.admin-ped-empty-title {
  font-size: 12px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
}

.admin-ped-empty-sub {
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.55);
}

.admin-ped-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-ped-link-block {
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 10px;
}

.admin-ped-link-blockhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-ped-link-blocktitle {
  font-size: 12px;
  font-weight: 950;
  color: rgba(255, 255, 255, 0.92);
}

.admin-ped-link-blocksub {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.55);
}

.admin-ped-link-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(155, 109, 214, 0.14);
  border: 1px solid rgba(155, 109, 214, 0.28);
}

.admin-ped-link-list {
  display: grid;
  gap: 10px;
}

.admin-ped-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.14);
}

.admin-ped-link-row:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.admin-ped-link-title {
  font-size: 12px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
}

.admin-ped-link-sub {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.55);
}

.admin-ped-link-meta {
  margin-top: 8px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-ped-link-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .admin-ped-kpis-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-ped-kpis-mini {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-ped-op-grid {
    grid-template-columns: 1fr;
  }

  .admin-ped-links-grid {
    grid-template-columns: 1fr;
  }

  .admin-ped-agendaquick-item {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .admin-ped-agendaquick-item .admin-ped-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.admin-ped-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.admin-ped-metric {
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-ped-metric-label {
  font-size: 11px;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.42);
}

.admin-ped-metric-value {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
  font-variant-numeric: tabular-nums;
}

.admin-ped-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-ped-tab {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.62);
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.admin-ped-tab.is-active {
  background: rgba(89, 144, 189, 0.14);
  border-color: rgba(89, 144, 189, 0.3);
  color: rgba(255, 255, 255, 0.92);
}

.admin-ped-status {
  min-height: 18px;
  font-size: 13px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.58);
  text-align: right;
}

.admin-ped-status[data-tone="error"] {
  color: rgba(255, 118, 110, 0.96);
}

.admin-ped-panel {
  display: none;
}

.admin-ped-panel.is-active {
  display: block;
}

.admin-ped-surface {
  padding: 14px;
  overflow: hidden;
}

.admin-ped-panelhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.admin-ped-panelhead-title {
  font-size: 13px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
}

.admin-onboarding-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 12px;
  align-items: start;
}

.admin-onboarding-sectiontitle {
  font-size: 12px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
}

.admin-onboarding-editor,
.admin-onboarding-perf {
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.admin-onboarding-contents {
  display: grid;
}

.admin-onboarding-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 12px;
}

.admin-onboarding-content + .admin-onboarding-content {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-onboarding-content-title {
  font-size: 13px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
}

.admin-onboarding-content-sub {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.52);
}

.admin-onboarding-content-meta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-onboarding-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-onboarding-perf-table {
  display: grid;
}

.admin-onboarding-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 140px auto;
  gap: 10px;
  align-items: center;
  padding: 12px 10px;
  border-radius: 14px;
}

.admin-onboarding-row.is-head {
  padding: 10px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.55);
}

.admin-onboarding-row + .admin-onboarding-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-onboarding-cell-title {
  font-size: 12px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.92);
}

.admin-onboarding-cell-sub {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.52);
}

.admin-onboarding-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.admin-onboarding-modal-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
}

.admin-onboarding-modal-check input {
  width: 16px;
  height: 16px;
  accent-color: rgba(91, 91, 255, 0.9);
}

.admin-onboarding-modal-sectiontitle {
  margin: 14px 0 10px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.9);
}

.admin-onboarding-quizbuilder {
  margin-top: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 10px;
}

.admin-onboarding-quizbuilder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-onboarding-quizbuilder-title {
  font-size: 12px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.9);
}

.admin-onboarding-quizbuilder-qs {
  display: grid;
  gap: 10px;
}

.admin-onboarding-q {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  display: grid;
  gap: 10px;
}

.admin-onboarding-q-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-onboarding-q-num {
  font-size: 12px;
  font-weight: 950;
  color: rgba(255, 255, 255, 0.92);
}

.admin-onboarding-q-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px auto;
  gap: 10px;
  align-items: end;
}

.admin-onboarding-q-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 850;
}

.admin-onboarding-q-check input {
  width: 16px;
  height: 16px;
  accent-color: rgba(91, 91, 255, 0.9);
}

.admin-onboarding-q-options {
  display: grid;
  gap: 10px;
}

.admin-onboarding-q-options-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-onboarding-q-options-title {
  font-size: 11px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-onboarding-q-options-list {
  display: grid;
  gap: 8px;
}

.admin-onboarding-q-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.admin-onboarding-detail {
  display: grid;
  gap: 14px;
}

.admin-onboarding-detail-sectiontitle {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.9);
}

.admin-onboarding-detail-row + .admin-onboarding-detail-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-onboarding-detail-title {
  font-size: 13px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
}

.admin-onboarding-detail-meta {
  margin-top: 8px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-onboarding-detail-quiz {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 12px;
}

.admin-onboarding-detail-quiz summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.9);
}

.admin-onboarding-detail-quiz-body {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.admin-onboarding-detail-answer {
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.18);
}

.admin-onboarding-detail-answer-q {
  font-size: 12px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
}

.admin-onboarding-detail-answer-meta {
  margin-top: 8px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-onboarding-detail-answer-sub {
  margin-top: 8px;
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 960px) {
  .admin-onboarding-grid {
    grid-template-columns: 1fr;
  }
  .admin-onboarding-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .admin-onboarding-modal-grid {
    grid-template-columns: 1fr;
  }
  .admin-onboarding-q-grid {
    grid-template-columns: 1fr;
  }
}

.admin-ped-overview {
  display: grid;
  gap: 12px;
}

.admin-ped-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-ped-overview-card {
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 10px;
}

.admin-ped-overview-title {
  font-size: 12px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.9);
}

.admin-ped-overview-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.admin-ped-overview-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.55);
}

.admin-ped-overview-item strong {
  font-weight: 850;
  color: rgba(255, 255, 255, 0.9);
}

.admin-ped-list {
  display: grid;
}

.admin-ped-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 12px;
}

.admin-ped-row + .admin-ped-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-ped-row-title {
  font-size: 14px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.92);
}

.admin-ped-row-sub {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.52);
}

.admin-ped-row-meta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-ped-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-ped-reports-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-ped-report {
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 10px;
}

.admin-ped-report-title {
  font-size: 13px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
}

.admin-ped-report-sub {
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.55);
}

.admin-ped-filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 14px;
}

.admin-ped-filter {
  display: grid;
  gap: 6px;
}

.admin-ped-filter span {
  font-size: 11px;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.42);
}

.admin-ped-select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.92);
  outline: none;
}

.admin-ped-select:focus {
  border-color: rgba(89, 144, 189, 0.5);
  box-shadow: 0 0 0 4px rgba(89, 144, 189, 0.12);
}

.admin-ped-agenda {
  display: grid;
  gap: 12px;
}

.admin-ped-teacher-block {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.admin-ped-teacher-head {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-ped-week {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
}

.admin-ped-day-col {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 132px;
}

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

.admin-ped-day-head {
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-ped-day-items {
  padding: 10px 10px 12px;
  display: grid;
  gap: 10px;
}

.admin-ped-day-empty {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.22);
  padding: 10px 0;
  text-align: center;
}

.admin-ped-slot {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 18, 28, 0.6);
  border-radius: 14px;
  padding: 10px 10px;
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 6px;
}

.admin-ped-slot:hover,
.admin-ped-slot:focus-visible {
  border-color: rgba(89, 144, 189, 0.32);
  background: rgba(89, 144, 189, 0.08);
}

.admin-ped-slot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-ped-slot-time {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.86);
  font-variant-numeric: tabular-nums;
}

.admin-ped-slot-badge {
  font-size: 10px;
  font-weight: 850;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
}

.admin-ped-slot-badge.is-active {
  border-color: rgba(93, 202, 165, 0.25);
  background: rgba(93, 202, 165, 0.12);
  color: rgba(93, 202, 165, 0.95);
}

.admin-ped-slot-badge.is-paused {
  border-color: rgba(251, 191, 36, 0.22);
  background: rgba(251, 191, 36, 0.1);
  color: rgba(251, 191, 36, 0.95);
}

.admin-ped-slot-badge.is-ended {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(148, 163, 184, 0.08);
  color: rgba(203, 213, 225, 0.8);
}

.admin-ped-slot-title {
  font-size: 13px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.9);
}

.admin-ped-slot-meta {
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.5);
}

.admin-ped-empty,
.admin-ped-error {
  font-size: 13px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.52);
  padding: 10px 2px;
}

.admin-ped-error {
  color: rgba(255, 118, 110, 0.96);
}

.admin-ped-class-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 12px;
}

.admin-ped-class-row + .admin-ped-class-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-ped-class-title {
  font-size: 14px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.92);
}

.admin-ped-class-sub {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.52);
}

.admin-ped-class-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-ped-pill {
  font-size: 10px;
  font-weight: 850;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.66);
}

.admin-ped-pill.is-active {
  border-color: rgba(93, 202, 165, 0.25);
  background: rgba(93, 202, 165, 0.12);
  color: rgba(93, 202, 165, 0.95);
}

.admin-ped-pill.is-paused {
  border-color: rgba(251, 191, 36, 0.22);
  background: rgba(251, 191, 36, 0.1);
  color: rgba(251, 191, 36, 0.95);
}

.admin-ped-pill.is-ended {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(148, 163, 184, 0.08);
  color: rgba(203, 213, 225, 0.8);
}

.admin-ped-pill.is-plan {
  border-color: rgba(89, 144, 189, 0.24);
  background: rgba(89, 144, 189, 0.12);
  color: rgba(89, 144, 189, 0.95);
}

.admin-ped-pill.is-danger {
  border-color: rgba(255, 78, 70, 0.22);
  background: rgba(255, 78, 70, 0.1);
  color: rgba(255, 78, 70, 0.95);
}

.admin-ped-pill.is-warn {
  border-color: rgba(251, 191, 36, 0.22);
  background: rgba(251, 191, 36, 0.12);
  color: rgba(251, 191, 36, 0.95);
}

.admin-ped-class-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.admin-ped-action {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.78);
  height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.admin-ped-action:hover,
.admin-ped-action:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.admin-ped-action.is-muted {
  color: rgba(255, 255, 255, 0.6);
}

.admin-ped-action.is-danger {
  border-color: rgba(255, 78, 70, 0.22);
  background: rgba(255, 78, 70, 0.08);
  color: rgba(255, 78, 70, 0.95);
}

.admin-ped-action.is-warn {
  border-color: rgba(251, 191, 36, 0.22);
  background: rgba(251, 191, 36, 0.08);
  color: rgba(251, 191, 36, 0.95);
}

.admin-ped-teacher-row {
  padding: 14px 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.admin-ped-teacher-row + .admin-ped-teacher-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-ped-teacher-name {
  font-size: 14px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.92);
}

.admin-ped-teacher-stats {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.52);
}

.admin-ped-conflict-row {
  padding: 14px 12px;
  display: grid;
  gap: 6px;
}

.admin-ped-conflict-row + .admin-ped-conflict-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-ped-conflict-title {
  font-size: 13px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.9);
}

.admin-ped-conflict-sub {
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.52);
}

.admin-ped-conflict-meta {
  margin-top: 6px;
  display: inline-flex;
  gap: 8px;
  justify-content: flex-end;
}

.admin-ped-placeholder {
  padding: 22px 16px;
  text-align: center;
}

.admin-ped-placeholder-title {
  font-size: 14px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.9);
}

.admin-ped-placeholder-sub {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.5);
}

/* Create/edit class modal */
.admin-ped-modal {
  display: grid;
  gap: 12px;
}

.admin-ped-modal-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-ped-modal-field {
  display: grid;
  gap: 6px;
}

.admin-ped-modal-field > span {
  font-size: 11px;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.45);
}

.admin-ped-modal-input,
.admin-ped-modal-select,
.admin-ped-modal-textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.92);
  outline: none;
  padding: 0 12px;
  height: 40px;
}

.admin-ped-modal-textarea {
  padding: 10px 12px;
  height: auto;
  min-height: 70px;
  resize: vertical;
}

.admin-ped-modal-input:focus,
.admin-ped-modal-select:focus,
.admin-ped-modal-textarea:focus {
  border-color: rgba(89, 144, 189, 0.5);
  box-shadow: 0 0 0 4px rgba(89, 144, 189, 0.12);
}

.admin-ped-days {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-ped-day {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.admin-ped-day input {
  accent-color: rgba(89, 144, 189, 0.92);
}

.admin-ped-students-picker {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 10px;
  background: rgba(255, 255, 255, 0.02);
  max-height: 200px;
  overflow: auto;
  display: grid;
  gap: 8px;
}

.admin-ped-student {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
}

.admin-ped-modal-error {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 78, 70, 0.18);
  background: rgba(255, 78, 70, 0.08);
  color: rgba(255, 78, 70, 0.95);
  font-size: 12px;
  font-weight: 750;
}

@media (max-width: 960px) {
  .admin-ped-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .admin-ped-week {
    grid-template-columns: 1fr;
  }

  .admin-ped-day-col {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .admin-ped-modal-row {
    grid-template-columns: 1fr;
  }

  .admin-ped-overview-grid {
    grid-template-columns: 1fr;
  }

  .admin-ped-reports-grid {
    grid-template-columns: 1fr;
  }
}
/* Operação pedagógica n8n */
.pedagogico-list{display:grid;gap:18px}
.pedagogico-section{display:grid;gap:10px}
.pedagogico-section-title{margin:0;color:#f4f7fb;font-size:14px;font-weight:900}
.pedagogico-section-empty{padding:14px;border:1px dashed rgba(255,255,255,.14);border-radius:14px;color:#98a4b7;font-size:13px}
.pedagogico-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;width:100%;padding:16px;border:1px solid rgba(255,255,255,.1);border-radius:16px;background:rgba(255,255,255,.035)}
.pedagogico-item-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.pedagogico-action-link{display:inline-flex;align-items:center;border:1px solid rgba(255,255,255,.14);border-radius:999px;background:rgba(255,255,255,.06);color:#fff;padding:7px 10px;font:inherit;font-size:11px;font-weight:850;text-decoration:none;cursor:pointer}
.pedagogico-action-link:hover{border-color:rgba(255,91,82,.65);background:rgba(255,91,82,.12)}
.admin-ped-ops-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:16px}
.admin-ped-ops-summary-card{display:grid;gap:7px;padding:13px;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(255,255,255,.035)}
.admin-ped-ops-summary-card span{color:#98a4b7;font-size:11px;font-weight:750}
.admin-ped-ops-summary-card strong{color:#fff;font-size:20px}
.admin-student-pedagogical-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.admin-student-pedagogical-grid .admin-student-personal-row{padding:11px;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:rgba(255,255,255,.025)}
.admin-student-briefing{margin-top:12px;line-height:1.55;color:#c7cfda}
@media(max-width:1100px){.admin-ped-ops-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.pedagogico-item{grid-template-columns:1fr}.pedagogico-item-actions{justify-content:flex-start}.admin-ped-ops-summary,.admin-student-pedagogical-grid{grid-template-columns:1fr}}
