/* ============================================
   Academic Planner AI — App privada
   (Login, registro, onboarding, materias)
   Reutiliza las variables y .btn/.badge de styles.css
   ============================================ */

@keyframes ap-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.ap-fade {
  animation: ap-fade-up 0.5s cubic-bezier(0.21, 0.47, 0.32, 0.98);
}

/* ============== AUTH (login / registro / recuperar) ============== */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  padding: 32px 20px;
}

.auth-shell {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.auth-logo .logo__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #fff;
  flex-shrink: 0;
}

.auth-logo__text {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.auth-logo__text span {
  color: var(--color-primary);
}

.auth-card {
  width: 100%;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
}

.auth-card h1 {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-align: center;
}

.auth-card__subtitle {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
}

.auth-form {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--color-cta);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: var(--color-card);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.form-checkbox input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--color-cta);
  flex-shrink: 0;
}

.form-checkbox a {
  color: var(--color-cta);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s ease;
}

.form-checkbox a:hover {
  text-decoration-color: var(--color-cta);
}

.auth-message {
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

.auth-message--error {
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

.auth-message--success {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.auth-links {
  margin-top: 24px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.auth-links a {
  color: var(--color-cta);
  font-weight: 600;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-links-sep {
  margin: 0 10px;
  color: var(--color-border);
}

/* ============== WELCOME (onboarding) ============== */

.welcome-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  padding: 32px 20px;
}

.welcome-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
}

.welcome-topbar a.auth-logo {
  margin-bottom: 0;
}

.welcome-signout {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: none;
  border: none;
}

.welcome-signout:hover {
  color: var(--color-text);
}

.welcome-card {
  width: 100%;
  max-width: 480px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 48px 40px;
  text-align: center;
}

.welcome-emoji {
  font-size: 2.6rem;
  line-height: 1;
}

.welcome-card h1 {
  margin-top: 18px;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.welcome-card__text {
  margin-top: 12px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.welcome-credit {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: left;
}

.welcome-credit__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
}

.welcome-credit__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.welcome-credit__text {
  margin-top: 2px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
}

.welcome-card .btn {
  margin-top: 32px;
}

/* ============== APP SHELL (privado, con sidebar) ============== */

.app-shell {
  display: flex;
  min-height: 100vh;
  background: var(--color-bg);
}

.app-sidebar {
  width: 264px;
  flex-shrink: 0;
  background: var(--color-card);
  border-right: 1px solid var(--color-border);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: sticky;
  top: 0;
  align-self: flex-start;
  max-height: 100vh;
  overflow-y: auto;
}

.app-sidebar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
}

.app-sidebar__logo .logo__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #fff;
  flex-shrink: 0;
}

.app-sidebar__logo-text {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.app-sidebar__logo-text span {
  color: var(--color-primary);
}

.app-nav {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.app-nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.app-nav__item--active {
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 600;
}

.app-nav__item:not(.app-nav__item--disabled):not(.app-nav__item--active):hover {
  background: var(--color-bg-alt);
}

.app-nav__item--disabled {
  color: var(--color-text-muted);
  cursor: not-allowed;
  opacity: 0.75;
}

.app-nav__soon {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.app-sidebar__footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.app-main {
  flex: 1;
  padding: 48px 40px;
  overflow-y: auto;
}

.app-content {
  max-width: 640px;
  margin: 0 auto;
}

.app-content--wide {
  max-width: 1120px;
}

.app-content__head {
  margin-bottom: 32px;
}

.app-content__head h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.app-content__head p {
  margin-top: 8px;
  font-size: 0.98rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.app-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 36px;
}

.app-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.app-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.app-form .btn {
  margin-top: 8px;
}

/* Vista placeholder de materia creada */

.subject-status {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 28px;
}

.subject-status__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text);
}

.subject-status__item svg {
  color: var(--color-success);
  flex-shrink: 0;
}

/* ============== DOCUMENTOS: ZONAS DE CARGA ============== */

.upload-zones {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dropzone {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--color-cta);
  background: var(--color-accent);
}

.dropzone.has-file {
  border-style: solid;
  border-color: var(--color-success);
  background: rgba(16, 185, 129, 0.05);
}

.dropzone__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--color-accent);
  color: var(--color-primary);
}

.dropzone.has-file .dropzone__icon {
  background: var(--color-success);
  color: #fff;
}

.dropzone__body {
  flex: 1;
  min-width: 0;
}

.dropzone__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dropzone__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

.dropzone__optional {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.dropzone__hint {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.dropzone__file-name {
  margin-top: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropzone__file-meta {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.dropzone__action {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-cta);
  background: none;
  border: none;
}

.dropzone__action:hover {
  text-decoration: underline;
}

.dropzone__input {
  display: none;
}

.dropzone__progress {
  margin-top: 8px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--color-border);
  overflow: hidden;
}

.dropzone__progress-bar {
  height: 100%;
  width: 0%;
  background: var(--color-cta);
  border-radius: var(--radius-pill);
  transition: width 0.35s ease;
}

.dropzone__status {
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.dropzone__status--success {
  color: var(--color-success);
}

.dropzone__warning,
.dropzone__error {
  margin-top: 8px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  line-height: 1.4;
}

.dropzone__warning {
  background: rgba(245, 158, 11, 0.1);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.dropzone__error {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, 0.25);
}

.dropzone__retry {
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-cta);
  background: none;
  border: 1px solid var(--color-cta);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  cursor: pointer;
}

.upload-tips {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--color-accent);
  border: 1px solid var(--color-border);
}

.upload-tips h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.upload-tips ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.upload-tips li {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.upload-split-card {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.upload-split-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

.upload-split-card strong {
  display: block;
  font-size: 0.92rem;
  color: var(--color-text);
  margin-bottom: 2px;
}

/* ============== STICKY SAVE BAR (plan view) ============== */

.plan-save-bar {
  position: fixed;
  bottom: 0;
  left: 264px;
  right: 0;
  z-index: 200;
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
  padding: 12px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(100%);
  transition: transform 0.26s cubic-bezier(0.21, 0.47, 0.32, 0.98);
  pointer-events: none;
}

.plan-save-bar.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}

.plan-save-bar__msg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.plan-save-bar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F59E0B;
  flex-shrink: 0;
}

.plan-save-bar__actions {
  display: flex;
  gap: 10px;
}

/* ============== OVERLAY DE GENERACIÓN (Academic Intelligence Core) ============== */

.analyzing-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(10, 18, 38, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.analyzing-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.analyzing-box {
  background: linear-gradient(145deg, #1E3A8A 0%, #1e40af 100%);
  color: #fff;
  border-radius: 20px;
  padding: 44px 48px 40px;
  max-width: 500px;
  width: calc(100% - 48px);
  text-align: center;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255,255,255,0.08) inset;
}

.analyzing-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  margin-bottom: 20px;
  color: #fff;
  animation: aicon-pulse 2.2s ease-in-out infinite;
}

@keyframes aicon-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.1); opacity: 0.75; }
}

.analyzing-box h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.analyzing-box__subtitle {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 28px;
}

/* Lista de pasos del pipeline */
.analyzing-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
}

.analyzing-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: color 0.4s ease;
}

.analyzing-step:last-child { border-bottom: none; }

.analyzing-step.is-active {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.analyzing-step.is-done {
  color: rgba(255, 255, 255, 0.42);
}

.analyzing-step__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.analyzing-step.is-active .analyzing-step__dot {
  background: #60A5FA;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3);
  animation: step-dot-pulse 0.9s ease-in-out infinite;
}

.analyzing-step.is-done .analyzing-step__dot {
  background: #34D399;
}

@keyframes step-dot-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.35); }
}

/* Barra de progreso */
.analyzing-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.analyzing-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, #60A5FA, #818CF8);
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  width: 0%;
}

/* ============== DNA BANNER / STATUS (dashboard) ============== */

.dna-banner {
  display: none;
  background: linear-gradient(135deg, #EFF6FF, #F0FDF4);
  border: 1.5px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dna-banner__icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.dna-banner__body {
  flex: 1;
  min-width: 220px;
}

.dna-banner__title {
  font-weight: 700;
  color: #1E3A8A;
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.dna-banner__sub {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.dna-banner__cta {
  padding: 9px 20px;
  background: var(--color-cta);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.dna-banner__cta:hover {
  background: #1D4ED8;
}

.dna-status-bar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.dna-status-bar__icon {
  font-size: 1.1rem;
}

.dna-status-bar__label {
  color: var(--color-text);
  font-weight: 500;
}

.dna-status-bar__edit {
  margin-left: auto;
  color: var(--color-cta);
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
}

.dna-status-bar__edit:hover {
  text-decoration: underline;
}

/* ============== PLAN: brain quality card info blocks ============== */

.plan-info-note {
  margin-top: 14px;
  color: var(--color-text-muted);
}

.plan-info-sub {
  margin-top: 8px;
  font-size: 0.85em;
  color: var(--color-text-muted);
}

.plan-detail-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.plan-detail-block p {
  font-weight: 600;
  margin-bottom: 6px;
}

.plan-detail-block ul {
  margin: 0 0 0 18px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ============== DASHBOARD: app-card spacing ============== */

.app-card--spaced {
  margin-bottom: 24px;
}

.app-card__head {
  margin-bottom: 14px;
}

/* ============== RESUMEN DE ANÁLISIS ============== */

.summary-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px 32px;
  margin-bottom: 28px;
}

.summary-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.summary-card__subject {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
}

.summary-card__subject span {
  font-weight: 500;
  color: var(--color-text-muted);
}

.badge--warn {
  background: #FEF3C7;
  color: #92400E;
}

.validation-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.validation-row__arrow {
  color: var(--color-text-muted);
}

.validation-row select {
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
}

.badge--success-soft {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.badge--info {
  background: var(--color-accent);
  color: var(--color-primary);
}

.badge--neutral {
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.summary-stat {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.summary-stat__value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

.summary-stat__label {
  margin-top: 4px;
  font-size: 0.76rem;
  color: var(--color-text-muted);
}

/* ============== TOOLBAR DE SESIONES ============== */

.sessions-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.sessions-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ============== TABLA DE SESIONES (RESPONSIVE) ============== */

.sessions-table-wrap {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.sessions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  table-layout: fixed;
}

.sessions-table th {
  text-align: left;
  padding: 10px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sessions-table td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  vertical-align: top;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

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

.sessions-table tbody tr:hover {
  background: var(--color-bg-alt);
}

/* Anchos de columna fijos para que la tabla siempre quepa sin scroll */
.sessions-table th:nth-child(1),
.sessions-table td:nth-child(1) { width: 32px; }   /* checkbox */
.sessions-table th:nth-child(2),
.sessions-table td:nth-child(2) { width: 52px; }   /* sesión # */
.sessions-table th:nth-child(3),
.sessions-table td:nth-child(3) { width: 82px; }   /* fecha */
.sessions-table th:nth-child(4),
.sessions-table td:nth-child(4) { width: 68px; }   /* hora inicio */
.sessions-table th:nth-child(5),
.sessions-table td:nth-child(5) { width: 68px; }   /* hora fin */
.sessions-table th:nth-child(6),
.sessions-table td:nth-child(6) { width: 10%; }    /* unidad */
.sessions-table th:nth-child(7),
.sessions-table td:nth-child(7) { width: 16%; }    /* tema */
.sessions-table th:nth-child(8),
.sessions-table td:nth-child(8) { width: 16%; }    /* subtema */
.sessions-table th:nth-child(9),
.sessions-table td:nth-child(9) { width: 14%; }    /* actividad */
.sessions-table th:nth-child(10),
.sessions-table td:nth-child(10) { width: 72px; }  /* estado */
.sessions-table th:nth-child(11),
.sessions-table td:nth-child(11) { width: 80px; }  /* acciones */

.sessions-table td.is-num {
  font-weight: 700;
  color: var(--color-primary);
}

.sessions-table .cell-muted {
  color: var(--color-text-muted);
}

.sessions-table__actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-card);
  color: var(--color-text-muted);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.icon-btn:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.icon-btn--danger:hover {
  background: #FEF2F2;
  color: #B91C1C;
  border-color: #FECACA;
}

.session-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.session-status-pill--pending {
  background: #FEF3C7;
  color: #92400E;
}

.session-status-pill--confirmed {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.session-combine-checkbox {
  width: 17px;
  height: 17px;
  accent-color: var(--color-cta);
}

/* Tarjetas apiladas (mobile) — mismo HTML, distinta presentación */

.sessions-cards {
  display: none;
}

.session-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.session-card + .session-card {
  margin-top: 14px;
}

.session-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.session-card__number {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
}

.session-card__row {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
}

.session-card__row dt {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.session-card__row dd {
  text-align: right;
  color: var(--color-text);
  font-weight: 500;
}

.session-card__actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ============== CELEBRACIÓN: SESIONES CONFIRMADAS ============== */

.celebration-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.6);
  padding: 24px;
}

.celebration-overlay.is-open {
  display: flex;
}

.celebration-card {
  max-width: 440px;
  width: 100%;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 44px 36px;
  text-align: center;
}

.celebration-card__emoji {
  font-size: 2.4rem;
}

.celebration-card h2 {
  margin-top: 16px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
}

.celebration-card p {
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.celebration-card .btn {
  margin-top: 26px;
}

/* ============== MODAL DE SESIÓN (extiende .modal de styles.css) ============== */

.modal__panel--session {
  max-width: 620px;
  max-height: 86vh;
  overflow-y: auto;
}

.session-form {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.session-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.session-form .form-row--three {
  grid-template-columns: 1fr 1fr 1fr;
}

.session-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  resize: vertical;
  min-height: 70px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.session-form textarea:focus {
  outline: none;
  border-color: var(--color-cta);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: var(--color-card);
}

.session-form__actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ============== RESPONSIVE ============== */

@media (max-width: 900px) {
  .app-shell {
    flex-direction: column;
  }

  .app-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 18px 20px;
  }

  .app-nav {
    margin-top: 18px;
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
  }

  .app-nav__item {
    width: auto;
    white-space: nowrap;
  }

  .app-sidebar__footer {
    margin-top: 18px;
    padding-top: 0;
    border-top: none;
  }

  .app-main {
    padding: 32px 20px;
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sessions-table {
    font-size: 0.8rem;
  }

  .sessions-table th,
  .sessions-table td {
    padding: 11px 12px;
  }
}

@media (max-width: 600px) {
  .auth-card,
  .welcome-card {
    padding: 32px 24px;
  }

  .app-form .form-row {
    grid-template-columns: 1fr;
  }

  .welcome-topbar {
    padding: 16px 20px;
  }

  .summary-card {
    padding: 22px 20px;
  }

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

  .sessions-table-wrap {
    display: none;
  }

  .sessions-cards {
    display: block;
  }

  .sessions-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .sessions-toolbar__actions {
    justify-content: stretch;
  }

  .sessions-toolbar__actions .btn {
    flex: 1;
  }

  .session-form .form-row,
  .session-form .form-row--three {
    grid-template-columns: 1fr;
  }

  .modal__panel--session {
    padding: 28px 22px;
  }
}

/* ============== Créditos ============== */

.credits-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

.credits-badge--empty {
  background: #FEF3C7;
  color: #92400E;
}

.app-content__head--with-badge {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============== Pantalla de generación del plan gratuito ============== */

.plan-brief {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 24px 0 28px;
}

.plan-brief__item {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.plan-brief__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.plan-brief__value {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-text);
}

.existing-plan-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--color-accent);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 24px;
}

.btn[hidden] {
  display: none;
}

.existing-plan-card[hidden] {
  display: none;
}

.existing-plan-card p {
  margin: 0;
  font-weight: 600;
  color: var(--color-primary);
}

/* ============== Visor / editor del plan ============== */

.plan-wow {
  background: linear-gradient(135deg, var(--color-primary), var(--color-cta));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 28px;
}

.plan-wow h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.plan-wow p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
}

.plan-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.plan-field {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 16px;
}

.plan-field__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.plan-field__label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
}

.plan-field__actions {
  display: flex;
  gap: 8px;
}

.btn--xs {
  padding: 6px 14px;
  font-size: 0.78rem;
  border-radius: var(--radius-pill);
}

.plan-field textarea,
.plan-field input[type="text"] {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--color-text);
  resize: vertical;
  min-height: 46px;
}

.plan-field textarea:focus,
.plan-field input[type="text"]:focus {
  outline: none;
  border-color: var(--color-cta);
}

.is-preview .plan-field__actions {
  display: none;
}

.is-preview .plan-field textarea,
.is-preview .plan-field input[type="text"] {
  border-color: transparent;
  background: transparent;
  padding: 0;
  resize: none;
}

.commercial-cta {
  margin-top: 44px;
}

.commercial-cta__head {
  text-align: center;
  max-width: 480px;
  margin: 0 auto 28px;
}

.commercial-cta__head h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.commercial-cta__head p {
  color: var(--color-text-muted);
  margin: 0;
}

@media (max-width: 900px) {
  .plan-brief {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .plan-brief {
    grid-template-columns: 1fr;
  }

  .plan-wow {
    padding: 22px 20px;
  }

  .plan-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .plan-field {
    padding: 18px 16px;
  }

  .plan-field__actions {
    width: 100%;
  }

  .plan-field__actions .btn--xs {
    flex: 1;
  }

  .existing-plan-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

/* ============== Dashboard ============== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 24px 0 36px;
}

.stat-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}

.stat-card__value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
}

.stat-card__label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.subjects-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.subjects-section-head h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

/* ============== Mis Materias ============== */

.subjects-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.search-input,
.filter-select {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--color-card);
}

.search-input {
  flex: 1;
  min-width: 200px;
}

.subject-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 16px;
}

/* ============== PLACEHOLDER GUIDE (PUNTO 9) ============== */

.placeholder-guide {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  overflow: hidden;
}

.placeholder-guide__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  list-style: none;
  user-select: none;
}

.placeholder-guide__toggle::-webkit-details-marker { display: none; }

.placeholder-guide__toggle-icon {
  display: flex;
  align-items: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.placeholder-guide__chevron {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform 0.2s ease;
}

.placeholder-guide[open] .placeholder-guide__chevron {
  transform: rotate(180deg);
}

.placeholder-guide__body {
  padding: 0 20px 20px;
  border-top: 1px solid var(--color-border);
}

.placeholder-guide__intro {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 16px 0 14px;
  line-height: 1.6;
}

.placeholder-guide__intro code {
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-primary);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-family: 'Courier New', monospace;
}

.placeholder-guide__table-wrap {
  overflow-x: auto;
  margin-bottom: 16px;
}

.placeholder-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.placeholder-table th {
  text-align: left;
  padding: 8px 12px;
  background: var(--color-surface, rgba(0,0,0,0.03));
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.placeholder-table td {
  padding: 7px 12px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  vertical-align: top;
}

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

.placeholder-table tr:hover td {
  background: rgba(99, 102, 241, 0.04);
}

.placeholder-table code {
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-primary);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-family: 'Courier New', monospace;
  white-space: nowrap;
}

.placeholder-guide__tips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.placeholder-guide__tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md, 8px);
  font-size: 0.83rem;
  line-height: 1.5;
}

.placeholder-guide__tip svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.placeholder-guide__tip code {
  background: rgba(0,0,0,0.07);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-family: 'Courier New', monospace;
}

.placeholder-guide__tip--warn {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--color-text);
}

.placeholder-guide__tip--warn svg { color: #F59E0B; }

.placeholder-guide__tip--info {
  background: rgba(99, 102, 241, 0.07);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--color-text);
}

.placeholder-guide__tip--info svg { color: var(--color-primary); }

.placeholder-guide__tip--ok {
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--color-text);
}

.placeholder-guide__tip--ok svg { color: var(--color-success); }

/* ============== / PLACEHOLDER GUIDE ============== */

.templates-grid .subject-card {
  margin-bottom: 0;
}

.template-star {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--color-border);
  margin-left: 8px;
  vertical-align: middle;
  line-height: 1;
}

.template-star--active {
  color: #F59E0B;
}

.subject-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.subject-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
}

.subject-card__meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.subject-card__stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.subject-card__stat {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.subject-card__stat strong {
  color: var(--color-text);
  font-weight: 700;
}

.subject-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state__icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.empty-state h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.empty-state p {
  color: var(--color-text-muted);
  margin: 0 0 20px;
}

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

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .subject-card__top {
    flex-direction: column;
  }

  .subject-card__actions .btn {
    flex: 1;
  }

  .subjects-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ============== Exportación: botones en plan.html ============== */

.export-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ============== Vista imprimible (plan-print.html) ============== */

body:has(.printable-wrap) {
  background: #ffffff;
}

.print-toolbar {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.print-toolbar__actions {
  display: flex;
  gap: 10px;
}

.print-status {
  max-width: 820px;
  margin: 12px auto 0;
  padding: 0 24px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.print-status--muted {
  max-width: none;
  margin: -6px 0 18px;
  padding: 0;
  font-style: italic;
}

.preview-disclaimer {
  background: #FEF3C7;
  color: #92400E;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.printable-wrap {
  max-width: 820px;
  margin: 24px auto 60px;
  padding: 0 24px;
}

.print-page {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 48px 56px;
  font-family: "Inter", sans-serif;
  color: var(--color-text);
}

.print-header {
  text-align: center;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.print-header__brand {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.print-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
  color: var(--color-text);
}

.print-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 28px;
  font-size: 0.88rem;
}

.print-block {
  margin-bottom: 20px;
}

.print-block__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin: 0 0 6px;
}

.print-block__value {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  white-space: pre-line;
}

.print-signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
}

.print-signature {
  text-align: center;
}

.print-signature__line {
  border-top: 1px solid var(--color-text);
  margin-bottom: 8px;
}

.print-signature span {
  font-size: 0.85rem;
  font-weight: 600;
}

@media print {
  .print-toolbar,
  .print-status {
    display: none !important;
  }

  .printable-wrap {
    margin: 0;
    padding: 0;
    max-width: none;
  }

  .print-page {
    border: none;
    border-radius: 0;
    padding: 0;
  }
}

@media (max-width: 600px) {
  .print-meta {
    grid-template-columns: 1fr;
  }

  .print-page {
    padding: 28px 20px;
  }

  .print-signatures {
    grid-template-columns: 1fr;
  }

  .print-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .print-toolbar__actions {
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .plan-save-bar {
    left: 0;
    padding: 12px 20px;
  }
}

@media (max-width: 600px) {
  .plan-save-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 10px;
  }

  .plan-save-bar__actions {
    justify-content: center;
  }
}
