* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #F9FAFB;
  color: #0E1726;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: #0F766E; }

/* LOGIN */
.ac-login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #ECFDF8 0%, #F9FAFB 100%);
}
.ac-login-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 36px;
  max-width: 420px;
  width: 100%;
}
.ac-login-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.ac-login-tag {
  background: #ECFDF8;
  color: #0F766E;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ac-login-card h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ac-login-card > p {
  margin: 0 0 22px;
  color: #6B7280;
  font-size: 14px;
}
.ac-login-card form label {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}
.ac-login-card input[type="email"],
.ac-login-card input[type="password"] {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
.ac-login-card input:focus {
  outline: none;
  border-color: #0F766E;
}
.ac-btn-primary {
  display: block;
  width: 100%;
  padding: 10px;
  background: #0F766E;
  color: white;
  border: 0;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin-top: 8px;
  font-family: inherit;
}
.ac-btn-primary:hover { background: #115E59; }
.ac-login-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #F3F4F6;
  text-align: center;
  font-size: 13px;
}
.ac-login-foot a { color: #6B7280; text-decoration: none; }
.ac-login-foot a:hover { color: #0F766E; }
.ac-alert {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 16px;
}
.ac-alert-err {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* APP */
.ac-app {
  display: flex;
  min-height: 100vh;
}
.ac-sidebar {
  width: 240px;
  background: white;
  border-right: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.ac-sidebar-logo {
  padding: 20px 24px;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ac-sidebar-tag {
  background: #ECFDF8;
  color: #0F766E;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ac-sidebar-nav {
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.ac-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #4B5563;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.ac-sidebar-link:hover {
  background: #F3F4F6;
  color: #0F766E;
}
.ac-sidebar-link.is-active {
  background: #ECFDF8;
  color: #0F766E;
  font-weight: 600;
}
.ac-sidebar-icon { font-size: 16px; width: 20px; text-align: center; }
.ac-sidebar-foot {
  padding: 14px 18px;
  border-top: 1px solid #F3F4F6;
}
.ac-back-portal {
  font-size: 12px;
  color: #6B7280;
  text-decoration: none;
}
.ac-back-portal:hover { color: #0F766E; }

.ac-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ac-topbar {
  background: white;
  border-bottom: 1px solid #E5E7EB;
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ac-topbar-org strong {
  font-size: 14px;
  color: #0E1726;
}
.ac-topbar-user {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ac-user-info { text-align: right; line-height: 1.3; }
.ac-user-name { font-size: 13px; font-weight: 600; color: #0E1726; }
.ac-user-email { font-size: 11px; color: #6B7280; }
.ac-user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #0F766E;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.ac-logout {
  width: 32px; height: 32px;
  border-radius: 6px;
  border: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  text-decoration: none;
  font-size: 16px;
}
.ac-logout:hover { background: #FEF2F2; color: #DC2626; border-color: #FECACA; }

.ac-content {
  padding: 28px;
  flex: 1;
}

/* HEAD */
.ac-head { margin-bottom: 22px; }
.ac-head h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0E1726;
}
.ac-head p {
  margin: 4px 0 0;
  color: #6B7280;
  font-size: 14px;
}

.ac-breadcrumb {
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 14px;
}
.ac-breadcrumb a { color: #6B7280; text-decoration: none; }
.ac-breadcrumb a:hover { color: #0F766E; }
.ac-breadcrumb span { margin: 0 6px; color: #D1D5DB; }

/* STATS */
.ac-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.ac-stat {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 14px 16px;
}
.ac-stat-label {
  font-size: 11px;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  margin-bottom: 6px;
}
.ac-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #0E1726;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 900px) { .ac-stats { grid-template-columns: repeat(2, 1fr); } }

.ac-section-head { margin-bottom: 14px; }
.ac-section-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #0E1726;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* TRACK CARDS */
.ac-tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.ac-track-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .15s;
}
.ac-track-card:hover {
  border-color: var(--track-color, #0F766E);
}
.ac-track-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ac-track-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.ac-track-required {
  background: #FEE2E2;
  color: #991B1B;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ac-track-done {
  background: #D1FAE5;
  color: #065F46;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}
.ac-track-card h3 {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: #0E1726;
}
.ac-track-sub {
  margin: 0;
  font-size: 13px;
  color: #6B7280;
}
.ac-track-desc {
  margin: 0;
  font-size: 13px;
  color: #4B5563;
  line-height: 1.5;
  flex: 1;
}
.ac-track-meta {
  font-size: 11px;
  color: #9CA3AF;
}
.ac-track-progress {
  margin-top: 4px;
}
.ac-progress-bar {
  height: 6px;
  background: #F3F4F6;
  border-radius: 3px;
  overflow: hidden;
}
.ac-progress-fill {
  height: 100%;
  transition: width .3s;
}
.ac-progress-text {
  font-size: 11px;
  color: #6B7280;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

/* HERO da trilha */
.ac-track-hero {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 24px;
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
}
.ac-track-hero-icon {
  width: 60px; height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.ac-track-hero h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}
.ac-track-hero p { margin: 6px 0; color: #4B5563; font-size: 14px; }

/* EMPTY */
.ac-empty {
  background: white;
  border: 1px dashed #D1D5DB;
  border-radius: 10px;
  padding: 60px 24px;
  text-align: center;
  color: #6B7280;
}
.ac-empty h3 { margin: 0 0 10px; font-size: 16px; color: #374151; }
.ac-empty p { margin: 6px 0; font-size: 14px; }
.ac-help { font-size: 12px; color: #9CA3AF; margin-top: 10px; }

@media (max-width: 900px) {
  .ac-sidebar { width: 64px; }
  .ac-sidebar-link span:not(.ac-sidebar-icon) { display: none; }
  .ac-sidebar-tag, .ac-sidebar-foot { display: none; }
}
