:root {
  --paper: #f5f2eb;
  --paper-deep: #eeeae1;
  --surface: #fffefa;
  --surface-soft: #f8f7f1;
  --ink: #263432;
  --ink-soft: #52615e;
  --muted: #87918a;
  --line: #e7e4da;
  --forest: #314e49;
  --forest-2: #42645c;
  --sage: #dce7dd;
  --sage-deep: #789487;
  --coral: #d58d78;
  --coral-pale: #f5e5dd;
  --lavender: #c2bdd5;
  --lavender-pale: #eeebf5;
  --gold: #ddc18a;
  --shadow: 0 22px 60px rgba(50, 64, 57, .08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, a { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(89, 128, 115, .55); outline-offset: 3px; }
.page-grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .18; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E"); }
.app-shell { width: min(1160px, calc(100% - 64px)); margin: 0 auto; }
.topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(84, 101, 94, .13); position: relative; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 190px; }
.brand-mark { width: 30px; height: 30px; position: relative; display: inline-block; }
.brand-mark i { position: absolute; width: 18px; height: 18px; border-radius: 6px 10px 6px 10px; background: var(--forest); top: 2px; left: 2px; transform: rotate(-16deg); }
.brand-mark b { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: var(--coral); right: 1px; top: 4px; border: 2px solid var(--paper); }
.brand-mark em { position: absolute; width: 10px; height: 10px; border-radius: 3px; background: var(--gold); bottom: 1px; left: 10px; transform: rotate(25deg); border: 2px solid var(--paper); }
.brand-word { font: 800 24px/1 "Manrope", sans-serif; letter-spacing: -1.6px; }
.brand-word > span, .footer-dot { color: var(--coral); }
.main-nav { display: flex; align-items: center; gap: 7px; padding: 5px; border: 1px solid rgba(84, 101, 94, .12); border-radius: 999px; background: rgba(255, 254, 250, .54); }
.nav-link { border: 0; background: transparent; padding: 10px 16px; border-radius: 999px; color: #74807a; font-size: 12px; font-weight: 700; cursor: pointer; transition: .2s ease; }
.nav-link:hover { color: var(--forest); }
.nav-link.active { color: var(--surface); background: var(--forest); box-shadow: 0 4px 12px rgba(49, 78, 73, .16); }
.nav-count { display: inline-flex; align-items: center; justify-content: center; margin-left: 4px; width: 17px; height: 17px; border-radius: 50%; background: rgba(255,255,255,.2); font-size: 9px; }
.topbar-note { min-width: 190px; display: flex; justify-content: flex-end; align-items: center; gap: 8px; color: #88918b; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #92aa91; box-shadow: 0 0 0 4px rgba(146,170,145,.15); }
.mobile-menu { display: none; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.mobile-menu span { display: block; height: 2px; width: 21px; background: var(--forest); margin: 5px 0; transition: .2s; }
.main-content { min-height: calc(100vh - 88px); outline: none; }
.view { padding: 56px 0 0; animation: fade-up .35s ease both; }
.view[hidden] { display: none !important; }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.home-intro { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; gap: 30px; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 9px; letter-spacing: .17em; font-weight: 700; color: #8a948d; }
.eyebrow-line { width: 22px; height: 1px; background: var(--coral); display: inline-block; }
h1, h2, h3, p { margin-top: 0; }
.home-intro h1 { margin: 17px 0 13px; font: 600 clamp(38px, 4.6vw, 57px)/1.12 "Manrope", sans-serif; letter-spacing: -2.6px; color: #293a36; }
.home-intro h1 span { color: #81978b; font-weight: 500; }
.intro-description { color: #77827b; font-size: 13px; line-height: 1.75; max-width: 430px; margin: 0; }
.today-stamp { width: 180px; min-width: 180px; height: 128px; border: 1px solid #e6e1d5; border-radius: 17px; background: rgba(255,254,250,.58); padding: 17px 18px; display: flex; flex-direction: column; align-items: flex-start; position: relative; overflow: hidden; margin-bottom: 4px; }
.stamp-label { font-size: 8px; letter-spacing: .15em; color: #9a9d90; font-weight: 700; }
.today-stamp strong { font: 700 21px/1.2 "Manrope", sans-serif; margin-top: 13px; letter-spacing: -.7px; text-transform: capitalize; z-index: 1; }
.today-stamp > span:nth-of-type(2) { color: #838c83; font-size: 11px; margin-top: 3px; z-index: 1; }
.stamp-orbit { width: 72px; height: 72px; border: 1px solid #e6d8c4; border-radius: 50%; position: absolute; right: -23px; top: 43px; }
.stamp-orbit::before, .stamp-orbit::after { content: ""; position: absolute; border: 1px solid #e9ddd0; border-radius: 50%; inset: 9px; }
.stamp-orbit::after { inset: 19px; background: #f0e4d4; opacity: .6; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(270px, .83fr); gap: 18px; }
.daily-card { min-height: 355px; border-radius: var(--radius-xl); background: var(--forest); position: relative; overflow: hidden; padding: 30px 34px; color: #fffdf8; display: flex; box-shadow: 0 18px 36px rgba(49, 78, 73, .13); isolation: isolate; }
.daily-card::after { content: ""; position: absolute; width: 310px; height: 310px; border: 1px solid rgba(231, 224, 207, .13); border-radius: 50%; top: -188px; right: 65px; z-index: -1; }
.daily-card-content { position: relative; z-index: 2; max-width: 340px; }
.daily-topline { display: flex; align-items: center; gap: 18px; }
.daily-tag { display: inline-flex; gap: 7px; align-items: center; color: #e9d3ae; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.tag-spark { color: #e4bb7d; font-size: 15px; }
.daily-index { color: rgba(240,244,231,.42); font-size: 8px; letter-spacing: .12em; }
.daily-index b { color: #d7c99e; font-weight: 700; }
.daily-overline { margin: 34px 0 9px; color: rgba(238,242,230,.54); font-size: 8px; letter-spacing: .16em; font-weight: 700; }
.daily-card h2 { margin: 0; font: 600 34px/1.06 "Manrope", sans-serif; letter-spacing: -1.2px; }
.daily-description { color: rgba(242,244,233,.69); font-size: 11px; line-height: 1.7; max-width: 260px; margin: 13px 0 17px; }
.daily-meta { display: flex; gap: 12px; align-items: center; color: rgba(242,244,233,.65); font-size: 9px; margin-bottom: 22px; }
.daily-meta span { display: inline-flex; align-items: center; gap: 5px; }
.daily-meta svg { width: 14px; height: 14px; fill: none; stroke: #c6d0c0; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.daily-meta > i { width: 3px; height: 3px; border-radius: 50%; background: rgba(242,244,233,.35); }
.primary-button { background: #e9cda1; color: #344740; border: 0; border-radius: 999px; padding: 12px 18px; font-size: 11px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 42px; transition: transform .2s, background .2s, box-shadow .2s; box-shadow: 0 7px 16px rgba(22, 38, 33, .12); }
.primary-button:hover:not(:disabled) { transform: translateY(-2px); background: #f0d9b5; box-shadow: 0 10px 20px rgba(22,38,33,.17); }
.primary-button:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }
.primary-button span { font-size: 16px; line-height: 10px; }
.daily-art { position: absolute; inset: 0 0 0 auto; width: 48%; pointer-events: none; }
.art-grid { position: absolute; right: 0; top: 0; width: 100%; height: 100%; opacity: .1; background-image: linear-gradient(rgba(235,235,220,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(235,235,220,.35) 1px, transparent 1px); background-size: 29px 29px; mask-image: linear-gradient(90deg, transparent, black 55%); }
.art-sphere { position: absolute; width: 174px; height: 174px; border-radius: 50%; right: 68px; top: 75px; background: radial-gradient(circle at 30% 24%, #f2dfbd 0%, #dfb88f 21%, #b77c68 56%, #805f5b 100%); box-shadow: inset -18px -19px 27px rgba(54,51,52,.2), inset 11px 9px 20px rgba(255,241,209,.46), 18px 23px 32px rgba(18,33,30,.28); transform: rotate(-18deg); }
.sphere-shine { position: absolute; width: 48px; height: 23px; border-radius: 50%; background: rgba(255,248,228,.48); filter: blur(6px); top: 26px; left: 31px; transform: rotate(-35deg); }
.art-orbit { position: absolute; border: 1px solid rgba(225,218,189,.48); border-radius: 50%; width: 245px; height: 88px; right: 32px; top: 116px; transform: rotate(-29deg); }
.orbit-two { width: 270px; height: 100px; right: 20px; top: 112px; transform: rotate(32deg); border-color: rgba(225,218,189,.21); }
.art-cube { position: absolute; width: 61px; height: 61px; background: linear-gradient(140deg, #b8c1a9, #738c7c); right: 209px; top: 215px; transform: rotate(32deg) skew(-7deg,-7deg); border-radius: 7px; box-shadow: 10px 12px 18px rgba(21,37,32,.22); }
.art-cube::before { content: ""; position: absolute; width: 100%; height: 15px; top: -12px; left: 5px; background: #d4d8bd; transform: skewX(-43deg); border-radius: 4px 5px 0 0; }
.art-cube::after { content: ""; position: absolute; width: 13px; height: 100%; top: -6px; right: -12px; background: #5e7a70; transform: skewY(-43deg); border-radius: 0 4px 4px 0; }
.art-cube span { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: rgba(245,238,211,.8); top: 22px; left: 22px; z-index: 1; }
.art-caption { position: absolute; right: 26px; bottom: 24px; font: 700 7px/1.5 "Manrope", sans-serif; color: rgba(236,231,208,.5); letter-spacing: .17em; text-align: right; }
.art-small-dot { position: absolute; width: 9px; height: 9px; top: 66px; right: 49px; border-radius: 50%; background: #e0c28c; box-shadow: 0 0 0 6px rgba(224,194,140,.1); }
.side-column { display: grid; gap: 14px; grid-template-rows: 1fr auto; }
.reminder-card { background: #ece5d9; border-radius: var(--radius-lg); padding: 22px 22px 17px; position: relative; overflow: hidden; min-height: 207px; }
.reminder-card::before { content: ""; position: absolute; width: 115px; height: 115px; border: 1px solid rgba(186,143,115,.2); border-radius: 50%; right: -49px; top: 34px; }
.reminder-icon { width: 31px; height: 31px; border-radius: 10px; background: rgba(255,254,250,.62); display: grid; place-items: center; margin-bottom: 14px; }
.reminder-icon svg { width: 17px; height: 17px; fill: none; stroke: #a77b68; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.reminder-label { color: #a28672; font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.reminder-card h3 { max-width: 215px; font: 700 18px/1.22 "Manrope", sans-serif; letter-spacing: -.55px; margin: 8px 0 7px; color: #4b5149; }
.reminder-card p { font-size: 10px; color: #85877d; line-height: 1.6; max-width: 220px; margin: 0; }
.reminder-footer { display: flex; gap: 6px; align-items: center; color: #a18d79; font-size: 8px; font-weight: 600; margin-top: 13px; }
.tiny-spark { color: #c18c74; font-size: 13px; }
.progress-card { border: 1px solid #e6e2d8; border-radius: var(--radius-lg); background: rgba(255,254,250,.62); padding: 17px 20px 15px; }
.progress-heading, .progress-foot { display: flex; align-items: center; justify-content: space-between; }
.progress-heading { font-size: 8px; letter-spacing: .13em; color: #8e9890; font-weight: 700; }
.progress-date { color: #b2a38b; }
.progress-number-row { display: flex; align-items: baseline; gap: 9px; margin-top: 9px; }
.progress-number-row strong { font: 700 27px/1 "Manrope", sans-serif; letter-spacing: -1px; }
.progress-number-row strong span { font-size: 14px; color: #9da49b; font-weight: 500; }
.progress-caption { color: #89928a; font-size: 9px; }
.progress-track { height: 5px; border-radius: 8px; background: #e9e9df; overflow: hidden; margin: 12px 0 11px; }
.progress-track span { display: block; width: 0; height: 100%; background: #839a89; border-radius: 8px; transition: width .35s ease; }
.progress-foot { color: #a0a69e; font-size: 9px; }
.text-button { padding: 0; background: none; border: 0; color: #6b8275; font-size: 9px; font-weight: 700; cursor: pointer; }
.text-button span { font-size: 13px; margin-left: 3px; }
.how-section { padding: 64px 0 25px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 19px; }
.section-heading h2 { font: 600 26px/1.2 "Manrope", sans-serif; letter-spacing: -.9px; margin: 10px 0 0; }
.section-note { color: #9ba39b; font-size: 10px; padding-bottom: 3px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.step-card { border: 1px solid #e9e5db; background: rgba(255,254,250,.48); min-height: 153px; border-radius: 17px; padding: 18px 20px; position: relative; overflow: hidden; }
.step-number { position: absolute; right: 18px; top: 17px; font: 700 9px "Manrope", sans-serif; color: #b7bdb3; letter-spacing: .1em; }
.step-icon { width: 35px; height: 35px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 13px; }
.step-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-book { color: #789184; background: #e1e9df; }
.icon-check { color: #b47f6d; background: #f3e6de; }
.icon-loop { color: #8b83a7; background: #ece9f2; }
.step-card h3 { font: 700 13px "Manrope", sans-serif; margin: 0 0 5px; }
.step-card p { color: #89938b; font-size: 10px; line-height: 1.6; max-width: 230px; margin: 0; }
.site-footer { border-top: 1px solid rgba(84,101,94,.13); padding: 22px 0 27px; display: flex; justify-content: space-between; color: #64756b; font: 700 9px "Manrope", sans-serif; letter-spacing: .04em; }
.footer-muted { color: #a0a79e; font: 400 9px "DM Sans", sans-serif; margin-left: 4px; }
.site-footer > span:last-child { color: #a6aaa0; font-size: 7px; letter-spacing: .13em; }
.footer-star { color: var(--coral); font-size: 12px; margin-left: 4px; }

/* Quiz */
.quiz-view { padding-top: 29px; }
.quiz-topline { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(84,101,94,.12); padding-bottom: 17px; }
.back-button { display: inline-flex; gap: 9px; align-items: center; border: 0; background: transparent; color: #738078; cursor: pointer; font-size: 10px; font-weight: 700; padding: 7px 0; }
.back-button span { font-size: 16px; color: var(--forest-2); transition: transform .2s; }
.back-button:hover span { transform: translateX(-3px); }
.quiz-mode-label { color: #8e9a90; font-size: 8px; letter-spacing: .16em; font-weight: 700; }
.quiz-date { color: #a7a89c; font-size: 9px; letter-spacing: .06em; }
.quiz-layout { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(0, 650px) minmax(110px, 1fr); gap: 24px; align-items: center; padding: 43px 0 28px; }
.quiz-side-note, .quiz-right-note { color: #a1a79d; font: 700 8px/1.7 "Manrope", sans-serif; letter-spacing: .14em; align-self: center; }
.side-note-mark { display: block; color: var(--coral); font-size: 20px; margin-bottom: 11px; }
.side-note-line { width: 28px; height: 1px; background: #d5bca6; margin: 14px 0 10px; }
.quiz-side-note small { color: #c0b6a5; font-size: 7px; }
.quiz-right-note { display: flex; align-items: center; flex-direction: column; text-align: center; gap: 11px; }
.mini-orb { width: 55px; height: 55px; border-radius: 50%; background: radial-gradient(circle at 31% 26%, #f7e7cc, #d9b795 35%, #9b817b 78%, #6d7168); box-shadow: inset -7px -7px 13px rgba(62,58,56,.2), 5px 9px 15px rgba(74,81,68,.12); position: relative; }
.mini-orb::after { content: ""; position: absolute; width: 74px; height: 25px; left: -10px; top: 15px; border: 1px solid #c9bba8; border-radius: 50%; transform: rotate(-26deg); }
.question-card { border: 1px solid #e8e5dc; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.question-progress-row { display: flex; justify-content: space-between; padding: 20px 26px 12px; color: #9aa39a; font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.question-progress-row b { color: var(--forest); }
.question-progress-row i { font-style: normal; color: #b7bdb5; }
.question-progress-label { color: #b0b4a8; font-size: 7px; }
.question-progress-track { height: 2px; background: #eeeee8; margin: 0 26px; }
.question-progress-track span { display: block; height: 100%; background: var(--coral); transition: width .3s ease; }
.question-body { padding: 28px 40px 29px; position: relative; z-index: 1; }
.word-meta { display: flex; align-items: center; gap: 10px; }
.word-kind { background: #edf1eb; color: #7b9382; padding: 5px 8px; border-radius: 5px; font-size: 7px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.word-index { color: #b4b9ae; font-size: 7px; font-weight: 700; letter-spacing: .1em; }
.question-body h1 { font: 700 clamp(40px, 6vw, 55px)/1.08 "Manrope", sans-serif; letter-spacing: -2px; margin: 17px 0 5px; color: #2b3c37; }
.word-period { color: var(--coral); }
.question-instruction { color: #89938b; font-size: 11px; margin: 0 0 21px; }
.mini-quiz-note { display:inline-flex; align-items:center; margin:0 0 10px; padding:7px 10px; border:1px solid rgba(120,148,135,.2); border-radius:9px; background:rgba(232,238,228,.55); color:#718579; font-size:9px; line-height:1.5; }
.answer-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.answer-option { border: 1px solid #e8e9e1; border-radius: 12px; background: #fffefa; min-height: 54px; padding: 9px 13px; display: flex; align-items: center; gap: 11px; text-align: left; cursor: pointer; transition: border .18s, background .18s, transform .18s, opacity .18s; }
.answer-option:not(:disabled):hover { border-color: #9fb3a3; background: #f8faf5; transform: translateY(-1px); }
.option-letter { display: grid; place-items: center; flex: 0 0 25px; width: 25px; height: 25px; border-radius: 8px; background: #f1f1e9; color: #9aa198; font: 700 9px "Manrope", sans-serif; }
.option-text { color: #59665e; font-size: 10px; line-height: 1.4; font-weight: 600; flex: 1; }
.option-state { width: 17px; height: 17px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: transparent; }
.answer-option.is-selected { border-color: #789688; background: #eff4ee; box-shadow: 0 0 0 2px rgba(120,150,136,.08); }
.answer-option.is-selected .option-letter { background: #d9e5d9; color: #527263; }
.answer-option.is-correct { border-color: #89a58e; background: #eef5ed; }
.answer-option.is-correct .option-letter { color: #52755c; background: #dbe9dc; }
.answer-option.is-correct .option-state { color: #5e8966; }
.answer-option.is-wrong { border-color: #d9a091; background: #fbefea; }
.answer-option.is-wrong .option-letter { color: #ae6b5a; background: #f4ddd5; }
.answer-option.is-wrong .option-state { color: #ba7865; }
.answer-option.is-muted { opacity: .55; }
.answer-feedback { margin-top: 14px; border-radius: 11px; padding: 11px 13px; display: flex; align-items: flex-start; gap: 10px; animation: fade-up .22s ease; }
.feedback-good { background: #edf4eb; color: #53745d; }
.feedback-try { background: #f8eee8; color: #9e6c5e; }
.feedback-icon { font-size: 15px; font-weight: 700; padding-top: 1px; }
.answer-feedback strong { display: block; font: 700 10px "Manrope", sans-serif; margin-bottom: 2px; }
.answer-feedback p { font-size: 9px; margin: 0; line-height: 1.55; opacity: .88; }
.question-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 21px; }
.gentle-hint { color: #a1a99f; font-size: 9px; }
.next-button { min-width: 116px; min-height: 39px; gap: 18px; padding: 10px 15px; }
.question-card-decoration { position: absolute; bottom: -28px; right: 20px; opacity: .7; }
.question-card-decoration span { display: block; width: 70px; height: 70px; border: 1px solid #ebe4d9; border-radius: 50%; }
.question-card-decoration i { position: absolute; width: 15px; height: 15px; border-radius: 50%; background: #f2e1d2; top: 12px; left: 12px; }
.quiz-bottom-quote { color: #9aa39a; font-size: 9px; text-align: center; padding: 0 0 25px; }
.quiz-bottom-quote span { color: var(--coral); margin-left: 4px; }


/* Desktop quiz refinement: use the available screen instead of a narrow mobile-sized card. */
@media (min-width: 1101px) {
  .app-shell { width: min(1440px, calc(100% - 96px)); }
  .quiz-view { padding-top: 34px; }
  .quiz-topline { padding-bottom: 22px; }
  .quiz-layout {
    grid-template-columns: minmax(150px, 1fr) minmax(0, 900px) minmax(150px, 1fr);
    gap: clamp(28px, 3vw, 54px);
    padding: 54px 0 34px;
  }
  .question-card { border-radius: 28px; }
  .question-progress-row { padding: 25px 38px 15px; font-size: 10px; }
  .question-progress-track { margin: 0 38px; height: 3px; }
  .question-body { padding: 42px 58px 46px; }
  .word-kind { padding: 7px 11px; font-size: 9px; }
  .word-index { font-size: 9px; }
  .question-body h1 { font-size: clamp(58px, 5vw, 72px); margin: 22px 0 9px; letter-spacing: -2.8px; }
  .question-instruction { font-size: 15px; margin-bottom: 27px; }
  .answer-list { gap: 14px; }
  .answer-option { min-height: 68px; padding: 14px 18px; gap: 14px; border-radius: 15px; }
  .option-letter { flex-basis: 34px; width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
  .option-text { font-size: 14px; line-height: 1.5; }
  .option-state { font-size: 16px; }
  .answer-feedback { margin-top: 20px; padding: 16px 18px; gap: 13px; }
  .answer-feedback strong { font-size: 13px; }
  .answer-feedback p { font-size: 12px; }
  .question-actions { margin-top: 28px; }
  .gentle-hint { font-size: 12px; }
  .next-button { min-width: 148px; min-height: 48px; font-size: 13px; }
  .quiz-bottom-quote { font-size: 11px; padding-bottom: 34px; }
}
@media (min-width: 1500px) {
  .app-shell { width: min(1500px, calc(100% - 120px)); }
  .quiz-layout { grid-template-columns: minmax(170px, 1fr) minmax(0, 960px) minmax(170px, 1fr); }
  .question-body { padding: 48px 66px 52px; }
}

/* Results */
.result-view { padding-top: 35px; }
.result-shell { max-width: 790px; min-height: 500px; margin: 0 auto 35px; background: #fffefa; border: 1px solid #e9e5db; border-radius: 26px; box-shadow: var(--shadow); display: grid; grid-template-columns: .9fr 1.1fr; position: relative; overflow: hidden; padding: 54px 50px; align-items: center; }
.result-kicker { position: absolute; top: 27px; left: 32px; display: flex; align-items: center; gap: 8px; color: #9aa298; font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.result-art { width: 235px; height: 235px; position: relative; margin: 25px auto 0; }
.result-orbit { position: absolute; inset: 31px -6px; border: 1px solid #e1d7c5; border-radius: 50%; transform: rotate(-27deg); }
.result-ball { position: absolute; width: 155px; height: 155px; border-radius: 50%; top: 39px; left: 38px; background: radial-gradient(circle at 30% 22%, #f2dfc1, #d8ad8a 34%, #9d7771 72%, #6e7168); box-shadow: inset -12px -16px 22px rgba(57,56,52,.2), inset 9px 8px 15px rgba(255,245,220,.4), 14px 18px 24px rgba(70,80,68,.16); }
.result-ball::after { content: ""; position: absolute; background: rgba(255,249,223,.42); width: 40px; height: 17px; top: 27px; left: 29px; border-radius: 50%; filter: blur(6px); transform: rotate(-35deg); }
.result-star { position: absolute; top: 14px; right: 17px; color: var(--coral); font-size: 24px; }
.result-confetti { position: absolute; width: 11px; height: 11px; border-radius: 3px; background: #becbb8; transform: rotate(25deg); }
.c-one { bottom: 30px; left: 12px; }
.c-two { top: 55px; left: 5px; width: 7px; height: 7px; background: #d8b9a3; }
.result-copy { padding: 8px 0 0 12px; }
.result-score-label { color: #a2a99f; font-size: 8px; letter-spacing: .15em; font-weight: 700; }
.result-copy h1 { font: 700 31px/1.16 "Manrope", sans-serif; letter-spacing: -1.2px; margin: 10px 0 9px; }
.result-copy > p { color: #89938b; font-size: 10px; line-height: 1.65; max-width: 300px; margin-bottom: 21px; }
.score-panel { display: flex; align-items: center; gap: 22px; padding: 15px 18px; background: #f7f6ef; border-radius: 14px; max-width: 295px; }
.score-panel > div:not(.score-divider) { display: flex; flex-direction: column; gap: 3px; }
.score-panel strong { color: var(--forest); font: 700 25px "Manrope", sans-serif; letter-spacing: -1px; }
.score-panel strong span { color: #9ca69b; font-size: 14px; }
.score-panel small { color: #9ca49a; font-size: 8px; }
.score-divider { height: 35px; width: 1px; background: #e5e4da; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.result-actions .primary-button { min-height: 39px; padding: 10px 14px; gap: 12px; }
.secondary-button { border: 1px solid #e3e5dc; border-radius: 999px; background: transparent; padding: 10px 15px; color: #758279; font-size: 10px; font-weight: 700; cursor: pointer; transition: .2s; }
.secondary-button:hover { border-color: #b9c7b9; background: #f7f8f2; }
.result-small-note { font-size: 8px !important; color: #a7aca3 !important; margin: 13px 0 0 !important; }

/* Review */
.review-view { padding-top: 31px; }
.review-header { max-width: 730px; margin: 0 auto 26px; }
.review-header .back-button { display: flex; margin-bottom: 25px; }
.review-header h1 { font: 600 clamp(35px, 4vw, 48px)/1.1 "Manrope", sans-serif; letter-spacing: -2px; margin: 13px 0 10px; }
.review-header h1 span { color: #879b8d; }
.review-header > p { color: #8b968d; font-size: 11px; line-height: 1.65; margin: 0; max-width: 480px; }
.review-summary { max-width: 730px; margin: 0 auto 17px; background: #e9e7dc; border-radius: 15px; display: flex; align-items: center; padding: 15px 20px; gap: 15px; position: relative; overflow: hidden; }
.review-summary-number { color: #53685b; font: 700 30px "Manrope", sans-serif; letter-spacing: -1px; }
.review-summary > div:nth-child(2) { display: flex; flex-direction: column; gap: 3px; }
.review-summary strong { color: #59695e; font: 700 11px "Manrope", sans-serif; }
.review-summary span { color: #90988d; font-size: 9px; }
.review-summary-spark { margin-left: auto; font-size: 25px !important; color: #bc9276 !important; padding-right: 7px; }
.review-list { max-width: 730px; margin: 0 auto; display: grid; gap: 12px; }
.review-item { border: 1px solid #e8e5dc; background: #fffefa; border-radius: 17px; padding: 18px 21px 17px; box-shadow: 0 7px 22px rgba(50,64,57,.035); }
.review-item-top { display: flex; align-items: center; gap: 9px; }
.review-number { color: #aeb5aa; font: 700 9px "Manrope", sans-serif; }
.review-wrong-label { margin-left: auto; color: #c18b76; background: #f8eee8; border-radius: 99px; padding: 5px 8px; font-size: 7px; font-weight: 700; letter-spacing: .1em; }
.review-item h3 { font: 700 25px "Manrope", sans-serif; letter-spacing: -.7px; margin: 11px 0 12px; }
.review-item h3 span { color: var(--coral); }
.review-answer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.review-answer { display: flex; flex-direction: column; gap: 5px; border-radius: 10px; padding: 10px 12px; }
.review-answer small { font-size: 7px; font-weight: 700; letter-spacing: .12em; }
.review-answer strong { font-size: 10px; line-height: 1.45; }
.wrong-answer { color: #a36e61; background: #f8efeb; }
.correct-answer { color: #58745f; background: #eef4ed; }
.review-example { margin: 14px 0 5px; color: #647169; font-size: 10px; line-height: 1.6; }
.review-example > span { display: block; color: #a3aa9f; font-size: 7px; font-weight: 700; letter-spacing: .13em; margin-bottom: 4px; }
.review-example small { display: block; color: #9ca49b; font-size: 9px; margin-top: 2px; }
.review-note { border-top: 1px solid #efeee8; padding-top: 10px; color: #89958b; font-size: 9px; line-height: 1.5; margin: 10px 0 0; }
.review-bottom-actions { max-width: 730px; display: flex; gap: 9px; margin: 20px auto 40px; }
.review-bottom-actions .primary-button { background: var(--forest); color: #fffdf8; min-height: 40px; gap: 14px; }
.review-bottom-actions .primary-button:hover:not(:disabled) { background: #45645b; }
.empty-review { max-width: 730px; margin: 10px auto 50px; min-height: 340px; border-radius: 22px; border: 1px dashed #dcded3; background: rgba(255,254,250,.48); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; }
.empty-art { width: 100px; height: 90px; position: relative; margin-bottom: 13px; }
.empty-ring { width: 78px; height: 78px; border-radius: 50%; border: 1px solid #d4d9cc; position: absolute; left: 11px; top: 5px; }
.empty-shape { position: absolute; width: 53px; height: 53px; left: 24px; top: 17px; border-radius: 16px 19px 16px 19px; transform: rotate(-12deg); display: grid; place-items: center; background: #dce8dc; color: #6b8a74; font-size: 24px; box-shadow: 5px 8px 17px rgba(76,101,82,.13); }
.empty-art > span { position: absolute; color: var(--coral); font-size: 19px; right: 0; top: 3px; }
.empty-kicker { color: #9fa99e; font-size: 8px; font-weight: 700; letter-spacing: .16em; }
.empty-review h2 { font: 700 21px "Manrope", sans-serif; margin: 9px 0 7px; letter-spacing: -.6px; }
.empty-review p { font-size: 10px; line-height: 1.6; color: #929c92; max-width: 310px; margin-bottom: 18px; }
.empty-review .primary-button { background: var(--forest); color: white; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); background: #304b45; color: #fffdf8; padding: 11px 17px; border-radius: 999px; font-size: 10px; box-shadow: 0 12px 26px rgba(35,57,49,.2); opacity: 0; pointer-events: none; transition: .25s; z-index: 20; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .app-shell { width: min(100% - 42px, 760px); }
  .brand, .topbar-note { min-width: 135px; }
  .home-grid { grid-template-columns: minmax(0, 1.4fr) minmax(235px, .8fr); }
  .daily-card { padding: 27px 27px; }
  .daily-art { width: 43%; opacity: .8; }
  .art-sphere { width: 145px; height: 145px; right: 34px; top: 92px; }
  .art-cube { right: 150px; top: 221px; transform: scale(.8) rotate(32deg) skew(-7deg,-7deg); }
  .quiz-layout { grid-template-columns: 55px minmax(0, 650px) 55px; gap: 12px; }
  .quiz-side-note { font-size: 7px; }
  .quiz-right-note { font-size: 7px; }
  .result-shell { padding: 48px 34px; }
}
@media (max-width: 680px) {
  .app-shell { width: calc(100% - 34px); }
  .topbar { height: 72px; }
  .brand { min-width: auto; }
  .topbar-note { display: none; }
  .mobile-menu { display: block; }
  .main-nav { display: none; position: absolute; right: 0; top: 62px; flex-direction: column; align-items: stretch; border-radius: 15px; padding: 7px; background: #fffefa; box-shadow: 0 12px 35px rgba(41,58,49,.14); min-width: 175px; }
  .main-nav.mobile-open { display: flex; }
  .nav-link { text-align: left; border-radius: 9px; }
  .mobile-menu.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .mobile-menu.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .view { padding-top: 37px; }
  .home-intro { align-items: flex-start; flex-direction: column; gap: 21px; margin-bottom: 24px; }
  .home-intro h1 { font-size: clamp(37px, 10vw, 49px); letter-spacing: -2px; margin-top: 13px; }
  .intro-description { max-width: 420px; font-size: 12px; }
  .today-stamp { width: 100%; height: auto; min-height: 77px; padding: 13px 15px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; }
  .stamp-label { grid-column: 1; }
  .today-stamp strong { grid-column: 1; margin-top: 5px; font-size: 17px; }
  .today-stamp > span:nth-of-type(2) { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin-right: 18px; }
  .stamp-orbit { right: -25px; top: 6px; }
  .home-grid { grid-template-columns: 1fr; gap: 12px; }
  .daily-card { min-height: 385px; padding: 25px 24px; }
  .daily-card-content { max-width: 300px; }
  .daily-overline { margin-top: 31px; font-size: 7px; }
  .daily-card h2 { font-size: 32px; }
  .daily-description { max-width: 245px; }
  .daily-art { width: 54%; opacity: .6; }
  .art-sphere { width: 134px; height: 134px; right: 0; top: 152px; }
  .art-orbit { right: -24px; top: 183px; transform: rotate(-26deg) scale(.85); }
  .orbit-two { right: -35px; top: 180px; }
  .art-cube { right: 93px; top: 266px; transform: scale(.7) rotate(32deg) skew(-7deg,-7deg); }
  .art-caption { right: 17px; bottom: 16px; }
  .side-column { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 10px; }
  .reminder-card { min-height: 205px; padding: 17px 15px 14px; }
  .reminder-card h3 { font-size: 16px; }
  .reminder-card p { font-size: 9px; }
  .reminder-footer { font-size: 7px; }
  .progress-card { padding: 15px 14px; }
  .progress-heading { font-size: 7px; }
  .progress-number-row { display: block; }
  .progress-number-row strong { display: block; margin-bottom: 3px; }
  .progress-foot { align-items: flex-start; flex-direction: column; gap: 8px; }
  .how-section { padding-top: 45px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .section-heading h2 { font-size: 23px; }
  .steps-grid { grid-template-columns: 1fr; gap: 9px; }
  .step-card { min-height: auto; padding: 15px 17px 15px 64px; }
  .step-icon { position: absolute; left: 16px; top: 18px; width: 34px; height: 34px; }
  .step-card h3 { font-size: 12px; }
  .step-card p { max-width: 100%; }
  .site-footer { gap: 14px; flex-direction: column; }
  .site-footer > span:last-child { font-size: 7px; }
  .quiz-view { padding-top: 22px; }
  .quiz-topline { padding-bottom: 13px; }
  .quiz-mode-label { font-size: 7px; }
  .quiz-date { display: none; }
  .quiz-layout { display: block; padding: 25px 0 20px; }
  .quiz-side-note, .quiz-right-note { display: none; }
  .question-card { border-radius: 18px; }
  .question-progress-row { padding: 17px 17px 10px; }
  .question-progress-track { margin: 0 17px; }
  .question-body { padding: 25px 18px 21px; }
  .question-body h1 { font-size: 43px; }
  .answer-list { grid-template-columns: 1fr; gap: 8px; }
  .answer-option { min-height: 49px; }
  .question-actions { align-items: flex-end; }
  .gentle-hint { max-width: 135px; line-height: 1.5; }
  .quiz-bottom-quote { line-height: 1.5; }
  .result-view { padding-top: 22px; }
  .result-shell { display: flex; flex-direction: column; padding: 52px 22px 27px; min-height: 0; }
  .result-art { width: 180px; height: 168px; margin: 7px auto 9px; transform: scale(.78); transform-origin: center; }
  .result-copy { padding: 0; text-align: center; }
  .result-copy > p { margin-left: auto; margin-right: auto; }
  .score-panel { margin: 0 auto; justify-content: center; }
  .result-actions { justify-content: center; }
  .result-small-note { text-align: center; }
  .review-header h1 { font-size: 38px; }
  .review-summary { padding: 13px 14px; gap: 10px; }
  .review-summary-number { font-size: 25px; }
  .review-summary strong { font-size: 10px; }
  .review-summary span { font-size: 8px; }
  .review-item { padding: 15px; }
  .review-answer-grid { gap: 7px; }
  .review-answer { padding: 9px; }
  .review-answer strong { font-size: 9px; }
  .review-bottom-actions { flex-wrap: wrap; margin-bottom: 30px; }
}
@media (max-width: 380px) {
  .app-shell { width: calc(100% - 26px); }
  .side-column { grid-template-columns: 1fr; }
  .reminder-card { min-height: 185px; }
  .progress-number-row { display: flex; align-items: baseline; }
  .progress-number-row strong { margin: 0; }
  .progress-foot { flex-direction: row; align-items: center; }
  .daily-card { min-height: 380px; }
  .daily-art { opacity: .43; width: 58%; }
  .question-body h1 { font-size: 38px; }
  .result-actions { flex-direction: column; }
  .result-actions button { width: 100%; }
}

/* Consistent vector marks across devices */
.tag-book-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.tiny-spark { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.footer-star { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; }
.side-note-mark svg, .result-star svg, .quote-mark svg, .empty-spark svg, .review-summary-spark svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.side-note-mark { width: 20px; height: 20px; }
.result-star { width: 24px; height: 24px; }
.empty-art > .empty-spark { width: 19px; height: 19px; display: block; }
.review-summary-spark { width: 25px; height: 25px; display: block; flex: 0 0 25px; }
.quiz-bottom-quote .quote-mark { display: inline-flex; width: 12px; height: 12px; vertical-align: -2px; }

/* ulaskata identity + book illustrations */
.brand-mark { width: 32px; height: 32px; }
.brand-mark svg { width: 100%; height: 100%; fill: #45685e; stroke: #45685e; stroke-width: 1.2; stroke-linejoin: round; }
.brand-mark .book-page { fill: none; stroke: #f4e6c9; stroke-width: 1.5; stroke-linecap: round; }
.brand-word { letter-spacing: -.8px; font-size: 22px; }
.brand-word > span { color: inherit; }
.hero-book { position: absolute; width: 310px; height: 250px; right: 35px; top: 55px; filter: drop-shadow(0 22px 18px rgba(16,35,29,.24)); animation: book-float 4.8s ease-in-out infinite; }
.hero-book svg { width: 100%; height: 100%; overflow: visible; }
.book-shadow { fill: rgba(12,29,25,.2); }
.book-spark { position: absolute; color: #e9c98f; font-size: 28px; animation: sparkle 2.4s ease-in-out infinite; }
.spark-a { top: 6px; right: 28px; }.spark-b { top: 85px; left: 0; color: #c7d5bd; animation-delay: .7s; }.spark-c { bottom: 9px; right: 45px; font-size: 20px; animation-delay: 1.2s; }
@keyframes book-float { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-9px) rotate(1deg); } }
@keyframes sparkle { 0%,100% { opacity: .45; transform: scale(.8) rotate(0); } 50% { opacity: 1; transform: scale(1.18) rotate(18deg); } }

/* cheerful completion illustration */
.celebration-art { display: grid; place-items: center; }
.result-orbit { display: none; }
.result-book { position: absolute; width: 205px; height: 168px; z-index: 2; filter: drop-shadow(0 13px 8px rgba(49,78,73,.18)); animation: celebrate-book .7s cubic-bezier(.2,.8,.2,1) both, book-float 4.5s 0.7s ease-in-out infinite; }
.burst-ring { position: absolute; width: 172px; height: 172px; border-radius: 50%; border: 2px dashed #dfc38e; animation: burst-ring .65s ease-out both; }
.burst-rays { position: absolute; width: 220px; height: 220px; background: repeating-conic-gradient(from 0deg, transparent 0deg 11deg, rgba(224,184,119,.85) 11deg 13deg, transparent 13deg 30deg); -webkit-mask: radial-gradient(circle, transparent 0 48%, #000 50% 56%, transparent 58%); mask: radial-gradient(circle, transparent 0 48%, #000 50% 56%, transparent 58%); animation: burst-rays .8s cubic-bezier(.2,.8,.2,1) both; }
.celebration-star { position: absolute; z-index: 3; color: #d89b76; font-size: 28px; animation: pop-star .65s cubic-bezier(.15,.8,.2,1) both; }
.star-one { top: 16px; right: 24px; }.star-two { bottom: 30px; left: 13px; color: #91a994; animation-delay: .12s; }.star-three { top: 50px; left: 13px; color: #e2bd77; animation-delay: .2s; }
.celebration-dot { position: absolute; width: 10px; height: 10px; border-radius: 3px; background: #d7a17f; z-index: 3; animation: pop-star .6s .1s both; }.dot-one { top: 40px; left: 55px; transform: rotate(25deg); }.dot-two { bottom: 38px; right: 38px; background: #a8bda7; transform: rotate(45deg); }.dot-three { top: 100px; right: 5px; width: 7px; height: 7px; background: #e5c783; }
@keyframes celebrate-book { from { opacity: 0; transform: translateY(22px) scale(.55) rotate(-12deg); } 70% { transform: translateY(-5px) scale(1.08) rotate(4deg); } to { opacity: 1; transform: translateY(0) scale(1) rotate(0); } }
@keyframes burst-ring { from { opacity: 0; transform: scale(.25); } to { opacity: 1; transform: scale(1); } }
@keyframes burst-rays { from { opacity: 0; transform: scale(.3) rotate(-25deg); } to { opacity: .85; transform: scale(1) rotate(0); } }
@keyframes pop-star { from { opacity: 0; transform: scale(0) rotate(-45deg); } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-book, .book-spark, .result-book, .burst-ring, .burst-rays, .celebration-star, .celebration-dot { animation: none !important; } }
@media (max-width: 700px) { .hero-book { width: 235px; height: 190px; right: -8px; top: 125px; opacity: .9; } }

/* Daily Drop archive carousel */
.daily-archive-section { margin-top: 42px; padding: 25px 25px 22px; border: 1px solid #e8e3d8; border-radius: 22px; background: rgba(255,254,250,.58); overflow: hidden; }
.daily-archive-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 19px; }
.daily-archive-heading h2 { margin: 9px 0 5px; color: #34443d; font: 600 23px/1.2 "Manrope", sans-serif; letter-spacing: -.8px; }
.daily-archive-heading p { margin: 0; color: #89938b; font-size: 11px; line-height: 1.6; }
.daily-archive-controls { display: flex; gap: 7px; flex: 0 0 auto; }
.archive-arrow { width: 34px; height: 34px; border: 1px solid #e3dfd4; border-radius: 50%; background: #fffefa; color: #61776b; font-size: 17px; cursor: pointer; transition: .2s ease; }
.archive-arrow:hover { background: #e7ece4; border-color: #cbd7ca; }
.daily-archive-track { display: grid; grid-auto-columns: minmax(245px, 29%); grid-auto-flow: column; gap: 12px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #c9d1c5 transparent; padding: 1px 1px 10px; }
.archive-card { min-height: 205px; padding: 17px 17px 14px; border: 1px solid #e8e4da; border-radius: 16px; background: #f8f6ef; scroll-snap-align: start; display: flex; flex-direction: column; }
.archive-card.is-today { background: #e9eee5; border-color: #cbd8c8; box-shadow: inset 0 3px 0 #829a88; }
.archive-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.archive-edition { color: #829187; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.archive-today-badge { padding: 5px 8px; border-radius: 99px; background: #d6e2d3; color: #526f5e; font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.archive-past-mark { color: #a6a99e; font-size: 14px; }
.archive-card h3 { margin: 14px 0 4px; color: #3e4e45; font: 700 16px/1.25 "Manrope", sans-serif; }
.archive-date { margin: 0 0 12px; color: #92998f; font-size: 9px; }
.archive-date span { padding: 0 3px; color: #c0b8a9; }
.archive-word-list { display: flex; flex-wrap: wrap; gap: 5px; }
.archive-word { padding: 5px 8px; border: 1px solid rgba(120,145,129,.18); border-radius: 99px; background: rgba(255,255,255,.55); color: #65796d; font-size: 9px; }
.archive-more { margin-top: 7px; color: #87958a; font-size: 8px; }
.archive-card-foot { margin-top: auto; padding-top: 13px; color: #9ba398; font-size: 8px; letter-spacing: .04em; }
@media (max-width: 700px) {
  .daily-archive-section { margin-top: 27px; padding: 19px 15px 15px; border-radius: 18px; }
  .daily-archive-heading { align-items: flex-start; }
  .daily-archive-heading h2 { font-size: 20px; }
  .daily-archive-heading p { max-width: 260px; font-size: 10px; }
  .daily-archive-track { grid-auto-columns: minmax(230px, 78%); }
}

/* Archive cards are review launchers */
.archive-card {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.archive-card:hover, .archive-card:focus-visible {
  transform: translateY(-3px);
  border-color: #b8c9b8;
  box-shadow: 0 10px 24px rgba(49,78,73,.09);
  outline: none;
}
.archive-card-foot { display: block; }
@media (max-width: 700px) {
  .archive-card { text-align: left; }
}


/* Cloudflare Turnstile: native widget placed directly below the password field. */
.turnstile-panel { display: block; width: 100%; margin: 12px 0 8px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.turnstile-panel[hidden] { display: none !important; }
.turnstile-panel #guest-turnstile { min-height: 0; width: 100%; overflow: visible; }
.turnstile-panel #guest-turnstile iframe { max-width: 100%; }
/* At narrow widths the native compact Turnstile is rendered (150px wide).
   Do not scale the normal iframe: it can overflow the form and reduce hit targets. */
@media (max-width: 380px) {
  .turnstile-panel #guest-turnstile {
    width: 100%;
    display: flex;
    justify-content: center;
    transform: none;
    margin-bottom: 0;
  }
}


/* V10: friendly progress-save invitation (shown after the official Daily Drop). */
.progress-save-prompt {
  width: 100%;
  max-width: 790px;
  box-sizing: border-box;
  margin: -13px auto 38px;
  padding: 25px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid #e7e9df;
  border-radius: 20px;
  background: linear-gradient(115deg, #f4f6ef 0%, #fffefa 76%);
  box-shadow: 0 8px 24px rgba(57, 76, 61, .045);
}
.progress-save-copy {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 490px;
  text-align: left;
}
.progress-save-kicker {
  display: block;
  margin-bottom: 9px;
  color: #8b9a89;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .14em;
}
.progress-save-copy h2 {
  margin: 0 0 10px;
  color: #53685b;
  font: 700 clamp(18px, 2.1vw, 22px)/1.28 "Manrope", sans-serif;
  letter-spacing: -.55px;
}
.progress-save-copy p {
  max-width: 470px;
  margin: 0 0 6px;
  color: #788579;
  font-size: 11px;
  line-height: 1.65;
}
.progress-save-actions {
  flex: 0 0 205px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
}
.progress-save-actions .primary-button {
  display: flex;
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 11px 13px;
  font-size: 10px;
  white-space: nowrap;
}
.progress-save-later {
  border: 0;
  background: transparent;
  color: #7d897f;
  padding: 9px 8px 5px;
  font: 600 10px "DM Sans", sans-serif;
  cursor: pointer;
}
.progress-save-later:hover { color: #53685b; }
.progress-save-actions small {
  display: block;
  margin-top: 3px;
  color: #a0a89d;
  font-size: 9px;
  text-align: center;
}
@media (max-width: 680px) {
  .progress-save-prompt {
    margin: -17px auto 30px;
    padding: 21px 19px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .progress-save-copy { max-width: none; }
  .progress-save-copy h2 { font-size: 19px; }
  .progress-save-actions { flex: auto; width: 100%; }
  .progress-save-actions .primary-button { width: 100%; }
  .progress-save-later { display: block; width: 100%; }
}

/* V10: gentle, one-time guest invitation after the first Daily Drop completion. */
.progress-invite-backdrop[hidden],
.progress-save-prompt[hidden] { display: none !important; }
.progress-invite-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 22px;
  background: rgba(37, 49, 43, .38);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.progress-invite-dialog {
  position: relative;
  width: min(100%, 455px);
  max-height: min(88vh, 700px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 34px 34px 27px;
  border: 1px solid #e8e7dc;
  border-radius: 24px;
  background: #fffefa;
  box-shadow: 0 24px 80px rgba(28, 43, 35, .2);
  text-align: center;
  animation: progress-invite-in .22s ease-out both;
}
@keyframes progress-invite-in {
  from { opacity: 0; transform: translateY(9px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.progress-invite-close {
  position: absolute;
  top: 13px;
  right: 15px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f4f5ef;
  color: #748177;
  font: 400 24px/1 "DM Sans", sans-serif;
  cursor: pointer;
}
.progress-invite-close:hover { background: #e9eee6; color: #435b4d; }
.progress-invite-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: #eff3e9;
  color: #78927e;
  font-size: 25px;
}
.progress-invite-dialog .progress-save-kicker { margin-bottom: 10px; }
.progress-invite-dialog h2 {
  margin: 0 auto 11px;
  max-width: 365px;
  color: #435b4d;
  font: 700 22px/1.3 "Manrope", sans-serif;
  letter-spacing: -.65px;
}
.progress-invite-dialog > p {
  max-width: 360px;
  margin: 0 auto 17px;
  color: #788579;
  font-size: 11px;
  line-height: 1.7;
}
.progress-invite-benefits {
  display: grid;
  gap: 9px;
  margin: 0 auto 21px;
  padding: 15px 17px;
  border: 1px solid #edf0e8;
  border-radius: 14px;
  background: #f8f9f4;
  list-style: none;
  text-align: left;
}
.progress-invite-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #68776c;
  font-size: 10px;
  line-height: 1.5;
}
.progress-invite-benefits li span { color: #78927e; font-weight: 800; }
.progress-invite-primary {
  display: flex;
  width: 100%;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 12px 15px;
  font-size: 10px;
}
.progress-invite-later {
  display: block;
  width: 100%;
  margin: 5px 0 7px;
  padding: 10px 8px;
  border: 0;
  background: transparent;
  color: #748177;
  font: 600 10px "DM Sans", sans-serif;
  cursor: pointer;
}
.progress-invite-later:hover { color: #435b4d; }
.progress-invite-dialog > small {
  display: block;
  color: #a0a89d;
  font-size: 9px;
}
@media (max-width: 480px) {
  .progress-invite-backdrop { padding: 15px; }
  .progress-invite-dialog { padding: 30px 21px 23px; border-radius: 20px; }
  .progress-invite-dialog h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .progress-invite-dialog { animation: none; }
}

/* V11 — account access */
.account-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border: 1px solid rgba(84, 101, 94, .16);
  border-radius: 999px;
  background: #fffefa;
  color: var(--forest);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: .2s ease;
}
.account-button:hover { border-color: #aebcaf; background: #f8faf5; transform: translateY(-1px); }
.account-button span { color: var(--coral); font-size: 15px; }
.auth-view { padding: 34px 0 80px; }
.auth-shell { width: min(100%, 540px); margin: 0 auto; }
.auth-shell > .back-button { margin: 0 0 22px; }
.auth-card {
  padding: clamp(25px, 6vw, 48px);
  border: 1px solid #e8e5db;
  border-radius: 26px;
  background: rgba(255, 254, 250, .92);
  box-shadow: var(--shadow);
}
.auth-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 25px;
  border-radius: 15px;
  background: var(--forest);
  color: #f1dfbd;
  font: 800 21px/1 "Manrope", sans-serif;
  letter-spacing: -1.5px;
}
.auth-card .eyebrow { margin-bottom: 13px; }
.auth-card h1 { margin: 0 0 9px; color: #293a36; font: 700 clamp(27px, 5vw, 36px)/1.15 "Manrope", sans-serif; letter-spacing: -1.5px; }
.auth-lead { margin: 0 0 25px; color: #78847c; font-size: 12px; line-height: 1.7; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; margin-bottom: 23px; border-radius: 13px; background: #f0f1e9; }
.auth-tab { min-height: 39px; border: 0; border-radius: 9px; background: transparent; color: #7b877e; font-size: 11px; font-weight: 700; cursor: pointer; }
.auth-tab.is-active { background: #fffefa; color: var(--forest); box-shadow: 0 2px 9px rgba(38, 52, 50, .08); }
.auth-label { display: block; margin: 16px 0 7px; color: #52615a; font-size: 10px; font-weight: 700; }
.auth-input { display: block; width: 100%; min-height: 47px; padding: 0 14px; border: 1px solid #e2e5dc; border-radius: 12px; outline: none; background: #fff; color: var(--ink); font: 500 12px "DM Sans", sans-serif; transition: border-color .2s, box-shadow .2s; }
.auth-input:focus { border-color: #8ea899; box-shadow: 0 0 0 3px rgba(120, 148, 135, .13); }
.auth-input::placeholder { color: #a7aea7; }
.auth-input:disabled { background: #f5f5ef; color: #8b948c; }
.auth-password-hint { margin: 7px 1px 0; color: #9aa39a; font-size: 9px; }
.auth-form-row { display: flex; justify-content: flex-end; margin: 11px 0 17px; }
.auth-text-button { padding: 3px 0; border: 0; background: transparent; color: #708b7b; font-size: 10px; font-weight: 700; cursor: pointer; }
.auth-text-button:hover { color: var(--forest); text-decoration: underline; }
.auth-submit { width: 100%; min-height: 47px; margin-top: 18px; gap: 12px; }
.auth-message { margin-top: 17px; padding: 13px 14px; border: 1px solid #e4e8df; border-radius: 12px; background: #f6f8f1; color: #607566; font-size: 10px; line-height: 1.65; overflow-wrap: anywhere; }
.auth-message.error { border-color: #efd8cf; background: #fbf3ef; color: #9a6657; }
.auth-message.success { border-color: #dce8d9; background: #f2f7ef; color: #55735e; }
.auth-message.info { border-color: #e3e5dc; background: #f7f7f1; color: #69766c; }
.auth-account-status { margin: 20px 0; padding: 16px; border-radius: 13px; background: #f2f5ed; color: #526d5b; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.auth-signout { width: 100%; margin-top: 10px; }
.auth-footnote { margin: 19px 0 0; color: #9ba39a; font-size: 9px; line-height: 1.65; text-align: center; }
.auth-view [hidden] { display: none !important; }
@media (max-width: 760px) {
  .topbar-note { min-width: auto; }
  .topbar-note > span { display: none; }
  .account-button { margin-right: 7px; padding: 9px 12px; }
}
@media (max-width: 480px) {
  .auth-view { padding-top: 25px; }
  .auth-card { border-radius: 21px; }
}
@media (max-width: 760px) {
  .topbar-note { display: flex; }
}


/* V15 learning dashboard: real-data metric cards and charts */
.v15-stat-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:26px 0 18px; }
.v15-stat-card,.v15-chart-card { min-width:0; border:1px solid var(--line); border-radius:18px; background:var(--surface); padding:20px; box-shadow:0 8px 24px rgba(30,41,59,.035); }
.v15-stat-card { display:flex; flex-direction:column; gap:8px; }
.v15-stat-card span,.v15-chart-heading span { color:var(--muted); font-size:9px; font-weight:800; letter-spacing:.12em; }
.v15-stat-card strong { color:var(--ink); font:800 36px/1 "Manrope",sans-serif; letter-spacing:-1.5px; }
.v15-stat-card small { color:var(--muted); font-size:11px; line-height:1.5; }
.v15-chart-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:14px 0 22px; }
.v15-chart-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.v15-chart-heading h2 { margin:7px 0 0; color:var(--ink); font:700 19px/1.2 "Manrope",sans-serif; letter-spacing:-.5px; }
.v15-chart-heading>strong { color:var(--forest); font-size:12px; white-space:nowrap; }
.v15-bars { height:160px; display:flex; align-items:flex-end; justify-content:space-around; gap:10px; margin-top:18px; padding:0 2px; border-bottom:1px solid var(--line); }
.v15-bar-column { height:100%; flex:1; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; gap:7px; min-width:0; }
.v15-bar-value { min-height:12px; color:var(--ink-soft); font-size:10px; font-weight:700; }
.v15-bar { width:min(28px,70%); min-height:4px; border-radius:7px 7px 2px 2px; background:linear-gradient(180deg,var(--sage-deep),var(--forest)); }
.v15-bar-column small { height:19px; color:var(--muted); font-size:9px; white-space:nowrap; }
.v15-line-chart { display:block; width:100%; max-width:560px; height:auto; aspect-ratio:360 / 128; margin:12px auto 0; overflow:visible; }
.v15-chart-labels { display:grid; grid-template-columns:repeat(7,1fr); gap:2px; width:100%; max-width:560px; margin:0 auto; color:var(--muted); font-size:8px; text-align:center; }
.v15-chart-note { margin:9px 0 0; color:var(--muted); font-size:10px; }
.v15-learning-states { margin:18px 0; }
@media(max-width:760px) {
  .v15-stat-grid { grid-template-columns:1fr; gap:10px; }
  .v15-stat-card { padding:16px; }
  .v15-stat-card strong { font-size:30px; }
  .v15-chart-grid { grid-template-columns:1fr; }
  .v15-chart-card { padding:17px; }
}


/* Vocabulary explanation shown after both correct and incorrect answers */
.answer-feedback{align-items:flex-start}.feedback-content{min-width:0;flex:1}.feedback-content>p{margin:4px 0 0;line-height:1.6}.feedback-details{display:grid;gap:9px;margin-top:11px;padding-top:10px;border-top:1px solid currentColor;border-color:rgba(90,110,95,.16)}
.feedback-note strong,.feedback-example strong{display:block;font-size:9px;letter-spacing:1px;font-weight:800;margin-bottom:4px;opacity:.8}.feedback-note p,.feedback-example p{margin:0;font-size:11px;line-height:1.65;opacity:.95}.feedback-example{padding-top:2px}.feedback-example small{display:block;margin-top:3px;font-size:10px;line-height:1.5;opacity:.75}

/* V16 — responsive polish: larger results/review text and calmer tablet/mobile spacing.
   Visual-only overrides; quiz, review, auth, and progress logic remain unchanged. */
:root {
  --ui-motion-fast: 180ms;
  --ui-motion-base: 240ms;
}

button, a, .review-item, .result-shell, .answer-option, .account-button {
  -webkit-tap-highlight-color: transparent;
}

.account-button,
.nav-link,
.primary-button,
.secondary-button,
.text-button,
.answer-option,
.review-item {
  transition-duration: var(--ui-motion-base);
}

/* Give the final score more visual weight on every screen size. */
.result-shell { max-width: 880px; }
.result-copy h1 { font-size: clamp(34px, 3.4vw, 42px); }
.result-score-label { font-size: 10px; }
.result-copy > p { font-size: 13px; line-height: 1.75; max-width: 390px; }
.score-panel { max-width: 360px; padding: 18px 22px; gap: 27px; }
.score-panel strong { font-size: 31px; }
.score-panel strong span { font-size: 17px; }
.score-panel small { font-size: 10px; }
.result-actions .primary-button,
.result-actions .secondary-button { min-height: 45px; padding: 12px 17px; font-size: 12px; }
.result-small-note { font-size: 10px !important; line-height: 1.65 !important; }

/* Make the vocabulary and explanations easier to scan in Review. */
.review-header > p { font-size: 13px; line-height: 1.75; }
.review-summary { padding: 17px 22px; }
.review-summary-number { font-size: 34px; }
.review-summary strong { font-size: 13px; }
.review-summary span { font-size: 11px; line-height: 1.5; }
.review-item { padding: 21px 23px 20px; }
.review-number { font-size: 10px; }
.review-wrong-label { font-size: 9px; }
.review-item h3 { font-size: clamp(27px, 3vw, 32px); line-height: 1.2; }
.review-answer { padding: 12px 14px; gap: 7px; }
.review-answer small { font-size: 9px; }
.review-answer strong { font-size: 13px; line-height: 1.55; }
.review-example { font-size: 13px; line-height: 1.7; }
.review-example > span { font-size: 9px; }
.review-example small { font-size: 11px; }
.review-note { font-size: 12px; line-height: 1.7; }
.review-bottom-actions .primary-button,
.review-bottom-actions .secondary-button { min-height: 46px; padding: 12px 18px; font-size: 12px; }

/* Feedback while answering: explanations should not feel like footnotes. */
.answer-feedback { padding: 14px 16px; gap: 12px; }
.answer-feedback strong { font-size: 12px; }
.answer-feedback p { font-size: 11px; line-height: 1.7; }
.feedback-note strong, .feedback-example strong { font-size: 10px; }
.feedback-note p, .feedback-example p { font-size: 12px; line-height: 1.7; }
.feedback-example small { font-size: 11px; }

/* Tablet portrait: give the small header tagline its own breathing room. */
@media (min-width: 681px) and (max-width: 900px) {
  .app-shell { width: calc(100% - 48px); }
  .topbar {
    height: auto;
    min-height: 78px;
    padding: 13px 0 10px;
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .brand { min-width: auto; }
  .main-nav { gap: 3px; padding: 4px; }
  .nav-link { padding: 9px 10px; font-size: 11px; }
  .topbar-note {
    min-width: 0;
    flex: 1 0 100%;
    justify-content: center;
    gap: 17px;
    padding: 7px 0 2px;
    font-size: 10px;
    letter-spacing: .11em;
  }
  .topbar-note > span { line-height: 1.7; }
  .result-shell { max-width: 760px; }
  .review-list, .review-header, .review-summary, .review-bottom-actions { max-width: 760px; }
}

/* Mobile header order: logo, menu, then account at the far right. */
@media (max-width: 680px) {
  .topbar {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
  }
  .brand { order: 1; flex: 1 1 auto; }
  .mobile-menu { order: 2; flex: 0 0 auto; margin: 0; }
  .topbar-note {
    order: 3;
    display: flex;
    flex: 0 0 auto;
    min-width: 0;
    margin: 0;
    justify-content: flex-end;
  }
  .topbar-note > span { display: none; }
  .account-button { margin: 0; padding: 9px 13px; min-height: 39px; font-size: 11px; }
  .mobile-menu { padding: 8px 5px; }

  .result-shell { padding: 55px 20px 26px; border-radius: 22px; }
  .result-kicker { top: 23px; left: 20px; right: 16px; font-size: 9px; letter-spacing: .11em; }
  .result-art { width: 174px; height: 158px; margin: 4px auto 5px; transform: scale(.82); }
  .result-copy h1 { font-size: clamp(30px, 8vw, 37px); line-height: 1.16; }
  .result-copy > p { font-size: 12px; line-height: 1.7; margin-bottom: 18px; }
  .score-panel { width: 100%; max-width: 340px; min-height: 86px; padding: 16px 18px; gap: 25px; }
  .score-panel strong { font-size: 30px; }
  .score-panel strong span { font-size: 16px; }
  .score-panel small { font-size: 10px; }
  .result-actions { width: 100%; gap: 9px; }
  .result-actions button { min-height: 46px; font-size: 12px; }
  .result-small-note { font-size: 10px !important; }

  .review-view { padding-top: 27px; }
  .review-header { margin-bottom: 21px; }
  .review-header .back-button { margin-bottom: 20px; }
  .review-header h1 { font-size: clamp(34px, 8vw, 40px); letter-spacing: -1.5px; }
  .review-header > p { font-size: 12px; line-height: 1.75; }
  .review-summary { padding: 15px 16px; gap: 12px; }
  .review-summary-number { font-size: 29px; }
  .review-summary strong { font-size: 12px; }
  .review-summary span { font-size: 10px; line-height: 1.55; }
  .review-item { padding: 18px 16px; border-radius: 16px; }
  .review-item h3 { font-size: 27px; margin: 13px 0 14px; }
  .review-answer-grid { gap: 8px; }
  .review-answer { padding: 11px 10px; }
  .review-answer small { font-size: 8px; }
  .review-answer strong { font-size: 12px; line-height: 1.55; }
  .review-example { margin-top: 13px; font-size: 12px; line-height: 1.7; }
  .review-example > span { font-size: 8px; }
  .review-example small { font-size: 10px; }
  .review-note { font-size: 11px; line-height: 1.7; }
  .review-bottom-actions { gap: 9px; }
  .review-bottom-actions button { min-height: 45px; font-size: 12px; }

  .answer-feedback { padding: 13px 14px; }
  .answer-feedback strong { font-size: 11px; }
  .answer-feedback p { font-size: 10px; line-height: 1.65; }
  .feedback-note p, .feedback-example p { font-size: 11px; }
}

@media (max-width: 420px) {
  .app-shell { width: calc(100% - 28px); }
  .topbar { gap: 7px; }
  .brand-word { font-size: 21px; }
  .brand-mark { width: 29px; height: 29px; }
  .account-button { padding: 8px 11px; }
  .review-answer-grid { grid-template-columns: 1fr; }
  .review-answer { min-height: 65px; }
  .review-item h3 { font-size: 25px; }
  .result-shell { padding-left: 16px; padding-right: 16px; }
  .result-actions { flex-direction: column; }
  .result-actions button { width: 100%; }
}

/* Smooth but restrained; respect the visitor's reduced-motion preference. */
@media (prefers-reduced-motion: no-preference) {
  .view { animation-duration: .28s; }
  .answer-option:not(:disabled):active,
  .primary-button:active,
  .secondary-button:active,
  .account-button:active { transform: translateY(1px) scale(.99); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* V17 — live account identity in the header */
.topbar-note { position: relative; }
.account-wrap { position: relative; display: inline-flex; align-items: center; }
.account-button { max-width: min(260px, 30vw); min-height: 40px; gap: 8px; }
.account-label { display: inline-block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 190px; }
.account-avatar { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; flex: 0 0 17px; }
.account-avatar svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.account-chevron { color: #87968c; font-size: 14px; line-height: 1; }
.account-button .account-avatar { color: var(--forest); }
.account-button .account-chevron { color: #87968c; }
.account-menu[hidden] { display: none !important; }
.account-menu {
  position: absolute; z-index: 30; top: calc(100% + 10px); right: 0;
  width: min(290px, calc(100vw - 36px)); padding: 16px;
  border: 1px solid rgba(84, 101, 94, .16); border-radius: 16px;
  background: #fffefa; box-shadow: 0 16px 42px rgba(41,58,49,.16);
  text-align: left; text-transform: none; letter-spacing: 0;
}
.account-menu-email { color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.account-menu-status { margin-top: 5px; color: #718477; font-size: 10px; }
.account-menu-signout {
  width: 100%; margin-top: 14px; padding: 10px 12px;
  border: 1px solid #e8e5db; border-radius: 10px; background: #f8f7f1;
  color: #6c5148; font-size: 11px; font-weight: 700; text-align: left; cursor: pointer;
}
.account-menu-signout:hover { background: #f4eee9; border-color: #ddcfc5; }
@media (max-width: 680px) {
  .account-button { width: 40px; min-width: 40px; max-width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; }
  .account-label, .account-chevron { display: none; }
  .account-avatar, .account-avatar svg { width: 19px; height: 19px; }
  .account-menu { right: 0; }
}
.account-button .account-label { color: var(--forest); font-size: 11px; }


/* V20 — preserve V17 account-button design; make every account state readable on all screens. */
.today-stamp { visibility: visible; }
.today-stamp.is-ready { visibility: visible; }
.account-wrap { min-width: 0; max-width: 100%; }
.account-button {
  width: auto;
  min-width: 0;
  max-width: min(260px, 32vw);
  flex: 0 1 auto;
  white-space: nowrap;
}
.account-label { min-width: 0; max-width: clamp(76px, 17vw, 190px); }
.account-avatar, .account-chevron { flex: 0 0 auto; }
@media (max-width: 900px) {
  .account-button { max-width: min(230px, 34vw); }
  .account-label { max-width: clamp(76px, 19vw, 150px); }
}
@media (max-width: 680px) {
  .topbar-note { flex: 0 1 auto; min-width: 0; max-width: calc(100% - 88px); }
  .account-wrap { width: 100%; justify-content: flex-end; }
  .account-button {
    width: auto;
    min-width: 0;
    max-width: 100%;
    height: 40px;
    min-height: 40px;
    padding: 8px 11px;
    gap: 7px;
    border-radius: 999px;
    justify-content: center;
  }
  .account-label { display: inline-block; max-width: clamp(72px, 25vw, 142px); font-size: 10px; }
  .account-chevron { display: inline-block; font-size: 12px; }
  .account-avatar, .account-avatar svg { width: 16px; height: 16px; }
  .account-menu { right: 0; max-width: calc(100vw - 32px); }
}
@media (max-width: 380px) {
  .topbar { gap: 5px; }
  .topbar-note { max-width: calc(100% - 78px); }
  .account-button { padding: 7px 8px; gap: 5px; }
  .account-label { max-width: clamp(64px, 23vw, 105px); font-size: 9px; }
  .account-avatar, .account-avatar svg { width: 14px; height: 14px; }
}


/* V23 — tablet portrait uses the mobile header layout */
@media (min-width: 681px) and (max-width: 900px) {
  .topbar {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: nowrap;
  }

  .brand {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
  }

  .mobile-menu {
    display: block;
    order: 2;
    flex: 0 0 auto;
    margin: 0;
  }

  .topbar-note {
    order: 3;
    display: flex;
    flex: 0 0 auto;
    min-width: 0;
    margin: 0;
    justify-content: flex-end;
  }

  .topbar-note > span {
    display: none;
  }

  .main-nav {
    display: none;
    position: absolute;
    right: 0;
    top: 62px;
    flex-direction: column;
    align-items: stretch;
    border-radius: 15px;
    padding: 7px;
    background: #fffefa;
    box-shadow: 0 12px 35px rgba(41,58,49,.14);
    min-width: 190px;
    z-index: 20;
  }

  .main-nav.mobile-open {
    display: flex;
  }

  .nav-link {
    text-align: left;
    border-radius: 9px;
  }

  .mobile-menu.open span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .mobile-menu.open span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .account-button {
    max-width: 230px;
  }
}

/* Streak + weekly goal gamification */
.gamification-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:0 0 22px; }
.game-card { position:relative; min-width:0; overflow:hidden; padding:21px 23px 18px; border:1px solid rgba(72,91,79,.10); border-radius:22px; background:#fff; box-shadow:0 9px 28px rgba(49,61,52,.045); }
.streak-card { background:linear-gradient(120deg,#fffaf1 0%,#fff 74%); border-color:rgba(217,139,55,.19); }
.weekly-card { background:linear-gradient(120deg,#f6faf7 0%,#fff 78%); border-color:rgba(102,146,119,.18); }
.game-card-top,.game-card-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.game-kicker { color:#8b9188; font-size:9px; font-weight:800; letter-spacing:1.35px; }
.game-status { color:#b97935; background:rgba(230,165,83,.13); border-radius:99px; padding:6px 9px; font-size:8px; font-weight:800; letter-spacing:.8px; }
.streak-main { display:flex; align-items:center; gap:15px; margin:18px 0 15px; }
.streak-flame-wrap { position:relative; isolation:isolate; display:grid; place-items:center; flex:0 0 64px; width:64px; height:64px; border-radius:20px; background:radial-gradient(circle at 50% 72%,#fff0d6 0%,#ffe6c0 58%,#ffddb0 100%); transition:transform .35s ease,background .35s ease,box-shadow .35s ease; }
.streak-flame-wrap::before,.streak-flame-wrap::after { content:""; position:absolute; z-index:-1; border-radius:50%; opacity:0; pointer-events:none; }
.streak-flame-wrap::before { width:7px; height:7px; left:8px; top:10px; background:#ff9a32; box-shadow:36px 5px 0 -1px #ff6b2b,8px 43px 0 -2px #ffd05c,43px 37px 0 -2px #ff7a28; }
.streak-flame-wrap::after { inset:5px; border:1px solid rgba(255,117,35,.2); }
.streak-flame { width:48px; height:48px; overflow:visible; filter:drop-shadow(0 3px 3px rgba(180,54,13,.25)); transform-origin:50% 88%; }
.streak-flame .flame-aura { fill:#ff8a32; opacity:0; filter:blur(5px); }
.streak-flame .flame-outer { fill:url(#streak-outer-gradient); }
.streak-flame .flame-inner { fill:url(#streak-inner-gradient); filter:drop-shadow(0 0 3px rgba(255,232,116,.8)); transform-box:fill-box; transform-origin:50% 90%; }
.streak-flame .flame-side { fill:url(#streak-side-gradient); opacity:.94; }
.streak-flame .flame-tongue { fill:url(#streak-outer-gradient); opacity:0; transform-box:fill-box; transform-origin:center; }
.streak-flame .flame-sparks { opacity:0; }
.streak-flame .spark { fill:#ffb43f; transform-box:fill-box; transform-origin:center; }
.streak-flame .flame-highlight { fill:none; stroke:rgba(255,255,226,.88); stroke-width:1.7; stroke-linecap:round; opacity:.72; }
.streak-number-line,.weekly-number-line { display:flex; align-items:baseline; gap:7px; }
.streak-number-line strong { color:#3c4038; font:800 35px/1 "Manrope",sans-serif; letter-spacing:-1.8px; }
.streak-number-line span,.weekly-number-line span { color:#8c9189; font-size:12px; font-weight:600; }
.streak-number-wrap p,.weekly-main p { margin:5px 0 0; color:#858a82; font-size:11px; line-height:1.5; }
.streak-progress-track,.weekly-progress-track { height:6px; overflow:hidden; border-radius:99px; background:rgba(194,166,130,.19); }
.streak-progress-track span,.weekly-progress-track span { display:block; width:0; height:100%; border-radius:inherit; transition:width .65s cubic-bezier(.2,.75,.25,1); }
.streak-progress-track span { background:linear-gradient(90deg,#e8a14d,#f0c16f); }
.game-card-foot { margin-top:11px; color:#969990; font-size:9px; font-weight:600; }
.streak-card.is-active .streak-flame-wrap { background:radial-gradient(circle at 50% 68%,#fff0c8 0%,#ffd28c 56%,#ffb65c 100%); box-shadow:0 0 0 5px rgba(255,126,43,.09),0 7px 22px rgba(230,91,25,.2),inset 0 -5px 12px rgba(235,92,22,.12); }
.streak-card.is-active .streak-flame-wrap::before { opacity:1; animation:ember-dance 2.1s ease-in-out infinite alternate; }
.streak-card.is-active .streak-flame-wrap::after { opacity:1; animation:ember-ring 2.8s ease-out infinite; }
.streak-card.is-active .streak-flame { animation:flame-flow 1.65s ease-in-out infinite; will-change:transform,filter; }
.streak-card.is-active .streak-flame .flame-inner { animation:flame-core-flow 1.15s ease-in-out infinite alternate; }
.streak-card.streak-anticipating .streak-flame-wrap { animation:flame-anticipation .52s cubic-bezier(.36,0,.66,-.25) both; }
.streak-card.streak-anticipating .streak-flame { animation:flame-anticipation-shape .52s cubic-bezier(.36,0,.66,-.25) both; }
.streak-card.streak-just-activated .streak-flame-wrap { animation:flame-impact .9s cubic-bezier(.16,.82,.24,1) both; }
.streak-card.streak-just-activated .streak-flame { animation:flame-explosion .9s cubic-bezier(.16,.82,.24,1) both; }
.streak-card.streak-just-activated .streak-flame .flame-sparks { opacity:1; }
.streak-card.streak-just-activated .streak-flame .tongue-left { animation:tongue-burst-left .82s cubic-bezier(.12,.72,.25,1) both; }
.streak-card.streak-just-activated .streak-flame .tongue-right { animation:tongue-burst-right .86s cubic-bezier(.12,.72,.25,1) .02s both; }
.streak-card.streak-just-activated .streak-flame .spark-one { animation:spark-out-one .72s cubic-bezier(.12,.72,.25,1) both; }
.streak-card.streak-just-activated .streak-flame .spark-two { animation:spark-out-two .78s cubic-bezier(.12,.72,.25,1) .03s both; }
.streak-card.streak-just-activated .streak-flame .spark-three { animation:spark-out-three .68s cubic-bezier(.12,.72,.25,1) .06s both; }
.streak-card.streak-just-activated .streak-flame .spark-four { animation:spark-out-four .74s cubic-bezier(.12,.72,.25,1) .02s both; }
.streak-card.streak-just-activated .streak-flame .spark-five { animation:spark-out-five .8s cubic-bezier(.12,.72,.25,1) both; }
@keyframes flame-flow { 0%,100% { transform:translateY(0) scale(.98,1.02) rotate(-1.5deg); filter:drop-shadow(0 0 5px rgba(255,103,35,.55)) drop-shadow(0 0 12px rgba(255,164,48,.34)); } 50% { transform:translateY(-2px) scale(1.035,.98) rotate(1.5deg); filter:drop-shadow(0 0 8px rgba(255,91,25,.72)) drop-shadow(0 0 17px rgba(255,176,54,.48)); } }
@keyframes flame-core-flow { from { transform:scale(.96,1.02) translateY(0); opacity:.9; } to { transform:scale(1.04,.96) translateY(-1px); opacity:1; } }
@keyframes ember-dance { from { transform:translateY(1px) scale(.85); filter:blur(.2px); } to { transform:translateY(-3px) scale(1.08); filter:blur(.7px); } }
@keyframes ember-ring { 0% { transform:scale(.9); opacity:.48; } 80%,100% { transform:scale(1.18); opacity:0; } }
/* Anticipation: squash, hold, then a quick stretch before the burst. */
@keyframes flame-anticipation { 0% { transform:scale(1); } 34% { transform:scale(.88,.82) translateY(2px); } 62% { transform:scale(.92,.88) translateY(1px); } 100% { transform:scale(1.12,.82) translateY(-2px); } }
@keyframes flame-anticipation-shape { 0% { transform:scale(1); } 34% { transform:scale(1.1,.82) rotate(-4deg); } 62% { transform:scale(.94,1.04) rotate(2deg); } 100% { transform:scale(.88,1.24) rotate(0); filter:drop-shadow(0 0 9px rgba(255,127,37,.72)); } }
/* Impact and follow-through: overshoot, recoil, settle. */
@keyframes flame-impact { 0% { transform:scale(1.12,.82); } 22% { transform:scale(1.28); box-shadow:0 0 0 10px rgba(255,126,43,.16),0 0 31px rgba(255,111,35,.52); } 48% { transform:scale(.91); } 72% { transform:scale(1.07); } 100% { transform:scale(1); } }
@keyframes flame-explosion { 0% { transform:scale(.88,1.24) translateY(-2px); filter:drop-shadow(0 0 5px rgba(255,110,34,.3)); } 24% { transform:scale(1.42,1.5) translateY(-7px); filter:drop-shadow(0 0 13px rgba(255,92,28,.95)) drop-shadow(0 0 25px rgba(255,184,58,.78)); } 48% { transform:scale(.91,1.08) translateY(1px); filter:drop-shadow(0 0 9px rgba(255,104,28,.8)); } 72% { transform:scale(1.08,.96) translateY(-1px); } 100% { transform:scale(1); filter:drop-shadow(0 0 7px rgba(255,104,28,.55)) drop-shadow(0 0 16px rgba(255,164,48,.42)); } }
@keyframes tongue-burst-left { 0% { opacity:0; transform:translate(3px,5px) scale(.25) rotate(12deg); } 24% { opacity:1; } 100% { opacity:0; transform:translate(-12px,-13px) scale(1.15) rotate(-18deg); } }
@keyframes tongue-burst-right { 0% { opacity:0; transform:translate(-3px,5px) scale(.25) rotate(-12deg); } 24% { opacity:1; } 100% { opacity:0; transform:translate(12px,-12px) scale(1.18) rotate(18deg); } }
@keyframes spark-out-one { to { opacity:0; transform:translate(-9px,-17px) scale(.2); } }
@keyframes spark-out-two { to { opacity:0; transform:translate(10px,-19px) scale(.15); } }
@keyframes spark-out-three { to { opacity:0; transform:translate(-14px,5px) scale(.1); } }
@keyframes spark-out-four { to { opacity:0; transform:translate(14px,4px) scale(.1); } }
@keyframes spark-out-five { to { opacity:0; transform:translate(1px,-23px) scale(.15); } }
.streak-card.is-active .streak-status { color:#a9431e; background:rgba(255,105,42,.13); }
.streak-card.is-active { border-color:rgba(255,111,42,.32); background:linear-gradient(120deg,#fff5e8 0%,#fff 76%); }
.weekly-target-label { display:flex; align-items:center; gap:6px; color:#969990; font-size:8px; font-weight:800; letter-spacing:.8px; }
.weekly-target-label select { border:1px solid #e7ece7; border-radius:8px; background:#fff; color:#53685a; padding:5px 20px 5px 8px; font:700 10px "DM Sans",sans-serif; outline:none; }
.weekly-main { display:flex; justify-content:space-between; align-items:center; gap:10px; margin:14px 0 12px; }
.weekly-number-line strong { color:#405b4a; font:800 32px/1 "Manrope",sans-serif; letter-spacing:-1.5px; }
.weekly-number-line span b { color:#647c6a; font-weight:800; }
.weekly-ring { position:relative; flex:0 0 58px; width:58px; height:58px; display:grid; place-items:center; }
.weekly-ring svg { position:absolute; inset:0; width:100%; height:100%; transform:rotate(-90deg); }
.weekly-ring circle { fill:none; stroke-width:6; }
.weekly-ring-bg { stroke:#e8eee9; }
.weekly-ring-value { stroke:#86a58f; stroke-linecap:round; stroke-dasharray:182.2; stroke-dashoffset:182.2; transition:stroke-dashoffset .7s cubic-bezier(.2,.75,.25,1); }
.weekly-ring strong { position:relative; color:#597362; font:800 12px "Manrope",sans-serif; }
.weekly-progress-track { background:#eaf0eb; }
.weekly-progress-track span { background:linear-gradient(90deg,#8bab91,#b4c9a9); }

@media (max-width:700px) { .gamification-grid { grid-template-columns:1fr; gap:11px; margin-bottom:16px; } .game-card { padding:18px 19px 16px; border-radius:19px; } .streak-main { margin:15px 0 13px; } }
@media (prefers-reduced-motion:reduce) { .game-card *, .game-card *::before, .game-card *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } .streak-card.is-active .streak-flame { filter:drop-shadow(0 0 7px rgba(255,91,25,.7)) drop-shadow(0 0 14px rgba(255,164,34,.5)); } .streak-card.streak-anticipating .streak-flame-wrap,.streak-card.streak-just-activated .streak-flame-wrap { transform:none; } }


/* V22.1 — cleaner footer and a quiet, standalone About page */
.site-footer {
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px 0 25px;
  letter-spacing: 0;
}
.footer-brand, .footer-links { display:flex; align-items:center; gap:12px; min-width:0; }
.footer-brand strong { color:var(--forest); font:800 13px "Manrope",sans-serif; letter-spacing:-.04em; }
.footer-muted { margin-left:0; font-size:10px; }
.footer-links { gap:18px; }
.footer-links button { border:0; background:transparent; color:var(--forest-2); padding:7px 0; font:700 10px "DM Sans",sans-serif; cursor:pointer; }
.footer-links button span { color:var(--coral); margin-left:4px; }
.footer-copy { color:#a0a79e; font:400 9px "DM Sans",sans-serif; white-space:nowrap; }
.about-view { padding:clamp(44px,8vw,90px) 0 70px; }
.about-content { max-width:690px; margin:0 auto; }
.about-view h1 { max-width:620px; margin:18px 0 18px; color:var(--forest); font:800 clamp(34px,6vw,58px)/1.12 "Manrope",sans-serif; letter-spacing:-.055em; }
.about-lead { max-width:590px; color:var(--forest-2); font-size:clamp(15px,2vw,18px); line-height:1.8; }
.about-story, .about-belief { max-width:590px; margin-top:42px; }
.about-story h2, .about-belief h2 { margin:0 0 10px; color:var(--forest); font:800 17px "Manrope",sans-serif; }
.about-story p, .about-belief p { margin:0; color:#77847a; font-size:13px; line-height:1.9; }
.about-belief { padding:22px 24px; border:1px solid var(--line); border-radius:18px; background:rgba(255,254,250,.55); }
.about-back { margin-top:30px; border:0; background:transparent; padding:8px 0; color:var(--forest-2); font:700 11px "DM Sans",sans-serif; cursor:pointer; }
@media (max-width:680px) {
  .site-footer { display:grid; grid-template-columns:1fr; grid-template-areas:"about" "brand" "copy"; justify-items:center; align-items:center; gap:8px; padding:20px 0 24px; text-align:center; }
  .footer-brand { grid-area:brand; align-items:center; flex-direction:column; gap:3px; }
  .footer-about-link { grid-area:about; justify-self:center; border:0; background:transparent; color:var(--forest-2); padding:5px 0; font:700 10px "DM Sans",sans-serif; cursor:pointer; }
  .footer-about-link span { color:var(--coral); margin-left:4px; }
  .footer-copy { grid-area:copy; white-space:normal; text-align:center; }
  .about-view { padding-top:35px; }
  .about-story, .about-belief { margin-top:30px; }
  .about-belief { padding:18px; }
}
/* Keep the account control beside the logo/nav now that the tagline is removed. */
.topbar-note { min-width:0; }
@media (min-width:681px) and (max-width:900px) {
  .topbar-note { flex:0 0 auto; min-width:0; padding:0; justify-content:flex-end; }
}


/* V22.2 — compact, standalone Daily Drop archive */
.daily-archive-link {
  display:inline-flex; align-items:center; gap:7px; margin-top:13px; padding:4px 0;
  border:0; background:transparent; color:rgba(255,253,248,.78); cursor:pointer;
  font:600 10px/1.4 "DM Sans",sans-serif; transition:color .18s ease;
}
.daily-archive-link:hover { color:#fff; }
.daily-archive-link span { color:#e9c995; font-size:13px; }
.archive-view { max-width:1120px; margin:0 auto; padding:clamp(34px,6vw,70px) 0 76px; }
.archive-page-head { max-width:650px; }
.archive-back-link { display:inline-flex; margin:0 0 30px; padding:7px 0; border:0; background:transparent; color:var(--forest-2); font:700 11px "DM Sans",sans-serif; cursor:pointer; }
.archive-page-head h1 { margin:17px 0 12px; color:var(--forest); font:800 clamp(34px,5vw,52px)/1.08 "Manrope",sans-serif; letter-spacing:-.055em; }
.archive-page-intro { max-width:590px; margin:0; color:#7d897f; font-size:13px; line-height:1.8; }
.archive-toolbar { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:34px 0 16px; }
.archive-total { color:#8a958b; font:700 10px "DM Sans",sans-serif; letter-spacing:.04em; }
.archive-search-wrap { display:flex; align-items:center; gap:8px; width:min(100%,280px); padding:0 12px; border:1px solid #e7e8df; border-radius:11px; background:rgba(255,254,250,.8); color:#89958b; }
.archive-search-wrap span { font-size:19px; line-height:1; }
.archive-search-wrap input { width:100%; min-width:0; height:38px; border:0; outline:0; background:transparent; color:var(--forest); font:500 11px "DM Sans",sans-serif; }
.archive-search-wrap input::placeholder { color:#a4aaa1; }
.archive-page-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.archive-page-card { min-width:0; min-height:178px; display:flex; flex-direction:column; padding:16px 17px 14px; border:1px solid #e8e6dc; border-radius:16px; background:rgba(255,254,250,.72); transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.archive-page-card:hover { transform:translateY(-2px); border-color:#cbd8ca; box-shadow:0 10px 24px rgba(55,77,63,.06); }
.archive-page-card.is-current { border-color:#cbd8ca; background:#f0f3eb; }
.archive-page-card-top { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.archive-page-edition { color:#8a968b; font:800 8px "DM Sans",sans-serif; letter-spacing:.13em; }
.archive-page-today { padding:4px 7px; border-radius:20px; background:#dce7d9; color:#617b67; font:800 7px "DM Sans",sans-serif; letter-spacing:.08em; }
.archive-page-card h2 { margin:12px 0 4px; overflow:hidden; color:#405347; font:700 14px/1.3 "Manrope",sans-serif; text-overflow:ellipsis; white-space:nowrap; }
.archive-page-meta { margin:0; color:#929b91; font:500 9px "DM Sans",sans-serif; }
.archive-page-meta span { padding:0 3px; color:#c0c6bb; }
.archive-page-preview { display:flex; flex-wrap:wrap; gap:5px; margin-top:11px; }
.archive-page-word { max-width:100%; overflow:hidden; padding:4px 7px; border:1px solid rgba(125,151,130,.16); border-radius:20px; background:rgba(255,255,255,.6); color:#738477; font:500 8px "DM Sans",sans-serif; text-overflow:ellipsis; white-space:nowrap; }
.archive-page-card-bottom { display:flex; align-items:flex-end; justify-content:space-between; gap:8px; margin-top:auto; padding-top:13px; }
.archive-page-status { display:grid; grid-template-columns:7px minmax(0,1fr); align-items:center; column-gap:6px; min-width:0; }
.archive-page-status>span { width:6px; height:6px; border-radius:50%; background:#aab2a8; }
.archive-page-status strong { overflow:hidden; color:#7c887d; font:700 8px "DM Sans",sans-serif; text-overflow:ellipsis; white-space:nowrap; }
.archive-page-status small { grid-column:2; margin-top:3px; color:#a1a89e; font:500 8px "DM Sans",sans-serif; }
.archive-page-status.is-done>span { background:#7eaa83; }
.archive-page-status.is-done strong { color:#63846a; }
.archive-page-status.is-progress>span { background:#d4a65e; }
.archive-page-status.is-progress strong { color:#a17a42; }
.archive-open-button { flex:0 0 auto; padding:7px 9px; border:1px solid #e4e8df; border-radius:9px; background:#fffefa; color:#58705e; cursor:pointer; font:700 8px "DM Sans",sans-serif; white-space:nowrap; }
.archive-open-button:hover { border-color:#c5d4c5; background:#f4f7f0; }
.archive-open-button span { color:#c08b53; margin-left:3px; }
.archive-empty { margin:22px 0; color:#8b958b; font-size:12px; text-align:center; }
@media (max-width:900px) { .archive-page-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:600px) {
  .archive-view { padding:28px 0 52px; }
  .archive-back-link { margin-bottom:24px; }
  .archive-page-head h1 { font-size:34px; }
  .archive-page-intro { font-size:12px; }
  .archive-toolbar { align-items:stretch; flex-direction:column; gap:10px; margin:25px 0 13px; }
  .archive-search-wrap { width:100%; box-sizing:border-box; }
  .archive-page-grid { grid-template-columns:1fr; gap:9px; }
  .archive-page-card { min-height:155px; padding:14px 14px 12px; }
  .archive-page-card-bottom { gap:6px; }
  .archive-open-button { padding:7px 8px; }
}


/* V22.3 — clear archive action placement, current edition label, and centered mobile footer */
.daily-archive-link {
  display:flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  gap:8px;
  margin:10px 0 0;
  padding:8px 11px;
  border:1px solid rgba(230,239,226,.24);
  border-radius:999px;
  background:rgba(255,255,255,.07);
  color:#e5ece2;
  font:700 10px/1.35 "DM Sans",sans-serif;
  text-align:left;
  transition:background .18s ease,border-color .18s ease,color .18s ease;
}
.daily-archive-link:hover,
.daily-archive-link:focus-visible {
  color:#fffdf8;
  background:rgba(255,255,255,.13);
  border-color:rgba(230,239,226,.42);
}
.daily-archive-link span { color:#e9c995; font-size:13px; }
.site-footer { display:grid; grid-template-columns:minmax(0,1fr) auto auto; grid-template-areas:"brand about copy"; align-items:center; column-gap:22px; }
.footer-brand { grid-area:brand; }
.footer-about-link { grid-area:about; border:0; background:transparent; color:var(--forest-2); padding:7px 0; font:700 10px "DM Sans",sans-serif; cursor:pointer; white-space:nowrap; }
.footer-about-link span { color:var(--coral); margin-left:4px; }
.footer-copy { grid-area:copy; }
@media (max-width:680px) {
  .site-footer {
    grid-template-columns:1fr;
    grid-template-areas:"about" "brand" "copy";
    justify-items:center;
    row-gap:8px;
    text-align:center;
  }
  .footer-brand { align-items:center; flex-direction:column; gap:3px; }
  .footer-about-link { justify-self:center; }
  .footer-copy { text-align:center; }
}


/* V17 — make quiz explanations comfortable to read at normal viewing distance. */
.answer-feedback {
  padding: 16px 18px;
  gap: 13px;
}
.answer-feedback strong {
  font-size: 13px;
  line-height: 1.45;
}
.answer-feedback p {
  font-size: 13px;
  line-height: 1.75;
}
.feedback-note strong,
.feedback-example strong {
  font-size: 11px;
  letter-spacing: .8px;
}
.feedback-note p,
.feedback-example p {
  font-size: 13px;
  line-height: 1.8;
}
.feedback-example small {
  font-size: 12px;
  line-height: 1.7;
}
@media (max-width: 680px) {
  .answer-feedback {
    padding: 15px;
    gap: 11px;
  }
  .answer-feedback p,
  .feedback-note p,
  .feedback-example p {
    font-size: 13px;
    line-height: 1.75;
  }
}


/* V22.4 — archive cards: improve readability and touch comfort */
.archive-page-grid {
  gap: 16px;
}
.archive-page-card {
  min-height: 194px;
  padding: 19px 19px 16px;
  border-radius: 18px;
}
.archive-page-edition {
  font-size: 9px;
}
.archive-page-today {
  padding: 5px 8px;
  font-size: 8px;
}
.archive-page-card h2 {
  margin: 13px 0 5px;
  font-size: 15px;
  line-height: 1.35;
}
.archive-page-meta {
  font-size: 10px;
  line-height: 1.5;
}
.archive-page-preview {
  gap: 6px;
  margin-top: 13px;
}
.archive-page-word {
  padding: 5px 8px;
  font-size: 9px;
}
.archive-page-card-bottom {
  gap: 10px;
  padding-top: 15px;
}
.archive-page-status {
  grid-template-columns: 8px minmax(0,1fr);
  column-gap: 7px;
}
.archive-page-status>span {
  width: 7px;
  height: 7px;
}
.archive-page-status strong {
  font-size: 9px;
}
.archive-page-status small {
  font-size: 9px;
}
.archive-open-button {
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 9px;
}
@media (max-width: 900px) {
  .archive-page-grid { gap: 13px; }
}
@media (max-width: 600px) {
  .archive-page-grid { gap: 11px; }
  .archive-page-card {
    min-height: 174px;
    padding: 16px 16px 14px;
    border-radius: 16px;
  }
  .archive-page-card h2 { font-size: 15px; }
  .archive-page-meta { font-size: 10px; }
  .archive-page-word { font-size: 9px; }
  .archive-page-status strong,
  .archive-page-status small { font-size: 9px; }
  .archive-open-button { padding: 8px 10px; font-size: 9px; }
}

/* EXP rank card — restrained vector styling, no platform-dependent emoji */
.exp-rank-card {
  position: relative;
  overflow: hidden;
  margin: 24px 0 18px;
  padding: 23px 25px 18px;
  border: 1px solid #dfe6dc;
  border-radius: 20px;
  background: linear-gradient(115deg, #f7f8f1 0%, #f1f4ec 58%, #e9efe6 100%);
  box-shadow: 0 10px 28px rgba(42, 67, 54, .045);
  animation: exp-card-enter 420ms cubic-bezier(.2,.75,.25,1) both;
}
.exp-rank-card::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -105px;
  top: -145px;
  border: 1px solid rgba(91, 128, 98, .13);
  border-radius: 50%;
  box-shadow: 0 0 0 19px rgba(91, 128, 98, .025), 0 0 0 39px rgba(91, 128, 98, .02);
  pointer-events: none;
}
.exp-rank-top,.exp-progress-meta,.exp-rank-foot { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.exp-rank-kicker,.exp-rank-level,.exp-progress-meta { color:#879389; font-size:9px; font-weight:800; letter-spacing:.13em; }
.exp-rank-level { padding:6px 9px; border:1px solid rgba(95,126,99,.18); border-radius:999px; color:#64816a; background:rgba(255,255,255,.46); white-space:nowrap; }
.exp-rank-main { display:flex; align-items:center; gap:17px; margin:19px 0 20px; }
.exp-rank-emblem { width:66px; height:66px; flex:0 0 66px; display:grid; place-items:center; border-radius:19px; background:linear-gradient(145deg,#e2ebdc,#d2e1d0); box-shadow:inset 0 0 0 1px rgba(88,123,91,.12); }
.exp-rank-emblem svg { width:43px; height:43px; fill:none; stroke:#62836a; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.exp-rank-emblem .emblem-orbit { fill:rgba(255,255,255,.34); }
.exp-rank-emblem circle { fill:rgba(255,255,255,.48); }
.exp-rank-emblem .emblem-check { stroke-width:2.5; }
.exp-rank-copy { min-width:0; }
.exp-rank-copy h2 { margin:0 0 3px; color:#31463a; font:750 clamp(20px,2.4vw,25px)/1.2 "Manrope",sans-serif; letter-spacing:-.7px; }
.exp-rank-copy p { margin:0 0 8px; color:#7d897e; font-size:11px; line-height:1.5; }
.exp-rank-copy>strong { color:#537d5b; font:800 23px/1 "Manrope",sans-serif; letter-spacing:-.7px; }
.exp-rank-copy>strong small { font-size:10px; letter-spacing:.1em; }
.exp-progress-meta { margin-bottom:8px; font-size:8px; }
.exp-progress-meta b { color:#617b66; font-size:9px; letter-spacing:0; white-space:nowrap; }
.exp-progress-track { height:8px; overflow:hidden; border-radius:99px; background:#dfe7dc; }
.exp-progress-track span { display:block; width:var(--exp-progress,0%); height:100%; border-radius:inherit; background:linear-gradient(90deg,#8eae8d,#5f8c68); transform-origin:left; animation:exp-progress-fill 850ms cubic-bezier(.2,.75,.25,1) 120ms both; }
.exp-rank-foot { margin-top:9px; color:#879187; font-size:9px; line-height:1.45; }
.exp-rank-foot span:last-child { white-space:nowrap; }
@keyframes exp-card-enter { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@keyframes exp-progress-fill { from { transform:scaleX(0); } to { transform:scaleX(1); } }
.rank-up-notice { position:fixed; z-index:9999; top:22px; left:50%; display:flex; align-items:center; gap:12px; width:min(360px,calc(100vw - 32px)); padding:13px 16px; border:1px solid rgba(100,132,104,.2); border-radius:16px; background:rgba(250,251,246,.97); box-shadow:0 16px 44px rgba(31,48,37,.16); opacity:0; transform:translate(-50%,-12px) scale(.98); transition:opacity 220ms ease,transform 260ms cubic-bezier(.2,.75,.25,1); pointer-events:none; backdrop-filter:blur(12px); }
.rank-up-notice.is-visible { opacity:1; transform:translate(-50%,0) scale(1); }
.rank-up-mark { width:39px; height:39px; flex:0 0 39px; display:grid; place-items:center; border-radius:12px; background:#e5eee1; }
.rank-up-mark svg { width:25px; height:25px; fill:none; stroke:#5f8666; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.rank-up-mark svg path:first-child { fill:rgba(110,151,112,.12); }
.rank-up-notice>span:last-child { display:grid; gap:2px; }
.rank-up-notice small { color:#8a9889; font-size:8px; font-weight:800; letter-spacing:.15em; }
.rank-up-notice strong { color:#344b3b; font:750 16px/1.2 "Manrope",sans-serif; }
.rank-up-notice em { color:#7f8c80; font-size:10px; font-style:normal; }
@media(max-width:600px) {
  .exp-rank-card { margin:19px 0 14px; padding:19px 17px 15px; border-radius:17px; }
  .exp-rank-main { gap:13px; margin:16px 0 17px; }
  .exp-rank-emblem { width:56px; height:56px; flex-basis:56px; border-radius:16px; }
  .exp-rank-emblem svg { width:37px; height:37px; }
  .exp-rank-copy h2 { font-size:20px; }
  .exp-rank-copy p { font-size:10px; }
  .exp-rank-copy>strong { font-size:21px; }
  .exp-rank-foot { align-items:flex-start; font-size:8px; }
  .exp-rank-foot span:last-child { text-align:right; }
  .rank-up-notice { top:12px; }
}
@media(prefers-reduced-motion:reduce) {
  .exp-rank-card,.exp-progress-track span { animation:none; }
  .rank-up-notice { transition:none; }
}
.result-exp-earned { display:flex; align-items:center; justify-content:center; gap:9px; width:max-content; max-width:100%; margin:15px auto 0; padding:9px 14px; border:1px solid #e1e9dd; border-radius:13px; background:#f3f7ef; animation:exp-card-enter 360ms ease both; }
.result-exp-mark { width:25px; height:25px; display:grid; place-items:center; border-radius:8px; background:#e3edde; }
.result-exp-mark svg { width:16px; height:16px; fill:rgba(95,134,102,.16); stroke:#63866a; stroke-width:1.6; stroke-linejoin:round; }
.result-exp-earned>span:last-child { display:grid; gap:1px; text-align:left; }
.result-exp-earned small { color:#829282; font-size:7px; font-weight:800; letter-spacing:.13em; }
.result-exp-earned strong { color:#547b5c; font:800 14px/1.2 "Manrope",sans-serif; }


/* Rank icon assets — drop the six SVG files into assets/ranks/. */
.exp-rank-emblem,
.rank-up-mark {
  position: relative;
  overflow: hidden;
}
.exp-rank-emblem .rank-book-fallback,
.rank-up-mark .rank-book-fallback {
  width: 68%;
  height: 68%;
  display: block;
  color: #42645c;
}
.exp-rank-emblem img,
.rank-up-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12%;
}
.rank-up-mark img { padding: 10%; }

/* V6.5 — Word Pathfinder: bespoke Royal Energy Frame.
   Inspired by the user's supplied frame reference, integrated without the
   Tailwind CDN, foreign fonts or page-level preview controls.
   Visual-only. Rank SVG, scoring and progression are untouched. */
@property --pf-border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.exp-rank-main:has(> .pathfinder-emblem) { gap: 24px; }
.exp-rank-emblem.pathfinder-emblem {
  position: relative;
  isolation: isolate;
  overflow: visible;
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  flex: 0 0 116px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  --pf-border-angle: 0deg;
}
/* Energy rim follows a fixed rounded-square; only its gradient changes. */
.exp-rank-emblem.pathfinder-emblem::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 9px;
  border-radius: 27px;
  background: conic-gradient(from var(--pf-border-angle),
    #243b2e 0%, #c4a86f 17%, #f5e7c3 24%,
    #4d8256 42%, #263e30 55%, #c4a86f 75%,
    #f5e7c3 83%, #243b2e 100%);
  box-shadow: 0 9px 22px -6px rgba(35,56,44,.27),
              0 0 0 1px rgba(196,168,111,.62),
              0 0 16px rgba(196,168,111,.13);
  animation: pf-border-rotate 7s linear infinite;
  pointer-events: none;
}
/* Dark inset bezel, like the supplied premium frame. */
.exp-rank-emblem.pathfinder-emblem::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 13px;
  border-radius: 23px;
  background: linear-gradient(145deg,#23382c,#15271e);
  border: 1px solid rgba(237,217,175,.52);
  box-shadow: inset 0 0 9px rgba(235,214,169,.15);
  pointer-events: none;
}
/* The sage panel inside the bezel keeps the original rank illustration legible. */
.exp-rank-emblem.pathfinder-emblem .pathfinder-frame-inner {
  position: absolute;
  z-index: 4;
  inset: 17px;
  border-radius: 19px;
  background: radial-gradient(circle at 29% 21%, #e2efe2, #c9dec9 68%, #b6d0b6 100%);
  border: 1px solid rgba(211,175,111,.92);
  box-shadow: inset 0 2px 8px rgba(35,56,44,.13),
              inset 0 0 0 1px rgba(255,248,226,.42);
  pointer-events: none;
}
.exp-rank-emblem.pathfinder-emblem .pathfinder-ambient {
  position: absolute;
  inset: 3px;
  z-index: 0;
  border-radius: 31px;
  background: radial-gradient(circle, rgba(196,168,111,.37),rgba(77,130,86,.17) 52%,transparent 75%);
  filter: blur(8px);
  pointer-events: none;
  animation: pf-aura 5.5s ease-in-out infinite;
}
/* The filigree is supplied as SVG markup; no bitmap frames to misalign. */
.exp-rank-emblem.pathfinder-emblem .pathfinder-filigree {
  position: absolute;
  z-index: 7;
  inset: -2px;
  width: 120px;
  height: 120px;
  max-width: none;
  max-height: none;
  display: block;
  pointer-events: none;
  stroke-width: initial;
  fill: none;
  filter: drop-shadow(0 2px 2px rgba(35,56,44,.13));
  transform-origin: center;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
/* Explicit image sizing avoids the old rank illustration covering the new rim. */
.exp-rank-emblem.pathfinder-emblem .rank-icon-art,
.exp-rank-emblem.pathfinder-emblem .rank-book-fallback {
  position: absolute;
  z-index: 6;
  inset: auto;
  top: 50%;
  left: 50%;
  width: 55%;
  height: 55%;
  padding: 0;
  margin: 0;
  transform: translate(-50%,-50%);
  object-fit: contain;
}
.exp-rank-emblem.pathfinder-emblem .rank-book-fallback {
  stroke: #42645c;
}
/* Short sheen inside the frame, below the crest and above the illustration. */
.exp-rank-emblem.pathfinder-emblem .pathfinder-shimmer {
  position: absolute;
  z-index: 8;
  inset: 14px;
  overflow: hidden;
  border-radius: 22px;
  pointer-events: none;
}
.exp-rank-emblem.pathfinder-emblem .pathfinder-shimmer::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -65%;
  height: 180%;
  width: 30%;
  transform: translateX(0) rotate(24deg);
  background: linear-gradient(90deg,transparent,rgba(255,246,218,.37),transparent);
  opacity: 0;
  animation: pf-shimmer 6s ease-in-out infinite;
}
@keyframes pf-border-rotate { to { --pf-border-angle: 360deg; } }
@keyframes pf-aura {
  0%,100% { opacity: .6; transform: scale(.96); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes pf-shimmer {
  0%,55% { opacity:0; transform: translateX(0) rotate(24deg); }
  62% { opacity:.56; }
  76%,100% { opacity:0; transform: translateX(320px) rotate(24deg); }
}
@media (hover:hover) and (pointer:fine) {
  .exp-rank-emblem.pathfinder-emblem:hover .pathfinder-filigree { transform: scale(1.035); }
}
@media (max-width:600px) {
  .exp-rank-main:has(> .pathfinder-emblem) { gap: 16px; }
  .exp-rank-emblem.pathfinder-emblem { width: 93px; height: 93px; flex-basis:93px; }
  .exp-rank-emblem.pathfinder-emblem::before { inset:7px; border-radius:22px; }
  .exp-rank-emblem.pathfinder-emblem::after { inset:10px; border-radius:18px; }
  .exp-rank-emblem.pathfinder-emblem .pathfinder-frame-inner { inset:13px; border-radius:16px; }
  .exp-rank-emblem.pathfinder-emblem .pathfinder-filigree {
    inset: -1px;
    width:95px;
    height:95px;
  }
  .exp-rank-emblem.pathfinder-emblem .pathfinder-shimmer { inset:11px; border-radius:17px; }
}
@media (prefers-reduced-motion:reduce) {
  .exp-rank-emblem.pathfinder-emblem::before,
  .exp-rank-emblem.pathfinder-emblem .pathfinder-ambient,
  .exp-rank-emblem.pathfinder-emblem .pathfinder-shimmer::after {
    animation: none !important;
  }
  .exp-rank-emblem.pathfinder-emblem .pathfinder-filigree { transition:none!important; }
}

/* Quiz pronunciation: one normal-speed audio control with IPA beside it. */
.pronunciation-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  margin: 12px 0 19px;
}
.pronunciation-audio-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e8efe8;
  color: #314e49;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, opacity .18s ease;
  position: relative;
}
.pronunciation-audio-button[data-speed="0.5×"]::after,
.pronunciation-audio-button[data-speed="1×"]::after {
  content: attr(data-speed);
  position: absolute;
  right: -7px;
  bottom: -4px;
  min-width: 23px;
  padding: 2px 4px;
  border: 1px solid #fff;
  border-radius: 10px;
  background: #42645c;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 1px 4px rgba(30, 50, 40, .12);
}
.pronunciation-audio-button svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  stroke: none;
}
.pronunciation-audio-button:hover:not(:disabled) {
  transform: scale(1.05);
  background: #dce9df;
  box-shadow: 0 0 0 6px rgba(113, 145, 125, .08);
}
.pronunciation-audio-button:focus-visible {
  outline: 2px solid #789688;
  outline-offset: 4px;
}
.pronunciation-audio-button:disabled {
  cursor: not-allowed;
  opacity: .58;
}
.pronunciation-ipa {
  color: #53665e;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.2px;
  line-height: 1.4;
}
@media (min-width: 1101px) {
  .pronunciation-row { gap: 17px; min-height: 54px; margin: 13px 0 23px; }
  .pronunciation-audio-button { flex-basis: 54px; width: 54px; height: 54px; }
  .pronunciation-audio-button svg { width: 24px; height: 24px; }
  .pronunciation-ipa { font-size: 19px; }
}
@media (max-width: 600px) {
  .pronunciation-row { gap: 11px; min-height: 42px; margin: 10px 0 17px; }
  .pronunciation-audio-button { flex-basis: 42px; width: 42px; height: 42px; }
  .pronunciation-ipa { font-size: 14px; }
}

/* Cloud progress sync status in the learning dashboard */
.v15-sync-status {
  margin: 12px 0 18px;
  color: var(--muted, #777);
  font-size: 0.78rem;
  line-height: 1.5;
}


/* Username onboarding and legacy-account nudge */
.username-nudge { display:flex; align-items:center; gap:14px; margin:24px 0 8px; padding:16px 18px; border:1px solid #e5e4d9; border-radius:18px; background:#fbfaf4; }
.username-nudge[hidden] { display:none !important; }
.username-nudge-mark { display:grid; place-items:center; flex:0 0 40px; width:40px; height:40px; border-radius:13px; background:#e9eee5; color:var(--forest); font:800 21px/1 Manrope,sans-serif; }
.username-nudge-copy { display:flex; flex:1; min-width:0; flex-direction:column; gap:4px; }
.username-nudge-copy strong { color:var(--forest); font-size:12px; }
.username-nudge-copy span { color:#78847c; font-size:10px; line-height:1.5; }
.username-nudge-action { flex:0 0 auto; border:0; border-radius:999px; padding:10px 14px; background:var(--forest); color:#fffefa; font:700 10px Manrope,sans-serif; cursor:pointer; }
.username-nudge-action:hover { background:#42645c; }
.username-view { padding:34px 0 80px; }
.username-field { position:relative; }
.username-field > span { position:absolute; z-index:1; left:14px; top:50%; transform:translateY(-50%); color:#87958a; font-size:13px; font-weight:700; }
.username-field .auth-input { padding-left:31px; }
.username-preview { display:flex; align-items:center; gap:11px; margin-top:22px; padding:13px; border:1px solid #e8e9df; border-radius:14px; background:#f8f8f1; }
.username-preview-avatar { display:grid; place-items:center; width:36px; height:36px; border-radius:50%; background:#42645c; color:white; font:700 14px Manrope,sans-serif; }
.username-preview div { display:flex; flex-direction:column; gap:3px; }
.username-preview small { color:#9aa39a; font-size:8px; letter-spacing:1px; }
.username-preview strong { color:var(--forest); font-size:11px; }
.username-message { margin-top:14px; padding:11px 13px; border-radius:11px; background:#f8f5ed; color:#65766a; font-size:10px; line-height:1.6; }
.username-message.error { background:#fbf1ed; color:#9a6657; }
@media (max-width:560px) { .username-nudge { align-items:flex-start; flex-wrap:wrap; } .username-nudge-copy { flex-basis:calc(100% - 56px); } .username-nudge-action { margin-left:54px; } }

/* Profile + Study Partners */
.account-menu-item { display:block; width:100%; margin-top:8px; padding:9px 10px; border:0; border-radius:9px; background:transparent; color:#52615e; font-size:11px; font-weight:700; text-align:left; cursor:pointer; }
.account-menu-item:hover { background:#f3f2ea; color:var(--forest); }
.social-page-head { max-width:760px; margin:0 auto 28px; }
.social-page-head .back-button { margin-bottom:26px; }
.social-page-head h1 { margin:15px 0 10px; color:#293a36; font:600 clamp(36px,4.4vw,52px)/1.1 Manrope,sans-serif; letter-spacing:-2px; }
.profile-view, .study-partners-view { padding-bottom:80px; }
.profile-card { display:flex; align-items:center; gap:18px; max-width:760px; margin:0 auto; padding:24px; border:1px solid #e6e3d9; border-radius:22px; background:rgba(255,254,250,.78); box-shadow:var(--shadow); }
.profile-avatar { display:grid; place-items:center; width:66px; height:66px; flex:0 0 66px; border-radius:22px; background:var(--forest); color:#fffefa; font:800 26px Manrope,sans-serif; }
.profile-identity { display:flex; flex:1; min-width:0; flex-direction:column; gap:5px; }
.profile-identity span,.partner-section-head span,.partner-request-label { color:#9a9e91; font-size:8px; font-weight:800; letter-spacing:.15em; }
.profile-identity strong { color:var(--forest); font:700 19px Manrope,sans-serif; overflow-wrap:anywhere; }
.profile-identity small { color:#89938b; font-size:10px; overflow-wrap:anywhere; }
.profile-note { max-width:760px; margin:14px auto 0; color:#849087; font-size:10px; line-height:1.7; }
.partner-search-card,.partner-list-card { border:1px solid #e6e3d9; border-radius:21px; background:rgba(255,254,250,.82); padding:22px; }
.partner-search-card { max-width:900px; margin:0 auto 18px; }
.partner-search-card > label { display:block; margin-bottom:12px; color:var(--forest); font:700 15px Manrope,sans-serif; }
.partner-search-row { display:flex; align-items:center; gap:10px; padding:6px; border:1px solid #e4e5dc; border-radius:14px; background:#fffefa; }
.partner-search-row > span { padding-left:10px; color:#89968c; font-weight:800; }
.partner-search-row input { flex:1; min-width:0; padding:10px 2px; border:0; outline:0; background:transparent; color:var(--ink); font:600 13px Manrope,sans-serif; }
.partner-search-row .primary-button { padding:11px 19px; }
.partner-search-hint { margin:9px 0 0; color:#9aa197; font-size:9px; }
.partner-search-results { margin-top:13px; }
.partner-columns { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.partner-section-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.partner-section-head h2 { margin:4px 0 0; color:var(--forest); font:700 18px Manrope,sans-serif; }
.partner-count { display:grid; place-items:center; width:29px; height:29px; border-radius:50%; background:#e9eee6; color:var(--forest); font-size:11px; font-weight:800; }
.partner-result { display:flex; align-items:center; gap:11px; min-width:0; padding:12px 0; border-top:1px solid #eeece4; }
.partner-avatar { display:grid; place-items:center; width:37px; height:37px; flex:0 0 37px; border-radius:13px; background:var(--avatar-color,#e7eee7); color:#fffefa; font:800 13px Manrope,sans-serif; }
.partner-user-copy { display:flex; flex:1; min-width:0; flex-direction:column; gap:4px; }
.partner-user-copy strong { color:#354842; font-size:11px; overflow-wrap:anywhere; }
.partner-user-copy small { color:#98a097; font-size:9px; }
.partner-action,.partner-request-actions button { flex:0 0 auto; border:0; border-radius:999px; padding:9px 12px; background:var(--forest); color:#fffefa; font-size:9px; font-weight:800; cursor:pointer; }
.partner-action:disabled,.partner-request-actions button:disabled { opacity:.55; cursor:default; }
.partner-action span { font-size:12px; }
.partner-connected,.partner-pending { flex:0 0 auto; color:#728c78; font-size:9px; font-weight:800; }
.partner-pending { color:#b18a5e; }
.partner-request-group + .partner-request-group { margin-top:14px; }
.partner-request-label { display:block; margin:10px 0 2px; }
.partner-request-actions { display:flex; gap:5px; }
.partner-request-actions button { padding:8px 10px; }
.partner-request-actions button.decline { border:1px solid #e9e1d9; background:#f7f2ed; color:#9a6c5c; }
.partner-empty { margin:0; padding:15px 0; color:#929b92; font-size:10px; line-height:1.7; }
.partner-feedback { max-width:900px; margin:14px auto 0; padding:12px 15px; border:1px solid #dce7dd; border-radius:12px; background:#f1f6ef; color:#58735f; font-size:10px; line-height:1.6; }
.partner-feedback.is-error { border-color:#eedbd2; background:#fbf1ed; color:#9a6657; }
.partner-feedback[hidden] { display:none !important; }
@media (max-width:900px) { .main-nav { gap:2px; } .nav-link { padding:9px 10px; font-size:10px; } .brand { min-width:140px; } .topbar-note { min-width:120px; } }
@media (max-width:680px) { .partner-columns { grid-template-columns:1fr; } .profile-card { align-items:flex-start; flex-wrap:wrap; padding:18px; } .profile-card .secondary-button { margin-left:84px; } .partner-search-card,.partner-list-card { padding:17px; } .partner-result { gap:8px; } .partner-action { padding:8px 9px; } }
@media (max-width:420px) { .partner-search-row { gap:5px; } .partner-search-row .primary-button { padding:10px 12px; } .partner-request-actions { flex-direction:column; } .profile-card .secondary-button { margin-left:0; } }


/* Study Partners — Together Streak refinement */
.partner-refresh-button { display:inline-flex; align-items:center; gap:7px; margin-top:4px; padding:9px 13px; border:1px solid #e2e5dc; border-radius:999px; background:#fffefa; color:#536c60; font:700 10px Manrope,sans-serif; cursor:pointer; transition:background .18s ease,border-color .18s ease; }
.partner-refresh-button:hover { background:#f0f4ed; border-color:#cbd8cb; }
.partner-section-caption { margin:5px 0 0; color:#8d988e; font-size:10px; line-height:1.5; }
.partner-streak-card { margin:0 0 13px; padding:17px; border:1px solid #e5e5db; border-radius:17px; background:linear-gradient(135deg,rgba(245,242,235,.92),rgba(255,254,250,.98)); }
.partner-streak-top { display:flex; align-items:center; gap:10px; }
.partner-streak-top .partner-user-copy small { font-size:9px; }
.partner-streak-main { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:16px 0 13px; padding:14px 15px; border-radius:13px; background:#edf1e9; }
.partner-streak-main > div { display:flex; min-width:0; flex-direction:column; gap:4px; }
.partner-streak-kicker { color:#819083; font-size:8px; font-weight:800; letter-spacing:.14em; }
.partner-streak-main strong { color:#314e49; font:800 25px/1.1 Manrope,sans-serif; letter-spacing:-.7px; }
.partner-streak-main small { color:#7d897f; font-size:9px; line-height:1.5; }
.partner-streak-status { flex:0 0 auto; padding:7px 9px; border:1px solid #e2d7c4; border-radius:999px; background:#f8f1e5; color:#98764d; font-size:8px; font-weight:800; text-align:center; }
.partner-streak-status.is-active { border-color:#d5e1d4; background:#e4eee2; color:#4f7558; }
.partner-streak-progress { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.partner-streak-person-row { display:flex; flex-direction:column; align-items:stretch!important; justify-content:flex-start!important; gap:7px!important; }
.partner-streak-person-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.partner-streak-person-head > span { display:flex; align-items:center; gap:7px; min-width:0; }
.partner-progress-track { width:100%; height:6px; overflow:hidden; border-radius:999px; background:#eceee7; }
.partner-progress-track > span { display:block; height:100%; border-radius:inherit; background:#78947e; transition:width .25s ease; }
.partner-streak-person-row small { color:#929b90; font-size:8px; font-weight:700; text-align:right; font-variant-numeric:tabular-nums; }
.partner-streak-progress > div { display:flex; align-items:center; justify-content:space-between; gap:7px; min-width:0; padding:10px 11px; border:1px solid #eeece4; border-radius:11px; background:#fffefa; }
.partner-streak-progress > div > span { display:flex; align-items:center; gap:7px; min-width:0; }
.partner-streak-progress .partner-avatar { width:27px; height:27px; flex-basis:27px; border-radius:9px; font-size:10px; }
.partner-streak-person { overflow:hidden; color:#66766b; font-size:9px; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }
.partner-streak-progress strong { flex:0 0 auto; color:#9a9e91; font-size:8px; font-weight:800; text-align:right; }
.partner-streak-progress strong.is-done { color:#4e7b58; }
.partner-streak-foot { display:flex; justify-content:space-between; gap:8px; margin-top:10px; color:#939c91; font-size:8px; line-height:1.5; }
.partner-streak-foot span:last-child { color:#61786a; font-weight:800; font-variant-numeric:tabular-nums; }
@media (max-width:680px) { .partner-streak-card { padding:13px; } .partner-streak-main { align-items:flex-start; padding:12px; } .partner-streak-status { max-width:112px; white-space:normal; } .partner-streak-progress { grid-template-columns:1fr; gap:7px; } .partner-streak-foot { flex-direction:column; } }
@media (max-width:390px) { .partner-streak-main { flex-direction:column; } .partner-streak-status { max-width:none; } }

/* Study Partners — playful, Duolingo-inspired energy with Ulaskata identity */
.study-partners-view { max-width:1120px; margin:0 auto; padding:34px 28px 88px; }
.social-page-head { max-width:none; margin:0 auto 24px; }
.social-page-head .back-button { margin-bottom:22px; }
.social-page-head .eyebrow { color:#78947e; }
.social-page-head h1 { margin:12px 0 9px; font-size:clamp(34px,4vw,48px); letter-spacing:-1.8px; }
.social-page-head .intro-description { max-width:660px; font-size:15px; line-height:1.7; color:#68766c; }
.partner-refresh-button { min-height:42px; margin-top:13px; padding:10px 16px; border:1.5px solid #d7e2d4; background:#eef4eb; color:#42645c; font-size:12px; }
.partner-refresh-button:hover { background:#e4eee1; border-color:#b9ceb9; }
.partner-search-card,.partner-list-card { max-width:none; padding:24px; border:1.5px solid #e5e7dc; border-radius:24px; background:#fffefa; box-shadow:0 5px 0 rgba(49,78,73,.035); }
.partner-search-card { margin:0 0 20px; background:linear-gradient(135deg,#fffefa 0%,#f4f6ee 100%); }
.partner-search-card > label { margin-bottom:13px; font-size:17px; }
.partner-search-row { min-height:54px; gap:12px; padding:6px 7px 6px 10px; border:1.5px solid #dfe6dc; border-radius:16px; }
.partner-search-row input { font-size:15px; padding:12px 3px; }
.partner-search-row .primary-button { min-height:42px; padding:11px 22px; border-radius:12px; font-size:12px; }
.partner-search-hint { margin-top:10px; font-size:11px; color:#879287; }
.partner-search-results { margin-top:14px; }
.partner-columns { display:grid; grid-template-columns:minmax(0,1fr); gap:18px; }
.partner-section-head { margin-bottom:18px; }
.partner-section-head > div > span { color:#9a8a64; font-size:10px; letter-spacing:.16em; }
.partner-section-head h2 { margin:5px 0 0; font-size:23px; letter-spacing:-.6px; }
.partner-section-caption { max-width:640px; margin-top:7px; font-size:12px; line-height:1.6; }
.partner-count { width:36px; height:36px; background:#e9f0e5; font-size:13px; }
#partner-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.partner-streak-card { position:relative; min-width:0; margin:0; padding:19px; overflow:hidden; border:1.5px solid #e5e9dc; border-radius:20px; background:#fffefa; box-shadow:0 4px 0 rgba(49,78,73,.045); }
.partner-streak-card::before { content:""; position:absolute; inset:0 0 auto; height:5px; background:linear-gradient(90deg,#42645c 0%,#ddc18a 55%,#d58d78 100%); }
.partner-streak-top { gap:11px; padding-top:3px; }
.partner-streak-top .partner-avatar { width:44px; height:44px; flex-basis:44px; border-radius:15px; font-size:16px; }
.partner-streak-top .partner-user-copy strong { font-size:14px; color:#314e49; }
.partner-streak-top .partner-user-copy small { font-size:11px; color:#89958a; }
.partner-connected { padding:6px 9px; border-radius:999px; background:#edf4e9; color:#5b805f; font-size:10px; }
.partner-streak-main { position:relative; margin:17px 0 14px; padding:17px; border-radius:17px; background:#f2f4e9; }
.partner-streak-main::after { content:"✦"; position:absolute; right:17px; top:9px; color:#ddc18a; font-size:21px; }
.partner-streak-kicker { color:#7d8d7d; font-size:10px; letter-spacing:.13em; }
.partner-streak-main strong { display:block; margin:2px 0; font-size:32px; letter-spacing:-1px; }
.partner-streak-main small { max-width:340px; font-size:11px; color:#718073; }
.partner-streak-status { max-width:145px; padding:8px 11px; border:1px solid #eadfc7; background:#fbf3df; color:#98764d; font-size:10px; line-height:1.35; }
.partner-streak-status.is-active { border-color:#cfe0ca; background:#e8f2e3; color:#4f7957; }
.partner-streak-progress { gap:10px; }
.partner-streak-progress > div { display:block; padding:13px; border:1.5px solid #eceee5; border-radius:15px; background:#fff; }
.partner-streak-person-row { gap:9px!important; }
.partner-streak-person-head { align-items:center; }
.partner-streak-person-head > span { gap:8px; }
.partner-streak-progress .partner-avatar { width:32px; height:32px; flex-basis:32px; border-radius:11px; font-size:12px; }
.partner-streak-person { font-size:11px; color:#52665a; }
.partner-streak-progress strong { font-size:10px; }
.partner-progress-track { height:9px; background:#edf0e8; }
.partner-progress-track > span { background:#79a17b; }
.partner-streak-person-row small { margin-top:0; font-size:10px; color:#7f8d80; }
.partner-streak-foot { margin-top:13px; padding-top:11px; border-top:1px dashed #e7e8df; font-size:10px; color:#7f8d80; }
.partner-streak-foot span:last-child { color:#647d68; }
.partner-requests-card { background:#fbfaf5; }
.partner-requests-card .partner-section-head { margin-bottom:10px; }
.partner-result { gap:12px; padding:14px 2px; border-top:1px solid #eceee6; }
.partner-result .partner-avatar { width:42px; height:42px; flex-basis:42px; border-radius:14px; font-size:14px; }
.partner-user-copy strong { font-size:13px; color:#314e49; }
.partner-user-copy small { font-size:11px; color:#879287; }
.partner-action,.partner-request-actions button { min-height:38px; padding:9px 14px; border-radius:12px; font-size:11px; }
.partner-request-actions { gap:8px; }
.partner-request-actions button.decline { background:#f7eee8; }
.partner-request-label { margin:12px 0 5px; font-size:10px; color:#9a8a64; }
.partner-empty { padding:20px 4px; font-size:13px; line-height:1.7; color:#7e8a7f; }
.partner-feedback { max-width:none; margin-top:16px; padding:14px 17px; border-radius:15px; font-size:12px; }
@media (max-width:760px) {
  .study-partners-view { padding:28px 20px 72px; }
  #partner-list { grid-template-columns:1fr; }
  .partner-search-card,.partner-list-card { padding:19px; border-radius:20px; }
  .partner-streak-card { padding:18px; }
  .partner-section-head h2 { font-size:21px; }
}
@media (max-width:480px) {
  .study-partners-view { padding:22px 15px 60px; }
  .social-page-head h1 { font-size:35px; }
  .social-page-head .intro-description { font-size:13px; }
  .partner-search-card,.partner-list-card { padding:16px; }
  .partner-search-row { min-height:50px; gap:6px; }
  .partner-search-row input { font-size:14px; }
  .partner-search-row .primary-button { min-height:40px; padding:9px 13px; }
  .partner-streak-main { align-items:flex-start; padding:15px; }
  .partner-streak-main strong { font-size:29px; }
  .partner-streak-status { max-width:118px; white-space:normal; }
  .partner-streak-progress { grid-template-columns:1fr; }
  .partner-streak-foot { flex-direction:column; }
  .partner-result { align-items:flex-start; flex-wrap:wrap; }
  .partner-request-actions { flex-direction:row; margin-left:auto; }
  .partner-action { margin-left:auto; }
}
@media (max-width:360px) {
  .partner-streak-main { flex-direction:column; }
  .partner-streak-status { max-width:none; }
  .partner-action { padding:8px 10px; }
}

/* Study Partners — focused one-to-one carousel, matching the supplied dashboard reference */
.study-partners-view { width:min(100%,1180px); margin:0 auto; padding:38px clamp(16px,4vw,34px) 92px; color:#293a36; }
.study-partners-view .social-page-head { margin-bottom:22px; }
.study-partners-view .social-page-head h1 { color:#293a36; }
.partner-search-card { display:flex; align-items:center; gap:12px; margin:0 0 20px; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.partner-search-card > label { flex:0 0 auto; margin:0; color:#65766f; font-size:12px; font-weight:700; }
.partner-search-row { flex:1 1 auto; min-width:0; min-height:54px; gap:10px; padding:5px 6px 5px 15px; border:1px solid #e8e4db; border-radius:16px; background:#fbfaf5; box-shadow:0 3px 12px rgba(41,58,54,.035); }
.partner-search-row input { min-width:0; padding:10px 3px; color:#293a36; font-size:14px; }
.partner-search-row .primary-button { min-height:40px; padding:9px 20px; border-radius:12px; }
.partner-search-hint { display:none; }
.partner-search-results { width:100%; margin-top:8px; }
.partner-columns { display:grid; grid-template-columns:minmax(0,1fr); gap:18px; }
.partner-list-card { min-width:0; padding:24px clamp(16px,2.5vw,28px); border:1px solid #e8e4db; border-radius:24px; background:#fbfaf5; box-shadow:0 5px 18px rgba(41,58,54,.035); }
.partner-duos-card { background:#fbfaf5; }
.partner-section-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:18px; }
.partner-section-head h2 { color:#293a36; font-size:24px; font-weight:650; letter-spacing:-.7px; }
.partner-section-caption { color:#829087; font-size:12px; }
.partner-count { flex:0 0 auto; background:#edf0e8; color:#66786e; }
#partner-list { display:block; min-width:0; }
.partner-carousel { position:relative; min-width:0; padding:0 42px 30px 0; }
.partner-carousel-viewport { width:100%; overflow:hidden; border-radius:22px; touch-action:pan-y; }
.partner-carousel-track { display:flex; align-items:stretch; width:100%; will-change:transform; }
.partner-carousel-slide { flex:0 0 100%; width:100%; min-width:0; padding:0 2px 3px 0; }
.partner-streak-card { min-width:0; margin:0; padding:0; overflow:hidden; border:1px solid #e8e4db; border-radius:21px; background:#fffefa; box-shadow:0 4px 12px rgba(41,58,54,.035); }
.partner-streak-card::before { height:3px; background:linear-gradient(90deg,#42645c,#e2cba5 58%,#d6987b); }
.partner-streak-card-head { padding:18px 20px 0; }
.partner-streak-top { display:flex; align-items:center; gap:12px; }
.partner-streak-top .partner-avatar { width:48px; height:48px; flex-basis:48px; border-radius:50%; font-size:17px; }
.partner-streak-top .partner-user-copy strong { color:#293a36; font-size:14px; }
.partner-streak-top .partner-user-copy small { color:#8a968d; font-size:11px; }
.partner-connected { margin-left:auto; padding:7px 11px; background:#eef2e9; color:#62776b; font-size:10px; }
.partner-streak-main { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:16px 18px 14px; padding:17px 18px; border-radius:17px; background:#f2f3eb; }
.partner-streak-main::after { display:none; }
.partner-streak-highlight { min-width:0; }
.partner-streak-kicker { color:#a18c62; font-size:10px; font-weight:800; letter-spacing:.15em; }
.partner-streak-main strong { display:flex; align-items:center; gap:9px; margin:5px 0 2px; color:#293a36; font-size:30px; line-height:1.1; letter-spacing:-.8px; }
.partner-streak-main small { display:block; color:#7d8a81; font-size:11px; line-height:1.55; }
.partner-flame-wrap { position:relative; display:grid; flex:0 0 42px; width:42px; height:42px; place-items:center; background:transparent; }
.partner-flame-wrap .partner-streak-flame { display:block; width:34px; height:34px; overflow:visible; }
.partner-streak-card.is-active .partner-streak-flame { animation:flame-flow 1.65s ease-in-out infinite; }
.partner-streak-card.is-active .partner-streak-flame .flame-inner { animation:flame-core-flow 1.15s ease-in-out infinite alternate; }
.partner-streak-status { flex:0 1 auto; max-width:210px; padding:9px 12px; border:1px solid #e8e4db; border-radius:999px; background:#f8f6ef; color:#7b7869; font-size:10px; font-weight:700; line-height:1.4; text-align:center; }
.partner-streak-status.is-active { border-color:#dce7d9; background:#edf3e9; color:#55745c; }
.partner-streak-progress { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:0 18px; }
.partner-streak-progress > div { min-width:0; padding:13px 14px; border:1px solid #ece9e1; border-radius:15px; background:#fffefa; }
.partner-streak-person-row { gap:8px!important; }
.partner-streak-person-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.partner-streak-person-head > span { display:flex; align-items:center; gap:8px; min-width:0; }
.partner-streak-progress .partner-avatar { width:31px; height:31px; flex-basis:31px; border-radius:11px; font-size:11px; }
.partner-streak-person { color:#61736a; font-size:11px; }
.partner-streak-progress strong { color:#849087; font-size:9px; }
.partner-streak-progress strong.is-done { color:#5e8967; }
.partner-progress-track { height:7px; margin-top:9px; background:#edf0e8; }
.partner-progress-track > span { background:#789b7d; }
.partner-streak-person-row small { color:#8a958c; font-size:10px; }
.partner-weekly-row { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:15px 18px 0; padding:12px 14px; border:1px solid #eeece5; border-radius:14px; background:#fbfaf5; }
.partner-weekly-row > div:first-child { display:flex; flex-direction:column; gap:3px; }
.partner-weekly-row strong { color:#53675d; font-size:11px; }
.partner-weekly-row small { color:#929b91; font-size:9px; }
.partner-week-dots { display:flex; align-items:center; gap:clamp(7px,1.5vw,17px); }
.partner-week-day { display:flex; flex-direction:column; align-items:center; gap:6px; color:#9aa39a; }
.partner-week-day small { font-size:9px; font-weight:700; }
.partner-week-day i { width:11px; height:11px; border-radius:50%; background:#e8e8e0; }
.partner-week-day i.is-active { background:#42645c; box-shadow:0 1px 3px rgba(41,58,54,.14); }
.partner-streak-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:14px 18px 0; padding:12px 0 15px; border-top:1px solid #efede6; color:#8a958c; font-size:10px; }
.partner-detail-toggle { flex:0 0 auto; padding:5px 0 5px 10px; border:0; background:transparent; color:#536d61; font:inherit; font-weight:700; cursor:pointer; }
.partner-detail-toggle span { margin-left:3px; }
.partner-extra-detail { display:flex; flex-wrap:wrap; gap:8px 18px; margin:0 18px 16px; padding:11px 13px; border-radius:12px; background:#f5f4ed; color:#78867c; font-size:10px; }
.partner-extra-detail[hidden] { display:none; }
.partner-carousel-arrow { position:absolute; z-index:2; top:43%; display:grid; width:42px; height:42px; place-items:center; border:1px solid rgba(224,222,212,.9); border-radius:50%; background:rgba(251,250,245,.94); color:#536a60; box-shadow:0 4px 14px rgba(41,58,54,.08); font-size:25px; line-height:1; cursor:pointer; transition:background .2s ease,transform .2s ease,opacity .2s ease; }
.partner-carousel-arrow:hover:not(:disabled) { transform:scale(1.04); background:#fffefa; }
.partner-carousel-arrow:disabled { opacity:.28; cursor:default; }
.partner-carousel-prev { left:-17px; }
.partner-carousel-next { right:0; }
.partner-carousel-pagination { position:absolute; right:43px; bottom:0; left:0; display:flex; align-items:center; justify-content:center; gap:10px; color:#8a958c; font-size:10px; font-variant-numeric:tabular-nums; }
.partner-carousel-pagination > div { display:flex; align-items:center; gap:5px; }
.partner-carousel-pagination button { width:6px; height:6px; padding:0; border:0; border-radius:99px; background:#dfe3da; cursor:pointer; transition:width .25s ease,background .25s ease; }
.partner-carousel-pagination button.is-current { width:17px; background:#42645c; }
.partner-requests-card { background:#fbfaf5; }
.partner-requests-card .partner-section-head { margin-bottom:10px; }
.partner-request-group + .partner-request-group { margin-top:12px; }
.partner-request-label { color:#a18c62; }
.partner-result { gap:12px; padding:13px 0; border-top:1px solid #eeece5; }
.partner-result .partner-avatar { width:42px; height:42px; flex-basis:42px; border-radius:50%; }
.partner-request-actions button { min-height:40px; padding:9px 17px; border-radius:12px; }
.partner-request-actions button.decline { border:1px solid #dfe4dc; background:#fffefa; color:#52685e; }
.partner-request-actions button:not(.decline) { background:#42645c; color:#fff; }
.partner-pending { color:#9b8b68; font-size:10px; }
.partner-feedback { color:#53675d; }
@media (min-width:1100px) { .partner-carousel { padding-right:46px; } .partner-streak-card { min-height:0; } }
@media (max-width:900px) { .partner-search-card { align-items:stretch; flex-direction:column; gap:7px; } .partner-search-card > label { font-size:11px; } }
@media (max-width:680px) {
  .study-partners-view { padding:25px 16px 78px; }
  .partner-list-card { padding:18px 15px; border-radius:20px; }
  .partner-section-head h2 { font-size:21px; }
  .partner-carousel { padding:0 23px 29px 0; }
  .partner-streak-card-head { padding:16px 14px 0; }
  .partner-streak-main { align-items:flex-start; flex-direction:column; gap:10px; margin:14px 12px 12px; padding:14px; }
  .partner-streak-main strong { font-size:27px; }
  .partner-streak-status { align-self:flex-start; max-width:100%; }
  .partner-streak-progress { grid-template-columns:1fr; gap:8px; padding:0 12px; }
  .partner-weekly-row { align-items:flex-start; flex-direction:column; gap:10px; margin:12px 12px 0; }
  .partner-week-dots { width:100%; justify-content:space-between; gap:5px; }
  .partner-streak-foot { align-items:flex-start; flex-direction:column; gap:6px; margin:12px 12px 0; padding-bottom:12px; }
  .partner-extra-detail { flex-direction:column; margin:0 12px 13px; }
  .partner-carousel-arrow { top:44%; width:36px; height:36px; font-size:22px; }
  .partner-carousel-prev { left:-10px; }
  .partner-carousel-next { right:-2px; }
  .partner-carousel-pagination { right:23px; }
  .partner-result { align-items:center; }
  .partner-request-actions { flex:0 0 100%; justify-content:flex-end; margin-left:0; }
}
@media (max-width:380px) {
  .study-partners-view { padding-right:12px; padding-left:12px; }
  .partner-search-row { gap:5px; padding-left:10px; }
  .partner-search-row .primary-button { padding-right:12px; padding-left:12px; }
  .partner-streak-top .partner-avatar { width:42px; height:42px; flex-basis:42px; }
  .partner-connected { padding:6px 8px; }
  .partner-streak-person-head { align-items:flex-start; }
  .partner-streak-progress strong { max-width:90px; text-align:right; }
}
@media (prefers-reduced-motion:reduce) {
  .partner-carousel-track,.partner-carousel-arrow,.partner-carousel-pagination button,.partner-flame-wrap,.partner-streak-flame { transition:none!important; animation:none!important; }
}


/* Final polish: Study Partners search sizing, readable type, and matching SVG flame. */
@media (min-width: 901px) {
  .study-partners-view .partner-search-card {
    display: grid;
    grid-template-columns: max-content minmax(360px, min(560px, 1fr));
    align-items: center;
    justify-content: start;
    column-gap: 14px;
    row-gap: 0;
  }
  .study-partners-view .partner-search-card > label {
    grid-column: 1;
    grid-row: 1;
    white-space: nowrap;
    font-size: 13px;
  }
  .study-partners-view .partner-search-row {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 360px;
  }
  .study-partners-view .partner-search-results {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
  }
}
.study-partners-view .partner-search-row input {
  font-size: 15px;
  line-height: 1.45;
}
.study-partners-view .partner-search-row .primary-button {
  min-width: 64px;
  font-size: 12px;
}
.study-partners-view .partner-section-caption,
.study-partners-view .partner-streak-main small,
.study-partners-view .partner-streak-person-row small,
.study-partners-view .partner-streak-foot,
.study-partners-view .partner-weekly-row small {
  font-size: 11px;
  line-height: 1.55;
}
.study-partners-view .partner-streak-kicker,
.study-partners-view .partner-week-day small {
  font-size: 10px;
}
.study-partners-view .partner-streak-person-head strong,
.study-partners-view .partner-streak-status {
  font-size: 10px;
  line-height: 1.45;
}
.study-partners-view .partner-streak-top .partner-user-copy strong {
  font-size: 15px;
}
.study-partners-view .partner-streak-top .partner-user-copy small {
  font-size: 11px;
}
.auth-mark svg {
  display: block;
  width: 29px;
  height: 29px;
}
@media (max-width: 900px) {
  .study-partners-view .partner-search-card {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 7px;
  }
  .study-partners-view .partner-search-card > label,
  .study-partners-view .partner-search-row,
  .study-partners-view .partner-search-results {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 480px) {
  .study-partners-view .partner-section-caption,
  .study-partners-view .partner-streak-main small,
  .study-partners-view .partner-streak-person-row small,
  .study-partners-view .partner-streak-foot {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .partner-flame-wrap .partner-streak-flame,
  .partner-flame-wrap .partner-streak-flame * {
    animation: none !important;
  }
}


/* 2026-11: readable quiz cards and responsive first-visit invite */
.question-card,
.question-body,
.answer-option,
.option-text,
.answer-feedback,
.feedback-content { min-width: 0; }

@media (min-width: 681px) and (max-width: 1100px) {
  .quiz-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 820px;
    margin-inline: auto;
    padding: 34px 0 26px;
  }
  .quiz-side-note, .quiz-right-note { display: none; }
  .question-card { width: 100%; border-radius: 24px; }
  .question-progress-row { padding: 21px 28px 13px; font-size: 10px; }
  .question-progress-label { font-size: 9px; }
  .question-progress-track { margin-inline: 28px; height: 3px; }
  .question-body { padding: 34px clamp(25px, 5vw, 48px) 34px; }
  .word-kind, .word-index { font-size: 9px; }
  .question-body h1 { font-size: clamp(48px, 6vw, 64px); }
  .question-instruction { font-size: 14px; margin-bottom: 22px; }
  .mini-quiz-note { font-size: 12px; }
  .answer-list { gap: 12px; }
  .answer-option { min-height: 62px; padding: 12px 15px; }
  .option-letter { width: 31px; height: 31px; flex-basis: 31px; font-size: 11px; }
  .option-text { font-size: 14px; line-height: 1.5; }
  .answer-feedback { padding: 14px 16px; }
  .answer-feedback strong { font-size: 13px; }
  .answer-feedback p { font-size: 13px; line-height: 1.6; }
  .gentle-hint { font-size: 12px; }
  .next-button { min-height: 46px; min-width: 136px; }
}

@media (max-width: 680px) {
  .quiz-topline { gap: 10px; }
  .back-button { min-height: 40px; font-size: 12px; }
  .quiz-mode-label { font-size: 8px; letter-spacing: .1em; text-align: right; }
  .question-card { border-radius: 19px; }
  .question-progress-row { padding: 16px 17px 11px; font-size: 9px; letter-spacing: .08em; }
  .question-progress-label { font-size: 8px; }
  .question-progress-track { margin-inline: 17px; height: 3px; }
  .question-body { padding: 24px 18px 21px; }
  .word-kind, .word-index { font-size: 8px; }
  .question-body h1 { font-size: clamp(38px, 11vw, 46px); line-height: 1.12; overflow-wrap: anywhere; }
  .pronunciation-ipa { font-size: 13px; }
  .question-instruction { font-size: 14px; line-height: 1.5; margin-bottom: 16px; }
  .mini-quiz-note { display: flex; font-size: 12px; line-height: 1.5; padding: 9px 11px; }
  .answer-list { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .answer-option { min-height: 56px; padding: 11px 12px; gap: 11px; border-radius: 13px; }
  .option-letter { width: 29px; height: 29px; flex-basis: 29px; font-size: 11px; }
  .option-text { font-size: 14px; line-height: 1.5; }
  .option-state { font-size: 15px; }
  .answer-feedback { margin-top: 13px; padding: 13px 12px; gap: 9px; }
  .answer-feedback strong { font-size: 13px; }
  .answer-feedback p { font-size: 13px; line-height: 1.6; }
  .feedback-note p, .feedback-example p { font-size: 13px; line-height: 1.6; }
  .question-actions { align-items: center; gap: 10px; margin-top: 18px; }
  .gentle-hint { max-width: 48%; font-size: 11px; line-height: 1.5; }
  .next-button { min-width: 122px; min-height: 46px; padding: 11px 13px; font-size: 12px; gap: 10px; }
  .quiz-bottom-quote { font-size: 11px; }
}

@media (max-width: 380px) {
  .app-shell { width: calc(100% - 24px); }
  .question-body { padding-inline: 15px; }
  .question-progress-row { padding-inline: 14px; }
  .question-progress-track { margin-inline: 14px; }
  .answer-option { padding-inline: 10px; }
  .option-text { font-size: 13px; }
  .gentle-hint { max-width: 42%; font-size: 10px; }
  .next-button { min-width: 116px; }
}

/* First-visit save-progress dialog: comfortable desktop sizing and mobile-safe scrolling. */
.progress-invite-backdrop[hidden] { display: none !important; }
.progress-invite-backdrop {
  padding: clamp(14px, 3vw, 28px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.progress-invite-dialog {
  width: min(100%, 500px);
  max-height: min(88vh, 760px);
  max-height: min(88dvh, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(30px, 4vw, 40px) clamp(22px, 4vw, 38px) 29px;
}
.progress-invite-close {
  width: 44px;
  height: 44px;
}
.progress-invite-dialog h2 {
  font-size: clamp(22px, 2.3vw, 25px);
  line-height: 1.3;
}
.progress-invite-dialog > p {
  font-size: 14px;
  line-height: 1.65;
}
.progress-invite-benefits { gap: 10px; padding: 16px 17px; }
.progress-invite-benefits li { font-size: 13px; line-height: 1.5; }
.progress-invite-primary { min-height: 50px; font-size: 13px; }
.progress-invite-later { min-height: 44px; font-size: 13px; }

@media (max-width: 600px) {
  .progress-invite-backdrop {
    align-items: center;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  }
  .progress-invite-dialog {
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    max-height: 90dvh;
    padding: 31px 21px 23px;
    border-radius: 22px;
  }
  .progress-invite-dialog h2 { font-size: clamp(20px, 5.6vw, 23px); }
}
@media (max-width: 360px) {
  .progress-invite-dialog { padding: 28px 17px 20px; }
  .progress-invite-dialog h2 { font-size: 20px; }
  .progress-invite-dialog > p { font-size: 13px; }
  .progress-invite-benefits li { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .progress-invite-dialog { animation: none !important; }
}

/* V18 — focused explanation sheet: centered floating panel on desktop, bottom sheet on mobile. */
.explanation-open-button {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 13px; padding: 9px 12px;
  border: 1px solid rgba(49,78,73,.18); border-radius: 999px; background: rgba(255,254,250,.72);
  color: var(--forest); font-size: 11px; font-weight: 800; cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.explanation-open-button:hover { background: #fffefa; border-color: rgba(49,78,73,.34); transform: translateY(-1px); }
.explanation-open-button span { color: var(--coral); font-size: 14px; }
.quiz-explanation-dialog {
  width: min(560px, calc(100vw - 36px)); max-width: none; max-height: min(78vh, 720px); margin: auto;
  padding: 0; overflow: visible; border: 0; border-radius: 25px; background: transparent;
  color: var(--ink); opacity: 0; transform: translateY(18px) scale(.985);
  transition: opacity 240ms ease, transform 320ms cubic-bezier(.2,.78,.22,1), display 320ms allow-discrete, overlay 320ms allow-discrete;
}
.quiz-explanation-dialog[open] { opacity: 1; transform: translateY(0) scale(1); }
.quiz-explanation-dialog.is-closing { opacity: 0; transform: translateY(12px) scale(.99); }
.quiz-explanation-dialog::backdrop { background: rgba(19,32,29,0); backdrop-filter: blur(0); transition: background 260ms ease, backdrop-filter 260ms ease, display 320ms allow-discrete, overlay 320ms allow-discrete; }
.quiz-explanation-dialog[open]::backdrop { background: rgba(19,32,29,.62); backdrop-filter: blur(4px); }
.quiz-explanation-dialog.is-closing::backdrop { background: rgba(19,32,29,0); backdrop-filter: blur(0); }
.quiz-explanation-sheet {
  max-height: min(78vh, 720px); display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid rgba(255,255,255,.7); border-radius: 25px; background: var(--surface);
  box-shadow: 0 28px 90px rgba(15,29,25,.28);
}
.quiz-explanation-grabber { display: none; }
.quiz-explanation-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 27px 30px 20px; }
.quiz-explanation-kicker { color: var(--sage-deep); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.quiz-explanation-header h2 { margin: 9px 0 0; color: var(--forest); font: 700 clamp(25px,4vw,32px)/1.12 "Manrope",sans-serif; letter-spacing: -1.1px; overflow-wrap: anywhere; }
.quiz-explanation-header h2 span { color: var(--coral); }
.quiz-explanation-close { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink-soft); font-size: 23px; line-height: 1; cursor: pointer; transition: background 180ms ease, transform 180ms ease; }
.quiz-explanation-close:hover { background: var(--paper-deep); transform: rotate(90deg); }
.quiz-explanation-tabs { display: flex; gap: 7px; padding: 0 30px 15px; border-bottom: 1px solid var(--line); }
.quiz-explanation-tab { position: relative; padding: 10px 15px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.quiz-explanation-tab.is-active { background: #e9efea; color: var(--forest); }
.quiz-explanation-content { min-height: 150px; overflow-y: auto; overscroll-behavior: contain; padding: 25px 30px 32px; scrollbar-color: #b9c8bd transparent; scrollbar-width: thin; }
.quiz-explanation-panel p { margin: 0; color: #3f504b; font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; white-space: pre-wrap; }
.quiz-explanation-panel .quiz-example-translation { margin-top: 10px; color: var(--muted); font-size: 13px; }
.quiz-explanation-panel[hidden] { display: none !important; }
@media (max-width: 640px) {
  .quiz-explanation-dialog { width: 100%; max-width: none; max-height: min(88dvh, 820px); height: auto; margin: auto 0 0; border-radius: 22px 22px 0 0; transform: translateY(28px); }
  .quiz-explanation-dialog[open] { transform: translateY(0); }
  .quiz-explanation-dialog.is-closing { transform: translateY(22px); }
  .quiz-explanation-sheet { max-height: min(88dvh, 820px); min-height: min(390px, 72dvh); border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .quiz-explanation-grabber { display: block; width: 38px; height: 4px; flex: 0 0 4px; margin: 10px auto 0; border-radius: 99px; background: #d6dcd5; }
  .quiz-explanation-header { padding: 19px 21px 16px; }
  .quiz-explanation-header h2 { font-size: clamp(24px,7vw,29px); }
  .quiz-explanation-tabs { padding: 0 21px 13px; }
  .quiz-explanation-content { min-height: 120px; padding: 21px 22px calc(26px + env(safe-area-inset-bottom)); }
  .quiz-explanation-panel p { font-size: 14px; line-height: 1.8; }
}
@media (prefers-reduced-motion: reduce) {
  .explanation-open-button, .quiz-explanation-dialog, .quiz-explanation-dialog::backdrop, .quiz-explanation-close { transition-duration: .01ms !important; }
}

/* Adaptive sheets — final native dialog polish */
.quiz-explanation-header { align-items: center; }
.quiz-explanation-footer { flex: 0 0 auto; padding: 12px 30px 22px; border-top: 1px solid var(--line); background: var(--surface); }
.quiz-explanation-done { display: block; width: 100%; min-height: 48px; border: 1px solid rgba(49,78,73,.14); border-radius: 14px; background: #e9efea; color: var(--forest); font-family: "DM Sans", sans-serif; font-size: 13px; font-weight: 800; line-height: 1.3; letter-spacing: 0; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.quiz-explanation-done:hover { background: #dce7df; }
.quiz-explanation-done:active { transform: scale(.99); }
.progress-invite-backdrop { position: fixed; inset: 0; box-sizing: border-box; width: min(540px, calc(100% - 36px)); max-width: none; max-height: min(88dvh, 780px); height: max-content; margin: auto; padding: 0; border: 0; border-radius: 25px; background: transparent; color: var(--ink); overflow: visible; opacity: 0; transform: translateY(18px) scale(.985); transition: opacity 260ms ease, transform 320ms cubic-bezier(.2,.78,.22,1), display 320ms allow-discrete, overlay 320ms allow-discrete; }
.progress-invite-backdrop[open] { display: block; opacity: 1; transform: translateY(0) scale(1); }
.progress-invite-backdrop.is-closing { opacity: 0; transform: translateY(18px) scale(.985); }
.progress-invite-backdrop::backdrop { background: rgba(19,32,29,.62); backdrop-filter: blur(4px); transition: background 260ms ease, backdrop-filter 260ms ease; }
.progress-invite-backdrop.is-closing::backdrop { background: rgba(19,32,29,0); backdrop-filter: blur(0); }
.progress-invite-dialog { box-sizing: border-box; width: 100%; max-width: none; max-height: min(88dvh, 780px); margin: 0; overflow-y: auto; border-radius: 25px; background: var(--surface); box-shadow: 0 28px 90px rgba(15,29,25,.28); }
.progress-invite-grabber { display: none; }
@media (max-width: 640px) {
  .quiz-explanation-footer { padding: 12px 21px calc(16px + env(safe-area-inset-bottom)); }
  .quiz-explanation-content { padding-bottom: 22px; }
  .progress-invite-backdrop { inset: auto 0 0; width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; transform: translateY(36px); }
  .progress-invite-backdrop[open] { transform: translateY(0); }
  .progress-invite-backdrop.is-closing { transform: translateY(36px); }
  .progress-invite-dialog { max-height: 92dvh; width: 100%; max-width: none; border-radius: 24px 24px 0 0; padding: 25px 22px calc(24px + env(safe-area-inset-bottom)); }
  .progress-invite-grabber { display: block; width: 38px; height: 4px; margin: -13px auto 19px; border-radius: 99px; background: #d6dcd5; }
}
@media (prefers-reduced-motion: reduce) {
  .quiz-explanation-done, .progress-invite-backdrop, .progress-invite-backdrop::backdrop { transition-duration: .01ms !important; }
}

/* Native dialog safeguards: closed dialogs must never inherit legacy overlay display. */
.progress-invite-backdrop:not([open]),
.quiz-explanation-dialog:not([open]) { display: none !important; }
/* Remove the legacy inner-card entrance animation; the native dialog owns motion. */
.progress-invite-backdrop .progress-invite-dialog { animation: none; }
.quiz-explanation-done:focus-visible { outline: 3px solid rgba(89,128,115,.55); outline-offset: 3px; }

/* Load failure is blocking: never award official progress for demo vocab. */
.content-load-failure { position: fixed; z-index: 9999; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 24px; background: var(--paper); }
.content-load-failure-card { width: min(100%, 470px); padding: clamp(28px, 5vw, 44px); text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.content-load-failure-mark { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 16px; color: var(--forest); background: var(--sage); font: 800 21px/1 "Manrope", sans-serif; }
.content-load-failure-eyebrow { display: block; font-size: 11px; letter-spacing: .12em; font-weight: 800; color: var(--sage-deep); }
.content-load-failure-card h1 { margin: 12px 0; font: 800 clamp(24px, 5vw, 30px)/1.2 "Manrope", sans-serif; color: var(--forest); }
.content-load-failure-card p { margin: 0 0 24px; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.content-load-failure-card button { cursor: pointer; }


/* Learning Companion update — native UI, no new modal or dependencies. */
.learning-affirmation-icon { display:grid; place-items:center; flex:0 0 36px; width:36px; height:36px; border-radius:12px; background:#e0e9dc; color:#658676; font-size:20px; }
.learning-affirmation-copy { min-width:0; }
.learning-affirmation-kicker { display:block; margin-bottom:3px; color:#9b8667; font-family:'DM Sans',sans-serif; font-size:9px; font-weight:800; letter-spacing:.13em; }
.learning-affirmation-copy strong { display:block; color:#2f4d42; font-family:'Manrope',sans-serif; font-size:14px; font-weight:800; letter-spacing:-.25px; }
.learning-affirmation-copy p { margin:4px 0 0; color:#6f8277; font-size:12px; line-height:1.6; }
.partner-milestones { margin:14px 18px 0; padding:13px 14px 14px; border:1px solid #eee8dc; border-radius:15px; background:#fcfaf4; }
.partner-milestones-heading { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:5px 10px; margin-bottom:11px; }
.partner-milestones-heading strong { color:#476257; font-family:'Manrope',sans-serif; font-size:11px; font-weight:800; }
.partner-milestones-heading small { color:#92988b; font-size:9px; }
.partner-milestones-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.partner-milestone { display:flex; min-width:0; flex-direction:column; align-items:center; justify-content:center; gap:5px; padding:10px 5px; border:1px solid #e7e8e0; border-radius:12px; background:#f5f4ef; color:#9ba39a; text-align:center; }
.partner-milestone.is-unlocked { border-color:#d9e5d8; background:#eaf1e8; color:#506d5c; }
.partner-milestone-symbol { display:grid; place-items:center; width:29px; height:29px; border-radius:50%; background:#e8e8e2; color:#a4aca2; font-size:17px; }
.partner-milestone.is-unlocked .partner-milestone-symbol { background:#dbe7da; color:#527b65; }
.partner-milestone strong { color:inherit; font-size:10px; font-weight:800; line-height:1.3; overflow-wrap:anywhere; }
.partner-milestone small { font-size:9px; line-height:1.35; }
.partner-milestone.just-unlocked .partner-milestone-symbol { animation:ulaskata-milestone-pop .6s cubic-bezier(.2,.8,.2,1) both; }
.partner-milestones-unavailable { margin:12px 18px 0; color:#89958a; font-size:11px; }
@keyframes ulaskata-milestone-pop { from { transform:scale(.75); opacity:.4; } 65% { transform:scale(1.12); opacity:1; } to { transform:scale(1); opacity:1; } }
@media (max-width:680px) {
  .learning-affirmation-icon { flex-basis:30px; width:30px; height:30px; font-size:17px; }
  .learning-affirmation-copy strong { font-size:13px; }
  .learning-affirmation-copy p { font-size:11px; }
  .partner-milestones { margin:12px 12px 0; padding:11px; }
  .partner-milestones-grid { gap:5px; }
  .partner-milestone { padding:10px 3px; }
  .partner-milestone strong { font-size:9px; }
}
@media (prefers-reduced-motion:reduce) {
  .partner-milestone.just-unlocked .partner-milestone-symbol { transition:none!important; animation:none!important; }
}


/* V5 — Study Partners: unified lightweight SVG achievement system. */
.partner-milestones { position:relative; padding:15px; border-color:#e9e7dc; background:#fffdfa; }
.partner-milestones-heading { align-items:center; gap:8px; }
.partner-milestones-heading strong { font-size:12px; }
.partner-milestones-heading small { font-size:10px; }
.partner-milestones-grid { gap:9px; }
.partner-milestone { position:relative; min-height:95px; justify-content:center; gap:6px; padding:12px 6px 11px; border:1px solid #e8e8df; border-radius:13px; background:#f8f8f4; color:#909a90; }
.partner-milestone[hidden] { display:none!important; }
.partner-milestone.is-unlocked { border-color:#dbe6d9; background:#ecf2e9; color:#486e5a; }
.partner-milestone-symbol { width:36px; height:36px; background:#eaebe5; color:#9ba79d; }
.partner-milestone.is-unlocked .partner-milestone-symbol { background:#dfeadf; color:#4f7961; }
.partner-milestone-symbol svg { display:block; width:21px; height:21px; transform-origin:center; }
.partner-milestone strong { max-width:100%; color:inherit; font-family:'DM Sans',sans-serif; font-size:11px; font-weight:800; line-height:1.3; }
.partner-milestone small { color:#8b978c; font-size:10px; }
.partner-milestone.is-unlocked small { color:#698573; }
.partner-milestone-new { position:absolute; top:-7px; right:-5px; padding:3px 6px; border-radius:99px; border:1px solid #e3d8b9; background:#fff5dd; color:#937751; font-size:9px; font-weight:800; }
/* Animate only the visible slide, using inexpensive composited transforms. */
.partner-carousel-slide.is-current .partner-milestone.is-unlocked .partner-milestone-symbol svg { animation:ulaskata-milestone-breathe 5s ease-in-out infinite; }
.partner-carousel-slide.is-current .partner-milestone.is-unlocked:nth-child(3n + 2) .partner-milestone-symbol svg { animation-delay:-1.5s; }
.partner-carousel-slide.is-current .partner-milestone.is-unlocked:nth-child(3n) .partner-milestone-symbol svg { animation-delay:-3s; }
.partner-carousel-slide.is-current .partner-milestone.just-unlocked .partner-milestone-symbol { animation:ulaskata-milestone-pop .7s cubic-bezier(.2,.78,.25,1) both; }
@keyframes ulaskata-milestone-breathe { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-2px); } }
.partner-milestone-next { margin-top:12px; padding:11px 12px; border:1px solid #e5ebe2; border-radius:11px; background:#f2f5ee; }
.partner-milestone-next-head { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.partner-milestone-next-head span { font-family:'DM Sans',sans-serif; color:#9b8c72; font-size:9px; font-weight:800; letter-spacing:.1em; }
.partner-milestone-next-head strong { color:#577565; font-size:10px; font-weight:800; font-variant-numeric:tabular-nums; }
.partner-milestone-next p { margin:7px 0 10px; color:#486458; font-size:11px; font-weight:700; line-height:1.45; }
.partner-milestone-progress { height:6px; overflow:hidden; border-radius:999px; background:#e0e6dd; }
.partner-milestone-progress > span { display:block; height:100%; border-radius:inherit; background:#678976; }
.partner-milestone-toggle { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:36px; margin-top:8px; padding:7px 10px; border:1px solid transparent; border-radius:9px; background:transparent; color:#638373; font-family:'DM Sans',sans-serif; font-size:11px; font-weight:700; cursor:pointer; transition:background .2s ease,color .2s ease; }
.partner-milestone-toggle:hover { background:#edf1e9; color:#385c4a; }
.partner-milestone-toggle:focus-visible { outline:2px solid #678976; outline-offset:2px; }
@media (max-width:680px) {
  .partner-milestones { padding:11px; }
  .partner-milestones-heading small { font-size:9px; }
  .partner-milestone { min-height:91px; padding:10px 3px; }
  .partner-milestone strong { font-size:10px; }
  .partner-milestone small { font-size:9px; }
  .partner-milestone-symbol { width:32px; height:32px; }
  .partner-milestone-symbol svg { width:19px; height:19px; }
}
@media (prefers-reduced-motion:reduce) {
  .partner-milestone, .partner-milestone-symbol, .partner-milestone-symbol svg, .partner-milestone-toggle { animation:none!important; transition:none!important; }
}

/* V6 — native, event-triggered Little Boost toast; never occupies dashboard layout. */
.learning-affirmation-toast[hidden] { display:none!important; }
.learning-affirmation-toast {
  position:fixed; top:104px; right:max(24px, calc((100vw - 1500px)/2 + 36px));
  z-index:80; display:flex; align-items:flex-start; gap:13px;
  width:min(384px, calc(100vw - 32px)); padding:15px 15px 15px 14px;
  border:1px solid #dfe6db; border-radius:18px; background:#fffefa;
  box-shadow:0 18px 45px rgba(37,60,50,.13),0 3px 9px rgba(37,60,50,.05);
  opacity:0; transform:translate3d(0,-10px,0); pointer-events:none;
  transition:transform 340ms cubic-bezier(.2,.75,.2,1),opacity 300ms ease;
  color:#334c42;
}
.learning-affirmation-toast.is-visible { opacity:1; transform:translate3d(0,0,0); pointer-events:auto; }
.learning-affirmation-toast .learning-affirmation-icon { flex:0 0 40px; width:40px; height:40px; border-radius:13px; background:#e7eee6; }
.learning-affirmation-toast .learning-affirmation-icon svg { width:23px; height:23px; }
.learning-affirmation-toast .learning-affirmation-copy { flex:1; padding-top:1px; }
.learning-affirmation-toast .learning-affirmation-kicker { margin-bottom:5px; }
.learning-affirmation-toast .learning-affirmation-copy strong { font-size:14px; line-height:1.35; }
.learning-affirmation-toast .learning-affirmation-copy p { margin-top:5px; font-size:12px; }
.learning-affirmation-close { flex:0 0 30px; width:30px; height:30px; margin:-3px -4px 0 0; border:0; border-radius:50%; display:grid; place-items:center; background:transparent; color:#83948a; cursor:pointer; transition:background .2s ease,color .2s ease; }
.learning-affirmation-close svg { width:15px; height:15px; }
.learning-affirmation-close:hover { background:#edf1e9; color:#35594a; }
/* Result actions: information is no longer styled like a disabled action. */
.result-actions { align-items:center; }
.result-actions button { font-family:'DM Sans',sans-serif; }
.result-actions .primary-button, .result-actions .secondary-button { font-size:12px; min-height:45px; }
.result-actions .result-home-link { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:9px 12px; border:0; background:transparent; color:#718579; font-size:11px; font-weight:700; cursor:pointer; border-radius:10px; }
.result-actions .result-home-link:hover { background:transparent; color:#3e6252; text-decoration:underline; text-underline-offset:3px; }
.result-small-note { max-width:390px; margin-top:14px!important; font-size:11px!important; line-height:1.6!important; color:#8c998e!important; }
@media (max-width:680px) {
  .learning-affirmation-toast { top:auto; right:16px; bottom:max(20px, env(safe-area-inset-bottom, 0px) + 16px); left:16px; width:auto; max-width:none; padding:13px; gap:10px; transform:translate3d(0,14px,0); border-radius:17px; }
  .learning-affirmation-toast.is-visible { transform:translate3d(0,0,0); }
  .learning-affirmation-toast .learning-affirmation-icon { flex-basis:36px; width:36px; height:36px; }
  .learning-affirmation-toast .learning-affirmation-copy strong { font-size:13px; }
  .learning-affirmation-toast .learning-affirmation-copy p { font-size:11px; }
  .result-actions button.result-home-link { width:100%; min-height:30px; padding:4px 10px; }
  .result-small-note { font-size:11px!important; }
}
@media (prefers-reduced-motion:reduce) {
  .learning-affirmation-toast { transition:none!important; transform:none!important; }
}

/* V6.1 — prevent a loaded rank illustration from overlapping the fallback book.
   The fallback stays visible while an asset loads or when an image fails. */
.exp-rank-emblem.rank-asset-ready .rank-book-fallback,
.rank-up-mark.rank-asset-ready .rank-book-fallback {
  visibility: hidden;
}


/* V6.3 — What's New. Native adaptive sheet, no library or extra network calls. */
.whats-new-trigger { position:relative; width:38px; height:38px; flex:0 0 38px; display:grid; place-items:center; border:1px solid #e1e6db; border-radius:13px; background:#fffefa; color:#617c6c; cursor:pointer; transition:background .2s ease, transform .2s ease; }
.whats-new-trigger:hover { background:#e9efe7; transform:translateY(-1px); }
.whats-new-trigger svg { width:19px; height:19px; }
.whats-new-unread { position:absolute; width:7px; height:7px; right:5px; top:5px; border-radius:50%; background:#c18c72; box-shadow:0 0 0 2px #fffefa; }
.whats-new-unread[hidden], .whats-new-nudge[hidden] { display:none!important; }
.whats-new-nudge { position:fixed; z-index:75; top:94px; right:max(18px,calc((100vw - 1160px)/2)); display:flex; align-items:center; gap:10px; width:min(350px,calc(100vw - 30px)); padding:11px 12px; border:1px solid #dfe7dd; border-radius:16px; background:#fffefa; box-shadow:0 12px 36px rgba(38,65,51,.13); color:#314e49; }
.whats-new-nudge-icon { width:30px; height:30px; flex:0 0 30px; display:grid; place-items:center; border-radius:10px; background:#e8eee5; color:#62826e; font-size:18px; }
.whats-new-nudge-copy { flex:1; display:flex; flex-direction:column; gap:3px; min-width:0; font-size:11px; line-height:1.4; letter-spacing:normal; text-transform:none; }
.whats-new-nudge-copy strong { font-weight:700; }
.whats-new-nudge-copy span { color:#7d8c80; }
#whats-new-nudge-view { border:0; padding:8px 10px; border-radius:10px; background:#e7eee4; color:#426354; font-size:11px; font-weight:700; cursor:pointer; }
#whats-new-nudge-dismiss { border:0; padding:5px; background:none; color:#8c9a90; font-size:18px; cursor:pointer; }
.whats-new-dialog:not([open]) { display:none!important; }
.whats-new-dialog { position:fixed; top:0; right:0; bottom:0; left:auto; margin:0; padding:0; width:min(460px,100vw); max-width:100vw; height:100dvh; max-height:100dvh; border:0; border-radius:24px 0 0 24px; background:#fffefa; color:#293a36; box-shadow:-24px 0 66px rgba(24,37,31,.17); overflow-y:auto; overscroll-behavior:contain; animation:whats-new-slide-in .32s cubic-bezier(.2,.75,.25,1) both; }
.whats-new-dialog::backdrop { background:rgba(21,35,29,.52); animation:whats-new-fade-in .24s ease both; }
.whats-new-panel { padding:clamp(24px,4vw,36px); display:flex; flex-direction:column; min-height:100%; }
.whats-new-handle { display:none; }
.whats-new-panel-header { display:flex; align-items:flex-start; gap:15px; padding:18px 0 24px; border-bottom:1px solid #e8e8de; }
.whats-new-emblem { flex:0 0 48px; height:48px; display:grid; place-items:center; border-radius:15px; background:#e7eee4; color:#527968; }
.whats-new-emblem svg { width:28px; height:28px; }
.whats-new-kicker { color:#9d8b6d; font-size:10px; font-weight:700; letter-spacing:.1em; }
.whats-new-panel h2 { font:700 27px/1.22 'Manrope',sans-serif; letter-spacing:-1.2px; margin:6px 0 5px; }
.whats-new-panel-header p { margin:0; font-size:13px; color:#798b7e; line-height:1.55; }
.whats-new-items { display:flex; flex-direction:column; gap:0; padding:7px 0; }
.whats-new-items article { display:flex; align-items:flex-start; gap:14px; padding:22px 0; border-bottom:1px solid #eeeee8; }
.whats-new-item-icon { flex:0 0 42px; height:42px; display:grid; place-items:center; border-radius:12px; background:#f0f3eb; color:#668474; }
.whats-new-item-icon svg { width:21px; height:21px; }
.whats-new-items strong { display:block; font-size:14px; font-weight:750; margin:1px 0 5px; }
.whats-new-items p { margin:0; font-size:12px; line-height:1.65; color:#718275; }
.whats-new-footnote { margin:auto 0 18px; padding-top:20px; font-size:12px; line-height:1.65; color:#8a9488; }
.whats-new-dismiss { width:100%; min-height:48px; flex-shrink:0; border:0; border-radius:13px; background:#416758; color:#fffefa; font-size:13px; font-weight:700; cursor:pointer; }
.whats-new-dismiss:hover { background:#345747; }
@keyframes whats-new-slide-in { from { opacity:.8; transform:translateX(34px); } to { opacity:1; transform:translateX(0); } }
@keyframes whats-new-fade-in { from { opacity:0; } to { opacity:1; } }
@media (max-width:680px) {
  .whats-new-trigger { flex-basis:34px; width:34px; height:34px; border-radius:11px; }
  .whats-new-trigger svg { width:17px; height:17px; }
  .whats-new-nudge { top:auto; right:12px; left:12px; bottom:calc(14px + env(safe-area-inset-bottom,0px)); width:auto; }
  .whats-new-dialog { top:auto; right:0; left:0; bottom:0; width:100vw; height:min(92dvh,820px); max-height:92dvh; border-radius:23px 23px 0 0; animation:whats-new-rise-in .32s cubic-bezier(.2,.75,.25,1) both; }
  .whats-new-panel { padding:20px 23px max(24px,env(safe-area-inset-bottom,0px)); }
  .whats-new-handle { display:block; align-self:center; width:37px; height:4px; margin:-9px 0 15px; border-radius:99px; background:#dce3d8; }
  .whats-new-panel-header { padding:10px 0 22px; gap:12px; }
  .whats-new-panel h2 { font-size:24px; }
  .whats-new-emblem { flex-basis:42px; height:42px; }
  .whats-new-kicker { font-size:9px; }
  .whats-new-items article { padding:18px 0; }
  @keyframes whats-new-rise-in { from { opacity:.8; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }
}
@media (prefers-reduced-motion:reduce) {
  .whats-new-trigger, .whats-new-dialog, .whats-new-dialog::backdrop { animation:none!important; transition:none!important; }
}

/* Prevent background scroll while the native What's New sheet is open. */
html.whats-new-is-open { overflow:hidden; }
.whats-new-nudge-icon svg { width:18px; height:18px; }
@media(max-width:380px) {
  /* Keep the Save Progress account CTA visible at 320px alongside the new icon. */
  .topbar { gap:4px; }
  .brand { min-width:0; gap:5px; }
  .brand-mark { flex:0 0 24px; width:24px; height:24px; }
  .brand-word { font-size:19px; letter-spacing:-1.3px; }
  .mobile-menu { padding:6px 2px; }
  .topbar-note { gap:4px; }
  .account-button { padding:6px 7px; }
  .account-avatar, .account-chevron { display:none; }
  .account-label { max-width:92px; font-size:9px; }
}

/* CMS controls whether the notification icon is visible. */
.whats-new-trigger[hidden] { display:none !important; }

/* V6.7 — Quiet, human-readable cloud save reassurance after a finished quiz. */
.result-cloud-save-status { margin: .85rem auto 0; max-width: 36rem; font-size: .83rem; line-height: 1.55; color: var(--muted, #597468); text-align: center; }
.result-cloud-save-status.is-synced { color: #3a7454; font-weight: 650; }

/* V6.9: footer privacy link shares native footer styling. */
.footer-links{grid-area:about;display:flex;align-items:center;gap:16px;flex-wrap:wrap;justify-content:center}
.footer-links .footer-about-link{grid-area:auto;text-decoration:none;display:inline-flex;align-items:center;gap:3px}
.auth-footnote a{color:var(--forest);font-weight:700;text-underline-offset:3px}
@media(max-width:740px){.footer-links{gap:6px 16px}}

/* V6.9.5: Google top auth variant + account linking. Native Ulaskata palette. */
.auth-google-top{margin:0 0 10px}.auth-google-button{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:51px;border:1px solid #e2e5df;border-radius:13px;background:#fff;color:#293a36;cursor:pointer;font:700 13px "DM Sans",sans-serif;transition:background .18s,border-color .18s,transform .18s}.auth-google-button:hover{background:#fafbf8;border-color:#c7d0c7;transform:translateY(-1px)}.auth-google-button:disabled{opacity:.6;cursor:wait}.auth-google-divider{display:flex;align-items:center;gap:13px;margin:19px 0 5px;color:#849087;font-size:11px;font-weight:600;white-space:nowrap}.auth-google-divider:before,.auth-google-divider:after{content:"";flex:1;border-top:1px solid #e2e5df}.auth-password-toggle{margin:8px 0 0;border:0;padding:4px 0;background:transparent;color:#48665a;text-decoration:underline;text-underline-offset:3px;font:600 11px "DM Sans",sans-serif;cursor:pointer}.auth-google-button:focus-visible,.auth-password-toggle:focus-visible,.connection-button:focus-visible{outline:3px solid #b4c6b8;outline-offset:3px}.profile-connections{max-width:740px;margin:24px 0 0;padding:26px;border:1px solid #e8e5db;border-radius:22px;background:#fffefa}.profile-connections h2{font:800 23px/1.2 "Manrope",sans-serif;color:#293a36;margin:9px 0}.profile-connections>p{font-size:12px;line-height:1.65;color:#77837b;margin:0 0 18px}.connection-row{display:flex;align-items:center;gap:13px;padding:16px 0;border-top:1px solid #e9ebe5}.connection-symbol{display:grid;place-items:center;flex:none;width:29px;height:29px;border-radius:9px;background:#f1f3ec;color:#43665b;font-size:19px;font-weight:700}.connection-row .google-g-icon{flex:none;margin:4px}.connection-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px}.connection-copy strong{font-size:12px;color:#293a36}.connection-copy small{font-size:11px;color:#76867b;line-height:1.4;overflow-wrap:anywhere}.connection-button{min-width:82px;min-height:39px;padding:8px 11px;font-size:11px}@media(max-width:400px){.profile-connections{padding:19px}.connection-row{gap:9px}.connection-button{min-width:74px;padding:7px}}


/* V6.9.6 - Profile and connected accounts: centered, consistent, mobile-first */
.profile-view {padding-bottom:88px;}
.profile-view .social-page-head {width:min(100%,820px);margin:0 auto 24px;}
.profile-view .social-page-head .intro-description {max-width:620px;}
.profile-settings-layout{width:min(100%,820px);margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr);gap:0;}
.profile-view .profile-card{width:100%;max-width:none;margin:0;box-shadow:0 12px 32px rgba(41,58,54,.055);border-radius:24px;min-width:0;}
.profile-view .profile-note{width:100%;max-width:none;margin:12px 0 0;padding:0 4px;font-size:12px;line-height:1.6;}
.profile-view .profile-connections{width:100%;max-width:none;margin:26px 0 0;padding:30px 34px;border-radius:24px;box-shadow:0 12px 32px rgba(41,58,54,.04);min-width:0;}
.profile-connections h2{font-size:clamp(20px,2.2vw,25px);margin:10px 0 9px;letter-spacing:-.025em;}
.profile-connections>p{font-size:13px;max-width:600px;margin-bottom:20px;}
.profile-connections .connection-row{min-height:76px;gap:16px;}
.profile-connections .connection-copy strong{font-size:14px;}
.profile-connections .connection-copy small{font-size:12px;}
.profile-connections .connection-button{min-height:42px;min-width:96px;font-size:12px;flex:0 0 auto;}
.profile-connections .connection-button[hidden]{display:none!important;}
.profile-connections .connection-security-note{border-top:1px solid #e9ebe5;padding-top:17px;margin:0;display:flex;align-items:flex-start;gap:9px;color:#79877f;font-size:11px;line-height:1.6;max-width:none;}
.connection-security-note svg{flex:0 0 15px;margin-top:1px;color:#5c7968;}
.profile-connections .auth-message:not([hidden]){margin:12px 0 16px;max-width:none;}
@media(max-width:680px){
 .profile-view{padding-top:30px;}
 .profile-view .social-page-head{margin-bottom:23px;}
 .profile-view .profile-card{padding:20px;gap:13px;border-radius:20px;}
 .profile-view .profile-avatar{width:55px;height:55px;flex-basis:55px;border-radius:17px;font-size:23px;}
 .profile-view .profile-card .secondary-button{margin:0;flex-basis:100%;width:100%;min-height:42px;}
 .profile-view .profile-note{margin-top:11px;font-size:11px;}
 .profile-view .profile-connections{margin-top:22px;padding:23px 20px;border-radius:20px;}
 .profile-connections .connection-row{gap:12px;min-height:75px;}
 .profile-connections .connection-copy strong{font-size:13px;}
 .profile-connections .connection-copy small{font-size:11px;}
}
@media(max-width:380px){
 .profile-view .profile-card{padding:16px;}
 .profile-view .profile-connections{padding:19px 16px;}
 .profile-connections .connection-row{flex-wrap:wrap;}
 .profile-connections .connection-button{margin-left:42px;width:calc(100% - 42px);}
}
@media(prefers-reduced-motion:reduce){.profile-view .profile-card,.profile-view .profile-connections{animation:none;}}

/* V6.9.8 — quiet, accessible privacy entry points; preserve the learning-first hero. */
.site-footer { grid-template-columns: minmax(0,1fr) minmax(0,auto) auto; gap: 12px 22px; }
.footer-brand { flex-wrap: wrap; gap: 4px 10px; }
.footer-links { gap: 4px 16px; }
.footer-links .footer-about-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; padding: 8px 4px;
  border-radius: 6px; font: 700 12px/1.45 "DM Sans", sans-serif;
  color: var(--forest-2); text-decoration: none;
  transition: color .16s ease, background-color .16s ease;
}
@media (hover: hover) {
  .footer-links .footer-about-link:hover, .failure-privacy-link:hover {
    color: var(--forest); text-decoration: underline; text-underline-offset: 4px;
  }
}
.footer-links .footer-about-link:focus-visible, .failure-privacy-link:focus-visible {
  outline: 2px solid var(--forest-2); outline-offset: 2px;
}
.auth-footnote { font-size: 12px; color: var(--ink-soft); line-height: 1.65; }
.failure-privacy-link { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 8px auto 0; width: fit-content; max-width: 100%; color: var(--forest-2); font: 700 12px/1.5 "DM Sans", sans-serif; text-underline-offset: 3px; }
@media (max-width: 740px) {
  .site-footer { grid-template-columns: minmax(0,1fr); grid-template-areas: "about" "brand" "copy"; justify-items: center; gap: 8px; text-align: center; }
  .footer-brand { flex-direction: column; align-items: center; }
  .footer-links { max-width: 100%; justify-content: center; gap: 0 12px; }
  .footer-links .footer-about-link { white-space: normal; text-align: center; }
}
