.status.cancelled {
  background: rgba(255, 107, 107, 0.1);
  color: #ff9b9b;
}
.login-tabs {
  display: flex;
  gap: 6px;
  margin: 30px 0 20px;
  padding: 5px;
  border-radius: 12px;
  background: #091522;
  border: 1px solid var(--line);
}
.login-tab {
  flex: 1;
  border: 0;
  border-radius: 8px;
  padding: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}
.login-tab.active {
  background: #172a40;
  color: var(--text);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2);
}
.field-grid {
  display: grid;
  gap: 14px;
}
.two-fields {
  grid-template-columns: 1fr 1fr;
}
.field-grid label,
.preferences-panel label {
  display: grid;
  gap: 8px;
  color: #bec9d4;
  font-size: 13px;
}
.field-grid input,
.preferences-panel input,
.preferences-panel textarea {
  width: 100%;
  background: #091522;
  border: 1px solid #263a50;
  border-radius: 10px;
  color: white;
  padding: 13px 15px;
  outline: none;
  resize: vertical;
}
.field-grid input:focus,
.preferences-panel input:focus,
.preferences-panel textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 157, 63, 0.1);
}
.full-button {
  width: 100%;
  margin-top: 16px;
}
.student-hero {
  align-items: center;
}
.student-hero .ghost-button {
  height: max-content;
}
.onboarding-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}
.video-panel {
  padding: 0;
  overflow: hidden;
}
.video-placeholder {
  aspect-ratio: 16/9;
  background:
    radial-gradient(
      circle at center,
      rgba(255, 157, 63, 0.15),
      transparent 45%
    ),
    #050b12;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
}
.video-placeholder img {
  width: 108px;
  height: 108px;
  border-radius: 24px;
}
.video-panel iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
}
.onboarding-copy {
  padding: 25px;
}
.onboarding-copy h2,
.preferences-panel h2 {
  font:
    700 22px "Manrope",
    "DM Sans",
    sans-serif;
  margin: 8px 0 12px;
}
.onboarding-copy p {
  color: var(--muted);
  line-height: 1.65;
}
.preferences-panel form {
  display: grid;
  gap: 15px;
  margin-top: 22px;
}
.managed-keys {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(66, 211, 146, 0.05);
}
.managed-keys strong {
  width: 100%;
  font-size: 12px;
  color: #b9c7d5;
}
.managed-keys span {
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 99px;
  background: rgba(66, 211, 146, 0.1);
  color: #87dbb2;
}
.webhook-status {
  font-size: 12px;
  color: var(--muted);
}
.webhook-status.ready {
  color: var(--green);
}
.google-button {
  width: 100%; border: 1px solid #34495f; border-radius: 10px; background: #fff; color: #182432;
  padding: 13px 16px; font: 700 14px "DM Sans", sans-serif; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.google-button:disabled { opacity: 0.45; cursor: not-allowed; }
.google-mark { font: 800 18px Arial; color: #4285f4; }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 17px 0; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.login-divider::before, .login-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.storefront-panel { margin-top: 14px; }
.storefront-intro { color: var(--muted); line-height: 1.6; max-width: 850px; }
.storefront-form { display: grid; grid-template-columns: 2fr 1fr auto; gap: 12px; align-items: end; margin-top: 20px; }
.storefront-form label { display: grid; gap: 8px; color: #bec9d4; font-size: 13px; }
.storefront-form input { width: 100%; background: #091522; border: 1px solid #263a50; border-radius: 10px; color: white; padding: 13px 15px; outline: none; }
.storefront-form .primary-button { height: 45px; }
.storefront-list { display: grid; gap: 9px; margin-top: 17px; }
.storefront-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 11px; background: rgba(8, 17, 31, 0.5); }
.storefront-row strong, .storefront-row small { display: block; }
.storefront-row small { color: var(--muted); margin-top: 4px; }
.remove-storefront { border: 1px solid rgba(255, 107, 107, 0.25); border-radius: 8px; background: rgba(255, 107, 107, 0.06); color: #ffaaaa; padding: 8px 11px; cursor: pointer; }
@media (max-width: 800px) {
  .onboarding-grid {
    grid-template-columns: 1fr;
  }
  .storefront-form { grid-template-columns: 1fr; }
  .storefront-form .primary-button { width: 100%; }
}
@media (max-width: 640px) {
  .two-fields {
    grid-template-columns: 1fr;
  }
  .login-tabs {
    margin-top: 24px;
  }
}

/* Light-theme corrections for portal-only controls. */
.login-tabs { background: #f5f3ef; }
.login-tab.active { background: #fff; color: var(--text); box-shadow: 0 4px 15px rgba(45, 37, 24, 0.08); }
.field-grid label, .preferences-panel label, .storefront-form label { color: #55514b; }
.field-grid input, .preferences-panel input, .preferences-panel textarea, .storefront-form input { background: #fff; border-color: #d9d4cc; color: #171717; }
.video-placeholder { background: #faf9f7; }
.managed-keys { background: #f1faf5; }
.managed-keys strong { color: #47584e; }
.managed-keys span { color: #176843; }
.storefront-row { background: #faf9f7; }
