/* Member account Overview: one calm column of sections, Library-style heads, one emphasised card. */
#account .ov-head { text-align: center; margin: 1.4rem auto 1.9rem; max-width: 40rem; }
#account .ov-greeting { margin: 0; color: var(--muted); font-size: .84rem; font-weight: 500; }
#account .ov-name { margin: .1rem 0 0; font-size: clamp(1.85rem, 3.4vw, 2.4rem); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
#account .ov-status { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .3rem 1rem; margin: .5rem 0 0; color: var(--muted); font-size: .8rem; }
#account .ov-settings { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-weight: 600; text-decoration: none; }
#account .ov-settings svg { width: 15px; height: 15px; flex: none; transition: transform var(--dur-emphasis, 460ms) var(--ease-spring, ease); }
#account .ov-settings span { text-decoration: underline; text-decoration-color: rgba(26,23,18,.25); text-underline-offset: 3px; }
#account .ov-settings:hover svg { transform: rotate(60deg); }
#account .ov-settings:hover { color: var(--ink); text-decoration-color: currentColor; }
#account .ov-name:focus { outline: none; }
#account .ov-status:empty { display: none; }
#account .ov-status .tier-ico { width: 15px; height: 15px; vertical-align: -3px; margin-right: .3rem; }

/* Loading placeholders carry the shape of what is coming. */
#account .ov-skel { border-radius: 12px; background: rgba(26,23,18,.055); }
#account .ov-skel-media { aspect-ratio: 16 / 9; width: 100%; border-radius: 20px; margin-bottom: .9rem; }
#account .ov-skel-ring { width: 170px; height: 150px; margin: 1.4rem auto 1rem; border-radius: 50%; }
#account .ov-skel-line { height: 14px; margin: .55rem 0; }
#account .ov-skel-line.short { width: 55%; }
#account .ov-skel-class { flex: 0 0 188px; aspect-ratio: 1 / 1; border-radius: 20px; }

/* Lead row: Up next (emphasised) beside the mala. */
#account .ov-lead { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1rem; align-items: stretch; }
#account .ov-next,
#account .ov-mala { min-width: 0; padding: 1.15rem; }
#account .ov-next { display: flex; flex-direction: column; box-shadow: var(--ywe-shadow-opal-frame); }
#account .ov-kicker { display: flex; align-items: center; gap: .4rem; margin: 0 0 .75rem; color: var(--muted); font-size: .72rem; font-weight: 600; }
#account .ov-kicker svg { width: 14px; height: 14px; flex: none; }
#account .ov-next-row { display: grid; grid-template-columns: minmax(0, 17.5rem) minmax(0, 1fr); gap: 1.1rem; align-items: center; flex: 1; }
#account .ov-next-media { display: block; aspect-ratio: 1 / 1; width: 100%; border-radius: 20px; corner-shape: var(--ywe-corner-frame, squircle); background: var(--accent-soft) center / cover no-repeat; }
#account .ov-next-body { display: flex; flex-direction: column; min-width: 0; padding: .2rem .2rem .2rem 0; }
#account .ov-next-title { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; text-wrap: balance; }
#account .ov-next-when { margin: .3rem 0 0; color: var(--ink); font-size: .82rem; font-weight: 500; }
#account .ov-next-note { margin: .35rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.5; text-wrap: pretty; }
#account .ov-next-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding-top: 1rem; }
#account .ov-next-actions .btn { min-height: 40px; padding: .55rem 1.05rem; font-size: .8rem; }
#account .ov-next-also { margin: .9rem 0 0; padding-top: .8rem; border-top: 1px solid var(--border); }
#account .ov-next-also p { margin: 0 0 .25rem; color: var(--muted); font-size: .7rem; font-weight: 600; }
#account .ov-next-also a { display: flex; justify-content: space-between; gap: .75rem; padding: .3rem 0; color: var(--ink); font-size: .78rem; text-decoration: none; }
#account .ov-next-also a span:last-child { color: var(--muted); white-space: nowrap; }
#account .ov-next-also a:hover span:first-child { text-decoration: underline; text-underline-offset: 3px; }
#account .ov-next-empty { display: flex; flex-direction: column; justify-content: center; flex: 1; text-align: center; padding: 1.5rem .5rem; }
#account .ov-next-empty .ov-next-actions { justify-content: center; margin-top: 0; }
#account .ov-fcf { display: flex; align-items: center; gap: .9rem; margin: .9rem 0 0; }
#account .ov-fcf .ywe-trial-ring, #account .ov-fcf svg { flex: none; }

/* The mala: compact, centred. */
#account .ov-mala { display: flex; flex-direction: column; }
#account .ov-mala .mala-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
#account .ov-mala .ov-kicker { margin: 0; }
#account .mala-info { position: relative; display: inline-flex; }
#account .mala-info > button { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
#account .mala-info > button:hover { color: var(--ink); }
#account .mala-info > button svg { width: 15px; height: 15px; }
#account .mala-pop { right: -6px; left: auto; top: 32px; }
#account .ov-mala .mala-stage { flex: 1; align-content: center; padding: .25rem 0 0; }
#account .ov-mala .mala-stage svg.mala-svg { max-width: 220px; }
#account .ov-mala .mala-fig { position: relative; width: 100%; max-width: 196px; margin: 0 auto; }
/* The readout sits at the centre of the bead loop (cy 170 of a 392-high box that also holds the tassel). */
#account .ov-mala .mala-read { width: 120px; left: 50%; top: 43.4%; }
#account .ov-mala .mala-read .u { letter-spacing: .14em; }
#account .mb-cord { fill: none; stroke: #b9a07f; stroke-width: .7; opacity: .5; }
#account .mb-polish { transform-box: fill-box; transform-origin: center; }
#account .mala-fig.is-counting .mb-polish { animation: mbPolish var(--dur-emphasis, 460ms) var(--ease-enter, ease) both; }
#account .mala-fig.is-counting .mb.fresh .mb-polish { animation: mbGlint var(--dur-slow, 720ms) var(--ease-spring-strong, ease) both; }
#account .mala-fig.is-counting .mb-tassel.sway { animation: mbSway var(--dur-slow, 720ms) var(--ease-spring, ease) both; animation-delay: 120ms; }
@keyframes mbPolish { from { opacity: 0; } }
@keyframes mbGlint { 0% { opacity: 0; transform: scale(.6); } 55% { opacity: 1; transform: scale(1.32); } 100% { transform: scale(1); } }
@keyframes mbSway { 0% { transform: rotate(7deg); } 45% { transform: rotate(-3deg); } 75% { transform: rotate(1deg); } 100% { transform: rotate(0); } }
#account .ov-mala .mala-read .n { font-size: 2.2rem; }
#account .ov-mala .mala-next { margin: .35rem 0 0; text-align: center; color: var(--muted); font-size: .78rem; }
#account .ov-mala .mala-next b { color: var(--ink); }
#account .ov-mala .mala-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; margin: .85rem 0 0; padding: 0; overflow: visible; }
#account .ov-mala .mala-tile { flex: none; min-height: 0; aspect-ratio: 1 / 1; padding: .4rem .45rem; border-radius: 16px; corner-shape: var(--ywe-corner-frame, squircle); box-shadow: none; }
#account .ov-mala .mala-veil img { width: 82%; height: 82%; margin-top: -14px; }
#account .ov-mala .mala-req { justify-content: center; font-size: .56rem; letter-spacing: .06em; }
#account .ov-mala .mala-nm { display: none; }
#account .ov-mala .mala-tile[data-s="earned"] .mala-nm { display: block; font-size: .6rem; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Section heads follow the Library: bold title, quiet "see all" at the right. */
#account .ov-section { margin-top: 2.4rem; }
#account .ov-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 0 .2rem .8rem; }
#account .ov-section-head h2 { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
#account .ov-section-head p { margin: .15rem 0 0; color: var(--muted); font-size: .76rem; }
#account .ov-see-all { display: inline-flex; align-items: center; gap: .3rem; flex: none; color: var(--muted); font-size: .76rem; font-weight: 600; text-decoration: none; transition: color var(--dur-instant, 120ms) var(--ease-enter, ease); }
#account .ov-see-all svg { width: 14px; height: 14px; transition: transform var(--dur-quick, 200ms) var(--ease-spring, ease); }
#account .ov-see-all:hover { color: var(--ink); }
#account .ov-see-all:hover svg { transform: translateX(2px); }

/* Journeys: one card, rows divided rather than boxed. */
#account .ov-list { padding: .2rem 1.15rem; }
#account .journey-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .85rem; padding: 1rem 0; }
#account .journey-row + .journey-row { border-top: 1px solid var(--border); }
#account .journey-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--ywe-edge-control); border-radius: 12px; corner-shape: var(--ywe-corner-frame, squircle); background: var(--ywe-surface-opal-control); color: var(--ink); }
#account .journey-icon svg { width: 18px; height: 18px; }
#account .journey-copy { min-width: 0; }
#account .journey-copy h3 { margin: 0; font-size: .9rem; font-weight: 600; line-height: 1.3; }
#account .journey-copy p { margin: .12rem 0 0; color: var(--muted); font-size: .74rem; line-height: 1.45; }
#account .journey-progress { height: 4px; margin: .5rem 0 0; max-width: 260px; overflow: hidden; border-radius: 999px; background: #e9e4dd; }
#account .journey-progress span { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
#account .journey-buy { display: inline-block; margin-top: .3rem; color: var(--muted); font-size: .72rem; font-weight: 500; text-decoration: underline; text-decoration-color: rgba(26,23,18,.25); text-underline-offset: 3px; }
#account .journey-buy:hover { color: var(--ink); text-decoration-color: currentColor; }
#account .journey-row .btn,
#account .journey-row .btn.journey-continue { min-height: 34px; padding: .4rem .85rem; font-size: .74rem; white-space: nowrap; }

/* Upcoming classes rail. */
#account .ov-rail { display: flex; gap: .85rem; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 1.25rem; overscroll-behavior-x: contain; margin: 0 -1.25rem; padding: .3rem 1.25rem 1rem; scrollbar-width: none; }
#account .ov-rail::-webkit-scrollbar { display: none; }
#account .ov-class { flex: 0 0 188px; scroll-snap-align: start; color: var(--ink); text-decoration: none; }
#account .ov-class-cover { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 20px; corner-shape: var(--ywe-corner-frame, squircle); background: var(--accent-soft) center / cover no-repeat; box-shadow: 0 1px 2px rgba(26,23,18,.06); transition: transform var(--dur-quick, 200ms) var(--ease-spring, ease), box-shadow var(--dur-quick, 200ms) var(--ease-enter, ease); }
#account .ov-class:hover .ov-class-cover { transform: translateY(-2px); box-shadow: var(--ywe-shadow-hover); }
#account .ov-class-badge { position: absolute; left: .55rem; top: .55rem; padding: .2rem .5rem; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--ink); font-size: .62rem; font-weight: 700; box-shadow: 0 1px 4px rgba(26,23,18,.12); }
#account .ov-class-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: .6rem .15rem 0; font-size: .84rem; font-weight: 600; line-height: 1.3; }
#account .ov-class-when { display: block; margin: .15rem .15rem 0; color: var(--muted); font-size: .72rem; }
#account .ov-empty { margin: 0; padding: 1.4rem 1rem; color: var(--muted); font-size: .8rem; text-align: center; }
#account .ov-rail > .ov-empty { flex: 1; }

/* Library: the pick beside what was recently finished. */
#account .ov-library { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
#account .ov-library-pick { padding: 1.15rem; border-right: 1px solid var(--border); }
#account .ov-library-recent { padding: 1.15rem; }
#account .ov-library.single { grid-template-columns: 1fr; }
#account .ov-library.single .ov-library-pick { display: none; }
#account .ov-library-pickrow { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 1rem; align-items: center; }
#account .ov-library-cover { display: block; aspect-ratio: 1 / 1; border-radius: 18px; corner-shape: var(--ywe-corner-frame, squircle); background: var(--accent-soft) center / cover no-repeat; }
#account .ov-library-kind { margin: 0; color: var(--muted); font-size: .7rem; font-weight: 600; }
#account .ov-library-title { margin: .15rem 0 .8rem; font-size: .98rem; font-weight: 700; line-height: 1.3; text-wrap: balance; }
#account .library-feed-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: .75rem; padding: .6rem 0; color: var(--ink); text-decoration: none; }
#account .library-feed-row + .library-feed-row { border-top: 1px solid var(--border); }
#account .library-feed-row:hover .library-feed-title { text-decoration: underline; text-underline-offset: 3px; }
#account .library-feed-cover { width: 44px; height: 44px; border-radius: 12px; corner-shape: var(--ywe-corner-frame, squircle); display: grid; place-items: center; background: var(--accent-soft) center / cover no-repeat; color: var(--ink); }
#account .library-feed-cover svg { width: 16px; height: 16px; }
#account .library-feed-title { display: block; font-size: .84rem; font-weight: 600; line-height: 1.35; }
#account .library-feed-meta { display: block; margin-top: .1rem; color: var(--muted); font-size: .72rem; }
#account .ov-sub { margin: 0 0 .35rem; color: var(--muted); font-size: .72rem; font-weight: 600; }

/* Membership: plan, classes and code in one divided strip. */
#account .ov-membership { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
#account .ov-membership.single { grid-template-columns: 1fr; }
#account .ov-cell { min-width: 0; padding: 1.1rem 1.2rem; }
#account .ov-cell + .ov-cell { border-left: 1px solid var(--border); }
#account .ov-cell-label { margin: 0 0 .4rem; color: var(--muted); font-size: .72rem; font-weight: 600; }
#account .ov-cell-value { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -.015em; }
#account .ov-cell-value .of { color: var(--muted); font-size: .85rem; font-weight: 600; }
#account .ov-cell-value .tier-ico { width: 20px; height: 20px; }
#account .ov-cell-note { margin: .3rem 0 0; color: var(--muted); font-size: .74rem; line-height: 1.45; }
#account .ov-cell-link { display: inline-block; margin-top: .55rem; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: .76rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#account .cap-track { overflow: hidden; border-radius: 999px; }
#account .cap-fill { height: 100%; border-radius: inherit; background: var(--accent); transition: width var(--dur-standard, 320ms) var(--ease-enter, ease); }
#account .ov-cell .cap-track { height: 5px; margin-top: .55rem; background: #ece6dd; }
#account .ov-code { display: flex; align-items: center; gap: .5rem; }
#account .ov-code .code-val { flex: 1; min-width: 0; font-size: 1.05rem; letter-spacing: .02em; }
#account .ov-code .code-copy { min-height: 32px; padding: .3rem .75rem; font-size: .72rem; }
#account .ov-free { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.15rem 1.25rem; }
#account .ov-free h3 { margin: 0; font-size: .95rem; font-weight: 700; }
#account .ov-free p { margin: .2rem 0 0; max-width: 34rem; color: var(--muted); font-size: .78rem; line-height: 1.5; }

/* The quiet row that ends the page (no footer on member surfaces). */
#account .ov-quiet { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .35rem 1.1rem; margin: 2.6rem 0 0; color: var(--muted); font-size: .76rem; }
#account .ov-quiet-link { padding: .35rem 0; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
#account .ov-quiet-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
#account .ov-quiet-who span { color: var(--ink); overflow-wrap: anywhere; }
#account .ov-quiet-error { margin: .4rem 0 0; color: #9b3434; font-size: .74rem; text-align: center; }
#account .ov-quiet-error:empty { display: none; }

@media (max-width: 860px) {
  #account .ov-lead { grid-template-columns: 1fr; }
  #account .ov-membership { grid-template-columns: 1fr; }
  #account .ov-cell + .ov-cell { border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 640px) {
  #account .ov-head { margin-bottom: 1.25rem; }
  #account .ov-next-row { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
  #account .ov-next-media { max-width: 22rem; }
  #account .ov-library-pickrow { grid-template-columns: 104px minmax(0, 1fr); }
  #account .ov-library { grid-template-columns: 1fr; }
  #account .ov-library-pick { border-right: 0; border-bottom: 1px solid var(--border); }
  #account .ov-section { margin-top: 2rem; }
  #account .ov-rail { margin: 0 -1rem; padding-inline: 1rem; scroll-padding-inline: 1rem; }
  #account .ov-class { flex-basis: 160px; }
  #account .journey-row { grid-template-columns: auto minmax(0, 1fr); }
  #account .journey-row > .btn { grid-column: 2; justify-self: start; }
  #account .ov-free { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  #account .ov-class-cover, #account .ov-see-all svg { transition: none; }
  #account .mala-fig.is-counting .mb-polish, #account .mala-fig.is-counting .mb-tassel.sway { animation: none; }
}

/* The account could not load (timeout / 5xx) — distinct from being signed out. */
.account-error { max-width: 30rem; margin: 0 auto; padding: calc(7.25rem + 2rem) 1.25rem 4rem; text-align: center; }
.account-error[hidden] { display: none; }
.account-error h1 { margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.account-error p { margin: .5rem 0 1.2rem; color: var(--muted); font-size: .86rem; text-wrap: balance; }
.account-error-retry { min-height: 40px; padding: .55rem 1.1rem; border: 1px solid var(--ywe-edge-control); border-radius: 999px; background: var(--ywe-surface-opal-selected); color: var(--ink); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; box-shadow: 0 3px 12px rgba(48,38,33,.1); }


/* ── Sheets: Settings, Suggest an idea, FAQ open in place (one primitive, see openSheet) ── */
html.ov-sheet-open { overflow: hidden; }
#account .ov-sheet {
  position: fixed;
  padding: 0;
  width: min(30rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  max-height: calc(100dvh - 3rem);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--ywe-edge-opal);
  border-radius: var(--ywe-shape-frame);
  corner-shape: var(--ywe-corner-frame, squircle);
  background: var(--ywe-surface-opal), var(--bg);
  color: var(--ink);
  box-shadow: var(--ywe-shadow-dialog);
}
#account .ov-sheet::backdrop { background: rgba(26, 23, 18, .26); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
/* backwards, not both: a finished entrance must leave no transform behind (fixed popovers inside the sheet position against the viewport). */
#account .ov-sheet[open] { animation: ovSheetIn var(--dur-standard, 320ms) var(--ease-enter, ease) backwards; }
#account .ov-sheet[open]::backdrop { animation: ovFadeIn var(--dur-standard, 320ms) var(--ease-enter, ease) both; }
#account .ov-sheet.is-closing { animation: ovSheetOut var(--dur-quick, 200ms) var(--ease-exit, ease) both; }
#account .ov-sheet.is-closing::backdrop { animation: ovFadeOut var(--dur-quick, 200ms) var(--ease-exit, ease) both; }
@keyframes ovSheetIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes ovSheetOut { to { opacity: 0; transform: translateY(10px) scale(.99); } }
@keyframes ovFadeIn { from { opacity: 0; } }
@keyframes ovFadeOut { to { opacity: 0; } }
#account .ov-sheet-md { width: min(38rem, calc(100vw - 2rem)); }
#account .ov-sheet-sm, #account .ov-sheet-md { padding: 1.75rem 1.75rem 1.6rem; }
#account .ov-sheet-close { position: absolute; z-index: 3; top: .95rem; right: .95rem; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid var(--ywe-edge-control); border-radius: 50%; background: var(--ywe-surface-opal-control); color: var(--muted); cursor: pointer; box-shadow: 0 2px 7px rgba(26,23,18,.07); transition: color var(--dur-instant, 120ms) var(--ease-enter, ease); }
#account .ov-sheet-close:hover { color: var(--ink); }
#account .ov-sheet-close svg { width: 16px; height: 16px; }
#account .ov-sheet-close:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
#account .ov-sheet-title { margin: 0 2.5rem 0 0; font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
#account .ov-sheet-sub { margin: .3rem 0 1.15rem; color: var(--muted); font-size: .8rem; line-height: 1.5; }

/* Suggest an idea */
#account .ov-seg { display: flex; gap: .3rem; padding: .25rem; margin: 0 0 1rem; border: 1px solid var(--ywe-edge-control); border-radius: 999px; background: rgba(255,255,255,.55); }
#account .ov-seg label { flex: 1; position: relative; }
#account .ov-seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
#account .ov-seg span { display: block; padding: .48rem .5rem; border-radius: 999px; color: var(--muted); font-size: .74rem; font-weight: 600; text-align: center; white-space: nowrap; transition: color var(--dur-quick, 200ms) var(--ease-enter, ease), background var(--dur-quick, 200ms) var(--ease-enter, ease); }
#account .ov-seg input:checked + span { color: var(--ink); background: var(--ywe-surface-opal-selected); box-shadow: 0 2px 8px rgba(48,38,33,.08), inset 0 1px 0 #fff; }
#account .ov-seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 1px; }
#account .ov-field { display: block; margin: 0 0 .85rem; }
#account .ov-field > span { display: block; margin: 0 0 .35rem; font-size: .74rem; font-weight: 600; }
#account .ov-field em { color: var(--muted); font-style: normal; font-weight: 500; }
#account .ov-field input, #account .ov-field textarea { width: 100%; padding: .65rem .8rem; border: 1px solid #dcd5cc; border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: .86rem; resize: vertical; }
#account .ov-field input:focus, #account .ov-field textarea:focus { outline: 3px solid var(--ywe-tier-focus-ring); border-color: var(--accent-deep); }
#account .ov-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.1rem; }
#account .ov-form-foot .btn { min-height: 40px; padding: .55rem 1.2rem; font-size: .8rem; }
#account .ov-form-status { margin: .6rem 0 0; min-height: 1.2em; color: var(--muted); font-size: .76rem; }
#account .ov-form-status.error { color: #9b3434; }
#account .ov-form-done { text-align: center; padding: 1rem 0 .25rem; }
#account .ov-form-done .ov-sheet-title { margin-right: 0; }
#account .ov-form-done .ov-form-foot { justify-content: center; }

/* FAQ */
#account .ov-faq { margin-top: 1rem; }
#account .ov-faq-item { border-top: 1px solid var(--border); }
#account .ov-faq-item:last-child { border-bottom: 1px solid var(--border); }
#account .ov-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem .1rem; font-size: .9rem; font-weight: 600; cursor: pointer; list-style: none; }
#account .ov-faq-item summary::-webkit-details-marker { display: none; }
#account .ov-faq-item summary svg { width: 16px; height: 16px; flex: none; color: var(--muted); transition: transform var(--dur-quick, 200ms) var(--ease-spring, ease); }
#account .ov-faq-item[open] summary svg { transform: rotate(180deg); }
#account .ov-faq-item summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
#account .ov-faq-item p { margin: 0 0 1rem; padding-right: 2rem; color: var(--muted); font-size: .84rem; line-height: 1.6; }

/* Settings as a large sheet: side list + scrolling content */
#account #settingsDialog { width: min(62rem, calc(100vw - 2rem)); height: min(46rem, calc(100dvh - 3rem)); overflow: hidden; }
/* stretch, not start: the content column must be exactly the sheet's height so it scrolls inside it. */
#account #settingsDialog .settings-layout { display: grid; grid-template-columns: 13rem minmax(0, 1fr); align-items: stretch; gap: 0; height: 100%; min-height: 0; max-width: none; margin: 0; }
#account #settingsDialog .settings-side { position: static; padding: 1.6rem 1rem 1.5rem 1.4rem; border-right: 1px solid var(--border); }
#account #settingsDialog .settings-main { min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 1.6rem 2rem; }
#account .settings-main-head { display: none; }
#account #settingsDialog .settings-main-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; min-height: 4.1rem; margin: 0 -1.6rem 0; padding: 0 4rem 0 1.6rem; background: linear-gradient(var(--bg) 70%, rgba(253,249,244,0)); }
#account #settingsDialog .settings-main-head h3 { margin: 0; font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
#account #settingsDialog .account-panel:not([hidden]) { animation: ovPanelIn var(--dur-standard, 320ms) var(--ease-enter, ease) backwards; }
@keyframes ovPanelIn { from { opacity: 0; transform: translateY(6px); } }
#account #settingsDialog .settings-main-head h3 { animation: ovPanelIn var(--dur-quick, 200ms) var(--ease-enter, ease) backwards; }

@media (max-width: 760px) {
  /* Phones have the header's gear in the top-right corner; the words would repeat it. */
  #account .ov-settings { display: none; }
  #account .ov-sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 28px 28px 0 0; max-height: calc(100dvh - 2.5rem); padding-bottom: env(safe-area-inset-bottom); }
  #account .ov-sheet-sm, #account .ov-sheet-md { width: 100vw; padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom)); }
  #account #settingsDialog { width: 100vw; height: calc(100dvh - 2.5rem); }
  #account #settingsDialog .settings-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  #account #settingsDialog .settings-side { padding: 1.3rem 1.1rem 0; border-right: 0; }
  #account #settingsDialog .settings-main { padding: 1rem 1rem calc(2rem + env(safe-area-inset-bottom)); }
  #account #settingsDialog .settings-main-head { display: none; }
  #account .ov-sheet[open] { animation-name: ovSheetUp; }
  #account .ov-sheet.is-closing { animation-name: ovSheetDown; }
  #account .ov-seg span { font-size: .7rem; padding-inline: .3rem; }
}
@keyframes ovSheetUp { from { transform: translateY(100%); } }
@keyframes ovSheetDown { to { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) {
  #account .ov-sheet[open], #account .ov-sheet.is-closing, #account .ov-sheet[open]::backdrop, #account .ov-sheet.is-closing::backdrop { animation: none; }
}


/* ── Motion that answers every interaction ── */
#account { interpolate-size: allow-keywords; }
#account .ov-faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size var(--dur-standard, 320ms) var(--ease-enter, ease), content-visibility var(--dur-standard, 320ms) allow-discrete; }
#account .ov-faq-item[open]::details-content { block-size: auto; }
#account .ov-faq-item p { transition: opacity var(--dur-standard, 320ms) var(--ease-enter, ease); }
#account .ov-faq-item:not([open]) p { opacity: 0; }
#account .comm-description:not([hidden]) { animation: ovReveal var(--dur-quick, 200ms) var(--ease-enter, ease) backwards; }
#account .ov-form-done:not([hidden]) { animation: ovReveal var(--dur-standard, 320ms) var(--ease-spring, ease) backwards; }
@keyframes ovReveal { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) {
  #account .ov-faq-item::details-content, #account .ov-faq-item p { transition: none; }
  #account .comm-description:not([hidden]), #account .ov-form-done:not([hidden]), #account #settingsDialog .account-panel:not([hidden]) { animation: none; }
}

/* ── Dropdowns (ywe-select.js): the trigger reads as a field; the list is paper ── */
.ywe-select-native { position: absolute !important; width: 1px !important; height: 1px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0 !important; pointer-events: none !important; overflow: hidden; clip-path: inset(50%); }
.ywe-select { display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; min-height: 42px; padding: .55rem .75rem .55rem .85rem; border: 1px solid #dcd5cc; border-radius: 12px; background: #fff !important; background-image: none !important; color: var(--ink, #1a1712); font: inherit; font-size: .86rem; text-align: left; cursor: pointer; transition: border-color var(--dur-instant, 120ms) var(--ease-enter, ease), box-shadow var(--dur-instant, 120ms) var(--ease-enter, ease); }
.ywe-select:hover { border-color: #cfc6ba; }
.ywe-select[aria-expanded="true"], .ywe-select:focus-visible { outline: none; border-color: var(--ink, #1a1712); box-shadow: 0 0 0 3px rgba(26, 23, 18, .08); }
.ywe-select svg { width: 16px; height: 16px; flex: none; color: var(--muted, #6b6258); transition: transform var(--dur-quick, 200ms) var(--ease-spring, ease); }
.ywe-select[aria-expanded="true"] svg { transform: rotate(180deg); }
.ywe-select-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ywe-select:disabled { opacity: .6; cursor: wait; }
.ywe-select.comm-pause-select { width: auto; min-height: 34px; padding: .35rem .65rem .35rem .85rem; border-radius: 999px; font-size: .74rem; font-weight: 600; }
.ywe-select-list { position: fixed; z-index: 2147483000; display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(26, 23, 18, .08); border-radius: 16px; background: #fff; color: #1a1712; font-family: var(--ywe-font-ui, 'Poppins', system-ui, sans-serif); box-shadow: 0 1px 2px rgba(26, 23, 18, .05), 0 18px 44px rgba(26, 23, 18, .14); opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top center; transition: opacity var(--dur-quick, 200ms) var(--ease-enter, ease), transform var(--dur-quick, 200ms) var(--ease-spring, ease); }
.ywe-select-list[data-side="above"] { transform-origin: bottom center; transform: translateY(4px) scale(.98); }
.ywe-select-list.is-open { opacity: 1; transform: none; }
.ywe-select-list.is-closing { opacity: 0; transition-duration: var(--dur-instant, 120ms); }
.ywe-select-search { flex: none; padding: .5rem; border-bottom: 1px solid #efe9e1; }
.ywe-select-search input { width: 100%; min-height: 36px; padding: .45rem .7rem; border: 1px solid #e3ddd4; border-radius: 10px; outline: none; background: #fbf8f4; color: #1a1712; font: inherit; font-size: .82rem; }
.ywe-select-search input:focus { border-color: #1a1712; background: #fff; }
.ywe-select-box { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .3rem; outline: none; }
.ywe-select-option { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .65rem; border-radius: 10px; font-size: .84rem; line-height: 1.3; cursor: pointer; }
.ywe-select-option.is-active { background: #f4efe8; }
.ywe-select-option[aria-selected="true"] { font-weight: 600; }
.ywe-select-option svg { width: 15px; height: 15px; flex: none; }
.ywe-select-empty { padding: .8rem; color: #6b6258; font-size: .8rem; text-align: center; }
@media (prefers-reduced-motion: reduce) { .ywe-select-list, .ywe-select svg { transition: none; } }

/* Telegram invitation on the Overview (only while Telegram isn't connected) */
#account .ov-telegram { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; margin-top: 1rem; padding: 1.05rem 1.2rem; border: 1px solid var(--ywe-edge-opal); border-radius: var(--ywe-shape-card); corner-shape: var(--ywe-corner-frame, squircle); background: var(--ywe-surface-opal); box-shadow: var(--ywe-shadow-opal-card); }
#account .ov-telegram[hidden] { display: none; }
#account .ov-telegram-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #e8f3fb; color: #2a8bc8; }
#account .ov-telegram-icon svg { width: 20px; height: 20px; transform: translateX(-1px); }
#account .ov-telegram-copy h2 { margin: 0; font-size: .95rem; font-weight: 700; letter-spacing: -.01em; }
#account .ov-telegram-copy p { margin: .15rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
#account .ov-telegram-actions { display: flex; align-items: center; gap: 1rem; }
#account .ov-telegram-actions .btn { min-height: 38px; padding: .5rem 1rem; font-size: .78rem; white-space: nowrap; }
#account .ov-telegram-actions .ov-quiet-link { white-space: nowrap; font-size: .76rem; }
#account .ov-why { list-style: none; margin: 0 0 .5rem; padding: 0; }
#account .ov-why li { padding: .8rem 0; border-top: 1px solid var(--border); }
#account .ov-why li:last-child { border-bottom: 1px solid var(--border); }
#account .ov-why strong { display: block; font-size: .88rem; }
#account .ov-why span { display: block; margin-top: .2rem; color: var(--muted); font-size: .8rem; line-height: 1.55; }
@media (max-width: 640px) {
  #account .ov-telegram { grid-template-columns: auto minmax(0, 1fr); }
  #account .ov-telegram-actions { grid-column: 1 / -1; justify-content: space-between; }
  #account .ov-telegram-actions .btn { flex: 1; }
}
#account .ov-sheet:focus { outline: none; } /* the sheet takes focus on open so the close button isn't ringed; the sheet itself never shows a ring */
