/*
 * Taste-skill experimental layout.
 * Loaded after styles-v2.css for index-taste.html only.
 * Direction: a printed study ledger: paper, ink green, one ochre accent,
 * flatter surfaces, bookish display type, and fewer nested containers.
 */
body.taste-preview {
  --ink: #152f2d;
  --ink-deep: #0b2523;
  --ink-soft: #61716b;
  --paper: #f1ede3;
  --paper-deep: #e5decf;
  --card: #fbf8ef;
  --line: #d3cbbb;
  --line-soft: #e6dfd2;
  --mint: #dfe9e1;
  --mint-deep: #a9c5b8;
  --green: #2e6759;
  --yellow: #dec15c;
  --orange: #9b7525;
  --red: #aa4d47;
  --shadow: none;
  background:
    linear-gradient(90deg, rgba(61, 79, 70, 0.028) 1px, transparent 1px),
    linear-gradient(rgba(61, 79, 70, 0.022) 1px, transparent 1px),
    #f1ede3;
  background-size: 64px 64px;
}

.taste-preview .app-shell {
  grid-template-columns: clamp(226px, 13vw, 258px) minmax(0, 1fr);
}

.taste-preview .rail {
  width: clamp(226px, 13vw, 258px);
  padding: 31px 23px 22px;
  background:
    radial-gradient(circle at 18% 78%, rgba(222, 193, 92, 0.08), transparent 25%),
    linear-gradient(145deg, #173e38, #092829);
}

.taste-preview .rail-nav {
  margin-top: 62px;
}

.taste-preview .rail-link {
  min-height: 50px;
  border-radius: 4px;
  font-size: 14px;
}

.taste-preview .rail-link.is-active {
  color: #fffdf5;
  background: rgba(255, 250, 235, 0.09);
  box-shadow: inset 3px 0 0 var(--yellow);
}

.taste-preview .rail-exam,
.taste-preview .rail-level {
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}

.taste-preview .workspace {
  max-width: none;
  padding: 28px clamp(30px, 3.5vw, 58px) 74px;
}

.taste-preview .workspace-top {
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(21, 47, 45, 0.18);
  color: var(--ink-soft);
  font-size: 13px;
}

.taste-preview .exam-glance {
  border-radius: 3px;
  background: rgba(251, 248, 239, 0.68);
}

.taste-preview .page {
  max-width: 1280px;
  padding-top: 38px;
}

.taste-preview .home-intro h1,
.taste-preview .page-heading h1,
.taste-preview .advisor-heading h1,
.taste-preview .study-result h1,
.taste-preview .onboarding-heading h1 {
  color: var(--ink-deep);
  font-family: var(--font-reading);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.taste-preview .home-intro h1 {
  max-width: 780px;
  font-size: clamp(44px, 4.5vw, 68px);
  line-height: 1.14;
}

.taste-preview .home-intro h1 span {
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 0.68em;
  font-weight: 400;
}

.taste-preview .home-account-strip {
  display: grid;
  max-width: 780px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin-top: 20px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 2px 12px 2px 2px;
  background: rgba(251, 248, 239, 0.78);
}

.taste-preview .home-account-strip.is-connected {
  border-left-color: var(--yellow);
}

.taste-preview .home-account-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 2px 11px 2px 2px;
  color: #f8f3e6;
  background: var(--ink-deep);
}

.taste-preview .home-account-icon svg {
  width: 20px;
  height: 20px;
}

.taste-preview .home-account-strip > div {
  min-width: 0;
}

.taste-preview .home-account-strip strong,
.taste-preview .home-account-strip small {
  display: block;
}

.taste-preview .home-account-strip strong {
  color: var(--ink-deep);
  font-size: 15px;
}

.taste-preview .home-account-strip small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}

.taste-preview .home-account-strip > button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px 11px 4px 4px;
  color: #fffdf5;
  background: var(--ink-deep);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.taste-preview .home-account-strip > button svg {
  width: 16px;
  height: 16px;
}

.taste-preview .page-heading h1 {
  font-size: clamp(42px, 3.5vw, 56px);
}

.taste-preview .page-heading > div > p:last-child,
.taste-preview .advisor-heading > div > p:last-child {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.taste-preview .button {
  min-height: 46px;
  padding: 0 19px;
  border-radius: 4px;
  font-size: 14px;
}

.taste-preview .button-primary {
  color: #fffdf5;
  background: var(--ink-deep);
}

.taste-preview .button-secondary,
.taste-preview .button-quiet {
  border: 1px solid #bdb5a5;
  background: transparent;
}

.taste-preview .status-line {
  border-radius: 3px;
  background: transparent;
}

.taste-preview .mastery-hero {
  margin-top: 30px;
  padding: 25px 0 28px;
}

.taste-preview .mastery-primary strong {
  color: var(--ink-deep);
  font-family: var(--font-reading);
  font-weight: 500;
}

.taste-preview .home-layout {
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 38px;
}

.taste-preview .home-action-rail {
  padding: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

.taste-preview .home-action-kicker {
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.taste-preview .home-continue-button {
  border: 1px solid #c7b78d;
  border-radius: 2px 14px 14px 2px;
  color: var(--ink-deep);
  background:
    linear-gradient(90deg, rgba(178, 138, 40, 0.13), transparent 26%),
    #fbf7ea;
  box-shadow: none;
}

.taste-preview .home-continue-button::before {
  width: 3px;
  background: #b18c2f;
}

.taste-preview .home-continue-button strong {
  color: var(--ink-deep);
  font-family: var(--font-reading);
  font-size: 29px;
  font-weight: 600;
}

.taste-preview .home-continue-button small {
  color: #82723f;
}

.taste-preview .home-action-rail > p {
  color: var(--ink-soft);
}

.taste-preview .today-card,
.taste-preview .panel,
.taste-preview .plan-summary-card,
.taste-preview .plan-timeline-panel,
.taste-preview .adjust-intent-home,
.taste-preview .adjust-focus-panel,
.taste-preview .wordbook-page {
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink-deep);
  border-radius: 2px 15px 2px 2px;
  background: rgba(251, 248, 239, 0.82);
  box-shadow: none;
}

.taste-preview .task-row {
  border-left: 3px solid #b5943a;
  border-radius: 2px 8px 8px 2px;
  background: rgba(229, 222, 207, 0.42);
}

.taste-preview .growth-tabs {
  gap: 18px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.taste-preview .growth-tabs button {
  min-height: 42px;
  padding: 0 3px;
  border-radius: 0;
  background: transparent;
  font-size: 14px;
}

.taste-preview .growth-tabs button.is-active {
  color: var(--ink-deep);
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--orange);
}

.taste-preview .small-search,
.taste-preview .dictionary-search,
.taste-preview .wordbook-search {
  border: 1px solid #c6bead;
  border-radius: 3px;
  background: #fffdf7;
  box-shadow: none;
}

.taste-preview .search-welcome {
  border-color: #c7bfaf;
  border-radius: 3px;
  background: rgba(255, 253, 247, 0.5);
}

.taste-preview .word-list-row {
  border-radius: 2px 9px 9px 2px;
  background: #f7f4ea;
}

.taste-preview .plan-summary-card {
  grid-template-columns: 190px minmax(0, 1fr);
}

.taste-preview .plan-stage-guide {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--line);
}

.taste-preview .plan-stage {
  background: #faf7ee;
}

.taste-preview .today-plan-strip {
  border: 1px solid #b4c9bc;
  border-radius: 2px 12px 2px 2px;
  background: #e5ede5;
}

.taste-preview .plan-day {
  min-height: 68px;
}

.taste-preview .adjust-status-chips > span {
  min-height: 36px;
  border-radius: 3px;
  background: rgba(251, 248, 239, 0.74);
}

.taste-preview .adjust-intent-card,
.taste-preview .settings-verification-choice,
.taste-preview .study-style-choice {
  border-radius: 2px 10px 10px 2px;
  background: #faf7ee;
}

.taste-preview .adjust-intent-icon,
.taste-preview .settings-verification-choice > span {
  border-radius: 3px 8px 8px 8px;
  background: var(--mint);
}

.taste-preview .adjust-focus-options button {
  border-radius: 2px 8px 8px 2px;
  background: #faf7ee;
}

.taste-preview .word-card-v2,
.taste-preview .verify-stage,
.taste-preview .verify-mode-stage {
  border-radius: 3px 17px 3px 3px;
  background:
    linear-gradient(rgba(23, 61, 54, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 61, 54, 0.022) 1px, transparent 1px),
    #fbf8ef;
  box-shadow: none;
}

.taste-preview .word-heading h1 {
  color: var(--ink-deep);
  font-family: var(--font-reading);
  font-weight: 600;
}

.taste-preview .rating-row button {
  border-radius: 2px 9px 9px 9px;
  background: #faf7ee;
}

.taste-preview .rating-row .rating-mastered {
  position: relative;
  grid-column: 1 / -1;
  min-height: 58px;
  overflow: hidden;
  border-color: #8d6b13;
  color: #193e38;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.48), transparent 42%),
    #e3c34e;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -2px 0 rgba(107, 79, 10, 0.14);
}

.taste-preview .rating-row .rating-mastered::after {
  position: absolute;
  top: -35%;
  left: -25%;
  width: 22%;
  height: 170%;
  background: rgba(255, 255, 255, 0.28);
  content: "";
  transform: rotate(18deg);
  transition: left 420ms var(--ease-out);
}

.taste-preview .rating-row .rating-mastered:hover {
  border-color: #6c5310;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.56), transparent 44%),
    #edcf5f;
  transform: translateY(-1px);
}

.taste-preview .rating-row .rating-mastered:hover::after {
  left: 110%;
}

.taste-preview .rating-row .rating-mastered:active {
  transform: translateY(1px) scale(0.995);
}

.taste-preview .rating-row .rating-mastered strong {
  font-size: 15px;
}

.taste-preview .rating-row .rating-mastered span {
  color: rgba(25, 62, 56, 0.72);
  font-size: 11px;
}

.mastery-seal {
  position: fixed;
  z-index: 480;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 28px;
  overflow: hidden;
  color: #fff9e8;
  background:
    radial-gradient(circle at 50% 45%, rgba(224, 190, 66, 0.2), transparent 24%),
    rgba(7, 28, 26, 0.92);
  pointer-events: none;
  text-align: center;
}

.mastery-seal::before,
.mastery-seal::after {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    transparent,
    rgba(232, 205, 103, 0.38) 22%,
    rgba(232, 205, 103, 0.38) 78%,
    transparent
  );
  content: "";
}

.mastery-seal::before {
  left: max(22px, env(safe-area-inset-left));
}

.mastery-seal::after {
  right: max(22px, env(safe-area-inset-right));
}

.mastery-seal__halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(64vw, 540px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.mastery-seal__halo i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(242, 213, 113, 0.58);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(220, 185, 62, 0.12);
}

.mastery-seal > p,
.mastery-seal > strong,
.mastery-seal > em,
.mastery-seal > small {
  position: relative;
  z-index: 1;
}

.mastery-seal > p {
  margin: 0 0 16px;
  color: rgba(255, 249, 232, 0.7);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.mastery-seal > strong {
  max-width: min(88vw, 920px);
  font-family: var(--font-reading);
  font-size: clamp(58px, 9vw, 112px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  overflow-wrap: anywhere;
  text-shadow: 0 16px 55px rgba(0, 0, 0, 0.28);
}

.mastery-seal__rule {
  display: block;
  width: min(46vw, 430px);
  height: 2px;
  margin: 22px 0 17px;
  background: linear-gradient(90deg, transparent, #e6c956 18%, #f4df89 50%, #e6c956 82%, transparent);
  transform-origin: center;
}

.mastery-seal > em {
  color: #f2d66e;
  font-size: 15px;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.mastery-seal > small {
  margin-top: 10px;
  color: rgba(255, 249, 232, 0.58);
  font-size: 12px;
}

.wordbook-entry-meaning .wordbook-mastery-mark {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  gap: 4px;
  margin-left: 7px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #6a5111;
  background: #f1dda0;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.wordbook-entry-meaning .wordbook-mastery-mark svg {
  width: 12px;
  height: 12px;
}

.wordbook-entry.is-fully-mastered {
  background: linear-gradient(90deg, rgba(231, 201, 91, 0.1), transparent 36%);
}

.word-relearn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.word-relearn span {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.word-relearn strong {
  margin-right: 5px;
  color: var(--ink-deep);
}

.word-relearn .button {
  min-height: 44px;
  flex: 0 0 auto;
}

.taste-preview .session-stop-button {
  border-color: #c5aa60;
  border-radius: 2px 10px 10px 2px;
  background: #faf3da;
  box-shadow: none;
}

.taste-preview .modal {
  border-radius: 3px 19px 3px 3px;
  background: #fbf8ef;
}

.taste-preview .onboarding-form {
  background: #f4f0e6;
}

.onboarding-scroll-cue {
  display: none;
}

.taste-preview .choice-card.is-selected,
.taste-preview .study-style-choice.is-selected {
  border-color: var(--ink-deep);
  background: #e2ebe3;
  box-shadow: inset 3px 0 0 var(--orange);
}

.taste-preview .segmented,
.taste-preview .segmented button {
  border-radius: 3px;
}

.taste-preview-back {
  position: fixed;
  z-index: 220;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  color: #fffdf5;
  background: rgba(11, 37, 36, 0.9);
  font-size: 12px;
  text-decoration: none;
  backdrop-filter: blur(12px);
}

@media (max-width: 820px) {
  .taste-preview .workspace {
    padding: 14px 14px calc(96px + env(safe-area-inset-bottom));
  }

  .taste-preview .page {
    padding-top: 25px;
  }

  .onboarding-scroll-cue {
    position: fixed;
    z-index: 180;
    top: 55%;
    right: max(0px, env(safe-area-inset-right));
    display: grid;
    width: 32px;
    min-height: 104px;
    place-items: center;
    gap: 8px;
    padding: 11px 4px;
    border: 1px solid rgba(236, 211, 127, 0.44);
    border-right: 0;
    border-radius: 14px 0 0 14px;
    color: #fff8e8;
    background: rgba(13, 48, 43, 0.9);
    box-shadow: 0 13px 30px rgba(7, 33, 30, 0.24);
    font: inherit;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transform: translate(0, -50%);
    transition:
      opacity 180ms ease,
      transform 220ms ease;
  }

  .onboarding-scroll-cue span {
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.12em;
    line-height: 1;
    writing-mode: vertical-rl;
  }

  .onboarding-scroll-cue svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: onboarding-scroll-nudge 1.7s ease-in-out infinite;
  }

  .onboarding-scroll-cue.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(18px, -50%);
  }

  .onboarding-shell:has(.onboarding-scroll-cue) .onboarding-form {
    padding-right: calc(40px + env(safe-area-inset-right));
  }

  @keyframes onboarding-scroll-nudge {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(5px);
    }
  }

  .taste-preview .home-layout {
    display: block;
  }

  .taste-preview .home-intro h1 {
    font-size: 35px;
  }

  .taste-preview .page-heading h1 {
    font-size: 31px;
  }

  .taste-preview .page-heading > div > p:last-child,
  .taste-preview .advisor-heading > div > p:last-child {
    font-size: 13px;
  }

  .taste-preview .today-card,
  .taste-preview .panel,
  .taste-preview .plan-summary-card,
  .taste-preview .plan-timeline-panel,
  .taste-preview .adjust-intent-home,
  .taste-preview .adjust-focus-panel,
  .taste-preview .wordbook-page {
    border-radius: 2px 13px 2px 2px;
  }

  .taste-preview .home-continue-button {
    border-radius: 2px 12px 12px 2px;
  }

  .taste-preview-back {
    right: 14px;
    bottom: calc(158px + env(safe-area-inset-bottom));
    min-height: 34px;
  }
}

/* Stronger primary action inside the selected bookmark treatment. */
.taste-preview .home-action-kicker {
  margin: 0 0 10px 4px;
  color: #62655f;
  font-size: 14px;
  font-weight: 800;
}

.taste-preview .home-continue-button {
  border: 0;
  background:
    linear-gradient(90deg, rgba(201, 165, 50, 0.1), transparent 28%),
    #f5f3ec;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 0 #d6d1c4,
    0 14px 28px rgba(34, 37, 31, 0.12);
}

.taste-preview .home-continue-button::before {
  left: 12px;
  width: 5px;
  background: #c9a532;
}

.taste-preview .home-continue-button small {
  color: #80691e;
  font-size: 16px;
  font-weight: 750;
}

.taste-preview .home-continue-button strong {
  align-self: flex-start;
  margin-top: 7px;
  padding: 9px 14px 10px;
  border: 1px solid #121513;
  border-radius: 4px;
  color: #fffdf5;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), transparent 44%),
    linear-gradient(180deg, #555b57, #2b302d);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 5px 0 #111412,
    0 10px 19px rgba(20, 23, 20, 0.24);
  font-family: var(--font-ui);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
  transition:
    transform 110ms ease,
    box-shadow 110ms ease;
}

.taste-preview .home-continue-button:hover strong {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 7px 0 #111412,
    0 13px 22px rgba(20, 23, 20, 0.27);
}

.taste-preview .home-continue-button:active strong {
  transform: translateY(4px);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.18),
    0 1px 0 #111412,
    0 3px 8px rgba(20, 23, 20, 0.18);
}

.taste-preview .home-continue-button:hover {
  border-color: transparent;
  background:
    linear-gradient(90deg, rgba(201, 165, 50, 0.14), transparent 28%),
    #f8f6ef;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 2px 0 #d1ccbf,
    0 17px 31px rgba(34, 37, 31, 0.14);
}

.taste-preview .home-continue-detail {
  color: #64665f;
  font-size: 14px;
}

.taste-preview .home-action-rail > p {
  color: #696c65;
  font-size: 13px;
}

.taste-preview .home-mobile-action {
  display: none;
}

.taste-preview .study-style-preview.is-rich .preview-example.is-single {
  top: 34px;
  bottom: auto;
  width: 44%;
}

.taste-preview .plan-dial-legend strong {
  color: var(--ink-deep);
  font-size: 17px;
}

.taste-preview .plan-dial-legend small {
  color: #566a64;
  font-size: 14px;
  line-height: 1.6;
}

.taste-preview .plan-dial-summary {
  color: #556a64;
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 820px) {
  .taste-preview .home-continue-button {
    min-height: 74px;
    padding: 11px 16px 11px 26px;
  }

  .taste-preview .home-action-rail {
    display: none;
  }

  .taste-preview .home-account-strip {
    margin-top: 16px;
  }

  .taste-preview .home-mobile-action {
    display: grid;
    gap: 10px;
    margin-top: 18px;
  }

  .taste-preview .home-mobile-action .home-action-kicker {
    margin: 0 2px;
  }

  .taste-preview .home-mobile-action .home-continue-button {
    width: 100%;
  }

  .taste-preview .home-mobile-action > p {
    margin: 0 2px;
    color: #696c65;
    font-size: 12px;
    line-height: 1.5;
  }

  .taste-preview .home-continue-button::before {
    left: 11px;
    width: 4px;
  }

  .taste-preview .home-continue-button small {
    font-size: 12px;
  }

  .taste-preview .home-continue-button strong {
    margin-top: 0;
    padding: 8px 11px 9px;
    font-size: 22px;
  }

  .taste-preview .plan-dial-legend strong {
    font-size: 15px;
  }

  .taste-preview .plan-dial-legend small {
    font-size: 12px;
  }

  .taste-preview .plan-dial-summary {
    font-size: 13px;
  }
}

/* Final usability pass: keep the existing paper ledger look, but protect the
   hierarchy and touch targets on narrow screens. */
.taste-preview .plan-summary-card > .plan-metrics {
  grid-column: 1 / -1;
  margin-top: 0;
}

.taste-preview .tiny-label.is-sprint-plan {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(157, 118, 23, 0.34);
  border-radius: 999px;
  color: #6d5318;
  background: #f4e5aa;
  font-weight: 750;
}

.taste-preview .setting-disclosure {
  margin-top: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.78);
}

.taste-preview .setting-disclosure > summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.taste-preview .setting-disclosure > summary::-webkit-details-marker {
  display: none;
}

.taste-preview .setting-disclosure > summary::after {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.taste-preview .setting-disclosure[open] > summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.taste-preview .setting-disclosure > summary span {
  color: var(--ink-deep);
  font-size: 15px;
  font-weight: 750;
}

.taste-preview .setting-disclosure > summary small {
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 13px;
}

.taste-preview .setting-disclosure-body {
  padding: 0 14px 16px;
  border-top: 1px solid var(--line-soft);
}

.taste-preview .setting-disclosure-body > .setting-group:first-child,
.taste-preview .setting-disclosure-body > .toggle-line:first-child {
  margin-top: 14px;
}

.taste-preview .settings-bottom {
  position: sticky;
  z-index: 5;
  bottom: -18px;
  margin-inline: -3px;
  padding: 14px 3px calc(18px + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(250, 247, 238, 0), rgba(250, 247, 238, 0.96) 22%),
    var(--card);
}

.taste-preview .settings-backup {
  display: grid;
  gap: 12px;
  margin-top: 13px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.72);
}

.taste-preview .settings-backup strong,
.taste-preview .settings-backup small {
  display: block;
}

.taste-preview .settings-backup strong {
  color: var(--ink-deep);
  font-size: 14px;
}

.taste-preview .settings-backup small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.taste-preview .settings-backup-actions {
  display: flex;
  gap: 8px;
}

.taste-preview .settings-backup-actions .button {
  min-height: 44px;
  flex: 1 1 0;
}

.taste-preview .modal-close {
  width: 44px;
  height: 44px;
}

.taste-preview .modal-close svg {
  width: 16px;
  height: 16px;
}

.taste-preview .pronunciation-button,
.taste-preview .word-example-more,
.taste-preview .inline-note-toggle,
.taste-preview .book-award > button,
.taste-preview .tomorrow-options button,
.taste-preview .timeline-expand {
  min-height: 44px;
}

.taste-preview .wordbook-search,
.taste-preview .small-search {
  min-height: 44px;
}

@media (max-width: 640px) {
  .taste-preview .onboarding-story {
    min-height: 0;
    padding: 15px 16px 16px;
  }

  .taste-preview .onboarding-story .story-copy {
    padding: 10px 0 0;
  }

  .taste-preview .onboarding-story .story-copy h2 {
    margin: 0;
    font-size: clamp(21px, 6.2vw, 25px);
    line-height: 1.2;
  }

  .taste-preview .onboarding-story .story-copy p,
  .taste-preview .onboarding-story .story-note {
    display: none;
  }

  .taste-preview .onboarding-form {
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }

  .taste-preview .onboarding-actions {
    position: static;
    display: flex;
    margin-top: 24px;
    padding: 18px 0 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .taste-preview .onboarding-actions > span {
    display: none;
  }

  .taste-preview .onboarding-actions .button {
    min-height: 48px;
    flex: 1 1 0;
  }

  .taste-preview .workspace {
    padding-bottom: calc(108px + env(safe-area-inset-bottom));
  }

  .taste-preview .workspace-top,
  .taste-preview .exam-glance,
  .taste-preview .status-line,
  .taste-preview .mastery-footnotes,
  .taste-preview .task-copy span,
  .taste-preview .panel-note,
  .taste-preview .empty-list {
    font-size: 12px;
  }

  .taste-preview .wordbook-status-copy > span,
  .taste-preview .wordbook-status-copy small,
  .taste-preview .eyebrow {
    font-size: 10px;
  }

  .taste-preview .choice-divider span,
  .taste-preview .step-count,
  .taste-preview .focus-level,
  .taste-preview .dictionary-source-note,
  .taste-preview .dictionary-inline-source {
    font-size: 12px;
  }

  .taste-preview .brand-name small {
    font-size: 9px;
  }

  .taste-preview .tiny-label,
  .taste-preview .choice-card > span,
  .taste-preview .choice-card > small,
  .taste-preview .module-choices button,
  .taste-preview .material-choice small,
  .taste-preview .prestudy-label,
  .taste-preview .prestudy-summary span,
  .taste-preview .setting-current,
  .taste-preview .field > small,
  .taste-preview .toggle-line small {
    font-size: 12px;
  }

  .taste-preview .onboarding-heading p,
  .taste-preview .story-copy p,
  .taste-preview .page-heading > div > p:last-child,
  .taste-preview .advisor-heading > div > p:last-child,
  .taste-preview .task-copy span,
  .taste-preview .plan-summary-main > p,
  .taste-preview .today-plan-strip p,
  .taste-preview .plan-day-copy span,
  .taste-preview .plan-day-copy p,
  .taste-preview .modal > p:not(.eyebrow),
  .taste-preview .setting-help {
    font-size: 13px;
    line-height: 1.6;
  }

  .taste-preview .choice-card > strong,
  .taste-preview .study-style-choice > strong,
  .taste-preview .settings-verification-choice strong {
    font-size: 14px;
  }

  .taste-preview .study-style-choice > small,
  .taste-preview .settings-verification-choice small,
  .taste-preview .setting-disclosure > summary small {
    font-size: 12px;
    line-height: 1.5;
  }

  .taste-preview .mobile-nav {
    height: 64px;
    padding: 5px 7px;
    border-radius: 15px;
  }

  .taste-preview .mobile-nav button {
    min-height: 44px;
    font-size: 11px;
  }

  .taste-preview .mobile-nav svg {
    width: 20px;
    height: 20px;
  }

  .taste-preview .home-layout {
    padding-bottom: 0;
  }

  .taste-preview .advisor-invite {
    display: none;
  }

  .taste-preview .plan-summary-card {
    grid-template-columns: 94px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    gap: 13px 14px;
  }

  .taste-preview .plan-progress-ring {
    width: 88px;
    height: 88px;
    align-self: start;
    justify-self: start;
  }

  .taste-preview .plan-progress-ring::before {
    inset: 10px;
  }

  .taste-preview .plan-progress-ring span {
    font-size: 11px;
  }

  .taste-preview .plan-summary-main {
    min-width: 0;
  }

  .taste-preview .plan-summary-main h2 {
    max-width: 100%;
    font-size: 20px;
    line-height: 1.25;
    overflow-wrap: normal;
    word-break: keep-all;
  }

  .taste-preview .plan-ring-legend {
    gap: 5px 10px;
    font-size: 11px;
  }

  .taste-preview .plan-summary-card > .plan-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }

  .taste-preview .plan-metrics > div {
    min-width: 0;
    padding: 11px 12px;
  }

  .taste-preview .plan-metrics span {
    font-size: 12px;
  }

  .taste-preview .plan-metrics strong {
    font-size: 15px;
    white-space: nowrap;
  }

  .taste-preview .plan-day-marker,
  .taste-preview .plan-day-count span {
    font-size: 11px;
  }

  .taste-preview .plan-day-copy strong {
    font-size: 14px;
  }

  .taste-preview .timeline-expand {
    min-width: 154px;
    font-size: 12px;
  }

  .taste-preview .adjust-status-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    overflow: visible;
  }

  .taste-preview .adjust-status-chips > span {
    min-width: 0;
    min-height: 44px;
    justify-content: flex-start;
    padding: 7px 10px;
    border-radius: 7px;
    white-space: normal;
  }

  .taste-preview .adjust-status-chips > span small {
    flex: 0 0 auto;
    font-size: 12px;
  }

  .taste-preview .adjust-intent-home {
    padding: 16px 13px 13px;
  }

  .taste-preview .adjust-intent-heading h2 {
    font-size: 21px;
  }

  .taste-preview .adjust-intent-heading p,
  .taste-preview .adjust-intent-card small,
  .taste-preview .adjust-more summary > small {
    font-size: 12px;
    line-height: 1.5;
  }

  .taste-preview .adjust-intent-card {
    min-height: 92px;
  }

  .taste-preview .adjust-intent-card strong {
    font-size: 14px;
    line-height: 1.35;
  }

  .taste-preview .lookup-panel .panel-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .taste-preview .lookup-panel .dictionary-search {
    width: 100%;
    height: 48px;
  }

  .taste-preview .lookup-panel .dictionary-search input {
    min-width: 0;
    font-size: 14px;
  }

  .taste-preview .growth-tabs button,
  .taste-preview .segmented button {
    min-height: 44px;
  }

  .taste-preview .pronunciation-button {
    min-height: 44px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .taste-preview .sound-button-large {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .taste-preview .focus-exit {
    min-height: 44px;
    align-items: center;
    padding-inline: 8px;
    font-size: 13px;
  }

  .taste-preview .study-meta span,
  .taste-preview .focus-examline,
  .taste-preview .rating-row span,
  .taste-preview .result-lead,
  .taste-preview .tomorrow-question span {
    font-size: 12px;
  }

  .taste-preview .rating-row .rating-mastered {
    min-height: 54px;
  }

  .taste-preview .rating-row .rating-mastered strong {
    font-size: 14px;
  }

  .taste-preview .today-plan-strip p,
  .taste-preview .result-meta,
  .taste-preview .result-count span,
  .taste-preview .result-count small {
    font-size: 13px;
  }

  .taste-preview .tomorrow-options button,
  .taste-preview .book-award > button {
    min-height: 44px;
    font-size: 13px;
  }

  .taste-preview .wordbook-identity > p,
  .taste-preview .wordbook-page-status span,
  .taste-preview .wordbook-page-status small,
  .taste-preview .wordbook-entry-word span,
  .taste-preview .wordbook-entry-meaning,
  .taste-preview .wordbook-entry-meta small,
  .taste-preview .wordbook-entry-meta strong {
    font-size: 12px;
    line-height: 1.5;
  }

  .taste-preview .wordbook-page-head > div > span {
    font-size: 11px;
  }

  .taste-preview .wordbook-search {
    min-height: 44px;
  }

  .taste-preview .wordbook-search input {
    font-size: 14px;
  }

  .taste-preview .book-award {
    margin-top: 18px;
    padding-bottom: 13px;
  }

  .taste-preview .wordbook-stamp.is-finish {
    top: 12px;
    right: 12px;
    bottom: auto;
    left: auto;
    min-width: 0;
    max-width: 196px;
  }

  .taste-preview .settings-modal {
    padding-bottom: 0;
  }

  .taste-preview .settings-modal .setting-disclosure {
    margin-top: 10px;
  }

  .taste-preview .settings-modal .setting-disclosure > summary {
    min-height: 58px;
    padding: 11px 13px;
  }

  .taste-preview .settings-modal .setting-disclosure > summary span {
    font-size: 15px;
  }

  .taste-preview .settings-modal .setting-disclosure > summary small {
    display: none;
  }

  .taste-preview .settings-modal .setting-disclosure-body {
    padding: 0 13px 14px;
  }

  .taste-preview .settings-study-style-grid {
    gap: 9px;
  }

  .taste-preview .settings-study-style-grid .study-style-choice {
    min-height: 168px;
  }

  .taste-preview .settings-modal .settings-bottom {
    bottom: 0;
    margin-inline: -15px;
    padding: 12px 15px calc(14px + env(safe-area-inset-bottom));
  }

  .taste-preview .danger-link {
    min-height: 44px;
    font-size: 12px;
  }

  .taste-preview .settings-bottom .button {
    min-height: 44px;
  }

  .word-relearn {
    align-items: stretch;
    flex-direction: column;
  }

  .word-relearn .button {
    width: 100%;
  }

}

@media (max-width: 359px) {
  .taste-preview .plan-summary-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .taste-preview .plan-progress-ring {
    width: 78px;
    height: 78px;
  }

  .taste-preview .plan-summary-main h2 {
    font-size: 19px;
  }

  .taste-preview .adjust-status-chips {
    grid-template-columns: 1fr;
  }

  .taste-preview .adjust-intent-grid,
  .taste-preview .adjust-more-grid {
    grid-template-columns: 1fr;
  }
}

/* Motion performance pass: keep feedback, move only compositor-friendly properties. */
html {
  scroll-behavior: auto;
}

body.taste-preview *,
body.taste-preview *::before,
body.taste-preview *::after {
  transition-property: transform, opacity, color, background-color, border-color !important;
}

body.taste-preview * {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.taste-preview .workspace-top {
  background: rgba(241, 237, 227, 0.97);
}

.taste-preview .mobile-nav {
  background: rgba(13, 43, 39, 0.98);
}

.taste-preview .modal-backdrop {
  background: rgba(9, 34, 30, 0.58);
}

.onboarding-scroll-cue {
  background: rgba(13, 48, 43, 0.97);
}

.word-visual figcaption {
  background: rgba(8, 34, 35, 0.88);
}

.taste-preview .page.is-entering,
.taste-preview .focus-shell.is-entering,
.taste-preview .study-result,
.taste-preview .word-card-v2.is-entering,
.taste-preview .word-reveal,
.taste-preview .verify-stage.is-entering,
.taste-preview .task-row.is-done .task-symbol {
  animation-duration: 160ms !important;
}

.taste-preview .modal-backdrop {
  animation-duration: 110ms !important;
}

.taste-preview .modal {
  animation-duration: 160ms !important;
}

.taste-preview #overlay.is-closing .modal-backdrop,
.taste-preview #overlay.is-closing .modal {
  animation-duration: 110ms !important;
}

.taste-preview .wordbook-page.is-turning::after {
  box-shadow: none;
  animation-duration: 240ms !important;
}

.taste-preview .word-detail-modal.is-from-book {
  animation-duration: 180ms !important;
}

.taste-preview .wordbook-stamp {
  box-shadow: 0 8px 24px rgba(29, 45, 40, 0.14);
  animation-duration: 560ms !important;
}

.taste-preview .xp-stamp {
  box-shadow: 0 8px 24px rgba(29, 45, 40, 0.14);
  animation-duration: 520ms !important;
}

.taste-preview .level-badge.is-award .level-badge-medal {
  animation-duration: 420ms !important;
}

.taste-preview .word-visual.is-photo > img,
.taste-preview .word-photo-in {
  animation-duration: 180ms !important;
}

.taste-preview .search-loading span {
  animation-iteration-count: 3 !important;
}

.onboarding-scroll-cue svg {
  animation-iteration-count: 3 !important;
}

.taste-preview .xp-progress i {
  transform-origin: left center;
  animation-duration: 320ms !important;
}

@keyframes stamp-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(1.08) rotate(-3deg);
  }
  35% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(-2deg);
  }
  78% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(-2deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -10px, 0) scale(.985) rotate(0);
  }
}

@keyframes xp-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes level-seal-settle {
  0% {
    opacity: 0;
    transform: scale(.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes wordbook-page-sheet {
  0% {
    opacity: .8;
    transform: translate3d(0, 0, 0) scaleX(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(-12px, 0, 0) scaleX(.985);
  }
}

@keyframes wordbook-detail-open {
  0% {
    opacity: 0;
    transform: translate3d(12px, 0, 0) scale(.99);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes wordbook-stamp-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(1.04);
  }
  30% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  78% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -8px, 0) scale(.99);
  }
}

/* Automatic compatibility mode for Edge and devices that cannot sustain full motion. */
html.motion-lite body.taste-preview *,
html.motion-lite body.taste-preview *::before,
html.motion-lite body.taste-preview *::after {
  transition:
    opacity 90ms linear,
    color 90ms linear,
    background-color 90ms linear,
    border-color 90ms linear !important;
}

html.motion-lite .page.is-entering,
html.motion-lite .study-result,
html.motion-lite .word-card-v2.is-entering,
html.motion-lite .word-reveal,
html.motion-lite .verify-stage.is-entering,
html.motion-lite .task-row.is-done .task-symbol,
html.motion-lite .modal-backdrop,
html.motion-lite .modal,
html.motion-lite #overlay.is-closing .modal-backdrop,
html.motion-lite #overlay.is-closing .modal,
html.motion-lite .word-detail-modal.is-from-book,
html.motion-lite .wordbook-stamp,
html.motion-lite .xp-stamp,
html.motion-lite .word-visual.is-photo > img {
  animation-name: motion-fade-in !important;
  animation-duration: 100ms !important;
  animation-timing-function: linear !important;
}

html.motion-lite .wordbook-page.is-turning::after {
  animation: motion-fade-out 100ms linear both !important;
}

html.motion-lite .level-badge.is-award .level-badge-medal,
html.motion-lite .search-loading span,
html.motion-lite .onboarding-scroll-cue svg,
html.motion-lite .gt-pin::before {
  animation: none !important;
}

html.motion-lite .gt-card,
html.motion-lite .gt-spot,
html.motion-lite .gt-ring {
  transition: opacity 90ms linear !important;
}

html.motion-lite .page.is-entering,
html.motion-lite .focus-shell.is-entering,
html.motion-lite .gt-card {
  animation: none !important;
}

html.motion-minimal body.taste-preview *,
html.motion-minimal body.taste-preview *::before,
html.motion-minimal body.taste-preview *::after {
  transition: none !important;
  animation: none !important;
}

html.motion-minimal .page.is-entering,
html.motion-minimal .focus-shell.is-entering,
html.motion-minimal .word-card-v2.is-entering,
html.motion-minimal .verify-stage.is-entering,
html.motion-minimal .task-row.is-done .task-symbol,
html.motion-minimal .study-result,
html.motion-minimal .word-reveal,
html.motion-minimal #overlay.is-closing .modal-backdrop,
html.motion-minimal #overlay.is-closing .modal,
html.motion-minimal .word-detail-modal.is-from-book,
html.motion-minimal .wordbook-page.is-turning::after,
html.motion-minimal .wordbook-stamp,
html.motion-minimal .xp-stamp {
  opacity: 1 !important;
  transform: none !important;
}

@keyframes motion-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes motion-fade-out {
  from {
    opacity: .8;
  }
  to {
    opacity: 0;
  }
}

/* Guidetour is the interaction layer only; this palette keeps it inside the
   same paper-and-ink system as the rest of the product. */
:root {
  --gt-paper: #f8f5eb;
  --gt-ink: #173f3c;
  --gt-ink-2: #61716b;
  --gt-line: #d7d0c0;
  --gt-code: #e8efe9;
  --gt-accent: #c8a330;
  --gt-accent-2: #f0d36f;
  --gt-accent-deep: #6f5717;
  --gt-dim: rgba(8, 32, 29, 0.8);
  --gt-cost-bg: #f6e9b8;
  --gt-cost-fg: #604a0c;
  --gt-privacy-bg: #e2ece9;
  --gt-privacy-fg: #244c45;
  --gt-req-bg: #f5e2d9;
  --gt-req-fg: #6a3324;
  --gt-tip-bg: #e7f0e5;
  --gt-tip-fg: #244b2b;
  --gt-display: var(--font-display);
  --gt-ui: var(--font-ui);
  --gt-mono: var(--font-ui);
}

.taste-preview .rail-guide {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 13px;
  border-radius: 10px;
  color: #ead583;
  background: rgba(230, 196, 74, 0.08);
  font-size: 12px;
  text-align: left;
}

.taste-preview .rail-account {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 13px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  text-align: left;
}

.taste-preview .rail-account:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.taste-preview .rail-account svg {
  width: 18px;
  height: 18px;
}

.taste-preview .rail-guide:hover {
  color: #fff6bf;
  background: rgba(230, 196, 74, 0.14);
}

.taste-preview .rail-guide svg {
  width: 18px;
  height: 18px;
}

.taste-preview .settings-guide-button {
  width: 100%;
  margin-top: 8px;
}

.taste-preview .settings-account-button {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.taste-preview .settings-account-button svg {
  width: 18px;
  height: 18px;
}

.taste-preview .settings-account-status {
  margin: 7px 1px 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.account-modal {
  width: min(calc(100% - 30px), 540px);
}

.account-modal-body {
  display: grid;
  gap: 15px;
  margin-top: 18px;
}

.account-modal-body.is-busy {
  opacity: 0.58;
  pointer-events: none;
}

.account-local-note,
.account-login-copy,
.account-profile {
  border: 1px solid var(--line);
  border-radius: 4px 13px 4px 4px;
  background: var(--paper);
}

.account-local-note,
.account-login-copy {
  padding: 15px;
}

.account-local-note strong,
.account-local-note span,
.account-login-copy strong,
.account-login-copy span {
  display: block;
}

.account-local-note strong,
.account-login-copy strong {
  color: var(--ink-deep);
  font-size: 15px;
}

.account-local-note span,
.account-login-copy span {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.account-phone-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.account-auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: color-mix(in srgb, var(--paper) 78%, var(--line-soft));
}

.account-auth-switch button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  color: var(--ink-soft);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.account-auth-switch button.is-selected {
  color: var(--ink-deep);
  background: #fffdf7;
  box-shadow: 0 2px 10px rgba(27, 56, 50, 0.08);
}

.account-auth-switch button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.account-password-form {
  display: grid;
  gap: 12px;
}

.account-password-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 2px;
}

.account-bind-phone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 4px 12px 4px 4px;
  background: var(--paper);
}

.account-bind-phone > .button {
  min-height: 46px;
  align-self: end;
}

.account-turnstile {
  min-height: 65px;
  overflow: hidden;
  border-radius: 7px;
}

.account-field {
  display: grid;
  gap: 6px;
}

.account-field > span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.account-field input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
  background: #fffdf7;
  font-size: 16px;
}

.account-field input:focus {
  border-color: var(--ink-soft);
  box-shadow: 0 0 0 3px rgba(42, 94, 84, 0.1);
}

.account-phone-login > .button {
  min-height: 46px;
  align-self: end;
}

.account-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 12px;
}

.account-divider::before,
.account-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.account-oauth-actions,
.account-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.account-privacy-note,
.account-conflict > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.account-bottom {
  display: flex;
  justify-content: flex-end;
  margin-top: 17px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.account-profile {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.account-profile .account-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 4px 12px 4px 4px;
  color: #f9f5e8;
  background: var(--ink-deep);
}

.account-profile .account-avatar svg {
  width: 23px;
  height: 23px;
}

.account-profile strong,
.account-profile small {
  display: block;
}

.account-profile strong {
  color: var(--ink-deep);
  font-size: 16px;
}

.account-profile small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 12px;
}

.account-identities {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.account-identities span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 12px;
}

.account-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-account-actions .account-delete {
  min-height: 44px;
  margin-left: auto;
  padding-inline: 5px;
  color: var(--red);
  font-size: 12px;
}

.account-choice {
  grid-template-columns: 1fr;
}

.account-choice .button {
  display: grid;
  min-height: 68px;
  gap: 4px;
  text-align: left;
}

.account-choice .button strong,
.account-choice .button span {
  display: block;
}

.account-choice .button span {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.72;
}

.account-later {
  width: 100%;
  margin-top: 8px;
}

.gt-layer {
  pointer-events: none;
}

.gt-layer .gt-spot {
  box-shadow: none !important;
}

.gt-layer .gt-spot.gt-lock {
  box-shadow: none !important;
}

.gt-pavers {
  position: fixed;
  z-index: calc(var(--gt-z) - 1);
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}

.gt-paver {
  position: fixed;
  display: block;
  background: var(--gt-dim);
  pointer-events: none;
}

.gt-layer.gt-off .gt-pavers {
  display: none;
}

.taste-preview.gt-guide-locked {
  overscroll-behavior: none;
  scrollbar-width: none;
}

html.gt-page-locked,
html.gt-page-locked body {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

html.gt-page-locked {
  scroll-behavior: auto !important;
}

html.gt-page-locked .workspace-top,
html.gt-page-locked .mobile-nav,
html.gt-page-locked .onboarding-scroll-cue {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

.taste-preview.gt-guide-locked::-webkit-scrollbar {
  display: none;
}

.taste-preview.gt-guide-locked .workspace {
  touch-action: none;
}

.gt-layer .gt-spot,
.gt-layer .gt-ring {
  transition: none !important;
}

.gt-layer .gt-card {
  touch-action: manipulation;
  will-change: opacity, transform;
  backface-visibility: hidden;
  transition: opacity 100ms linear !important;
}

.gt-layer .gt-card.gt-enter {
  opacity: 0;
  transform: none;
}

.gt-layer .gt-card,
.gt-layer .gt-dock,
.gt-layer .gt-pin,
.gt-layer .gt-welcome {
  pointer-events: auto;
}

.gt-layer .gt-card {
  border: 1px solid rgba(23, 63, 60, 0.22);
  border-left: 5px solid var(--gt-accent);
  border-radius: 4px 18px 4px 4px;
  box-shadow:
    0 24px 60px -18px rgba(4, 24, 22, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.gt-layer .gt-top {
  text-transform: none;
  letter-spacing: 0.06em;
}

.gt-layer .gt-area {
  border-radius: 4px;
  color: var(--gt-paper);
  background: var(--gt-ink);
}

.gt-layer .gt-title {
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.gt-layer .gt-btn,
.gt-layer .gt-x {
  min-height: 44px;
}

.gt-layer .gt-btn {
  min-width: 92px;
  border-radius: 5px !important;
}

.gt-layer .gt-btn.gt-p,
.gt-layer .gt-wopt.gt-p {
  background: var(--gt-ink) !important;
  color: var(--gt-paper) !important;
}

.gt-layer .gt-w {
  border: 1px solid rgba(23, 63, 60, 0.2);
  border-radius: 4px 22px 4px 4px;
}

.gt-layer .gt-w h1 {
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.gt-layer .gt-w h1 em {
  color: var(--gt-accent-deep);
}

.gt-layer .gt-wopt {
  min-height: 76px;
  border-radius: 4px 12px 4px 4px !important;
}

.gt-layer .gt-wopt[data-w="explore"],
.gt-layer .gt-dock {
  display: none !important;
}

.gt-layer .gt-wopts {
  grid-template-columns: 1fr;
}

.gt-layer .gt-welcome .gt-legend {
  display: none;
}

.gt-layer .gt-skip {
  width: fit-content;
  min-height: 44px;
  align-self: center;
  padding: 0 14px;
  color: var(--gt-ink-2);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.gt-layer.gt-off .gt-welcome {
  display: none;
}

.gt-layer:has(.gt-welcome:not([hidden])) .gt-pins,
.gt-layer:has(.gt-welcome:not([hidden])) .gt-dock,
.gt-layer:has(.gt-card:not([hidden])) .gt-dock,
.gt-layer.gt-off .gt-dock {
  display: none;
}

.gt-layer .gt-dock.gt-float {
  right: auto;
  bottom: 18px;
  left: calc(var(--rail) + 20px);
  padding: 7px 9px;
  border: 1px solid rgba(236, 211, 127, 0.25);
  border-radius: 4px 14px 4px 4px;
  background: #173f3c;
}

.gt-layer .gt-seg {
  background: rgba(255, 255, 255, 0.09);
}

.gt-layer .gt-seg button {
  min-height: 36px;
  border-radius: 4px;
}

.gt-layer .gt-seg button[aria-pressed="true"] {
  color: #183d39;
  background: #f2d66e;
}

.gt-layer:has(.gt-seg button[data-m="tour"][aria-pressed="true"]) .gt-pins {
  display: none;
}

@media (max-width: 860px) {
  .gt-layer .gt-card.gt-sheet {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px !important;
    width: auto;
    max-height: var(--gt-card-max-height, min(64dvh, 620px));
    overflow-y: hidden;
    overscroll-behavior-y: auto;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    padding: 16px 16px calc(12px + env(safe-area-inset-bottom));
    border-left-width: 4px;
    border-radius: 16px 16px 4px 4px;
  }

  .gt-layer .gt-card.gt-sheet.gt-size-1 {
    gap: 9px;
    padding: 14px 14px calc(10px + env(safe-area-inset-bottom));
  }

  .gt-layer .gt-card.gt-sheet.gt-size-1 .gt-title {
    font-size: 27px;
  }

  .gt-layer .gt-card.gt-sheet.gt-size-1 .gt-body {
    font-size: 13.5px;
    line-height: 1.45;
  }

  .gt-layer .gt-card.gt-sheet.gt-size-1 .gt-steps li,
  .gt-layer .gt-card.gt-sheet.gt-size-1 .gt-note {
    font-size: 12.5px;
    line-height: 1.4;
  }

  .gt-layer .gt-card.gt-sheet.gt-size-1 .gt-foot {
    margin: 0 -14px calc(-10px - env(safe-area-inset-bottom));
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  }

  .gt-layer .gt-card.gt-sheet.gt-size-2 {
    gap: 7px;
    padding: 12px 12px calc(8px + env(safe-area-inset-bottom));
  }

  .gt-layer .gt-card.gt-sheet.gt-size-2 .gt-title {
    font-size: 23px;
  }

  .gt-layer .gt-card.gt-sheet.gt-size-2 .gt-body {
    font-size: 12.5px;
    line-height: 1.4;
  }

  .gt-layer .gt-card.gt-sheet.gt-size-2 .gt-steps {
    gap: 5px;
  }

  .gt-layer .gt-card.gt-sheet.gt-size-2 .gt-steps li,
  .gt-layer .gt-card.gt-sheet.gt-size-2 .gt-note {
    font-size: 11.5px;
    line-height: 1.35;
  }

  .gt-layer .gt-card.gt-sheet.gt-size-2 .gt-note {
    padding: 7px 9px;
  }

  .gt-layer .gt-card.gt-sheet.gt-size-2 .gt-foot {
    margin: 0 -12px calc(-8px - env(safe-area-inset-bottom));
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  }

  .gt-layer .gt-card.gt-sheet.gt-size-3 {
    gap: 6px;
    padding: 10px 11px calc(7px + env(safe-area-inset-bottom));
  }

  .gt-layer .gt-card.gt-sheet.gt-size-3 .gt-top {
    font-size: 9px;
  }

  .gt-layer .gt-card.gt-sheet.gt-size-3 .gt-title {
    font-size: 20px;
  }

  .gt-layer .gt-card.gt-sheet.gt-size-3 .gt-body,
  .gt-layer .gt-card.gt-sheet.gt-size-3 .gt-steps li,
  .gt-layer .gt-card.gt-sheet.gt-size-3 .gt-note {
    font-size: 10.8px;
    line-height: 1.3;
  }

  .gt-layer .gt-card.gt-sheet.gt-size-3 .gt-steps li::before {
    width: 17px;
    height: 17px;
    font-size: 9px;
  }

  .gt-layer .gt-card.gt-sheet.gt-size-3 .gt-foot {
    margin: 0 -11px calc(-7px - env(safe-area-inset-bottom));
    padding: 7px 11px calc(7px + env(safe-area-inset-bottom));
  }

  .gt-layer .gt-card.gt-sheet.gt-size-4 {
    gap: 5px;
    padding: 9px 10px calc(6px + env(safe-area-inset-bottom));
  }

  .gt-layer .gt-card.gt-sheet.gt-size-4 .gt-title {
    font-size: 18px;
  }

  .gt-layer .gt-card.gt-sheet.gt-size-4 .gt-body,
  .gt-layer .gt-card.gt-sheet.gt-size-4 .gt-steps li,
  .gt-layer .gt-card.gt-sheet.gt-size-4 .gt-note {
    font-size: 10px;
    line-height: 1.25;
  }

  .gt-layer .gt-card.gt-sheet.gt-size-4 .gt-foot {
    margin: 0 -10px calc(-6px - env(safe-area-inset-bottom));
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
  }

  .gt-layer .gt-card.gt-sheet .gt-foot {
    position: sticky;
    z-index: 2;
    bottom: calc(-12px - env(safe-area-inset-bottom));
    margin: 0 -16px calc(-12px - env(safe-area-inset-bottom));
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--gt-paper);
  }

  .gt-layer .gt-card.gt-sheet .gt-title {
    padding-right: 34px;
  }

  body:has(.gt-layer .gt-card:not([hidden])) .mobile-nav {
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 14px));
    transition:
      opacity 160ms ease,
      transform 220ms ease;
  }

  .taste-preview:has(.gt-layer .gt-card:not([hidden])) .workspace {
    padding-bottom: calc(78vh + env(safe-area-inset-bottom));
  }

  .taste-preview.gt-nav-target:has(.gt-layer .gt-card:not([hidden])) .mobile-nav {
    opacity: 1;
    transform: none;
  }

  .taste-preview.gt-nav-target .gt-card.gt-sheet {
    bottom: calc(84px + env(safe-area-inset-bottom));
    max-height: min(42dvh, 390px);
  }

  .gt-layer .gt-title {
    font-size: 25px;
  }

  .gt-layer .gt-body,
  .gt-layer .gt-steps li,
  .gt-layer .gt-note {
    font-size: 14px;
    line-height: 1.55;
  }

  .gt-layer .gt-dock.gt-float {
    right: 10px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    left: 10px;
    width: auto;
    max-width: none;
    justify-content: space-between;
    padding: 6px;
  }

  .gt-layer .gt-dock label {
    display: none;
  }

  .gt-layer .gt-seg {
    flex: 1 1 auto;
  }

  .gt-layer .gt-seg button {
    min-width: 0;
    flex: 1 1 0;
    padding-inline: 5px;
    font-size: 11.5px;
  }

  .gt-layer .gt-prog {
    flex: 0 0 auto;
    font-size: 10.5px;
  }

  .gt-layer .gt-w {
    padding: 24px 18px;
    border-radius: 4px 20px 4px 4px;
  }

  .gt-layer .gt-w h1 {
    font-size: 34px;
  }

  .gt-layer .gt-w p {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .taste-preview .rail-guide,
  .taste-preview .rail-account,
  .taste-preview .rail-settings {
    display: none;
  }

  .account-phone-login {
    grid-template-columns: 1fr;
  }

  .account-bind-phone {
    grid-template-columns: 1fr;
  }

  .account-phone-login > .button,
  .account-bind-phone > .button {
    width: 100%;
  }

  .account-oauth-actions {
    grid-template-columns: 1fr;
  }

  .account-account-actions .button,
  .account-account-actions .account-delete,
  .account-bottom > .button {
    width: 100%;
  }

  .taste-preview .home-account-strip {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .taste-preview .home-account-icon {
    width: 38px;
    height: 38px;
  }

  .taste-preview .home-account-strip > button {
    width: 100%;
    grid-column: 1 / -1;
  }
}
