/* The host's app on a phone (screens 15 A "Tab Bar" and 17 A "You"): glass tab bar, large title that tucks into a glass bar,
   live mini covers, swipe and hold menus, Recently deleted as a pushed page, the New invitation sheet, the You page.
   Tablet and laptop: the tab bar becomes a wine sidebar. Built on app.css tokens (cloth, wine, gold, the three faces). */

:root { --spring-k: cubic-bezier(.34, 1.36, .5, 1); } /* keyframe springs: WebKit freezes linear() keyframe animations on their first frame */
.page-app .dsheet[open] .dsheet__card, .page-door .dsheet[open] .dsheet__card { animation-timing-function: var(--spring-k); }
.page-app, .has-tabs { --side: 0px; --tabs-h: 66px; --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px); }
.page-app { --glass: color-mix(in srgb, var(--paper) 72%, transparent); overscroll-behavior-y: contain; background: radial-gradient(120% 50% at 50% 0%, var(--card), transparent 70%) var(--paper); }
.page-app .ic, .has-tabs .tabs .ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic--s { width: 16px !important; height: 16px !important; }
.ic--l { width: 23px !important; height: 23px !important; }
.ic--dots { stroke-width: 3.2 !important; }
[tabindex="-1"]:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.btn--xs { min-height: 44px; padding: .2rem .95rem 0; font-size: .62rem; letter-spacing: .14em; }
.btn--xl { min-height: 56px; font-size: .8rem; }
.ib { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; transition: background .25s, transform .45s var(--spring); }
.ib:active { transform: scale(.9); }
.ib .ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

/* ---------- the frame ---------- */
.app { min-height: 100svh; }
.app__main { position: relative; display: block; max-width: 760px; margin: 0 auto; padding: calc(var(--safe-t) + 22px) max(16px, env(safe-area-inset-right)) calc(var(--tabs-h) + var(--safe-b) + 40px) max(16px, env(safe-area-inset-left)); }
.app__head { margin-bottom: 14px; }
.app__eb { font: 600 .66rem/1.3 var(--label); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); }
.app__lt { margin-top: 4px; font-size: 2.45rem; line-height: 1.08; transform-origin: 0 100%; transform: scale(calc(1 - var(--p, 0) * .18)); opacity: calc(1 - var(--p, 0) * 1.2); will-change: transform; }

/* the glass bar the large title tucks into */
.top { position: fixed; z-index: 45; left: var(--side); right: 0; top: 0; display: grid; place-items: center; height: calc(var(--safe-t) + 48px); padding-top: var(--safe-t); pointer-events: none; }
.top__glass { position: absolute; inset: 0; opacity: var(--p, 0); background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
.top__t { position: relative; font: 400 1.05rem/1 var(--display); opacity: clamp(0, calc(var(--p, 0) * 2 - 1), 1); transform: translateY(calc((1 - var(--p, 0)) * 8px)); }

/* the glass tab bar */
.tabs { position: fixed; z-index: 50; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: calc(10px + var(--safe-b)); display: grid; grid-template-columns: repeat(4, 1fr); height: var(--tabs-h); padding: 6px; border-radius: 26px; background: color-mix(in srgb, var(--card) 70%, transparent); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); box-shadow: 0 0 0 1px color-mix(in srgb, var(--line) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, .7), 0 18px 40px -18px rgb(var(--shade) / .5); animation: tabsIn .7s var(--spring-k) .1s both; }
.tabs a { position: relative; z-index: 1; display: grid; place-items: center; align-content: center; gap: 4px; min-width: 44px; min-height: 44px; border-radius: 20px; color: var(--ink-2); text-decoration: none; -webkit-tap-highlight-color: transparent; transition: color .3s, transform .45s var(--spring); }
.tabs a:active { transform: scale(.92); }
.tabs a b { font: 600 .58rem/1 var(--label); letter-spacing: .12em; text-transform: uppercase; }
.tabs a[aria-current="page"] { color: var(--wine); }
.tabs__pill { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 4); border-radius: 20px; background: color-mix(in srgb, var(--wine) 11%, transparent); transform: translateX(calc(var(--at) * 100%)); transition: transform .6s var(--spring); }
.tabs__new i { display: grid; place-items: center; width: 34px; height: 30px; border-radius: 12px; color: var(--on-foil); background: linear-gradient(110deg, var(--foil) 15%, var(--foil-hi) 50%, var(--foil) 85%) 0 0 / 220% 100%; box-shadow: 0 8px 16px -8px rgb(var(--shade) / .5); animation: foil 2.6s ease-in-out .9s 1; } /* one sweep of light, then it rests */
.tabs__new i .ic { width: 18px; height: 18px; stroke-width: 2.2; }
.tabs a.tabs__new b { color: var(--gold-lo); }
@keyframes tabsIn { from { transform: translateY(120%); opacity: 0; } }
@keyframes foil { 50% { background-position: 100% 0; } }
.has-tabs { padding-bottom: calc(var(--tabs-h) + 30px + env(safe-area-inset-bottom)); }
@media (max-width: 759px) { .has-tabs .nav__links { display: none; } }

/* the sidebar (tablet and laptop) */
.side { display: none; }
@media (min-width: 760px) {
  .page-app { --side: 236px; }
  .tabs, .has-tabs .tabs { display: none; }
  .has-tabs { padding-bottom: 0; }
  .side { position: fixed; z-index: 46; inset: 0 auto 0 0; display: flex; flex-direction: column; gap: 4px; width: var(--side); padding: 22px 14px 18px; overflow-y: auto; background: var(--weave), linear-gradient(170deg, var(--cloth-2), var(--cloth) 70%); color: var(--on-cloth); animation: sideIn .8s var(--ease) both; }
  .side__brand { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: -8px 8px 10px; color: var(--on-cloth); font: 400 1.5rem/1 var(--display); text-decoration: none; }
  .side__brand .mark { width: 14px; height: 22px; fill: var(--gold); stroke: var(--gold); transform-origin: 50% 0; animation: sway 3.4s var(--ease) .6s; }
  .side__list { display: grid; gap: 2px; }
  .side__nav { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 14px; background: none; color: color-mix(in srgb, var(--on-cloth) 82%, transparent); font: 500 .95rem/1 var(--body); text-align: left; text-decoration: none; cursor: pointer; transition: background .25s, color .25s, transform .45s var(--spring); }
  .side__nav:hover { background: rgba(255, 255, 255, .06); color: var(--on-cloth); }
  .side__nav:active { transform: scale(.97); }
  .side__nav[aria-current="page"] { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgb(var(--gold-hi-rgb) / .16); }
  .side__nav[hidden] { display: none; }
  .side__nav span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .side__nav .ic { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .side__n { display: grid; place-items: center; min-width: 22px; height: 22px; margin-left: auto; padding: 0 6px; border-radius: 999px; background: var(--gold); color: var(--cloth); font: 600 .72rem/1 var(--body); }
  .side__l { margin: 18px 12px 6px; font: 600 .6rem/1 var(--label); letter-spacing: .24em; text-transform: uppercase; color: color-mix(in srgb, var(--on-cloth) 55%, transparent); }
  .side__new { margin-top: auto; }
  .side__new .ic { fill: none; stroke: currentColor; stroke-width: 2; }
  .app__main { margin-left: var(--side); max-width: none; padding: 34px clamp(20px, 4vw, 48px) 60px; }
  .top { display: none; }
  .app__lt { transform: none; opacity: 1; font-size: 2.9rem; }
  @keyframes sideIn { from { transform: translateX(-30px); opacity: 0; } }
}
@keyframes sway { 30% { transform: rotate(9deg); } 60% { transform: rotate(-6deg); } 85% { transform: rotate(2deg); } }

/* ---------- live mini covers ---------- */
.cv { --cb: #5a0f2a; --ct: #f8ecef; --cg: #c39a55; position: relative; isolation: isolate; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3em; width: 7.4em; height: 10.4em; padding: .9em .5em; border-radius: .95em; overflow: hidden; font-size: 10px; background: var(--cb); color: var(--ct); text-align: center; box-shadow: 0 1em 1.5em -1em rgba(44, 10, 23, .75), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.cv::after { content: ""; position: absolute; z-index: 1; inset: .38em; border: 1px solid color-mix(in srgb, var(--cg) 70%, transparent); border-radius: .62em; pointer-events: none; }
.cv__fx, .cv__fx2 { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.cv__fx2 { background: linear-gradient(110deg, transparent 40%, color-mix(in srgb, var(--ct) 22%, transparent) 50%, transparent 60%) 0 0 / 250% 100%; }
.cv__k { max-width: 100%; overflow: hidden; font: 600 .42em/1.3 var(--label); letter-spacing: .2em; text-transform: uppercase; color: var(--cg); white-space: nowrap; text-overflow: ellipsis; }
.cv__n { display: grid; max-width: 100%; font: 400 calc(1.25em * min(1, 6.5 / var(--nl, 6))) / 1.04 var(--cf, var(--display)); }
.cv__n span { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.cv__n i { font-style: italic; font-size: .66em; line-height: 1.3; color: var(--cg); }
.cv--script .cv__n { font-size: calc(1.55em * min(1, 7.5 / var(--nl, 6))); line-height: .98; }
.cv--script .cv__n i { font-style: normal; }
.cv__d { margin-top: .2em; font: 500 .4em/1.3 var(--label); letter-spacing: .18em; opacity: .85; }
.cv--off { filter: grayscale(.6); opacity: .8; }
.is-vis .cv__fx2 { animation: cvSheen 5s ease-in-out infinite; }
/* per design: the touch of motion each cover carries (spec s15: gatsby rays, watercolour washes, afterglow neon, …) */
.cv[data-d="gatsby"] > .cv__fx { inset: -30% -60% 0; background: repeating-conic-gradient(from -90deg at 50% 100%, color-mix(in srgb, var(--cg) 34%, transparent) 0 1.4deg, transparent 1.4deg 8deg); -webkit-mask: radial-gradient(60% 75% at 50% 100%, #000 35%, transparent 75%); mask: radial-gradient(60% 75% at 50% 100%, #000 35%, transparent 75%); transform-origin: 50% 100%; }
.is-vis .cv[data-d="gatsby"] > .cv__fx { animation: cvFan 6s ease-in-out infinite alternate; }
.cv[data-d="watercolour"] > .cv__fx, .cv[data-d="bloom"] > .cv__fx { background: radial-gradient(48% 34% at 20% 16%, color-mix(in srgb, var(--cg) 85%, transparent), transparent 70%), radial-gradient(52% 32% at 82% 90%, color-mix(in srgb, #93a888 80%, transparent), transparent 70%); }
.is-vis .cv[data-d="watercolour"] > .cv__fx, .is-vis .cv[data-d="bloom"] > .cv__fx { animation: cvBloom 5s ease-in-out infinite alternate; }
.cv[data-d="afterglow"] .cv__n { text-shadow: 0 0 .25em var(--cg), 0 0 .7em var(--cg); }
.cv[data-d="afterglow"]::after { border-color: var(--cg); box-shadow: 0 0 .5em var(--cg), inset 0 0 .5em color-mix(in srgb, var(--cg) 60%, transparent); }
.cv[data-d="afterglow"] > .cv__fx { background: radial-gradient(60% 40% at 50% 12%, color-mix(in srgb, var(--cg) 45%, transparent), transparent 70%), radial-gradient(60% 35% at 50% 100%, rgba(34, 193, 195, .35), transparent 70%); }
.is-vis .cv[data-d="afterglow"] > .cv__fx { animation: cvGlow 2.6s ease-in-out infinite alternate; }
.is-vis .cv[data-d="afterglow"] .cv__n { animation: cvNeon 4s steps(1) infinite; }
.cv[data-d="evermore"] > .cv__fx { background: radial-gradient(45% 22% at 50% 92%, color-mix(in srgb, var(--cg) 45%, transparent), transparent 70%); }
.cv[data-d="evermore"] > .cv__fx2 { inset: auto auto .75em 50%; width: .5em; height: .85em; margin-left: -.25em; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: radial-gradient(circle at 50% 72%, #fff6d0, #e8b565 58%, rgba(232, 181, 101, 0) 72%); transform-origin: 50% 100%; }
.is-vis .cv[data-d="evermore"] > .cv__fx2 { animation: cvFlick 1.4s ease-in-out infinite alternate; }
.cv[data-d="nightfall"] > .cv__fx, .cv[data-d="premiere"] > .cv__fx, .cv[data-d="keynote"] > .cv__fx { background-image: radial-gradient(circle at 18% 22%, #fff 0 .06em, transparent .1em), radial-gradient(circle at 74% 14%, #fff 0 .05em, transparent .09em), radial-gradient(circle at 38% 78%, var(--cg) 0 .06em, transparent .1em), radial-gradient(circle at 86% 64%, #fff 0 .05em, transparent .09em), radial-gradient(circle at 12% 60%, #fff 0 .04em, transparent .08em), radial-gradient(90% 60% at 50% 110%, color-mix(in srgb, var(--cg) 30%, transparent), transparent); }
.is-vis .cv[data-d="nightfall"] > .cv__fx, .is-vis .cv[data-d="premiere"] > .cv__fx, .is-vis .cv[data-d="keynote"] > .cv__fx { animation: cvTwinkle 2.4s ease-in-out infinite alternate; }
.cv[data-d="confetti"] > .cv__fx { background-image: radial-gradient(circle at 15% 20%, #ff4f9a 0 .18em, transparent .2em), radial-gradient(circle at 70% 10%, #ffc93c 0 .2em, transparent .22em), radial-gradient(circle at 40% 60%, #22c1c3 0 .16em, transparent .18em), radial-gradient(circle at 85% 70%, #ff4f9a 0 .14em, transparent .16em), radial-gradient(circle at 25% 85%, #ffc93c 0 .16em, transparent .18em); background-size: 100% 5em; }
.is-vis .cv[data-d="confetti"] > .cv__fx { animation: cvFall 4s linear infinite; }
.cv[data-d="verdant"] > .cv__fx { inset: .5em auto auto -.6em; width: 3.4em; height: 1.5em; border-radius: 0 100% 0 100%; background: linear-gradient(135deg, #8fa873, #5b6f4e); transform-origin: 0 50%; }
.is-vis .cv[data-d="verdant"] > .cv__fx { animation: cvLeaf 4s ease-in-out infinite alternate; }
.cv[data-d="adire"] > .cv__fx { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--ct) 9%, transparent) 0 .25em, transparent .25em 1em), repeating-linear-gradient(-45deg, color-mix(in srgb, var(--ct) 9%, transparent) 0 .25em, transparent .25em 1em); }
.cv[data-d="shoji"] > .cv__fx { inset: 1.2em auto auto 50%; width: 2.2em; height: 2.2em; margin-left: -1.1em; border-radius: 50%; background: var(--cg); opacity: .85; }
.is-vis .cv[data-d="shoji"] > .cv__fx { animation: cvFloat 5s ease-in-out infinite alternate; }
.cv[data-d="cover-story"] > .cv__fx { inset: 0 0 auto; height: 1.4em; background: var(--cg); }
.cv[data-d="jetset"] > .cv__fx { background: repeating-linear-gradient(-45deg, var(--cg) 0 .4em, transparent .4em .8em) 0 0 / 100% .55em no-repeat, repeating-linear-gradient(-45deg, var(--cg) 0 .4em, transparent .4em .8em) 0 100% / 100% .55em no-repeat; }
.cv[data-d="storybook"] > .cv__fx, .cv[data-d="studio"] > .cv__fx { background: var(--weave); }
.cv[data-d="palazzo"] > .cv__fx { background: radial-gradient(circle at 0 0, var(--cg) 0 1.2em, transparent 1.25em), radial-gradient(circle at 100% 100%, var(--cg) 0 1.2em, transparent 1.25em); opacity: .7; }
.cv[data-d="keepsake"] > .cv__fx { background: repeating-linear-gradient(0deg, color-mix(in srgb, var(--ct) 7%, transparent) 0 1px, transparent 1px 1.2em); }
.cv[data-d="chandelier"] > .cv__fx, .cv[data-d="billet"] > .cv__fx { background: radial-gradient(40% 30% at 50% 0%, color-mix(in srgb, var(--cg) 40%, transparent), transparent 70%); }
.is-vis .cv[data-d="chandelier"] > .cv__fx { animation: cvGlow 3s ease-in-out infinite alternate; }
.cv[data-d="gallery"]::after { inset: .7em; border-width: .25em; border-radius: 0; }
@keyframes cvSheen { 0%, 40% { background-position: 120% 0; } 80%, 100% { background-position: -40% 0; } }
@keyframes cvFan { to { transform: rotate(6deg); } }
@keyframes cvBloom { to { transform: scale(1.12) translateY(-2%); } }
@keyframes cvGlow { to { opacity: .55; } }
@keyframes cvNeon { 0%, 9%, 11%, 100% { opacity: 1; } 10% { opacity: .55; } }
@keyframes cvFlick { to { transform: scaleY(1.15) rotate(3deg); } }
@keyframes cvTwinkle { to { opacity: .45; } }
@keyframes cvFall { to { background-position: 0 5em; } }
@keyframes cvLeaf { to { transform: rotate(-10deg); } }
@keyframes cvFloat { to { transform: translateY(.4em); } }

/* ---------- the invitations list ---------- */
.nudge { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 10px 10px 10px 14px; border-radius: 18px; background: color-mix(in srgb, var(--gold-wash) 45%, var(--card)); font-size: .86rem; line-height: 1.4; animation: rise .7s var(--ease) .3s both; }
.nudge .ic { color: var(--gold-lo); }
.nudge span { flex: 1; }
.nudge__b { flex: none; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--wine); color: var(--on-wine); font: 600 .62rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }

.seg { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); margin-bottom: 14px; padding: 4px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { position: relative; z-index: 1; min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--ink-2); font: 600 .64rem/1 var(--label); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: color .3s; }
.seg button b { font-weight: 600; opacity: .7; }
.seg button[aria-pressed="true"] { color: var(--on-wine); }
.seg__pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n)); border-radius: 999px; background: var(--wine); box-shadow: 0 8px 16px -10px var(--wine); transform: translateX(calc(var(--at) * 100%)); transition: transform .55s var(--spring); }
.seg--sm { margin: 0; }

.wide { display: block; }
.list { position: relative; display: flex; flex-direction: column; }
.card { position: relative; margin-bottom: 12px; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; animation: cardIn .75s var(--spring-k) calc(.32s + var(--i, 0) * 70ms) both; }
.card[hidden] { display: none; }
.card__under { position: absolute; inset: 1px 0 1px 30%; display: flex; justify-content: flex-end; gap: 8px; visibility: hidden; }
.card.is-drag .card__under, .card.is-open .card__under { visibility: visible; }
.card__act { display: grid; place-items: center; align-content: center; gap: 6px; width: 76px; min-height: 44px; border: 0; border-radius: 22px; color: var(--on-bad); font: 600 .6rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transform: scale(var(--reveal, 0)); transition: transform .5s var(--spring); }
.card__act .ic { width: 22px; height: 22px; }
.card__act--share { background: linear-gradient(140deg, var(--foil-hi), var(--foil)); color: var(--on-foil); }
.card__act--del { background: var(--bad); }
.card.is-open .card__act { --reveal: 1; }
.card.is-open .card__act--del { transition-delay: .08s; }
.card__face { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 16px 28px -22px rgb(var(--shade) / .65); transform: translateX(var(--dx, 0px)); transition: transform .6s var(--spring), box-shadow .3s; }
.card.is-drag .card__face { transition: none; }
.card.is-open .card__face { --dx: -172px; }
.card.is-held .card__face { box-shadow: inset 0 0 0 1px var(--line), 0 30px 50px -24px rgb(var(--shade) / .7); }
.card__cv { flex: none; display: block; border-radius: 10px; transition: transform .5s var(--spring); }
.card__cv:active { transform: scale(.96); }
.card__meta { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.card__row { display: flex; align-items: center; justify-content: space-between; margin: -10px -10px -6px 0; }
.st { display: inline-flex; align-items: center; gap: 6px; font: 600 .6rem/1 var(--label); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .6; }
.st--live { color: var(--ink); }
.st--live::before { opacity: 1; background: var(--thread); box-shadow: 0 0 0 0 color-mix(in srgb, var(--thread) 50%, transparent); animation: livePulse 2.4s ease-out infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.card__more { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--ink-2); cursor: pointer; }
.card__more:active { background: var(--paper-2); }
.card__t { font-size: 1.28rem; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__dt { font-size: .78rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__hint { margin-top: 4px; font-size: .8rem; color: var(--ink-2); }
.card__qa { display: flex; gap: 6px; margin-top: 8px; }
.card__qa .btn { padding-inline: .8rem; }
.stats { display: flex; gap: 18px; margin-top: 4px; }
.stats span { display: grid; }
.stats b { font: 400 1.3rem/1.05 var(--display); font-variant-numeric: tabular-nums; }
.stats i { font: 600 .54rem/1.2 var(--label); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
/* rolling digits */
.odo { display: inline-flex; overflow: hidden; height: 1.05em; vertical-align: bottom; }
.odo__c { display: inline-block; height: 1.05em; overflow: hidden; }
.odo__c > span { display: flex; flex-direction: column; transform: translateY(calc(var(--d) * -1.05em)); transition: transform 1.1s var(--spring); transition-delay: calc(var(--k) * 60ms); }
.odo__c > span > span { height: 1.05em; line-height: 1.05; }

.list__none { padding: 30px 0; text-align: center; color: var(--ink-2); }
.binrow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin-top: 6px; padding: 0 16px; border: 0; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 500 .95rem/1 var(--body); text-align: left; cursor: pointer; transition: transform .45s var(--spring); animation: rise .7s var(--ease) .7s both; }
.binrow:active { transform: scale(.98); }
.binrow[hidden] { display: none; }
.binrow b { flex: 1; font-weight: 600; }
.binrow .ic { color: var(--ink-2); }
.binrow__n { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--paper-2); font-size: .8rem; font-weight: 600; }
@keyframes cardIn { from { opacity: 0; transform: translateY(22px) scale(.97); } }

/* skeleton: shimmer cards that give way to the live ones */
.skel { position: absolute; z-index: 5; left: 0; right: 0; pointer-events: none; animation: skelOut .3s linear .36s both; }
.app__main > .skel { top: calc(var(--safe-t) + 150px); padding-inline: inherit; }
.skel__c { display: flex; gap: 14px; height: 150px; margin-bottom: 12px; padding: 14px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.skel__c > div { display: grid; align-content: start; gap: 9px; flex: 1; }
.sk { display: block; border-radius: 8px; background: linear-gradient(100deg, var(--paper-2) 30%, var(--card) 50%, var(--paper-2) 70%) 0 0 / 300% 100%; animation: shimmer 1.1s linear infinite; }
.skel__cv { width: 74px; height: 104px; border-radius: 10px; }
.list { transition: opacity .3s, filter .3s; }
.is-refreshing .list { opacity: .45; filter: saturate(.6); }
@keyframes skelOut { to { opacity: 0; visibility: hidden; } }
@keyframes shimmer { to { background-position: -300% 0; } }

/* pull to refresh: the gold tassel swings down */
.ptr { position: fixed; z-index: 44; left: 50%; top: calc(var(--safe-t) + 4px); display: grid; justify-items: center; gap: 4px; transform: translate(-50%, calc(var(--pull, 0) * .55px - 60px)); opacity: min(1, calc(var(--pull, 0) / 50)); pointer-events: none; }
.ptr__m { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--card); box-shadow: 0 8px 20px -10px rgb(var(--shade) / .6), inset 0 0 0 1px var(--line); }
.ptr__m .mark { width: 12px; height: 20px; fill: var(--gold); stroke: var(--gold); transform-origin: 50% 0; transform: rotate(calc(var(--pull, 0) * .35deg)); }
.ptr.is-busy .mark { animation: swing .9s ease-in-out infinite alternate; }
.ptr__t { font: 600 .58rem/1 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
@keyframes swing { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
.app__main.is-pulled { transform: translateY(calc(var(--pull, 0) * 1px)); }
.ptr:not(.is-busy) ~ * .app__main { transition: transform .5s var(--spring); }

/* first run */
.empty { display: grid; justify-items: center; gap: 12px; padding: 12px 0 20px; text-align: center; }
.empty h2 { font-size: 1.75rem; animation: rise .8s var(--ease) 1s both; }
.empty p { max-width: 32ch; font-size: .92rem; color: var(--ink-2); animation: rise .8s var(--ease) 1.12s both; }
.empty .btn { animation: rise .8s var(--ease) 1.24s both; }
.fan { position: relative; width: 240px; height: 180px; }
.fan > span { position: absolute; left: 50%; top: 10px; margin-left: -45px; }
.fan .cv { font-size: 12px; }
.fan__0 { transform: translateX(-66px) translateY(14px) rotate(-14deg); animation: fanL .95s var(--spring-k) .35s both; }
.fan__2 { transform: translateX(66px) translateY(14px) rotate(14deg); animation: fanR .95s var(--spring-k) .35s both; }
.fan__1 { z-index: 1; animation: fanUp .8s var(--spring-k) .2s both; }
@keyframes fanL { from { transform: none; opacity: 0; } }
@keyframes fanR { from { transform: none; opacity: 0; } }
@keyframes fanUp { from { transform: translateY(30px) scale(.9); opacity: 0; } }

/* hold or ···: the card lifts out of a blurred page with its menu */
.veil { position: fixed; z-index: 60; inset: 0; background: rgb(var(--paper-rgb) / .35); -webkit-backdrop-filter: blur(9px) saturate(1.2); backdrop-filter: blur(9px) saturate(1.2); animation: fade .3s ease both; }
.veil[hidden] { display: none; }
.card.is-lifted { z-index: 61; }
.card.is-lifted .card__face { transform: scale(1.03); box-shadow: 0 0 0 1px var(--line), 0 34px 60px -24px rgb(var(--shade) / .7); }
.menu { position: fixed; z-index: 62; display: grid; width: 230px; overflow: hidden; border-radius: 18px; background: color-mix(in srgb, var(--card) 82%, transparent); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); box-shadow: 0 0 0 1px var(--line), 0 26px 50px -20px rgb(var(--shade) / .55); transform-origin: var(--ox, 50%) var(--oy, 0); animation: menuIn .45s var(--spring-k) both; }
.menu[hidden] { display: none; }
.menu > a, .menu > button { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px; border: 0; border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); background: none; color: var(--ink); font: 500 .95rem/1 var(--body); text-align: left; text-decoration: none; cursor: pointer; }
.menu > :first-child { border-top: 0; }
.menu > a:active, .menu > button:active, .menu > a:focus-visible, .menu > button:focus-visible { background: color-mix(in srgb, var(--wine) 8%, transparent); outline: none; }
.menu .ic { color: var(--ink-2); }
.menu .menu__del, .menu .menu__del .ic { color: var(--bad); }
@keyframes menuIn { from { opacity: 0; transform: scale(.85); } }
@keyframes fade { from { opacity: 0; } }

/* the delete sheet (public/app.js opens it) and its 30 days */
.days { display: grid; gap: 6px; width: 100%; margin-top: 2px; padding: 9px 12px 8px; border-radius: 14px; background: var(--paper); }
.days__row { display: grid; grid-template-columns: repeat(30, 1fr); align-items: end; gap: 2px; height: 16px; }
.days__row i { height: 100%; border-radius: 2px; background: color-mix(in srgb, var(--gold) 45%, var(--card)); transform-origin: 50% 100%; }
.days__row i:first-child { background: var(--wine); }
.days__row i:last-child { background: var(--bad); }
.dsheet[open] .days__row i { animation: growY .5s var(--spring-k) calc(.35s + var(--i) * 18ms) both; }
.days__lab { display: flex; justify-content: space-between; font: 600 .5rem/1 var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
@keyframes growY { from { transform: scaleY(0); } }
.dsheet__icon .ic { width: 26px; height: 26px; }
.dsheet .btn { min-height: 52px; }
.dsheet--plain .dsheet__card { text-align: center; }

/* the Undo bar, with its ring running down */
.page-app .snack { bottom: calc(var(--tabs-h) + 22px + var(--safe-b)); gap: .7rem; padding-left: .8rem; border-radius: 18px; background: color-mix(in srgb, var(--cloth) 94%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.page-app .snack button { min-height: 44px; }
.snack__ring { flex: none; width: 22px; height: 22px; transform: rotate(-90deg); }
.snack__ring circle { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; }
.snack.is-on .snack__ring circle { animation: drain 7s linear both; }
@keyframes drain { to { stroke-dashoffset: 1; } }
@media (min-width: 760px) { .page-app .snack, .page-app .toast { bottom: 26px; margin-left: calc(var(--side) / 2); } }
.page-app .toast { bottom: calc(var(--tabs-h) + 22px + var(--safe-b)); }
/* host pages outside the app frame (gifts, developer) carry the same tab bar on a phone: their toast rides above it too, not over it */
@media (max-width: 759px) { .has-tabs .toast { bottom: calc(var(--tabs-h) + 22px + var(--safe-b)); } }

/* ---------- pushed pages: Recently deleted, and the You page's settings ---------- */
.push { position: fixed; z-index: 70; inset: 0 0 0 var(--side); overflow-y: auto; overscroll-behavior: contain; background: var(--paper); transform: translateX(104%); box-shadow: -30px 0 60px -30px rgb(var(--shade) / .4); transition: transform .55s var(--spring), visibility 0s .55s; visibility: hidden; }
.push[hidden] { display: block; }
.push.is-on { transform: none; visibility: visible; transition: transform .6s var(--spring); }
.push__bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; height: calc(var(--safe-t) + 52px); padding: var(--safe-t) 8px 0; background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); }
.push__back { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 12px 0 4px; border: 0; background: none; color: var(--wine); font: 500 1rem/1 var(--body); cursor: pointer; }
.push__back .ic { width: 22px; height: 22px; }
.push__t { position: absolute; left: 50%; transform: translateX(-50%); font: 400 1rem/1 var(--display); opacity: 0; transition: opacity .3s; }
.push.is-scrolled .push__t { opacity: 1; }
.push__body { max-width: 760px; margin: 0 auto; padding: 6px 16px calc(40px + var(--safe-b)); }
.push__h { margin: 4px 0 8px; font-size: 2.1rem; }
.push__foot { margin-top: 12px; font-size: .82rem; color: var(--ink-2); }
.note { display: flex; gap: 10px; margin: 10px 0 14px; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--gold-wash) 42%, var(--card)); font-size: .86rem; line-height: 1.45; }
.note .ic { margin-top: 1px; color: var(--gold-lo); }
.trows { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.trow { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.push.is-on .trow { animation: rise .6s var(--ease) calc(.15s + var(--i) * 70ms) both; }
.trow .cv { font-size: 7px; }
.trow__m { display: grid; gap: 2px; flex: 1; min-width: 0; }
.trow__m b { font: 600 .95rem/1.25 var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow__m small { font-size: .76rem; color: var(--ink-2); }
.trow__m .trow__left { color: var(--wine); font-weight: 600; }
.trow.is-going { animation: fold .7s var(--ease) both !important; }
.trash__empty { padding: 26px 0; text-align: center; color: var(--ink-2); }
.dial { position: relative; display: grid; place-items: center; flex: none; width: 40px; height: 40px; }
.dial svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.dial circle { fill: none; stroke: var(--line); stroke-width: 3; }
.dial .dial__on { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p)); }
.push.is-on .dial__on { animation: dialIn 1.2s var(--ease) .4s both; }
.dial b { font: 400 .95rem/1 var(--display); }
@keyframes dialIn { from { stroke-dashoffset: 1; } }
@keyframes fold { to { opacity: 0; transform: scale(.9); height: 0; padding-block: 0; margin-block: -5px; } }

/* ---------- New invitation: kinds, then live designs to swipe ---------- */
.nsheet { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; }
.nsheet::backdrop { background: rgb(var(--shade) / .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.nsheet[open]::backdrop { animation: fade .3s ease both; }
.nsheet__card { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; height: min(94dvh, 860px); padding: 8px 0 calc(16px + var(--safe-b)); border-radius: 28px 28px 0 0; background: var(--card); box-shadow: 0 -30px 60px -30px rgb(var(--shade) / .55); overflow: hidden; }
.nsheet[open] .nsheet__card { animation: sheetUp .6s var(--spring-k) both; }
.grip { display: block; width: 40px; height: 5px; margin: 0 auto 4px; border-radius: 3px; background: var(--line); }
.nsheet__hd { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 0 10px; text-align: center; }
.nsheet__hd b { grid-column: 2; grid-row: 1; font: 400 1.05rem/1 var(--display); }
.nsheet__hd [data-new-back] { grid-column: 1; grid-row: 1; }
.nsheet__hd [data-new-close] { grid-column: 1; grid-row: 1; }
.nsheet__hd [data-new-back]:not([hidden]) + [data-new-close] { grid-column: 3; }
.nsheet__hd [hidden] { display: none; }
.nsheet__pages { position: relative; display: flex; flex: 1; min-height: 0; transform: translateX(calc(var(--step, 0) * -100%)); transition: transform .6s var(--spring); }
.nsheet__p { display: flex; flex-direction: column; flex: none; width: 100%; min-height: 0; padding: 10px 18px 0; overflow-y: auto; }
.nsheet__p h2 { font-size: 1.7rem; }
.nsheet__p .muted { margin-top: 4px; font-size: .88rem; }
.kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 10px; }
.kind { display: grid; justify-items: center; align-content: center; gap: 9px; min-height: 96px; padding: 6px 4px; border: 0; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); cursor: pointer; transition: transform .5s var(--spring), background .3s, color .3s; }
.nsheet[open] .kind { animation: rise .6s var(--ease) calc(.2s + var(--i) * 45ms) both; }
.kind .ic { color: var(--wine); width: 26px; height: 26px; }
.kind b { font: 600 .6rem/1.25 var(--label); letter-spacing: .12em; text-transform: uppercase; }
.kind:active { transform: scale(.94); }
.kind.is-on { background: var(--wine); color: var(--on-wine); box-shadow: 0 12px 24px -14px var(--wine); transform: scale(1.04); }
.kind.is-on .ic { color: var(--gold-hi); }
.car { display: flex; gap: 16px; flex: 1; min-height: 0; margin: 12px -18px 6px; padding: 6px calc(50% - var(--cw, 180px) / 2) 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.car::-webkit-scrollbar { display: none; }
.car:focus-visible { outline: none; }
.car__it { display: grid; justify-items: center; align-content: start; gap: 8px; flex: none; width: var(--cw, 180px); scroll-snap-align: center; transition: transform .5s var(--spring), opacity .4s; transform: scale(.9); opacity: .6; cursor: pointer; }
.car__it.is-on { transform: none; opacity: 1; }
.car__dev { position: relative; width: var(--cw, 180px); height: var(--ch, 390px); overflow: hidden; border-radius: 22px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line), 0 22px 40px -24px rgb(var(--shade) / .7); }
.car__dev .cv { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; font-size: calc(var(--cw, 180px) / 7.4); }
.car__dev iframe { position: absolute; left: 0; top: 0; width: 390px; height: 844px; border: 0; transform: scale(var(--cs, .46)); transform-origin: 0 0; opacity: 0; transition: opacity .6s; pointer-events: none; }
.car__dev iframe.is-in { opacity: 1; }
.car__nm { display: grid; justify-items: center; font-size: .78rem; color: var(--ink-2); }
.car__nm b { font: 400 1.15rem/1.2 var(--display); color: var(--ink); }
.cdots { display: flex; justify-content: center; gap: 6px; min-height: 8px; margin-bottom: 12px; }
.cdots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .4s var(--spring), background .3s; }
.cdots i.is-on { width: 18px; background: var(--wine); }
.nsheet [data-new-use] { flex: none; min-height: 56px; margin-bottom: 4px; }
.nsheet [data-new-byo] { flex: none; min-height: 46px; margin: 4px 0 12px; } /* Build your own: the blank-page route (public/rooms/) */
.nsheet.is-going .nsheet__card { animation: none; }
.grow { position: fixed; inset: 0; z-index: 200; background: var(--paper); overflow: hidden; transition: clip-path .7s var(--spring); } /* the card opening into the editor (shell.js): clip-path and transform only */
.grow > * { transform-origin: 50% 30%; transition: opacity .45s var(--ease-out) .08s, transform .7s var(--spring); }
@keyframes sheetUp { from { transform: translateY(100%); } }
@media (min-width: 760px) {
  .nsheet__card { left: 50%; top: 50%; bottom: auto; width: min(920px, calc(100vw - var(--side) - 48px)); height: min(680px, calc(100dvh - 48px)); margin-left: calc(var(--side) / 2); padding-bottom: 20px; border-radius: 28px; transform: translate(-50%, -50%); }
  .nsheet[open] .nsheet__card { animation: popIn .55s var(--spring-k) both; }
  .nsheet__card .grip { display: none; }
  .nsheet__pages { display: grid; grid-template-columns: minmax(250px, .8fr) 1.2fr; transform: none; }
  .nsheet__p { width: auto; }
  .nsheet__hd [data-new-back] { display: none; }
  .kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  @keyframes popIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } }
}

/* ---------- laptop: cards in a list with the selected one playing on the right ---------- */
@media (min-width: 760px) {
  .card { margin-bottom: 14px; }
  .card__face { padding: 16px 18px; gap: 18px; }
  .card__face .cv { font-size: 11px; }
  .card__t { font-size: 1.5rem; }
  .card.is-sel .card__face { box-shadow: inset 0 0 0 2px var(--wine), 0 22px 36px -26px rgb(var(--shade) / .7); }
  .seg { max-width: 420px; }
  .app__main > .skel { display: none; }
  .app__main > *, .wide > * { min-width: 0; }
}
@media (min-width: 1100px) {
  .app--list .app__main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); column-gap: 28px; align-items: start; }
  .app--list .app__main > .app__head { grid-column: 1; }
  .app--list .app__main > .seg { grid-column: 2; grid-row: 1; align-self: end; margin-bottom: 18px; width: 100%; }
  .app--list .app__main > .nudge, .app--list .app__main > .wide { grid-column: 1 / -1; }
  .kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.detail { display: none; }
@media (min-width: 1180px) {
  .wide { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
  .detail { position: sticky; top: 24px; display: grid; justify-items: center; gap: 10px; padding: 18px 16px 20px; border-radius: 26px; background: radial-gradient(90% 60% at 50% 0%, var(--card), transparent 70%), var(--card); box-shadow: inset 0 0 0 1px var(--line); text-align: center; animation: rise .8s var(--ease) .5s both; }
  .detail__dev { position: relative; width: 204px; height: 442px; overflow: hidden; border-radius: 30px; background: #111; box-shadow: 0 0 0 6px #0C112A, 0 30px 50px -26px rgb(var(--shade) / .8); }
  .detail__dev iframe { position: absolute; left: 0; top: 0; width: 390px; height: 844px; border: 0; transform: scale(.523); transform-origin: 0 0; transition: opacity .5s; }
  .detail__dev iframe.is-loading { opacity: 0; }
  .detail__t { margin-top: 8px; font-size: 1.45rem; }
  .detail__w { font-size: .82rem; color: var(--ink-2); }
  .detail__u { font-size: .78rem; color: var(--ink-2); overflow-wrap: anywhere; }
  .detail .stats { justify-content: center; gap: 26px; }
  .detail__qa { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
}

/* ---------- You ---------- */
.you { display: block; }
.me { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding: 14px; border-radius: 22px; background: var(--weave), linear-gradient(160deg, var(--cloth-2), var(--cloth)); color: var(--on-cloth); box-shadow: 0 22px 40px -26px var(--cloth); animation: rise .7s var(--ease) .1s both; }
.me__av { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-hi), var(--gold) 60%, var(--gold-lo)); color: var(--cloth); font: 400 1.35rem/1 var(--display); box-shadow: 0 0 0 3px rgb(var(--gold-hi-rgb) / .25); }
.me__m { display: grid; gap: 3px; min-width: 0; }
.me__m b { font: 400 1.25rem/1.15 var(--display); }
.me__m small { color: color-mix(in srgb, var(--on-cloth) 72%, transparent); font-size: .82rem; overflow-wrap: anywhere; }
.tag { display: inline-flex; align-items: center; gap: 4px; justify-self: start; min-height: 24px; padding: 3px 9px 2px; border: 0; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font: 600 .56rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.tag--ok { background: var(--ok-wash); color: var(--ok); }
.tag--warn { min-height: 44px; padding-inline: 12px; background: var(--gold-hi); color: var(--cloth); cursor: pointer; }
.tag--gold { background: var(--gold-hi); color: var(--gold-lo); }
.giftc { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 14px 12px 14px 16px; border-radius: 22px; background: var(--weave), linear-gradient(120deg, var(--cloth), var(--cloth-3)); color: var(--on-cloth); text-decoration: none; box-shadow: 0 0 0 1px rgb(var(--gold-hi-rgb) / .25), 0 22px 40px -26px var(--cloth); animation: rise .7s var(--ease) .2s both; }
.giftc__m { display: grid; gap: 3px; flex: 1; min-width: 0; }
.giftc .app__eb { color: var(--gold-hi); }
.giftc b { font: 400 1.1rem/1.2 var(--display); overflow-wrap: anywhere; }
.giftc em { color: var(--gold-hi); }
.giftc small { font-size: .78rem; opacity: .75; }
.giftc__b { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--on-cloth); cursor: pointer; transition: transform .45s var(--spring), background .25s; }
.giftc__b:active { transform: scale(.88); background: rgba(255, 255, 255, .2); }
.giftc__b .ic { width: 18px; height: 18px; }
.grp__l { margin: 16px 6px 6px; font: 600 .6rem/1 var(--label); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.grp { overflow: hidden; margin-bottom: 10px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); animation: rise .7s var(--ease) .3s both; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 9px 14px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: background .2s; }
.grp > .row:first-child, .grp > :first-child { border-top: 0; }
.row:active { background: color-mix(in srgb, var(--wine) 6%, transparent); }
.row__i { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px; background: var(--paper-2); color: var(--wine); }
.row__i .ic { width: 18px; height: 18px; }
.row__m { display: grid; gap: 2px; flex: 1; min-width: 0; }
.row__m b { font: 600 .95rem/1.25 var(--body); }
.row__m small { font-size: .78rem; color: var(--ink-2); overflow-wrap: anywhere; }
.row > .ic--s { color: var(--ink-2); }
.row--plain .row__i { background: var(--bad-wash); color: var(--bad); }
.row--plain b { color: var(--bad); }
.row--off { cursor: default; opacity: .55; }
.row--off:active { background: none; }
.row--static { cursor: default; } .row--static:active { background: none; } /* How you edit: the switch is the seg under it (public/shell/editor-mode.js) */
.row .amt { font: 600 .95rem/1 var(--body); }
.grp__seg { padding: 2px 12px 12px; }
.grp--dev { box-shadow: inset 0 0 0 1px var(--line), 0 0 0 0 var(--gold); }
.legal-links { margin: 18px 0 0; text-align: center; font-size: .8rem; color: var(--ink-2); }
.legal-links a { display: inline-block; min-height: 44px; padding: 0 6px; line-height: 44px; color: inherit; }
.aform { display: grid; gap: 12px; margin-top: 14px; }
.ff { position: relative; display: grid; gap: 6px; }
.ff__l { position: absolute; z-index: 1; left: 17px; top: 11px; font: 500 .72rem/1 var(--body) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--ink-2); pointer-events: none; }
.ff input { width: 100%; min-height: 62px; padding: 26px 16px 9px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--card); font-size: 1.05rem; transition: border-color .25s, box-shadow .25s; }
.ff input:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 4px color-mix(in srgb, var(--wine) 12%, transparent); }
.ff--pw input { padding-right: 58px; }
.ff__eye { position: absolute; right: 9px; top: 9px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--ink-2); cursor: pointer; transition: background .25s, transform .45s var(--spring); }
.ff__eye:active { transform: scale(.88); }
.ff__eye[aria-pressed="true"] { background: color-mix(in srgb, var(--wine) 10%, transparent); color: var(--wine); }
.ff__eye .ic { position: absolute; width: 21px; height: 21px; transition: opacity .25s, transform .4s var(--spring); }
.ff__eye .ic:last-child { opacity: 0; transform: rotate(-30deg) scale(.6); }
.ff__eye[aria-pressed="true"] .ic:first-child { opacity: 0; transform: rotate(30deg) scale(.6); }
.ff__eye[aria-pressed="true"] .ic:last-child { opacity: 1; transform: none; }
.ff small { min-height: 1em; padding-left: 4px; font-size: .8rem; color: var(--ink-2); }
.ff small:empty { display: none; }
.ff.is-refused input { border-color: var(--bad); animation: shake .4s ease; }
.ff.is-refused small { color: var(--bad); }
.str { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: -4px; }
.str i { height: 4px; border-radius: 2px; background: var(--line); transition: background .35s; }
.str i { transform-origin: 0 50%; }
.str[data-level="1"] i:nth-child(-n+1), .str[data-level="2"] i:nth-child(-n+2) { background: var(--gold); }
.str[data-level="3"] i:nth-child(-n+3), .str[data-level="4"] i { background: var(--ok); }
.str[data-level] i { animation: none; }
.str span { grid-column: 1 / -1; font-size: .8rem; color: var(--ink-2); transition: color .3s; }
.str[data-level="3"] span, .str[data-level="4"] span { color: var(--ok); }
/* a button that turns into its result: "Save" → spinner → "Saved" */
.pbtn { position: relative; overflow: hidden; }
.pbtn__a, .pbtn__b { display: inline-flex; align-items: center; gap: 8px; transition: transform .5s var(--spring), opacity .3s; }
.pbtn__b { position: absolute; inset: 0; justify-content: center; transform: translateY(110%); opacity: 0; }
.pbtn__b .ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.pbtn.is-busy .pbtn__a { opacity: 0; transform: scale(.8); }
.pbtn.is-busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.pbtn.is-done { background: var(--ok); border-color: var(--ok); }
.pbtn.is-done .pbtn__a { transform: translateY(-110%); opacity: 0; }
.pbtn.is-done .pbtn__b { transform: none; opacity: 1; }
@keyframes spin { to { transform: rotate(1turn); } }
.modes { display: grid; gap: 10px; margin-top: 12px; }
.mode { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px; border: 0; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-align: left; cursor: pointer; transition: box-shadow .3s, transform .45s var(--spring); }
.mode:active { transform: scale(.98); }
.mode[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--wine), 0 14px 26px -20px var(--wine); }
.mode__r { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); transition: box-shadow .3s; }
.mode__r::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--wine); transform: scale(0); transition: transform .5s var(--spring); }
.mode[aria-checked="true"] .mode__r { box-shadow: inset 0 0 0 2px var(--wine); }
.mode[aria-checked="true"] .mode__r::after { transform: scale(1); }
.mp { position: relative; display: grid; padding: 14px 16px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--gold); }
.mp__m { grid-area: 1 / 1; display: grid; gap: 3px; opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .5s var(--spring); }
.mp__m b { font-size: .95rem; }
.mp__m small { font-size: .8rem; color: var(--ink-2); }
.mp[data-mp="each"] .mp__m--each, .mp[data-mp="daily"] .mp__m--daily, .mp[data-mp="off"] .mp__m--off { opacity: 1; transform: none; }
.small { margin-top: 10px; font-size: .82rem; }
.plan { display: grid; gap: 6px; margin-top: 12px; padding: 18px; border-radius: 22px; background: var(--weave), linear-gradient(150deg, var(--cloth-2), var(--cloth)); color: var(--on-cloth); }
.plan .app__eb { color: var(--gold-hi); }
.plan > b { font: 400 1.7rem/1.1 var(--display); color: var(--gold-hi); }
.plan p { font-size: .86rem; opacity: .85; }
.plan__n { display: flex; gap: 18px; margin-top: 6px; font-size: .85rem; }
.plan__n b { font: 400 1.25rem/1 var(--display); }
.rc { justify-items: stretch !important; text-align: left !important; }
.rc__hd { display: flex; align-items: center; gap: 12px; }
.rc__mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--paper-2); }
.rc__mark .mark { width: 12px; height: 20px; fill: var(--gold); stroke: var(--gold); }
.rc__lines { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--paper); font-size: .9rem; }
.rc__lines > span { display: flex; justify-content: space-between; gap: 12px; }
.rc__off { color: var(--ok); }
.rc__off[hidden] { display: none; }
.rc__tot { padding-top: 10px; border-top: 1px solid var(--line); font-weight: 600; }
.rc__tot b { font: 400 1.6rem/1 var(--display); }
@media (min-width: 1024px) {
  /* the You page on a laptop: the list on the left, the chosen setting open on the right */
  .you { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: 32px; align-items: start; }
  .you__pages { position: sticky; top: 24px; }
  .push--you, .push--you[hidden] { position: static; display: none; transform: none; visibility: visible; box-shadow: none; overflow: visible; background: none; transition: none; }
  .push--you.is-on { display: block; animation: rise .5s var(--ease) both; }
  .push--you .push__bar { display: none; }
  .push--you .push__body { max-width: 640px; margin: 0; padding: 0; }
  .you__list .row.is-sel { background: color-mix(in srgb, var(--wine) 7%, transparent); }
}

@media (prefers-reduced-motion: reduce) {
  .page-app *, .page-app *::before, .page-app *::after, .has-tabs .tabs, .has-tabs .tabs * { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .skel { display: none; }
  .is-vis .cv__fx, .is-vis .cv__fx2, .is-vis .cv__n { animation: none !important; }
}

/* the in-app "Confirm your email" nudge: Send link turns into a drawn tick and "Sent" */
.nudge__b .nudge__ok { display: none; }
.nudge.is-sent .nudge__b { pointer-events: none; }
.nudge.is-sent .nudge__b .nudge__t { display: none; }
.nudge.is-sent .nudge__b .nudge__ok { display: inline-flex; align-items: center; gap: 6px; }
.nudge__ok svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.nudge__ok path { stroke-dasharray: 1 1; }
.nudge.is-sent > .ic { animation: acFly .9s var(--spring-k) both; }
@media (prefers-reduced-motion: no-preference) {
  .nudge.is-sent .nudge__ok path { animation: acDraw .4s var(--ease-out, ease) .1s both; }
  .nudge.is-sent .nudge__b { animation: acPop .45s var(--spring-k) both; }
}
@keyframes acFly { 0% { transform: none; } 45% { transform: translate(10px, -8px) rotate(-12deg); opacity: 0; } 55% { transform: translate(-6px, 6px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .nudge.is-sent > .ic { animation: none; } }
@keyframes acDraw { from { stroke-dashoffset: 1; } }
@keyframes acPop { from { transform: scale(0); opacity: 0; } }
