:root {
  --bg: #0f1419;
  --surface: #161d26;
  --surface-hover: #1c2530;
  --border: #243041;
  --text: #e8ecf1;
  --muted: #8b99a8;
  --accent: #3d7a82;
  --accent-soft: rgba(61, 122, 130, 0.14);
  --danger: #c45c5c;
  --radius: 10px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --font: "Inter", "Noto Sans KR", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 10% -10%, #15202e 0%, var(--bg) 55%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 20, 25, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav__link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav__link:hover {
  color: var(--text);
}

.nav__link--active {
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.15rem;
}

.main {
  flex: 1;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
}

.hidden {
  display: none !important;
}

.panel {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.panel--muted {
  background: var(--surface);
}

.panel__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero {
  margin-bottom: 2rem;
}

.hero__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.hero__lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52ch;
  line-height: 1.55;
}

.btn--block {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  margin-top: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.card--accent {
  background: linear-gradient(160deg, var(--surface) 0%, #141c24 100%);
  border-color: #2a3950;
}

.card--wide {
  max-width: 880px;
  margin: 0 auto;
}

.card__title {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.card__title--sm {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field__label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.field__hint {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 0.15rem;
}

.optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.78rem;
}

.select,
.input {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
}

.select:focus,
.input:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

textarea.input {
  min-height: 4.5rem;
  resize: vertical;
}

.reg-success {
  padding-top: 0.25rem;
}

.btn {
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--accent);
  color: #0a0f14;
  margin-top: 0.25rem;
}

.btn--primary:hover:not(:disabled) {
  filter: brightness(1.06);
}

.btn--secondary {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--border);
}

.btn--secondary:hover:not(:disabled) {
  border-color: #3a4b63;
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.btn--ghost:hover:not(:disabled) {
  color: var(--text);
  border-color: #3a4b63;
}

.btn--small {
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
}

.summary {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
  font-size: 0.98rem;
}

.fineprint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 1.25rem 0;
}

.training-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.progress {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.sentence {
  font-size: 1.25rem;
  line-height: 1.5;
  margin: 0 0 1rem;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.sentence--tts-active {
  background: var(--accent-soft);
  border-color: #355a63;
  box-shadow: inset 0 0 0 1px rgba(61, 122, 130, 0.22);
}

.phase {
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 1.5rem;
  margin-bottom: 1rem;
}

.countdown {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin: 1rem 0 1.5rem;
}

.training-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.result-row {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  background: var(--bg);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1rem;
  align-items: center;
}

@media (max-width: 720px) {
  .result-row {
    grid-template-columns: 1fr;
  }
}

.result-row__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.result-row__meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.result-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.result-row--playing {
  background: rgba(61, 122, 130, 0.07);
  border-color: #355a63;
}

.result-row--phase-native {
  box-shadow: inset 3px 0 0 var(--accent);
}

.result-row--phase-learner {
  box-shadow: inset 3px 0 0 #5a7a8f;
}

.result-row__playback-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 0.35rem;
  min-height: 1rem;
}

.result-row__playback-label.is-native {
  color: var(--accent);
}

.result-row__playback-label.is-learner {
  color: #7a9ab0;
}

/* --- Learner hub + login — scoped glass design tokens --- */
body.page-hub,
body.page-login {
  --glass-white: rgba(255, 255, 255, 0.5);
  --emerald-main: #0f766e;
  --mint-glow: #5eead4;
  --navy-text: #1e3a5f;
  --glass-gradient: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.35) 45%,
    rgba(225, 245, 248, 0.25) 100%
  );
}

/* --- Learner hub (index) — light, service-style layer on top of global tokens --- */
body.page-hub {
  /* Hub-only tokens (do not use :root) */
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-gradient: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(255, 255, 255, 0.38) 48%,
    rgba(225, 245, 248, 0.28) 100%
  );
  --navy-text: #1e3a5f;
  --emerald-main: #0f766e;
  --mint-glow: #5eead4;
  background:
    radial-gradient(ellipse 78% 56% at 50% 28%, rgba(94, 234, 212, 0.11) 0%, transparent 52%),
    radial-gradient(ellipse 70% 50% at 10% 5%, rgba(186, 230, 253, 0.32) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 88% 92%, rgba(224, 242, 254, 0.42) 0%, transparent 55%),
    linear-gradient(165deg, #f8fafc 0%, #f1f5f9 40%, #eef6ff 100%);
  color: #0f172a;
}

.layout--hub .main--hub {
  width: min(960px, 100%);
  padding: 1.75rem 1.1rem 3rem;
  color: #142033;
  background: linear-gradient(180deg, #f5f7fb 0%, #eef2f7 100%);
}

.topbar--hub {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: #dbe4f0;
  backdrop-filter: blur(10px);
}

.brand--hub {
  color: #142033;
  font-weight: 700;
}

.nav--hub .nav__link {
  color: #4b5c73;
}

.nav--hub .nav__link--active {
  color: #1d4ed8;
  border-bottom-color: #2563eb;
}

.footer--hub {
  border-top-color: #dbe4f0;
  color: #64748b;
  background: #f8fafc;
}

.panel--hub {
  background: #fff;
  border-color: #e2e8f0;
  color: #475569;
}

.screen--hub {
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.learner-hero {
  text-align: center;
  padding: 0.5rem 0 1.5rem;
  max-width: 40rem;
  margin: 0 auto;
}

.learner-hero__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.55rem, 4.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.learner-hero__subtitle {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  color: #334155;
  line-height: 1.55;
}

.learner-hero__hint {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
}

.hub-primary-action {
  background: linear-gradient(165deg, #ffffff 0%, #eff6ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  box-shadow: 0 16px 44px rgba(29, 78, 216, 0.14);
  padding: 1.5rem 1.35rem;
  margin: 0 0 1.8rem;
  text-align: center;
}

.hub-primary-action__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: #1d4ed8;
}

.hub-primary-action__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.2rem, 3.6vw, 1.5rem);
  color: #0f172a;
  font-weight: 800;
}

.hub-primary-action__meta {
  margin: 0 0 1rem;
  color: #475569;
  font-size: 0.92rem;
}

.hub-primary-action__btn {
  min-height: 56px;
  font-size: 1.02rem;
  font-weight: 800;
}

.hub-primary-action__secondary {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.hub-primary-action__secondary .btn {
  min-height: 44px;
}

.hub-section-title {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.hub-user {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.1rem 1.25rem 1.25rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.05);
}

.hub-user__desc {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.55;
}

.hub-user__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: stretch;
}

.input--hub {
  flex: 1;
  min-width: 200px;
  min-height: 48px;
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.btn--hub {
  min-height: 48px;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

.hub-priority {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 720px) {
  .hub-priority {
    grid-template-columns: 1fr;
  }
}

.hub-priority-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1rem 1.15rem 1.15rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.hub-priority-card--accent {
  border-color: #bfdbfe;
  background: linear-gradient(165deg, #fff 0%, #eff6ff 100%);
}

.hub-priority-card__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.hub-priority-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
}

.hub-priority-card__meta {
  margin: 0 0 0.85rem;
  font-size: 0.86rem;
  color: #64748b;
  min-height: 1.25rem;
}

.hub-modes__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .hub-modes__grid {
    grid-template-columns: 1fr;
  }
}

.hub-mode-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.1rem 1.15rem 1.15rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hub-mode-card__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
}

.hub-mode-card__desc {
  margin: 0;
  flex: 1;
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.55;
}

.hub-catalog {
  position: relative;
  background: var(--glass-gradient);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 1.25rem 1.3rem 1.5rem;
  margin-bottom: 1.8rem;
  overflow: hidden;
  box-shadow:
    inset 0 6px 12px rgba(255, 255, 255, 0.84),
    inset 0 -6px 14px rgba(15, 23, 42, 0.05),
    0 10px 26px rgba(15, 23, 42, 0.08);
}

.hub-catalog::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 8%;
  right: 8%;
  height: min(20%, 3.5rem);
  border-radius: 18px 18px 48% 48%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.05));
  opacity: 0.58;
  pointer-events: none;
  z-index: 0;
}

.hub-catalog > * {
  position: relative;
  z-index: 1;
}

.hub-mode-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.8rem;
}

.hub-catalog__toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hub-search {
  width: 100%;
}

.hub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hub-tab {
  flex: 1;
  min-width: 5.5rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.hub-tab--active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

.hub-keyword-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hub-keyword-grid--dense {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.65rem;
}

.hub-keyword-section__title {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.02em;
}

.hub-custom-mix-entry {
  display: flex;
  justify-content: center;
  padding: 0.15rem 0 1.15rem;
}

.hub-custom-mix-button {
  position: relative;
  width: min(260px, 74vw);
  min-height: 58px;
  padding: 0 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  color: #0f766e;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
  background:
    radial-gradient(70% 90% at 50% 24%, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.18) 42%, rgba(94, 234, 212, 0.2) 78%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(218, 255, 247, 0.44));
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  box-shadow:
    inset 0 14px 22px rgba(255, 255, 255, 0.88),
    inset 0 -18px 28px rgba(20, 184, 166, 0.16),
    0 0 0 8px rgba(204, 251, 241, 0.25),
    0 18px 42px rgba(15, 118, 110, 0.2);
  animation: hub-custom-mix-breathe 4.8s ease-in-out infinite;
  transition: transform 0.18s ease, box-shadow 0.2s ease, color 0.18s ease;
}

.hub-custom-mix-button::before {
  content: "";
  position: absolute;
  top: 13%;
  left: 18%;
  right: 18%;
  height: 18%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.12));
  pointer-events: none;
}

.hub-custom-mix-button:hover,
.hub-custom-mix-button:focus-visible {
  outline: none;
  transform: translateY(-5px) scale(1.02);
  color: #1d4ed8;
  box-shadow:
    inset 0 14px 22px rgba(255, 255, 255, 0.92),
    inset 0 -18px 30px rgba(59, 130, 246, 0.22),
    0 0 0 8px rgba(191, 219, 254, 0.32),
    0 0 34px rgba(96, 165, 250, 0.46),
    0 22px 48px rgba(37, 99, 235, 0.22);
}

@keyframes hub-custom-mix-breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow:
      inset 0 14px 22px rgba(255, 255, 255, 0.88),
      inset 0 -18px 28px rgba(20, 184, 166, 0.16),
      0 0 0 8px rgba(204, 251, 241, 0.22),
      0 18px 42px rgba(15, 118, 110, 0.16);
  }
  50% {
    transform: translateY(-2px) scale(1.025);
    box-shadow:
      inset 0 15px 24px rgba(255, 255, 255, 0.94),
      inset 0 -20px 32px rgba(20, 184, 166, 0.22),
      0 0 0 11px rgba(204, 251, 241, 0.3),
      0 0 30px rgba(94, 234, 212, 0.34),
      0 22px 48px rgba(15, 118, 110, 0.22);
  }
}

.hub-custom-mix-panel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  padding: 1.15rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(230, 252, 248, 0.42));
  backdrop-filter: blur(22px) saturate(1.45);
  -webkit-backdrop-filter: blur(22px) saturate(1.45);
  box-shadow:
    inset 0 10px 18px rgba(255, 255, 255, 0.78),
    0 20px 48px rgba(15, 23, 42, 0.09);
}

.hub-custom-mix-title {
  margin: 0;
  color: var(--navy-text);
  font-size: 1.08rem;
  font-weight: 900;
  text-align: center;
}

.hub-custom-mix-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.hub-custom-mix-head .hub-custom-mix-title {
  text-align: left;
}

.hub-custom-mix-counter {
  margin: 0;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  color: #0f766e;
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(204, 251, 241, 0.62);
  white-space: nowrap;
}

.hub-custom-mix-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.hub-custom-mix-count,
.hub-custom-mix-back {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  color: var(--navy-text);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  background: var(--glass-gradient);
  box-shadow:
    inset 0 5px 8px rgba(255, 255, 255, 0.84),
    0 10px 24px rgba(15, 23, 42, 0.09);
  transition: transform 0.16s ease, box-shadow 0.18s ease, color 0.16s ease;
}

.hub-custom-mix-count:hover,
.hub-custom-mix-count:focus-visible,
.hub-custom-mix-back:hover,
.hub-custom-mix-back:focus-visible {
  outline: none;
  transform: translateY(-3px);
  color: #1d4ed8;
  box-shadow:
    inset 0 5px 10px rgba(255, 255, 255, 0.9),
    0 0 22px rgba(96, 165, 250, 0.36),
    0 16px 36px rgba(37, 99, 235, 0.16);
}

.hub-custom-mix-card {
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.hub-custom-mix-card:disabled {
  cursor: not-allowed;
}

.hub-custom-mix-card--selected {
  border-color: rgba(59, 130, 246, 0.72);
  box-shadow:
    inset 0 6px 14px rgba(255, 255, 255, 0.9),
    inset 0 -12px 24px rgba(59, 130, 246, 0.14),
    0 0 26px rgba(96, 165, 250, 0.42),
    0 18px 42px rgba(37, 99, 235, 0.18);
}

.hub-custom-mix-confirm {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  text-align: center;
}

.hub-custom-mix-confirm p {
  margin: 0 0 0.8rem;
  color: var(--navy-text);
  font-weight: 850;
}

.hub-custom-mix-confirm__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.8rem;
  max-width: 420px;
  margin: 0 auto;
}

.hub-custom-mix-yes {
  min-height: 46px;
  padding: 0 1rem;
}

@media (max-width: 640px) {
  .hub-custom-mix-button {
    width: min(230px, 82vw);
    min-height: 54px;
    padding: 0 1.6rem;
    font-size: 0.94rem;
  }

  .hub-custom-mix-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hub-custom-mix-counts,
  .hub-custom-mix-confirm__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hub-keyword-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  background: var(--glass-gradient);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow: hidden;
  box-shadow:
    inset 0 6px 12px rgba(255, 255, 255, 0.85),
    inset 0 -6px 14px rgba(15, 23, 42, 0.06),
    0 8px 22px rgba(15, 23, 42, 0.09);
  transition: border-color 0.18s, box-shadow 0.2s ease, transform 0.18s;
  will-change: transform, box-shadow;
}

.hub-keyword-card::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 10%;
  right: 10%;
  height: min(30%, 5rem);
  border-radius: 16px 16px 45% 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.06));
  opacity: 0.68;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.18s;
}

.hub-keyword-card > * {
  position: relative;
  z-index: 2;
}

.hub-keyword-card:hover {
  border-color: rgba(20, 184, 166, 0.6);
  transform: translateY(-3px);
  color: inherit;
  box-shadow:
    inset 0 4px 10px rgba(255, 255, 255, 0.9),
    0 0 20px rgba(94, 234, 212, 0.4),
    0 18px 40px rgba(15, 118, 110, 0.15);
}

.hub-keyword-card:hover::before {
  opacity: 0.82;
}

.hub-keyword-card--unavailable:hover {
  border-color: rgba(248, 113, 113, 0.72);
  box-shadow:
    inset 0 4px 10px rgba(255, 255, 255, 0.88),
    0 0 20px rgba(248, 113, 113, 0.35),
    0 18px 38px rgba(127, 29, 29, 0.14);
}

.hub-keyword-card--unavailable .btn--hub-cta {
  cursor: not-allowed;
  opacity: 0.72;
}

.hub-keyword-card__main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hub-keyword-card__key {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--navy-text);
}

.hub-keyword-card__sub {
  margin: 0;
  font-size: 0.8rem;
  color: #475569;
}

.hub-badge {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  width: fit-content;
}

.hub-badge--neutral {
  background: #f1f5f9;
  color: #475569;
}

.hub-badge--active {
  background: #dbeafe;
  color: #1e40af;
}

.hub-badge--done {
  background: #dcfce7;
  color: #166534;
}

.hub-badge--unavailable {
  background: #fee2e2;
  color: #991b1b;
}

.btn--hub-cta {
  align-self: stretch;
}

/* Catalog "선택" — glass pill on learner hub only (does not redefine global .btn) */
body.page-hub .btn.btn--hub-cta {
  position: relative;
  isolation: isolate;
  min-height: 44px;
  overflow: hidden;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  color: var(--navy-text);
  background: var(--glass-gradient);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    inset 0 4px 6px rgba(255, 255, 255, 0.8),
    inset 0 -6px 12px rgba(15, 23, 42, 0.08),
    0 8px 20px rgba(15, 23, 42, 0.1);
  transition: transform 0.16s ease, box-shadow 0.18s ease, color 0.16s ease, border-color 0.16s ease;
}

body.page-hub .btn.btn--hub-cta::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 12%;
  right: 12%;
  height: 35%;
  max-height: 1rem;
  border-radius: 999px 999px 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.1));
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

body.page-hub .btn.btn--hub-cta:hover {
  transform: translateY(-3px);
  color: var(--emerald-main);
  border-color: rgba(20, 184, 166, 0.6);
  box-shadow:
    inset 0 4px 10px rgba(255, 255, 255, 0.9),
    0 0 20px rgba(94, 234, 212, 0.4),
    0 18px 40px rgba(15, 118, 110, 0.15);
}

body.page-hub .btn.btn--hub-cta:focus-visible {
  outline: none;
  transform: translateY(-3px);
  color: var(--emerald-main);
  border-color: rgba(20, 184, 166, 0.6);
  box-shadow:
    inset 0 4px 10px rgba(255, 255, 255, 0.9),
    0 0 0 2px rgba(94, 234, 212, 0.45),
    0 0 20px rgba(94, 234, 212, 0.4),
    0 18px 40px rgba(15, 118, 110, 0.15);
}

.hub-empty {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: #64748b;
}

.hub-progress {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1rem 1.15rem 1.15rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
}

.hub-progress__meta {
  margin: 0 0 0.75rem;
  color: #64748b;
  font-size: 0.86rem;
}

.hub-progress__chips {
  margin: 0 0 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hub-progress__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 0.78rem;
  font-weight: 700;
}

.hub-progress .btn {
  min-height: 44px;
}

.hub-request {
  position: relative;
  background: var(--glass-gradient);
  backdrop-filter: blur(20px) saturate(1.45);
  -webkit-backdrop-filter: blur(20px) saturate(1.45);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.8rem;
  text-align: center;
  overflow: hidden;
  box-shadow:
    inset 0 5px 10px rgba(255, 255, 255, 0.75),
    inset 0 -5px 12px rgba(15, 23, 42, 0.04),
    0 6px 18px rgba(15, 23, 42, 0.07);
}

.hub-request::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 8%;
  right: 8%;
  height: min(22%, 3.25rem);
  border-radius: 14px 14px 50% 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.hub-request > * {
  position: relative;
  z-index: 1;
}

.hub-request__desc {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.55;
}

.btn--hub-outline {
  border-color: #cbd5e1;
  color: #334155;
}

.hub-toast {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: #fef9c3;
  border: 1px solid #fde047;
  color: #854d0e;
  font-size: 0.88rem;
}

.hub-advanced {
  margin-top: 0.5rem;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.25rem 1rem 1rem;
}

.hub-advanced__summary {
  cursor: pointer;
  font-weight: 700;
  color: #475569;
  padding: 0.75rem 0;
}

.hub-advanced__grid {
  margin-top: 0.5rem;
}

.card--hub-inner {
  background: #fff !important;
  color: #142033;
  border-color: #e2e8f0 !important;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.05) !important;
}

.card--hub-inner .summary,
.card--hub-inner .fineprint,
.card--hub-inner .field__hint {
  color: #64748b;
}

.card--hub-inner .field__label {
  color: #475569;
}

.card--hub-inner .select,
.card--hub-inner .input {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

/* ============================================================
   Login page  (body.page-login)
   Bright glassmorphism — scoped entirely to this page class.
   Does NOT affect .btn, .card, or any other global tokens.
   ============================================================ */

body.page-login {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 75% 55% at 18% 0%,  rgba(94, 234, 212, 0.22) 0%, transparent 58%),
    radial-gradient(ellipse 60% 50% at 82% 100%, rgba(125, 211, 252, 0.18) 0%, transparent 55%),
    linear-gradient(160deg, #f0faf9 0%, #f8fffe 45%, #eaf6ff 100%);
  font-family: "Inter", "Noto Sans KR", sans-serif;
  color: #0f172a;
}

.login-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 2rem 1.25rem;
  box-sizing: border-box;
}

.login-card {
  position: relative;
  width: min(440px, 100%);
  padding: 3rem 2.5rem 2.75rem;
  background: var(--glass-gradient);
  backdrop-filter: blur(24px) saturate(1.55);
  -webkit-backdrop-filter: blur(24px) saturate(1.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    inset 0 6px 14px rgba(255, 255, 255, 0.88),
    inset 0 -8px 18px rgba(15, 23, 42, 0.06),
    0 12px 32px rgba(15, 23, 42, 0.1),
    0 24px 56px rgba(15, 23, 42, 0.06);
  text-align: center;
}

/* glossy top cap — card (not full pill) */
.login-card::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 10%;
  right: 10%;
  height: min(28%, 7.5rem);
  border-radius: 24px 24px 45% 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.08));
  opacity: 0.65;
  pointer-events: none;
  z-index: 0;
}

.login-card > * {
  position: relative;
  z-index: 1;
}

/* Brand mark */
.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.login-brand__title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #0f4c45 0%, #0d9488 55%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  line-height: 1.1;
}

.login-brand__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
}
.login-brand__dot--1 { background: #0d9488; }
.login-brand__dot--2 { background: #38bdf8; }
.login-brand__dot--3 { background: #34d399; }

/* Copy */
.login-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f766e;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

.login-desc {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0 0 2rem;
  line-height: 1.6;
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.login-field__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.login-input {
  width: 100%;
  padding: 0.78rem 1.1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(148, 163, 184, 0.4);
  border-radius: 12px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.login-input:focus {
  background: #fff;
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.16);
}

.login-input::placeholder {
  color: #94a3b8;
}

/* Error */
.login-error {
  font-size: 0.82rem;
  color: #dc2626;
  text-align: left;
  margin: -0.25rem 0 0;
}

.login-error.hidden {
  display: none;
}

/* Submit — real glass pill (scoped; not global .btn) */
.login-btn {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.88rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--navy-text);
  background: var(--glass-gradient);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.015em;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.18s ease, color 0.16s ease, border-color 0.16s ease;
  box-shadow:
    inset 0 4px 6px rgba(255, 255, 255, 0.8),
    inset 0 -6px 12px rgba(15, 23, 42, 0.08),
    0 12px 24px rgba(15, 23, 42, 0.12);
  will-change: transform, box-shadow;
}

.login-btn::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 12%;
  right: 12%;
  height: 35%;
  border-radius: 999px 999px 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.1));
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.login-btn:hover {
  transform: translateY(-3px);
  color: var(--emerald-main);
  border-color: rgba(20, 184, 166, 0.6);
  box-shadow:
    inset 0 4px 10px rgba(255, 255, 255, 0.9),
    0 0 20px rgba(94, 234, 212, 0.4),
    0 18px 40px rgba(15, 118, 110, 0.15);
}

.login-btn:focus-visible {
  outline: none;
  transform: translateY(-3px);
  color: var(--emerald-main);
  border-color: rgba(20, 184, 166, 0.6);
  box-shadow:
    inset 0 4px 10px rgba(255, 255, 255, 0.9),
    0 0 0 2px rgba(94, 234, 212, 0.45),
    0 0 20px rgba(94, 234, 212, 0.4),
    0 18px 40px rgba(15, 118, 110, 0.15);
}

.login-btn:active {
  transform: translateY(-1px);
}

/* Hint text below form */
.login-hint {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

.login-hint__link {
  color: #0d9488;
  text-decoration: none;
  font-weight: 600;
}

.login-hint__link:hover {
  text-decoration: underline;
}

/* ============================================================
   Phase 2: Hub home screen  (body.page-hub)
   Bright glassmorphism training-selection cards.
   Scoped to .hub-home-screen and .hub-mode-card only.
   Global .btn / .card untouched.
   ============================================================ */

/* ── Hub home screen wrapper ── */
.hub-home-screen {
  padding: 0.5rem 0 2.5rem;
}

/* ── Hero copy ── */
.hub-hero2 {
  text-align: center;
  padding: 2.75rem 1rem 2.75rem;
}

.hub-hero2__title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #0f4c45 0%, #0d9488 45%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 0.4rem;
  line-height: 1.05;
}

.hub-hero2__subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f766e;
  margin: 0 0 0.55rem;
  letter-spacing: -0.01em;
}

.hub-hero2__desc {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 auto;
  line-height: 1.65;
  max-width: 320px;
}

/* ── Three mode cards grid ── */
.hub-mode-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 0.75rem;
}

/* ── Individual mode card (home picks) — glossy glass panel --- */
.hub-mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 2rem 1.25rem 1.75rem;
  background: var(--glass-gradient);
  backdrop-filter: blur(22px) saturate(1.45);
  -webkit-backdrop-filter: blur(22px) saturate(1.45);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 26px;
  overflow: hidden;
  box-shadow:
    inset 0 6px 12px rgba(255, 255, 255, 0.85),
    inset 0 -6px 14px rgba(15, 23, 42, 0.07),
    0 12px 28px rgba(15, 23, 42, 0.1);
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition:
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s ease,
    border-color 0.18s ease;
  will-change: transform, box-shadow;
}

.hub-mode-card::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 10%;
  right: 10%;
  height: min(26%, 5.5rem);
  border-radius: 22px 22px 45% 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.06));
  opacity: 0.68;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.18s;
}

.hub-mode-card > * {
  position: relative;
  z-index: 2;
}

.hub-mode-card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 184, 166, 0.6);
  box-shadow:
    inset 0 4px 10px rgba(255, 255, 255, 0.9),
    0 0 20px rgba(94, 234, 212, 0.4),
    0 18px 40px rgba(15, 118, 110, 0.15);
}

.hub-mode-card:hover::before {
  opacity: 0.82;
}

.hub-mode-card:focus-visible {
  outline: none;
  transform: translateY(-3px);
  border-color: rgba(20, 184, 166, 0.6);
  box-shadow:
    inset 0 4px 10px rgba(255, 255, 255, 0.9),
    0 0 0 2px rgba(94, 234, 212, 0.45),
    0 0 20px rgba(94, 234, 212, 0.4),
    0 18px 40px rgba(15, 118, 110, 0.15);
}

.hub-mode-card:active {
  transform: translateY(-1px);
  transition-duration: 0.08s;
}

.hub-mode-card__icon {
  font-size: 2.25rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(15, 118, 110, 0.15));
  transition: filter 0.2s ease;
}

.hub-mode-card:hover .hub-mode-card__icon {
  filter: drop-shadow(0 3px 10px rgba(20, 184, 166, 0.35));
}

.hub-mode-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-text);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hub-mode-card__desc {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

/* ── Catalog wrap + back button ── */
.hub-catalog-wrap {
  padding-top: 0.5rem;
}

.hub-catalog-wrap--hidden {
  display: none;
}

.hub-catalog-wrap__topbar {
  margin-bottom: 1.25rem;
}

.hub-catalog-back {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1.1rem;
  min-height: 44px;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--navy-text);
  background: var(--glass-gradient);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.18s ease, color 0.16s ease, border-color 0.16s ease;
  box-shadow:
    inset 0 4px 6px rgba(255, 255, 255, 0.8),
    inset 0 -6px 12px rgba(15, 23, 42, 0.08),
    0 12px 24px rgba(15, 23, 42, 0.12);
}

.hub-catalog-back::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 12%;
  right: 12%;
  height: 35%;
  max-height: 0.95rem;
  border-radius: 999px 999px 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.1));
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.hub-catalog-back:hover {
  transform: translateY(-3px);
  color: var(--emerald-main);
  border-color: rgba(20, 184, 166, 0.6);
  box-shadow:
    inset 0 4px 10px rgba(255, 255, 255, 0.9),
    0 0 20px rgba(94, 234, 212, 0.4),
    0 18px 40px rgba(15, 118, 110, 0.15);
}

.hub-catalog-back:focus-visible {
  outline: none;
  transform: translateY(-3px);
  color: var(--emerald-main);
  border-color: rgba(20, 184, 166, 0.6);
  box-shadow:
    inset 0 4px 10px rgba(255, 255, 255, 0.9),
    0 0 0 2px rgba(94, 234, 212, 0.45),
    0 0 20px rgba(94, 234, 212, 0.4),
    0 18px 40px rgba(15, 118, 110, 0.15);
}

/* ── Hidden sections: DOM kept, visually removed ── */
.hub-primary-action--p2hidden {
  display: none !important;
}

.hub-user--p2hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Hide original mode-picker inside catalog wrap (replaced by home cards) */
.hub-mode-picker--hidden {
  display: none !important;
}

/* Tab switcher hidden from learner — DOM kept for app.js */
.hub-tabs--p2hidden {
  display: none !important;
}

/* Legacy direct session setup panel — DOM preserved for app.js form IDs */
.hub-legacy-setup--hidden {
  display: none !important;
}

/* Catalog helper text */
.hub-catalog-helper {
  font-size: 0.88rem;
  color: #64748b;
  margin: -0.5rem 0 0.75rem;
  min-height: 1.2em;
}

/* ============================================================
   Phase 3: Catalog card selected state
   ============================================================ */

.hub-keyword-card--selected {
  background: linear-gradient(
    180deg,
    rgba(236, 253, 251, 0.95) 0%,
    rgba(167, 243, 228, 0.45) 48%,
    rgba(94, 234, 212, 0.18) 100%
  );
  border-color: rgba(20, 184, 166, 0.55);
  transform: translateY(0);
  box-shadow:
    inset 0 5px 10px rgba(255, 255, 255, 0.78),
    inset 0 -6px 14px rgba(13, 148, 136, 0.1),
    0 0 0 1px rgba(94, 234, 212, 0.42),
    0 0 22px rgba(94, 234, 212, 0.35),
    0 12px 32px rgba(15, 118, 110, 0.12);
}

.hub-keyword-card--selected .hub-keyword-card__key {
  color: #0f4c45;
}

/* ============================================================
   Phase 3: Settings screen  (body.page-hub scoped)
   ============================================================ */

.hub-settings-screen {
  padding: 0.25rem 0 3rem;
}

.hub-settings-screen--hidden {
  display: none !important;
}

.hub-settings-screen__topbar {
  margin-bottom: 1.5rem;
}

/* Glass settings panel — card formula */
.hub-settings-card {
  position: relative;
  background: var(--glass-gradient);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 26px;
  overflow: hidden;
  box-shadow:
    inset 0 6px 14px rgba(255, 255, 255, 0.88),
    inset 0 -8px 18px rgba(15, 23, 42, 0.06),
    0 12px 34px rgba(15, 23, 42, 0.1),
    0 26px 56px rgba(15, 23, 42, 0.05);
  padding: 2rem 1.75rem 2.25rem;
  max-width: 560px;
}

.hub-settings-card::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 9%;
  right: 9%;
  height: min(24%, 5rem);
  border-radius: 22px 22px 42% 42%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.06));
  opacity: 0.62;
  pointer-events: none;
  z-index: 0;
}

.hub-settings-card > * {
  position: relative;
  z-index: 1;
}

.hub-settings-card__heading {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy-text);
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

/* Meta tag row */
.hub-settings-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.6rem;
}

.hub-settings-tag {
  display: inline-block;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.hub-settings-tag--type {
  background: rgba(13, 148, 136, 0.1);
  color: #0f766e;
  border: 1px solid rgba(13, 148, 136, 0.2);
}

.hub-settings-tag--key {
  background: rgba(37, 99, 235, 0.07);
  color: #1d4ed8;
  font-weight: 600;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

/* Settings field row */
.hub-settings-fields {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 2rem;
}

.hub-settings-field {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.hub-settings-field__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  min-width: 72px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.hub-settings-field__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex: 1;
}

/* Pill buttons — glass pill formula (settings) */
.hub-pill {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.4rem 0.92rem;
  font-size: 0.83rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--navy-text);
  background: var(--glass-gradient);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    inset 0 4px 6px rgba(255, 255, 255, 0.8),
    inset 0 -6px 12px rgba(15, 23, 42, 0.08),
    0 12px 24px rgba(15, 23, 42, 0.12);
  transition: transform 0.16s ease, box-shadow 0.18s ease, color 0.16s ease, border-color 0.16s ease;
  will-change: transform, box-shadow;
}

.hub-pill::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 12%;
  right: 12%;
  height: 35%;
  border-radius: 999px 999px 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.1));
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.16s;
}

.hub-pill > * {
  position: relative;
  z-index: 1;
}

.hub-pill:hover {
  transform: translateY(-3px);
  color: var(--emerald-main);
  border-color: rgba(20, 184, 166, 0.6);
  box-shadow:
    inset 0 4px 10px rgba(255, 255, 255, 0.9),
    0 0 20px rgba(94, 234, 212, 0.4),
    0 18px 40px rgba(15, 118, 110, 0.15);
}

.hub-pill:hover::before {
  opacity: 0.82;
}

.hub-pill:focus-visible {
  outline: none;
  transform: translateY(-3px);
  color: var(--emerald-main);
  border-color: rgba(20, 184, 166, 0.6);
  box-shadow:
    inset 0 4px 10px rgba(255, 255, 255, 0.9),
    0 0 0 2px rgba(94, 234, 212, 0.45),
    0 0 20px rgba(94, 234, 212, 0.4),
    0 18px 40px rgba(15, 118, 110, 0.15);
}

/* Illuminated emerald glass — selected pill */
.hub-pill--active {
  background: linear-gradient(
    180deg,
    rgba(240, 253, 250, 0.92) 0%,
    rgba(167, 243, 228, 0.42) 45%,
    rgba(45, 212, 191, 0.2) 100%
  );
  border-color: rgba(20, 184, 166, 0.55);
  color: #0f4c45;
  font-weight: 700;
  transform: translateY(0);
  box-shadow:
    inset 0 4px 8px rgba(255, 255, 255, 0.75),
    inset 0 -5px 12px rgba(13, 148, 136, 0.12),
    0 0 0 1px rgba(94, 234, 212, 0.38),
    0 0 18px rgba(20, 184, 166, 0.32),
    0 6px 20px rgba(15, 118, 110, 0.12);
}

.hub-pill--active::before {
  opacity: 0.75;
}

.hub-pill--active:hover {
  border-color: rgba(20, 184, 166, 0.75);
  box-shadow:
    inset 0 4px 10px rgba(255, 255, 255, 0.82),
    inset 0 -6px 12px rgba(13, 148, 136, 0.16),
    0 0 0 1px rgba(94, 234, 212, 0.5),
    0 0 24px rgba(20, 184, 166, 0.38),
    0 10px 28px rgba(15, 118, 110, 0.16);
}

/* START — glossy emerald→blue CTA (white text) */
.hub-settings-start-btn {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  max-width: 400px;
  min-height: 48px;
  padding: 0.92rem 1.5rem;
  font-size: 1.02rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(20, 184, 166, 0.92),
    rgba(13, 148, 136, 0.88) 42%,
    rgba(37, 99, 235, 0.88)
  );
  backdrop-filter: blur(20px) saturate(1.65);
  -webkit-backdrop-filter: blur(20px) saturate(1.65);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.015em;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
  box-shadow:
    inset 0 4px 10px rgba(255, 255, 255, 0.55),
    inset 0 -8px 18px rgba(15, 23, 42, 0.16),
    0 16px 36px rgba(20, 184, 166, 0.28),
    0 0 28px rgba(94, 234, 212, 0.3);
  will-change: transform, box-shadow;
}

.hub-settings-start-btn::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 12%;
  right: 12%;
  height: 35%;
  border-radius: 999px 999px 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.1));
  opacity: 0.7;
  pointer-events: none;
  z-index: 1;
}

.hub-settings-start-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 4px 10px rgba(255, 255, 255, 0.62),
    inset 0 -8px 18px rgba(15, 118, 110, 0.12),
    0 0 0 1px rgba(94, 234, 212, 0.35),
    0 0 26px rgba(94, 234, 212, 0.45),
    0 20px 42px rgba(15, 118, 110, 0.2);
}

.hub-settings-start-btn:hover::before {
  opacity: 0.82;
}

.hub-settings-start-btn:focus-visible {
  outline: none;
  transform: translateY(-3px);
  box-shadow:
    inset 0 4px 10px rgba(255, 255, 255, 0.62),
    0 0 0 2px rgba(255, 255, 255, 0.6),
    0 0 24px rgba(94, 234, 212, 0.5),
    0 18px 40px rgba(20, 184, 166, 0.25);
}

.hub-settings-start-btn:active {
  transform: translateY(-1px);
}

/* Final polish: Login + START — aligned premium glass (scoped only) */
body.page-login .login-btn {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(225, 245, 248, 0.35) 100%
  );
  box-shadow:
    inset 0 5px 9px rgba(255, 255, 255, 0.9),
    inset 0 -8px 16px rgba(15, 23, 42, 0.11),
    0 14px 30px rgba(15, 23, 42, 0.15);
}

body.page-hub .hub-settings-start-btn {
  width: 100%;
  max-width: min(540px, 100%);
  margin-inline: auto;
  margin-top: 0.25rem;
  background: linear-gradient(
    135deg,
    rgba(20, 184, 166, 0.88) 0%,
    rgba(13, 148, 136, 0.82) 40%,
    rgba(37, 99, 235, 0.82) 100%
  );
  box-shadow:
    inset 0 5px 12px rgba(255, 255, 255, 0.6),
    inset 0 -9px 20px rgba(15, 23, 42, 0.15),
    0 16px 34px rgba(20, 184, 166, 0.26),
    0 0 26px rgba(94, 234, 212, 0.28);
}

body.page-hub .hub-settings-start-btn::before {
  top: 4px;
  left: 12%;
  right: 12%;
  height: 38%;
  opacity: 0.75;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.38) 28%,
    rgba(255, 255, 255, 0) 72%
  );
}

body.page-login .login-btn:hover,
body.page-hub .hub-settings-start-btn:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow:
    inset 0 4px 10px rgba(255, 255, 255, 0.9),
    0 0 25px rgba(94, 234, 212, 0.45),
    0 15px 35px rgba(15, 118, 110, 0.2);
}

body.page-login .login-btn:hover {
  color: var(--emerald-main);
  border-color: rgba(20, 184, 166, 0.6);
}

body.page-hub .hub-settings-start-btn:hover::before {
  opacity: 0.82;
}

body.page-login .login-btn:focus-visible {
  transform: translateY(-3px) scale(1.01);
  box-shadow:
    inset 0 4px 10px rgba(255, 255, 255, 0.9),
    0 0 0 2px rgba(94, 234, 212, 0.45),
    0 0 25px rgba(94, 234, 212, 0.45),
    0 15px 35px rgba(15, 118, 110, 0.2);
}

body.page-hub .hub-settings-start-btn:focus-visible {
  transform: translateY(-3px) scale(1.01);
  box-shadow:
    inset 0 4px 10px rgba(255, 255, 255, 0.62),
    0 0 0 2px rgba(255, 255, 255, 0.55),
    0 0 25px rgba(94, 234, 212, 0.45),
    0 15px 35px rgba(15, 118, 110, 0.2);
}

body.page-login .login-btn:active,
body.page-hub .hub-settings-start-btn:active {
  transform: translateY(-1px) scale(1);
}

/* ============================================================
   Phase 3B: body.page-hub — settings screen centered + label scale
   (layout/typography only; glass + pill active states preserved)
   ============================================================ */

body.page-hub .hub-settings-screen {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0.35rem 0 3rem;
  box-sizing: border-box;
}

body.page-hub .hub-settings-screen__topbar {
  width: min(100%, 760px);
  max-width: min(760px, 100%);
  margin-inline: auto;
  box-sizing: border-box;
}

body.page-hub .hub-settings-card {
  width: min(100%, 760px);
  max-width: min(760px, 100%);
  margin-inline: auto;
  align-self: center;
  padding: 36px 42px 2.5rem;
  box-sizing: border-box;
}

body.page-hub .hub-settings-card__heading {
  font-size: clamp(1.08rem, 1vw + 0.65rem, 1.18rem);
  text-align: center;
}

body.page-hub .hub-settings-meta {
  justify-content: center;
  margin-bottom: 1.65rem;
}

body.page-hub .hub-settings-fields {
  gap: 1.6rem;
  margin-bottom: 2.35rem;
}

body.page-hub .hub-settings-field__label {
  font-size: clamp(0.98rem, 0.92rem + 0.35vw, 1.05rem);
  font-weight: 700;
  color: #334155;
  letter-spacing: -0.01em;
  text-transform: none;
  line-height: 1.35;
  min-width: 0;
}

body.page-hub .hub-settings-field__options {
  gap: 0.7rem;
  row-gap: 0.65rem;
}

body.page-hub .hub-pill {
  min-height: 44px;
  padding: 0.48rem 1.05rem;
  font-size: clamp(0.82rem, 0.78rem + 0.25vw, 0.88rem);
}

@media (min-width: 769px) {
  body.page-hub .hub-settings-field {
    display: grid;
    grid-template-columns: minmax(118px, 130px) 1fr;
    align-items: center;
    column-gap: 1.15rem;
    row-gap: 0.35rem;
  }

  body.page-hub .hub-settings-field__label {
    grid-column: 1;
    align-self: center;
  }

  body.page-hub .hub-settings-field__options {
    grid-column: 2;
    min-width: 0;
  }
}

/* Logout nav link — hub topbar only */
.nav__link--logout {
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 500;
}

.nav__link--logout:hover {
  color: #64748b;
}

/* ============================================================
   Phase 5: body.page-hub — Physical realistic glass (learner home only)
   Convex glass + volumetric depth + gloss ::before. Scoped to index hub.
   ============================================================ */

/* Learner-facing hub nav: hide duplicate home / train links (logout kept) */
body.page-hub .nav--hub > a.nav__link[href="/"],
body.page-hub .nav--hub > a.nav__link[href="/train"] {
  display: none;
}

body.page-hub .layout--hub .main--hub {
  background: transparent;
}

/* Soft depth behind hero + mode menu (no pointer capture) */
body.page-hub .hub-home-screen {
  position: relative;
  isolation: isolate;
}

body.page-hub .hub-home-screen::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: min(118vw, 56rem);
  height: clamp(320px, 52vh, 480px);
  background: radial-gradient(
    ellipse 52% 42% at 50% 58%,
    rgba(94, 234, 212, 0.1) 0%,
    rgba(125, 211, 252, 0.05) 42%,
    transparent 68%
  );
}

body.page-hub .hub-home-screen > * {
  position: relative;
  z-index: 1;
}

/* Hero copy — match mode menu scale without oversized headline */
body.page-hub .hub-hero2 {
  padding: 2.35rem 1rem 1.75rem;
}

body.page-hub .hub-hero2__title {
  font-size: clamp(2.55rem, 4.6vw, 3rem);
  margin: 0 0 0.38rem;
  line-height: 1.06;
}

body.page-hub .hub-hero2__subtitle {
  font-size: clamp(1.12rem, 1.2vw + 0.35rem, 1.3rem);
  font-weight: 700;
  margin: 0 0 0.48rem;
  letter-spacing: -0.012em;
}

body.page-hub .hub-hero2__desc {
  font-size: clamp(0.88rem, 0.95vw + 0.2rem, 0.98rem);
  color: #5c6b7e;
  margin: 0 auto;
  line-height: 1.55;
  max-width: min(22rem, 100%);
}

/* Mode menu: vertical stack of full-width glass pills */
body.page-hub .hub-mode-cards {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  max-width: min(680px, 100%);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0.15rem 1rem 0;
}

/* Glass pill — default: calm glass only; neon on hover/focus */
body.page-hub .hub-mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 88px;
  padding: 20px 32px;
  gap: 0.4rem;
  border-radius: 999px;
  background: var(--glass-gradient);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 4px 6px rgba(255, 255, 255, 0.8),
    inset 0 -6px 12px rgba(15, 23, 42, 0.08),
    0 12px 24px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: auto;
}

body.page-hub .hub-mode-card::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 12%;
  right: 12%;
  height: 35%;
  max-height: none;
  border-radius: 999px 999px 40% 40%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.15) 100%
  );
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

body.page-hub .hub-mode-card > * {
  position: relative;
  z-index: 1;
}

body.page-hub .hub-mode-card:hover {
  transform: translateY(-5px);
  border-color: rgba(20, 184, 166, 0.75);
  box-shadow:
    inset 0 4px 10px rgba(255, 255, 255, 0.9),
    inset 0 -6px 12px rgba(15, 23, 42, 0.08),
    0 0 25px rgba(94, 234, 212, 0.45),
    0 20px 40px rgba(15, 118, 110, 0.18);
  will-change: transform, box-shadow;
}

body.page-hub .hub-mode-card:focus-visible {
  outline: none;
  transform: translateY(-5px);
  border-color: rgba(20, 184, 166, 0.75);
  box-shadow:
    inset 0 4px 10px rgba(255, 255, 255, 0.9),
    inset 0 -6px 12px rgba(15, 23, 42, 0.08),
    0 0 0 2px rgba(94, 234, 212, 0.42),
    0 0 25px rgba(94, 234, 212, 0.45),
    0 20px 40px rgba(15, 118, 110, 0.18);
  will-change: transform, box-shadow;
}

body.page-hub .hub-mode-card:active {
  transform: translateY(-2px);
  will-change: auto;
}

body.page-hub .hub-mode-card__title {
  color: #1e3a5f;
  font-size: clamp(1.18rem, 1.4vw, 1.38rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.22;
  margin: 0;
}

body.page-hub .hub-mode-card__desc {
  color: #475569;
  font-size: clamp(0.84rem, 0.95vw, 0.98rem);
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
  max-width: 38rem;
}

/* Home panels: flatter corners, same glass formula */
body.page-hub #hub-recent-section.hub-progress,
body.page-hub #hub-request.hub-request,
body.page-hub #panel-info.panel--hub {
  position: relative;
  max-width: min(600px, 100%);
  margin-left: auto;
  margin-right: auto;
  border-radius: 14px;
  background: var(--glass-gradient);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 3px 5px rgba(255, 255, 255, 0.75),
    inset 0 -5px 10px rgba(15, 23, 42, 0.06),
    0 6px 18px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

body.page-hub #hub-recent-section.hub-progress::before,
body.page-hub #panel-info.panel--hub::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 12%;
  right: 12%;
  height: 35%;
  max-height: 2.75rem;
  border-radius: 999px 999px 40% 40%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

body.page-hub #hub-request.hub-request::before {
  top: 6px;
  left: 12%;
  right: 12%;
  height: 35%;
  max-height: 2.75rem;
  border-radius: 999px 999px 40% 40%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  opacity: 0.55;
  z-index: 0;
}

body.page-hub #hub-recent-section.hub-progress > *,
body.page-hub #hub-request.hub-request > *,
body.page-hub #panel-info.panel--hub > * {
  position: relative;
  z-index: 1;
}

body.page-hub #hub-recent-section .hub-section-title,
body.page-hub #hub-request .hub-section-title {
  color: #1e3a5f;
  font-size: clamp(1rem, 0.55rem + 0.9vw, 1.07rem);
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.28;
}

body.page-hub #hub-recent-section .hub-section-title {
  text-align: center;
}

body.page-hub #hub-recent-section .hub-progress__meta,
body.page-hub #hub-request .hub-request__desc,
body.page-hub #panel-info .panel__text {
  color: #475569;
  font-size: clamp(0.84rem, 0.78rem + 0.35vw, 0.93rem);
  font-weight: 500;
  line-height: 1.45;
}

body.page-hub #hub-recent-section .btn,
body.page-hub #hub-request .btn {
  font-size: clamp(0.87rem, 0.8rem + 0.35vw, 0.94rem);
  font-weight: 600;
}

body.page-hub #hub-recent-section.hub-progress {
  max-width: min(620px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding: 1.25rem 1.35rem 1.35rem;
}

body.page-hub .hub-recent-desc {
  margin: 0 0 0.65rem;
  color: #475569;
  font-size: clamp(0.86rem, 0.8rem + 0.35vw, 0.95rem);
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}

body.page-hub #hub-recent-section .hub-recent-meta:empty {
  display: none;
}

body.page-hub #hub-recent-section .hub-recent-meta {
  margin: 0 auto 0.85rem;
  max-width: 36rem;
  text-align: center;
  color: #64748b;
  font-size: clamp(0.78rem, 0.72rem + 0.3vw, 0.84rem);
  font-weight: 500;
  line-height: 1.45;
}

body.page-hub .hub-recent-label {
  margin: 0 0 0.4rem;
  font-size: clamp(0.72rem, 0.68rem + 0.25vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(30, 58, 95, 0.72);
  text-align: left;
}

body.page-hub #hub-recent-focus.hub-recent-focus {
  margin: 0.75rem 0 1rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #1e3a5f;
  font-size: clamp(0.88rem, 0.82rem + 0.35vw, 0.96rem);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

body.page-hub #hub-recent-focus.hub-recent-focus:empty {
  display: none;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

body.page-hub #hub-recent-section .hub-recent-chips {
  margin: 0 0 0.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  justify-content: flex-start;
}

body.page-hub #hub-recent-section .hub-progress__chip.hub-recent-chip {
  position: relative;
  z-index: 1;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(12px) saturate(1.35);
  -webkit-backdrop-filter: blur(12px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: #1e3a5f;
  font-size: clamp(0.78rem, 0.72rem + 0.3vw, 0.85rem);
  font-weight: 600;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.75),
    inset 0 -2px 5px rgba(15, 23, 42, 0.04);
}

body.page-hub .hub-recent-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
  justify-content: flex-start;
  margin: 0 0 0.65rem;
}

body.page-hub .hub-recent-quick-btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 3.25rem;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: clamp(0.82rem, 0.76rem + 0.3vw, 0.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1e3a5f;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: var(--glass-gradient);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow:
    inset 0 3px 5px rgba(255, 255, 255, 0.82),
    inset 0 -5px 10px rgba(15, 23, 42, 0.06),
    0 6px 14px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.2s ease, color 0.18s ease;
  will-change: auto;
}

body.page-hub .hub-recent-quick-btn::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 14%;
  right: 14%;
  height: 38%;
  max-height: 1.35rem;
  border-radius: 999px 999px 42% 42%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.08) 100%);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

body.page-hub .hub-recent-quick-btn:hover {
  transform: translateY(-2px);
  color: #0f766e;
  border-color: rgba(20, 184, 166, 0.55);
  box-shadow:
    inset 0 3px 6px rgba(255, 255, 255, 0.9),
    inset 0 -5px 10px rgba(15, 23, 42, 0.06),
    0 0 18px rgba(94, 234, 212, 0.35),
    0 10px 22px rgba(15, 118, 110, 0.12);
  will-change: transform, box-shadow;
}

body.page-hub .hub-recent-quick-btn:focus-visible {
  outline: none;
  transform: translateY(-2px);
  color: #0f766e;
  border-color: rgba(20, 184, 166, 0.65);
  box-shadow:
    inset 0 3px 6px rgba(255, 255, 255, 0.9),
    0 0 0 2px rgba(94, 234, 212, 0.45),
    0 0 18px rgba(94, 234, 212, 0.38),
    0 10px 22px rgba(15, 118, 110, 0.12);
  will-change: transform, box-shadow;
}

body.page-hub .hub-recent-quick-btn:active {
  transform: translateY(0);
  will-change: auto;
}

body.page-hub .hub-recent-helper {
  margin: 0;
  font-size: clamp(0.74rem, 0.7rem + 0.25vw, 0.8rem);
  font-weight: 500;
  color: #64748b;
  line-height: 1.45;
  text-align: center;
}

/* Legacy continue control: keep in DOM for compatibility; no focus, no caret artifact */
body.page-hub #btn-hub-recent-continue.hub-recent-continue--legacy {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none;
  opacity: 0;
}

body.page-hub #btn-hub-recent-continue.hub-recent-continue--legacy:focus,
body.page-hub #btn-hub-recent-continue.hub-recent-continue--legacy:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

body.page-hub #hub-request.hub-request {
  border-radius: 14px;
  padding: 1.2rem 1.35rem 1.35rem;
}

body.page-hub #panel-info.panel--hub {
  padding: 1rem 1.2rem;
}

/* ============================================================
   Phase 4A: Responsive — learner hub + login only
   All rules scoped to hub/login elements; global classes untouched.
   ============================================================ */

/* ── 1024px: tablet ── */
@media (max-width: 1024px) {
  .hub-mode-cards {
    gap: 0.9rem;
    padding: 0 0.5rem;
  }
  body.page-hub .hub-mode-cards {
    display: flex;
    flex-direction: column;
    max-width: min(680px, 100%);
    margin-left: auto;
    margin-right: auto;
    padding: 0 0.75rem;
  }
  body.page-hub .hub-settings-screen__topbar,
  body.page-hub .hub-settings-card {
    width: min(100%, 760px);
    max-width: min(760px, 100%);
    margin-inline: auto;
    box-sizing: border-box;
  }
  body.page-hub .hub-settings-card {
    padding: 2.1rem 1.85rem 2.35rem;
  }
  .hub-settings-card {
    max-width: 100%;
  }
  /* contain neon glow within viewport */
  .layout--hub .main--hub {
    overflow-x: hidden;
  }
}

/* ── 768px: small tablet ── */
@media (max-width: 768px) {
  .hub-hero2 {
    padding: 2rem 1rem 2.25rem;
  }
  .hub-hero2__title {
    font-size: 2.4rem;
  }
  body.page-hub .hub-hero2 {
    padding: 2rem 1rem 1.6rem;
  }
  body.page-hub .hub-hero2__title {
    font-size: clamp(2.2rem, 3.8vw, 2.75rem);
  }
  body.page-hub .hub-hero2__subtitle {
    font-size: clamp(1.08rem, 1.1vw + 0.55rem, 1.24rem);
  }
  .hub-mode-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 520px;
  }
  body.page-hub .hub-mode-cards {
    display: flex;
    flex-direction: column;
    grid-template-columns: unset;
    max-width: min(680px, 100%);
    margin-left: auto;
    margin-right: auto;
  }
  .hub-settings-card {
    border-radius: 20px;
    padding: 1.75rem 1.5rem 2rem;
  }
  body.page-hub .hub-settings-card {
    padding: 1.85rem 1.55rem 2.05rem;
  }
  .hub-settings-field {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  body.page-hub .hub-settings-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .hub-settings-field__label {
    min-width: unset;
  }
  body.page-hub .hub-settings-field__label {
    font-size: clamp(0.92rem, 0.86rem + 0.45vw, 0.98rem);
    max-width: none;
    width: 100%;
  }
  .hub-settings-field__options {
    width: 100%;
  }
  body.page-hub .hub-settings-fields {
    gap: 1.35rem;
    margin-bottom: 2.1rem;
  }
  .hub-settings-start-btn {
    max-width: 100%;
  }
  body.page-hub .hub-settings-start-btn {
    max-width: min(540px, 100%);
  }
}

/* ── 480px: mobile ── */
@media (max-width: 480px) {
  /* Login */
  .login-card {
    padding: 2.25rem 1.5rem 2rem;
    border-radius: 20px;
  }
  .login-brand__title {
    font-size: 1.9rem;
  }

  /* Hub home */
  .hub-hero2 {
    padding: 1.75rem 1rem 2rem;
  }
  .hub-hero2__title {
    font-size: 2rem;
  }
  .hub-hero2__subtitle {
    font-size: 1.05rem;
  }
  .hub-hero2__desc {
    font-size: 0.85rem;
    max-width: 100%;
  }
  body.page-hub .hub-hero2 {
    padding: 1.65rem 1rem 1.4rem;
  }
  body.page-hub .hub-hero2__title {
    font-size: clamp(1.95rem, 5vw, 2.28rem);
  }
  body.page-hub .hub-hero2__subtitle {
    font-size: clamp(1.05rem, 2.6vw, 1.16rem);
  }
  body.page-hub .hub-hero2__desc {
    font-size: clamp(0.85rem, 2.1vw, 0.93rem);
    max-width: 100%;
  }
  .hub-mode-cards {
    grid-template-columns: 1fr;
    max-width: 360px;
    gap: 0.75rem;
    padding: 0 0.25rem;
  }
  body.page-hub .hub-mode-cards {
    display: flex;
    flex-direction: column;
    max-width: min(100%, 560px);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0.75rem;
    gap: 0.65rem;
  }
  .hub-mode-card {
    padding: 1.5rem 1.25rem;
    flex-direction: row;
    text-align: left;
    gap: 1rem;
    border-radius: 18px;
  }
  body.page-hub .hub-mode-card {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 76px;
    padding: 16px 22px;
    border-radius: 999px;
    gap: 0.35rem;
  }
  body.page-hub .hub-mode-card:hover,
  body.page-hub .hub-mode-card:focus-visible {
    transform: translateY(-4px);
    box-shadow:
      inset 0 4px 10px rgba(255, 255, 255, 0.9),
      inset 0 -6px 12px rgba(15, 23, 42, 0.08),
      0 0 16px rgba(94, 234, 212, 0.34),
      0 16px 32px rgba(15, 118, 110, 0.14);
  }
  .hub-mode-card__icon {
    font-size: 1.75rem;
    flex-shrink: 0;
  }
  /* Glow reduction: keep thin inset highlight */
  .hub-mode-card:hover,
  .hub-keyword-card:hover,
  .hub-keyword-card--selected {
    box-shadow:
      inset 0 3px 6px rgba(255, 255, 255, 0.82),
      inset 0 -4px 8px rgba(15, 23, 42, 0.05),
      0 0 0 1px rgba(94, 234, 212, 0.35),
      0 0 12px rgba(20, 184, 166, 0.18),
      0 8px 18px rgba(15, 118, 110, 0.09);
  }

  .hub-pill:hover,
  body.page-hub .btn.btn--hub-cta:hover,
  .login-btn:hover,
  .hub-catalog-back:hover {
    box-shadow:
      inset 0 3px 6px rgba(255, 255, 255, 0.88),
      0 0 0 1px rgba(94, 234, 212, 0.35),
      0 0 12px rgba(94, 234, 212, 0.25),
      0 12px 24px rgba(15, 118, 110, 0.1);
  }

  .hub-settings-start-btn:hover {
    box-shadow:
      inset 0 4px 8px rgba(255, 255, 255, 0.5),
      inset 0 -5px 12px rgba(15, 23, 42, 0.14),
      0 0 0 1px rgba(94, 234, 212, 0.3),
      0 0 14px rgba(94, 234, 212, 0.28),
      0 12px 28px rgba(20, 184, 166, 0.2);
  }

  /* Catalog */
  .hub-catalog-back {
    font-size: 0.82rem;
    padding: 0.4rem 0.9rem;
  }

  /* Settings */
  .hub-settings-card {
    padding: 1.5rem 1.25rem 1.75rem;
    border-radius: 18px;
  }
  body.page-hub .hub-settings-card {
    width: 100%;
    max-width: 100%;
    padding: 1.65rem 1.3rem 1.85rem;
  }
  body.page-hub .hub-settings-screen__topbar {
    width: 100%;
    max-width: 100%;
  }
  .hub-settings-card__heading {
    font-size: 1rem;
  }
  .hub-pill {
    font-size: 0.82rem;
    padding: 0.36rem 0.8rem;
  }
  body.page-hub .hub-pill {
    min-height: 44px;
    padding: 0.42rem 0.92rem;
  }
  body.page-hub .hub-settings-field__options {
    gap: 0.55rem;
    row-gap: 0.5rem;
  }
  body.page-hub #hub-recent-section.hub-progress {
    padding: 1.08rem 1rem 1.2rem;
  }
  body.page-hub .hub-recent-quick-actions {
    gap: 0.48rem 0.55rem;
  }
  body.page-hub .hub-recent-quick-btn {
    flex: 0 1 auto;
    max-width: 100%;
  }
  .hub-settings-start-btn {
    padding: 0.88rem 1.5rem;
    font-size: 0.97rem;
  }
  body.page-hub .hub-settings-start-btn {
    max-width: 100%;
    width: 100%;
  }
}

/* ── 390px: small mobile ── */
@media (max-width: 390px) {
  /* Login */
  .login-card {
    padding: 2rem 1.25rem 1.75rem;
    border-radius: 20px;
  }
  .login-brand__title {
    font-size: 1.75rem;
  }
  .login-subtitle {
    font-size: 1rem;
  }
  .login-desc {
    font-size: 0.83rem;
  }

  /* Hub */
  .hub-hero2__title {
    font-size: 1.8rem;
  }
  .hub-hero2__subtitle {
    font-size: 0.97rem;
  }
  body.page-hub .hub-hero2 {
    padding: 1.5rem 0.9rem 1.25rem;
  }
  body.page-hub .hub-hero2__title {
    font-size: clamp(1.82rem, 5.2vw, 2.05rem);
  }
  body.page-hub .hub-hero2__subtitle {
    font-size: clamp(1.02rem, 2.8vw, 1.12rem);
  }
  body.page-hub .hub-hero2__desc {
    font-size: clamp(0.84rem, 2.2vw, 0.9rem);
  }
  .hub-mode-card {
    padding: 1.15rem 1rem;
    box-shadow:
      0 2px 4px rgba(0, 0, 0, 0.04),
      0 6px 16px rgba(13, 148, 136, 0.07),
      inset 0 1.5px 0 rgba(255, 255, 255, 0.88);
  }
  body.page-hub .hub-mode-card {
    min-height: 74px;
    padding: 16px 22px;
  }
  body.page-hub .hub-mode-card__title {
    font-size: clamp(1.05rem, 3.2vw, 1.12rem);
  }
  body.page-hub .hub-mode-card__desc {
    font-size: clamp(0.78rem, 2.4vw, 0.84rem);
  }
  .hub-mode-card:hover,
  .hub-keyword-card:hover,
  .hub-keyword-card--selected,
  body.page-hub .btn.btn--hub-cta:hover,
  .login-btn:hover,
  .hub-pill:hover,
  .hub-catalog-back:hover {
    box-shadow:
      inset 0 3px 5px rgba(255, 255, 255, 0.8),
      0 0 0 1px rgba(94, 234, 212, 0.28),
      0 0 8px rgba(20, 184, 166, 0.14),
      0 6px 14px rgba(15, 118, 110, 0.07);
  }

  .hub-settings-start-btn:hover {
    box-shadow:
      inset 0 4px 6px rgba(255, 255, 255, 0.45),
      inset 0 -4px 10px rgba(15, 23, 42, 0.12),
      0 0 0 1px rgba(94, 234, 212, 0.26),
      0 0 10px rgba(94, 234, 212, 0.22),
      0 10px 22px rgba(20, 184, 166, 0.16);
  }
  .hub-mode-card__title {
    font-size: 0.97rem;
  }
  .hub-settings-card {
    padding: 1.25rem 1rem 1.5rem;
    /* reduce deep shadow on small screens */
    box-shadow:
      0 2px 4px rgba(15, 118, 110, 0.04),
      0 8px 24px rgba(13, 148, 136, 0.09),
      inset 0 1.5px 0 rgba(255, 255, 255, 0.95);
  }
  body.page-hub .hub-settings-card {
    padding: 1.35rem 1rem 1.55rem;
  }
  body.page-hub .hub-settings-field__label {
    font-size: clamp(0.9rem, 0.84rem + 0.4vw, 0.96rem);
  }
  .hub-settings-field__options {
    gap: 0.35rem;
  }
  body.page-hub .hub-settings-field__options {
    gap: 0.5rem;
    row-gap: 0.45rem;
  }
  .hub-pill {
    font-size: 0.8rem;
    padding: 0.36rem 0.72rem;
  }
  body.page-hub .hub-pill {
    min-height: 44px;
    padding: 0.4rem 0.85rem;
  }
  .hub-settings-start-btn {
    /* ensure touch target minimum */
    min-height: 48px;
  }
  body.page-hub .hub-settings-start-btn {
    min-height: 48px;
    max-width: 100%;
  }
  body.page-hub #hub-recent-section.hub-progress {
    padding: 1rem 0.85rem 1.15rem;
  }
  body.page-hub .hub-recent-quick-btn {
    min-height: 44px;
    padding: 0.4rem 0.88rem;
  }
}

/* ── Reduced motion: disable all animations in hub + login scopes ── */
@media (prefers-reduced-motion: reduce) {
  body.page-hub *,
  body.page-login * {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* Floating clear-glass capsule treatment for the three main hub choices. */
body.page-hub .hub-home-screen {
  isolation: isolate;
}

body.page-hub .hub-home-screen::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
  left: 50%;
  top: 150px;
  width: min(800px, 96vw);
  height: 330px;
  transform: translateX(-50%);
  border-radius: 42px;
  background:
    radial-gradient(45% 18% at 50% 23%, rgba(255, 255, 255, 0.78), transparent 68%),
    radial-gradient(58% 28% at 50% 48%, rgba(94, 234, 212, 0.18), transparent 70%),
    radial-gradient(52% 22% at 50% 76%, rgba(14, 116, 144, 0.1), transparent 72%),
    linear-gradient(180deg, rgba(236, 253, 245, 0.28), rgba(224, 242, 254, 0.18));
  filter: blur(0.2px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 34px 80px rgba(14, 116, 144, 0.08);
  opacity: 0.88;
}

body.page-hub .hub-mode-cards {
  gap: 1.15rem;
  padding: 0.25rem 1rem 0.55rem;
  perspective: 900px;
}

body.page-hub .hub-mode-card {
  min-height: 96px;
  padding: 22px 38px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background:
    linear-gradient(104deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.045) 15%, rgba(255, 255, 255, 0.006) 50%, rgba(255, 255, 255, 0.09) 84%, rgba(255, 255, 255, 0.72)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.018) 45%, rgba(255, 255, 255, 0.12)),
    rgba(255, 255, 255, 0.008);
  backdrop-filter: blur(38px) saturate(2.05) brightness(1.2) contrast(1.06);
  -webkit-backdrop-filter: blur(38px) saturate(2.05) brightness(1.2) contrast(1.06);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 1),
    inset 0 6px 14px rgba(255, 255, 255, 0.28),
    inset 0 -7px 12px rgba(255, 255, 255, 0.12),
    inset 0 -24px 34px rgba(15, 118, 110, 0.06),
    inset 2px 0 3px rgba(255, 255, 255, 0.62),
    inset -2px 0 3px rgba(30, 58, 95, 0.12),
    0 2px 0 rgba(255, 255, 255, 0.72),
    0 10px 10px rgba(15, 23, 42, 0.1),
    0 24px 26px rgba(15, 23, 42, 0.1),
    0 42px 70px rgba(14, 116, 144, 0.08);
  transform: translateY(-5px);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.22s ease;
}

body.page-hub .hub-mode-card::before {
  top: 6px;
  left: 8%;
  right: 8%;
  height: 30%;
  max-height: 18px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.04)),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.88) 18%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0.72) 82%, transparent);
  opacity: 0.9;
  z-index: 2;
  box-shadow:
    0 1px 12px rgba(255, 255, 255, 0.7),
    0 9px 18px rgba(255, 255, 255, 0.12);
}

body.page-hub .hub-mode-card::after {
  content: "";
  position: absolute;
  inset: 7px 10px;
  z-index: 0;
  border-radius: inherit;
  background:
    radial-gradient(86% 76% at 50% 72%, rgba(20, 184, 166, 0.1), transparent 68%),
    radial-gradient(72% 42% at 50% -8%, rgba(255, 255, 255, 0.22), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.004) 54%, rgba(255, 255, 255, 0.045));
  opacity: 0.46;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.38),
    inset 0 8px 18px rgba(255, 255, 255, 0.1),
    inset 0 -18px 26px rgba(20, 184, 166, 0.08),
    0 18px 18px rgba(15, 23, 42, 0.06);
  pointer-events: none;
  transition: opacity 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

body.page-hub .hub-mode-card > * {
  z-index: 3;
}

body.page-hub .hub-mode-card:hover,
body.page-hub .hub-mode-card:focus-visible {
  transform: translateY(-12px) rotateX(2deg) scale(1.018);
  border-color: rgba(209, 250, 229, 0.92);
  background:
    linear-gradient(104deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.06) 15%, rgba(255, 255, 255, 0.012) 50%, rgba(255, 255, 255, 0.12) 84%, rgba(255, 255, 255, 0.82)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.024) 45%, rgba(255, 255, 255, 0.16)),
    rgba(255, 255, 255, 0.012);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 1),
    inset 0 8px 18px rgba(255, 255, 255, 0.42),
    inset 0 -10px 16px rgba(255, 255, 255, 0.2),
    inset 0 -28px 38px rgba(16, 185, 129, 0.2),
    0 2px 0 rgba(255, 255, 255, 0.82),
    0 0 0 1px rgba(167, 243, 208, 0.4),
    0 12px 14px rgba(15, 23, 42, 0.1),
    0 28px 38px rgba(15, 23, 42, 0.1),
    0 42px 82px rgba(16, 185, 129, 0.24);
}

body.page-hub .hub-mode-card:hover::after,
body.page-hub .hub-mode-card:focus-visible::after {
  opacity: 1;
  background:
    radial-gradient(82% 92% at 50% 76%, rgba(16, 185, 129, 0.44), transparent 66%),
    radial-gradient(72% 48% at 50% -8%, rgba(255, 255, 255, 0.48), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.012) 54%, rgba(255, 255, 255, 0.08));
  box-shadow:
    inset 0 0 0 1px rgba(209, 250, 229, 0.44),
    inset 0 12px 22px rgba(255, 255, 255, 0.18),
    inset 0 -18px 30px rgba(16, 185, 129, 0.28),
    0 0 34px rgba(16, 185, 129, 0.24);
}

body.page-hub .hub-mode-card:focus-visible {
  outline: 2px solid rgba(248, 250, 252, 0.42);
  outline-offset: 4px;
}

body.page-hub .hub-mode-card:active {
  transform: translateY(-5px) scale(0.992);
  border-color: rgba(110, 231, 183, 0.95);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.98),
    inset 0 8px 16px rgba(255, 255, 255, 0.24),
    inset 0 -24px 38px rgba(16, 185, 129, 0.38),
    0 8px 16px rgba(15, 23, 42, 0.12),
    0 18px 46px rgba(16, 185, 129, 0.34);
}

body.page-hub .hub-mode-card__title {
  color: #17324f;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 18px rgba(15, 23, 42, 0.12);
}

body.page-hub .hub-mode-card__desc {
  color: rgba(30, 58, 95, 0.78);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.56);
}

@media (max-width: 640px) {
  body.page-hub .hub-mode-cards {
    gap: 0.75rem;
  }

  body.page-hub .hub-mode-card {
    min-height: 78px;
    padding: 16px 22px;
  }

  body.page-hub .hub-home-screen::after {
    top: 140px;
    height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-hub .hub-mode-card,
  body.page-hub .hub-mode-card:hover,
  body.page-hub .hub-mode-card:focus-visible,
  body.page-hub .hub-mode-card:active {
    transition: none !important;
    transform: none !important;
  }
}

/* Final hub composition: airy stage + floating glass objects. */
body.page-hub {
  background:
    radial-gradient(900px 520px at 50% 8%, rgba(20, 184, 166, 0.16), transparent 64%),
    radial-gradient(760px 420px at 12% 44%, rgba(186, 230, 253, 0.46), transparent 68%),
    radial-gradient(760px 460px at 88% 52%, rgba(204, 251, 241, 0.42), transparent 68%),
    linear-gradient(180deg, #f7fcfd 0%, #edf8fb 46%, #f6fbfd 100%);
}

body.page-hub .layout--hub .main--hub {
  width: min(980px, 100%);
  padding: 1.2rem 1.2rem 3.4rem;
}

body.page-hub .topbar--hub,
body.page-hub .footer--hub {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px) saturate(1.45);
  -webkit-backdrop-filter: blur(22px) saturate(1.45);
}

body.page-hub .hub-hero2 {
  padding: 2.15rem 1rem 1.55rem;
}

body.page-hub .hub-hero2__title {
  color: #0f8f8b;
  font-size: clamp(3rem, 5.4vw, 4.35rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.78),
    0 18px 34px rgba(15, 118, 110, 0.14);
}

body.page-hub .hub-hero2__subtitle {
  color: #0f766e;
  font-size: clamp(1.2rem, 1.6vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.page-hub .hub-hero2__desc {
  color: rgba(30, 58, 95, 0.72);
  font-size: clamp(0.96rem, 1.05vw, 1.08rem);
  max-width: min(31rem, 100%);
}

body.page-hub .hub-home-screen::before {
  top: 7.7rem;
  width: min(940px, 96vw);
  height: 520px;
  border-radius: 46px;
  background:
    radial-gradient(62% 28% at 50% 20%, rgba(255, 255, 255, 0.66), transparent 72%),
    radial-gradient(78% 44% at 50% 52%, rgba(125, 211, 252, 0.18), transparent 72%),
    radial-gradient(78% 42% at 50% 78%, rgba(20, 184, 166, 0.12), transparent 76%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(240, 253, 250, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(15, 118, 110, 0.04);
  opacity: 0.86;
}

body.page-hub .hub-home-screen::after {
  top: 11.2rem;
  width: min(830px, 94vw);
  height: 330px;
  background:
    radial-gradient(52% 16% at 50% 17%, rgba(255, 255, 255, 0.88), transparent 70%),
    radial-gradient(60% 30% at 50% 48%, rgba(94, 234, 212, 0.18), transparent 72%),
    radial-gradient(58% 24% at 50% 80%, rgba(14, 116, 144, 0.1), transparent 74%);
  opacity: 0.9;
}

body.page-hub .hub-mode-cards {
  max-width: min(760px, 100%);
  gap: 1.28rem;
  padding: 0.45rem 1rem 1.1rem;
}

body.page-hub .hub-mode-card {
  min-height: 100px;
  padding: 23px 44px;
  background:
    linear-gradient(104deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.038) 14%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.08) 85%, rgba(255, 255, 255, 0.76)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.01) 47%, rgba(255, 255, 255, 0.11)),
    rgba(255, 255, 255, 0.006);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 1),
    inset 0 6px 13px rgba(255, 255, 255, 0.26),
    inset 0 -8px 13px rgba(255, 255, 255, 0.1),
    inset 0 -25px 36px rgba(15, 118, 110, 0.055),
    inset 2px 0 3px rgba(255, 255, 255, 0.62),
    inset -2px 0 3px rgba(30, 58, 95, 0.12),
    0 2px 0 rgba(255, 255, 255, 0.76),
    0 10px 10px rgba(15, 23, 42, 0.09),
    0 22px 24px rgba(15, 23, 42, 0.09),
    0 42px 68px rgba(14, 116, 144, 0.08);
}

body.page-hub .hub-mode-card::before {
  top: 7px;
  left: 8.5%;
  right: 8.5%;
  height: 26%;
  max-height: 17px;
}

body.page-hub .hub-mode-card::after {
  inset: 8px 12px;
  background:
    radial-gradient(88% 74% at 50% 72%, rgba(20, 184, 166, 0.085), transparent 70%),
    radial-gradient(72% 40% at 50% -8%, rgba(255, 255, 255, 0.2), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.002) 56%, rgba(255, 255, 255, 0.036));
  opacity: 0.42;
}

body.page-hub .hub-mode-card:hover,
body.page-hub .hub-mode-card:focus-visible {
  transform: translateY(-13px) rotateX(2deg) scale(1.018);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 1),
    inset 0 8px 18px rgba(255, 255, 255, 0.42),
    inset 0 -10px 16px rgba(255, 255, 255, 0.18),
    inset 0 -30px 40px rgba(16, 185, 129, 0.18),
    0 2px 0 rgba(255, 255, 255, 0.84),
    0 0 0 1px rgba(167, 243, 208, 0.42),
    0 12px 14px rgba(15, 23, 42, 0.1),
    0 28px 38px rgba(15, 23, 42, 0.09),
    0 44px 86px rgba(16, 185, 129, 0.22);
}

body.page-hub .hub-mode-card:hover::after,
body.page-hub .hub-mode-card:focus-visible::after {
  background:
    radial-gradient(82% 92% at 50% 76%, rgba(16, 185, 129, 0.42), transparent 66%),
    radial-gradient(72% 48% at 50% -8%, rgba(255, 255, 255, 0.46), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.01) 54%, rgba(255, 255, 255, 0.08));
}

body.page-hub .hub-mode-card__title {
  color: #17324f;
  font-size: clamp(1.34rem, 1.65vw, 1.58rem);
  font-weight: 800;
}

body.page-hub .hub-mode-card__desc {
  color: rgba(30, 58, 95, 0.7);
  font-size: clamp(0.98rem, 1.05vw, 1.08rem);
  font-weight: 600;
}

body.page-hub #hub-recent-section.hub-progress,
body.page-hub #hub-request.hub-request {
  position: relative;
  isolation: isolate;
  width: min(720px, calc(100% - 2rem));
  margin: 1.35rem auto 0;
  padding: 1.45rem 1.6rem 1.6rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.22) 50%, rgba(240, 253, 250, 0.28)),
    rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(26px) saturate(1.55);
  -webkit-backdrop-filter: blur(26px) saturate(1.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(15, 118, 110, 0.05),
    0 18px 44px rgba(14, 116, 144, 0.1);
}

body.page-hub #hub-request.hub-request {
  margin-top: 1.15rem;
  text-align: center;
}

body.page-hub .hub-section-title {
  color: #17324f;
  font-size: clamp(1.12rem, 1.2vw, 1.28rem);
  letter-spacing: 0;
}

body.page-hub .hub-recent-desc,
body.page-hub .hub-request__desc,
body.page-hub .hub-progress__meta,
body.page-hub .hub-recent-helper {
  color: rgba(30, 58, 95, 0.68);
}

body.page-hub #hub-recent-section .hub-progress__chip.hub-recent-chip,
body.page-hub .hub-recent-quick-btn,
body.page-hub .btn.btn--hub-cta,
body.page-hub .btn--hub-outline {
  border-color: rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.16)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.78),
    inset 0 -4px 8px rgba(15, 118, 110, 0.06),
    0 8px 18px rgba(14, 116, 144, 0.08);
}

body.page-hub .hub-recent-quick-btn:hover,
body.page-hub .btn.btn--hub-cta:hover,
body.page-hub .btn--hub-outline:hover {
  border-color: rgba(20, 184, 166, 0.55);
  color: #0f766e;
  box-shadow:
    inset 0 3px 6px rgba(255, 255, 255, 0.86),
    inset 0 -7px 12px rgba(16, 185, 129, 0.12),
    0 0 22px rgba(94, 234, 212, 0.28),
    0 12px 26px rgba(14, 116, 144, 0.12);
}

@media (max-width: 640px) {
  body.page-hub .layout--hub .main--hub {
    padding: 0.8rem 0.85rem 2.6rem;
  }

  body.page-hub .hub-hero2 {
    padding: 1.7rem 0.75rem 1.25rem;
  }

  body.page-hub .hub-hero2__title {
    font-size: clamp(2.35rem, 10vw, 3.1rem);
  }

  body.page-hub .hub-home-screen::before {
    top: 7rem;
    height: 430px;
  }

  body.page-hub .hub-home-screen::after {
    top: 9.8rem;
    height: 285px;
  }

  body.page-hub .hub-mode-cards {
    gap: 0.9rem;
    padding: 0.3rem 0.45rem 0.9rem;
  }

  body.page-hub .hub-mode-card {
    min-height: 82px;
    padding: 17px 24px;
  }

  body.page-hub #hub-recent-section.hub-progress,
  body.page-hub #hub-request.hub-request {
    width: min(100%, calc(100% - 0.45rem));
    padding: 1.18rem 1rem 1.25rem;
  }
}

/* Refined home composition: remove the visible backing box and sharpen the brand. */
body.page-hub .hub-hero2 {
  padding: 2.35rem 1rem 1.8rem;
}

body.page-hub .hub-hero2__title {
  color: #067c7d;
  font-size: clamp(3.35rem, 5.8vw, 4.85rem);
  font-weight: 800;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95),
    0 4px 12px rgba(6, 124, 125, 0.16),
    0 18px 42px rgba(15, 118, 110, 0.14);
}

body.page-hub .hub-hero2__subtitle {
  color: #0b7770;
  font-size: clamp(1.25rem, 1.55vw, 1.6rem);
}

body.page-hub .hub-hero2__desc {
  color: rgba(23, 50, 79, 0.78);
  font-weight: 600;
}

body.page-hub .hub-home-screen::before {
  top: 8.8rem;
  width: min(900px, 94vw);
  height: 500px;
  border-radius: 999px;
  background:
    radial-gradient(44% 17% at 50% 18%, rgba(255, 255, 255, 0.54), transparent 72%),
    radial-gradient(64% 34% at 50% 48%, rgba(94, 234, 212, 0.16), transparent 72%),
    radial-gradient(72% 34% at 50% 74%, rgba(14, 116, 144, 0.08), transparent 76%);
  box-shadow: none;
  opacity: 0.82;
}

body.page-hub .hub-home-screen::after {
  top: 12.2rem;
  width: min(820px, 92vw);
  height: 360px;
  border-radius: 999px;
  background:
    radial-gradient(62% 16% at 50% 12%, rgba(255, 255, 255, 0.74), transparent 72%),
    radial-gradient(72% 28% at 50% 46%, rgba(20, 184, 166, 0.14), transparent 74%),
    radial-gradient(76% 20% at 50% 85%, rgba(15, 23, 42, 0.055), transparent 76%);
  box-shadow: none;
  opacity: 0.72;
}

body.page-hub .hub-mode-cards {
  max-width: min(730px, 100%);
  gap: 1.22rem;
  padding: 0.15rem 1rem 1.25rem;
}

body.page-hub .hub-mode-card {
  min-height: 96px;
  border-color: rgba(255, 255, 255, 0.84);
  background:
    linear-gradient(104deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.045) 14%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.09) 85%, rgba(255, 255, 255, 0.8)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.23), rgba(255, 255, 255, 0.01) 48%, rgba(255, 255, 255, 0.13)),
    rgba(255, 255, 255, 0.004);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 1),
    inset 0 6px 13px rgba(255, 255, 255, 0.28),
    inset 0 -8px 14px rgba(255, 255, 255, 0.1),
    inset 0 -24px 34px rgba(15, 118, 110, 0.05),
    inset 2px 0 3px rgba(255, 255, 255, 0.64),
    inset -2px 0 3px rgba(30, 58, 95, 0.11),
    0 2px 0 rgba(255, 255, 255, 0.8),
    0 9px 10px rgba(15, 23, 42, 0.09),
    0 24px 26px rgba(15, 23, 42, 0.09),
    0 44px 72px rgba(14, 116, 144, 0.075);
}

body.page-hub .hub-mode-card__title {
  color: #14324f;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.86),
    0 8px 20px rgba(15, 23, 42, 0.1);
}

body.page-hub .hub-mode-card__desc {
  color: rgba(23, 50, 79, 0.74);
}

body.page-hub #hub-recent-section.hub-progress,
body.page-hub #hub-request.hub-request {
  margin-top: 1.7rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.2) 52%, rgba(236, 253, 245, 0.24)),
    rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
  body.page-hub .hub-hero2 {
    padding: 1.85rem 0.75rem 1.35rem;
  }

  body.page-hub .hub-hero2__title {
    font-size: clamp(2.75rem, 11vw, 3.55rem);
  }

  body.page-hub .hub-home-screen::before {
    top: 8rem;
    height: 420px;
  }

  body.page-hub .hub-home-screen::after {
    top: 10.8rem;
    height: 320px;
  }

  body.page-hub .hub-mode-cards {
    gap: 0.88rem;
    padding: 0.15rem 0.45rem 1rem;
  }
}

/* Premium neutral glass: calm pearl surface, blue light only on interaction. */
body.page-hub {
  background:
    radial-gradient(820px 500px at 50% -8%, rgba(255, 255, 255, 0.92), transparent 62%),
    radial-gradient(680px 420px at 12% 34%, rgba(219, 234, 254, 0.36), transparent 70%),
    radial-gradient(620px 420px at 88% 38%, rgba(240, 249, 255, 0.58), transparent 70%),
    linear-gradient(160deg, #f8fbfc 0%, #edf4f7 48%, #f7fbfd 100%);
}

body.page-hub .layout--hub .main--hub {
  width: min(940px, 100%);
  padding-top: 1.05rem;
}

body.page-hub .hub-hero2 {
  padding: 2.1rem 1rem 1.65rem;
}

body.page-hub .hub-hero2__title {
  color: transparent;
  background: linear-gradient(135deg, #083f5f 0%, #0d7f86 52%, #0a4f74 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(3.15rem, 5.2vw, 4.45rem);
  font-weight: 900;
  text-shadow: none;
  filter: drop-shadow(0 2px 12px rgba(8, 63, 95, 0.16));
}

body.page-hub .hub-hero2__subtitle {
  color: #0d6670;
  font-size: clamp(1.18rem, 1.35vw, 1.42rem);
  font-weight: 800;
}

body.page-hub .hub-hero2__desc {
  color: rgba(36, 56, 78, 0.68);
  font-weight: 500;
}

body.page-hub .hub-home-screen::before,
body.page-hub .hub-home-screen::after {
  border-radius: 999px;
  box-shadow: none;
}

body.page-hub .hub-home-screen::before {
  top: 8.4rem;
  width: min(820px, 92vw);
  height: 440px;
  background:
    radial-gradient(48% 18% at 50% 15%, rgba(255, 255, 255, 0.72), transparent 74%),
    radial-gradient(66% 32% at 50% 54%, rgba(226, 232, 240, 0.24), transparent 76%),
    radial-gradient(70% 24% at 50% 82%, rgba(15, 23, 42, 0.055), transparent 78%);
  opacity: 0.74;
}

body.page-hub .hub-home-screen::after {
  top: 11.7rem;
  width: min(760px, 90vw);
  height: 335px;
  background:
    radial-gradient(54% 14% at 50% 12%, rgba(255, 255, 255, 0.82), transparent 74%),
    radial-gradient(62% 24% at 50% 50%, rgba(255, 255, 255, 0.3), transparent 76%),
    radial-gradient(68% 18% at 50% 88%, rgba(15, 23, 42, 0.05), transparent 80%);
  opacity: 0.64;
}

body.page-hub .hub-mode-cards {
  max-width: min(720px, 100%);
  gap: 1.05rem;
  padding: 0.2rem 1rem 1.15rem;
}

body.page-hub .hub-mode-card {
  min-height: 92px;
  border-color: rgba(255, 255, 255, 0.88);
  background:
    linear-gradient(104deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.048) 15%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.08) 84%, rgba(255, 255, 255, 0.78)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.018) 48%, rgba(255, 255, 255, 0.13)),
    rgba(255, 255, 255, 0.006);
  backdrop-filter: blur(34px) saturate(1.55) brightness(1.08);
  -webkit-backdrop-filter: blur(34px) saturate(1.55) brightness(1.08);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 1),
    inset 0 6px 12px rgba(255, 255, 255, 0.32),
    inset 0 -7px 12px rgba(255, 255, 255, 0.12),
    inset 0 -22px 32px rgba(51, 65, 85, 0.045),
    inset 2px 0 3px rgba(255, 255, 255, 0.66),
    inset -2px 0 3px rgba(51, 65, 85, 0.1),
    0 2px 0 rgba(255, 255, 255, 0.84),
    0 9px 12px rgba(15, 23, 42, 0.08),
    0 22px 28px rgba(15, 23, 42, 0.075),
    0 42px 70px rgba(30, 41, 59, 0.055);
}

body.page-hub .hub-mode-card::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.045)),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9) 18%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0.74) 82%, transparent);
  opacity: 0.82;
}

body.page-hub .hub-mode-card::after {
  background:
    radial-gradient(84% 70% at 50% 72%, rgba(255, 255, 255, 0.06), transparent 70%),
    radial-gradient(72% 40% at 50% -8%, rgba(255, 255, 255, 0.22), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.002) 56%, rgba(255, 255, 255, 0.034));
  opacity: 0.38;
}

body.page-hub .hub-mode-card:hover,
body.page-hub .hub-mode-card:focus-visible {
  transform: translateY(-10px) rotateX(1.6deg) scale(1.014);
  border-color: rgba(191, 219, 254, 0.98);
  background:
    linear-gradient(104deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.06) 15%, rgba(255, 255, 255, 0.008) 50%, rgba(255, 255, 255, 0.11) 84%, rgba(255, 255, 255, 0.82)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.018) 48%, rgba(255, 255, 255, 0.14)),
    rgba(255, 255, 255, 0.008);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 1),
    inset 0 8px 18px rgba(255, 255, 255, 0.44),
    inset 0 -10px 16px rgba(255, 255, 255, 0.18),
    inset 0 -30px 42px rgba(37, 99, 235, 0.19),
    0 2px 0 rgba(255, 255, 255, 0.9),
    0 0 0 1px rgba(147, 197, 253, 0.5),
    0 12px 16px rgba(15, 23, 42, 0.09),
    0 28px 40px rgba(30, 64, 175, 0.1),
    0 44px 86px rgba(37, 99, 235, 0.24);
}

body.page-hub .hub-mode-card:hover::after,
body.page-hub .hub-mode-card:focus-visible::after {
  opacity: 1;
  background:
    radial-gradient(82% 92% at 50% 76%, rgba(37, 99, 235, 0.42), transparent 66%),
    radial-gradient(72% 48% at 50% -8%, rgba(255, 255, 255, 0.48), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.01) 54%, rgba(255, 255, 255, 0.08));
  box-shadow:
    inset 0 0 0 1px rgba(191, 219, 254, 0.58),
    inset 0 12px 22px rgba(255, 255, 255, 0.18),
    inset 0 -18px 30px rgba(37, 99, 235, 0.28),
    0 0 36px rgba(37, 99, 235, 0.25);
}

body.page-hub .hub-mode-card:active {
  border-color: rgba(96, 165, 250, 1);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.98),
    inset 0 8px 16px rgba(255, 255, 255, 0.24),
    inset 0 -24px 38px rgba(37, 99, 235, 0.34),
    0 8px 16px rgba(15, 23, 42, 0.12),
    0 18px 46px rgba(37, 99, 235, 0.3);
}

body.page-hub .hub-mode-card__title {
  color: #17324f;
  font-size: clamp(1.28rem, 1.52vw, 1.5rem);
}

body.page-hub .hub-mode-card__desc {
  color: rgba(36, 56, 78, 0.66);
  font-size: clamp(0.94rem, 1vw, 1.03rem);
}

body.page-hub #hub-recent-section.hub-progress,
body.page-hub #hub-request.hub-request {
  border-color: rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.2) 52%, rgba(248, 250, 252, 0.28)),
    rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(51, 65, 85, 0.04),
    0 18px 42px rgba(30, 41, 59, 0.075);
}

body.page-hub .hub-recent-quick-btn:hover,
body.page-hub .btn.btn--hub-cta:hover,
body.page-hub .btn--hub-outline:hover {
  border-color: rgba(96, 165, 250, 0.72);
  color: #1d4ed8;
  box-shadow:
    inset 0 3px 6px rgba(255, 255, 255, 0.88),
    inset 0 -7px 12px rgba(37, 99, 235, 0.12),
    0 0 22px rgba(96, 165, 250, 0.3),
    0 12px 26px rgba(30, 64, 175, 0.11);
}

@media (max-width: 640px) {
  body.page-hub .hub-hero2 {
    padding: 1.7rem 0.75rem 1.25rem;
  }

  body.page-hub .hub-hero2__title {
    font-size: clamp(2.5rem, 10.4vw, 3.3rem);
  }

  body.page-hub .hub-home-screen::before {
    top: 7.6rem;
    height: 385px;
  }

  body.page-hub .hub-home-screen::after {
    top: 10.4rem;
    height: 290px;
  }

  body.page-hub .hub-mode-card {
    min-height: 80px;
  }
}

/* Premium lower hub sections, inspired by the reference panel composition. */
body.page-hub #hub-recent-section.hub-progress,
body.page-hub #hub-request.hub-request {
  width: min(680px, calc(100% - 2rem));
  margin: 1.45rem auto 0;
  padding: 1.35rem 1.45rem 1.45rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(100% 80% at 50% 0%, rgba(255, 255, 255, 0.62), transparent 58%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.18) 52%, rgba(241, 245, 249, 0.24)),
    rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px) saturate(1.45);
  -webkit-backdrop-filter: blur(24px) saturate(1.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(51, 65, 85, 0.04),
    0 10px 24px rgba(15, 23, 42, 0.055),
    0 26px 54px rgba(30, 64, 175, 0.06);
}

body.page-hub #hub-recent-section.hub-progress::after,
body.page-hub #hub-request.hub-request::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 10%;
  right: 10%;
  height: 3.6rem;
  border-radius: 999px 999px 46% 46%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.04));
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

body.page-hub #hub-recent-section.hub-progress > *,
body.page-hub #hub-request.hub-request > * {
  position: relative;
  z-index: 1;
}

body.page-hub #hub-recent-section .hub-section-title,
body.page-hub #hub-request .hub-section-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.58rem;
  width: 100%;
  margin: 0 0 0.55rem;
  color: #17324f;
  font-size: clamp(1.08rem, 1.15vw, 1.22rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: 0;
}

body.page-hub #hub-recent-section .hub-section-title::before,
body.page-hub #hub-request .hub-section-title::before {
  content: "";
  width: 2rem;
  height: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(circle at 50% 42%, rgba(37, 99, 235, 0.2), transparent 58%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -4px 8px rgba(37, 99, 235, 0.08),
    0 6px 14px rgba(30, 64, 175, 0.08);
}

body.page-hub #hub-request .hub-section-title::before {
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 44%, rgba(13, 148, 136, 0.2), transparent 58%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.2));
}

body.page-hub .hub-recent-desc,
body.page-hub .hub-request__desc {
  max-width: 34rem;
  margin: 0 auto 0.75rem;
  color: rgba(36, 56, 78, 0.66);
  font-size: clamp(0.86rem, 0.95vw, 0.94rem);
  font-weight: 500;
  line-height: 1.55;
  text-align: center;
}

body.page-hub #hub-recent-section .hub-recent-meta {
  width: fit-content;
  max-width: 100%;
  margin: 0.15rem auto 1rem;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.32);
  color: rgba(36, 56, 78, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 4px 12px rgba(15, 23, 42, 0.035);
}

body.page-hub .hub-recent-label {
  margin: 1rem 0 0.48rem;
  color: rgba(36, 56, 78, 0.64);
  font-size: clamp(0.72rem, 0.74vw, 0.78rem);
  font-weight: 800;
  letter-spacing: 0.08em;
}

body.page-hub #hub-recent-section .hub-recent-chips,
body.page-hub .hub-recent-quick-actions {
  justify-content: center;
  gap: 0.55rem;
}

body.page-hub #hub-recent-section .hub-progress__chip.hub-recent-chip,
body.page-hub .hub-recent-quick-btn {
  color: #17324f;
  border-color: rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -4px 8px rgba(51, 65, 85, 0.045),
    0 5px 13px rgba(15, 23, 42, 0.045);
}

body.page-hub #hub-recent-section .hub-progress__chip.hub-recent-chip {
  padding: 0.34rem 0.78rem;
  font-weight: 700;
}

body.page-hub #hub-recent-focus.hub-recent-focus {
  margin: 0.8rem auto 1.05rem;
  max-width: 34rem;
  padding: 0.72rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.22)),
    rgba(255, 255, 255, 0.1);
  color: #17324f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 6px 16px rgba(15, 23, 42, 0.04);
}

body.page-hub .hub-recent-quick-btn {
  min-height: 46px;
  padding: 0.48rem 1.05rem;
}

body.page-hub .hub-recent-quick-btn:hover,
body.page-hub .hub-recent-quick-btn:focus-visible {
  transform: translateY(-2px);
  color: #1d4ed8;
  border-color: rgba(96, 165, 250, 0.72);
  box-shadow:
    inset 0 2px 5px rgba(255, 255, 255, 0.9),
    inset 0 -7px 12px rgba(37, 99, 235, 0.12),
    0 0 22px rgba(96, 165, 250, 0.28),
    0 12px 26px rgba(30, 64, 175, 0.1);
}

body.page-hub .hub-recent-helper {
  margin: 0.55rem auto 0;
  color: rgba(36, 56, 78, 0.58);
}

body.page-hub #hub-request.hub-request {
  margin-top: 1.05rem;
  text-align: center;
}

body.page-hub #hub-request .btn--hub-outline {
  min-height: 46px;
  margin-top: 0.15rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  color: #17324f;
}

@media (max-width: 640px) {
  body.page-hub #hub-recent-section.hub-progress,
  body.page-hub #hub-request.hub-request {
    width: min(100%, calc(100% - 0.5rem));
    padding: 1.18rem 1rem 1.25rem;
    border-radius: 22px;
  }

  body.page-hub #hub-recent-section .hub-section-title,
  body.page-hub #hub-request .hub-section-title {
    gap: 0.45rem;
  }

  body.page-hub #hub-recent-section .hub-section-title::before,
  body.page-hub #hub-request .hub-section-title::before {
    width: 1.75rem;
    height: 1.75rem;
  }
}

/* Final settings screen polish: balanced controls, calm glass, blue selection. */
body.page-hub .hub-settings-screen {
  padding: 0.25rem 0 4rem;
}

body.page-hub .hub-settings-screen__topbar {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto 0.95rem;
}

body.page-hub #hub-settings-back.hub-catalog-back {
  min-height: 38px;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.12);
  color: #31455f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 6px 15px rgba(15, 23, 42, 0.06);
}

body.page-hub .hub-settings-card {
  width: min(720px, calc(100% - 2rem));
  max-width: min(720px, calc(100% - 2rem));
  padding: 1.65rem 2rem 1.85rem;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background:
    radial-gradient(85% 38% at 50% 0%, rgba(255, 255, 255, 0.72), transparent 72%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.18) 52%, rgba(248, 250, 252, 0.28)),
    rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(26px) saturate(1.45);
  -webkit-backdrop-filter: blur(26px) saturate(1.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(51, 65, 85, 0.05),
    0 16px 36px rgba(15, 23, 42, 0.08),
    0 34px 72px rgba(30, 64, 175, 0.06);
}

body.page-hub .hub-settings-card::before {
  top: 7px;
  left: 13%;
  right: 13%;
  height: 3.7rem;
  border-radius: 999px 999px 45% 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.04));
  opacity: 0.52;
}

body.page-hub .hub-settings-card__heading {
  margin: 0 0 0.55rem;
  color: #17324f;
  font-size: clamp(1.22rem, 1.2vw, 1.38rem);
  font-weight: 850;
  letter-spacing: 0;
}

body.page-hub .hub-settings-meta {
  gap: 0.45rem;
  margin-bottom: 1.45rem;
}

body.page-hub .hub-settings-tag {
  min-height: 24px;
  padding: 0.26rem 0.72rem;
  border-radius: 999px;
  font-size: 0.74rem;
}

body.page-hub .hub-settings-tag--type {
  color: #0f766e;
  background: rgba(204, 251, 241, 0.42);
  border-color: rgba(45, 212, 191, 0.32);
}

body.page-hub .hub-settings-tag--key {
  color: #1d4ed8;
  background: rgba(219, 234, 254, 0.52);
  border-color: rgba(96, 165, 250, 0.32);
}

body.page-hub .hub-settings-fields {
  gap: 0.72rem;
  margin-bottom: 1.45rem;
}

body.page-hub .hub-settings-field {
  min-height: 58px;
  padding: 0.42rem 0.55rem;
  border-radius: 17px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 5px 14px rgba(15, 23, 42, 0.035);
}

body.page-hub .hub-settings-field__label {
  color: #24384f;
  font-size: clamp(0.9rem, 0.92vw, 0.98rem);
  font-weight: 800;
  letter-spacing: 0;
}

body.page-hub .hub-settings-field__options {
  gap: 0.48rem;
  row-gap: 0.48rem;
}

body.page-hub .hub-pill {
  min-height: 38px;
  min-width: 54px;
  padding: 0.34rem 0.86rem;
  color: #24384f;
  font-size: clamp(0.78rem, 0.8vw, 0.84rem);
  font-weight: 750;
  border-color: rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -4px 8px rgba(51, 65, 85, 0.045),
    0 5px 14px rgba(15, 23, 42, 0.055);
}

body.page-hub .hub-pill::before {
  top: 3px;
  height: 32%;
  opacity: 0.52;
}

body.page-hub .hub-pill:hover,
body.page-hub .hub-pill:focus-visible {
  transform: translateY(-2px);
  color: #1d4ed8;
  border-color: rgba(96, 165, 250, 0.62);
  box-shadow:
    inset 0 2px 5px rgba(255, 255, 255, 0.9),
    inset 0 -6px 10px rgba(37, 99, 235, 0.1),
    0 0 18px rgba(96, 165, 250, 0.24),
    0 10px 22px rgba(30, 64, 175, 0.08);
}

body.page-hub .hub-pill--active {
  color: #0f3f8a;
  border-color: rgba(96, 165, 250, 0.78);
  background:
    radial-gradient(90% 120% at 50% 100%, rgba(37, 99, 235, 0.26), transparent 66%),
    linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(191, 219, 254, 0.5)),
    rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 2px 5px rgba(255, 255, 255, 0.9),
    inset 0 -8px 14px rgba(37, 99, 235, 0.16),
    0 0 0 1px rgba(147, 197, 253, 0.34),
    0 0 20px rgba(96, 165, 250, 0.28),
    0 8px 20px rgba(30, 64, 175, 0.1);
}

body.page-hub .hub-pill--unavailable {
  color: rgba(127, 29, 29, 0.58);
  border-color: rgba(252, 165, 165, 0.46);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(254, 242, 242, 0.28)),
    rgba(255, 255, 255, 0.08);
  cursor: not-allowed;
  opacity: 0.78;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -5px 10px rgba(127, 29, 29, 0.05),
    0 4px 10px rgba(15, 23, 42, 0.035);
}

body.page-hub .hub-pill--unavailable:hover,
body.page-hub .hub-pill--unavailable:focus-visible {
  transform: translateY(-1px);
  color: #991b1b;
  border-color: rgba(248, 113, 113, 0.78);
  box-shadow:
    inset 0 2px 5px rgba(255, 255, 255, 0.82),
    inset 0 -8px 14px rgba(239, 68, 68, 0.14),
    0 0 0 1px rgba(248, 113, 113, 0.28),
    0 0 20px rgba(239, 68, 68, 0.22),
    0 10px 22px rgba(127, 29, 29, 0.08);
}

body.page-hub .hub-settings-start-btn {
  max-width: min(480px, 100%);
  min-height: 52px;
  margin-top: 0.35rem;
  font-size: clamp(0.94rem, 0.96vw, 1.02rem);
  font-weight: 850;
  background: linear-gradient(135deg, #14b8a6 0%, #0ea5e9 48%, #2563eb 100%);
  border-color: rgba(255, 255, 255, 0.52);
  box-shadow:
    inset 0 4px 10px rgba(255, 255, 255, 0.54),
    inset 0 -10px 20px rgba(15, 23, 42, 0.16),
    0 14px 32px rgba(37, 99, 235, 0.18),
    0 0 24px rgba(14, 165, 233, 0.24);
}

body.page-hub .hub-settings-start-btn:hover,
body.page-hub .hub-settings-start-btn:focus-visible {
  transform: translateY(-2px) scale(1.006);
  box-shadow:
    inset 0 5px 12px rgba(255, 255, 255, 0.62),
    inset 0 -10px 20px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(147, 197, 253, 0.42),
    0 0 28px rgba(96, 165, 250, 0.34),
    0 18px 38px rgba(37, 99, 235, 0.18);
}

@media (min-width: 769px) {
  body.page-hub .hub-settings-field {
    grid-template-columns: minmax(104px, 118px) 1fr;
    column-gap: 1.05rem;
  }
}

@media (max-width: 640px) {
  body.page-hub .hub-settings-screen__topbar,
  body.page-hub .hub-settings-card {
    width: min(100%, calc(100% - 0.55rem));
    max-width: min(100%, calc(100% - 0.55rem));
  }

  body.page-hub .hub-settings-card {
    padding: 1.28rem 1rem 1.35rem;
    border-radius: 22px;
  }

  body.page-hub .hub-settings-field {
    min-height: unset;
    padding: 0.75rem;
  }

  body.page-hub .hub-settings-field__options {
    justify-content: flex-start;
  }

  body.page-hub .hub-pill {
    min-height: 40px;
  }
}
