:root {
  color-scheme: light;
  --profile-collapsible-indicator-size: 8px;
  --profile-collapsible-indicator-stroke: 2px;
}

:root[data-theme="light"] body {
  color-scheme: light;
  --profile-bg: #f5f6fb;
  --profile-surface: #ffffff;
  --profile-border: rgba(24, 34, 67, 0.08);
  --profile-border-strong: rgba(24, 34, 67, 0.16);
  --profile-shadow: 0 4px 8px rgba(22, 32, 72, 0.12);
  --profile-text: #1f2433;
  --profile-muted: #5b6479;
  --profile-accent: #3a7afe;
  --profile-accent-soft: rgba(58, 122, 254, 0.1);
  --profile-hero-accent: #ab0000;
  --profile-hero-bg: var(--profile-surface);
  --profile-tab-accent: #ab0000;
  --profile-card-type-natal: #2563eb;
  --profile-card-type-natal-soft: rgba(37, 99, 235, 0.14);
  --profile-card-type-natal-border: rgba(37, 99, 235, 0.35);
  --profile-card-type-horaria: #92400e;
  --profile-card-type-horaria-soft: rgba(251, 191, 36, 0.18);
  --profile-card-type-horaria-border: rgba(251, 191, 36, 0.45);
  --profile-card-type-lectiva: #dc2626;
  --profile-card-type-lectiva-soft: rgba(220, 38, 38, 0.12);
  --profile-card-type-lectiva-border: rgba(220, 38, 38, 0.35);
  --profile-card-type-evento: #0f9d58;
  --profile-card-type-evento-soft: rgba(16, 185, 129, 0.16);
  --profile-card-type-evento-border: rgba(16, 185, 129, 0.35);
  --profile-danger: #dc2626;
  --profile-danger-soft: rgba(220, 38, 38, 0.12);
  --profile-success: #0f9d58;
  --profile-indicator-offline-border: #1f2433;
  --profile-notification-badge-bg: #cf2e2e;
  --profile-notification-badge-bg-hover: #b91c1c;
  --profile-notification-badge-text: #fff6f6;
  --profile-notification-badge-ring: rgba(255, 246, 246, 0.75);
  --profile-founder-upgrade-bg: linear-gradient(135deg, #fff7ed 0%, #ffedd5 52%, #fef3c7 100%);
  --profile-founder-upgrade-border: rgba(234, 88, 12, 0.32);
  --profile-founder-upgrade-text: #7c2d12;
  --profile-founder-upgrade-muted: #9a3412;
  --profile-founder-upgrade-chip-bg: rgba(255, 255, 255, 0.68);
  --profile-founder-upgrade-button-bg: linear-gradient(135deg, #8a2f13 0%, #b45309 100%);
  --profile-founder-upgrade-button-text: #fff7ed;
  --profile-founder-upgrade-button-shadow: 0 4px 8px rgba(124, 45, 18, 0.2);
}

:root[data-theme="dark"] body {
  color-scheme: dark;
  --profile-bg: #151821;
  --profile-surface: #1f2230;
  --profile-border: rgba(60, 68, 90, 0.3);
  --profile-border-strong: rgba(82, 94, 126, 0.4);
  --profile-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
  --profile-text: #e7ebf8;
  --profile-muted: #94a3b8;
  --profile-accent:linear-gradient(135deg, #f2a14a, #d6842d);
  --profile-accent-soft: rgba(139, 155, 255, 0.18);
  --profile-hero-accent: #ab0000;
  --profile-hero-bg: var(--profile-surface);
  --profile-tab-accent: #ab0000;
  --profile-card-type-natal: #8b9bff;
  --profile-card-type-natal-soft: rgba(139, 155, 255, 0.2);
  --profile-card-type-natal-border: rgba(139, 155, 255, 0.5);
  --profile-card-type-horaria: #fbbf24;
  --profile-card-type-horaria-soft: rgba(251, 191, 36, 0.18);
  --profile-card-type-horaria-border: rgba(251, 191, 36, 0.45);
  --profile-card-type-lectiva: #f87171;
  --profile-card-type-lectiva-soft: rgba(248, 113, 113, 0.16);
  --profile-card-type-lectiva-border: rgba(248, 113, 113, 0.45);
  --profile-card-type-evento: #34d399;
  --profile-card-type-evento-soft: rgba(52, 211, 153, 0.16);
  --profile-card-type-evento-border: rgba(52, 211, 153, 0.45);
  --profile-danger: #f87171;
  --profile-danger-soft: rgba(248, 113, 113, 0.16);
  --profile-success: #34d399;
  --profile-indicator-offline-border: #8b9bff;
  --profile-notification-badge-bg: #e14f4f;
  --profile-notification-badge-bg-hover: #f06666;
  --profile-notification-badge-text: #1e0909;
  --profile-notification-badge-ring: rgba(24, 9, 9, 0.58);
  --profile-founder-upgrade-bg: linear-gradient(135deg, rgba(120, 53, 15, 0.66) 0%, rgba(127, 29, 29, 0.48) 56%, rgba(49, 46, 129, 0.34) 100%);
  --profile-founder-upgrade-border: rgba(251, 191, 36, 0.46);
  --profile-founder-upgrade-text: #fde68a;
  --profile-founder-upgrade-muted: #fed7aa;
  --profile-founder-upgrade-chip-bg: rgba(15, 23, 42, 0.32);
  --profile-founder-upgrade-button-bg: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  --profile-founder-upgrade-button-text: #1f1305;
  --profile-founder-upgrade-button-shadow: 0 4px 8px rgba(245, 158, 11, 0.16);
}

:root[data-theme="night"] body {
  color-scheme: dark;
  --profile-bg: #0f172a;
  --profile-surface: #111c33;
  --profile-border: rgba(148, 163, 184, 0.18);
  --profile-border-strong: rgba(148, 163, 184, 0.35);
  --profile-shadow: 0 4px 8px rgba(2, 6, 23, 0.65);
  --profile-text: #e2e8f0;
  --profile-muted: #94a3b8;
  --profile-accent: #7e66ff;
  --profile-accent-soft: rgba(126, 102, 255, 0.18);
  --profile-hero-accent: #ab0000;
  --profile-hero-bg: var(--profile-surface);
  --profile-tab-accent: #ab0000;
  --profile-card-type-natal: #7aa2ff;
  --profile-card-type-natal-soft: rgba(122, 162, 255, 0.2);
  --profile-card-type-natal-border: rgba(122, 162, 255, 0.5);
  --profile-card-type-horaria: #fbbf24;
  --profile-card-type-horaria-soft: rgba(251, 191, 36, 0.18);
  --profile-card-type-horaria-border: rgba(251, 191, 36, 0.45);
  --profile-card-type-lectiva: #f87171;
  --profile-card-type-lectiva-soft: rgba(248, 113, 113, 0.16);
  --profile-card-type-lectiva-border: rgba(248, 113, 113, 0.45);
  --profile-card-type-evento: #34d399;
  --profile-card-type-evento-soft: rgba(52, 211, 153, 0.16);
  --profile-card-type-evento-border: rgba(52, 211, 153, 0.45);
  --profile-danger: #f87171;
  --profile-danger-soft: rgba(248, 113, 113, 0.12);
  --profile-success: #34d399;
  --profile-indicator-offline-border: #7e66ff;
  --profile-notification-badge-bg: #ff6666;
  --profile-notification-badge-bg-hover: #ff7f7f;
  --profile-notification-badge-text: #1d0b0b;
  --profile-notification-badge-ring: rgba(28, 11, 11, 0.55);
  --profile-founder-upgrade-bg: linear-gradient(135deg, rgba(88, 28, 135, 0.42) 0%, rgba(180, 83, 9, 0.42) 58%, rgba(14, 116, 144, 0.26) 100%);
  --profile-founder-upgrade-border: rgba(253, 186, 116, 0.44);
  --profile-founder-upgrade-text: #ffedd5;
  --profile-founder-upgrade-muted: #fed7aa;
  --profile-founder-upgrade-chip-bg: rgba(15, 23, 42, 0.34);
  --profile-founder-upgrade-button-bg: linear-gradient(135deg, #fda4af 0%, #f59e0b 100%);
  --profile-founder-upgrade-button-text: #1d0b0b;
  --profile-founder-upgrade-button-shadow: 0 4px 8px rgba(251, 113, 133, 0.14);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, rgba(58, 122, 254, 0.12), transparent 45%), var(--profile-bg, #f5f6fb);
  color: var(--profile-text, #1f2433);
  --profile-bg: #f5f6fb;
  --profile-surface: #ffffff;
  --profile-border: rgba(24, 34, 67, 0.08);
  --profile-shadow: 0 4px 8px rgba(22, 32, 72, 0.12);
  --profile-text: #1f2433;
  --profile-muted: #5b6479;
  --profile-accent: #3a7afe;
  --profile-accent-soft: rgba(58, 122, 254, 0.1);
  --profile-hero-accent: #ab0000;
  --profile-hero-bg: var(--profile-surface);
  --profile-tab-accent: #ab0000;
  --profile-card-type-natal: #2563eb;
  --profile-card-type-natal-soft: rgba(37, 99, 235, 0.14);
  --profile-card-type-natal-border: rgba(37, 99, 235, 0.35);
  --profile-card-type-horaria: #92400e;
  --profile-card-type-horaria-soft: rgba(251, 191, 36, 0.18);
  --profile-card-type-horaria-border: rgba(251, 191, 36, 0.45);
  --profile-card-type-lectiva: #dc2626;
  --profile-card-type-lectiva-soft: rgba(220, 38, 38, 0.12);
  --profile-card-type-lectiva-border: rgba(220, 38, 38, 0.35);
  --profile-card-type-evento: #0f9d58;
  --profile-card-type-evento-soft: rgba(16, 185, 129, 0.16);
  --profile-card-type-evento-border: rgba(16, 185, 129, 0.35);
  --profile-danger: #dc2626;
  --profile-danger-soft: rgba(220, 38, 38, 0.12);
  --profile-success: #0f9d58;
  --profile-border-strong: rgba(24, 34, 67, 0.16);
  --profile-indicator-offline-border: #1f2433;
  --profile-notification-badge-bg: #cf2e2e;
  --profile-notification-badge-bg-hover: #b91c1c;
  --profile-notification-badge-text: #fff6f6;
  --profile-notification-badge-ring: rgba(255, 246, 246, 0.75);
  --profile-founder-upgrade-bg: linear-gradient(135deg, #fff7ed 0%, #ffedd5 52%, #fef3c7 100%);
  --profile-founder-upgrade-border: rgba(234, 88, 12, 0.32);
  --profile-founder-upgrade-text: #7c2d12;
  --profile-founder-upgrade-muted: #9a3412;
  --profile-founder-upgrade-chip-bg: rgba(255, 255, 255, 0.68);
  --profile-founder-upgrade-button-bg: linear-gradient(135deg, #8a2f13 0%, #b45309 100%);
  --profile-founder-upgrade-button-text: #fff7ed;
  --profile-founder-upgrade-button-shadow: 0 4px 8px rgba(124, 45, 18, 0.2);
  --profile-saved-cards-height: 400px;
  transition: background 0.3s ease, color 0.3s ease;
}

body.dark-theme {
  color-scheme: dark;
  --profile-bg: #0f172a;
  --profile-surface: #111c33;
  --profile-border: rgba(148, 163, 184, 0.18);
  --profile-border-strong: rgba(148, 163, 184, 0.35);
  --profile-shadow: 0 4px 8px rgba(2, 6, 23, 0.65);
  --profile-text: #e2e8f0;
  --profile-muted: #94a3b8;
  --profile-accent: #8b9bff;
  --profile-accent-soft: rgba(139, 155, 255, 0.18);
  --profile-hero-accent: #ab0000;
  --profile-hero-bg: var(--profile-surface);
  --profile-tab-accent: #ab0000;
  --profile-card-type-natal: #8b9bff;
  --profile-card-type-natal-soft: rgba(139, 155, 255, 0.2);
  --profile-card-type-natal-border: rgba(139, 155, 255, 0.5);
  --profile-card-type-horaria: #fbbf24;
  --profile-card-type-horaria-soft: rgba(251, 191, 36, 0.18);
  --profile-card-type-horaria-border: rgba(251, 191, 36, 0.45);
  --profile-card-type-lectiva: #f87171;
  --profile-card-type-lectiva-soft: rgba(248, 113, 113, 0.16);
  --profile-card-type-lectiva-border: rgba(248, 113, 113, 0.45);
  --profile-card-type-evento: #34d399;
  --profile-card-type-evento-soft: rgba(52, 211, 153, 0.16);
  --profile-card-type-evento-border: rgba(52, 211, 153, 0.45);
  --profile-danger: #f87171;
  --profile-danger-soft: rgba(248, 113, 113, 0.12);
  --profile-success: #34d399;
  --profile-indicator-offline-border: #8b9bff;
  --profile-founder-upgrade-bg: linear-gradient(135deg, rgba(88, 28, 135, 0.42) 0%, rgba(180, 83, 9, 0.42) 58%, rgba(14, 116, 144, 0.26) 100%);
  --profile-founder-upgrade-border: rgba(253, 186, 116, 0.44);
  --profile-founder-upgrade-text: #ffedd5;
  --profile-founder-upgrade-muted: #fed7aa;
  --profile-founder-upgrade-chip-bg: rgba(15, 23, 42, 0.34);
  --profile-founder-upgrade-button-bg: linear-gradient(135deg, #fda4af 0%, #f59e0b 100%);
  --profile-founder-upgrade-button-text: #1d0b0b;
  --profile-founder-upgrade-button-shadow: 0 4px 8px rgba(251, 113, 133, 0.14);
  background: radial-gradient(circle at top left, rgba(75, 85, 255, 0.18), transparent 45%), var(--profile-bg);
}

:root[data-theme="night"] body.dark-theme {
  --profile-tab-accent: #ab0000;
}

@media (max-width: 400px) {
  body {
    --profile-saved-cards-height: 360px;
  }
}

* {
  box-sizing: border-box;
}

.profile-sr-only {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}

.profile-classroom-panel__body[hidden],
.profile-classroom-student-content[hidden],
[hidden].profile-classroom-panel__body,
[hidden].profile-classroom-student-content,
[hidden] {
  display: none !important;
}

.profile-layout {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 14px 16px 12px;
  border: 1px solid #ab0000;
  border-radius: 8px;
  background: var(--profile-hero-bg);
  box-shadow: 0 4px 8px rgba(22, 32, 72, 0.12);
}

.profile-heading-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 1 auto;
  min-width: 0;
}

.profile-heading-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.profile-heading-icon {
  width: 34px;
  height: 34px;
  display: block;
  flex: 0 0 auto;
}

.profile-heading-icon--light {
  display: none;
}

body.dark-theme .profile-heading-icon--dark {
  display: none;
}

body.dark-theme .profile-heading-icon--light {
  display: block;
}

.profile-header h1 {
  margin: 0;
  min-width: 0;
  color: var(--profile-text);
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 400;
  line-height: 1.1;
  white-space: nowrap;
}

.profile-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
}

.profile-badge {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--profile-accent-soft);
  color: var(--profile-accent);
  font-size: 13px;
  /* font-weight: 600; */
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-subtitle {
  margin: 0;
  color: var(--profile-muted);
  font-size: 15px;
}

.profile-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #ab0000;
  background: transparent;
  color: var(--profile-text);
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  /* font-weight: 600; */
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.profile-back:hover,
.profile-back:focus-visible {
  background: transparent;
  border-color: var(--profile-hero-accent);
  color: #ab0000;
  transform: translateY(-1px);
}

.profile-tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-tablist {
  --profile-tab-indicator-left: 0px;
  --profile-tab-indicator-opacity: 0;
  --profile-tab-indicator-top: 0px;
  --profile-tab-indicator-width: 0px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  overflow: visible;
  position: relative;
  border-bottom: 0;
  padding: 0 2px;
  scrollbar-width: thin;
}

.profile-tablist::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: var(--profile-tab-indicator-width);
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: #ab0000;
  opacity: var(--profile-tab-indicator-opacity);
  pointer-events: none;
  transform: translate3d(var(--profile-tab-indicator-left), 0, 0);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), top 0.28s cubic-bezier(0.22, 1, 0.36, 1), width 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease;
}

.profile-tab-wrapper {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  position: relative;
}

.profile-tab-wrapper .profile-tab {
  width: auto;
}

.profile-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  appearance: none;
  border: 0;
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
  color: var(--profile-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
}

.profile-tab-notification-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid var(--profile-notification-badge-ring);
  background: var(--profile-notification-badge-bg);
  color: var(--profile-notification-badge-text);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.profile-tab-notification-badge:hover,
.profile-tab-notification-badge:focus-visible {
  background: var(--profile-notification-badge-bg-hover);
  transform: translateY(-1px);
}

.profile-tab-notification-badge[hidden] {
  display: none;
}

.profile-tab:hover,
.profile-tab:focus-visible {
  color: var(--profile-tab-accent);
}

.profile-tab.profile-tab--incomplete {
  color: var(--profile-danger);
}

.profile-tab.profile-tab--incomplete:hover,
.profile-tab.profile-tab--incomplete:focus-visible {
  color: var(--profile-danger);
}

.profile-tab.is-active {
  color: var(--profile-tab-accent);
}

.profile-tab.profile-tab--incomplete.is-active {
  color: var(--profile-tab-accent);
}

.profile-tab-alert {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--profile-danger);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  line-height: 1.4;
  max-width: min(240px, 70vw);
  z-index: 5;
}

.profile-tab-alert::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--profile-danger);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.profile-tab-alert[hidden] {
  display: none;
}

.profile-tab-alert-text {
  flex: 1 1 auto;
}

.profile-tab-alert-close {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  font-size: 16px;
  font-weight: 400;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.profile-tab-alert-close:hover,
.profile-tab-alert-close:focus-visible {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

body.dark-theme .profile-tab-alert {
  color: #0f172a;
  background: var(--profile-danger);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.45);
}

body.dark-theme .profile-tab-alert::before {
  background: var(--profile-danger);
}

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

@media (max-width: 640px) {
  .profile-tabpanel-grid--overview {
    grid-template-columns: 1fr;
  }
}

.profile-tabpanel {
  display: contents;
}

.profile-tabpanel[hidden] {
  display: none;
}

.profile-tabpanel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.profile-tabpanel-grid--classroom {
  grid-template-columns: minmax(0, 1fr);
}

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

.profile-tabpanel-grid--overview #profileStatusCard {
  grid-column: 1 / -1;
}

.profile-tabpanel-grid > *:only-child {
  grid-column: 1 / -1;
}

.profile-card {
  background: var(--profile-surface);
  border: 1px solid var(--profile-border);
  border-radius: 8px;
  padding: 16px 24px;
  box-shadow: var(--profile-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-card-footnote {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--profile-muted);
}

.profile-session-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.profile-session-status__column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-session-metrics {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.profile-session-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--profile-border);
  background: rgba(58, 122, 254, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

body.dark-theme .profile-session-metric {
  background: rgba(139, 155, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(17, 23, 40, 0.55);
}

.profile-session-metric dt {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--profile-muted);
}

.profile-session-metric-value {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 400;
  color: var(--profile-text);
}

.profile-session-metric-indicator {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: transparent;
  display: inline-block;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-session-metric-indicator--online {
  background: var(--profile-success);
  border-color: var(--profile-success);
  box-shadow: 0 0 0 2px rgba(15, 157, 88, 0.12);
}

body.dark-theme .profile-session-metric-indicator--online {
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.15);
}

.profile-session-metric-indicator--offline {
  background: transparent;
  border-color: var(--profile-indicator-offline-border);
}

.profile-session-metrics__footnote {
  margin: 0;
  font-size: 13px;
  color: var(--profile-muted);
}

.profile-session-status__column--metrics > [hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .profile-session-status {
    grid-template-columns: 1fr;
  }
}

.profile-card--full {
  grid-column: 1 / -1;
}

.profile-card--admin-only {
  display: none !important;
}

.profile-role-admin .profile-card--admin-only {
  display: flex !important;
  grid-column: 1 / -1;
}

.profile-card--updates {
  position: relative;
}

.profile-updates {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-gutter: stable;
}

.profile-update {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--profile-border);
  background: rgba(58, 122, 254, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.profile-update-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-update-title {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
}

.profile-update-meta {
  font-size: 13px;
  color: var(--profile-muted);
}

.profile-update-description {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--profile-text);
  font-weight: 400;
  white-space: pre-line;
}

.profile-update-highlight--new {
  color: var(--profile-success);
}

.profile-update-highlight--update {
  color: var(--profile-accent);
}

.profile-update-highlight--fix {
  color: var(--profile-danger);
}

.profile-update-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-update-actions .profile-button {
  font-size: 13px;
  padding: 6px 12px;
}

.profile-update-tags {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-update-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--profile-accent-soft);
  color: var(--profile-accent);
}

.profile-updates-more {
  margin: 0;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px dashed var(--profile-border);
  color: var(--profile-muted);
  font-size: 13px;
  text-align: center;
}

body.dark-theme .profile-update {
  background: rgba(139, 155, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.2);
}

body.dark-theme .profile-updates-more {
  border-color: var(--profile-border-strong);
}

.profile-card-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-card-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
}

.profile-classroom-card-meta {
  margin: 0;
  font-size: 14px;
  color: var(--profile-muted);
}

.profile-card-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.profile-card-title-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.profile-card-title-action {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.profile-card-title-button {
  margin-left: auto;
  flex: 0 0 auto;
}

.profile-tools-card {
  gap: 18px;
}

.profile-bitacora-title-row {
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
}

.profile-bitacora-action {
  flex: 0 0 auto;
  margin-left: auto;
}

.profile-bitacora-action .profile-button {
  white-space: nowrap;
}

.profile-bitacora-eyebrow {
  margin: 0;
  color: var(--profile-hero-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.profile-saved-cards-filter {
  min-width: 160px;
}

.profile-saved-cards-quota {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid var(--profile-card-type-natal-border);
  border-radius: 999px;
  background: var(--profile-card-type-natal-soft);
  color: var(--profile-card-type-natal);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  vertical-align: middle;
}

.profile-saved-cards-quota.is-limit-reached {
  border-color: rgba(220, 38, 38, 0.35);
  background: var(--profile-danger-soft);
  color: var(--profile-danger);
}

@media (max-width: 520px) {
  .profile-card-title-action {
    margin-left: 0;
    width: 100%;
  }

  .profile-saved-cards-filter {
    width: 100%;
  }
}

.profile-card-intro {
  margin: 0;
  color: var(--profile-muted);
  font-size: 14px;
  line-height: 1.5;
}

.profile-summary {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 20px;
}

.profile-summary div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-summary dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--profile-muted);
}

.profile-summary dd {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--profile-text);
}

.profile-subscription-summary {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.profile-subscription-summary > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-subscription-summary dt {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--profile-muted);
}

.profile-subscription-summary dd {
  margin: 0;
  font-size: 16px;
  color: var(--profile-text);
  min-height: 22px;
}

.profile-subscription-summary__options {
  grid-column: 1 / -1;
}

.profile-subscription-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--profile-border);
  background: var(--profile-accent-soft);
  color: var(--profile-accent);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-subscription-status-badge--pending {
  background: rgba(251, 191, 36, 0.16);
  color: #92400e;
  border-color: rgba(251, 191, 36, 0.4);
}

.profile-subscription-status-badge--warning {
  background: rgba(251, 191, 36, 0.12);
  color: #92400e;
}

.profile-subscription-status-badge--danger {
  background: var(--profile-danger-soft);
  color: var(--profile-danger);
  border-color: rgba(220, 38, 38, 0.35);
}

.profile-subscription-status-badge--muted {
  background: rgba(148, 163, 184, 0.16);
  color: var(--profile-muted);
}

body.dark-theme .profile-subscription-status-badge--pending,
body.dark-theme .profile-subscription-status-badge--warning {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.45);
}

body.dark-theme .profile-subscription-status-badge--muted {
  color: #cbd5f5;
}

.profile-founder-upgrade {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid var(--profile-founder-upgrade-border);
  border-radius: 8px;
  background: var(--profile-founder-upgrade-bg);
  box-shadow: 0 18px 42px rgba(31, 41, 55, 0.12);
  text-align: center;
}

.profile-founder-upgrade[hidden] {
  display: none;
}

.profile-founder-upgrade__action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.profile-founder-upgrade .profile-button.profile-founder-upgrade__button {
  width: min(100%, 280px);
  min-height: 46px;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  background: var(--profile-founder-upgrade-button-bg);
  color: var(--profile-founder-upgrade-button-text);
  border-color: transparent;
  box-shadow: var(--profile-founder-upgrade-button-shadow);
  font-weight: 700;
  letter-spacing: 0;
}

.profile-founder-upgrade .profile-button.profile-founder-upgrade__button:hover,
.profile-founder-upgrade .profile-button.profile-founder-upgrade__button:focus-visible {
  box-shadow: var(--profile-founder-upgrade-button-shadow);
  filter: brightness(1.03);
}

.profile-founder-upgrade__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 760px;
}

.profile-founder-upgrade__content h3,
.profile-founder-upgrade__content p,
.profile-founder-upgrade__content ul {
  margin: 0;
}

.profile-founder-upgrade__content h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--profile-founder-upgrade-text);
}

.profile-founder-upgrade__subtitle {
  font-size: 15px;
  font-weight: 700;
  color: var(--profile-founder-upgrade-text);
}

.profile-founder-upgrade__content p,
.profile-founder-upgrade__content li {
  color: var(--profile-founder-upgrade-muted);
  font-size: 14px;
  line-height: 1.5;
}

.profile-founder-upgrade__content ul {
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.profile-founder-upgrade__content li {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--profile-founder-upgrade-border);
  background: var(--profile-founder-upgrade-chip-bg);
}

body.dark-theme .profile-founder-upgrade {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.profile-subscription-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.profile-subscription-actions .profile-feedback {
  margin: 0;
  flex: 1 1 240px;
}

.profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--profile-border);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.profile-pill--danger {
  background: var(--profile-danger-soft);
  color: var(--profile-danger);
  border-color: rgba(220, 38, 38, 0.35);
}

body.dark-theme .profile-pill--danger {
  border-color: rgba(248, 113, 113, 0.45);
}

.profile-subscription-alert {
  margin: 0;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.12);
  color: #92400e;
}

body.dark-theme .profile-subscription-alert {
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.45);
}

@media (max-width: 640px) {
  .profile-subscription-summary {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.profile-form--stacked {
  gap: 16px;
}

.profile-form-columns {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.profile-form-columns--notifications {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.profile-form-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-form-column--notifications-options {
  gap: 16px;
}

.profile-notifications-options {
  margin: 0;
  padding: 0;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-notifications-options legend {
  padding: 0;
  font-size: 14px;
}

.profile-notifications-options small {
  font-size: 12px;
  color: var(--profile-muted);
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-field-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-inline-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-inline-fields input {
  flex: 1 1 12rem;
  min-width: 0;
}

.profile-inline-fields input[type="time"] {
  flex: 0 0 12rem;
  max-width: 14rem;
}

.profile-label {
  font-size: 14px;
  /* font-weight: 600; */
}

.profile-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-form input,
.profile-input,
.profile-select {
  width: 100%;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--input-border, var(--profile-border));
  font-size: 15px;
  background: var(--input-bg, rgba(255, 255, 255, 0.85));
  color: var(--input-text, inherit);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.profile-form input:focus,
.profile-input:focus,
.profile-select:focus {
  outline: none;
  border-color: var(--input-focus, rgba(58, 122, 254, 0.7));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--input-focus, rgba(58, 122, 254, 0.7)) 30%, transparent);
}

.profile-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted, var(--profile-muted)) 50%),
    linear-gradient(135deg, var(--text-muted, var(--profile-muted)) 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 13px) calc(50% - 3px), calc(100% - 46px) 50%;
  background-size: 6px 6px, 6px 6px, 1px 36px;
  background-repeat: no-repeat;
}

.profile-input--custom[hidden] {
  display: none;
}

.profile-field-help {
  font-size: 13px;
  color: var(--profile-muted);
  line-height: 1.4;
}

.profile-form-actions {
  display: flex;
  justify-content: flex-end;
}

.profile-preferences-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.profile-preference-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--profile-border);
  background: var(--profile-surface);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.profile-preference-toggle:hover,
.profile-preference-toggle:focus-within {
  border-color: var(--profile-accent);
  box-shadow: 0 0 0 4px var(--profile-accent-soft);
}

.profile-preference-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--profile-accent);
}

.profile-preference-toggle span {
  font-size: 15px;
  font-weight: 400;
}

.profile-preferences-selects {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.profile-preferences-hint {
  margin: 0;
  font-size: 13px;
  color: var(--profile-muted);
}

.profile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--profile-border-strong);
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.85), rgba(219, 234, 254, 0.9));
  color: var(--profile-text);
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.profile-button--compact {
  padding: 6px 16px;
  font-size: 14px;
}

body.dark-theme .profile-button {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(51, 65, 85, 0.9));
}

.profile-button:hover,
.profile-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(31, 41, 55, 0.18);
}

.profile-button.primary {
  background: linear-gradient(135deg, #3a7afe, #5b47ff);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 6px 12px rgba(58, 122, 254, 0.3);
}

.profile-button.secondary {
  background: var(--profile-surface);
  border-color: var(--profile-border);
  color: var(--profile-text);
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.08);
}

.profile-button.secondary:hover,
.profile-button.secondary:focus-visible {
  border-color: var(--profile-border-strong, rgba(24, 34, 67, 0.16));
  box-shadow: 0 8px 14px rgba(31, 41, 55, 0.14);
}

body.dark-theme .profile-button.primary {
  box-shadow: 0 2px 4px rgba(139, 155, 255, 0.15);
}

body.dark-theme .profile-button.secondary {
  background: rgba(30, 41, 59, 0.85);
  border-color: var(--profile-border);
  color: var(--profile-text);
  box-shadow: 0 4px 8px rgba(2, 6, 23, 0.45);
}

.profile-button.danger {
  background: var(--profile-danger-soft);
  color: var(--profile-danger);
  border-color: rgba(220, 38, 38, 0.35);
}

.profile-button.danger:hover,
.profile-button.danger:focus-visible {
  box-shadow: 0 4px 8px rgba(220, 38, 38, 0.25);
}

.profile-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
  filter: grayscale(0.25);
  pointer-events: none;
}

.profile-dev-tooltip {
  position: relative;
  display: inline-flex;
}

.profile-dev-tooltip[data-dev-tooltip]::after {
  content: none;
  display: none;
}

.lite-upgrade-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10000;
  max-width: min(260px, calc(100vw - 16px));
  padding: 8px 10px;
  border: 1px solid var(--lite-upgrade-tooltip-border, rgba(15, 23, 42, 0.18));
  border-radius: var(--panel-radius, 4px);
  background: var(--lite-upgrade-tooltip-bg, rgba(17, 24, 39, 0.94));
  color: var(--lite-upgrade-tooltip-text, #f8fafc);
  box-shadow: 0 12px 26px var(--lite-upgrade-tooltip-shadow, rgba(15, 23, 42, 0.26));
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.12s ease;
}

.lite-upgrade-tooltip[hidden] {
  display: none;
}

.lite-upgrade-tooltip.is-visible {
  opacity: 1;
}

html[data-theme="light"] .lite-upgrade-tooltip {
  --lite-upgrade-tooltip-bg: #111827;
  --lite-upgrade-tooltip-text: #f8fafc;
  --lite-upgrade-tooltip-border: rgba(15, 23, 42, 0.22);
  --lite-upgrade-tooltip-shadow: rgba(15, 23, 42, 0.24);
}

html[data-theme="dark"] .lite-upgrade-tooltip {
  --lite-upgrade-tooltip-bg: #f8fafc;
  --lite-upgrade-tooltip-text: #111827;
  --lite-upgrade-tooltip-border: rgba(226, 232, 240, 0.36);
  --lite-upgrade-tooltip-shadow: rgba(0, 0, 0, 0.36);
}

html[data-theme="night"] .lite-upgrade-tooltip {
  --lite-upgrade-tooltip-bg: #e5edff;
  --lite-upgrade-tooltip-text: #111827;
  --lite-upgrade-tooltip-border: rgba(148, 163, 184, 0.42);
  --lite-upgrade-tooltip-shadow: rgba(2, 6, 23, 0.44);
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-feedback {
  min-height: 18px;
  font-size: 14px;
  color: var(--profile-muted);
}

.profile-feedback.success {
  color: var(--profile-success);
}

.profile-feedback.warning {
  color: var(--status-warning, var(--warning-accent, var(--profile-danger)));
}

.profile-feedback.error {
  color: var(--profile-danger);
}

.profile-admin-step-up {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(6px);
}

.profile-admin-step-up__dialog {
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--profile-border-strong);
  border-radius: 8px;
  background: var(--profile-surface);
  color: var(--profile-text);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.24);
}

.profile-admin-step-up__dialog h2,
.profile-admin-step-up__description,
.profile-admin-step-up__feedback {
  margin: 0;
}

.profile-admin-step-up__dialog h2 {
  font-size: 20px;
  line-height: 1.2;
}

.profile-admin-step-up__description {
  color: var(--profile-muted);
  font-size: 14px;
  line-height: 1.5;
}

.profile-admin-step-up__dialog input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid var(--input-border, var(--profile-border));
  background: var(--input-bg, rgba(255, 255, 255, 0.85));
  color: var(--input-text, inherit);
  font-size: 15px;
}

.profile-admin-step-up__dialog input:focus {
  outline: none;
  border-color: var(--input-focus, rgba(58, 122, 254, 0.7));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--input-focus, rgba(58, 122, 254, 0.7)) 30%, transparent);
}

.profile-admin-step-up__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 520px) {
  .profile-admin-step-up {
    align-items: end;
    padding: 12px;
  }

  .profile-admin-step-up__dialog {
    width: 100%;
    padding: 18px;
  }

  .profile-admin-step-up__actions {
    flex-direction: column-reverse;
  }

  .profile-admin-step-up__actions .profile-button {
    width: 100%;
  }
}

.profile-status {
  margin: 0;
  font-size: 15px;
  /* font-weight: 600; */
}

.profile-status--info {
  color: var(--profile-muted);
}

.profile-status--success {
  color: var(--profile-success);
}

.profile-status--warning,
.profile-status--error {
  color: var(--profile-danger);
}

.profile-empty {
  margin: 0;
  font-size: 14px;
  color: var(--profile-muted);
}

.profile-classroom-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


.profile-classroom-panel {
  border: 1px solid var(--profile-border);
  border-radius: 10px;
  background: var(--profile-surface);
  box-shadow: var(--profile-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.profile-classroom-panel.profile-classroom-view {
  gap: 0;
}

.profile-classroom-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 24px;
  border-bottom: 1px solid var(--profile-border);
  background: rgba(255, 255, 255, 0.72);
}

.profile-classroom-panel__header-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.profile-classroom-panel__title {
  font-size: 18px;
  font-weight: 300;
  color: var(--profile-text);
  letter-spacing: 0.01em;
}

.profile-classroom-panel__description {
  font-size: 15px;
  color: var(--profile-muted);
  line-height: 1.5;
  max-width: 640px;
}

.profile-classroom-panel__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.profile-classroom-panel__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--profile-surface);
}

.profile-classroom-admin-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-classroom-view {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-classroom-view--collapsible {
  gap: 16px;
}

.profile-classroom-view--collapsible.is-expanded {
  gap: 20px;
}

.profile-classroom-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--profile-border);
  background: rgba(255, 255, 255, 0.85);
  color: var(--profile-text);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 4px 8px rgba(31, 41, 55, 0.08);
}

.profile-classroom-toggle::after {
  width: var(--profile-collapsible-indicator-size);
  height: var(--profile-collapsible-indicator-size);
  flex: 0 0 auto;
  border-right: var(--profile-collapsible-indicator-stroke) solid currentColor;
  border-bottom: var(--profile-collapsible-indicator-stroke) solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.profile-classroom-toggle[aria-expanded="true"]::after {
  transform: rotate(225deg);
}

.profile-classroom-toggle:hover,
.profile-classroom-toggle:focus-visible {
  border-color: var(--profile-accent);
  box-shadow: 0 4px 8px rgba(31, 41, 55, 0.14);
}

body.dark-theme .profile-classroom-panel__header {
  background: rgba(15, 23, 42, 0.55);
  border-bottom-color: var(--profile-border);
}

body.dark-theme .profile-classroom-panel__body {
  background: var(--profile-surface);
}

body.dark-theme .profile-classroom-panel {
  background: var(--profile-surface);
  border-color: var(--profile-border);
  box-shadow: 0 4px 8px rgba(2, 6, 23, 0.55);
}

body.dark-theme .profile-classroom-toggle {
  background: rgba(15, 23, 42, 0.55);
  border-color: var(--profile-border);
  color: var(--profile-text);
}

body.dark-theme .profile-classroom-toggle:hover,
body.dark-theme .profile-classroom-toggle:focus-visible {
  border-color: var(--profile-accent);
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.24);
}

.profile-classroom-collapsible-content,
.profile-classroom-student-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-classroom-teacher-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.profile-classroom-student-panels {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-classroom-teacher-block {
  min-width: 0;
}

.profile-classroom-teacher-block--summary {
  grid-column: 1 / -1;
}

.profile-classroom-teacher-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-classroom-teacher-column--right {
  gap: 0;
}

.profile-classroom-teacher-reports {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-classroom-teacher-panels .profile-classroom-teacher-block:not(.profile-classroom-report__item) {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--profile-border);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(6px);
}

body.dark-theme .profile-classroom-teacher-panels .profile-classroom-teacher-block:not(.profile-classroom-report__item) {
  background: rgba(15, 23, 42, 0.55);
  border-color: var(--profile-border);
}

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

.profile-classroom-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-classroom-form__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.profile-classroom-form__fields .profile-field {
  flex: 1 1 240px;
  min-width: 220px;
}

.profile-classroom-teacher-panels .profile-classroom-form {
  gap: 10px;
}

.profile-classroom-teacher-panels .profile-classroom-form__fields {
  gap: 10px;
}

.profile-classroom-teacher-panels .profile-classroom-form__fields .profile-field {
  flex: 1 1 180px;
  min-width: 180px;
}

.profile-classroom-teacher-panels .profile-classroom-list {
  gap: 8px;
}

.profile-classroom-teacher-panels .profile-classroom-entry {
  padding: 10px 12px;
  gap: 3px;
}

.profile-classroom-teacher-panels .profile-classroom-entry__actions .profile-button {
  flex: 0 0 auto;
}

.profile-classroom-teacher-manage__actions {
  display: block;
}

.profile-classroom-teacher-manage__actions .profile-field {
  margin: 0;
}

.profile-classroom-teacher-create-details {
  margin-top: 10px;
}

.profile-classroom-teacher-manage__delete {
  margin-top: 8px;
}

.profile-classroom-teacher-manage__delete .profile-button {
  width: 100%;
}

.profile-classroom-teacher-edit-form {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed var(--profile-border);
}

.profile-classroom-entry {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--profile-border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
}

body.dark-theme .profile-classroom-entry {
  background: rgba(15, 23, 42, 0.6);
  border-color: var(--profile-border);
}

.profile-classroom-entry__name {
  font-size: 15px;
  /* font-weight: 600; */
  color: var(--profile-text);
}

.profile-classroom-entry__contact {
  font-size: 14px;
  color: var(--profile-muted);
  word-break: break-word;
}

.profile-classroom-entry__contact--muted {
  opacity: 0.75;
}

.profile-classroom-entry__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-classroom-entry__status {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--profile-muted);
}

.profile-classroom-entry__status--pending {
  color: var(--profile-accent);
}

.profile-classroom-entry__status--accepted {
  color: var(--profile-success);
}

.profile-classroom-entry__status--rejected {
  color: var(--profile-muted);
}

.profile-classroom-entry__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.profile-classroom-entry__actions .profile-button {
  flex: 1 1 auto;
}

.profile-classroom-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-classroom-summary__title {
  font-size: 18px;
  font-weight: 400;
  color: var(--profile-text);
}

.profile-classroom-summary__meta {
  margin: 0;
  font-size: 14px;
  color: var(--profile-muted);
}

.profile-classroom-entry__meta {
  font-size: 12px;
  color: var(--profile-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-classroom-note {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--profile-muted);
}

.profile-classroom-report {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-classroom-report__item {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--profile-border);
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-classroom-report__item--collapsible {
  padding: 0;
  gap: 0;
}

body.dark-theme .profile-classroom-report__item {
  background: rgba(15, 23, 42, 0.55);
}

.profile-classroom-report__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 16px;
  cursor: pointer;
  border-radius: 12px;
}

.profile-classroom-report__summary::marker,
.profile-classroom-report__summary::-webkit-details-marker {
  display: none;
}

.profile-classroom-report__summary::after {
  content: "";
  flex: 0 0 var(--profile-collapsible-indicator-size);
  width: var(--profile-collapsible-indicator-size);
  height: var(--profile-collapsible-indicator-size);
  border-right: var(--profile-collapsible-indicator-stroke) solid var(--profile-muted);
  border-bottom: var(--profile-collapsible-indicator-stroke) solid var(--profile-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: 6px;
}

.profile-classroom-report__item[open] > .profile-classroom-report__summary::after {
  transform: rotate(225deg);
}

.profile-classroom-report__summary:focus {
  outline: none;
}

.profile-classroom-report__summary:focus-visible {
  outline: 2px solid var(--profile-accent);
  outline-offset: 4px;
}

.profile-classroom-report__summary .profile-classroom-report__header {
  flex: 1;
}

.profile-classroom-report__item--collapsible[open] > .profile-classroom-report__summary {
  border-bottom: 1px solid var(--profile-border);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.profile-classroom-report__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px 16px;
}

.profile-classroom-report__item--collapsible[open] > .profile-classroom-report__content {
  padding-top: 12px;
}

.profile-classroom-report__header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-classroom-report__title {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--profile-text);
}

.profile-classroom-report__meta {
  margin: 0;
  font-size: 13px;
  color: var(--profile-muted);
}

.profile-classroom-report__section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-classroom-chat {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-classroom-chat__layout {
  display: grid;
  grid-template-columns: minmax(240px, 270px) 1fr;
  gap: 4px;
  align-items: stretch;
}

.profile-classroom-chat__sidebar,
.profile-classroom-chat__panel {
  border: 1px solid var(--profile-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
}

body.dark-theme .profile-classroom-chat__sidebar,
body.dark-theme .profile-classroom-chat__panel {
  background: rgba(15, 23, 42, 0.65);
  border-color: var(--profile-border);
}

.profile-classroom-chat__sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.profile-classroom-chat__sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-classroom-chat__sidebar-title {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  color: var(--profile-text);
}

.profile-classroom-chat__conversation-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.profile-classroom-chat__conversation-item {
  margin: 0;
}

.profile-classroom-chat__conversation-item--group {
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--profile-accent);
  background: var(--profile-accent-soft);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.profile-classroom-chat__conversation-item--group .profile-classroom-chat__conversation-button {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.profile-classroom-chat__conversation-item--group .profile-classroom-chat__conversation-button:hover,
.profile-classroom-chat__conversation-item--group .profile-classroom-chat__conversation-button:focus-visible {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 2px rgba(58, 122, 254, 0.18);
}

.profile-classroom-chat__conversation-item--group .profile-classroom-chat__conversation-button.is-active {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 8px rgba(58, 122, 254, 0.25);
}

body.dark-theme .profile-classroom-chat__conversation-item--group {
  background: rgba(96, 165, 250, 0.18);
  border-color: rgba(96, 165, 250, 0.6);
}

body.dark-theme .profile-classroom-chat__conversation-item--group .profile-classroom-chat__conversation-button:hover,
body.dark-theme .profile-classroom-chat__conversation-item--group .profile-classroom-chat__conversation-button:focus-visible {
  background: rgba(96, 165, 250, 0.22);
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.28);
}

body.dark-theme .profile-classroom-chat__conversation-item--group .profile-classroom-chat__conversation-button.is-active {
  background: rgba(96, 165, 250, 0.28);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.35);
}

.profile-classroom-chat__conversation-button {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--profile-border);
  background: rgba(255, 255, 255, 0.75);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body.dark-theme .profile-classroom-chat__conversation-button {
  background: rgba(15, 23, 42, 0.55);
}

.profile-classroom-chat__conversation-button:hover,
.profile-classroom-chat__conversation-button:focus-visible {
  border-color: var(--profile-accent);
  box-shadow: 0 4px 8px rgba(31, 41, 55, 0.14);
}

.profile-classroom-chat__conversation-button.is-active {
  border-color: var(--profile-accent);
  background: var(--profile-accent-soft);
  box-shadow: 0 4px 8px rgba(58, 122, 254, 0.18);
}

.profile-classroom-chat__conversation-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--profile-text);
}

.profile-classroom-chat__conversation-meta {
  font-size: 13px;
  color: var(--profile-muted);
}

.profile-classroom-chat__conversation-preview {
  font-size: 13px;
  color: var(--profile-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-classroom-chat__conversation-unread {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  color: var(--profile-muted);
  font-size: 12px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-classroom-chat__conversation-unread--active {
  background: var(--profile-danger);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(220, 38, 38, 0.25);
}

.profile-classroom-chat__panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  min-height: 320px;
}

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

.profile-classroom-chat__panel-title {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  color: var(--profile-text);
}

.profile-classroom-chat__panel-meta {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--profile-muted);
}

.profile-classroom-chat__messages {
  flex: 1 1 auto;
  min-height: 220px;
  max-height: 420px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--profile-border);
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

body.dark-theme .profile-classroom-chat__messages {
  background: rgba(15, 23, 42, 0.5);
}

.profile-classroom-chat__message {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(58, 122, 254, 0.08);
  color: var(--profile-text);
  align-self: flex-start;
  /* box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12); */
}

.profile-classroom-chat__message--own {
  margin-left: auto;
  background: linear-gradient(135deg, #3a7afe, #5b47ff);
  color: #ffffff;
  /* box-shadow: 0 12px 24px rgba(58, 122, 254, 0.28); */
}

.profile-classroom-chat__message-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--profile-muted);
}

.profile-classroom-chat__message--own .profile-classroom-chat__message-header {
  color: rgba(255, 255, 255, 0.85);
}

.profile-classroom-chat__message-author {
  font-weight: 500;
}

.profile-classroom-chat__message-timestamp {
  font-size: 12px;
}

.profile-classroom-chat__message-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.profile-classroom-chat__message-link {
  color: var(--profile-accent);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  word-break: break-word;
}

body.dark-theme .profile-classroom-chat__message-link {
  color: #93c5fd;
}

.profile-classroom-chat__message-link--own,
.profile-classroom-chat__message--own .profile-classroom-chat__message-link {
  color: rgba(255, 255, 255, 0.98);
  text-decoration-color: rgba(255, 255, 255, 0.82);
}

.profile-classroom-chat__composer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-classroom-chat__composer textarea {
  min-height: 100px;
  resize: vertical;
}

.profile-classroom-chat__composer-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 960px) {
  .profile-classroom-teacher-panels {
    grid-template-columns: 1fr;
  }

  .profile-classroom-teacher-block--summary {
    grid-column: auto;
  }

  .profile-classroom-chat__layout {
    grid-template-columns: 1fr;
  }
  .profile-classroom-chat__messages {
    max-height: none;
  }
  .profile-classroom-chat__message {
    max-width: 100%;
  }
}

.profile-saved-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#profileSavedCardsCard,
#profileUpdatesCard {
  display: flex;
  flex-direction: column;
}

#profileSavedCardsCard {
  height: var(--profile-saved-cards-height);
}

#profileSavedCardsCard > .profile-saved-cards-container {
  flex: 1 1 auto;
}

.profile-saved-cards-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0;
  scrollbar-gutter: auto;
}

.profile-bitacora-card > .profile-saved-cards-container {
  overflow: visible;
  padding-right: 0;
}

.profile-saved-card-item {
  margin: 0;
}

.profile-saved-card {
  width: 100%;
  border: 1px solid var(--profile-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.profile-saved-card.is-open {
  border-color: var(--profile-border-strong);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

.profile-saved-card--session-linked {
  border-color: rgba(245, 90, 0, 0.32);
}

.profile-saved-card--session-origin-idle {
  border-color: rgba(245, 90, 0, 0.18);
}

body.dark-theme .profile-saved-card {
  background: rgba(15, 23, 42, 0.6);
  border-color: var(--profile-border-strong);
}

body.dark-theme .profile-saved-card--session-linked {
  border-color: rgba(255, 159, 74, 0.42);
}

body.dark-theme .profile-saved-card--session-origin-idle {
  border-color: rgba(255, 159, 74, 0.24);
}

.profile-saved-card-toggle {
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease;
  list-style: none;
}

.profile-saved-card-toggle::marker,
.profile-saved-card-toggle::-webkit-details-marker {
  display: none;
}

.profile-saved-card-toggle:hover,
.profile-saved-card-toggle:focus-visible {
  background: rgba(139, 155, 255, 0.12);
}

.profile-saved-card-toggle:focus-visible {
  outline: 2px solid var(--profile-accent);
  outline-offset: 2px;
}

.profile-saved-card-summary {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 12px;
}

.profile-saved-card-title {
  margin: 0;
  min-width: 0;
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-saved-card-title-line {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 7px;
}

.profile-client-locked-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--profile-card-type-natal, #2563eb);
}

.profile-client-locked-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.profile-client-session-icon {
  color: #f05a00;
}

.profile-client-session-icon--inactive {
  opacity: 0.38;
}

body.dark-theme .profile-client-session-icon {
  color: #ff9f4a;
}

.profile-saved-card-title-edit-icon {
  display: none;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--profile-text);
  cursor: pointer;
  transition: color 0.2s ease;
}

.profile-saved-card-title-edit-icon:hover,
.profile-saved-card-title-edit-icon:focus-visible {
  background: transparent;
  color: var(--profile-accent);
}

.profile-saved-card-title-edit-icon:focus-visible {
  outline: 2px solid var(--profile-accent);
  outline-offset: 2px;
}

.profile-saved-card.is-open .profile-saved-card-title-edit-icon {
  display: inline-flex;
}

.profile-saved-card-title-edit-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.profile-saved-card-type {
  margin: 0;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  /* font-weight: 600; */
  background: var(--profile-saved-card-type-bg, var(--profile-accent-soft));
  white-space: nowrap;
  color: var(--profile-saved-card-type-text, var(--profile-accent));
  border: 1px solid var(--profile-saved-card-type-border, transparent);
}

.profile-saved-card-type--natal {
  --profile-saved-card-type-text: var(--profile-card-type-natal);
  --profile-saved-card-type-bg: var(--profile-card-type-natal-soft);
  --profile-saved-card-type-border: var(--profile-card-type-natal-border);
}

.profile-saved-card-type--horaria {
  --profile-saved-card-type-text: var(--profile-card-type-horaria);
  --profile-saved-card-type-bg: var(--profile-card-type-horaria-soft);
  --profile-saved-card-type-border: var(--profile-card-type-horaria-border);
}

.profile-saved-card-type--lectiva {
  --profile-saved-card-type-text: var(--profile-card-type-lectiva);
  --profile-saved-card-type-bg: var(--profile-card-type-lectiva-soft);
  --profile-saved-card-type-border: var(--profile-card-type-lectiva-border);
}

.profile-saved-card-type--evento {
  --profile-saved-card-type-text: var(--profile-card-type-evento);
  --profile-saved-card-type-bg: var(--profile-card-type-evento-soft);
  --profile-saved-card-type-border: var(--profile-card-type-evento-border);
}

.profile-saved-card-type--cliente {
  --profile-saved-card-type-text: #2563eb;
  --profile-saved-card-type-bg: color-mix(in srgb, #2563eb 10%, transparent);
  --profile-saved-card-type-border: color-mix(in srgb, #2563eb 26%, transparent);
}

.profile-judgment-report-type {
  --profile-saved-card-type-text: var(--profile-card-type-lectiva);
  --profile-saved-card-type-bg: var(--profile-card-type-lectiva-soft);
  --profile-saved-card-type-border: var(--profile-card-type-lectiva-border);
}

.profile-judgment-report-type--natal {
  --profile-saved-card-type-text: var(--profile-card-type-natal);
  --profile-saved-card-type-bg: var(--profile-card-type-natal-soft);
  --profile-saved-card-type-border: var(--profile-card-type-natal-border);
}

.profile-judgment-report-type--horary {
  --profile-saved-card-type-text: var(--profile-card-type-horaria);
  --profile-saved-card-type-bg: var(--profile-card-type-horaria-soft);
  --profile-saved-card-type-border: var(--profile-card-type-horaria-border);
}

.profile-judgment-report-type--lective {
  --profile-saved-card-type-text: var(--profile-card-type-lectiva);
  --profile-saved-card-type-bg: var(--profile-card-type-lectiva-soft);
  --profile-saved-card-type-border: var(--profile-card-type-lectiva-border);
}

.profile-bitacora-client-type {
  --profile-saved-card-type-text: var(--profile-card-type-natal);
  --profile-saved-card-type-bg: var(--profile-card-type-natal-soft);
  --profile-saved-card-type-border: var(--profile-card-type-natal-border);
}

.profile-bitacora-client-type--client {
  --profile-saved-card-type-text: var(--profile-card-type-natal);
  --profile-saved-card-type-bg: var(--profile-card-type-natal-soft);
  --profile-saved-card-type-border: var(--profile-card-type-natal-border);
}

.profile-bitacora-client-type--horary {
  --profile-saved-card-type-text: var(--profile-card-type-horaria);
  --profile-saved-card-type-bg: var(--profile-card-type-horaria-soft);
  --profile-saved-card-type-border: var(--profile-card-type-horaria-border);
}

.profile-bitacora-client-type--electional {
  --profile-saved-card-type-text: var(--profile-card-type-lectiva);
  --profile-saved-card-type-bg: var(--profile-card-type-lectiva-soft);
  --profile-saved-card-type-border: var(--profile-card-type-lectiva-border);
}

.profile-bitacora-overview {
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(0, 1.55fr);
  gap: 22px;
  align-items: stretch;
  padding: 18px 0 20px;
  border-top: 1px solid var(--profile-border);
  border-bottom: 1px solid var(--profile-border);
}

.profile-bitacora-overview__copy {
  display: flex;
  align-items: center;
}

.profile-bitacora-overview__copy p {
  max-width: 48ch;
  margin: 0;
  color: var(--profile-muted);
  font-size: 14px;
  line-height: 1.65;
}

.profile-bitacora-summary {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-left: 1px solid var(--profile-border);
}

.profile-bitacora-summary div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 2px 18px;
  border-right: 1px solid var(--profile-border);
}

.profile-bitacora-summary dt {
  margin: 0;
  color: var(--profile-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.profile-bitacora-summary dd {
  margin: 0;
  min-width: 0;
  color: var(--profile-text);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.08;
}

.profile-bitacora-summary div:last-child dd {
  font-size: 15px;
  line-height: 1.25;
}

.profile-bitacora-list-container {
  gap: 10px;
}

.profile-bitacora-clients {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.profile-bitacora-client-row-item {
  margin: 0;
}

.profile-bitacora-client-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto auto;
  gap: 16px;
  align-items: center;
  min-height: 68px;
  padding: 13px 0;
  border-bottom: 1px solid var(--profile-border);
}

.profile-bitacora-client-row-item:first-child .profile-bitacora-client-row {
  border-top: 0;
}

.profile-bitacora-client-row__heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.profile-bitacora-client-row__title-block {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.profile-bitacora-client-row__title {
  min-width: 0;
  color: var(--profile-text);
  font-size: 16px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-bitacora-client-row__meta {
  min-width: 0;
  color: var(--profile-muted);
  font-size: 12px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-bitacora-client-row__signals {
  display: flex;
  min-width: max-content;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: var(--profile-muted);
  font-size: 12px;
  line-height: 1.2;
}

.profile-bitacora-client-row__signals span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.profile-bitacora-client-row__signals span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--profile-muted) 64%, transparent);
}

.profile-bitacora-more {
  display: inline-flex;
  align-items: center;
  width: auto;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--profile-accent);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.profile-bitacora-more:hover,
.profile-bitacora-more:focus-visible {
  color: var(--profile-accent-hover, var(--profile-accent));
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile-bitacora-more:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--profile-accent) 55%, transparent);
  outline-offset: 4px;
  border-radius: 4px;
}

.profile-bitacora-client-row-item--more {
  display: flex;
  justify-content: center;
}

.profile-saved-card-chevron {
  display: inline-block;
  width: var(--profile-collapsible-indicator-size);
  height: var(--profile-collapsible-indicator-size);
  flex: 0 0 auto;
  border-right: var(--profile-collapsible-indicator-stroke) solid var(--profile-muted);
  border-bottom: var(--profile-collapsible-indicator-stroke) solid var(--profile-muted);
  color: transparent;
  font-size: 0;
  line-height: 1;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.profile-saved-card.is-open .profile-saved-card-chevron {
  transform: rotate(225deg);
}

.profile-saved-card-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px 16px;
  border-top: 1px solid var(--profile-border);
  background: transparent;
}

.profile-saved-card-panel > *:first-child {
  margin-top: 16px;
}


.profile-saved-card-details {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(170px, 1.45fr) minmax(64px, 0.55fr) minmax(120px, 1fr);
  gap: 8px 16px;
}

.profile-saved-card-details div:nth-child(3) {
  grid-row: 2;
  grid-column: 1 / -1;
}

.profile-saved-card-details div:nth-child(4) {
  grid-row: 1;
  grid-column: 3;
}

.profile-saved-card-details.profile-saved-card-details--inline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.profile-saved-card-details.profile-saved-card-details--inline div:nth-child(3),
.profile-saved-card-details.profile-saved-card-details--inline div:nth-child(4) {
  grid-row: auto;
  grid-column: auto;
}

.profile-judgment-report .profile-saved-card-details--inline {
  grid-template-columns: minmax(150px, 0.9fr) minmax(220px, 1.35fr) minmax(130px, 0.75fr);
}

.profile-bitacora-client .profile-saved-card-details.profile-saved-card-details--inline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-saved-card-details div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-saved-card-details dt {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--profile-muted);
}

.profile-saved-card-details dd {
  margin: 0;
  font-size: 14px;
  /* font-weight: 600; */
}

.profile-saved-card-meta {
  margin: 0;
  font-size: 12px;
  color: var(--profile-muted);
}

.profile-saved-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-saved-card-actions {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  margin-left: auto;
}

.profile-saved-card-open-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--profile-accent);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}

.profile-saved-card-open-button:hover,
.profile-saved-card-open-button:focus-visible {
  color: var(--profile-accent-hover, var(--profile-accent));
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile-saved-card-open-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--profile-accent) 55%, transparent);
  outline-offset: 3px;
  border-radius: 4px;
}

.profile-saved-card-open-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  text-decoration: none;
}

.profile-saved-card-edit-icon__shine {
  fill: var(--profile-surface);
}

.profile-saved-card-delete-button {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--profile-danger, #dc2626);
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: color 0.2s ease;
}

.profile-saved-card-delete-button:hover,
.profile-saved-card-delete-button:focus-visible {
  color: var(--profile-danger, #dc2626);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile-saved-card-delete-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--profile-danger, #dc2626) 55%, transparent);
  outline-offset: 2px;
}

.profile-saved-card-delete-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.profile-saved-card-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.profile-saved-card-edit-modal[data-visible="true"] {
  display: flex;
}

.profile-saved-card-edit-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(6px);
}

.profile-saved-card-edit-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: min(92vh, 680px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--profile-border-strong);
  border-radius: 8px;
  background: var(--profile-surface);
  color: var(--profile-text);
  box-shadow: 0 22px 52px rgba(2, 6, 23, 0.28);
}

.profile-saved-card-edit-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.profile-saved-card-edit-modal__header h2,
.profile-saved-card-edit-modal__header p,
.profile-saved-card-edit-current h3 {
  margin: 0;
}

.profile-saved-card-edit-modal__header h2 {
  font-size: 20px;
  line-height: 1.2;
}

.profile-saved-card-edit-modal__header p {
  margin-top: 6px;
  color: var(--profile-muted);
  font-size: 14px;
  line-height: 1.45;
}

.profile-saved-card-edit-modal__close {
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--profile-text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.profile-saved-card-edit-modal__close:hover,
.profile-saved-card-edit-modal__close:focus-visible {
  background: var(--profile-accent-soft);
}

.profile-saved-card-edit-modal__close:focus-visible {
  outline: 2px solid var(--profile-accent);
  outline-offset: 2px;
}

.profile-saved-card-edit-current {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--profile-border);
  border-left: 3px solid var(--profile-accent);
  border-radius: 8px;
  background: var(--profile-surface);
}

.profile-saved-card-edit-current h3 {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--profile-text);
}

.profile-saved-card-edit-current dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(72px, 0.65fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(78px, 0.72fr);
  gap: 6px;
}

.profile-saved-card-edit-current dl.is-client-locked-summary {
  grid-template-columns: minmax(0, 0.95fr) minmax(92px, 0.48fr) minmax(82px, 0.38fr) minmax(120px, 0.72fr);
}

.profile-saved-card-edit-current div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid var(--profile-border);
  border-radius: 6px;
  background: color-mix(in srgb, var(--profile-accent-soft) 30%, transparent);
}

.profile-saved-card-edit-current [data-saved-card-edit-field="nombre"] {
  grid-column: span 2;
}

.profile-saved-card-edit-current [data-saved-card-edit-field="lugar"] {
  grid-column: span 2;
}

.profile-saved-card-edit-current [data-saved-card-edit-field="descripcion"] {
  grid-column: 1 / -1;
}

.profile-saved-card-edit-current .is-client-locked-summary [data-saved-card-edit-field="zona-horaria"] {
  grid-column: span 2;
}

.profile-saved-card-edit-current dt {
  margin: 0;
  color: var(--profile-muted);
  font-size: 9.5px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profile-saved-card-edit-current dd {
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--profile-text);
  font-size: 12.5px;
  line-height: 1.25;
}

.profile-saved-card-edit-current [data-saved-card-edit-field="nombre"] dd {
  font-weight: 600;
}

.profile-saved-card-edit-form {
  gap: 10px;
}

.profile-saved-card-edit-form .profile-field {
  gap: 4px;
}

.profile-saved-card-edit-form .profile-label {
  font-size: 12px;
}

.profile-saved-card-edit-form .profile-input,
.profile-saved-card-edit-form .profile-select,
.profile-saved-card-edit-form textarea.profile-input {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 14px;
}

.profile-saved-card-edit-form textarea.profile-input {
  min-height: 58px;
  resize: vertical;
}

.profile-saved-card-edit-form__grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-saved-card-edit-form__grid--identity {
  grid-template-columns: minmax(130px, 0.42fr) minmax(0, 1fr);
}

.profile-saved-card-edit-modal.is-client-locked-card .profile-saved-card-edit-form__grid--identity,
.profile-saved-card-edit-modal.is-client-locked-card .profile-saved-card-edit-form > .profile-field[for="profileSavedCardEditDescription"] {
  display: none;
}

.profile-saved-card-edit-form input[readonly] {
  color: var(--profile-muted);
  background: color-mix(in srgb, var(--profile-surface) 74%, var(--profile-border));
  cursor: default;
}

.profile-saved-card-edit-form__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.profile-saved-card-edit-form__actions .profile-button {
  min-width: 136px;
  padding: 8px 18px;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
}

.profile-saved-card-edit-form__actions .profile-button.secondary {
  border-color: #111827;
  color: #111827;
}

.profile-saved-card-edit-form__actions .profile-button.primary {
  border-color: #3a7afe;
  background: transparent;
  color: #3a7afe;
  box-shadow: none;
}

.profile-saved-card-edit-form__actions .profile-button.secondary:hover,
.profile-saved-card-edit-form__actions .profile-button.secondary:focus-visible {
  border-color: #111827;
  background: rgba(17, 24, 39, 0.06);
  box-shadow: 0 2px 5px rgba(17, 24, 39, 0.08);
}

.profile-saved-card-edit-form__actions .profile-button.primary:hover,
.profile-saved-card-edit-form__actions .profile-button.primary:focus-visible {
  border-color: #3a7afe;
  background: rgba(58, 122, 254, 0.08);
  box-shadow: 0 2px 6px rgba(58, 122, 254, 0.12);
}

body.dark-theme .profile-saved-card-edit-form__actions .profile-button.secondary {
  border-color: #f8fafc;
  color: #f8fafc;
}

body.dark-theme .profile-saved-card-edit-form__actions .profile-button.secondary:hover,
body.dark-theme .profile-saved-card-edit-form__actions .profile-button.secondary:focus-visible {
  border-color: #f8fafc;
  background: rgba(248, 250, 252, 0.08);
  box-shadow: 0 2px 6px rgba(2, 6, 23, 0.24);
}

.profile-saved-card-edit-chart-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.72fr);
  gap: 6px;
}

.profile-saved-card-edit-chart-field {
  min-width: 0;
  height: 30px;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--input-border, var(--profile-border));
  border-radius: 6px;
  background: var(--input-bg, rgba(255, 255, 255, 0.85));
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.profile-saved-card-edit-chart-field:focus-within {
  border-color: var(--input-focus, rgba(58, 122, 254, 0.7));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--input-focus, rgba(58, 122, 254, 0.7)) 24%, transparent);
}

.profile-saved-card-edit-chart-field.is-client-locked-disabled {
  border-color: color-mix(in srgb, var(--profile-border) 72%, #94a3b8);
  background: color-mix(in srgb, var(--profile-surface) 54%, #d9dee8);
}

.profile-saved-card-edit-chart-field.is-readonly-disabled {
  border-color: color-mix(in srgb, var(--profile-border) 72%, #94a3b8);
  background: color-mix(in srgb, var(--profile-surface) 54%, #d9dee8);
}

.profile-saved-card-edit-chart-field.is-client-locked-disabled:focus-within {
  border-color: color-mix(in srgb, var(--profile-border) 72%, #94a3b8);
  box-shadow: none;
}

.profile-saved-card-edit-chart-field.is-readonly-disabled:focus-within {
  border-color: color-mix(in srgb, var(--profile-border) 72%, #94a3b8);
  box-shadow: none;
}

.profile-saved-card-edit-chart-field--place {
  grid-column: 1 / -1;
}

.profile-saved-card-edit-chart-icon {
  width: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--profile-border);
  color: var(--profile-accent);
  background: color-mix(in srgb, var(--profile-accent-soft) 62%, transparent);
}

.profile-saved-card-edit-chart-icon svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-saved-card-edit-chart-field input,
.profile-saved-card-edit-chart-field select {
  min-width: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--input-text, inherit);
  font: inherit;
  font-size: 13px;
  padding: 3px 8px;
  outline: none;
  box-shadow: none;
}

.profile-saved-card-edit-chart-field input:disabled {
  color: color-mix(in srgb, var(--profile-muted) 78%, #475569);
  cursor: not-allowed;
  -webkit-text-fill-color: color-mix(in srgb, var(--profile-muted) 78%, #475569);
}

.profile-saved-card-edit-chart-field.is-readonly-disabled input[readonly] {
  color: color-mix(in srgb, var(--profile-muted) 78%, #475569);
  cursor: not-allowed;
  -webkit-text-fill-color: color-mix(in srgb, var(--profile-muted) 78%, #475569);
}

.profile-saved-card-edit-chart-field.is-client-locked-disabled .profile-saved-card-edit-chart-icon {
  color: color-mix(in srgb, var(--profile-muted) 72%, #64748b);
  background: color-mix(in srgb, var(--profile-border) 62%, transparent);
}

.profile-saved-card-edit-chart-field.is-readonly-disabled .profile-saved-card-edit-chart-icon {
  color: color-mix(in srgb, var(--profile-muted) 72%, #64748b);
  background: color-mix(in srgb, var(--profile-border) 62%, transparent);
}

.profile-saved-card-edit-chart-field select {
  cursor: pointer;
}

.profile-saved-card-edit-chart-field input[readonly] {
  color: var(--profile-muted);
  cursor: default;
}

body.profile-saved-card-edit-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .profile-saved-card-edit-modal {
    align-items: flex-end;
    padding: 12px;
  }

  .profile-saved-card-edit-modal__dialog {
    width: 100%;
    max-height: 92vh;
    padding: 18px;
  }

  .profile-saved-card-edit-current dl,
  .profile-saved-card-edit-chart-fields,
  .profile-saved-card-edit-form__grid {
    grid-template-columns: 1fr;
  }

  .profile-saved-card-edit-chart-field--place {
    grid-column: auto;
  }

  .profile-saved-card-edit-form__actions {
    flex-direction: row;
  }

  .profile-saved-card-edit-form__actions .profile-button {
    width: auto;
  }
}

.profile-privacy-columns {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.profile-privacy-export {
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--profile-border);
  background: var(--profile-surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-privacy-export h3 {
  margin: 0;
}

.profile-privacy-export p {
  margin: 0;
  font-size: 14px;
  color: var(--profile-muted);
}

.profile-privacy-export .profile-actions {
  margin-top: auto;
}

.profile-privacy-columns .profile-danger-zone {
  margin-top: 0;
}

.profile-danger-zone {
  margin-top: 8px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(220, 38, 38, 0.35);
  background: var(--profile-danger-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-danger-zone h3 {
  margin: 0;
}

.profile-danger-zone p {
  margin: 0;
  font-size: 14px;
  color: var(--profile-danger);
}

.profile-admin-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}

.profile-admin-panels #profileAdminUpdatesPanel {
  grid-column: 1 / -1;
}

.profile-admin-panels > * {
  height: 100%;
}

.profile-accordion-summary.profile-founder-pro-launch__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-direction: row;
  padding-right: 66px;
}

.profile-accordion-summary.profile-founder-pro-launch__header .profile-accordion-title {
  min-width: 0;
  margin-right: auto;
  text-align: left;
}

.profile-founder-pro-launch__refresh {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--profile-accent);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  padding: 0;
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.profile-founder-pro-launch__refresh:hover,
.profile-founder-pro-launch__refresh:focus-visible {
  color: var(--profile-accent-hover, var(--profile-accent));
  text-decoration: underline;
}

.profile-founder-pro-launch__refresh:disabled {
  cursor: wait;
  opacity: 0.55;
  text-decoration: none;
}

.profile-founder-pro-launch__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.profile-founder-pro-launch__metric {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--profile-border);
  border-radius: 8px;
  background: var(--profile-surface);
}

.profile-founder-pro-launch__metric strong {
  color: var(--profile-text);
  font-size: 1.05rem;
  line-height: 1;
}

.profile-founder-pro-launch__metric span {
  overflow: hidden;
  color: var(--profile-muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-founder-pro-launch__list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--profile-border);
}

.profile-founder-pro-launch-request {
  border-bottom: 1px solid var(--profile-border);
  background: transparent;
}

.profile-founder-pro-launch-request__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  cursor: pointer;
  list-style: none;
}

.profile-founder-pro-launch-request__summary::marker,
.profile-founder-pro-launch-request__summary::-webkit-details-marker {
  display: none;
}

.profile-founder-pro-launch-request__identity {
  display: flex;
  min-width: 0;
  flex: 1 1 0;
  align-items: baseline;
  gap: 6px;
}

.profile-founder-pro-launch-request__identity strong,
.profile-founder-pro-launch-request__identity span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-founder-pro-launch-request__identity strong {
  flex: 0 1 auto;
  color: var(--profile-text);
  font-size: 13px;
  line-height: 1.2;
}

.profile-founder-pro-launch-request__identity span {
  flex: 1 1 auto;
  color: var(--profile-muted);
  font-size: 11px;
  line-height: 1.2;
}

.profile-founder-pro-launch-request__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.profile-founder-pro-launch-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--profile-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.profile-founder-pro-launch-check input {
  width: 12px;
  height: 12px;
  margin: 0;
}

.profile-founder-pro-launch-status {
  box-sizing: border-box;
  flex: 0 0 98px;
  inline-size: 98px;
  min-width: 98px;
  width: 98px;
  min-height: 28px;
  max-width: 98px;
  padding: 4px 19px 4px 7px;
  background-position: calc(100% - 12px) calc(50% - 2px), calc(100% - 7px) calc(50% - 2px), calc(100% - 30px) 50%;
  background-size: 5px 5px, 5px 5px, 1px 28px;
  font-size: 10.5px;
  line-height: 1.2;
}

.profile-founder-pro-launch-request__body {
  display: grid;
  gap: 14px;
  padding: 3px 0 16px;
}

.profile-founder-pro-launch-request__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
}

.profile-founder-pro-launch__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-founder-pro-launch__meta span {
  color: var(--profile-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-founder-pro-launch__meta strong,
.profile-founder-pro-launch__meta a {
  overflow-wrap: anywhere;
  color: var(--profile-text);
  font-size: 13px;
  font-weight: 600;
}

.profile-founder-pro-launch-notes {
  gap: 8px;
}

.profile-admin-updates-version {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 18px 0 12px;
}

.profile-admin-updates-editing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px dashed var(--profile-border);
  background: rgba(58, 122, 254, 0.06);
  margin-bottom: 18px;
}

.profile-admin-updates-editing-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-admin-updates-editing-label {
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--profile-muted);
}

.profile-admin-updates-editing-summary {
  font-size: 15px;
  font-weight: 500;
  color: var(--profile-text);
}

/* Toolbar editor actualizaciones */
.profile-rich-editor {
  display: grid;
  gap: 6px;
}

.profile-rich-toolbar {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  overflow: visible;
}

.profile-rich-toolbar > * {
  flex: 0 0 auto;
}

.profile-rich-toolbar .profile-button {
  min-width: unset;
  padding: 5px 15px;
  font-size: 0.85rem;
  line-height: 1.1;
  height: 24px;
}

.profile-rich-toolbar .profile-button--color {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 15px;
  height: 24px;
}

.profile-color-swatches {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  flex: 0 0 auto;
}

.profile-rich-toolbar .profile-color-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  padding: 0;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.profile-rich-editor [contenteditable="true"] {
  min-height: 120px;
  padding: 10px 12px;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  background: var(--input-bg);
}

@media (max-width: 640px) {
  .profile-admin-updates-editing {
    flex-direction: column;
    align-items: flex-start;
  }
}

.profile-admin-version-indicator {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.profile-admin-version-label {
  font-size: 14px;
  color: var(--profile-muted);
}

.profile-admin-version-value {
  font-size: 20px;
  font-weight: 400;
  color: var(--profile-text);
}

.profile-admin-version-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.profile-admin-version-input {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-admin-version-prefix {
  font-size: 16px;
  font-weight: 400;
  color: var(--profile-text);
}

.profile-admin-version-input .profile-input {
  width: 140px;
  min-width: 120px;
}

.profile-admin-updates-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-admin-updates-fields,
.profile-admin-updates-focus {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.profile-admin-updates-form .profile-form-actions {
  justify-content: flex-start;
  gap: 12px;
}

.profile-input--textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
  padding-top: 10px;
  padding-bottom: 10px;
}

.profile-student-feature-panel {
  display: flex;
  flex-direction: column;
}

.profile-student-feature-intro {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.profile-student-feature-controls {
  display: flex;
  justify-content: flex-end;
  margin: 16px 0 12px;
}

.profile-student-feature-search {
  width: 100%;
  max-width: 320px;
}

.profile-student-feature-search .profile-input {
  width: 100%;
}

.profile-student-feature-table-wrapper {
  margin-top: 4px;
  overflow-x: auto;
  overflow-y: hidden;
}

.profile-student-feature-table th:first-child,
.profile-student-feature-table td:first-child {
  text-align: center;
  width: 92px;
}

.profile-student-feature-table__toggle {
  text-align: center;
}

.profile-student-feature-checkbox {
  width: 18px;
  height: 18px;
}

.profile-student-feature-hint {
  margin: 0;
  font-size: 13px;
  color: var(--profile-muted);
}

.profile-accordion {
  border: 1px solid var(--profile-border);
  border-radius: 8px;
  background: var(--profile-surface);
  box-shadow: var(--profile-shadow);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-accordion[open] {
  border-color: var(--profile-border-strong, rgba(24, 34, 67, 0.16));
  box-shadow: 0 24px 48px rgba(22, 32, 72, 0.18);
}

.profile-card--disabled {
  opacity: 0.85;
}

.profile-chart-preferences-control--disabled {
  cursor: not-allowed;
}

.alumno-restriction-tab {
  display: block;
  margin: 12px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--profile-accent-soft);
  border: 1px solid rgba(58, 122, 254, 0.25);
  color: var(--profile-accent);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 14px 30px rgba(58, 122, 254, 0.2);
}

.alumno-restriction-tab--panel {
  margin: 12px 0;
}

.alumno-restriction-tab--card {
  margin: 14px 0 0;
  width: 100%;
}

.alumno-restriction-tab__message {
  display: block;
}

body.dark-theme .alumno-restriction-tab {
  background: var(--profile-accent-soft);
  border-color: rgba(139, 155, 255, 0.4);
  color: #e0e7ff;
  box-shadow: 0 16px 36px rgba(139, 155, 255, 0.24);
}

.alumno-tooltip {
  position: relative;
}

.alumno-tooltip[data-alumno-tooltip]::after {
  content: attr(data-alumno-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  min-width: 220px;
  max-width: 320px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.94);
  color: #f8fafc;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 70;
  white-space: normal;
}

.alumno-tooltip[data-alumno-tooltip]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: rgba(17, 24, 39, 0.94) transparent transparent transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  z-index: 69;
}

.alumno-tooltip[data-alumno-tooltip]:hover::after,
.alumno-tooltip[data-alumno-tooltip]:focus-within::after,
.alumno-tooltip[data-alumno-tooltip]:hover::before,
.alumno-tooltip[data-alumno-tooltip]:focus-within::before {
  opacity: 1;
  visibility: visible;
}

body.dark-theme .alumno-tooltip[data-alumno-tooltip]::after {
  background: rgba(30, 41, 59, 0.92);
  color: #e0f2fe;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.45);
}

body.dark-theme .alumno-tooltip[data-alumno-tooltip]::before {
  border-color: rgba(30, 41, 59, 0.92) transparent transparent transparent;
}

.profile-accordion-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 18px;
  font-weight: 400;
  color: var(--profile-text);
  position: relative;
}

.profile-accordion-summary::marker,
.profile-accordion-summary::-webkit-details-marker {
  display: none;
}

.profile-accordion-summary::after {
  content: "";
  position: absolute;
  right: 28px;
  top: 50%;
  width: var(--profile-collapsible-indicator-size);
  height: var(--profile-collapsible-indicator-size);
  border-right: var(--profile-collapsible-indicator-stroke) solid currentColor;
  border-bottom: var(--profile-collapsible-indicator-stroke) solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.2s ease;
}

.profile-accordion[open] .profile-accordion-summary::after {
  transform: translateY(-50%) rotate(225deg);
}

.profile-accordion-title {
  font-size: 17px;
  letter-spacing: 0.01em;
}

.profile-accordion-description {
  font-weight: 400;
  color: var(--profile-muted);
  font-size: 15px;
}

.profile-accordion-panel {
  border-top: 1px solid var(--profile-border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-accordion-heading {
  font-size: 22px;
  font-weight: 400;
  margin: 0;
  color: var(--profile-text);
}

.profile-admin-backend .profile-accordion-panel {
  gap: 20px;
}

.profile-admin-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-admin-search {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-admin-controls .profile-form-actions {
  gap: 8px;
}

.profile-table-wrapper {
  border: 1px solid var(--profile-border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--profile-surface);
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
}

.profile-table th,
.profile-table td {
  padding: 4px 3px;
  text-align: left;
  border-bottom: 1px solid var(--profile-border);
  color: var(--profile-text);
  font-size: 13px;
  font-weight: 400;
}

.profile-table th {
  background: var(--profile-accent-soft);
  color: var(--profile-accent);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.profile-table-status-header,
.profile-table-status-cell {
  width: 36px;
  min-width: 36px;
  text-align: center;
}

.profile-table-status-cell {
  padding-left: 4px;
  padding-right: 4px;
  vertical-align: middle;
  text-align: center;
}

.profile-table-status-header {
  text-align: center;
}

.profile-table-status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid transparent;
  display: block;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  line-height: 1;
  margin: 0 auto;
}

.profile-table-status-indicator.profile-session-metric-indicator--online {
  background-color: var(--profile-success);
  box-shadow: 0 0 0 1px rgba(15, 157, 88, 0.2);
  border-color: var(--profile-success);
}

body.dark-theme .profile-table-status-indicator.profile-session-metric-indicator--online {
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.25);
}

.profile-table-status-indicator.profile-session-metric-indicator--offline {
  border-color: var(--profile-indicator-offline-border);
}

.profile-table-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  text-align: left;
}

.profile-table-sort:focus-visible {
  outline: 2px solid var(--profile-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.profile-table-sort-label {
  flex: 1 1 auto;
}

.profile-table-sort-icon {
  position: relative;
  width: 10px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-table-sort-icon::before,
.profile-table-sort-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  opacity: 0.35;
}

.profile-table-sort-icon::before {
  top: 1px;
  border-bottom: 5px solid currentColor;
}

.profile-table-sort-icon::after {
  bottom: 1px;
  border-top: 5px solid currentColor;
}

.profile-table-sort.is-active .profile-table-sort-icon::before,
.profile-table-sort.is-active .profile-table-sort-icon::after {
  opacity: 0.75;
}

.profile-table-sort.is-active[data-sort-direction="asc"] .profile-table-sort-icon::before {
  opacity: 1;
}

.profile-table-sort.is-active[data-sort-direction="asc"] .profile-table-sort-icon::after {
  opacity: 0.2;
}

.profile-table-sort.is-active[data-sort-direction="desc"] .profile-table-sort-icon::after {
  opacity: 1;
}

.profile-table-sort.is-active[data-sort-direction="desc"] .profile-table-sort-icon::before {
  opacity: 0.2;
}

.profile-table tbody tr:last-child td {
  border-bottom: none;
}

.profile-table tbody tr:nth-child(even) td {
  background: rgba(58, 122, 254, 0.05);
}

.profile-table .profile-table-date {
  color: var(--profile-muted);
  font-weight: 400;
}

.profile-table code {
  font-family: "Fira Code", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  background: rgba(15, 23, 42, 0.05);
  padding: 3px 6px;
  border-radius: 6px;
  display: inline-block;
}

.profile-role-select {
  width: 100%;
  max-width: 111px;
  min-width: 97px;
  font-size: 13px;
}

.profile-role-select[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.profile-table tbody tr:hover td {
  background: rgba(58, 122, 254, 0.08);
}

body.dark-theme .profile-accordion {
  background: var(--profile-surface);
  border-color: var(--profile-border);
  box-shadow: 0 24px 48px rgba(2, 6, 23, 0.55);
}

body.dark-theme .profile-accordion[open] {
  border-color: var(--profile-border-strong);
}

body.dark-theme .profile-accordion-description {
  color: var(--profile-muted);
}

body.dark-theme .profile-accordion-panel {
  border-top-color: var(--profile-border);
}

body.dark-theme .profile-table-wrapper {
  border-color: var(--profile-border);
  background: var(--profile-surface);
}

body.dark-theme .profile-table th {
  background: rgba(139, 155, 255, 0.18);
  color: var(--profile-accent);
}

body.dark-theme .profile-table td {
  color: var(--profile-text);
  border-bottom-color: var(--profile-border);
}

body.dark-theme .profile-table tbody tr:nth-child(even) td {
  background: rgba(139, 155, 255, 0.12);
}

@media (min-width: 768px) {
  .profile-admin-controls {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .profile-admin-search {
    flex-direction: row;
    align-items: flex-end;
    flex: 1;
    gap: 20px;
  }

  @media (min-width: 1024px) {
  .profile-admin-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .profile-admin-panels > * {
    min-width: 0;
  }

  .profile-admin-backend {
    grid-column: 1 / -1;
  }
  
  .profile-student-feature-panel {
    grid-column: 1 / -1;
  }
}

  .profile-admin-search .profile-field {
    flex: 1;
  }

  .profile-admin-controls .profile-form-actions {
    flex-wrap: nowrap;
  }
}

@media (max-width: 960px) {
  .profile-classroom-panel__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-classroom-panel__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .profile-classroom-toggle {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 900px) {
  .profile-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .profile-header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .profile-tablist {
    gap: 14px;
    justify-content: flex-start;
  }

  .profile-back {
    margin-left: auto;
  }

  .profile-privacy-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .profile-founder-pro-launch-request__summary,
  .profile-founder-pro-launch-request__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-founder-pro-launch__summary,
  .profile-founder-pro-launch-request__grid {
    grid-template-columns: 1fr;
  }

  .profile-founder-pro-launch-status {
    max-width: none;
  }

  .profile-layout {
    padding: 16px 14px 40px;
    gap: 16px;
  }

  .profile-header {
    padding: 12px;
  }

  .profile-header-actions {
    align-items: flex-start;
    gap: 12px;
  }

  .profile-tablist {
    width: 100%;
    row-gap: 8px;
  }

  .profile-card {
    padding: 20px;
  }

  .profile-tabpanel-grid {
    grid-template-columns: 1fr;
  }

  .profile-bitacora-title-row {
    align-items: stretch;
  }

  .profile-bitacora-action {
    width: 100%;
    margin-left: 0;
  }

  .profile-bitacora-action .profile-button {
    width: 100%;
  }

  .profile-bitacora-overview {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .profile-bitacora-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--profile-border);
    border-left: 0;
  }

  .profile-bitacora-summary div {
    min-height: 76px;
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--profile-border);
  }

  .profile-bitacora-client-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 15px 0;
  }

  .profile-bitacora-client-row__signals {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .profile-bitacora-client-row .profile-saved-card-open-button {
    justify-self: start;
  }
}

@media (max-width: 480px) {
  .profile-header h1 {
    white-space: normal;
  }

  .profile-back {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .profile-bitacora-summary {
    grid-template-columns: 1fr;
  }

  .profile-bitacora-client-row__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-bitacora-client-row__title {
    white-space: normal;
  }

  .profile-bitacora-client .profile-saved-card-details {
    grid-template-columns: 1fr;
  }

  .profile-saved-card-details.profile-saved-card-details--inline,
  .profile-judgment-report .profile-saved-card-details--inline,
  .profile-bitacora-client .profile-saved-card-details.profile-saved-card-details--inline {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.location-suggestions {
  position: absolute;
  z-index: 9999;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 4px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.15);
  max-height: 280px;
  overflow-y: auto;
  font-size: 0.85rem;
}

body.dark-theme .location-suggestions {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.7);
  color: #e2e8f0;
}

.location-suggestion {
  padding: 0.6rem 0.85rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
  white-space: normal;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

body.dark-theme .location-suggestion {
  color: inherit;
}

.location-suggestion__primary {
  font-weight: 600;
  color: #0f172a;
}

body.dark-theme .location-suggestion__primary {
  color: #e2e8f0;
}

.location-suggestion__secondary {
  font-size: 0.74rem;
  color: #64748b;
}

body.dark-theme .location-suggestion__secondary {
  color: #94a3b8;
}

.location-suggestion[aria-selected="true"],
.location-suggestion:hover {
  background-color: rgba(226, 232, 240, 0.6);
}

body.dark-theme .location-suggestion[aria-selected="true"],
body.dark-theme .location-suggestion:hover {
  background-color: rgba(148, 163, 184, 0.16);
}
