/*
 * Zito liquid-glass system
 * The warm Zito palette stays intact while interactive UI surfaces gain
 * translucent depth, reflected light, and restrained lilac/cyan refraction.
 */

:root {
  --zito-canvas:
    radial-gradient(ellipse 62% 52% at -4% 0%, rgba(222, 132, 192, .32), transparent 73%),
    radial-gradient(ellipse 58% 55% at 104% -4%, rgba(169, 132, 220, .30), transparent 72%),
    radial-gradient(ellipse 64% 60% at 100% 100%, rgba(78, 190, 204, .28), transparent 73%),
    radial-gradient(ellipse 56% 45% at 18% 100%, rgba(237, 174, 181, .20), transparent 73%),
    linear-gradient(135deg, #f9dfe9 0%, #f1d9eb 42%, #e0d8ee 68%, #c5e8eb 100%);
  --zito-liquid-surface: linear-gradient(135deg, rgba(255, 255, 255, .74) 0%, rgba(255, 249, 247, .46) 42%, rgba(220, 233, 255, .35) 100%);
  --zito-liquid-surface-strong: linear-gradient(135deg, rgba(255, 255, 255, .86) 0%, rgba(255, 248, 245, .60) 43%, rgba(224, 235, 255, .46) 100%);
  --zito-liquid-surface-soft: linear-gradient(138deg, rgba(255, 255, 255, .56), rgba(255, 249, 247, .31) 56%, rgba(226, 237, 255, .24));
  --zito-liquid-input: linear-gradient(140deg, rgba(255, 255, 255, .84), rgba(255, 248, 246, .48) 58%, rgba(224, 237, 255, .34));
  --zito-liquid-edge: rgba(255, 255, 255, .76);
  --zito-liquid-edge-tint: rgba(125, 100, 182, .21);
  --zito-liquid-edge-soft: rgba(126, 103, 177, .16);
  --zito-liquid-highlight: rgba(255, 255, 255, .90);
  --zito-liquid-shadow: 0 20px 42px rgba(83, 65, 122, .13), 0 6px 18px rgba(70, 153, 190, .08), inset 0 1px 0 var(--zito-liquid-highlight), inset 0 -1px 0 rgba(117, 89, 175, .07);
  --zito-liquid-shadow-raised: 0 34px 82px rgba(80, 61, 123, .18), 0 9px 26px rgba(71, 150, 188, .10), inset 0 1px 0 rgba(255, 255, 255, .96), inset 0 -1px 0 rgba(119, 92, 177, .08);
  --zito-liquid-action: radial-gradient(110% 130% at 22% -24%, rgba(255, 255, 255, .70) 0%, rgba(255, 255, 255, 0) 47%), linear-gradient(135deg, #a37ae0 0%, #7963cc 49%, #58b5c7 100%);
}

.zito-glass {
  color-scheme: light;
}

/* Give glass surfaces something soft and colorful to refract. */
body.zito-glass {
  background-attachment: fixed !important;
}

body.zito-glass-landing,
body.zito-glass-app,
body.zito-glass-course,
body.zito-glass-admin,
body.zito-glass-certificate {
  background: var(--zito-canvas) !important;
}

/* Scrollbars stay visible for usability, but belong to the liquid material. */
.zito-glass,
.zito-glass * {
  scrollbar-width: thin;
  scrollbar-color: rgba(108, 87, 168, .54) transparent;
}

.zito-glass::-webkit-scrollbar,
.zito-glass *::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

.zito-glass::-webkit-scrollbar-track,
.zito-glass *::-webkit-scrollbar-track {
  border: 3px solid transparent;
  border-radius: 999px;
  background: transparent;
  background-clip: padding-box;
}

.zito-glass::-webkit-scrollbar-thumb,
.zito-glass *::-webkit-scrollbar-thumb {
  min-height: 36px;
  border: 3px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(151, 112, 207, .76), rgba(78, 169, 188, .74));
  background-clip: padding-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .44);
}

.zito-glass::-webkit-scrollbar-thumb:hover,
.zito-glass *::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(136, 95, 201, .92), rgba(65, 172, 191, .90));
  background-clip: padding-box;
}

.zito-glass::-webkit-scrollbar-corner,
.zito-glass *::-webkit-scrollbar-corner {
  background: transparent;
}

/* Keep lesson scrollbars inside their panes without changing Persian content flow. */
.zito-glass-app .phone-shell.mode-lesson :is(.lesson-dock, .planet-stage) {
  direction: ltr;
  scrollbar-gutter: stable;
  background-clip: border-box !important;
}

.zito-glass-app .phone-shell.mode-lesson :is(.lesson-dock, .planet-stage) > * {
  direction: rtl;
}

/* Large panes: the true liquid-glass layer. */
.zito-glass :is(
  .topbar,
  .top,
  .hero,
  .planet-stage,
  .lesson-dock,
  .composer,
  .modal-chat,
  .phone-card,
  .intro-content,
  .course-hero,
  .toolbar,
  .card,
  .empty,
  .certificate
) {
  border-color: var(--zito-liquid-edge) !important;
  outline: 1px solid var(--zito-liquid-edge-tint);
  outline-offset: -1px;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 37%),
    radial-gradient(105% 80% at 100% 100%, rgba(144, 185, 222, .15), transparent 60%),
    var(--zito-liquid-surface) !important;
  background-clip: padding-box !important;
  box-shadow: var(--zito-liquid-shadow) !important;
}

.zito-glass :is(.modal-chat, .phone-card, .intro-content, .course-hero, .certificate) {
  background:
    linear-gradient(118deg, rgba(255, 255, 255, .54), rgba(255, 255, 255, 0) 38%),
    radial-gradient(96% 78% at 94% 100%, rgba(139, 188, 218, .18), transparent 63%),
    var(--zito-liquid-surface-strong) !important;
  box-shadow: var(--zito-liquid-shadow-raised) !important;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .zito-glass :is(
    .topbar,
    .top,
    .hero,
    .planet-stage,
    .lesson-dock,
    .composer,
    .modal-chat,
    .phone-card,
    .intro-content,
    .course-hero,
    .toolbar,
    .card,
    .empty,
    .certificate
  ) {
    -webkit-backdrop-filter: blur(30px) saturate(145%) brightness(1.05);
    backdrop-filter: blur(30px) saturate(145%) brightness(1.05);
  }
}

/* Small cards, chat messages, and path nodes get the same material at lower cost. */
.zito-glass :is(
  .bot,
  .typing,
  .coach-bubble,
  .course-option,
  .path-module,
  .module-stage-focus,
  .module-stage-map,
  .content-block,
  .content-card,
  .stage-activity,
  .final-exam-intro,
  .final-exam-question,
  .final-exam-feedback,
  .final-exam-feedback-list li,
  .answer,
  .badge,
  .fact,
  .verification,
  .course-fact,
  .outcome,
  .module-objectives span,
  .coach-input-row,
  .coaching-actions,
  .modal-form,
  .profile-form,
  .course-empty,
  .coach-source-note,
  .learning-path,
  .course-catalog,
  .module-stage-overview
) {
  border-color: rgba(255, 255, 255, .61) !important;
  outline: 1px solid var(--zito-liquid-edge-soft);
  outline-offset: -1px;
  background:
    linear-gradient(122deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 42%),
    var(--zito-liquid-surface-soft) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78), inset 0 -1px 0 rgba(125, 100, 180, .05) !important;
}

.zito-glass :is(.bot, .typing, .coach-bubble) {
  -webkit-backdrop-filter: blur(14px) saturate(128%);
  backdrop-filter: blur(14px) saturate(128%);
}

.zito-glass :is(.bot, .typing, .coach-bubble, .content-block, .content-card, .answer, .fact, .course-fact, .outcome) {
  color: #403950;
}

/* Text entry is a clear, reflective liquid pane instead of a flat field. */
.zito-glass :is(input, textarea, select, .phone-input, .coach-input-row input, .final-exam-question textarea) {
  border-color: rgba(255, 255, 255, .78) !important;
  outline: 1px solid rgba(126, 102, 176, .18);
  outline-offset: -1px;
  background:
    linear-gradient(123deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, 0) 41%),
    var(--zito-liquid-input) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .93), inset 0 -1px 0 rgba(127, 104, 181, .06), 0 7px 18px rgba(89, 74, 132, .05) !important;
  -webkit-backdrop-filter: blur(14px) saturate(128%);
  backdrop-filter: blur(14px) saturate(128%);
}

.zito-glass :is(input, textarea, select, .phone-input, .coach-input-row input, .final-exam-question textarea):focus {
  border-color: rgba(255, 255, 255, .96) !important;
  outline-color: rgba(81, 166, 196, .64);
  box-shadow: 0 0 0 4px rgba(77, 166, 198, .15), 0 13px 28px rgba(106, 84, 164, .12), inset 0 1px 0 rgba(255, 255, 255, .96) !important;
}

/* The user message remains readable but becomes a tinted liquid capsule. */
.zito-glass-app .user {
  border: 1px solid rgba(255, 255, 255, .58);
  outline: 1px solid rgba(96, 103, 194, .20);
  outline-offset: -1px;
  background:
    radial-gradient(105% 140% at 20% -32%, rgba(255, 255, 255, .48), transparent 48%),
    linear-gradient(135deg, rgba(159, 120, 222, .94), rgba(112, 100, 204, .94) 52%, rgba(74, 166, 191, .92)) !important;
  box-shadow: 0 14px 28px rgba(94, 79, 171, .24), inset 0 1px 0 rgba(255, 255, 255, .40) !important;
}

/* Landing controls are deliberately visible, matching Zito's icon colors. */
.zito-glass-landing .chat-bubble {
  --bubble-fill: rgba(255, 253, 252, .62);
  border-color: rgba(255, 255, 255, .80);
  outline: 1px solid rgba(139, 104, 181, .25);
  outline-offset: -1px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .57), rgba(255, 255, 255, 0) 39%),
    radial-gradient(92% 90% at 96% 100%, rgba(111, 187, 208, .19), transparent 65%),
    linear-gradient(135deg, rgba(255, 255, 255, .73), rgba(255, 246, 244, .43) 56%, rgba(224, 239, 255, .36)) !important;
  box-shadow: var(--zito-liquid-shadow-raised);
  -webkit-backdrop-filter: blur(28px) saturate(150%) brightness(1.06);
  backdrop-filter: blur(28px) saturate(150%) brightness(1.06);
}

.zito-glass-landing .intro-content {
  max-width: min(720px, 100%);
  padding: clamp(22px, 4vw, 38px);
  border-radius: 30px;
}

.zito-glass-landing .sound-toggle {
  border-color: rgba(255, 255, 255, .74);
  outline: 1px solid rgba(139, 108, 174, .22);
  outline-offset: -1px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .66), rgba(227, 242, 255, .37)) !important;
  box-shadow: 0 12px 30px rgba(81, 64, 123, .14), inset 0 1px 0 rgba(255, 255, 255, .90);
  -webkit-backdrop-filter: blur(20px) saturate(142%);
  backdrop-filter: blur(20px) saturate(142%);
}

/* The sign-in flow is a small Zito liquid-glass device, not a plain modal. */
.zito-glass-landing .phone-modal {
  padding: 24px;
  background:
    radial-gradient(ellipse at 18% 16%, rgba(91, 174, 198, .20), transparent 38%),
    radial-gradient(ellipse at 86% 84%, rgba(155, 107, 210, .22), transparent 42%),
    rgba(53, 44, 80, .31) !important;
  -webkit-backdrop-filter: blur(12px) saturate(118%);
  backdrop-filter: blur(12px) saturate(118%);
}

.zito-glass-landing .phone-card {
  position: relative;
  isolation: isolate;
  width: min(390px, 100%);
  overflow: hidden;
  padding: 22px 22px 24px;
  border-color: rgba(255, 255, 255, .82) !important;
  border-radius: 35px;
  outline: 1px solid rgba(123, 98, 180, .30);
  outline-offset: -1px;
  background:
    linear-gradient(114deg, rgba(255, 255, 255, .56), rgba(255, 255, 255, 0) 39%),
    radial-gradient(105% 76% at 100% 100%, rgba(78, 176, 198, .23), transparent 64%),
    radial-gradient(90% 65% at 8% 7%, rgba(182, 130, 223, .28), transparent 66%),
    linear-gradient(145deg, rgba(255, 255, 255, .80), rgba(255, 244, 244, .52) 54%, rgba(218, 234, 252, .45)) !important;
  box-shadow: 0 38px 94px rgba(42, 32, 71, .29), 0 12px 30px rgba(66, 150, 186, .15), inset 0 1px 0 rgba(255, 255, 255, .98), inset 0 -1px 0 rgba(113, 85, 171, .10) !important;
  -webkit-backdrop-filter: blur(34px) saturate(152%) brightness(1.07);
  backdrop-filter: blur(34px) saturate(152%) brightness(1.07);
}

.zito-glass-landing .phone-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 1px;
  right: 7%;
  left: 7%;
  height: 33%;
  border-radius: 0 0 46% 46%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.zito-glass-landing .phone-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -30%;
  bottom: -44%;
  width: 86%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .40);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(91, 171, 197, .06), 0 0 0 52px rgba(153, 110, 207, .045);
  pointer-events: none;
}

.zito-glass-landing .phone-card > * {
  position: relative;
  z-index: 1;
}

.zito-glass-landing .phone-card-visual {
  width: 104px;
  height: 112px;
  display: grid;
  place-items: end center;
  margin: -4px auto 5px;
  border: 1px solid rgba(255, 255, 255, .66);
  border-radius: 34px 34px 26px 26px;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, .68), rgba(255, 255, 255, 0) 48%),
    linear-gradient(145deg, rgba(171, 125, 221, .23), rgba(87, 177, 198, .16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78), 0 12px 24px rgba(96, 76, 157, .11);
}

.zito-glass-landing .phone-card-visual img {
  width: 92px;
  height: 105px;
  display: block;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 10px 14px rgba(62, 45, 112, .22));
}

.zito-glass-landing .phone-title {
  margin-bottom: 5px;
  color: #393553;
  font-size: 22px;
  letter-spacing: 0;
}

.zito-glass-landing .phone-copy {
  max-width: 290px;
  margin: 0 auto 17px;
  color: #71677d;
  line-height: 1.95;
}

.zito-glass-landing .phone-form {
  gap: 12px;
}

.zito-glass-landing .phone-field {
  gap: 6px;
}

.zito-glass-landing .phone-field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.zito-glass-landing .phone-edit-link {
  min-height: 27px;
  margin: 0;
  padding: 3px 9px;
  border: 1px solid rgba(128, 103, 180, .20);
  border-radius: 999px;
  background: rgba(255, 255, 255, .38);
  color: #6c5f85;
  font-family: var(--font-fa);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.zito-glass-landing .phone-edit-link:hover {
  transform: translateY(-1px);
  border-color: rgba(93, 157, 190, .36);
  background: rgba(255, 255, 255, .66);
}

.zito-glass-landing .phone-form[data-step="otp"] .phone-input[readonly] {
  color: #716780 !important;
  border-color: rgba(255, 255, 255, .56) !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, .36), rgba(232, 237, 250, .28)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72) !important;
  cursor: default;
}

.zito-glass-landing .phone-input {
  height: 52px;
  border-radius: 18px;
}

.zito-glass-landing .phone-submit {
  height: 52px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.zito-glass-landing .phone-submit-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.zito-glass-landing .phone-action-slot {
  min-height: 52px;
}

.zito-glass-landing .phone-form[data-step="otp"] .phone-action-slot {
  display: none;
}

.zito-glass-landing .phone-submit[hidden] {
  display: none !important;
}

.zito-glass-landing .otp-entry {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-areas: "confirm code";
  align-items: stretch;
  gap: 9px;
  min-height: 52px;
  width: min(100%, 356px);
  margin-top: clamp(22px, 3.6vh, 34px);
  margin-right: auto;
  margin-left: 0;
  direction: ltr;
  animation: zito-otp-entry .24s cubic-bezier(.2, .78, .2, 1) both;
}

.zito-glass-landing .otp-entry[hidden] {
  display: none !important;
}

.zito-glass-landing .otp-entry .phone-input {
  grid-area: code;
  min-width: 0;
  height: 52px;
  padding-inline: 18px;
  direction: ltr;
  text-align: center;
  letter-spacing: .28em;
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 800;
}

.zito-glass-landing .otp-confirm {
  grid-area: confirm;
  width: 48px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(140deg, #8063c6, #54a9b8);
  box-shadow: 0 10px 22px rgba(87, 98, 180, .25), inset 0 1px 0 rgba(255, 255, 255, .44);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.zito-glass-landing .otp-confirm:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.025);
  filter: brightness(1.05);
  box-shadow: 0 14px 28px rgba(87, 98, 180, .33), inset 0 1px 0 rgba(255, 255, 255, .58);
}

.zito-glass-landing .otp-confirm:disabled {
  cursor: wait;
  opacity: .62;
}

.zito-glass-landing .otp-confirm svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

@keyframes zito-otp-entry {
  from { opacity: 0; transform: translateY(5px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .zito-glass-landing .otp-entry { animation: none; }
}

.zito-glass-landing :is(.phone-helper, .phone-error) {
  margin-top: 10px;
}

.zito-glass-landing .phone-link {
  color: #685d7c;
}

.zito-glass-landing :is(.chat-name, .chat-text, .phone-title) {
  color: #38344f;
}

.zito-glass-landing :is(.phone-copy, .phone-field label, .phone-helper) {
  color: #756d82;
}

/* Primary actions use a glossy liquid capsule, not a flat gradient. */
.zito-glass :is(
  .cta,
  .intro-action,
  .phone-submit,
  .composer button,
  .coach-input-row button,
  .modal-form button[type="submit"],
  .profile-form button[type="submit"],
  .stage-complete-button,
  .final-exam-primary,
  .final-exam-open-button,
  .primary,
  .print-button,
  .card button[type="submit"]
) {
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .48) !important;
  outline: 1px solid rgba(88, 101, 190, .22);
  outline-offset: -1px;
  background: var(--zito-liquid-action) !important;
  box-shadow: 0 16px 30px rgba(95, 80, 177, .25), inset 0 1px 0 rgba(255, 255, 255, .46), inset 0 -2px 0 rgba(54, 75, 153, .13) !important;
}

.zito-glass :is(
  .cta,
  .intro-action,
  .phone-submit,
  .composer button,
  .coach-input-row button,
  .modal-form button[type="submit"],
  .profile-form button[type="submit"],
  .stage-complete-button,
  .final-exam-primary,
  .final-exam-open-button,
  .primary,
  .print-button,
  .card button[type="submit"]
):hover:not(:disabled) {
  box-shadow: 0 20px 36px rgba(95, 80, 177, .31), inset 0 1px 0 rgba(255, 255, 255, .56), inset 0 -2px 0 rgba(54, 75, 153, .13) !important;
}

/* Login actions stay deliberate: one clear primary action, quiet utility controls. */
.zito-glass-landing .phone-submit {
  width: 100%;
  padding: 0 18px;
  border: 1px solid rgba(74, 94, 156, .34) !important;
  border-radius: 16px;
  outline: none !important;
  color: #fff !important;
  background: linear-gradient(135deg, #665eaa 0%, #4e91a8 100%) !important;
  box-shadow: 0 8px 18px rgba(77, 85, 151, .19), inset 0 1px 0 rgba(255, 255, 255, .28) !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.zito-glass-landing .phone-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #5f57a0 0%, #47889f 100%) !important;
  box-shadow: 0 11px 22px rgba(77, 85, 151, .23), inset 0 1px 0 rgba(255, 255, 255, .32) !important;
}

.zito-glass-landing .phone-submit:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 5px 12px rgba(77, 85, 151, .18), inset 0 1px 0 rgba(255, 255, 255, .24) !important;
}

.zito-glass-landing :is(.phone-submit, .otp-confirm, .phone-edit-link, .phone-link):focus-visible {
  outline: 3px solid rgba(81, 146, 181, .28) !important;
  outline-offset: 3px;
}

.zito-glass-landing .phone-submit:disabled {
  opacity: .58;
  box-shadow: none !important;
}

.zito-glass-landing .phone-edit-link {
  min-height: auto;
  padding: 1px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #5f5a91;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(95, 90, 145, .35);
  text-underline-offset: 3px;
}

.zito-glass-landing .phone-edit-link:hover {
  transform: none;
  border-color: transparent;
  background: transparent;
  color: #477e9f;
  text-decoration-color: currentColor;
}

.zito-glass-landing .otp-confirm {
  border: 1px solid rgba(74, 94, 156, .30);
  border-radius: 16px;
  background: #5c689e;
  box-shadow: 0 6px 14px rgba(77, 85, 151, .16), inset 0 1px 0 rgba(255, 255, 255, .24);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.zito-glass-landing .otp-confirm:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: none;
  background: #526092;
  box-shadow: 0 9px 18px rgba(77, 85, 151, .20), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.zito-glass-landing .otp-confirm:active:not(:disabled) {
  transform: translateY(0);
}

.zito-glass-landing .phone-link {
  width: max-content;
  margin: 10px auto 0;
  padding: 2px 0;
  color: #625d8b;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(98, 93, 139, .32);
  text-underline-offset: 4px;
}

.zito-glass-landing .phone-link:hover:not(:disabled) {
  color: #477e9f;
  text-decoration-color: currentColor;
}

/* Chat composer: one calm liquid surface, with the message field living inside it. */
.zito-glass-app .phone-shell.mode-onboarding {
  gap: 10px;
}

.zito-glass-app .phone-shell.mode-onboarding .hero {
  border-color: rgba(255, 255, 255, .78) !important;
  outline-color: rgba(112, 102, 170, .20) !important;
  background:
    radial-gradient(100% 82% at 94% 100%, rgba(107, 177, 203, .16), transparent 64%),
    radial-gradient(76% 58% at 15% 6%, rgba(178, 138, 217, .15), transparent 68%),
    linear-gradient(138deg, rgba(255, 255, 255, .54), rgba(250, 244, 250, .38) 52%, rgba(225, 239, 249, .48)) !important;
  box-shadow: 0 20px 46px rgba(77, 67, 121, .10), 0 6px 18px rgba(67, 152, 189, .06), inset 0 1px 0 rgba(255, 255, 255, .92), inset 0 -1px 0 rgba(104, 100, 157, .06) !important;
}

.zito-glass-app .phone-shell.mode-onboarding .hero::before {
  width: 310px;
  height: 310px;
  top: 34%;
  background: radial-gradient(circle, rgba(134, 142, 217, .19), rgba(104, 184, 195, .08) 40%, transparent 69%);
  opacity: .78;
}

.zito-glass-app .composer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 7px !important;
  border-radius: 25px !important;
  border-color: rgba(255, 255, 255, .82) !important;
  outline-color: rgba(97, 112, 172, .24) !important;
  background:
    linear-gradient(128deg, rgba(232, 242, 250, .78), rgba(247, 241, 250, .62) 54%, rgba(226, 236, 252, .72)),
    radial-gradient(80% 150% at 5% 105%, rgba(91, 171, 191, .13), transparent 60%) !important;
  box-shadow: 0 14px 30px rgba(77, 67, 121, .12), 0 4px 12px rgba(67, 152, 189, .07), inset 0 1px 0 rgba(255, 255, 255, .94), inset 0 -1px 0 rgba(104, 100, 157, .07) !important;
  -webkit-backdrop-filter: blur(22px) saturate(132%);
  backdrop-filter: blur(22px) saturate(132%);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.zito-glass-app .composer::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 12%;
  width: 34%;
  height: 34%;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0));
  filter: blur(8px);
  pointer-events: none;
}

.zito-glass-app .composer:focus-within {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 0 0 3px rgba(82, 165, 188, .14), 0 17px 34px rgba(77, 67, 121, .15), inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 -1px 0 rgba(104, 100, 157, .06) !important;
}

.zito-glass-app .composer form {
  position: relative;
  min-height: 74px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-areas:
    "entry entry"
    "send hint";
  align-items: end;
  gap: 2px 9px;
  margin: 0;
  padding: 4px 7px 4px 11px;
  border: 0;
  border-radius: 21px;
  background: transparent;
  box-shadow: none;
  direction: ltr;
}

.zito-glass-app .composer textarea#answer {
  grid-area: entry;
  width: 100%;
  min-height: 38px;
  max-height: 116px;
  margin: 0;
  padding: 3px 4px 1px;
  overflow-y: hidden;
  resize: none;
  direction: rtl;
  text-align: right;
  color: #3e3953 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.75;
}

.zito-glass-app .composer textarea#answer::placeholder {
  color: #827990;
  opacity: .9;
}

.zito-glass-app .composer textarea#answer:focus {
  background: transparent !important;
  box-shadow: none !important;
}

.zito-glass-app .composer button#send {
  grid-area: send;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50% !important;
  background:
    linear-gradient(135deg, #7165b9, #5b9fac) !important;
  box-shadow: 0 7px 15px rgba(82, 74, 154, .23), inset 0 1px 0 rgba(255, 255, 255, .35) !important;
}

.zito-glass-app .composer .send-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  filter: drop-shadow(0 1px 1px rgba(43, 54, 128, .18));
  transform: translateY(-1px);
}

.zito-glass-app .composer button#send:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.025);
  box-shadow: 0 14px 25px rgba(92, 83, 175, .33), inset 0 1px 0 rgba(255, 255, 255, .62), inset 0 -2px 0 rgba(43, 100, 145, .13) !important;
}

.zito-glass-app .composer .hint {
  display: none;
}

.zito-glass-app .composer button#send:disabled {
  opacity: 1;
  border-color: rgba(255, 255, 255, .56) !important;
  background: rgba(119, 132, 171, .22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .46) !important;
}

.zito-glass-app .composer button#send:disabled .send-icon {
  stroke: rgba(76, 77, 107, .63);
}

/* Study-time choices remain direct, legible liquid controls instead of free text. */
.zito-glass-app .profile-choice-set {
  gap: 9px;
  max-width: 100%;
  padding: 2px 1px 12px;
}

.zito-glass-app .profile-choice {
  color: #4a4059;
  border-color: rgba(255, 255, 255, .72);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .65), rgba(236, 232, 251, .47));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88), 0 9px 20px rgba(91, 75, 145, .10);
  -webkit-backdrop-filter: blur(14px) saturate(122%);
  backdrop-filter: blur(14px) saturate(122%);
}

.zito-glass-app .profile-choice:hover:not(:disabled) {
  color: #413650;
  border-color: rgba(104, 169, 194, .66);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .81), rgba(220, 239, 247, .62));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .96), 0 12px 24px rgba(79, 113, 170, .15);
}

.zito-glass-app .profile-choice.is-selected {
  color: #fff;
  border-color: rgba(255, 255, 255, .68);
  background: linear-gradient(135deg, #7965bf, #5da9b9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .36), 0 11px 22px rgba(83, 83, 169, .24);
}

.zito-glass-app .phone-shell.mode-onboarding.profile-choice-step {
  grid-template-rows: auto minmax(520px, 1fr);
  grid-template-areas:
    "topbar"
    "hero";
}

.zito-glass-app .phone-shell.mode-onboarding.profile-choice-step .composer {
  display: none;
}

/* Course selection uses one coherent glass canvas, not a stack of nested cards. */
.zito-glass-app .phone-shell.mode-planet {
  position: relative;
  isolation: isolate;
  gap: 10px;
}

.zito-glass-app .phone-shell.mode-planet::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 58% 52% at 12% 22%, rgba(218, 134, 192, .54), transparent 72%),
    radial-gradient(ellipse 55% 54% at 88% 80%, rgba(83, 189, 207, .45), transparent 70%),
    radial-gradient(ellipse 48% 45% at 82% 10%, rgba(171, 135, 219, .38), transparent 72%),
    linear-gradient(136deg, #f4c8dc 0%, #ebc7e2 43%, #c9d9ed 72%, #b9e4e9 100%);
}

.zito-glass-app .phone-shell.mode-planet > * {
  position: relative;
  z-index: 1;
}

.zito-glass-app .phone-shell .topbar {
  min-height: 68px;
  padding: 9px 13px !important;
  border-color: rgba(255, 255, 255, .67) !important;
  outline-color: rgba(255, 255, 255, .27) !important;
  border-radius: 24px !important;
  background: linear-gradient(130deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .12)) !important;
  box-shadow: 0 12px 30px rgba(121, 88, 151, .14), inset 0 1px 0 rgba(255, 255, 255, .68) !important;
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  backdrop-filter: blur(24px) saturate(130%);
}

.zito-glass-app .phone-shell .topbar .mark {
  border: 1px solid rgba(255, 255, 255, .48);
  background: linear-gradient(135deg, rgba(255, 255, 255, .30), rgba(232, 232, 251, .15)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .62), 0 7px 16px rgba(101, 76, 148, .10) !important;
}

/* New Z stays optically centered within the learning header's square mark. */
.zito-glass-app .phone-shell .topbar .mark img {
  width: 30px !important;
  height: 34px !important;
  max-width: none;
  margin: 0;
  object-fit: contain;
}

.zito-glass-app .phone-shell .topbar .mark::after {
  border-color: rgba(255, 255, 255, .36) !important;
}

.zito-glass-app .phone-shell .topbar .status-pill {
  min-width: 110px;
  padding: 9px 14px;
  color: #514962 !important;
  border: 1px solid rgba(255, 255, 255, .60) !important;
  background: rgba(255, 255, 255, .22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .68), 0 6px 14px rgba(95, 75, 135, .07) !important;
  -webkit-backdrop-filter: blur(14px) saturate(122%);
  backdrop-filter: blur(14px) saturate(122%);
}

.zito-glass-app .phone-shell.mode-planet .planet-stage {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, .70) !important;
  outline: 1px solid rgba(255, 255, 255, .27) !important;
  outline-offset: -1px;
  border-radius: 38px !important;
  background:
    linear-gradient(126deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, .13) 55%, rgba(243, 252, 255, .20)) !important;
  box-shadow: 0 28px 58px rgba(127, 78, 137, .18), 0 7px 20px rgba(57, 145, 170, .11), inset 0 1px 0 rgba(255, 255, 255, .73), inset 0 -1px 0 rgba(255, 255, 255, .16) !important;
  -webkit-backdrop-filter: blur(35px) saturate(137%) brightness(1.05);
  backdrop-filter: blur(35px) saturate(137%) brightness(1.05);
}

.zito-glass-app .phone-shell.mode-planet .planet-stage::before {
  inset: 0;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, .30), rgba(255, 255, 255, 0) 38%),
    linear-gradient(315deg, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .12));
  opacity: 1;
  animation: none;
}

.zito-glass-app .phone-shell.mode-planet .planet-card {
  width: min(488px, 100%);
  text-align: right;
}

.zito-glass-app .phone-shell.mode-planet .course-coach {
  margin: 0 0 24px;
}

.zito-glass-app .phone-shell.mode-planet .coach-bubble {
  padding: 14px 17px;
  border-color: rgba(255, 255, 255, .60) !important;
  outline-color: rgba(255, 255, 255, .20) !important;
  border-radius: 20px 20px 7px 20px;
  background:
    linear-gradient(124deg, rgba(255, 255, 255, .36), rgba(255, 255, 255, 0) 45%),
    rgba(255, 255, 255, .16) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .70), 0 10px 24px rgba(107, 70, 132, .08) !important;
  -webkit-backdrop-filter: blur(18px) saturate(128%);
  backdrop-filter: blur(18px) saturate(128%);
}

.zito-glass-app .phone-shell.mode-planet .course-catalog {
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center;
}

.zito-glass-app .phone-shell.mode-planet .course-catalog .section-kicker {
  margin-bottom: 9px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .61);
}

.zito-glass-app .phone-shell.mode-planet .planet-title {
  margin-bottom: 9px;
  color: #403950;
  font-size: clamp(24px, 3vw, 29px);
  line-height: 1.45;
}

.zito-glass-app .phone-shell.mode-planet .planet-copy {
  max-width: 390px;
  margin-bottom: 20px;
  color: #625c72;
}

.zito-glass-app .phone-shell.mode-planet .course-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 390px);
  margin: 20px auto 0;
  gap: 18px;
}

.zito-glass-app .phone-shell.mode-planet .course-option {
  --course-a: rgba(196, 152, 234, .42);
  --course-b: rgba(102, 178, 213, .38);
  position: relative;
  isolation: isolate;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  width: 100%;
  min-height: 0;
  aspect-ratio: 1;
  padding: 20px 14px 18px;
  gap: 8px;
  overflow: hidden;
  text-align: center;
  color: #433956;
  border-color: rgba(255, 255, 255, .78) !important;
  outline: 1px solid rgba(255, 255, 255, .30);
  outline-offset: -1px;
  border-radius: 50%;
  background:
    radial-gradient(68% 64% at 75% 76%, var(--course-b), transparent 72%),
    radial-gradient(68% 72% at 23% 20%, rgba(255, 255, 255, .84), transparent 69%),
    linear-gradient(140deg, rgba(255, 255, 255, .54), var(--course-a)) !important;
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .84), inset -15px -18px 28px rgba(75, 55, 117, .10), 0 18px 30px rgba(83, 58, 110, .15), 0 6px 13px rgba(95, 175, 201, .11) !important;
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  backdrop-filter: blur(20px) saturate(135%);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  animation: zito-course-orb-float 6.4s ease-in-out infinite;
}

.zito-glass-app .phone-shell.mode-planet .course-option::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 7%;
  right: 16%;
  width: 52%;
  height: 28%;
  border-radius: 50%;
  opacity: .86;
  background: linear-gradient(145deg, rgba(255, 255, 255, .80), rgba(255, 255, 255, 0));
  filter: blur(2px);
  transform: rotate(-22deg);
}

.zito-glass-app .phone-shell.mode-planet .course-option::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 15%;
  bottom: -15%;
  left: 15%;
  height: 34%;
  border-radius: 50%;
  background: var(--course-b);
  filter: blur(22px);
  opacity: .58;
}

.zito-glass-app .phone-shell.mode-planet .course-option--marketing {
  --course-a: rgba(116, 202, 226, .38);
  --course-b: rgba(116, 114, 212, .43);
}

.zito-glass-app .phone-shell.mode-planet .course-option--personal-development {
  --course-a: rgba(232, 156, 207, .40);
  --course-b: rgba(121, 162, 221, .42);
  animation-delay: -3.2s;
}

.zito-glass-app .phone-shell.mode-planet .course-option--personal-development .course-orb-art {
  position: relative;
  top: -7px;
  left: -7px;
  animation-delay: -1.7s;
}

.zito-glass-app .phone-shell.mode-planet .course-option:hover:not(:disabled) {
  animation: none;
  transform: translateY(-5px) scale(1.018);
  border-color: rgba(255, 255, 255, .96) !important;
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .92), inset -15px -18px 28px rgba(75, 55, 117, .08), 0 25px 38px rgba(85, 62, 128, .21), 0 8px 15px rgba(81, 175, 200, .16) !important;
}

.zito-glass-app .phone-shell.mode-planet .course-option:focus-visible {
  outline: 3px solid rgba(81, 166, 196, .44);
  outline-offset: 2px;
}

.zito-glass-app .phone-shell.mode-planet .course-option:disabled {
  cursor: wait;
  opacity: .72;
}

.zito-glass-app .phone-shell.mode-planet .course-orb-art {
  display: grid;
  flex: none;
  place-items: center;
  align-self: end;
  width: 76px;
  height: 76px;
  padding: 8px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .68), 0 8px 18px rgba(83, 63, 124, .10);
  animation: zito-course-art-float 4.8s ease-in-out infinite;
}

.zito-glass-app .phone-shell.mode-planet .course-orb-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 11px rgba(60, 46, 101, .23));
}

.zito-glass-app .phone-shell.mode-planet .course-option-copy {
  position: relative;
  z-index: 1;
  align-self: start;
  min-width: 0;
  max-width: 100%;
  padding: 0 4px;
}

.zito-glass-app .phone-shell.mode-planet .course-option-copy strong {
  display: block;
  color: #413652;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
  text-wrap: balance;
}

.zito-glass-app .phone-shell.mode-planet .course-option-copy span {
  display: none;
}

@keyframes zito-course-orb-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes zito-course-art-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(-1.5deg); }
}

/* A growing catalog stays inside the course-picker pane instead of escaping it. */
.zito-glass-app .phone-shell.mode-planet .planet-stage {
  display: block;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: clamp(20px, 4vw, 34px) clamp(14px, 4vw, 28px);
}

.zito-glass-app .phone-shell.mode-planet .planet-card {
  width: min(620px, 100%);
  margin: 0 auto;
  padding: 4px 0 24px;
}

.zito-glass-app .phone-shell.mode-planet .course-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 148px), 1fr));
  width: min(100%, 620px);
  gap: 23px 20px;
  padding: 7px 5px 22px;
}

.zito-glass-app .phone-shell.mode-planet .course-option {
  --orbit-offset: 0px;
  justify-self: center;
  width: min(100%, 184px);
}

.zito-glass-app .phone-shell.mode-planet .course-option:nth-child(3n + 2) {
  --orbit-offset: 9px;
  animation-delay: -2.1s;
}

.zito-glass-app .phone-shell.mode-planet .course-option:nth-child(3n) {
  --orbit-offset: -5px;
  animation-delay: -4.2s;
}

.zito-glass-app .phone-shell.mode-planet .course-option-copy strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.55;
}

@keyframes zito-course-orb-float {
  0%, 100% { transform: translateY(var(--orbit-offset, 0px)); }
  50% { transform: translateY(calc(var(--orbit-offset, 0px) - 5px)); }
}

@media (max-width: 460px) {
  .zito-glass-app .phone-shell.mode-planet .planet-stage { padding-inline: 12px; }
  .zito-glass-app .phone-shell.mode-planet .course-list { gap: 18px 12px; }
  .zito-glass-app .phone-shell.mode-planet .course-option { width: min(100%, 164px); padding: 16px 10px 14px; }
  .zito-glass-app .phone-shell.mode-planet .course-orb-art { width: 66px; height: 66px; }
}

/* Secondary buttons become calm translucent controls. */
.zito-glass :is(.modal-close, .final-exam-retry, .coaching-actions button, button.ghost) {
  border-color: rgba(255, 255, 255, .70) !important;
  outline: 1px solid rgba(126, 102, 176, .16);
  outline-offset: -1px;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 45%),
    var(--zito-liquid-surface-soft) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .80), 0 8px 18px rgba(85, 69, 130, .07) !important;
}

/* Coaching has two deliberate actions: ask is supportive, continue is unmistakably primary. */
.zito-glass-app .coach-input-row,
.zito-glass-app .coaching-actions {
  border: 0 !important;
  background: transparent !important;
}

.zito-glass-app .coach-input-row input {
  color: #3e3953 !important;
  border-color: rgba(121, 101, 169, .26) !important;
  background: rgba(255, 255, 255, .70) !important;
}

.zito-glass-app .coach-input-row input::placeholder {
  color: #847a92;
}

.zito-glass-app .coach-input-row button {
  min-width: 80px;
  color: #fff !important;
  border-color: rgba(255, 255, 255, .52) !important;
  background: linear-gradient(135deg, #7469bd, #5ca5b6) !important;
  box-shadow: 0 8px 17px rgba(82, 74, 154, .22), inset 0 1px 0 rgba(255, 255, 255, .34) !important;
}

.zito-glass-app .coaching-actions span {
  color: #625b72 !important;
  font-weight: 700;
}

.zito-glass-app #coachContinue {
  display: inline-flex;
  min-width: 144px;
  max-width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  color: #564867 !important;
  border: 1px solid rgba(255, 255, 255, .68) !important;
  outline: 1px solid rgba(108, 89, 156, .16);
  outline-offset: -1px;
  background: linear-gradient(128deg, rgba(255, 255, 255, .62), rgba(229, 244, 249, .38)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .84), 0 5px 12px rgba(87, 70, 126, .08) !important;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.zito-glass-app #coachContinue:hover:not(:disabled) {
  transform: translateY(-1px);
  color: #493b5d !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92), 0 8px 16px rgba(87, 70, 126, .13) !important;
}

.zito-glass-app #coachContinue span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zito-glass-app .coach-continue-icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.zito-glass-app #coachContinue:focus-visible,
.zito-glass-app .coach-input-row button:focus-visible {
  outline: 3px solid rgba(73, 169, 194, .44);
  outline-offset: 2px;
}

/* The coach question box follows the same single-surface interaction as modern chat. */
.zito-glass-app .coach-input-row {
  margin: 0 14px 10px;
  min-height: 88px;
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-areas:
    "entry entry"
    "send .";
  align-items: end;
  gap: 5px 10px;
  padding: 8px 12px 9px !important;
  border: 1px solid rgba(255, 255, 255, .68) !important;
  border-radius: 20px;
  background:
    linear-gradient(122deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .08) 58%),
    rgba(235, 237, 249, .42) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .76), inset 0 -1px 0 rgba(109, 92, 158, .06), 0 7px 15px rgba(78, 67, 123, .07) !important;
  -webkit-backdrop-filter: blur(18px) saturate(128%);
  backdrop-filter: blur(18px) saturate(128%);
  direction: ltr;
}

.zito-glass-app .coach-input-row[hidden] {
  display: none !important;
}

.zito-glass-app .coach-input-row textarea#coachInput {
  grid-area: entry;
  width: 100%;
  min-height: 44px;
  max-height: 108px;
  margin: 0;
  padding: 5px 2px 1px;
  overflow-y: hidden;
  resize: none;
  direction: rtl;
  text-align: right;
  color: #3e3953 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.85;
}

.zito-glass-app .coach-input-row textarea#coachInput::placeholder {
  color: #847a92;
}

.zito-glass-app .coach-input-row button#coachSend {
  grid-area: send;
  min-width: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50% !important;
  font-size: 0;
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}

.zito-glass-app .coach-input-row .coach-send-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  filter: drop-shadow(0 1px 1px rgba(43, 54, 128, .18));
  transform: translateY(-1px);
}

.zito-glass-app .coach-input-row button#coachSend:not(:disabled):hover {
  transform: translateY(-1px) scale(1.03);
}

.zito-glass-app .coach-input-row button#coachSend:disabled {
  opacity: .42;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35) !important;
}

.zito-glass-app .coach-input-row button#coachSend.is-loading .coach-send-icon {
  opacity: 0;
}

.zito-glass-app .coach-input-row button#coachSend.is-loading::after {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, .46);
  border-top-color: #fff;
  border-radius: 50%;
  animation: zito-coach-spin .72s linear infinite;
}

.zito-glass-app .coaching-modal .modal-chat {
  grid-template-rows: auto minmax(180px, 1fr) auto auto;
}

.zito-glass-app .coaching-modal .modal-head {
  padding: 14px 16px;
  border-bottom-color: rgba(124, 102, 165, .12);
  background: linear-gradient(180deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, 0));
}

.zito-glass-app .coaching-modal .modal-head > div {
  min-width: 0;
}

.zito-glass-app .coaching-modal .coach-modal-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.zito-glass-app .coaching-modal .coach-modal-avatar {
  display: grid;
  flex: none;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .70);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .60), rgba(221, 234, 250, .40));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .84), 0 5px 11px rgba(83, 65, 128, .10);
}

.zito-glass-app .coaching-modal .coach-modal-avatar img {
  width: 38px;
  height: 47px;
  object-fit: contain;
  object-position: center 35%;
  filter: drop-shadow(0 5px 6px rgba(58, 48, 100, .18));
}

.zito-glass-app .coaching-modal .coach-modal-identity .subtitle {
  max-width: min(100%, 350px);
  white-space: normal;
  line-height: 1.65;
}

/* Coaching footer belongs to the modal surface instead of floating as a separate box. */
.zito-glass-app .coaching-modal .coaching-actions {
  display: grid;
  min-height: 64px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 11px 14px !important;
  border-top: 1px solid rgba(124, 102, 165, .13) !important;
  background:
    linear-gradient(122deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, .08) 58%),
    rgba(231, 237, 249, .38) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .56);
}

.zito-glass-app .coaching-modal .coaching-actions span {
  min-width: 0;
  color: #70657d !important;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.75;
}

@keyframes zito-coach-spin {
  to { transform: rotate(360deg); }
}

/* Drawers and modal backdrops use depth, so the liquid plane stays legible. */
.zito-glass :is(.answer-modal, .phone-modal) {
  background: rgba(59, 49, 88, .22) !important;
  -webkit-backdrop-filter: blur(8px) saturate(122%);
  backdrop-filter: blur(8px) saturate(122%);
}

/* Course page: preserve the editorial layout while giving its major sections glass volume. */
.zito-glass-course .topbar {
  min-height: 64px;
  padding: 7px 16px;
  border-radius: 24px;
}

.zito-glass-course .course-hero::before {
  opacity: .42;
}

.zito-glass-course :is(.course-story, .learning-map) {
  padding: clamp(19px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, .62);
  outline: 1px solid rgba(126, 102, 176, .14);
  outline-offset: -1px;
  border-radius: 24px;
  background:
    linear-gradient(124deg, rgba(255, 255, 255, .40), rgba(255, 255, 255, 0) 44%),
    linear-gradient(138deg, rgba(255, 255, 255, .42), rgba(255, 248, 245, .26) 58%, rgba(226, 239, 255, .24));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72), 0 16px 32px rgba(87, 69, 131, .07);
  -webkit-backdrop-filter: blur(18px) saturate(128%);
  backdrop-filter: blur(18px) saturate(128%);
}

.zito-glass-course .outcome {
  min-height: 100%;
}

@media (max-width: 720px) {
  .zito-glass-course .topbar {
    min-height: 58px;
    padding: 6px 12px;
    border-radius: 20px;
  }

  .zito-glass :is(
    .topbar,
    .top,
    .hero,
    .planet-stage,
    .lesson-dock,
    .composer,
    .modal-chat,
    .phone-card,
    .intro-content,
    .course-hero,
    .toolbar,
    .card,
    .empty,
    .certificate
  ) {
    -webkit-backdrop-filter: blur(18px) saturate(128%);
    backdrop-filter: blur(18px) saturate(128%);
  }

  .zito-glass-landing .chat-bubble {
    -webkit-backdrop-filter: blur(20px) saturate(136%);
    backdrop-filter: blur(20px) saturate(136%);
  }

  .zito-glass-course :is(.course-story, .learning-map) {
    padding: 18px;
    border-radius: 20px;
  }

  .zito-glass-landing .phone-card {
    width: min(382px, 100%);
    padding: 19px 18px 21px;
    border-radius: 29px;
  }

  .zito-glass-landing .phone-card-visual {
    width: 92px;
    height: 99px;
    margin-bottom: 4px;
    border-radius: 30px 30px 23px 23px;
  }

  .zito-glass-landing .phone-card-visual img {
    width: 82px;
    height: 93px;
  }
}

@media (max-width: 520px) {
  .zito-glass-landing .otp-entry {
    width: 100%;
    margin-top: 20px;
  }

  .zito-glass-app .phone-shell .topbar {
    min-height: 60px;
    padding: 7px 10px !important;
    border-radius: 20px !important;
  }

  .zito-glass-app .phone-shell .topbar .status-pill {
    min-width: 0;
    padding: 8px 10px;
    font-size: 10px;
  }

  .zito-glass-app .phone-shell.mode-planet .planet-stage {
    padding: 22px 16px;
    border-radius: 26px;
  }

  .zito-glass-app .phone-shell.mode-planet .course-coach {
    gap: 10px;
    margin-bottom: 19px;
  }

  .zito-glass-app .phone-shell.mode-planet .coach-bubble {
    padding: 11px 13px;
    border-radius: 17px 17px 6px 17px;
  }

  .zito-glass-app .phone-shell.mode-planet .planet-title {
    font-size: 24px;
  }

  .zito-glass-app .phone-shell.mode-planet .course-list {
    width: min(100%, 360px);
    gap: 14px;
  }

  .zito-glass-app .phone-shell.mode-planet .course-option {
    padding: 16px 8px 14px;
    gap: 7px;
  }

  .zito-glass-app .phone-shell.mode-planet .course-orb-art {
    width: 64px;
    height: 64px;
    padding: 7px;
  }

  .zito-glass-app .phone-shell.mode-planet .course-option-copy strong {
    font-size: 12px;
  }

  .zito-glass-app .phone-shell.mode-planet .course-option-copy span {
    font-size: 9px;
  }

}

@media print {
  .zito-glass .certificate,
  .zito-glass .fact,
  .zito-glass .verification {
    outline: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

/* Focused course workspace: one lesson canvas with a compact syllabus sidebar. */
.zito-glass-app .topbar-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.zito-glass-app .learning-sidebar-toggle,
.zito-glass-app .learning-sidebar-close {
  border: 1px solid rgba(255, 255, 255, .68);
  color: #51496a;
  background: rgba(255, 255, 255, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .76), 0 6px 14px rgba(95, 75, 135, .08);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  backdrop-filter: blur(14px) saturate(125%);
}

.zito-glass-app .learning-sidebar-toggle {
  display: none;
  width: 36px;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 900;
}

.zito-glass-app .learning-sidebar-toggle:not([hidden]) {
  display: inline-flex;
}

.zito-glass-app .learning-sidebar-toggle span {
  display: none;
}

.zito-glass-app .learning-sidebar-toggle svg,
.zito-glass-app .learning-sidebar-close svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.zito-glass-app .learning-sidebar-close {
  display: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 10px;
}

.zito-glass-app .phone-shell.mode-lesson {
  position: relative;
  isolation: isolate;
  width: min(1440px, 100%);
  height: 100svh;
  grid-template-columns: minmax(0, 1fr) clamp(248px, 20vw, 292px);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas:
    "topbar planet"
    "lesson planet";
  gap: 14px;
  padding: 14px;
}

.zito-glass-app .phone-shell.mode-lesson::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 56% 60% at 10% 14%, rgba(226, 146, 198, .48), transparent 72%),
    radial-gradient(ellipse 52% 58% at 93% 82%, rgba(90, 193, 211, .41), transparent 72%),
    radial-gradient(ellipse 44% 42% at 84% 9%, rgba(176, 142, 224, .34), transparent 74%),
    linear-gradient(136deg, #f5cadf 0%, #efcce5 42%, #d5def0 73%, #c2e8ec 100%);
}

.zito-glass-app .phone-shell.mode-lesson > * {
  position: relative;
  z-index: 1;
}

/* The lesson header uses the same calm, framed glass plane as its canvas. */
.zito-glass-app .phone-shell.mode-lesson .topbar {
  position: relative;
  min-height: 62px;
  isolation: isolate;
  overflow: hidden;
  padding: 8px 12px !important;
  border: 1px solid rgba(255, 255, 255, .74) !important;
  outline: 1px solid rgba(119, 98, 164, .12) !important;
  border-radius: 20px !important;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, .52), rgba(255, 255, 255, .12) 54%, rgba(226, 244, 249, .22)),
    rgba(243, 235, 248, .38) !important;
  box-shadow: 0 10px 24px rgba(104, 78, 137, .10), inset 0 1px 0 rgba(255, 255, 255, .82) !important;
}

.zito-glass-app .phone-shell.mode-lesson .topbar::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 1px;
  border-radius: inherit;
  background: radial-gradient(ellipse 52% 120% at 96% 0%, rgba(175, 135, 221, .18), transparent 72%);
  pointer-events: none;
}

.zito-glass-app .phone-shell.mode-lesson .topbar :is(.brand, .topbar-tools) {
  position: relative;
  z-index: 1;
}

.zito-glass-app .phone-shell.mode-lesson .topbar .subtitle {
  color: #766b84;
}

.zito-glass-app .phone-shell.mode-lesson .topbar .status-pill {
  min-width: 0;
  max-width: min(190px, 29vw);
  padding: 6px 10px;
  overflow: hidden;
  color: #5c506d !important;
  border-radius: 11px;
  background: rgba(255, 255, 255, .28) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 4px 10px rgba(96, 75, 132, .05) !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zito-glass-app .phone-shell.mode-lesson .lesson-dock {
  grid-area: lesson;
  display: block;
  min-width: 0;
  min-height: 0;
  height: auto !important;
  padding: 0 !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.zito-glass-app .phone-shell.mode-lesson .lesson-article {
  width: min(880px, 100%);
  min-height: calc(100% - 2px);
  margin: 0 auto;
  padding: clamp(25px, 3.4vw, 48px) clamp(22px, 3.6vw, 54px) 38px;
  border: 1px solid rgba(255, 255, 255, .76);
  outline: 1px solid rgba(130, 105, 177, .10);
  outline-offset: -1px;
  border-radius: 30px;
  background:
    linear-gradient(128deg, rgba(255, 255, 255, .47), rgba(255, 255, 255, .16) 48%, rgba(235, 248, 255, .28)),
    linear-gradient(150deg, rgba(255, 249, 252, .58), rgba(244, 240, 252, .44));
  box-shadow: 0 22px 48px rgba(104, 75, 132, .13), inset 0 1px 0 rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(26px) saturate(132%);
  backdrop-filter: blur(26px) saturate(132%);
}

.zito-glass-app .phone-shell.mode-lesson .planet-stage {
  grid-area: planet;
  display: block !important;
  min-width: 0;
  min-height: 0;
  height: 100% !important;
  align-self: stretch;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.zito-glass-app .phone-shell.mode-lesson .planet-stage::before {
  display: none !important;
}

.zito-glass-app .phone-shell.mode-lesson .planet-card {
  width: 100%;
  height: 100%;
  max-width: none;
  min-height: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
  padding: 13px 12px 14px;
  overflow: hidden;
  direction: rtl;
  border: 1px solid rgba(255, 255, 255, .58);
  outline: 0;
  border-radius: 20px;
  background:
    linear-gradient(128deg, rgba(255, 255, 255, .36), rgba(255, 255, 255, .08) 56%, rgba(220, 245, 250, .16)),
    rgba(239, 233, 247, .18);
  box-shadow: 0 12px 26px rgba(98, 74, 128, .08), inset 0 1px 0 rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(34px) saturate(145%);
  backdrop-filter: blur(34px) saturate(145%);
}

.zito-glass-app .phone-shell.mode-lesson .planet-card > * {
  direction: rtl;
}

.zito-glass-app .phone-shell.mode-lesson .course-coach {
  display: none !important;
}

.zito-glass-app .phone-shell.mode-lesson .learning-path {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.zito-glass-app .phone-shell.mode-lesson .learning-path[hidden] {
  display: none !important;
}

.zito-glass-app .phone-shell.mode-lesson .path-course-head {
  position: relative;
  z-index: 2;
  flex: none;
  margin: -13px -12px 0;
  padding: 13px 52px 11px 12px;
  border-bottom: 1px solid rgba(129, 105, 166, .10);
  background: linear-gradient(180deg, rgba(247, 242, 251, .74), rgba(247, 242, 251, .36));
  -webkit-backdrop-filter: blur(26px) saturate(142%);
  backdrop-filter: blur(26px) saturate(142%);
}

.zito-glass-app .phone-shell.mode-lesson .path-course-head .section-kicker {
  display: none;
}

.zito-glass-app .phone-shell.mode-lesson .path-course-head h2 {
  margin: 0;
  overflow: hidden;
  color: #4a405c;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.7;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zito-glass-app .phone-shell.mode-lesson .path-progress-text {
  margin-top: 2px;
  color: #83758e;
  font-size: 10px;
  font-weight: 700;
}

.zito-glass-app .phone-shell.mode-lesson .path-course-head .meter {
  height: 2px;
  margin-top: 8px;
}

.zito-glass-app .phone-shell.mode-lesson .module-path-list {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  margin: 9px -3px 0;
  padding: 0 3px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.zito-glass-app .phone-shell.mode-lesson .module-path-list::before {
  display: none;
}

.zito-glass-app .phone-shell.mode-lesson .path-module {
  display: grid;
  min-height: 46px;
  grid-template-columns: 28px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  color: #655a70;
  border: 1px solid transparent !important;
  border-radius: 12px;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: default;
  text-align: right;
}

.zito-glass-app .phone-shell.mode-lesson .path-module.selected {
  color: #4b405c;
  border-color: rgba(255, 255, 255, .56) !important;
  background: linear-gradient(130deg, rgba(255, 255, 255, .38), rgba(226, 244, 249, .20)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .74), 0 5px 13px rgba(102, 78, 139, .06) !important;
}

.zito-glass-app .phone-shell.mode-lesson .path-stage-number {
  width: 28px;
  height: 28px;
  color: #82728f;
  background: rgba(255, 255, 255, .22);
  font-size: 9px;
}

.zito-glass-app .phone-shell.mode-lesson .path-module.selected .path-stage-number {
  color: #fff;
  background: linear-gradient(145deg, rgba(134, 102, 200, .94), rgba(80, 170, 188, .88));
  box-shadow: 0 4px 10px rgba(104, 84, 163, .17);
}

.zito-glass-app .phone-shell.mode-lesson .path-module-title {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zito-glass-app .phone-shell.mode-lesson .path-module-state {
  position: relative;
  display: grid;
  width: 12px;
  height: 12px;
  place-items: center;
  border: 1.5px solid rgba(121, 103, 151, .30);
  border-radius: 50%;
  background: rgba(255, 255, 255, .20);
}

.zito-glass-app .phone-shell.mode-lesson .path-module-state[data-state="current"] {
  border-color: transparent;
  background: linear-gradient(135deg, #8067c4, #59aebe);
  box-shadow: 0 3px 8px rgba(89, 137, 184, .22);
}

.zito-glass-app .phone-shell.mode-lesson .path-module-state[data-state="completed"] {
  border-color: #56a480;
  background: #56a480;
}

.zito-glass-app .phone-shell.mode-lesson .path-module-state[data-state="completed"]::after {
  content: "";
  width: 5px;
  height: 3px;
  border-bottom: 1.6px solid #fff;
  border-left: 1.6px solid #fff;
  transform: translateY(-1px) rotate(-45deg);
}

.zito-glass-app .phone-shell.mode-lesson .module-stage-overview {
  display: none !important;
}

/* A full-height sidebar keeps navigation, account, and exit actions in one calm place. */
.zito-glass-app .phone-shell.mode-lesson .learning-sidebar-footer {
  flex: none;
  margin: 0 -12px -14px;
  padding: 11px 12px 13px;
  border-top: 1px solid rgba(124, 102, 165, .12);
  background:
    linear-gradient(124deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .08)),
    rgba(239, 236, 248, .34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .58);
}

.zito-glass-app .phone-shell.mode-lesson .sidebar-actions {
  display: grid;
  gap: 7px;
}

.zito-glass-app .phone-shell.mode-lesson .sidebar-action {
  width: 100%;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 10px;
  color: #584a69;
  border: 1px solid rgba(255, 255, 255, .64);
  border-radius: 11px;
  background: rgba(255, 255, 255, .26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .73), 0 4px 10px rgba(89, 70, 126, .05);
  font-size: 11px;
  font-weight: 900;
  text-align: right;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.zito-glass-app .phone-shell.mode-lesson .sidebar-action:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .84), 0 7px 13px rgba(89, 70, 126, .09);
}

.zito-glass-app .phone-shell.mode-lesson .sidebar-action-logout {
  color: #765564;
  border-color: rgba(187, 126, 147, .16);
  background: rgba(255, 247, 249, .20);
}

.zito-glass-app .phone-shell.mode-lesson .sidebar-action-icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.zito-glass-app .phone-shell.mode-lesson .sidebar-account {
  display: grid;
  min-width: 0;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(124, 102, 165, .10);
}

.zito-glass-app .phone-shell.mode-lesson .sidebar-account-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .54);
  border-radius: 11px;
  background: linear-gradient(145deg, #8068c3, #5caeba);
  box-shadow: 0 5px 11px rgba(88, 105, 174, .18), inset 0 1px 0 rgba(255, 255, 255, .34);
  font-size: 13px;
  font-weight: 900;
}

.zito-glass-app .phone-shell.mode-lesson .sidebar-account-copy {
  min-width: 0;
}

.zito-glass-app .phone-shell.mode-lesson .sidebar-account-copy small,
.zito-glass-app .phone-shell.mode-lesson .sidebar-account-copy strong,
.zito-glass-app .phone-shell.mode-lesson .sidebar-account-copy > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zito-glass-app .phone-shell.mode-lesson .sidebar-account-copy small {
  color: #8b7d99;
  font-size: 9px;
  font-weight: 800;
}

.zito-glass-app .phone-shell.mode-lesson .sidebar-account-copy strong {
  margin-top: 1px;
  color: #51445f;
  font-size: 11px;
  font-weight: 900;
}

.zito-glass-app .phone-shell.mode-lesson .sidebar-account-copy > span {
  margin-top: 1px;
  color: #887a93;
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  text-align: right;
}

.zito-glass-app .phone-shell.mode-lesson .module-path-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(108, 91, 144, .42) transparent;
}

.zito-glass-app .phone-shell.mode-lesson .module-path-list::-webkit-scrollbar {
  width: 7px;
}

.zito-glass-app .phone-shell.mode-lesson .module-path-list::-webkit-scrollbar-track {
  margin: 5px 0;
  background: transparent;
}

.zito-glass-app .phone-shell.mode-lesson .module-path-list::-webkit-scrollbar-thumb {
  min-height: 32px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(142, 114, 194, .60), rgba(75, 173, 188, .56)) padding-box;
}

.zito-glass-app .phone-shell.mode-lesson .stage-header {
  margin-bottom: 23px;
  padding: 21px 23px;
  border-color: rgba(255, 255, 255, .62);
  background:
    linear-gradient(130deg, rgba(255, 255, 255, .44), rgba(255, 255, 255, .14) 62%, rgba(230, 247, 252, .24)) padding-box,
    linear-gradient(115deg, rgba(166, 119, 193, .34), rgba(80, 174, 181, .28), rgba(85, 145, 204, .25)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .76);
}

.zito-glass-app .phone-shell.mode-lesson .stage-header h2 {
  font-size: clamp(21px, 2vw, 27px);
}

.zito-glass-app .phone-shell.mode-lesson .lesson-assist {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 18px;
  background:
    radial-gradient(42% 130% at 4% 50%, rgba(144, 113, 211, .20), transparent 76%),
    radial-gradient(46% 140% at 100% 100%, rgba(78, 183, 196, .18), transparent 74%),
    linear-gradient(130deg, rgba(255, 255, 255, .52), rgba(239, 229, 250, .34) 54%, rgba(224, 244, 248, .42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82), 0 10px 20px rgba(91, 70, 134, .08);
}

.zito-glass-app .phone-shell.mode-lesson .lesson-assist::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -54px;
  left: -34px;
  width: 142px;
  height: 142px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(135, 109, 198, .035), 0 0 0 42px rgba(82, 180, 194, .025);
}

.zito-glass-app .phone-shell.mode-lesson .lesson-coach-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 11px;
}

.zito-glass-app .phone-shell.mode-lesson .lesson-coach-avatar {
  position: relative;
  display: grid;
  flex: none;
  width: 54px;
  height: 54px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .70);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .58), rgba(218, 233, 249, .38));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .84), 0 7px 14px rgba(85, 68, 133, .12);
}

.zito-glass-app .phone-shell.mode-lesson .lesson-coach-avatar::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(123, 103, 192, .20);
  border-radius: 14px;
  animation: zito-coach-avatar-pulse 3.6s ease-in-out infinite;
}

.zito-glass-app .phone-shell.mode-lesson .lesson-coach-avatar img {
  position: relative;
  z-index: 1;
  width: 47px;
  height: 58px;
  object-fit: contain;
  object-position: center 35%;
  filter: drop-shadow(0 6px 7px rgba(60, 49, 103, .20));
}

.zito-glass-app .phone-shell.mode-lesson .lesson-assist-copy {
  min-width: 0;
}

.zito-glass-app .phone-shell.mode-lesson .lesson-assist-copy span,
.zito-glass-app .phone-shell.mode-lesson .lesson-assist-copy strong,
.zito-glass-app .phone-shell.mode-lesson .lesson-assist-copy small {
  display: block;
}

.zito-glass-app .phone-shell.mode-lesson .lesson-assist-copy span {
  color: #89799a;
  font-size: 10px;
  font-weight: 900;
}

.zito-glass-app .phone-shell.mode-lesson .lesson-assist-copy strong {
  margin-top: 2px;
  color: #544561;
  font-size: 13px;
  line-height: 1.6;
}

.zito-glass-app .phone-shell.mode-lesson .lesson-assist-copy small {
  margin-top: 2px;
  color: #756a85;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.7;
}

.zito-glass-app .phone-shell.mode-lesson .lesson-coach-trigger {
  display: inline-flex;
  position: relative;
  z-index: 1;
  min-width: 136px;
  max-width: 100%;
  min-height: 43px;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .54);
  border-radius: 13px;
  background: linear-gradient(135deg, #7762bf, #627fc2 54%, #57aeb9);
  box-shadow: 0 9px 17px rgba(89, 77, 165, .22), inset 0 1px 0 rgba(255, 255, 255, .34);
  font-size: 10px;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.zito-glass-app .phone-shell.mode-lesson .lesson-coach-trigger:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 13px 21px rgba(89, 77, 165, .28), inset 0 1px 0 rgba(255, 255, 255, .40);
}

.zito-glass-app .phone-shell.mode-lesson .lesson-coach-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zito-glass-app .phone-shell.mode-lesson .lesson-coach-trigger svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

@keyframes zito-coach-avatar-pulse {
  0%, 100% { opacity: .35; transform: scale(1); }
  50% { opacity: .78; transform: scale(.91); }
}

.zito-glass-app .phone-shell.mode-lesson .lesson-actions {
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid rgba(129, 105, 166, .12);
}

.zito-glass-app .phone-shell.mode-lesson .stage-complete-button {
  min-width: 216px;
  max-width: 100%;
  height: 46px;
  border-radius: 14px;
}

/* Choice controls read as controls, not removable labels. */
.zito-glass-app .phone-shell.mode-lesson .choice-list {
  gap: 8px;
}

.zito-glass-app .phone-shell.mode-lesson :is(.choice-option, .check-option) {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  min-height: 46px;
  align-items: start;
  gap: 10px;
  padding: 11px 12px;
  color: #5d536b;
  border: 1px solid rgba(121, 101, 162, .15) !important;
  border-radius: 13px;
  background: rgba(255, 255, 255, .22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .50);
  transform: none !important;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.zito-glass-app .phone-shell.mode-lesson :is(.choice-option, .check-option):hover {
  border-color: rgba(112, 91, 164, .29) !important;
  background: rgba(255, 255, 255, .34) !important;
}

.zito-glass-app .phone-shell.mode-lesson :is(.choice-option, .check-option) > span {
  min-width: 0;
  line-height: 1.8;
}

.zito-glass-app .phone-shell.mode-lesson :is(.choice-option, .check-option) input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  flex: none;
  place-content: center;
  cursor: pointer;
  border: 1.5px solid rgba(103, 85, 145, .43);
  background: rgba(255, 255, 255, .50);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .70);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.zito-glass-app .phone-shell.mode-lesson .choice-option input {
  border-radius: 50%;
}

.zito-glass-app .phone-shell.mode-lesson .check-option input {
  border-radius: 5px;
}

.zito-glass-app .phone-shell.mode-lesson .choice-option input::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: transform .14s ease;
}

.zito-glass-app .phone-shell.mode-lesson .check-option input::after {
  content: "";
  width: 8px;
  height: 4px;
  border-bottom: 1.8px solid #fff;
  border-left: 1.8px solid #fff;
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform .14s ease;
}

.zito-glass-app .phone-shell.mode-lesson :is(.choice-option, .check-option) input:checked {
  border-color: transparent;
  background: linear-gradient(135deg, #7c65c1, #53abb9);
  box-shadow: 0 3px 8px rgba(92, 121, 183, .24), inset 0 1px 0 rgba(255, 255, 255, .34);
}

.zito-glass-app .phone-shell.mode-lesson .choice-option input:checked::after {
  transform: scale(1);
}

.zito-glass-app .phone-shell.mode-lesson .check-option input:checked::after {
  transform: translateY(-1px) rotate(-45deg) scale(1);
}

.zito-glass-app .phone-shell.mode-lesson :is(.choice-option, .check-option):has(input:checked) {
  color: #4f4363;
  border-color: rgba(103, 119, 182, .30) !important;
  background: linear-gradient(122deg, rgba(255, 255, 255, .38), rgba(220, 243, 248, .28)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72), 0 5px 12px rgba(91, 79, 132, .07);
}

.zito-glass-app .phone-shell.mode-lesson :is(.choice-option, .check-option) input:focus-visible {
  outline: 3px solid rgba(78, 159, 187, .32);
  outline-offset: 2px;
}

.zito-glass-app .phone-shell.mode-lesson .media-slot-icon {
  display: grid;
  width: 30px;
  height: 30px;
  margin: 0 auto 7px;
  place-items: center;
}

.zito-glass-app .phone-shell.mode-lesson .media-slot-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: #6f5c91;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.zito-glass-app .modal-close {
  display: grid;
  place-items: center;
  padding: 0;
}

.zito-glass-app .modal-close-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.zito-glass-app .phone-shell.mode-lesson :is(.lesson-dock, .planet-card) {
  scrollbar-width: thin;
  scrollbar-color: rgba(108, 91, 144, .42) transparent;
}

.zito-glass-app .phone-shell.mode-lesson :is(.lesson-dock, .planet-card)::-webkit-scrollbar {
  width: 8px;
}

.zito-glass-app .phone-shell.mode-lesson :is(.lesson-dock, .planet-card)::-webkit-scrollbar-track {
  margin: 13px 0;
  background: transparent;
}

.zito-glass-app .phone-shell.mode-lesson :is(.lesson-dock, .planet-card)::-webkit-scrollbar-thumb {
  min-height: 42px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(142, 114, 194, .64), rgba(75, 173, 188, .60)) padding-box;
}

.zito-glass-app .learning-toast {
  position: fixed;
  z-index: 130;
  left: 50%;
  bottom: 25px;
  max-width: min(440px, calc(100vw - 32px));
  padding: 11px 15px;
  color: #423653;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 14px;
  background: rgba(252, 249, 255, .78);
  box-shadow: 0 14px 30px rgba(84, 65, 116, .18), inset 0 1px 0 rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(20px) saturate(132%);
  backdrop-filter: blur(20px) saturate(132%);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .18s ease, transform .18s ease;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.zito-glass-app .learning-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.zito-glass-app .learning-sidebar-scrim:not([hidden]) {
  display: none;
}

.zito-glass-app :is(.learning-sidebar-toggle, .learning-sidebar-close, .lesson-coach-trigger, .sidebar-action):focus-visible {
  outline: 3px solid rgba(88, 141, 220, .30);
  outline-offset: 2px;
}

@media (min-width: 1021px) {
  .zito-glass-app .phone-shell.mode-lesson:not(.learning-sidebar-open) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "topbar"
      "lesson";
  }

  .zito-glass-app .phone-shell.mode-lesson:not(.learning-sidebar-open) .planet-stage {
    display: none !important;
  }

  .zito-glass-app .learning-sidebar-close {
    position: absolute;
    z-index: 3;
    top: 16px;
    left: 14px;
    display: grid;
    place-items: center;
  }
}

@media (max-width: 1020px) {
  .zito-glass-app .phone-shell.mode-lesson {
    width: 100%;
    height: 100svh;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
      "topbar"
      "lesson";
    gap: 10px;
    padding: 10px;
  }

  .zito-glass-app .phone-shell.mode-lesson .lesson-dock {
    height: auto !important;
  }

  /* Mobile sidebar preserves the desktop hierarchy: lesson, blurred backdrop, focused drawer. */
  .zito-glass-app .phone-shell.mode-lesson .planet-stage {
    position: fixed;
    z-index: 120;
    top: 10px;
    right: 10px;
    bottom: 10px;
    left: auto;
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    width: min(360px, calc(100vw - 20px));
    height: auto !important;
    padding: 0 !important;
    overflow: visible !important;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateX(calc(100% + 22px));
    will-change: transform, opacity;
    transition: transform .24s ease, opacity .18s ease, visibility 0s linear .24s;
  }

  .zito-glass-app .phone-shell.mode-lesson.learning-sidebar-open .planet-stage {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
    transition-delay: 0s;
  }

  .zito-glass-app .phone-shell.mode-lesson .planet-card {
    height: 100%;
    max-height: none;
    padding: clamp(12px, 3vw, 15px) clamp(11px, 3vw, 14px) 14px;
    border: 1px solid rgba(255, 255, 255, .76);
    border-radius: clamp(22px, 6vw, 28px);
    background:
      linear-gradient(128deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .16) 55%, rgba(219, 244, 250, .28)),
      rgba(239, 233, 248, .30);
    box-shadow: 0 30px 68px rgba(78, 58, 111, .22), 0 10px 24px rgba(54, 143, 166, .12), inset 0 1px 0 rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: blur(38px) saturate(145%) brightness(1.05);
    backdrop-filter: blur(38px) saturate(145%) brightness(1.05);
  }

  .zito-glass-app .phone-shell.mode-lesson .path-course-head {
    margin: -13px -12px 0;
    padding-left: 52px;
  }

  .zito-glass-app .learning-sidebar-close {
    position: absolute;
    z-index: 3;
    top: 16px;
    left: 14px;
    display: grid;
    place-items: center;
  }

  .zito-glass-app .learning-sidebar-scrim:not([hidden]) {
    position: fixed;
    z-index: 110;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(243, 238, 250, .12);
    -webkit-backdrop-filter: blur(16px) saturate(118%) brightness(1.05);
    backdrop-filter: blur(16px) saturate(118%) brightness(1.05);
  }
}

@media (max-width: 600px) {
  .zito-glass-app .phone-shell.mode-lesson .topbar {
    min-height: 58px;
    padding: 7px 9px !important;
  }

  .zito-glass-app .phone-shell.mode-lesson .topbar .status-pill {
    max-width: 132px;
    padding: 6px 8px;
  }

  .zito-glass-app .phone-shell.mode-lesson .lesson-article {
    min-height: auto;
    padding: 20px 16px 28px;
    border-radius: 24px;
  }

  .zito-glass-app .phone-shell.mode-lesson .stage-header {
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 18px;
    padding: 17px 15px;
  }

  .zito-glass-app .phone-shell.mode-lesson .stage-header h2 {
    font-size: 20px;
  }

  .zito-glass-app .phone-shell.mode-lesson .lesson-assist {
    align-items: stretch;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .zito-glass-app .phone-shell.mode-lesson .lesson-coach-trigger,
  .zito-glass-app .phone-shell.mode-lesson .stage-complete-button {
    width: 100%;
  }

  .zito-glass-app .phone-shell.mode-lesson .lesson-coach-avatar {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .zito-glass-app .coaching-modal .coaching-actions {
    grid-template-columns: 1fr;
    text-align: right;
  }

  .zito-glass-app #coachContinue {
    width: 100%;
  }

  .zito-glass-app .phone-shell.mode-lesson .lesson-actions {
    justify-content: stretch;
  }

  .zito-glass-app .learning-toast {
    bottom: 16px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zito-glass-app .phone-shell.mode-lesson .planet-stage,
  .zito-glass-app .learning-toast,
  .zito-glass-app .phone-shell.mode-planet .course-option,
  .zito-glass-app .phone-shell.mode-planet .course-orb-art,
  .zito-glass-app .phone-shell.mode-lesson .lesson-coach-avatar::after {
    animation: none;
    transition: none;
  }
}
