:root { --ink:#352a2b; --muted:#8f7679; --rose:#c76f77; --rose-deep:#a8525c; --rose-soft:#fff0ee; --line:rgba(89,59,62,.12); --paper:rgba(255,255,255,.78); }
* { box-sizing:border-box; } [hidden] { display:none!important; } html,body { min-height:100%; } body { min-width:320px; margin:0; overflow-x:hidden; color:var(--ink); background:#fff8f5; font-family:"DM Sans",sans-serif; }.background-glow { position:fixed; z-index:-1; width:40rem; height:40rem; border-radius:50%; filter:blur(2px); pointer-events:none; }.glow-one { top:-20rem; left:-14rem; background:radial-gradient(circle,rgba(255,192,183,.55),rgba(255,240,235,0) 68%); }.glow-two { right:-18rem; bottom:-18rem; background:radial-gradient(circle,rgba(244,207,203,.5),rgba(255,240,235,0) 68%); }.site-header { position:fixed; z-index:5; top:0; left:0; right:0; display:flex; align-items:center; justify-content:space-between; width:min(1260px,calc(100% - 48px)); height:82px; margin:auto; }.brand { padding:0; border:0; color:var(--ink); background:transparent; font:600 clamp(1.1rem,2vw,1.4rem)/1 "Playfair Display",serif; letter-spacing:-.04em; cursor:pointer; }.header-note { color:var(--muted); font-size:.82rem; font-weight:600; }.header-note span { color:var(--rose); }.view { position:relative; min-height:100svh; }.view.is-active { display:grid; }.photo-collage { position:absolute; inset:0; z-index:0; max-width:1380px; margin:auto; pointer-events:none; }.photo { position:absolute; width:clamp(132px,16vw,230px); aspect-ratio:4/5; object-fit:cover; border:8px solid rgba(255,255,255,.88); border-radius:4px; box-shadow:0 20px 44px rgba(83,48,48,.16); transition:transform .35s ease; }.photo-a { top:15%; left:3%; transform:rotate(-8deg); }.photo-b { bottom:10%; left:10%; transform:rotate(7deg); }.photo-c { top:18%; right:6%; transform:rotate(7deg); }.photo-d { right:16%; bottom:7%; transform:rotate(-8deg); }.photo-e { top:52%; left:22%; width:clamp(105px,12vw,170px); transform:rotate(-3deg); }.home-content { position:relative; z-index:1; align-self:center; justify-self:center; width:min(570px,calc(100% - 44px)); padding:46px 32px; border:1px solid rgba(255,255,255,.7); border-radius:30px; background:rgba(255,252,250,.72); box-shadow:0 20px 65px rgba(112,65,66,.1); text-align:center; backdrop-filter:blur(15px); }.eyebrow { margin:0; color:var(--rose); font-size:.7rem; font-weight:700; letter-spacing:.17em; text-transform:uppercase; }.home-content h1,.message-card h2 { margin:15px 0 0; font-family:"Playfair Display",serif; font-weight:600; letter-spacing:-.045em; line-height:.98; }.home-content h1 { font-size:clamp(2.8rem,6.8vw,5.25rem); }.home-content em,.message-card em { color:var(--rose-deep); }.intro { max-width:330px; margin:19px auto 0; color:var(--muted); font-size:.98rem; line-height:1.6; }.home-actions { display:grid; justify-items:center; gap:12px; margin-top:29px; }.button { display:inline-flex; align-items:center; justify-content:center; gap:12px; min-height:52px; border-radius:999px; padding:0 22px; font:700 .92rem "DM Sans",sans-serif; cursor:pointer; transition:transform .18s ease,box-shadow .18s ease,background .18s ease; }.button:hover { transform:translateY(-2px); }.button-primary { border:1px solid var(--rose-deep); color:#fff; background:linear-gradient(135deg,#cf737d,#ad515c); box-shadow:0 11px 22px rgba(174,79,90,.25); }.button-primary:hover { box-shadow:0 14px 28px rgba(174,79,90,.32); }.button-secondary { min-height:42px; border:0; color:var(--muted); background:transparent; }.button-secondary:hover { color:var(--rose-deep); }.chat-dot { width:7px; height:7px; border-radius:50%; background:#7bcf9b; box-shadow:0 0 0 4px rgba(123,207,155,.15); }.scroll-note { position:absolute; z-index:1; bottom:24px; left:0; right:0; margin:0; color:var(--muted); font-size:.72rem; text-align:center; }.message-view,.chat-view { width:min(920px,calc(100% - 40px)); align-items:center; justify-content:center; margin:auto; padding:90px 0 34px; }.back-button { position:absolute; top:30px; left:0; display:inline-flex; gap:8px; align-items:center; border:0; padding:8px 0; color:var(--muted); background:transparent; font:600 .82rem "DM Sans",sans-serif; cursor:pointer; }.back-button:hover { color:var(--rose-deep); }.message-card { width:min(610px,100%); padding:clamp(42px,8vw,72px); border:1px solid rgba(255,255,255,.8); border-radius:30px; background:var(--paper); box-shadow:0 25px 60px rgba(112,65,66,.12); text-align:center; backdrop-filter:blur(18px); }.little-heart { display:grid; width:42px; height:42px; place-items:center; margin:0 auto 20px; border-radius:50%; color:#fff; background:var(--rose); box-shadow:0 8px 18px rgba(199,111,119,.3); }.message-card h2 { font-size:clamp(2.35rem,6vw,4rem); }.message-card > p:not(.eyebrow) { max-width:330px; margin:20px auto 28px; color:var(--muted); line-height:1.6; }.chat-card { display:flex; flex-direction:column; width:min(620px,100%); height:min(670px,calc(100svh - 135px)); min-height:430px; overflow:hidden; border:1px solid rgba(255,255,255,.82); border-radius:26px; background:rgba(255,255,255,.79); box-shadow:0 24px 70px rgba(112,65,66,.15); backdrop-filter:blur(18px); }.chat-topbar { display:flex; align-items:center; gap:11px; padding:18px 20px; border-bottom:1px solid var(--line); }.chat-avatar { display:grid; width:37px; height:37px; place-items:center; border-radius:13px; color:#fff; background:linear-gradient(145deg,#e49794,#b55d67); font:600 1rem "Playfair Display",serif; }.chat-topbar strong { display:block; font-size:.9rem; }.chat-topbar span { display:flex; gap:6px; align-items:center; margin-top:2px; color:var(--muted); font-size:.71rem; }.chat-topbar i { width:6px; height:6px; border-radius:50%; background:#79c992; }.more-button { margin-left:auto; border:0; color:var(--muted); background:transparent; font-size:1.1rem; letter-spacing:2px; cursor:pointer; }.chat-messages { flex:1; overflow-y:auto; padding:20px; }.welcome-message { display:grid; place-items:center; height:100%; min-height:210px; color:var(--muted); text-align:center; }.welcome-message span { font-size:1.8rem; color:var(--rose); }.welcome-message p { max-width:220px; margin:11px 0 0; font-size:.86rem; line-height:1.55; }.message-bubble { width:max-content; max-width:76%; margin:0 0 12px auto; padding:11px 14px; border-radius:17px 17px 4px 17px; color:#fff; background:linear-gradient(135deg,#d57d82,#b55361); box-shadow:0 5px 13px rgba(181,83,97,.16); font-size:.9rem; line-height:1.45; word-break:break-word; animation:message-in .22s ease-out; }.composer { position:relative; display:flex; align-items:center; gap:9px; padding:12px; border-top:1px solid var(--line); background:rgba(255,251,250,.88); }.composer input { min-width:0; flex:1; height:45px; border:1px solid transparent; border-radius:14px; outline:0; padding:0 10px; color:var(--ink); background:#f8f1ef; font:500 .9rem "DM Sans",sans-serif; transition:border .16s ease; }.composer input:focus { border-color:rgba(199,111,119,.45); }.emoji-wrap { position:relative; }.emoji-button,.send-button { display:grid; width:42px; height:42px; place-items:center; border:0; cursor:pointer; }.emoji-button { border-radius:13px; color:var(--muted); background:transparent; font-size:1.25rem; }.emoji-button:hover { color:var(--rose-deep); background:var(--rose-soft); }.send-button { flex:0 0 auto; border-radius:50%; color:#fff; background:var(--rose-deep); font-size:1.2rem; transition:transform .16s ease,background .16s ease; }.send-button:hover { transform:scale(1.07); background:#8f3d48; }.emoji-picker { position:absolute; z-index:5; bottom:52px; left:-5px; display:grid; grid-template-columns:repeat(4,1fr); gap:3px; width:210px; padding:9px; border:1px solid rgba(89,59,62,.1); border-radius:17px; background:#fffdfc; box-shadow:0 14px 34px rgba(72,41,44,.18); }.emoji-picker button { border:0; border-radius:9px; padding:7px; background:transparent; font-size:1.2rem; cursor:pointer; }.emoji-picker button:hover { background:var(--rose-soft); }@keyframes message-in { from { opacity:0; transform:translateY(7px) scale(.98); } to { opacity:1; transform:translateY(0) scale(1); } }
@media (max-width:720px) { .site-header { width:calc(100% - 32px); height:66px; }.photo { width:clamp(90px,27vw,146px); border-width:5px; }.photo-a { top:13%; left:-5%; }.photo-b { bottom:11%; left:0; }.photo-c { top:15%; right:-7%; }.photo-d { right:0; bottom:8%; }.photo-e { top:66%; left:10%; width:94px; }.home-content { width:calc(100% - 32px); padding:38px 22px; border-radius:24px; }.home-content h1 { font-size:clamp(2.65rem,13vw,4.4rem); }.message-view,.chat-view,.journal-view { width:calc(100% - 26px); padding-top:78px; }.back-button { top:18px; }.message-card { padding:42px 24px; }.chat-card { height:calc(100svh - 106px); min-height:420px; border-radius:22px; }.chat-topbar { padding:15px; }.chat-messages { padding:15px; }.composer { padding:9px; }.emoji-picker { left:-8px; } }

.button-chat { min-width:174px; min-height:50px; border:1px solid rgba(168,82,92,.28); color:var(--rose-deep); background:rgba(255,255,255,.7); box-shadow:0 7px 18px rgba(137,76,80,.08); }
.button-chat:hover { border-color:rgba(168,82,92,.52); background:#fff; box-shadow:0 11px 22px rgba(137,76,80,.14); }
.button-icon { display:grid; width:19px; height:19px; place-items:center; border:1.5px solid currentColor; border-radius:50%; font-size:.84rem; line-height:1; }
.journal-link { display:inline-flex; align-items:center; gap:8px; margin-top:3px; border:0; padding:8px 10px; color:var(--muted); background:transparent; font:600 .79rem "DM Sans",sans-serif; cursor:pointer; transition:color .18s ease,transform .18s ease; }
.journal-link:hover { color:var(--rose-deep); transform:translateY(-1px); }
.journal-link span { color:var(--rose); font-size:1rem; }
.journal-view { width:min(920px,calc(100% - 40px)); align-items:center; justify-content:center; margin:auto; padding:90px 0 34px; }
.journal-card { width:min(680px,100%); padding:clamp(30px,6vw,58px); border:1px solid rgba(255,255,255,.83); border-radius:30px; background:rgba(255,253,251,.82); box-shadow:0 25px 60px rgba(112,65,66,.12); backdrop-filter:blur(18px); }
.journal-heading { display:flex; align-items:center; gap:17px; }
.journal-mark { display:grid; flex:0 0 auto; width:48px; height:48px; place-items:center; border-radius:16px; color:#fff; background:linear-gradient(145deg,#d98991,#ad515c); box-shadow:0 9px 18px rgba(181,83,97,.22); }
.journal-card h2 { margin:6px 0 0; font:600 clamp(2rem,5vw,3.25rem)/.98 "Playfair Display",serif; letter-spacing:-.045em; }
.journal-card h2 em { color:var(--rose-deep); }
.journal-intro { margin:23px 0 20px; color:var(--muted); font-size:.92rem; line-height:1.55; }
.similarities-list { display:grid; gap:9px; margin:0; padding:0; list-style:none; }
.similarities-list li { display:grid; grid-template-columns:52px 1fr; gap:13px; align-items:center; min-height:58px; padding:10px 13px; border:1px solid rgba(89,59,62,.09); border-radius:15px; background:rgba(255,255,255,.63); }
.similarities-list span { color:var(--rose); font-size:.7rem; font-weight:700; letter-spacing:.04em; }
.similarities-list p { margin:0; color:#4a3b3d; font-size:.88rem; font-weight:500; line-height:1.35; }
@media (max-width:720px) { .journal-view { width:calc(100% - 26px); padding-top:78px; }.journal-card { padding:28px 19px; border-radius:23px; }.journal-heading { gap:12px; }.journal-mark { width:43px; height:43px; border-radius:14px; }.journal-intro { margin-top:19px; }.similarities-list li { grid-template-columns:46px 1fr; gap:9px; padding:10px; }.similarities-list p { font-size:.83rem; } }

.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; clip-path:inset(50%); }
.home-content h1 { max-width:100%; overflow-wrap:anywhere; text-wrap:balance; font-size:clamp(2.55rem,5.6vw,4.15rem); }
.button-chat { position:relative; min-width:210px; min-height:54px; border:1px solid rgba(168,82,92,.36); border-radius:18px; color:#9f4d58; background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(255,239,237,.8)); box-shadow:0 12px 24px rgba(137,76,80,.13); }
.button-chat::after { content:""; position:absolute; inset:4px; border:1px solid rgba(199,111,119,.12); border-radius:14px; pointer-events:none; }
.button-chat:hover { border-color:rgba(168,82,92,.58); background:#fff; }
.journal-link { min-height:45px; margin-top:4px; border:1px solid rgba(89,59,62,.14); border-radius:14px; padding:0 17px; color:#72575a; background:rgba(255,255,255,.64); box-shadow:0 7px 17px rgba(91,57,61,.07); font-size:.82rem; }
.journal-link:hover { border-color:rgba(168,82,92,.38); background:#fff; box-shadow:0 10px 20px rgba(91,57,61,.11); }
.message-row { display:flex; flex-direction:column; width:100%; margin:0 0 14px; }
.message-author { margin:0 7px 4px; color:var(--muted); font-size:.69rem; font-weight:700; }
.message-row .message-bubble { margin:0; }
.message-egor { align-items:flex-end; }
.message-egor .message-author { color:#b15661; }
.message-egor .message-bubble { border-radius:18px 18px 4px 18px; color:#fff; background:linear-gradient(135deg,#d57d82,#b55361); box-shadow:0 5px 13px rgba(181,83,97,.16); }
.message-kukolka { align-items:flex-start; }
.message-kukolka .message-author { color:#8f7679; }
.message-kukolka .message-bubble { border:1px solid rgba(89,59,62,.09); border-radius:18px 18px 18px 4px; color:#5a4649; background:#f7eceb; box-shadow:none; }
.message-natakha { align-items:flex-start; }
.message-natakha .message-author { color:#5e8fa6; }
.message-natakha .message-bubble { border:1px solid rgba(78,137,166,.16); border-radius:18px 18px 18px 4px; color:#365c70; background:linear-gradient(135deg,#edf8ff,#e1f1fa); box-shadow:0 5px 13px rgba(83,143,170,.08); }
.message-natakha .message-meta { color:#7199ac; }
.send-button:disabled { opacity:.55; cursor:wait; transform:none; }

/* Зрозуміла іконка надсилання: легкий паперовий літачок. */
.send-button { background:linear-gradient(145deg,#cb707b,#a94756); box-shadow:0 7px 16px rgba(174,79,90,.24); transition:transform .16s ease,background .16s ease,box-shadow .16s ease; }
.send-button svg { width:19px; height:19px; margin:0 0 1px 1px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; transition:transform .16s ease; }
.send-button:hover { background:#8f3d48; box-shadow:0 9px 20px rgba(143,61,72,.32); }
.send-button:hover svg { transform:translate(1px,-1px); }
.send-button:active svg { transform:translate(2px,-2px) scale(.94); }

/* Composer spoiler drafting — the selected words stay readable until the message is sent. */
.chat-editor-wrap { position:relative; min-width:0; flex:1; }
.chat-input { display:block; width:100%; min-height:45px; max-height:104px; overflow-x:hidden; overflow-y:auto; border:1px solid transparent; border-radius:14px; outline:0; padding:12px 10px; color:var(--ink); background:#f8f1ef; font:500 .9rem/1.35 "DM Sans",sans-serif; overflow-wrap:anywhere; white-space:pre-wrap; scrollbar-width:thin; transition:border .16s ease,box-shadow .16s ease; }
.chat-input:empty::before { content:attr(data-placeholder); color:#ac999b; pointer-events:none; }
.chat-input:focus { border-color:rgba(199,111,119,.45); box-shadow:0 0 0 3px rgba(199,111,119,.07); }
.chat-input[aria-invalid="true"] { border-color:rgba(190,72,87,.7); box-shadow:0 0 0 3px rgba(190,72,87,.1); }
.composer-spoiler { border:1px dashed rgba(137,92,155,.42); border-radius:7px; padding:1px 3px; color:#694b78; background:linear-gradient(135deg,rgba(235,220,246,.96),rgba(255,232,238,.96)); box-decoration-break:clone; -webkit-box-decoration-break:clone; box-shadow:inset 0 1px rgba(255,255,255,.75); }
.spoiler-draft-action { position:absolute; z-index:12; right:0; bottom:calc(100% + 8px); min-height:31px; border:1px solid rgba(140,92,156,.22); border-radius:10px; padding:0 10px; color:#714f7d; background:linear-gradient(135deg,#fffafd,#f3e8f8); box-shadow:0 8px 18px rgba(98,62,111,.16); font:800 .67rem "DM Sans",sans-serif; cursor:pointer; animation:spoiler-tool-in .16s ease-out; }
.spoiler-draft-action:hover { background:#fff; transform:translateY(-1px); }
@keyframes spoiler-tool-in { from { opacity:0; transform:translateY(4px) scale(.97); } to { opacity:1; transform:translateY(0) scale(1); } }
@media (max-width:720px) { .chat-input { min-height:44px; max-height:94px; padding:11px 10px; font-size:16px; } .spoiler-draft-action { right:2px; bottom:calc(100% + 6px); min-height:30px; font-size:.64rem; } }
@media (prefers-reduced-motion:reduce) { .chat-input,.spoiler-draft-action { transition:none; animation:none; } }

/* Voice recording — the composer becomes a compact, calm recording panel. */
.voice-composer { display:flex; flex:0 0 auto; align-items:center; gap:10px; min-height:68px; padding:10px 12px; border-top:1px solid var(--line); background:linear-gradient(105deg,rgba(255,249,248,.98),rgba(255,243,242,.92)); animation:voice-panel-in .18s ease-out both; }
.voice-cancel,.voice-action { display:grid; flex:0 0 auto; place-items:center; border:0; cursor:pointer; transition:transform .16s ease,filter .16s ease,background .16s ease; }
.voice-cancel { width:38px; height:38px; border-radius:13px; color:#a1656d; background:rgba(255,255,255,.78); font:400 1.55rem/1 "DM Sans",sans-serif; }.voice-cancel:hover { color:#a64452; background:#fff0ef; transform:scale(1.04); }
.voice-recording-copy { display:flex; min-width:0; flex:1; align-items:center; gap:10px; }.voice-recording-copy > div { display:grid; min-width:0; gap:2px; }.voice-recording-copy strong { overflow:hidden; color:#8d525a; font-size:.8rem; text-overflow:ellipsis; white-space:nowrap; }.voice-recording-copy span:not(.voice-wave) { color:#ad8589; font-size:.72rem; font-weight:700; }
.voice-recording-copy small { overflow:hidden; color:#aa8b8f; font-size:.61rem; font-weight:600; line-height:1.18; text-overflow:ellipsis; white-space:nowrap; }
.voice-wave { display:flex; width:38px; height:27px; flex:0 0 auto; align-items:center; justify-content:center; gap:3px; }.voice-wave i { display:block; width:3px; height:8px; border-radius:99px; background:#cd6d78; animation:voice-wave 1s ease-in-out infinite; }.voice-wave i:nth-child(2) { height:17px; animation-delay:.13s; }.voice-wave i:nth-child(3) { height:23px; animation-delay:.26s; }.voice-wave i:nth-child(4) { height:15px; animation-delay:.39s; }.voice-wave i:nth-child(5) { height:9px; animation-delay:.52s; }
.voice-action { min-width:94px; height:39px; gap:6px; border-radius:13px; padding:0 12px; color:#fff; background:linear-gradient(145deg,#cf747e,#af505d); box-shadow:0 7px 15px rgba(174,79,90,.2); font:700 .75rem "DM Sans",sans-serif; }.voice-action svg { width:16px; height:16px; fill:currentColor; }.voice-action:hover { filter:brightness(1.04); transform:translateY(-1px); }.voice-action:disabled,.voice-cancel:disabled { opacity:.58; cursor:wait; transform:none; }
.voice-composer[data-state="preview"] .voice-wave i { animation-play-state:paused; background:#8f9d80; }.voice-composer[data-state="preview"] .voice-action svg { fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; }.voice-composer[data-state="sending"] .voice-wave i { background:#aa9da0; animation-duration:.55s; }
.voice-composer[data-locked="true"] { border-top-color:rgba(104,154,117,.23); background:linear-gradient(105deg,rgba(247,255,248,.98),rgba(240,250,243,.94)); }.voice-composer[data-locked="true"] .voice-wave i { background:#5f9f75; animation-duration:.8s; }.voice-composer[data-locked="true"] .voice-recording-copy strong { color:#4d7b5c; }.voice-composer[data-locked="true"] .voice-action { background:linear-gradient(145deg,#72af84,#4d9168); }.voice-composer[data-locked="true"] .voice-action svg { fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; }.voice-composer[data-cancelling="true"] { background:linear-gradient(105deg,rgba(255,245,244,.98),rgba(255,235,232,.96)); }.voice-composer[data-cancelling="true"] .voice-wave i { background:#cc6270; animation-duration:.5s; }.voice-composer[data-cancelling="true"] .voice-recording-copy strong { color:#b44c5b; }
.voice-notice { flex:0 0 auto; margin:0; border-top:1px solid rgba(181,83,97,.13); padding:8px 14px; color:#ad5661; background:#fff5f3; font-size:.74rem; font-weight:700; text-align:center; }
/* Video circles — capture stays deliberately separate from the chat layout. */
.circle-button { display:grid; width:42px; height:42px; flex:0 0 auto; place-items:center; border:0; border-radius:13px; color:#bb5d6b; background:transparent; cursor:pointer; transition:background .16s ease,color .16s ease,transform .16s ease; touch-action:none; }.circle-button svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.7; }.circle-button:hover { color:#9f4654; background:#fff0ef; transform:translateY(-1px); }.circle-button:active { transform:scale(.92); }.circle-recorder { position:fixed; z-index:140; inset:0; display:grid; place-items:center; padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left)); background:rgba(53,31,39,.46); backdrop-filter:blur(13px); -webkit-backdrop-filter:blur(13px); }.circle-recorder-backdrop { position:absolute; inset:0; }.circle-recorder-panel { position:relative; width:min(420px,100%); overflow:hidden; border:1px solid rgba(255,255,255,.88); border-radius:30px; padding:22px; background:radial-gradient(circle at 50% 0%,rgba(244,181,192,.3),transparent 38%),linear-gradient(145deg,rgba(255,253,252,.98),rgba(255,240,238,.96)); box-shadow:0 26px 75px rgba(73,39,48,.32),inset 0 1px rgba(255,255,255,.9); }.circle-recorder-head { display:flex; min-height:48px; align-items:center; justify-content:space-between; gap:12px; }.circle-recorder-head .eyebrow { margin:0 0 4px; }.circle-recorder-head h2 { margin:0; color:#563a41; font:600 clamp(1.45rem,5.5vw,1.95rem)/1 "Playfair Display",serif; letter-spacing:-.045em; }.circle-recorder-head h2 em { color:#ba5d6b; font-style:italic; }.circle-recorder-close { display:grid; width:40px; height:40px; flex:0 0 auto; place-items:center; border:1px solid rgba(191,96,110,.18); border-radius:50%; color:#a55865; background:rgba(255,255,255,.68); font:400 1.55rem/1 "DM Sans",sans-serif; cursor:pointer; transition:transform .16s ease,background .16s ease; }.circle-recorder-close:hover { transform:rotate(6deg) scale(1.04); background:#fff3f2; }.circle-live-stage { position:relative; display:grid; width:min(276px,70vw); aspect-ratio:1; place-items:center; margin:25px auto 18px; border-radius:50%; isolation:isolate; background:#d37a85; box-shadow:0 18px 38px rgba(167,72,90,.25),inset 0 0 0 7px rgba(255,255,255,.55); overflow:hidden; }.circle-live-video { position:absolute; z-index:1; width:100%; height:100%; object-fit:cover; background:linear-gradient(145deg,#d9959c,#aa5967); }.circle-live-stage.is-front-camera .circle-live-video { transform:scaleX(-1); }.circle-live-shade { position:absolute; z-index:2; inset:0; background:linear-gradient(180deg,rgba(30,16,20,.26),transparent 34%,transparent 60%,rgba(30,16,20,.35)); pointer-events:none; }.circle-live-ring { position:absolute; z-index:4; inset:5px; border:3px solid rgba(255,255,255,.78); border-radius:50%; pointer-events:none; }.circle-live-ring span { position:absolute; inset:-3px; border:3px solid transparent; border-top-color:#fff; border-right-color:#fff; border-radius:50%; opacity:0; }.circle-live-stage[data-state="recording"] .circle-live-ring span { opacity:1; animation:circle-recording-spin 1.15s linear infinite; }.circle-live-stage[data-state="recording"] { box-shadow:0 0 0 8px rgba(211,91,106,.16),0 18px 38px rgba(167,72,90,.3),inset 0 0 0 7px rgba(255,255,255,.55); }.circle-live-timer { position:absolute; z-index:5; top:16px; left:50%; margin:0; padding:5px 9px; border-radius:999px; color:#fff; background:rgba(54,29,35,.43); font-size:.72rem; font-weight:800; letter-spacing:.03em; transform:translateX(-50%); }.circle-live-status { position:absolute; z-index:5; right:13px; bottom:15px; left:13px; margin:0; color:#fff; font-size:.7rem; font-weight:800; text-align:center; text-shadow:0 1px 3px rgba(53,28,35,.35); }.circle-recorder-actions { display:grid; grid-template-columns:44px minmax(0,1fr) auto; align-items:center; gap:10px; }.circle-tool-button { display:grid; width:42px; height:42px; place-items:center; border:1px solid rgba(190,101,114,.18); border-radius:14px; color:#ae5a68; background:rgba(255,255,255,.72); cursor:pointer; transition:transform .16s ease,background .16s ease; }.circle-tool-button svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; }.circle-tool-button:hover:not(:disabled) { background:#fff1ef; transform:rotate(-8deg); }.circle-tool-button:disabled { opacity:.42; cursor:not-allowed; }.circle-recorder-actions p { margin:0; color:#987f84; font-size:.67rem; font-weight:700; line-height:1.35; }.circle-redo-button { min-height:38px; border:0; border-radius:12px; padding:0 12px; color:#fff; background:linear-gradient(135deg,#d07882,#ae505e); box-shadow:0 8px 14px rgba(178,77,93,.18); font:800 .68rem "DM Sans",sans-serif; cursor:pointer; }.circle-redo-button:hover { filter:brightness(1.04); transform:translateY(-1px); }body.circle-recorder-open { overflow:hidden; }@keyframes circle-recording-spin { to { transform:rotate(360deg); } }@media (max-width:520px) { .circle-recorder { align-items:center; padding:16px; }.circle-recorder-panel { border-radius:26px; padding:19px 16px max(19px,env(safe-area-inset-bottom)); }.circle-live-stage { width:min(282px,76vw); margin:23px auto 17px; }.circle-recorder-actions { grid-template-columns:42px minmax(0,1fr); }.circle-redo-button { grid-column:1 / -1; width:100%; }.circle-recorder-actions p { padding-left:2px; } }
@keyframes voice-panel-in { from { opacity:0; transform:translateY(7px); } to { opacity:1; transform:translateY(0); } }
@keyframes voice-wave { 0%,100% { transform:scaleY(.55); opacity:.55; } 50% { transform:scaleY(1.05); opacity:1; } }
@media (max-width:480px) { .voice-composer { gap:7px; padding:9px; }.voice-cancel { width:35px; }.voice-action { min-width:88px; padding:0 10px; }.voice-recording-copy { gap:6px; }.voice-wave { width:32px; }.voice-recording-copy strong { font-size:.75rem; } }
@media (max-width:720px) { .home-content h1 { font-size:clamp(2.45rem,11.3vw,3.5rem); }.button-chat { min-width:205px; }.journal-link { max-width:100%; font-size:.78rem; } }

.chat-avatar { background:linear-gradient(145deg,#e59ba0,#b65360); }
.chat-avatar svg { width:21px; height:21px; fill:none; stroke:#fff; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.75; }
@media (max-width:720px) {
  .site-header { background:linear-gradient(180deg,rgba(255,248,245,.97),rgba(255,248,245,.78)); backdrop-filter:blur(10px); }
  .message-view,.chat-view,.journal-view { padding-top:126px; }
  .back-button { top:78px; left:4px; }
  .chat-card { height:calc(100svh - 154px); }
}

@media (max-width:720px) {
  /* Internal-page navigation must always sit below the fixed Kukolka header. */
  main .message-view .back-button,
  main .chat-view .back-button,
  main .journal-view .back-button { top:82px !important; left:6px !important; z-index:2; }
  main .message-view,
  main .chat-view,
  main .journal-view { padding-top:132px; }
}

/* Floating site bar */
.site-header { top:18px; height:62px; padding:0 18px; border:1px solid rgba(255,255,255,.78); border-radius:19px; background:linear-gradient(105deg,rgba(255,255,255,.9),rgba(255,243,242,.83)); box-shadow:0 12px 32px rgba(105,58,62,.11),inset 0 1px rgba(255,255,255,.8); backdrop-filter:blur(16px); }
.brand { display:inline-flex; align-items:center; gap:8px; border:1px solid rgba(199,111,119,.18); border-radius:12px; padding:8px 11px; color:#984e58; background:rgba(255,255,255,.54); font-family:"DM Sans",sans-serif; font-size:.82rem; font-weight:700; letter-spacing:0; transition:background .16s ease,transform .16s ease; }
.brand:hover { background:#fff; transform:translateX(-1px); }.brand::before { display:none; }.brand > span { font-size:1.05rem; line-height:.7; }
.header-note { display:inline-flex; align-items:center; gap:5px; padding:7px 10px; border:1px solid rgba(199,111,119,.14); border-radius:999px; color:#916d71; background:rgba(255,255,255,.48); font-size:.76rem; }
@media (max-width:720px) {
  .site-header { top:10px; width:calc(100% - 28px); height:56px; padding:0 14px; border-radius:17px; }
  .brand { gap:6px; padding:7px 9px; font-size:.78rem; }
  .header-note { padding:6px 8px; font-size:.7rem; }
}

.day-divider { display:flex; align-items:center; gap:10px; margin:6px 0 15px; color:#b29a9d; font-size:.69rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.day-divider::before,.day-divider::after { content:""; height:1px; flex:1; background:rgba(111,75,79,.1); }
.message-meta { display:flex; align-items:center; gap:4px; margin:4px 7px 0; color:#ad9699; font-size:.65rem; font-weight:600; line-height:1; }
.message-egor .message-meta { color:#ba6a73; }
.message-status { color:#c87780; font-size:.61rem; font-weight:700; letter-spacing:0; }
.message-status.is-read { color:#a95a64; }
/* Sent spoilers are actual buttons: closed text is never painted, then opens locally on demand. */
.message-spoiler { position:relative; isolation:isolate; display:inline-block; min-width:2.9em; overflow:hidden; border:0; border-radius:8px; padding:2px 4px; color:transparent; background:linear-gradient(135deg,rgba(123,83,143,.83),rgba(190,102,133,.78)); box-shadow:inset 0 1px rgba(255,255,255,.34),0 2px 5px rgba(96,57,103,.12); font:inherit; line-height:inherit; vertical-align:baseline; cursor:pointer; user-select:none; transition:background .2s ease,color .2s ease,box-shadow .2s ease,transform .16s ease; }
.message-spoiler:not(.is-revealed) { animation:spoiler-mist-breathe 3.35s ease-in-out infinite; }
.message-spoiler:not(.is-revealed)::before { position:absolute; z-index:0; top:-60%; left:-31%; width:170%; height:220%; border-radius:50%; background:radial-gradient(ellipse at 20% 62%,rgba(255,255,255,.82) 0 11%,transparent 37%),radial-gradient(ellipse at 62% 34%,rgba(255,229,244,.72) 0 14%,transparent 42%),radial-gradient(ellipse at 88% 70%,rgba(222,212,255,.65) 0 10%,transparent 37%); content:""; filter:blur(4px); opacity:1; animation:spoiler-mist-drift 3.8s ease-in-out infinite alternate; pointer-events:none; }
.message-spoiler:not(.is-revealed)::after { position:absolute; z-index:1; inset:0; border:1px solid rgba(255,255,255,.34); border-radius:inherit; background:linear-gradient(110deg,rgba(255,255,255,.05) 14%,rgba(255,255,255,.56) 47%,rgba(255,255,255,.06) 80%),linear-gradient(135deg,rgba(137,91,157,.22),rgba(246,173,193,.14)); background-position:145% 50%,0 0; background-size:210% 100%,100% 100%; box-shadow:inset 0 1px rgba(255,255,255,.28),inset 0 -7px 13px rgba(67,39,87,.12); content:""; opacity:.98; pointer-events:none; animation:spoiler-mist-shine 4.1s ease-in-out infinite; }
.message-bubble.has-only-spoiler { min-width:min(100%,172px); text-align:center; }.message-bubble.has-only-spoiler .message-spoiler { min-width:100%; padding:7px 10px; }.message-bubble.has-only-spoiler .message-spoiler:not(.is-revealed)::after { inset:0; display:grid; place-items:center; border-radius:8px; color:rgba(255,255,255,.98); background:linear-gradient(108deg,rgba(255,255,255,.03) 18%,rgba(255,222,244,.34) 47%,rgba(255,255,255,.03) 76%),linear-gradient(135deg,rgba(104,67,136,.94),rgba(191,84,120,.92)); background-position:145% 50%,0 0; background-size:215% 100%,100% 100%; box-shadow:inset 0 1px rgba(255,255,255,.3),inset 0 -9px 16px rgba(59,31,81,.17); content:"Приховане повідомлення"; font:800 .68rem/1 "DM Sans",sans-serif; letter-spacing:.02em; text-shadow:0 1px 8px rgba(72,35,69,.26); animation:spoiler-full-mist 4.3s ease-in-out infinite; }
.message-spoiler:not(.is-revealed):hover { background:linear-gradient(135deg,rgba(115,74,135,.86),rgba(180,91,125,.83)); transform:translateY(-1px); }
.message-spoiler:focus-visible { outline:3px solid rgba(145,91,158,.32); outline-offset:2px; }
.message-spoiler.is-revealed { color:inherit; background:rgba(255,255,255,.17); box-shadow:inset 0 1px rgba(255,255,255,.21); cursor:default; user-select:text; animation:spoiler-reveal .26s cubic-bezier(.2,.75,.2,1) both; }
.message-kukolka .message-spoiler.is-revealed { color:#684f5d; background:linear-gradient(135deg,rgba(233,212,232,.72),rgba(255,235,238,.72)); }.message-natakha .message-spoiler.is-revealed { color:#365c70; background:linear-gradient(135deg,rgba(213,236,248,.75),rgba(237,247,255,.7)); }
@keyframes spoiler-mist-drift { from { transform:translate3d(-9%,5%,0) scale(1); } to { transform:translate3d(10%,-7%,0) scale(1.14); } }
@keyframes spoiler-mist-breathe { 0%,100% { box-shadow:inset 0 1px rgba(255,255,255,.34),0 2px 5px rgba(96,57,103,.12); } 50% { box-shadow:inset 0 1px rgba(255,255,255,.58),0 5px 16px rgba(139,75,135,.34),0 0 0 1px rgba(255,223,246,.22); } }
@keyframes spoiler-mist-shine { 0%,23%,100% { background-position:145% 50%,0 0; opacity:.74; } 54% { background-position:-45% 50%,0 0; opacity:1; } }
@keyframes spoiler-full-mist { 0%,22%,100% { background-position:145% 50%,0 0; opacity:.9; } 54% { background-position:-45% 50%,0 0; opacity:1; } }
@keyframes spoiler-reveal { from { opacity:.25; transform:scale(.94); filter:blur(3px); } to { opacity:1; transform:scale(1); filter:blur(0); } }
.message-row { animation:message-arrive .24s cubic-bezier(.2,.8,.2,1) both; }
.message-row.is-grouped { margin-top:0; margin-bottom:7px; }
.message-row { position:relative; -webkit-touch-callout:none; user-select:none; }
.message-row.is-selected { filter:brightness(.96); transform:scale(.985); transition:transform .16s ease,filter .16s ease; }
.history-loader { display:flex; align-items:center; justify-content:center; min-height:30px; margin:0 0 11px; color:#ad9295; font-size:.68rem; font-weight:700; text-align:center; }.history-loader::before { width:7px; height:7px; margin-right:7px; border:1.5px solid rgba(188,99,110,.3); border-top-color:#bc636e; border-radius:50%; content:""; }.history-loader.is-loading::before { animation:history-spin .7s linear infinite; }@keyframes history-spin { to { transform:rotate(360deg); } }
.message-delete-button { position:absolute; z-index:4; top:-7px; display:grid; width:30px; height:30px; place-items:center; border:1px solid rgba(184,78,89,.28); border-radius:50%; padding:0; color:#fff; background:linear-gradient(145deg,#dc7b82,#b74d5c); box-shadow:0 7px 15px rgba(163,66,78,.28); font:500 1.55rem/1 "DM Sans",sans-serif; cursor:pointer; animation:message-delete-in .16s ease-out both; }.message-delete-button:hover { background:#a84251; transform:scale(1.08); }.message-delete-button:disabled { opacity:.58; cursor:wait; transform:none; }.message-egor .message-delete-button { right:0; }.message-kukolka .message-delete-button,.message-natakha .message-delete-button { left:0; }@keyframes message-delete-in { from { opacity:0; transform:scale(.7); } to { opacity:1; transform:scale(1); } }
.reply-quote { display:flex; flex-direction:column; gap:2px; width:min(100%,260px); margin:0 0 6px; border-left:3px solid rgba(199,111,119,.72); border-radius:8px; padding:6px 9px; background:rgba(255,239,237,.72); color:#8e6f73; cursor:pointer; }
.message-bubble .reply-quote { width:100%; margin:0 0 7px; }
.reply-quote strong { color:#b35b66; font-size:.69rem; line-height:1.1; }.reply-quote span { overflow:hidden; font-size:.73rem; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
.message-egor .reply-quote { align-self:flex-end; border-left:0; border-right:3px solid rgba(255,255,255,.65); background:rgba(255,255,255,.15); color:rgba(255,255,255,.86); }.message-egor .reply-quote strong { color:#fff; }
.reply-composer { display:flex; align-items:center; justify-content:space-between; gap:10px; border-top:1px solid var(--line); padding:8px 12px; background:rgba(255,248,247,.97); }
.reply-composer > div { display:flex; min-width:0; flex:1; flex-direction:column; gap:2px; border-left:3px solid var(--rose); padding-left:9px; }.reply-composer strong { color:#ae5661; font-size:.71rem; }.reply-composer span { overflow:hidden; color:var(--muted); font-size:.76rem; text-overflow:ellipsis; white-space:nowrap; }
.reply-composer button { display:grid; width:28px; height:28px; flex:0 0 auto; place-items:center; border:0; border-radius:50%; color:#a37c80; background:transparent; font-size:1.35rem; line-height:1; cursor:pointer; }.reply-composer button:hover { color:var(--rose-deep); background:var(--rose-soft); }
.typing-indicator { display:flex; align-items:center; gap:4px; width:max-content; margin:4px 0 10px; padding:9px 12px; border:1px solid rgba(89,59,62,.08); border-radius:15px 15px 15px 4px; color:#9d7f83; background:#f8eeee; font-size:.72rem; font-weight:600; animation:message-arrive .2s ease-out; }
.typing-indicator span { margin-right:2px; }
.typing-indicator i { width:5px; height:5px; border-radius:50%; background:#c4777f; animation:typing-dot 1s infinite ease-in-out; }
.typing-indicator i:nth-of-type(2) { animation-delay:.15s; }.typing-indicator i:nth-of-type(3) { animation-delay:.3s; }
@keyframes message-arrive { from { opacity:0; transform:translateY(7px) scale(.985); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes typing-dot { 0%,60%,100% { transform:translateY(0); opacity:.42; } 30% { transform:translateY(-3px); opacity:1; } }
@media (max-width:720px) {
  .chat-view { width:100% !important; padding-right:10px !important; padding-left:10px !important; }
  .chat-card { width:100%; height:calc(100svh - 150px); min-height:0; border-radius:25px; }
  .composer { padding:10px 10px calc(10px + env(safe-area-inset-bottom)); }
  .chat-messages { padding:17px 15px; }
}
@media (prefers-reduced-motion:reduce) { .message-spoiler,.message-spoiler::before,.message-spoiler::after { transition:none; animation:none; } }

/* Spoiler polishing — constrained widths keep the chat stable in PWA, Safari and narrow screens. */
.chat-view,.chat-card,.chat-topbar,.chat-messages,.composer,.chat-editor-wrap,.message-row,.message-bubble { min-width:0; max-width:100%; }
.chat-messages { overflow-x:hidden; overscroll-behavior-x:none; overscroll-behavior-y:contain; -webkit-overflow-scrolling:touch; touch-action:pan-y; }
.composer { isolation:isolate; overscroll-behavior-x:none; }.composer > * { min-width:0; }.chat-editor-wrap { max-width:100%; }
.chat-input { max-width:100%; overscroll-behavior:contain; overflow-wrap:anywhere; word-break:break-word; caret-color:#9f4d58; -webkit-user-select:text; user-select:text; -webkit-touch-callout:default; }
.composer-spoiler { max-width:100%; overflow-wrap:anywhere; word-break:break-word; }.message-bubble { overflow-wrap:anywhere; }.message-spoiler { max-width:100%; overflow-wrap:anywhere; word-break:break-word; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
@media (max-width:900px) {
  body.chat-open { max-width:100vw; overscroll-behavior-x:none; }
  body.chat-open .chat-view { max-width:100vw; overflow-x:clip; }
  body.chat-open .chat-card { min-width:0; overflow-x:hidden; }
  body.chat-open .chat-messages { scrollbar-gutter:stable; }
  body.chat-open.chat-keyboard-open,body.chat-open.chat-keyboard-open main,body.chat-open.chat-keyboard-open .chat-view { height:var(--chat-keyboard-height,100dvh); min-height:var(--chat-keyboard-height,100dvh); max-height:var(--chat-keyboard-height,100dvh); }
  body.chat-open.chat-keyboard-open .chat-view { padding-bottom:8px !important; }
}
@media (max-width:390px) {
  .composer { gap:3px; padding-right:7px; padding-left:7px; }
  .circle-button,.sticker-button,.photo-button,.send-button { width:38px; }
  .chat-input { padding-right:8px; padding-left:8px; }
  .spoiler-draft-action { max-width:calc(100vw - 116px); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
}
@media (prefers-reduced-motion:reduce) {
  .message-spoiler,.message-spoiler::before,.message-spoiler::after,.spoiler-draft-action,.message-row { scroll-behavior:auto; transition:none; animation:none; }
}

#chatPresence.is-typing { color:#b25a65; font-weight:700; }
#chatPresence.is-typing i { background:#d1727c; box-shadow:0 0 0 4px rgba(209,114,124,.14); animation:presence-pulse 1.1s ease-in-out infinite; }
@keyframes presence-pulse { 50% { transform:scale(1.22); opacity:.6; } }

.sticker-wrap { position:relative; }
.sticker-button { display:grid; width:42px; height:42px; place-items:center; border:0; border-radius:13px; color:#b35c67; background:transparent; cursor:pointer; transition:background .16s ease,transform .16s ease,color .16s ease; }
.sticker-button svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.65; }
.sticker-button:hover,.sticker-button[aria-expanded="true"] { color:#a94755; background:var(--rose-soft); transform:translateY(-1px); }
.sticker-picker { position:absolute; z-index:6; bottom:52px; left:-48px; display:flex; width:248px; flex-direction:column; gap:8px; padding:8px; border:1px solid rgba(89,59,62,.1); border-radius:17px; background:rgba(255,253,252,.98); box-shadow:0 14px 34px rgba(72,41,44,.18); }
.sticker-pack-tabs { display:flex; gap:5px; padding-bottom:7px; border-bottom:1px solid rgba(117,72,77,.1); }.sticker-pack-tab { display:flex; min-width:0; flex:1; align-items:center; justify-content:center; gap:5px; height:31px; overflow:hidden; border:1px solid transparent; border-radius:10px; padding:3px 6px; color:#94757a; background:transparent; font:700 .62rem/1 "DM Sans",sans-serif; cursor:pointer; transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease; }.sticker-pack-tab img { width:23px; height:23px; object-fit:contain; }.sticker-pack-tab:hover { background:#fff3f1; color:#ae5661; }.sticker-pack-tab.is-active { border-color:rgba(193,91,103,.2); color:#ad515c; background:linear-gradient(135deg,#fff6f4,#ffebe8); box-shadow:inset 0 1px rgba(255,255,255,.85); }.sticker-pack-tab:focus-visible,.sticker-pack-grid button:focus-visible { outline:2px solid rgba(193,91,103,.4); outline-offset:2px; }
.sticker-pack-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }.sticker-pack-grid button { position:relative; display:grid; min-height:74px; place-items:center; overflow:hidden; border:0; border-radius:11px; padding:4px 4px 18px; background:#fff4f2; cursor:pointer; transition:background .16s ease,transform .16s ease; }.sticker-pack-grid button:hover { background:#ffe6e2; transform:scale(1.05); }.sticker-pack-grid img { display:block; width:100%; height:100%; max-height:55px; object-fit:contain; }.sticker-grant-badge { position:absolute; right:4px; bottom:4px; max-width:calc(100% - 8px); overflow:hidden; border:1px solid rgba(177,85,99,.17); border-radius:999px; padding:2px 5px; color:#a74f5c; background:rgba(255,251,250,.92); box-shadow:0 2px 6px rgba(150,75,87,.08); font:800 .55rem/1 "DM Sans",sans-serif; letter-spacing:.01em; text-overflow:ellipsis; white-space:nowrap; pointer-events:none; }.sticker-grant-badge[data-kind="permanent"] { border-color:rgba(128,92,146,.16); color:#775787; background:rgba(250,246,252,.94); }
.message-sticker { width:min(172px,68vw); margin:0; line-height:0; filter:drop-shadow(0 7px 12px rgba(102,56,62,.12)); animation:sticker-pop .26s cubic-bezier(.2,.9,.2,1.2) both; }
.message-sticker img { display:block; width:100%; height:auto; max-height:172px; object-fit:contain; }
@keyframes sticker-pop { from { opacity:0; transform:scale(.82) rotate(-2deg); } to { opacity:1; transform:scale(1) rotate(0); } }

/* Mobile chat is a self-contained app screen: only the messages may scroll. */
@media (max-width:900px) {
  body.chat-open { position:fixed; inset:0; width:100%; overflow:hidden; overscroll-behavior:none; }
  body.chat-open main { height:100%; min-height:100%; }
  body.chat-open .chat-view { width:100% !important; height:100%; min-height:100%; margin:0; padding:86px 10px calc(10px + env(safe-area-inset-bottom)) !important; align-items:stretch; justify-content:stretch; }
  body.chat-open .chat-card { width:100%; max-width:none; height:100%; min-height:0; max-height:100%; border-radius:26px; }
  body.chat-open .chat-messages { min-height:0; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
  body.chat-open .composer { padding-bottom:calc(10px + env(safe-area-inset-bottom)); }
}
@media (max-width:720px) { .message-view,.journal-view { padding-top:96px; } }
@supports (height:100dvh) {
  @media (max-width:900px) {
    body.chat-open,body.chat-open main,body.chat-open .chat-view { height:100dvh; min-height:100dvh; }
  }
}

/* The landing screen keeps one stable size as mobile browser controls appear or hide. */
#homeView { height:100svh; min-height:100svh; max-height:100svh; overflow:hidden; }
.home-content { border-color:rgba(255,255,255,.58); background:rgba(255,252,250,.61); box-shadow:0 20px 65px rgba(112,65,66,.08); backdrop-filter:blur(9px); }
@media (max-width:720px) {
  #homeView { height:100svh; min-height:100svh; max-height:100svh; }
  .home-content { background:rgba(255,252,250,.57); backdrop-filter:blur(7px); }
}

/* iOS Safari zooms focused inputs below 16px, which makes the whole page appear to jump sideways. */
@media (max-width:900px) {
  html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
  body,main { width:100%; max-width:100%; overflow-x:clip; }
  .composer input { font-size:16px; }
}

/* Sign-in and presence */
.auth-button { appearance:none; display:inline-flex; min-height:35px; align-items:center; justify-content:center; gap:7px; border:1px solid rgba(188,91,104,.28); border-radius:999px; padding:0 14px; color:#fff; background:linear-gradient(135deg,#d98691 0%,#b95766 100%); font:700 .78rem/1 "DM Sans",sans-serif; letter-spacing:.01em; cursor:pointer; box-shadow:0 7px 16px rgba(177,77,93,.2),inset 0 1px rgba(255,255,255,.28); transition:transform .16s ease,box-shadow .16s ease,filter .16s ease; }
.auth-button span { font-size:1rem; line-height:1; transition:transform .16s ease; }.auth-button:hover { filter:brightness(1.03); transform:translateY(-1px); box-shadow:0 10px 20px rgba(177,77,93,.27),inset 0 1px rgba(255,255,255,.3); }.auth-button:hover span { transform:translateX(2px); }.auth-button:focus-visible { outline:3px solid rgba(212,125,137,.32); outline-offset:3px; }
.login-view { width:min(980px,calc(100% - 40px)); align-items:center; justify-content:center; margin:auto; padding:100px 0 34px; }
.login-card { display:grid; align-content:center; justify-items:center; width:min(700px,100%); min-height:min(660px,calc(100svh - 145px)); padding:clamp(44px,8vw,76px); border:1px solid rgba(255,255,255,.84); border-radius:34px; background:rgba(255,253,252,.8); box-shadow:0 25px 60px rgba(112,65,66,.12); text-align:center; backdrop-filter:blur(18px); }
.login-card h2 { margin:15px 0 0; font-family:"Playfair Display",serif; font-size:clamp(2.2rem,6vw,3.3rem); font-weight:600; line-height:.99; letter-spacing:-.045em; }
.login-card h2 em { color:var(--rose-deep); }
.login-card > p:not(.eyebrow):not(.login-hint) { margin:18px 0 24px; color:var(--muted); line-height:1.55; }
.login-card label { align-self:start; margin:0 0 8px; color:var(--muted); font-size:.78rem; font-weight:700; }
.login-card input { width:100%; height:49px; border:1px solid rgba(181,83,97,.2); border-radius:14px; outline:0; padding:0 14px; background:#fff; color:var(--ink); font:600 1rem "DM Sans",sans-serif; }
.login-card input:focus { border-color:rgba(181,83,97,.58); box-shadow:0 0 0 4px rgba(214,125,130,.12); }
.login-card #pinInput { letter-spacing:.22em; font-variant-numeric:tabular-nums; }
.login-card .button { width:100%; margin-top:18px; }
.login-hint { margin:15px 0 0; color:var(--muted); font-size:.73rem; }
.login-error { margin:10px 0 0; color:#ad515c; font-size:.8rem; font-weight:700; }
.chat-topbar i:not(.is-active) { background:#c9bdbd; }
.chat-topbar i.is-active { background:#79c992; }
@media (max-width:720px) { .auth-button { min-height:33px; padding:0 12px; font-size:.73rem; }.login-view { width:calc(100% - 26px); padding-top:84px; padding-bottom:14px; }.login-card { width:100%; min-height:calc(100svh - 98px); padding:42px 24px; border-radius:28px; } }

/* Photo upload queue — sending and final gallery styling are kept separate. */
.photo-input { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; border:0; opacity:0; }
.photo-button { display:grid; width:42px; height:42px; flex:0 0 auto; place-items:center; border:0; border-radius:13px; color:#b35c67; background:transparent; cursor:pointer; transition:background .16s ease,transform .16s ease; }
.photo-button:hover { background:var(--rose-soft); transform:translateY(-1px); }.photo-button svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.65; }
.photo-queue { display:flex; flex-shrink:0; align-items:center; gap:9px; overflow-x:auto; min-height:0; padding:10px 12px; border-top:1px solid var(--line); background:rgba(255,250,249,.88); scrollbar-width:thin; }
.photo-queue-item { position:relative; width:62px; height:62px; flex:0 0 auto; overflow:hidden; border:1px solid rgba(183,91,103,.16); border-radius:14px; background:#f6eeec; box-shadow:0 4px 12px rgba(109,61,66,.08); }.photo-queue-item img { display:block; width:100%; height:100%; object-fit:cover; }.photo-queue-item.is-uploading::after { content:""; position:absolute; inset:0; background:rgba(255,255,255,.56); }.photo-queue-item.is-uploading::before { content:""; position:absolute; z-index:1; top:50%; left:50%; width:20px; height:20px; margin:-10px; border:2px solid rgba(181,83,97,.28); border-top-color:#b55361; border-radius:50%; animation:photo-spin .75s linear infinite; }
.photo-queue-item img.photo-preview-pending { background:linear-gradient(135deg,#f8e8e7,#f2d4d4); }
.photo-queue-item button { position:absolute; top:3px; right:3px; display:grid; width:20px; height:20px; place-items:center; border:0; border-radius:50%; color:#fff; background:rgba(69,42,45,.68); font-size:1rem; line-height:1; cursor:pointer; }.photo-queue-item button:disabled { opacity:.5; cursor:wait; }.photo-queue-error { flex:0 0 auto; max-width:180px; margin:0; color:#ae5661; font-size:.72rem; line-height:1.3; }
.message-photo { position:relative; width:min(270px,72vw); margin:0; overflow:hidden; border:1px solid rgba(255,255,255,.76); border-radius:19px; background:#f5ebea; box-shadow:0 9px 20px rgba(102,56,62,.14); line-height:0; cursor:zoom-in; animation:message-in .25s ease-out; transition:transform .18s ease,box-shadow .18s ease; }.message-photo:hover { transform:translateY(-2px); box-shadow:0 13px 26px rgba(102,56,62,.2); }.message-photo:focus-visible { outline:3px solid rgba(202,101,114,.38); outline-offset:3px; }.message-photo::after { content:"↗"; position:absolute; right:8px; bottom:8px; display:grid; width:25px; height:25px; place-items:center; border:1px solid rgba(255,255,255,.48); border-radius:50%; color:#fff; background:rgba(60,39,42,.45); font:700 .83rem/1 "DM Sans",sans-serif; opacity:0; transform:translateY(3px); transition:opacity .18s ease,transform .18s ease; }.message-photo:hover::after,.message-photo:focus-visible::after { opacity:1; transform:translateY(0); }.message-photo img { display:block; width:100%; height:auto; max-height:340px; object-fit:cover; }

/* Video circles stay distinct from photos: a single, tappable round video note. */
.message-circle-wrap { width:min(230px,64vw); margin:0; animation:message-in .25s ease-out; }.message-circle { --circle-progress:0; position:relative; width:100%; aspect-ratio:1; overflow:hidden; border:3px solid rgba(255,255,255,.88); border-radius:50%; background:#d48892; box-shadow:0 10px 23px rgba(113,58,67,.17),0 0 0 1px rgba(184,90,103,.12); isolation:isolate; }.message-circle::before { position:absolute; z-index:3; inset:-4px; border-radius:inherit; background:conic-gradient(#fff calc(var(--circle-progress) * 1turn),rgba(255,255,255,.25) 0); content:""; mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 3px)); -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 3px)); pointer-events:none; }.circle-message-video { display:block; width:100%; height:100%; object-fit:cover; background:linear-gradient(145deg,#d8959e,#ad5a68); cursor:pointer; }.circle-message-play { position:absolute; z-index:4; top:50%; left:50%; display:grid; width:48px; height:48px; place-items:center; border:0; border-radius:50%; color:#bd5c68; background:rgba(255,255,255,.93); box-shadow:0 7px 18px rgba(71,36,43,.2); cursor:pointer; transform:translate(-50%,-50%); transition:transform .16s ease,opacity .16s ease; }.circle-message-play svg { width:21px; height:21px; fill:currentColor; }.message-circle.is-playing .circle-message-play { opacity:0; transform:translate(-50%,-50%) scale(.82); }.message-circle:hover .circle-message-play,.message-circle:focus-within .circle-message-play { opacity:1; transform:translate(-50%,-50%) scale(1); }.circle-message-duration { position:absolute; z-index:4; bottom:9px; left:50%; min-width:76px; border-radius:999px; padding:4px 8px; color:#fff; background:rgba(46,25,30,.58); font-size:.62rem; font-weight:800; line-height:1.15; text-align:center; text-shadow:0 1px 2px rgba(0,0,0,.2); transform:translateX(-50%); white-space:nowrap; }.circle-message-loading { position:absolute; z-index:5; top:10px; left:10px; width:14px; height:14px; border:2px solid rgba(255,255,255,.45); border-top-color:#fff; border-radius:50%; animation:history-spin .7s linear infinite; }.message-circle.has-error { opacity:.72; }.message-circle.has-error .circle-message-play { color:#a45a65; }.message-natakha .message-circle { border-color:rgba(233,248,255,.94); background:#9dc7da; box-shadow:0 10px 23px rgba(71,132,160,.14),0 0 0 1px rgba(78,137,166,.13); }.message-natakha .circle-message-play { color:#5488a1; }
@media (max-width:480px) { .message-circle-wrap { width:min(218px,67vw); }.circle-message-play { width:45px; height:45px; } }

/* A held circle acknowledges the gesture before the delete action appears. */
.message-circle { touch-action:manipulation; }
.message-circle.is-long-pressed { animation:circle-long-press .22s ease-out both; }
@keyframes circle-long-press { 50% { transform:scale(.975); filter:brightness(.94); } }
@media (prefers-reduced-motion:reduce) { .message-circle.is-long-pressed { animation:none; } }

/* Voice notes: compact player with a real seekable audio track. */
.message-voice-wrap { width:min(290px,78vw); margin:0; animation:message-in .24s ease-out; }.message-voice { display:flex; min-height:66px; align-items:center; gap:9px; border:1px solid rgba(89,59,62,.1); border-radius:19px 19px 19px 5px; padding:9px 10px; color:#694f54; background:linear-gradient(135deg,#fffafa,#f6e9e8); box-shadow:0 5px 13px rgba(103,59,64,.07); }.message-egor .message-voice { border-color:rgba(255,255,255,.22); border-radius:19px 19px 5px 19px; color:#fff; background:linear-gradient(135deg,#d77e86,#b55361); box-shadow:0 7px 17px rgba(181,83,97,.2); }.message-natakha .message-voice { border-color:rgba(78,137,166,.16); color:#365c70; background:linear-gradient(135deg,#edf8ff,#e1f1fa); box-shadow:0 5px 13px rgba(83,143,170,.08); }
.voice-play { display:grid; width:38px; height:38px; flex:0 0 auto; place-items:center; border:0; border-radius:50%; color:#a95360; background:#fff; box-shadow:0 4px 10px rgba(99,52,58,.1); cursor:pointer; transition:transform .16s ease,background .16s ease; }.voice-play:hover { transform:scale(1.06); background:#fff6f5; }.voice-play svg { width:17px; height:17px; fill:currentColor; }.message-egor .voice-play { color:#c2626e; background:rgba(255,255,255,.95); }.message-natakha .voice-play { color:#598da6; background:rgba(255,255,255,.9); }
.voice-audio { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.message-voice { position:relative; }.voice-loading { position:absolute; top:7px; left:51px; width:9px; height:9px; border:1.5px solid rgba(183,91,103,.3); border-top-color:#bc606b; border-radius:50%; animation:history-spin .7s linear infinite; }.message-egor .voice-loading { border-color:rgba(255,255,255,.34); border-top-color:#fff; }.message-natakha .voice-loading { border-color:rgba(86,142,168,.28); border-top-color:#5589a1; }
.voice-player-body { display:grid; min-width:0; flex:1; gap:5px; }.voice-waveform { position:relative; display:flex; width:100%; height:28px; align-items:center; gap:2px; overflow:hidden; border:0; padding:0; color:#bd6872; background:transparent; cursor:pointer; }.voice-waveform::before { position:absolute; z-index:0; left:0; right:0; top:50%; height:1px; content:""; background:currentColor; opacity:.13; }.voice-waveform > i { position:relative; z-index:1; display:block; width:3px; height:var(--voice-bar-height); flex:1; max-width:4px; border-radius:9px; background:currentColor; opacity:.38; transition:opacity .14s ease,background .14s ease,transform .14s ease; }.voice-waveform:hover > i { opacity:.56; }.voice-progress { position:absolute; z-index:0; inset:0 auto 0 0; width:100%; transform:scaleX(0); transform-origin:left; background:linear-gradient(90deg,rgba(187,90,103,.13),rgba(187,90,103,.04)); pointer-events:none; transition:transform .08s linear; }.message-voice.is-playing .voice-waveform > i { opacity:.92; animation:voice-note-pulse .72s ease-in-out infinite alternate; }.message-voice.is-playing .voice-waveform > i:nth-of-type(3n) { animation-delay:.13s; }.message-egor .voice-waveform { color:rgba(255,255,255,.88); }.message-egor .voice-progress { background:rgba(255,255,255,.17); }.message-natakha .voice-waveform { color:#6192a8; }
.voice-detail { display:flex; align-items:center; gap:6px; color:#aa858a; font-size:.64rem; font-weight:700; line-height:1; }.voice-detail span + span::before { margin-right:6px; content:"·"; opacity:.65; }.message-egor .voice-detail { color:rgba(255,238,239,.84); }.message-natakha .voice-detail { color:#7198aa; }.voice-speed { min-width:34px; height:26px; flex:0 0 auto; border:1px solid rgba(168,84,96,.15); border-radius:9px; padding:0 5px; color:#a65762; background:rgba(255,255,255,.6); font:700 .62rem "DM Sans",sans-serif; cursor:pointer; transition:transform .16s ease,background .16s ease; }.voice-speed:hover { background:#fff; transform:translateY(-1px); }.message-egor .voice-speed { border-color:rgba(255,255,255,.28); color:#fff; background:rgba(255,255,255,.13); }.message-natakha .voice-speed { border-color:rgba(86,142,168,.2); color:#4c819b; background:rgba(255,255,255,.52); }.message-voice.has-error { opacity:.72; }.voice-play:focus-visible,.voice-speed:focus-visible,.voice-waveform:focus-visible { outline:3px solid rgba(203,107,120,.28); outline-offset:2px; }
@keyframes voice-note-pulse { from { transform:scaleY(.7); } to { transform:scaleY(1.05); } }
@media (max-width:480px) { .message-voice-wrap { width:min(300px,82vw); }.message-voice { min-height:64px; gap:8px; padding:8px; }.voice-play { width:37px; height:37px; }.voice-waveform { height:27px; }.voice-waveform > i { max-width:3px; } }
.photo-lightbox { position:fixed; z-index:50; inset:0; display:grid; place-items:center; padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left)); background:rgba(42,27,30,.76); backdrop-filter:blur(12px); animation:lightbox-in .18s ease-out; }.photo-lightbox-backdrop { position:absolute; inset:0; cursor:zoom-out; }.photo-lightbox-panel { position:relative; z-index:1; display:grid; place-items:center; width:min(900px,100%); max-height:100%; }.photo-lightbox figure { display:grid; justify-items:center; max-width:100%; max-height:calc(100dvh - 44px); margin:0; }.photo-lightbox figure img { display:block; max-width:100%; max-height:calc(100dvh - 96px); border:1px solid rgba(255,255,255,.28); border-radius:18px; box-shadow:0 22px 70px rgba(0,0,0,.35); object-fit:contain; }.photo-lightbox figcaption { margin-top:11px; color:rgba(255,255,255,.8); font-size:.78rem; font-weight:600; text-align:center; }.photo-lightbox-close,.photo-lightbox-nav { position:absolute; z-index:2; display:grid; place-items:center; border:1px solid rgba(255,255,255,.24); color:#fff; background:rgba(255,255,255,.14); backdrop-filter:blur(8px); cursor:pointer; transition:background .16s ease,transform .16s ease; }.photo-lightbox-close:hover,.photo-lightbox-nav:hover { background:rgba(255,255,255,.24); transform:scale(1.05); }.photo-lightbox-close { top:-4px; right:-4px; width:39px; height:39px; border-radius:50%; font-size:1.65rem; line-height:1; }.photo-lightbox-nav { top:50%; width:42px; height:42px; border-radius:50%; font-size:1.2rem; transform:translateY(-50%); }.photo-lightbox-prev { left:12px; }.photo-lightbox-next { right:12px; }body.photo-lightbox-open { overflow:hidden; } @keyframes lightbox-in { from { opacity:0; } to { opacity:1; } }
@keyframes photo-spin { to { transform:rotate(360deg); } }
@media (max-width:480px) { .photo-button { width:36px; height:42px; }.photo-queue { padding:8px 10px; }.photo-queue-item { width:56px; height:56px; }.composer { gap:4px; }.message-photo { width:min(258px,76vw); }.message-photo::after { opacity:1; transform:none; }.photo-lightbox { padding:12px; }.photo-lightbox figure img { max-height:calc(100dvh - 86px); border-radius:14px; }.photo-lightbox-close { top:2px; right:2px; }.photo-lightbox-nav { top:auto; bottom:0; transform:none; }.photo-lightbox-prev { left:calc(50% - 50px); }.photo-lightbox-next { right:calc(50% - 50px); } }

/* Secret countdown */
.secret-card { max-width:660px; }
.secret-card h2 { font-size:clamp(2rem,5.2vw,3.65rem); }
.secret-label { margin:25px auto 10px !important; color:#8f6c70 !important; font-weight:600; }
.secret-timer { display:grid; place-items:center; min-height:74px; margin:0 auto 17px; border:1px solid rgba(181,83,97,.18); border-radius:18px; padding:12px 16px; color:#a64e5a; background:linear-gradient(135deg,rgba(255,240,238,.9),rgba(255,255,255,.8)); box-shadow:inset 0 1px rgba(255,255,255,.9); font-size:clamp(.93rem,2.6vw,1.12rem); font-weight:700; letter-spacing:.015em; line-height:1.45; }
.secret-rule { max-width:400px !important; margin:0 auto !important; color:#92797c !important; font-size:.79rem; line-height:1.55 !important; }
.secret-note { margin:13px auto 0 !important; color:#ad5661 !important; font-size:.79rem; font-weight:700; }
@media (max-width:720px) { .secret-card { padding:39px 20px; }.secret-card h2 { font-size:clamp(2rem,10.8vw,3.15rem); }.secret-timer { min-height:68px; border-radius:16px; padding:11px 10px; font-size:.9rem; } }

/* Chat menu and photo gallery */
.chat-menu-wrap { position:relative; margin-left:auto; }
.chat-menu { position:absolute; z-index:8; top:calc(100% + 9px); right:0; width:156px; padding:6px; border:1px solid rgba(157,88,96,.16); border-radius:14px; background:rgba(255,253,252,.97); box-shadow:0 14px 34px rgba(82,43,48,.16); backdrop-filter:blur(14px); }
.chat-menu button { display:flex; align-items:center; gap:9px; width:100%; min-height:38px; border:0; border-radius:10px; padding:0 10px; color:#714d52; background:transparent; font:700 .78rem "DM Sans",sans-serif; text-align:left; cursor:pointer; transition:background .16s ease,color .16s ease; }
.chat-menu button:hover { color:#a34f5b; background:#fff0ee; }.chat-menu button span { color:#c36873; font-size:1rem; }
.gallery-view { width:min(920px,calc(100% - 40px)); align-items:center; justify-content:center; margin:auto; padding:90px 0 34px; }
.gallery-card { display:flex; flex-direction:column; width:min(620px,100%); height:min(670px,calc(100svh - 135px)); min-height:430px; overflow:hidden; border:1px solid rgba(255,255,255,.82); border-radius:26px; background:rgba(255,255,255,.79); box-shadow:0 24px 70px rgba(112,65,66,.15); backdrop-filter:blur(18px); }
.gallery-topbar { display:flex; align-items:center; gap:11px; padding:18px 20px; border-bottom:1px solid var(--line); }.gallery-topbar strong { display:block; font-size:.9rem; }.gallery-topbar span { display:block; margin-top:2px; color:var(--muted); font-size:.71rem; }.gallery-back { margin-left:auto; border:0; border-radius:10px; padding:8px 10px; color:#a35660; background:#fff1ef; font:700 .72rem "DM Sans",sans-serif; cursor:pointer; transition:transform .16s ease,background .16s ease; }.gallery-back:hover { background:#ffe5e1; transform:translateX(-1px); }
.gallery-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-content:start; gap:7px; flex:1; overflow-y:auto; padding:11px; }.gallery-photo { display:block; aspect-ratio:1; overflow:hidden; border:0; border-radius:12px; padding:0; background:#f5e9e8; cursor:zoom-in; box-shadow:0 3px 10px rgba(99,53,58,.1); transition:transform .18s ease,box-shadow .18s ease; }.gallery-photo:hover { transform:scale(1.025); box-shadow:0 8px 17px rgba(99,53,58,.18); }.gallery-photo:focus-visible { outline:3px solid rgba(199,111,119,.4); outline-offset:2px; }.gallery-photo img { display:block; width:100%; height:100%; object-fit:cover; }.gallery-empty { grid-column:1/-1; align-self:center; margin:auto; color:var(--muted); font-size:.87rem; text-align:center; }
@media (max-width:720px) { .gallery-view { width:calc(100% - 26px); padding-top:132px; }.gallery-card { width:100%; height:calc(100svh - 150px); min-height:0; border-radius:25px; }.gallery-topbar { padding:15px; }.gallery-grid { gap:5px; padding:8px; }.gallery-photo { border-radius:9px; }.gallery-back { padding:7px 8px; font-size:.68rem; } }

/* Install Kukolka as an app */
.chat-menu { width:194px; }
.install-modal { position:fixed; z-index:70; inset:0; display:grid; place-items:center; padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left)); }
.install-modal-backdrop { position:absolute; inset:0; border:0; background:rgba(63,37,42,.37); backdrop-filter:blur(8px); cursor:pointer; }
.install-modal-card { position:relative; z-index:1; width:min(420px,100%); overflow:hidden; border:1px solid rgba(255,255,255,.88); border-radius:28px; padding:34px 30px 30px; color:#453235; background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(255,244,242,.97)); box-shadow:0 28px 80px rgba(76,39,46,.25); text-align:center; animation:install-card-in .22s ease-out; }
.install-modal-logo { display:block; width:80px; height:80px; margin:0 auto 18px; border-radius:22px; box-shadow:0 11px 25px rgba(177,77,93,.22); object-fit:cover; }
.install-modal-card .eyebrow { margin:0 0 9px; }
.install-modal-card h2 { margin:0; font-family:"Playfair Display",serif; font-size:clamp(1.7rem,6vw,2.25rem); font-weight:600; letter-spacing:-.035em; line-height:1.08; }
.install-modal-card > p:not(.eyebrow) { margin:13px auto 0; color:#896f73; font-size:.92rem; line-height:1.52; }
.install-steps { display:grid; gap:9px; margin:20px 0 0; padding:16px 16px 16px 34px; border:1px solid rgba(188,91,104,.14); border-radius:16px; color:#705256; background:rgba(255,255,255,.58); font-size:.84rem; line-height:1.42; text-align:left; }
.install-steps li::marker { color:#c36470; font-weight:700; }.install-modal-close { position:absolute; top:12px; right:12px; display:grid; width:32px; height:32px; place-items:center; border:0; border-radius:50%; color:#8e6c71; background:rgba(255,255,255,.76); font-size:1.45rem; line-height:1; cursor:pointer; transition:background .16s ease,transform .16s ease; }.install-modal-close:hover { color:#a64e5a; background:#fff; transform:scale(1.06); }.install-modal-close:focus-visible { outline:3px solid rgba(204,113,124,.3); outline-offset:2px; }body.install-modal-open { overflow:hidden; }
@keyframes install-card-in { from { opacity:0; transform:translateY(10px) scale(.98); } to { opacity:1; transform:translateY(0) scale(1); } }
@media (max-width:520px) { .install-modal { align-items:end; padding:14px 14px calc(14px + env(safe-area-inset-bottom)); }.install-modal-card { border-radius:25px; padding:28px 22px 24px; }.install-modal-logo { width:70px; height:70px; margin-bottom:15px; }.install-modal-card > p:not(.eyebrow) { font-size:.86rem; }.install-steps { margin-top:16px; font-size:.8rem; } }

/* Profile shell — notification delivery itself is added in the next stage. */
.profile-view { width:min(920px,calc(100% - 40px)); align-items:center; justify-content:center; margin:auto; padding:104px 0 38px; }
.profile-card { width:min(560px,100%); border:1px solid rgba(255,255,255,.86); border-radius:30px; padding:clamp(28px,5vw,42px); color:#463135; background:linear-gradient(145deg,rgba(255,255,255,.87),rgba(255,244,242,.77)); box-shadow:0 25px 65px rgba(112,65,66,.14); backdrop-filter:blur(18px); }
.profile-identity { display:flex; align-items:center; gap:18px; }.profile-avatar { display:grid; width:82px; height:82px; flex:0 0 auto; place-items:center; overflow:hidden; border:1px solid rgba(255,255,255,.76); border-radius:25px; color:#fff; background:linear-gradient(145deg,#e7969e,#b35461); box-shadow:0 12px 26px rgba(176,80,93,.24),inset 0 1px rgba(255,255,255,.3); font:600 2.05rem/1 "Playfair Display",serif; }
.profile-identity .eyebrow { margin:0 0 7px; }.profile-identity h2 { margin:0; font-family:"Playfair Display",serif; font-size:clamp(1.8rem,5vw,2.55rem); font-weight:600; letter-spacing:-.045em; line-height:1; }.profile-identity > div > p:last-child { margin:7px 0 0; color:#90777a; font-size:.83rem; font-weight:600; }
.profile-divider { display:flex; align-items:center; gap:12px; margin:29px 0 20px; color:#ce7b84; font-size:.7rem; }.profile-divider::before,.profile-divider::after { content:""; height:1px; flex:1; background:rgba(150,87,94,.14); }.profile-divider span { display:grid; width:24px; height:14px; place-items:center; transform:translateY(1px); }
.profile-settings { display:grid; gap:10px; }.profile-setting { display:flex; width:100%; align-items:center; gap:13px; min-height:77px; border:1px solid rgba(169,92,101,.15); border-radius:18px; padding:11px 13px; color:#4b3539; background:rgba(255,255,255,.61); box-shadow:inset 0 1px rgba(255,255,255,.82); text-align:left; cursor:pointer; transition:border-color .16s ease,background .16s ease,box-shadow .16s ease,transform .16s ease; }.profile-setting:hover { border-color:rgba(190,96,109,.34); background:#fff; box-shadow:0 10px 21px rgba(122,67,72,.09); transform:translateY(-1px); }.profile-setting:focus-visible,.profile-back:focus-visible { outline:3px solid rgba(207,113,126,.3); outline-offset:3px; }
.profile-setting-icon { display:grid; width:43px; height:43px; flex:0 0 auto; place-items:center; border:1px solid rgba(177,97,106,.18); border-radius:14px; color:#b85f6b; background:linear-gradient(145deg,#fff8f6,#f8e7e5); }.profile-setting-icon svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.65; }.profile-setting-copy { display:grid; min-width:0; gap:4px; flex:1; }.profile-setting-copy strong { font-size:.92rem; }.profile-setting-copy small { color:#9a8286; font-size:.74rem; font-weight:600; }.profile-setting-arrow { color:#ba6570; font-size:1.12rem; transition:transform .16s ease; }.profile-setting:hover .profile-setting-arrow { transform:translateX(3px); }
.profile-logout { margin-top:3px; border-color:rgba(181,83,97,.2); }.profile-logout .profile-setting-icon { color:#b55361; background:linear-gradient(145deg,#fff5f4,#fde8e7); font-size:1.28rem; }.profile-logout:hover { border-color:rgba(181,83,97,.42); }.profile-logout:disabled { opacity:.58; cursor:wait; transform:none; }
.notifications-card { position:relative; }.profile-back { display:inline-flex; align-items:center; gap:7px; margin:0 0 28px; border:0; padding:0; color:#9a7479; background:transparent; font:700 .8rem "DM Sans",sans-serif; cursor:pointer; transition:color .16s ease,transform .16s ease; }.profile-back:hover { color:#ad5661; transform:translateX(-2px); }.notifications-heading .profile-setting-icon { width:60px; height:60px; border-radius:19px; }.notifications-heading .profile-setting-icon svg { width:27px; height:27px; }.notifications-placeholder { display:grid; justify-items:center; margin-top:30px; border:1px solid rgba(176,94,105,.13); border-radius:20px; padding:28px 24px; background:rgba(255,255,255,.55); text-align:center; }.notifications-placeholder > span { display:grid; width:37px; height:37px; place-items:center; border-radius:13px; color:#c46b76; background:#fff0ee; font-size:1rem; }.notifications-placeholder strong { margin-top:13px; font-size:.92rem; }.notifications-placeholder p { max-width:340px; margin:8px 0 0; color:#947b7f; font-size:.8rem; line-height:1.5; }
@media (max-width:720px) { .profile-view { width:calc(100% - 26px); min-height:100svh; padding:96px 0 24px; align-items:start; }.profile-card { padding:26px 20px; border-radius:26px; }.profile-avatar { width:72px; height:72px; border-radius:22px; font-size:1.82rem; }.profile-identity { gap:14px; }.profile-identity h2 { font-size:2rem; }.profile-identity > div > p:last-child { font-size:.77rem; }.profile-divider { margin:24px 0 16px; }.profile-setting { min-height:73px; border-radius:17px; }.profile-setting-icon { width:41px; height:41px; border-radius:13px; }.notifications-heading .profile-setting-icon { width:54px; height:54px; border-radius:17px; }.notifications-placeholder { margin-top:25px; padding:25px 19px; } }

/* Hearts are a small personal balance, styled as a destination rather than a dashboard counter. */
.profile-points-card { display:flex; width:100%; align-items:center; gap:13px; margin:0 0 11px; border:1px solid rgba(199,108,120,.21); border-radius:18px; padding:12px 13px; color:#51363b; background:radial-gradient(circle at 88% 0%,rgba(244,183,188,.25),transparent 38%),linear-gradient(135deg,rgba(255,246,244,.92),rgba(255,255,255,.7)); box-shadow:0 8px 20px rgba(124,66,74,.07),inset 0 1px rgba(255,255,255,.92); text-align:left; cursor:pointer; transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease; }.profile-points-card:hover { border-color:rgba(190,91,105,.42); box-shadow:0 11px 24px rgba(124,66,74,.11); transform:translateY(-1px); }.profile-points-heart,.rewards-shop-mark { display:grid; width:46px; height:46px; flex:0 0 auto; place-items:center; border-radius:15px; color:#fff; background:linear-gradient(145deg,#e799a1,#b65364); box-shadow:0 9px 18px rgba(181,78,94,.22); }.profile-points-heart svg,.rewards-shop-mark svg { width:23px; height:23px; fill:currentColor; }.profile-points-copy { display:grid; min-width:0; flex:1; gap:2px; }.profile-points-copy small { color:#a27e84; font-size:.66rem; font-weight:700; letter-spacing:.07em; text-transform:uppercase; }.profile-points-copy strong { color:#a9505d; font:700 1.28rem/1 "DM Sans",sans-serif; letter-spacing:-.04em; }.profile-points-copy em { overflow:hidden; color:#987c80; font-size:.7rem; font-style:normal; font-weight:600; text-overflow:ellipsis; white-space:nowrap; }.rewards-shop-card { width:min(650px,100%); }.rewards-shop-heading { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:14px; }.rewards-shop-heading .eyebrow { margin:0 0 5px; }.rewards-shop-heading h2 { margin:0; color:#493236; font:600 clamp(1.75rem,5vw,2.3rem)/1 "Playfair Display",serif; letter-spacing:-.045em; }.rewards-shop-heading h2 em { color:#ba5c69; font-style:italic; }.rewards-shop-heading p:not(.eyebrow) { margin:7px 0 0; color:#967b7f; font-size:.76rem; line-height:1.35; }.rewards-shop-balance { align-self:start; border:1px solid rgba(187,93,106,.2); border-radius:999px; padding:8px 10px; color:#ad5662; background:#fff9f8; box-shadow:inset 0 1px rgba(255,255,255,.9); font-size:.73rem; font-weight:800; white-space:nowrap; }.rewards-shop-list { display:grid; gap:9px; margin-top:26px; }.reward-shop-item { display:grid; grid-template-columns:45px minmax(0,1fr) auto; align-items:center; gap:12px; min-height:77px; border:1px solid rgba(177,94,104,.15); border-radius:18px; padding:11px; background:rgba(255,255,255,.62); box-shadow:inset 0 1px rgba(255,255,255,.84); }.reward-shop-icon { display:grid; width:45px; height:45px; place-items:center; border-radius:15px; color:#b65d68; background:#fff0ee; font:700 1.25rem/1 "Playfair Display",serif; }.reward-shop-icon.is-kukolka { color:#bd6070; background:linear-gradient(145deg,#fff0ef,#f9dfe0); }.reward-shop-icon.is-sv { color:#8e6786; background:linear-gradient(145deg,#f6edf8,#eadcf0); }.reward-shop-icon.is-secret { color:#af895e; background:linear-gradient(145deg,#fff8e9,#f7ecd4); font:1.06rem/1 "DM Sans",sans-serif; }.reward-shop-item > div { min-width:0; }.reward-shop-item strong { display:block; color:#5a3f44; font-size:.82rem; }.reward-shop-item p { margin:4px 0 0; color:#997d82; font-size:.69rem; line-height:1.35; }.reward-shop-item > span:last-child { border:1px solid rgba(183,98,109,.16); border-radius:999px; padding:5px 7px; color:#aa777e; background:#fffaf9; font-size:.61rem; font-weight:800; }.rewards-shop-note { margin:17px 3px 0; color:#a2878b; font-size:.69rem; line-height:1.45; text-align:center; }.profile-points-card:focus-visible { outline:3px solid rgba(207,113,126,.3); outline-offset:3px; }
@media (max-width:520px) { .profile-points-card { border-radius:16px; padding:11px; }.profile-points-heart { width:43px; height:43px; border-radius:14px; }.rewards-shop-heading { grid-template-columns:44px minmax(0,1fr); gap:11px; }.rewards-shop-mark { width:44px; height:44px; border-radius:14px; }.rewards-shop-balance { grid-column:2; justify-self:start; margin-top:-5px; }.rewards-shop-list { margin-top:21px; }.reward-shop-item { grid-template-columns:41px minmax(0,1fr); gap:10px; min-height:72px; border-radius:16px; padding:10px; }.reward-shop-icon { width:41px; height:41px; border-radius:13px; }.reward-shop-item > span:last-child { grid-column:2; justify-self:start; margin-top:-3px; }.rewards-shop-note { margin-top:15px; } }

/* The shop is actionable now: compact purchase controls, clear states, and no hidden costs. */
.reward-shop-buy { justify-self:end; border:0; border-radius:999px; padding:9px 11px; color:#fff; background:linear-gradient(135deg,#d67a85,#b54f61); box-shadow:0 8px 15px rgba(181,78,94,.2); font:800 .67rem/1 "DM Sans",sans-serif; letter-spacing:.01em; cursor:pointer; transition:transform .16s ease,box-shadow .16s ease,opacity .16s ease; white-space:nowrap; }.reward-shop-buy span { margin-right:3px; color:#fff1f0; }.reward-shop-buy:hover:not(:disabled) { box-shadow:0 11px 20px rgba(181,78,94,.28); transform:translateY(-1px); }.reward-shop-buy:active:not(:disabled) { transform:translateY(0) scale(.98); }.reward-shop-buy:disabled { color:#a99295; background:#f3ebea; box-shadow:none; cursor:not-allowed; opacity:.86; }.reward-shop-buy:focus-visible { outline:3px solid rgba(207,113,126,.28); outline-offset:3px; }.reward-shop-item.is-complete { border-color:rgba(111,156,112,.2); background:linear-gradient(135deg,rgba(246,253,245,.88),rgba(255,255,255,.62)); }.reward-shop-item.is-complete .reward-shop-buy { color:#6c966c; background:#edf7eb; }.rewards-shop-result { margin:15px 3px -2px; border:1px solid rgba(190,91,105,.22); border-radius:14px; padding:10px 12px; color:#ad5662; background:#fff6f5; font-size:.74rem; font-weight:800; line-height:1.35; text-align:center; animation:reward-result-in .24s ease both; }.rewards-shop-result.is-error { color:#aa5962; border-color:rgba(182,87,98,.23); background:#fff1f0; }.rewards-shop-result.is-success { color:#678b69; border-color:rgba(100,151,106,.22); background:#f0f9ef; }.rewards-shop-result.is-busy { color:#a07d62; background:#fff8ed; border-color:rgba(190,145,91,.2); }@keyframes reward-result-in { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }
.reward-shop-icon img { display:block; width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 3px 4px rgba(117,58,70,.14)); }.reward-shop-icon.is-kukolka,.reward-shop-icon.is-sv { overflow:hidden; background:linear-gradient(145deg,#fffafa,#faeeee); }
@media (max-width:520px) { .reward-shop-buy { grid-column:2; justify-self:start; margin-top:-3px; padding:8px 10px; font-size:.65rem; }.rewards-shop-result { margin-top:13px; border-radius:13px; font-size:.71rem; } }
.sticker-library { margin-top:25px; border-top:1px solid rgba(183,98,109,.14); padding-top:22px; }.sticker-library-heading { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:12px; }.sticker-library-heading .eyebrow { margin:0 0 5px; }.sticker-library-heading h3 { margin:0; color:#52363c; font:600 clamp(1.35rem,4vw,1.75rem)/1 "Playfair Display",serif; letter-spacing:-.04em; }.sticker-library-heading h3 em { color:#bd6370; font-style:italic; }.sticker-library-heading p:not(.eyebrow) { margin:6px 0 0; color:#9e8488; font-size:.7rem; line-height:1.4; }.sticker-library-total { align-self:center; border:1px solid rgba(186,97,110,.18); border-radius:999px; padding:7px 9px; color:#ad5c68; background:linear-gradient(145deg,#fffafb,#fff0ef); font-size:.68rem; font-weight:900; white-space:nowrap; }.sticker-library-packs { display:grid; gap:13px; margin-top:16px; }.sticker-library-pack { overflow:hidden; border:1px solid rgba(181,95,105,.14); border-radius:18px; padding:12px; background:linear-gradient(135deg,rgba(255,255,255,.74),rgba(255,246,245,.57)); box-shadow:inset 0 1px rgba(255,255,255,.88); }.sticker-library-pack.is-lapka { border-color:rgba(126,112,166,.18); background:linear-gradient(135deg,rgba(251,250,255,.88),rgba(246,243,255,.56)); }.sticker-library-pack.is-sv { border-color:rgba(154,98,149,.16); background:linear-gradient(135deg,rgba(255,250,255,.83),rgba(250,241,252,.59)); }.sticker-library-pack header { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin:0 2px 10px; }.sticker-library-pack h4 { margin:0; color:#5c4046; font-size:.81rem; }.sticker-library-pack.is-lapka h4 { color:#635377; }.sticker-library-pack.is-sv h4 { color:#74536f; }.sticker-library-pack header p { margin:0; color:#a18489; font-size:.62rem; font-weight:800; white-space:nowrap; }.sticker-library-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(64px,1fr)); gap:8px; }.sticker-library-card { position:relative; display:grid; min-width:0; aspect-ratio:1; place-items:center; overflow:hidden; margin:0; border:1px solid rgba(183,99,110,.16); border-radius:15px; background:linear-gradient(145deg,#fffdfc,#fff3f1); box-shadow:0 6px 13px rgba(156,77,89,.08),inset 0 1px rgba(255,255,255,.95); }.sticker-library-card img { width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 4px 6px rgba(144,73,85,.11)); }.sticker-library-card.is-active { animation:sticker-library-appear .3s cubic-bezier(.2,.85,.27,1.2) both; }.sticker-library-card.is-locked,.sticker-library-card.is-expired { background:linear-gradient(145deg,#faf7f7,#f2eceb); }.sticker-library-card.is-locked img { opacity:.96; filter:drop-shadow(0 4px 5px rgba(151,73,86,.15)); transform:scale(.9); }.sticker-library-card.is-expired img { opacity:.25; filter:grayscale(.9) saturate(.45); transform:scale(.91); }.sticker-library-number { position:absolute; top:5px; left:5px; display:grid; min-width:17px; height:17px; place-items:center; border:1px solid rgba(255,255,255,.62); border-radius:50%; padding:0 3px; color:#a3787e; background:rgba(255,255,255,.79); box-shadow:0 2px 5px rgba(106,60,67,.08); font-size:.55rem; font-weight:900; line-height:1; }.sticker-library-card figcaption { position:absolute; right:4px; bottom:4px; max-width:calc(100% - 8px); overflow:hidden; border-radius:999px; padding:3px 5px; color:#6f8e6e; background:rgba(241,250,239,.94); box-shadow:0 2px 5px rgba(72,111,69,.1); font-size:.48rem; font-weight:900; line-height:1.1; text-overflow:ellipsis; white-space:nowrap; }.sticker-library-card figcaption[data-kind="timed"] { color:#a15f70; background:rgba(255,240,243,.95); }.sticker-library-lock { position:absolute; display:grid; width:27px; height:27px; place-items:center; border:1px solid rgba(174,111,120,.16); border-radius:10px; color:#a77f85; background:rgba(255,253,252,.78); box-shadow:0 5px 11px rgba(122,73,80,.1); }.sticker-library-lock svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; }.sticker-library-card.is-expired .sticker-library-lock { color:#a89296; background:rgba(249,245,245,.86); }.sticker-library-card.is-expired::after { position:absolute; inset:0; background:linear-gradient(135deg,transparent 48%,rgba(170,119,126,.23) 49%,rgba(170,119,126,.23) 51%,transparent 52%); content:""; pointer-events:none; }@keyframes sticker-library-appear { from { opacity:0; transform:scale(.93); } to { opacity:1; transform:none; } }
@media (max-width:520px) { .sticker-library { margin-top:21px; padding-top:19px; }.sticker-library-heading h3 { font-size:1.38rem; }.sticker-library-heading p:not(.eyebrow) { font-size:.67rem; }.sticker-library-total { padding:6px 8px; font-size:.64rem; }.sticker-library-packs { gap:10px; margin-top:13px; }.sticker-library-pack { border-radius:16px; padding:10px; }.sticker-library-pack header { margin-bottom:8px; }.sticker-library-pack h4 { font-size:.76rem; }.sticker-library-pack header p { font-size:.58rem; }.sticker-library-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; }.sticker-library-card { border-radius:13px; }.sticker-library-lock { width:25px; height:25px; border-radius:9px; }.sticker-library-card figcaption { font-size:.44rem; } }
@media (prefers-reduced-motion:reduce) { .sticker-library-card.is-active { animation:none; } }
.sticker-library-card:is(button) { padding:0; color:inherit; font:inherit; text-align:inherit; cursor:pointer; }.sticker-library-card.is-active { transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease; }.sticker-library-card.is-active:hover { border-color:rgba(184,82,100,.42); box-shadow:0 12px 20px rgba(156,77,89,.18),inset 0 1px rgba(255,255,255,.95); transform:translateY(-2px) scale(1.02); }.sticker-library-card.is-active:active { transform:scale(.97); }.sticker-library-card.is-active:focus-visible { outline:3px solid rgba(202,93,110,.34); outline-offset:3px; }.sticker-library-hint { color:#9b7c82 !important; background:rgba(255,255,255,.86) !important; font-size:.43rem !important; }.sticker-library-card.is-expired .sticker-library-hint { color:#a38d91 !important; background:rgba(250,247,247,.88) !important; }
body.sticker-library-preview-open { overflow:hidden; }.sticker-library-preview { position:fixed; z-index:116; inset:0; display:grid; place-items:center; padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left)); background:rgba(65,39,47,.38); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); }.sticker-library-preview-backdrop { position:absolute; inset:0; border:0; background:transparent; cursor:default; }.sticker-library-preview-card { position:relative; z-index:1; display:grid; justify-items:center; width:min(400px,100%); overflow:hidden; border:1px solid rgba(255,255,255,.9); border-radius:29px; padding:31px 26px 25px; color:#51363d; background:radial-gradient(circle at 50% -8%,rgba(246,185,194,.36),transparent 39%),radial-gradient(circle at 0 100%,rgba(255,223,219,.38),transparent 33%),linear-gradient(145deg,rgba(255,254,254,.99),rgba(255,244,242,.97)); box-shadow:0 30px 78px rgba(72,40,48,.28),inset 0 1px rgba(255,255,255,.95); text-align:center; animation:sticker-library-preview-in .23s cubic-bezier(.2,.86,.27,1.12) both; }.sticker-library-preview-card::before,.sticker-library-preview-card::after { position:absolute; width:180px; height:180px; border:1px solid rgba(204,112,126,.13); border-radius:50%; content:""; pointer-events:none; }.sticker-library-preview-card::before { top:-108px; right:-93px; }.sticker-library-preview-card::after { bottom:-130px; left:-115px; }.sticker-library-preview-close { position:absolute; z-index:2; top:14px; right:15px; display:grid; width:33px; height:33px; place-items:center; border:1px solid rgba(183,96,108,.17); border-radius:11px; color:#a65c69; background:rgba(255,255,255,.72); font:400 1.32rem/1 "DM Sans",sans-serif; cursor:pointer; transition:transform .16s ease,background .16s ease; }.sticker-library-preview-close:hover { background:#fff0ef; transform:rotate(5deg) scale(1.04); }.sticker-library-preview-card .eyebrow { position:relative; z-index:1; margin:0 0 8px; color:#b36977; }.sticker-library-preview-card h2 { position:relative; z-index:1; margin:0; color:#51383e; font:600 clamp(1.85rem,6vw,2.35rem)/1 "Playfair Display",serif; letter-spacing:-.05em; }.sticker-library-preview-card h2 em { color:#be6070; font-style:italic; }.sticker-library-preview-art { position:relative; z-index:1; display:grid; width:min(228px,68vw); aspect-ratio:1; place-items:center; margin:22px 0 17px; border:1px solid rgba(193,103,116,.17); border-radius:27px; background:linear-gradient(145deg,#fffdfc,#fff1ef); box-shadow:0 15px 30px rgba(172,79,94,.17),inset 0 1px rgba(255,255,255,.95); }.sticker-library-preview-art img { width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 11px 12px rgba(151,73,86,.16)); animation:sticker-library-preview-art-in .36s .05s cubic-bezier(.2,.9,.28,1.16) both; }.sticker-library-preview-status { position:relative; z-index:1; max-width:290px; margin:0; color:#95777d; font-size:.76rem; font-weight:700; line-height:1.45; }.sticker-library-preview-done { position:relative; z-index:1; min-width:130px; min-height:42px; margin-top:21px; border:0; border-radius:13px; padding:0 16px; color:#fff; background:linear-gradient(135deg,#d47a86,#b14e5e); box-shadow:0 9px 18px rgba(177,75,92,.22); font:800 .72rem "DM Sans",sans-serif; cursor:pointer; transition:transform .16s ease,filter .16s ease; }.sticker-library-preview-done:hover { filter:brightness(1.04); transform:translateY(-1px); }.sticker-library-preview-close:focus-visible,.sticker-library-preview-done:focus-visible { outline:3px solid rgba(204,98,113,.34); outline-offset:3px; }@keyframes sticker-library-preview-in { from { opacity:0; transform:translateY(10px) scale(.96); } to { opacity:1; transform:none; } }@keyframes sticker-library-preview-art-in { from { opacity:0; transform:scale(.8) rotate(-4deg); } to { opacity:1; transform:none; } }
@media (max-width:520px) { .sticker-library-preview { align-items:end; padding:0; }.sticker-library-preview-card { width:100%; border-radius:28px 28px 0 0; padding:29px 20px max(21px,env(safe-area-inset-bottom)); }.sticker-library-preview-art { width:min(220px,65vw); margin:20px 0 15px; }.sticker-library-preview-status { font-size:.73rem; }.sticker-library-preview-done { min-height:44px; margin-top:19px; } }
@media (prefers-reduced-motion:reduce) { .sticker-library-card.is-active,.sticker-library-preview-card,.sticker-library-preview-art img,.sticker-library-preview-close,.sticker-library-preview-done { animation:none; transition:none; } }

/* All unavailable stickers use the same full-size question-mark artwork. */
.sticker-library-card.is-locked,.sticker-library-card.is-expired { background:transparent; }
.sticker-library-card.is-locked img,.sticker-library-card.is-expired img { width:100%; height:100%; opacity:1; filter:drop-shadow(0 5px 6px rgba(151,73,86,.15)); object-fit:cover; transform:scale(1.16); }
.sticker-library-card.is-expired::after { display:none; }
.sticker-library-card.is-expired .sticker-library-lock { display:none; }
.rewards-shop-reveal { display:flex; align-items:center; gap:12px; margin:14px 3px -2px; border:1px solid rgba(190,91,105,.18); border-radius:17px; padding:9px 12px; color:#6d4b51; background:linear-gradient(120deg,rgba(255,245,244,.96),rgba(255,255,255,.72)); box-shadow:0 10px 21px rgba(179,91,104,.09),inset 0 1px rgba(255,255,255,.9); animation:reward-reveal-in .32s cubic-bezier(.2,.9,.25,1.2) both; }.rewards-shop-reveal img { width:57px; height:57px; flex:0 0 auto; object-fit:contain; filter:drop-shadow(0 6px 8px rgba(172,91,103,.16)); }.rewards-shop-reveal div { display:grid; min-width:0; gap:2px; }.rewards-shop-reveal small { color:#b26c76; font-size:.62rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }.rewards-shop-reveal strong { overflow:hidden; color:#a9515e; font-size:.83rem; text-overflow:ellipsis; white-space:nowrap; }.rewards-shop-reveal span { color:#9b7d82; font-size:.69rem; line-height:1.3; }@keyframes reward-reveal-in { from { opacity:0; transform:scale(.96) translateY(7px); } to { opacity:1; transform:none; } }@media (max-width:520px) { .rewards-shop-reveal { margin-top:13px; border-radius:15px; padding:8px 10px; }.rewards-shop-reveal img { width:52px; height:52px; }.rewards-shop-reveal strong { font-size:.79rem; } }

/* Push subscription panel */
.notifications-panel { display:grid; justify-items:center; margin-top:30px; border:1px solid rgba(176,94,105,.13); border-radius:20px; padding:28px 24px; background:rgba(255,255,255,.55); text-align:center; }.notification-state-icon { display:grid; width:42px; height:42px; place-items:center; border-radius:14px; color:#c46b76; background:#fff0ee; font-size:1.3rem; font-weight:700; }.notification-state-icon.is-enabled { color:#51996c; background:#eaf8ee; }.notification-state-icon.is-warning { color:#b46a4e; background:#fff0e8; }.notifications-panel strong { margin-top:13px; font-size:.92rem; }.notifications-panel > p:not(.notification-note):not(.notification-error) { max-width:340px; margin:8px 0 0; color:#947b7f; font-size:.8rem; line-height:1.5; }.notification-enable { width:min(310px,100%); margin-top:21px; border:0; }.notification-disable { margin-top:16px; border:0; border-bottom:1px solid rgba(167,85,97,.36); padding:3px 1px; color:#a35660; background:transparent; font:700 .76rem "DM Sans",sans-serif; cursor:pointer; }.notification-disable:hover { color:#8f3d48; }.notification-error { margin:13px 0 0 !important; color:#b15560 !important; font-size:.76rem !important; font-weight:700; }.notification-note { max-width:315px; margin:19px 0 0; color:#aa9497; font-size:.7rem; line-height:1.45; }
.notification-test { width:min(310px,100%); margin-top:13px; border:1px solid rgba(182,92,103,.25); border-radius:14px; padding:11px 15px; color:#a6535e; background:rgba(255,255,255,.7); font:700 .8rem "DM Sans",sans-serif; cursor:pointer; transition:background .16s ease,transform .16s ease,border-color .16s ease; }.notification-test:hover { border-color:rgba(182,92,103,.47); background:#fff; transform:translateY(-1px); }.notification-test:disabled,.notification-disable:disabled { opacity:.6; cursor:wait; }
.notification-option { display:flex; width:min(310px,100%); align-items:center; gap:11px; margin-top:17px; border:1px solid rgba(174,93,103,.14); border-radius:15px; padding:11px 12px; color:#75575b; background:rgba(255,255,255,.54); text-align:left; cursor:pointer; }.notification-option input { appearance:none; position:relative; width:37px; height:22px; flex:0 0 auto; margin:0; border-radius:999px; background:#d9c9c9; cursor:pointer; transition:background .18s ease; }.notification-option input::after { content:""; position:absolute; top:3px; left:3px; width:16px; height:16px; border-radius:50%; background:#fff; box-shadow:0 2px 5px rgba(80,44,49,.18); transition:transform .18s ease; }.notification-option input:checked { background:#c46874; }.notification-option input:checked::after { transform:translateX(15px); }.notification-option input:focus-visible { outline:3px solid rgba(207,113,126,.28); outline-offset:3px; }.notification-option span { display:grid; gap:3px; }.notification-option strong { margin:0; font-size:.76rem; }.notification-option small { color:#9c8589; font-size:.67rem; font-weight:600; line-height:1.35; }
@media (max-width:720px) { .notifications-panel { margin-top:25px; padding:25px 19px; } }

/* Shared shopping list */
.button-shopping { position:relative; display:inline-flex; align-items:center; justify-content:center; gap:9px; min-width:210px; min-height:50px; border:1px solid rgba(173,91,102,.24); border-radius:16px; padding:0 18px; color:#92535d; background:rgba(255,255,255,.7); box-shadow:0 8px 18px rgba(104,59,63,.07); font:700 .83rem "DM Sans",sans-serif; cursor:pointer; transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease; }
.button-shopping:hover { border-color:rgba(173,91,102,.48); background:#fff; box-shadow:0 12px 22px rgba(104,59,63,.12); transform:translateY(-2px); }
.shopping-button-icon,.shopping-mark { display:grid; flex:0 0 auto; place-items:center; color:#b85f6b; }
.shopping-button-icon { width:23px; height:23px; border-radius:8px; background:#fff0ee; }
.shopping-button-icon svg,.shopping-mark svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; }
.button-shopping b { display:grid; min-width:19px; height:19px; place-items:center; border-radius:999px; padding:0 5px; color:#fff; background:#c46772; font-size:.66rem; line-height:1; box-shadow:0 3px 8px rgba(181,83,97,.24); }
.shopping-view { width:min(920px,calc(100% - 40px)); align-items:center; justify-content:center; margin:auto; padding:100px 0 34px; }
.shopping-card { display:flex; flex-direction:column; width:min(620px,100%); height:min(670px,calc(100svh - 135px)); min-height:430px; overflow:hidden; border:1px solid rgba(255,255,255,.84); border-radius:28px; background:rgba(255,255,255,.8); box-shadow:0 24px 70px rgba(112,65,66,.15); backdrop-filter:blur(18px); }
.shopping-topbar { display:flex; align-items:center; gap:12px; padding:18px 20px; border-bottom:1px solid var(--line); }.shopping-mark { width:43px; height:43px; border:1px solid rgba(179,91,102,.15); border-radius:14px; background:linear-gradient(145deg,#fff6f3,#f9e5e3); }.shopping-mark svg { width:21px; height:21px; }.shopping-topbar .eyebrow { margin:0 0 4px; font-size:.6rem; }.shopping-topbar h2 { margin:0; font:600 1.3rem/1 "Playfair Display",serif; letter-spacing:-.035em; }.shopping-topbar > div > span { display:block; margin-top:4px; color:var(--muted); font-size:.71rem; font-weight:600; }.shopping-back { margin-left:auto; flex:0 0 auto; border:0; border-radius:10px; padding:8px 10px; color:#a35660; background:#fff1ef; font:700 .72rem "DM Sans",sans-serif; cursor:pointer; transition:background .16s ease,transform .16s ease; }.shopping-back:hover { background:#ffe5e1; transform:translateX(-1px); }
.shopping-list { flex:1; overflow-y:auto; padding:13px; scrollbar-width:thin; }.shopping-item { display:flex; align-items:center; gap:12px; min-height:68px; margin-bottom:8px; border:1px solid rgba(171,94,103,.13); border-radius:17px; padding:11px 12px; background:rgba(255,255,255,.64); box-shadow:inset 0 1px rgba(255,255,255,.78); animation:message-in .2s ease-out; }.shopping-item-marker { width:22px; height:22px; flex:0 0 auto; border:1.5px solid rgba(190,97,109,.6); border-radius:50%; background:#fffafa; box-shadow:inset 0 0 0 4px rgba(255,240,238,.58); }.shopping-item-copy { display:grid; min-width:0; gap:4px; flex:1; }.shopping-item-copy strong { overflow:hidden; color:#4a3538; font-size:.9rem; line-height:1.2; text-overflow:ellipsis; white-space:nowrap; }.shopping-item-copy span { color:#9b8184; font-size:.69rem; font-weight:600; }.shopping-item-quantity { max-width:125px; overflow:hidden; border-radius:9px; padding:6px 8px; color:#a6535e; background:#fff0ee; font-size:.72rem; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }.shopping-empty { display:grid; align-content:center; justify-items:center; height:100%; min-height:250px; padding:25px; color:#9e8588; text-align:center; }.shopping-empty > span { color:#cf7882; font:2rem/1 "Playfair Display",serif; }.shopping-empty strong { margin-top:13px; color:#684d51; font-size:.92rem; }.shopping-empty p { max-width:260px; margin:8px 0 0; font-size:.79rem; line-height:1.5; }
.shopping-composer { display:grid; grid-template-columns:minmax(0,1fr) 84px 46px; gap:8px; padding:12px; border-top:1px solid var(--line); background:rgba(255,251,250,.9); }.shopping-composer input { min-width:0; height:45px; border:1px solid transparent; border-radius:14px; outline:0; padding:0 12px; color:var(--ink); background:#f8f1ef; font:500 .9rem "DM Sans",sans-serif; transition:border-color .16s ease,box-shadow .16s ease; }.shopping-composer input:focus { border-color:rgba(199,111,119,.46); box-shadow:0 0 0 3px rgba(202,105,116,.1); }.shopping-composer .shopping-quantity { padding:0 10px; text-align:center; font-size:.8rem; }.shopping-composer button { display:grid; width:46px; height:45px; place-items:center; border:0; border-radius:14px; color:#fff; background:linear-gradient(135deg,#d57d82,#b55361); box-shadow:0 7px 14px rgba(181,83,97,.2); font:500 1.6rem/1 "DM Sans",sans-serif; cursor:pointer; transition:transform .16s ease,filter .16s ease; }.shopping-composer button:hover { filter:brightness(1.03); transform:translateY(-1px); }.shopping-composer button:disabled { opacity:.6; cursor:wait; transform:none; }.shopping-error { margin:0; border-top:1px solid rgba(181,83,97,.12); padding:8px 14px; color:#ad515c; background:#fff5f3; font-size:.75rem; font-weight:700; text-align:center; }
@media (max-width:720px) { .button-shopping { min-width:224px; min-height:52px; border-radius:17px; }.shopping-view { width:calc(100% - 20px); min-height:100svh; padding:84px 0 10px; }.shopping-card { width:100%; height:calc(100svh - 94px); min-height:0; border-radius:24px; }.shopping-topbar { gap:9px; padding:15px; }.shopping-mark { width:39px; height:39px; border-radius:13px; }.shopping-topbar h2 { font-size:1.18rem; }.shopping-topbar > div > span { font-size:.66rem; }.shopping-back { padding:7px 8px; font-size:.66rem; }.shopping-list { padding:10px; }.shopping-item { min-height:64px; margin-bottom:7px; padding:10px; }.shopping-item-copy strong { font-size:.87rem; }.shopping-item-copy span { font-size:.66rem; }.shopping-composer { grid-template-columns:minmax(0,1fr) 69px 44px; gap:6px; padding:9px; padding-bottom:max(9px,env(safe-area-inset-bottom)); }.shopping-composer input { height:44px; padding:0 10px; font-size:16px; }.shopping-composer .shopping-quantity { font-size:16px; }.shopping-composer button { width:44px; height:44px; }.shopping-empty { min-height:180px; } }

/* Shopping list — completion, editing and safe removal */
.shopping-section-label { display:flex; align-items:center; gap:8px; margin:4px 3px 9px; color:#937477; font-size:.7rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }.shopping-section-label::after { content:""; height:1px; flex:1; background:rgba(155,86,96,.14); }.shopping-section-label b,.shopping-purchased summary b { display:grid; width:19px; height:19px; place-items:center; border-radius:999px; color:#b05762; background:#fff0ee; font-size:.65rem; letter-spacing:0; }
.shopping-item-check { display:grid; width:24px; height:24px; flex:0 0 auto; place-items:center; border:1.5px solid rgba(190,97,109,.6); border-radius:50%; padding:0; color:#fff; background:#fffafa; box-shadow:inset 0 0 0 4px rgba(255,240,238,.58); font:700 .86rem/1 "DM Sans",sans-serif; cursor:pointer; transition:background .16s ease,border-color .16s ease,transform .16s ease; }.shopping-item-check:hover { border-color:#c16571; background:#fff0ee; transform:scale(1.08); }.shopping-item-check:focus-visible,.shopping-item-action:focus-visible { outline:3px solid rgba(207,113,126,.3); outline-offset:2px; }.shopping-item.is-purchased { min-height:61px; border-color:rgba(99,147,109,.15); background:rgba(249,255,249,.62); box-shadow:none; }.shopping-item.is-purchased .shopping-item-check { border-color:#78b88c; background:#7abd90; box-shadow:inset 0 0 0 4px rgba(255,255,255,.27); }.shopping-item.is-purchased .shopping-item-copy strong { color:#78917d; text-decoration:line-through; text-decoration-thickness:1px; }.shopping-item.is-purchased .shopping-item-copy span { color:#88a08d; }
.shopping-item-actions { display:flex; align-items:center; gap:3px; margin-left:1px; }.shopping-item-action { display:grid; width:28px; height:28px; flex:0 0 auto; place-items:center; border:0; border-radius:9px; padding:0; color:#a47379; background:transparent; font:700 1rem/1 "DM Sans",sans-serif; cursor:pointer; transition:color .16s ease,background .16s ease,transform .16s ease; }.shopping-item-action:hover { color:#a8525c; background:#fff0ee; transform:translateY(-1px); }.shopping-item-action:disabled,.shopping-item-check:disabled { opacity:.52; cursor:wait; transform:none; }.shopping-item-delete:hover { color:#bd4d59; background:#ffedee; }
.shopping-purchased { margin-top:13px; border-top:1px solid rgba(116,158,124,.16); padding-top:10px; }.shopping-purchased summary { display:flex; align-items:center; gap:8px; color:#79917e; font-size:.74rem; font-weight:700; cursor:pointer; list-style:none; }.shopping-purchased summary::-webkit-details-marker { display:none; }.shopping-purchased summary::before { content:"⌄"; display:grid; width:17px; height:17px; place-items:center; border-radius:50%; color:#6c9a78; background:#ecf8ee; font-size:.95rem; line-height:1; transition:transform .16s ease; }.shopping-purchased:not([open]) summary::before { transform:rotate(-90deg); }.shopping-purchased summary::after { content:""; height:1px; flex:1; background:rgba(116,158,124,.14); }.shopping-purchased-items { padding-top:9px; }.shopping-purchased-items .shopping-item:last-child { margin-bottom:0; }
.shopping-item-editing { display:grid; grid-template-columns:minmax(0,1fr) 82px auto; gap:7px; min-height:64px; background:#fffdfc; }.shopping-item-editing input { min-width:0; height:39px; border:1px solid rgba(185,94,105,.2); border-radius:11px; outline:0; padding:0 10px; color:#4a3538; background:#fff8f6; font:600 .82rem "DM Sans",sans-serif; }.shopping-item-editing input:focus { border-color:rgba(188,91,104,.58); box-shadow:0 0 0 3px rgba(202,105,116,.1); }.shopping-edit-actions { display:flex; align-items:center; gap:3px; }.shopping-item-save { color:#fff; background:#bd6670; }.shopping-item-save:hover { color:#fff; background:#a8525c; }
.shopping-confirm { position:fixed; z-index:80; inset:0; display:grid; place-items:center; padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left)); }.shopping-confirm-backdrop { position:absolute; inset:0; border:0; background:rgba(62,39,43,.35); backdrop-filter:blur(8px); cursor:pointer; }.shopping-confirm-card { position:relative; z-index:1; width:min(390px,100%); border:1px solid rgba(255,255,255,.88); border-radius:25px; padding:29px 26px 24px; color:#463135; background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(255,244,242,.97)); box-shadow:0 26px 70px rgba(76,39,46,.23); text-align:center; animation:install-card-in .2s ease-out; }.shopping-confirm-icon { display:grid; width:39px; height:39px; place-items:center; margin:0 auto 13px; border-radius:13px; color:#b55361; background:#fff0ee; font:500 1.55rem/1 "DM Sans",sans-serif; }.shopping-confirm-card .eyebrow { margin:0 0 8px; }.shopping-confirm-card h2 { margin:0; font:600 1.72rem/1 "Playfair Display",serif; letter-spacing:-.04em; }.shopping-confirm-card > p:not(.eyebrow) { margin:12px auto 21px; color:#92787c; font-size:.83rem; line-height:1.5; }.shopping-confirm-card > div { display:grid; grid-template-columns:1fr 1fr; gap:8px; }.shopping-confirm-card > div button { min-height:43px; border-radius:13px; padding:0 11px; font:700 .8rem "DM Sans",sans-serif; cursor:pointer; }.shopping-confirm-cancel { border:1px solid rgba(171,94,103,.2); color:#926e73; background:rgba(255,255,255,.73); }.shopping-confirm-delete { border:1px solid #b55361; color:#fff; background:#b55361; box-shadow:0 7px 14px rgba(181,83,97,.18); }.shopping-confirm-delete:disabled,.shopping-confirm-cancel:disabled { opacity:.58; cursor:wait; }body.shopping-confirm-open { overflow:hidden; }
@media (max-width:720px) { .shopping-item-actions { gap:1px; }.shopping-item-action { width:27px; height:27px; }.shopping-item-editing { grid-template-columns:minmax(0,1fr) 64px auto; gap:5px; }.shopping-item-editing input { height:38px; padding:0 8px; font-size:16px; }.shopping-purchased { margin-top:11px; }.shopping-confirm { align-items:end; padding:14px 14px calc(14px + env(safe-area-inset-bottom)); }.shopping-confirm-card { border-radius:23px; padding:25px 20px 20px; } }

/* Final responsive polish for the shared list. */
.shopping-card { isolation:isolate; }.shopping-topbar > div { min-width:0; }.shopping-topbar h2,.shopping-topbar > div > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.shopping-list { overscroll-behavior:contain; scroll-padding-block:12px; }.shopping-item { position:relative; min-width:0; transition:border-color .16s ease,background .16s ease,box-shadow .16s ease,transform .16s ease; }.shopping-item:hover { border-color:rgba(181,91,103,.26); box-shadow:0 8px 17px rgba(114,65,69,.07); }.shopping-item-copy strong { display:-webkit-box; overflow:visible; -webkit-box-orient:vertical; -webkit-line-clamp:2; text-overflow:clip; white-space:normal; word-break:break-word; }.shopping-item-copy span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.shopping-item-quantity { flex:0 1 auto; min-width:0; }.shopping-item.is-purchased:hover { border-color:rgba(102,155,114,.26); background:rgba(249,255,249,.86); box-shadow:0 7px 15px rgba(86,129,94,.07); }.shopping-empty { min-height:170px; }.shopping-empty > span { display:grid; width:44px; height:44px; place-items:center; border:1px solid rgba(194,108,120,.16); border-radius:15px; background:rgba(255,242,240,.7); box-shadow:inset 0 1px rgba(255,255,255,.9); }.shopping-purchased { scroll-margin-block:14px; }.shopping-purchased summary { min-height:29px; border-radius:10px; padding:0 4px; transition:background .16s ease; }.shopping-purchased summary:hover { background:rgba(236,248,238,.55); }.shopping-composer { z-index:1; box-shadow:0 -7px 19px rgba(112,65,66,.035); }.shopping-composer input::placeholder { color:#ac999b; opacity:1; }.shopping-composer button:focus-visible,.shopping-back:focus-visible { outline:3px solid rgba(207,113,126,.3); outline-offset:3px; }.shopping-error { max-height:76px; overflow-y:auto; }
@media (hover:hover) and (pointer:fine) { .shopping-item-actions { opacity:.64; transition:opacity .16s ease; }.shopping-item:hover .shopping-item-actions,.shopping-item:focus-within .shopping-item-actions { opacity:1; } }
@media (max-width:720px) { .shopping-view { padding-top:max(84px,calc(72px + env(safe-area-inset-top))); padding-bottom:max(10px,env(safe-area-inset-bottom)); }.shopping-card { height:calc(100svh - max(94px,calc(82px + env(safe-area-inset-top)))); }.shopping-topbar { align-items:flex-start; }.shopping-topbar > div { padding-top:1px; }.shopping-back { min-height:34px; white-space:nowrap; }.shopping-list { padding:10px 9px 12px; }.shopping-section-label { margin:3px 2px 8px; }.shopping-item { gap:9px; min-height:62px; border-radius:15px; padding:9px; }.shopping-item:hover { box-shadow:inset 0 1px rgba(255,255,255,.78); }.shopping-item-check { width:25px; height:25px; }.shopping-item-copy { gap:3px; }.shopping-item-copy strong { font-size:.85rem; line-height:1.16; }.shopping-item-copy span { font-size:.65rem; }.shopping-item-quantity { max-width:76px; padding:5px 6px; font-size:.66rem; }.shopping-item-actions { margin-left:-2px; }.shopping-item-action { width:28px; height:28px; }.shopping-purchased-items { padding-top:7px; }.shopping-empty { min-height:142px; padding:18px; }.shopping-empty > span { width:40px; height:40px; border-radius:14px; }.shopping-empty strong { margin-top:10px; }.shopping-empty p { margin-top:6px; font-size:.74rem; }.shopping-composer { grid-template-columns:minmax(0,1fr) 63px 44px; padding:8px 9px max(8px,env(safe-area-inset-bottom)); }.shopping-composer input { border-radius:13px; }.shopping-composer .shopping-quantity { padding:0 5px; }.shopping-item-editing { grid-template-columns:minmax(0,1fr) 58px auto; }.shopping-item-editing input { min-width:0; }.shopping-confirm-card { width:min(430px,100%); } }
@media (max-width:370px) { .shopping-topbar { gap:7px; padding:13px 11px; }.shopping-mark { width:35px; height:35px; border-radius:12px; }.shopping-topbar .eyebrow { display:none; }.shopping-topbar h2 { font-size:1.08rem; }.shopping-topbar > div > span { font-size:.62rem; }.shopping-back { padding:7px 6px; font-size:.62rem; }.shopping-composer { grid-template-columns:minmax(0,1fr) 54px 42px; gap:5px; padding-inline:7px; }.shopping-composer button { width:42px; }.shopping-item { gap:7px; padding:8px; }.shopping-item-quantity { display:none; }.shopping-item-actions { gap:0; }.shopping-item-action { width:26px; height:26px; }.shopping-item-editing { grid-template-columns:minmax(0,1fr) auto; grid-template-rows:38px 30px; }.shopping-item-editing input[name="name"] { grid-column:1; grid-row:1; }.shopping-item-editing input[name="quantity"] { grid-column:1; grid-row:2; width:70px; height:30px; }.shopping-item-editing .shopping-edit-actions { grid-column:2; grid-row:1 / span 2; } }
@media (prefers-reduced-motion:reduce) { .shopping-item,.shopping-item-action,.shopping-item-check,.shopping-purchased summary { transition:none; }.shopping-item { animation:none; } }

/* Training — foundation view */
.button-workouts { min-width:210px; min-height:50px; border:1px solid rgba(116,137,113,.28); border-radius:17px; color:#597257; background:linear-gradient(135deg,rgba(255,255,255,.9),rgba(240,247,235,.78)); box-shadow:0 8px 18px rgba(79,105,76,.09); }
.button-workouts:hover { border-color:rgba(94,127,90,.52); background:#fff; box-shadow:0 12px 23px rgba(79,105,76,.14); }
.workouts-button-icon { display:grid; width:22px; height:22px; place-items:center; border-radius:8px; color:#63805f; background:#edf5e8; }.workouts-button-icon svg,.workouts-mark svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.9; }
.workouts-view { width:min(920px,calc(100% - 40px)); align-items:center; justify-content:center; margin:auto; padding:100px 0 34px; }
.workouts-card { display:flex; width:min(650px,100%); min-height:560px; flex-direction:column; overflow:hidden; border:1px solid rgba(255,255,255,.88); border-radius:29px; background:linear-gradient(145deg,rgba(255,255,255,.88),rgba(250,255,248,.76)); box-shadow:0 24px 70px rgba(75,102,72,.14); backdrop-filter:blur(18px); }
.workouts-topbar { display:flex; align-items:center; gap:12px; padding:18px 20px; border-bottom:1px solid rgba(103,130,98,.14); }.workouts-mark { display:grid; width:43px; height:43px; flex:0 0 auto; place-items:center; border:1px solid rgba(102,133,96,.16); border-radius:14px; color:#668161; background:linear-gradient(145deg,#f6fbed,#e8f2e2); box-shadow:inset 0 1px rgba(255,255,255,.9); }.workouts-topbar .eyebrow { margin:0 0 4px; color:#799371; font-size:.6rem; }.workouts-topbar h2 { margin:0; color:#3f543e; font:600 1.34rem/1 "Playfair Display",serif; letter-spacing:-.035em; }.workouts-topbar > div { min-width:0; }.workouts-topbar > div > span { display:block; overflow:hidden; margin-top:4px; color:#81937f; font-size:.71rem; font-weight:600; text-overflow:ellipsis; white-space:nowrap; }.workouts-back { min-height:34px; margin-left:auto; flex:0 0 auto; border:1px solid rgba(104,137,99,.14); border-radius:10px; padding:0 10px; color:#668160; background:rgba(245,250,241,.86); font:700 .72rem "DM Sans",sans-serif; cursor:pointer; transition:transform .16s ease,background .16s ease; }.workouts-back:hover { background:#edf6e8; transform:translateX(-1px); }
.workouts-content { flex:1; padding:17px; }.workouts-overview { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }.workouts-stat-card { display:flex; min-width:0; align-items:center; gap:10px; border:1px solid rgba(96,126,91,.14); border-radius:17px; padding:12px; background:linear-gradient(135deg,rgba(255,255,255,.82),rgba(243,250,239,.68)); box-shadow:inset 0 1px rgba(255,255,255,.75); }.workouts-stat-card > div { display:grid; min-width:0; gap:3px; }.workouts-stat-icon { display:grid; width:33px; height:33px; flex:0 0 auto; place-items:center; border-radius:11px; color:#668160; background:#e5f0df; font:700 1.18rem/1 "DM Sans",sans-serif; }.workouts-stat-streak .workouts-stat-icon { color:#a67561; background:#fff0e5; }.workouts-stat-card span:not(.workouts-stat-icon),.workouts-stat-card small { overflow:hidden; color:#849582; font-size:.62rem; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }.workouts-stat-card strong { overflow:hidden; color:#425a40; font:700 1.32rem/1.06 "DM Sans",sans-serif; letter-spacing:-.055em; text-overflow:ellipsis; white-space:nowrap; }.workouts-ready-card { display:flex; align-items:flex-start; gap:12px; margin-top:13px; border:1px solid rgba(99,135,93,.16); border-radius:18px; padding:14px; background:linear-gradient(125deg,rgba(241,249,237,.9),rgba(255,255,255,.72)); }.workouts-ready-icon { display:grid; width:32px; height:32px; flex:0 0 auto; place-items:center; border-radius:11px; color:#6d8b67; background:#e3f0dc; font:600 1.25rem/1 "Playfair Display",serif; }.workouts-ready-card .eyebrow { margin:1px 0 5px; color:#769270; font-size:.59rem; }.workouts-ready-card h3 { margin:0; color:#435741; font-size:.91rem; }.workouts-ready-card p:not(.eyebrow) { margin:5px 0 0; color:#81907f; font-size:.72rem; line-height:1.45; }.workouts-history { margin-top:17px; }.workouts-history-heading { display:flex; align-items:center; justify-content:space-between; padding:0 3px 9px; }.workouts-history-heading strong { color:#50634d; font-size:.82rem; }.workouts-history-heading span { color:#92a08f; font-size:.68rem; font-weight:700; }.workouts-empty { display:grid; min-height:165px; place-content:center; justify-items:center; border:1px dashed rgba(101,135,96,.25); border-radius:18px; padding:18px; color:#82907f; background:rgba(255,255,255,.38); text-align:center; }.workouts-empty > span { display:grid; width:38px; height:38px; place-items:center; border-radius:13px; color:#73906d; background:#edf5e8; font:1.2rem/1 "Playfair Display",serif; }.workouts-empty strong { margin-top:9px; color:#5c7059; font-size:.84rem; }.workouts-empty p { max-width:250px; margin:5px 0 0; font-size:.72rem; line-height:1.45; }.workouts-empty.has-history { display:grid; min-height:0; gap:7px; place-content:stretch; padding:0; border:0; background:transparent; }.workout-history-row { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:51px; border:1px solid rgba(96,126,91,.12); border-radius:14px; padding:0 13px; background:rgba(255,255,255,.65); text-align:left; }.workout-history-row strong { overflow:hidden; color:#4d614a; font-size:.79rem; text-overflow:ellipsis; white-space:nowrap; }.workout-history-row span { flex:0 0 auto; color:#899b86; font-size:.67rem; font-weight:700; }
.workouts-actions { display:flex; align-items:center; gap:11px; border-top:1px solid rgba(103,130,98,.13); padding:13px 17px; background:rgba(250,255,248,.68); }.workouts-start { min-height:43px; flex:0 0 auto; border:0; border-radius:14px; padding:0 16px; color:#fff; background:linear-gradient(145deg,#789571,#557950); box-shadow:0 7px 15px rgba(77,114,73,.18); font:700 .78rem "DM Sans",sans-serif; }.workouts-start:disabled { opacity:.58; cursor:not-allowed; box-shadow:none; }.workouts-actions p { margin:0; color:#8b9988; font-size:.68rem; line-height:1.35; }.workouts-error { margin:0; border-top:1px solid rgba(181,83,97,.12); padding:8px 14px; color:#ad515c; background:#fff5f3; font-size:.75rem; font-weight:700; text-align:center; }
@media (max-width:720px) { .button-workouts { min-width:224px; min-height:52px; }.workouts-view { width:calc(100% - 20px); min-height:100svh; padding:84px 0 10px; }.workouts-card { width:100%; min-height:calc(100svh - 94px); border-radius:24px; }.workouts-topbar { gap:9px; padding:15px; }.workouts-mark { width:39px; height:39px; border-radius:13px; }.workouts-topbar h2 { font-size:1.18rem; }.workouts-topbar > div > span { font-size:.66rem; }.workouts-back { padding:0 8px; font-size:.66rem; }.workouts-content { padding:11px 10px 14px; }.workouts-overview { gap:7px; }.workouts-stat-card { gap:8px; border-radius:14px; padding:10px 9px; }.workouts-stat-icon { width:29px; height:29px; border-radius:10px; font-size:1rem; }.workouts-stat-card strong { font-size:1.14rem; }.workouts-stat-card span:not(.workouts-stat-icon),.workouts-stat-card small { font-size:.57rem; }.workouts-ready-card { margin-top:10px; border-radius:16px; padding:12px; }.workouts-history { margin-top:13px; }.workouts-empty { min-height:140px; }.workouts-actions { padding:10px; padding-bottom:max(10px,env(safe-area-inset-bottom)); }.workouts-actions p { font-size:.65rem; } }

/* Training catalogue — images are shown only after opening a muscle group. */
.workouts-card { height:min(700px,calc(100svh - 135px)); min-height:430px; }
.workout-catalog { display:flex; min-height:0; flex:1; flex-direction:column; overflow-y:auto; overscroll-behavior:contain; padding:17px; scrollbar-width:thin; }
.workout-catalog-header { display:grid; gap:10px; margin-bottom:15px; }.workout-catalog-back { justify-self:start; min-height:31px; border:0; border-radius:10px; padding:0 10px; color:#658060; background:#edf5e8; font:700 .69rem "DM Sans",sans-serif; cursor:pointer; transition:transform .16s ease,background .16s ease; }.workout-catalog-back:hover { background:#e3f0dc; transform:translateX(-1px); }.workout-catalog-header .eyebrow { margin:0 0 4px; color:#789370; font-size:.59rem; }.workout-catalog-header h3 { margin:0; color:#405540; font:600 1.18rem/1.1 "Playfair Display",serif; letter-spacing:-.025em; }.workout-catalog-header p:not(.eyebrow) { margin:5px 0 0; color:#83937f; font-size:.71rem; line-height:1.42; }
.workout-group-grid,.workout-exercise-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.workout-group-card { display:grid; grid-template-columns:34px minmax(0,1fr); grid-template-rows:minmax(0,1fr) auto; min-height:116px; gap:9px; border:1px solid rgba(95,128,89,.16); border-radius:17px; padding:13px; color:#425640; background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(239,248,235,.78)); box-shadow:0 8px 17px rgba(73,104,68,.07); text-align:left; cursor:pointer; transition:transform .17s ease,box-shadow .17s ease,border-color .17s ease; }.workout-group-card:hover { border-color:rgba(91,129,82,.42); box-shadow:0 12px 23px rgba(73,104,68,.13); transform:translateY(-2px); }.workout-group-card > div { min-width:0; }.workout-group-card strong,.workout-group-card span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.workout-group-card strong { margin-top:1px; color:#496147; font-size:.84rem; }.workout-group-card span { margin-top:5px; color:#82917f; font-size:.64rem; }.workout-group-card b { align-self:end; grid-column:1 / -1; color:#789271; font-size:.63rem; }.workout-group-mark { display:grid; width:34px; height:34px; place-items:center; border-radius:11px; color:#668160; background:#e9f3e4; }.workout-group-mark svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; }
.workout-exercise-card { overflow:hidden; border:1px solid rgba(96,126,91,.14); border-radius:17px; background:rgba(255,255,255,.78); box-shadow:0 7px 16px rgba(75,102,72,.08); animation:workout-card-in .23s ease-out both; }.workout-exercise-card img { display:block; width:100%; aspect-ratio:1 / 1; object-fit:cover; background:#eef4eb; }.workout-exercise-card > div { min-width:0; padding:10px 10px 11px; }.workout-exercise-card strong,.workout-exercise-card span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.workout-exercise-card strong { color:#4a6047; font-size:.76rem; }.workout-exercise-card span { margin-top:4px; color:#8c9b88; font-size:.6rem; }.workout-catalog-empty { display:grid; min-height:230px; place-content:center; justify-items:center; border:1px dashed rgba(101,135,96,.26); border-radius:18px; padding:22px; color:#82907f; background:rgba(255,255,255,.38); text-align:center; }.workout-catalog-empty > span { display:grid; width:40px; height:40px; place-items:center; border-radius:13px; color:#73906d; background:#edf5e8; font:1.35rem/1 "Playfair Display",serif; }.workout-catalog-empty strong { margin-top:10px; color:#5c7059; font-size:.85rem; }.workout-catalog-empty p { max-width:270px; margin:6px 0 0; font-size:.72rem; line-height:1.45; }@keyframes workout-card-in { from { opacity:0; transform:translateY(6px) scale(.98); } to { opacity:1; transform:translateY(0) scale(1); } }
@media (max-width:720px) { .workouts-card { height:calc(100svh - 94px); min-height:0; }.workout-catalog { padding:13px 11px; }.workout-catalog-header { margin-bottom:12px; }.workout-group-grid,.workout-exercise-grid { gap:8px; }.workout-group-card { min-height:105px; border-radius:15px; padding:11px; }.workout-exercise-card { border-radius:15px; }.workout-exercise-card > div { padding:8px 9px 9px; }.workout-catalog-empty { min-height:210px; } }
@media (prefers-reduced-motion:reduce) { .workout-group-card { transition:none; }.workout-exercise-card { animation:none; } }

/* Training builder — a draft is kept on the server while the plan is being made. */
.workout-exercise-card { width:100%; padding:0; color:inherit; text-align:left; font:inherit; cursor:pointer; transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease; }.workout-exercise-card:hover { border-color:rgba(95,130,87,.35); transform:translateY(-1px); }.workout-exercise-card.is-selected { border-color:#789a6d; box-shadow:0 0 0 2px rgba(112,148,100,.14),0 9px 19px rgba(75,102,72,.12); }.workout-exercise-card.is-selected::after { position:absolute; z-index:2; top:8px; right:8px; display:grid; width:24px; height:24px; place-items:center; border:2px solid #fff; border-radius:50%; color:#fff; background:#729367; box-shadow:0 4px 9px rgba(58,92,54,.22); content:"✓"; font:800 .76rem/1 "DM Sans",sans-serif; }.workout-exercise-card { position:relative; }.workout-exercise-card.is-selected span { color:#63835c; font-weight:700; }
.workout-selection-bar { position:sticky; z-index:3; bottom:-17px; display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto; padding:13px 1px 18px; background:linear-gradient(180deg,rgba(250,255,248,0),rgba(250,255,248,.96) 33%); }.workout-selection-bar > div { display:grid; min-width:0; gap:2px; }.workout-selection-bar strong { color:#50694d; font-size:.78rem; }.workout-selection-bar span { color:#8a9986; font-size:.63rem; }.workout-selection-bar button,.workout-builder-start { display:inline-flex; min-height:40px; align-items:center; justify-content:center; gap:8px; flex:0 0 auto; border:0; border-radius:13px; padding:0 13px; color:#fff; background:linear-gradient(145deg,#789571,#557950); box-shadow:0 7px 15px rgba(77,114,73,.18); font:700 .72rem "DM Sans",sans-serif; cursor:pointer; transition:transform .16s ease,filter .16s ease; }.workout-selection-bar button:hover,.workout-builder-start:hover:not(:disabled) { filter:brightness(1.04); transform:translateY(-1px); }.workout-builder { display:flex; min-height:0; flex:1; flex-direction:column; overflow-y:auto; overscroll-behavior:contain; padding:17px; scrollbar-width:thin; }.workout-builder-header { display:grid; gap:10px; margin-bottom:15px; }.workout-builder-header .eyebrow { margin:0 0 4px; color:#789370; font-size:.59rem; }.workout-builder-header h3 { margin:0; color:#405540; font:600 1.18rem/1.1 "Playfair Display",serif; letter-spacing:-.025em; }.workout-builder-header p:not(.eyebrow) { margin:5px 0 0; color:#83937f; font-size:.71rem; line-height:1.42; }.workout-name-field { display:grid; gap:6px; margin-bottom:13px; }.workout-name-field span { color:#6e816b; font-size:.68rem; font-weight:700; }.workout-name-field input { width:100%; height:43px; border:1px solid rgba(97,129,91,.18); border-radius:13px; outline:0; padding:0 12px; color:#456043; background:rgba(255,255,255,.72); font:600 .83rem "DM Sans",sans-serif; }.workout-name-field input:focus { border-color:rgba(100,142,91,.58); box-shadow:0 0 0 4px rgba(112,150,103,.12); }.workout-builder-list { display:grid; gap:8px; }.workout-builder-item { display:grid; grid-template-columns:27px 44px minmax(0,1fr) auto; align-items:center; gap:9px; min-height:64px; border:1px solid rgba(96,126,91,.14); border-radius:15px; padding:8px; background:rgba(255,255,255,.7); box-shadow:0 5px 12px rgba(75,102,72,.05); }.workout-builder-position { display:grid; width:27px; height:27px; place-items:center; border-radius:9px; color:#6f8969; background:#edf5e8; font-size:.69rem; font-weight:800; }.workout-builder-item img { display:block; width:44px; height:44px; border-radius:11px; object-fit:cover; background:#eef4eb; }.workout-builder-item > div:nth-of-type(1) { min-width:0; }.workout-builder-item strong,.workout-builder-item span:not(.workout-builder-position) { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.workout-builder-item strong { color:#4b6148; font-size:.76rem; }.workout-builder-item span:not(.workout-builder-position) { margin-top:4px; color:#8a9a87; font-size:.62rem; }.workout-builder-controls { display:grid; grid-template-columns:repeat(3,27px); gap:3px; }.workout-builder-controls button { display:grid; width:27px; height:27px; place-items:center; border:1px solid rgba(98,129,92,.13); border-radius:8px; padding:0; color:#668160; background:#f6faf3; font:700 .8rem/1 "DM Sans",sans-serif; cursor:pointer; }.workout-builder-controls button:last-child { color:#a96867; background:#fff4f2; }.workout-builder-controls button:disabled { opacity:.32; cursor:default; }.workout-builder-empty { display:grid; min-height:215px; place-content:center; justify-items:center; border:1px dashed rgba(101,135,96,.25); border-radius:18px; padding:18px; color:#82907f; background:rgba(255,255,255,.38); text-align:center; }.workout-builder-empty > span { display:grid; width:38px; height:38px; place-items:center; border-radius:13px; color:#73906d; background:#edf5e8; font:1.2rem/1 "Playfair Display",serif; }.workout-builder-empty strong { margin-top:9px; color:#5c7059; font-size:.84rem; }.workout-builder-empty p { max-width:250px; margin:5px 0 0; font-size:.72rem; line-height:1.45; }.workout-builder-note { min-height:18px; margin:10px 2px 0; color:#799270; font-size:.67rem; font-weight:700; }.workout-builder-note.is-saving { color:#83947f; }.workout-builder-note.is-error { color:#b05b60; }.workout-builder-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto; padding-top:13px; }.workout-builder-clear { min-height:40px; border:1px solid rgba(169,96,98,.18); border-radius:13px; padding:0 12px; color:#9d6669; background:#fff9f8; font:700 .72rem "DM Sans",sans-serif; cursor:pointer; }.workout-builder-start:disabled { opacity:.52; cursor:not-allowed; box-shadow:none; }
@media (max-width:720px) { .workout-selection-bar { padding:12px 0 0; }.workout-selection-bar button,.workout-builder-start { min-height:39px; padding-inline:11px; font-size:.69rem; }.workout-builder { padding:13px 11px; }.workout-builder-item { grid-template-columns:25px 42px minmax(0,1fr) auto; gap:7px; padding:7px; }.workout-builder-position { width:25px; height:25px; }.workout-builder-item img { width:42px; height:42px; }.workout-builder-controls { grid-template-columns:repeat(3,25px); gap:2px; }.workout-builder-controls button { width:25px; height:25px; }.workout-builder-item strong { font-size:.72rem; }.workout-builder-item span:not(.workout-builder-position) { font-size:.59rem; } }

/* Active workout — focused on one exercise while retaining all three sets. */
.workout-session { display:flex; min-height:0; flex:1; flex-direction:column; overflow-y:auto; overscroll-behavior:contain; padding:17px; scrollbar-width:thin; }.workout-session-header { display:grid; gap:10px; }.workout-session-header .eyebrow { margin:0 0 4px; color:#789370; font-size:.59rem; }.workout-session-header h3 { margin:0; color:#405540; font:600 1.22rem/1.1 "Playfair Display",serif; letter-spacing:-.025em; }.workout-session-header p:not(.eyebrow) { margin:5px 0 0; color:#83937f; font-size:.71rem; line-height:1.42; }.workout-session-progress { height:6px; overflow:hidden; margin:15px 0; border-radius:99px; background:#e9f0e6; }.workout-session-progress span { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,#a1c294,#65875f); box-shadow:0 0 8px rgba(96,135,87,.3); transition:width .3s ease; }.workout-session-exercise { display:grid; grid-template-columns:76px minmax(0,1fr); align-items:center; gap:12px; border:1px solid rgba(96,126,91,.15); border-radius:18px; padding:10px; background:linear-gradient(135deg,rgba(242,250,238,.91),rgba(255,255,255,.72)); box-shadow:0 8px 17px rgba(75,102,72,.06); }.workout-session-exercise img { display:block; width:76px; height:76px; border-radius:14px; object-fit:cover; background:#edf4e9; }.workout-session-exercise span { color:#82947e; font-size:.64rem; font-weight:700; }.workout-session-exercise h4 { overflow:hidden; margin:5px 0 0; color:#466043; font-size:.96rem; line-height:1.16; text-overflow:ellipsis; white-space:nowrap; }.workout-set-list { display:grid; gap:8px; margin-top:14px; }.workout-set-row { display:grid; grid-template-columns:minmax(90px,.8fr) minmax(0,1.35fr); align-items:center; gap:11px; border:1px solid rgba(98,129,92,.14); border-radius:15px; padding:11px; background:rgba(255,255,255,.6); transition:border-color .16s ease,box-shadow .16s ease,background .16s ease; }.workout-set-row.is-current { border-color:rgba(103,146,93,.58); background:linear-gradient(135deg,rgba(239,248,234,.96),rgba(255,255,255,.85)); box-shadow:0 7px 15px rgba(76,108,70,.1); }.workout-set-row.is-complete { border-color:rgba(105,146,96,.26); }.workout-set-row > div:first-child { min-width:0; }.workout-set-row strong,.workout-set-row > div:first-child span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.workout-set-row strong { color:#50674d; font-size:.76rem; }.workout-set-row > div:first-child span { margin-top:5px; color:#909e8c; font-size:.61rem; }.workout-set-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }.workout-set-fields label { position:relative; display:grid; min-width:0; gap:4px; }.workout-set-fields label > span { color:#7e8f7a; font-size:.56rem; font-weight:700; }.workout-set-fields input { width:100%; height:37px; border:1px solid rgba(96,129,90,.16); border-radius:10px; outline:0; padding:0 8px; color:#435e41; background:#fff; font:700 .79rem "DM Sans",sans-serif; text-align:center; }.workout-set-fields input:focus { border-color:rgba(100,142,91,.58); box-shadow:0 0 0 3px rgba(112,150,103,.12); }.workout-set-fields input:disabled { color:#9ba598; background:#f6f8f4; }.workout-set-fields i { position:absolute; right:7px; bottom:10px; color:#9aaa96; font:600 .55rem/1 "DM Sans",sans-serif; font-style:normal; pointer-events:none; }.workout-set-fields label:has(i) input { padding-right:20px; }.workout-session-note { min-height:18px; margin:10px 2px 0; color:#799270; font-size:.67rem; font-weight:700; }.workout-session-note.is-saving { color:#83947f; }.workout-session-note.is-error { color:#b05b60; }.workout-session-actions { margin-top:auto; padding-top:13px; }.workout-session-next { display:flex; width:100%; min-height:46px; align-items:center; justify-content:center; gap:8px; border:0; border-radius:15px; color:#fff; background:linear-gradient(145deg,#789571,#557950); box-shadow:0 8px 17px rgba(77,114,73,.2); font:700 .79rem "DM Sans",sans-serif; cursor:pointer; transition:transform .16s ease,filter .16s ease,opacity .16s ease; }.workout-session-next:hover:not(:disabled) { filter:brightness(1.04); transform:translateY(-1px); }.workout-session-next:disabled { opacity:.5; cursor:not-allowed; box-shadow:none; }
@media (max-width:720px) { .workout-session { padding:13px 11px; }.workout-session-exercise { grid-template-columns:67px minmax(0,1fr); border-radius:16px; padding:9px; }.workout-session-exercise img { width:67px; height:67px; border-radius:13px; }.workout-session-exercise h4 { font-size:.88rem; }.workout-set-row { grid-template-columns:90px minmax(0,1fr); gap:8px; border-radius:14px; padding:9px; }.workout-set-fields { gap:5px; }.workout-set-fields input { height:36px; font-size:.76rem; }.workout-session-next { min-height:44px; font-size:.75rem; } }
@media (prefers-reduced-motion:reduce) { .workout-session-progress span,.workout-set-row,.workout-session-next { transition:none; } }

/* Completion state — a concise summary before returning to the training history. */
.workout-complete { display:grid; min-height:0; flex:1; align-content:center; justify-items:center; padding:clamp(28px,7vh,58px) 24px; text-align:center; }.workout-complete-mark { display:grid; width:68px; height:68px; place-items:center; border:7px solid rgba(255,255,255,.72); border-radius:50%; color:#fff; background:linear-gradient(145deg,#93b783,#5d8c57); box-shadow:0 0 0 10px rgba(112,153,101,.09),0 16px 29px rgba(74,113,67,.2); font:800 2rem/1 "DM Sans",sans-serif; animation:workout-complete-pop .38s cubic-bezier(.2,.9,.2,1.2) both; }.workout-complete .eyebrow { margin:24px 0 8px; color:#789370; font-size:.62rem; }.workout-complete h3 { margin:0; color:#405540; font:600 clamp(1.9rem,6vw,2.5rem)/1.03 "Playfair Display",serif; letter-spacing:-.045em; }.workout-complete > p:not(.eyebrow) { max-width:330px; margin:13px 0 0; color:#82907f; font-size:.76rem; line-height:1.5; }.workout-complete-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:min(390px,100%); gap:7px; margin-top:22px; }.workout-complete-stats > div { display:grid; gap:4px; border:1px solid rgba(95,129,88,.14); border-radius:15px; padding:12px 6px; background:rgba(255,255,255,.63); }.workout-complete-stats strong { color:#4f694b; font:700 1.18rem/1 "DM Sans",sans-serif; letter-spacing:-.045em; }.workout-complete-stats span { color:#8a9a87; font-size:.59rem; font-weight:700; }.workout-complete-actions { display:grid; grid-template-columns:1fr 1fr; width:min(390px,100%); gap:8px; margin-top:18px; }.workout-complete-actions button { min-height:43px; border:1px solid rgba(96,129,90,.16); border-radius:14px; padding:0 11px; color:#607b5b; background:#f5faf2; font:700 .73rem "DM Sans",sans-serif; cursor:pointer; transition:transform .16s ease,filter .16s ease; }.workout-complete-actions button:last-child { color:#fff; border:0; background:linear-gradient(145deg,#789571,#557950); box-shadow:0 7px 15px rgba(77,114,73,.18); }.workout-complete-actions button:hover { filter:brightness(1.03); transform:translateY(-1px); }@keyframes workout-complete-pop { from { opacity:0; transform:scale(.72); } to { opacity:1; transform:scale(1); } }
@media (max-width:720px) { .workout-complete { padding:36px 17px; }.workout-complete-mark { width:62px; height:62px; font-size:1.8rem; }.workout-complete .eyebrow { margin-top:21px; }.workout-complete-stats { margin-top:19px; }.workout-complete-stats > div { border-radius:13px; padding:11px 5px; } }
@media (prefers-reduced-motion:reduce) { .workout-complete-mark,.workout-complete-actions button { animation:none; transition:none; } }

/* Full completion detail and protected cancellation of an active workout. */
.workouts-card { position:relative; }
.workout-session-header-actions { display:flex; align-items:center; justify-content:space-between; gap:8px; }.workout-session-cancel { min-height:31px; border:1px solid rgba(176,93,99,.2); border-radius:10px; padding:0 9px; color:#a45e64; background:#fff7f6; font:700 .67rem "DM Sans",sans-serif; cursor:pointer; transition:transform .16s ease,background .16s ease; }.workout-session-cancel:hover { background:#ffefed; transform:translateY(-1px); }.workout-complete-list { display:grid; width:min(390px,100%); max-height:176px; gap:6px; overflow-y:auto; margin-top:12px; padding-right:2px; scrollbar-width:thin; }.workout-complete-exercise { display:grid; grid-template-columns:27px minmax(0,1fr); align-items:center; gap:8px; border:1px solid rgba(95,129,88,.12); border-radius:13px; padding:8px 9px; background:rgba(255,255,255,.54); text-align:left; }.workout-complete-index { display:grid; width:27px; height:27px; place-items:center; border-radius:9px; color:#6d8a66; background:#edf5e8; font-size:.64rem; font-weight:800; }.workout-complete-exercise strong,.workout-complete-exercise span:not(.workout-complete-index) { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.workout-complete-exercise strong { color:#50664c; font-size:.71rem; }.workout-complete-exercise span:not(.workout-complete-index) { margin-top:3px; color:#879785; font-size:.59rem; }.workout-cancel-dialog { position:absolute; z-index:20; inset:0; display:grid; place-items:center; padding:20px; }.workout-cancel-backdrop { position:absolute; inset:0; border:0; background:rgba(52,66,48,.2); backdrop-filter:blur(5px); }.workout-cancel-card { position:relative; width:min(380px,100%); border:1px solid rgba(255,255,255,.84); border-radius:23px; padding:23px; color:#485946; background:rgba(255,253,252,.98); box-shadow:0 19px 48px rgba(59,70,55,.19); }.workout-cancel-card .eyebrow { margin:0 0 7px; color:#a86c6d; font-size:.59rem; }.workout-cancel-card h3 { margin:0; color:#4a5747; font:600 1.35rem/1.1 "Playfair Display",serif; letter-spacing:-.03em; }.workout-cancel-card > p:not(.eyebrow) { margin:11px 0 0; color:#82907f; font-size:.73rem; line-height:1.47; }.workout-cancel-card > div { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:18px; }.workout-cancel-card button:not(.workout-cancel-backdrop) { min-height:39px; border:1px solid rgba(101,133,94,.17); border-radius:12px; color:#63805e; background:#f4f9f1; font:700 .7rem "DM Sans",sans-serif; cursor:pointer; }.workout-cancel-card button:last-child { color:#fff; border:0; background:linear-gradient(145deg,#cf7477,#af525d); box-shadow:0 7px 14px rgba(175,82,93,.17); }.workout-cancel-card button:disabled { opacity:.55; cursor:wait; }
@media (max-width:720px) { .workout-session-cancel { padding:0 8px; font-size:.63rem; }.workout-complete-list { max-height:158px; }.workout-cancel-dialog { padding:14px; }.workout-cancel-card { border-radius:20px; padding:20px; } }

/* Final workout polish: touch-friendly fields, timers and stable small-screen layout. */
.workout-session-elapsed { display:inline-block; margin-left:7px; border-radius:8px; padding:3px 6px; color:#668160; background:#eef5e9; font:700 .62rem/1 "DM Sans",sans-serif; font-variant-numeric:tabular-nums; }.workout-remove-set { width:23px; height:23px; margin-left:auto; border:1px solid rgba(173,95,98,.16); border-radius:8px; padding:0; color:#ab6669; background:#fff7f6; font:700 1rem/1 "DM Sans",sans-serif; cursor:pointer; }.workout-set-row > div:first-child { display:flex; flex-wrap:wrap; align-items:center; gap:0 5px; }.workout-set-row > div:first-child span { width:100%; }.workout-add-set { width:100%; min-height:38px; margin-top:9px; border:1px dashed rgba(99,137,92,.4); border-radius:13px; color:#64805f; background:rgba(243,249,239,.72); font:700 .72rem "DM Sans",sans-serif; cursor:pointer; transition:background .16s ease,transform .16s ease; }.workout-add-set:hover { background:#ecf5e7; transform:translateY(-1px); }.workout-rest { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:9px; border:1px solid rgba(107,142,99,.18); border-radius:14px; padding:9px 11px; color:#557451; background:linear-gradient(135deg,rgba(238,247,233,.94),rgba(255,255,255,.7)); animation:workout-rest-in .2s ease-out both; }.workout-rest div { display:flex; align-items:baseline; gap:7px; }.workout-rest strong { font-size:.71rem; }.workout-rest span { color:#6d8c66; font:800 .84rem/1 "DM Sans",sans-serif; font-variant-numeric:tabular-nums; }.workout-rest button { min-height:29px; border:0; border-radius:9px; padding:0 9px; color:#688261; background:#fff; font:700 .64rem "DM Sans",sans-serif; cursor:pointer; box-shadow:0 3px 8px rgba(76,104,72,.08); }@keyframes workout-rest-in { from { opacity:0; transform:translateY(-5px); } to { opacity:1; transform:translateY(0); } }.workout-session-exercise { animation:workout-exercise-in .24s ease-out both; }@keyframes workout-exercise-in { from { opacity:0; transform:translateY(7px) scale(.985); } to { opacity:1; transform:translateY(0) scale(1); } }
@media (min-width:900px) { .workouts-view { width:min(1060px,calc(100% - 56px)); }.workouts-card { width:min(760px,100%); }.workout-session { padding:21px; }.workout-set-fields input { height:42px; } }
@media (max-width:720px) { .workouts-view { min-height:100svh; }.workouts-card { height:calc(100svh - 94px); }.workout-session { padding-bottom:calc(13px + env(safe-area-inset-bottom)); }.workout-set-fields input { min-height:44px; height:44px; font-size:16px; }.workout-remove-set { width:27px; height:27px; }.workout-add-set { min-height:42px; }.workout-rest { padding:10px 11px; }.workout-session-next { min-height:48px; } }
@media (prefers-reduced-motion:reduce) { .workout-session-exercise,.workout-rest { animation:none; }.workout-add-set { transition:none; } }

/* The workout card is intentionally app-like and has a capped height. Its
   dashboard must therefore scroll inside the card just like the catalogue,
   builder and active session — otherwise a longer history is clipped below
   the fold on phones, PWA and compact desktop windows. */
.workouts-topbar,.workouts-actions,.workouts-error { flex:0 0 auto; }
.workouts-content,.workout-catalog,.workout-builder,.workout-session {
  min-height:0;
  overflow-y:auto;
  overscroll-behavior-y:contain;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
  scrollbar-width:thin;
  scrollbar-gutter:stable;
}
.workouts-content { flex:1 1 auto; padding-bottom:22px; }
@media (max-width:720px) {
  .workouts-view { align-items:start; }
  .workouts-content { padding-bottom:max(20px,env(safe-area-inset-bottom)); }
}

/* Final training interaction polish: generous invisible touch targets without making the controls look heavier. */
.workout-builder-controls { grid-template-columns:repeat(3,34px); gap:2px; }
.workout-builder-controls button { position:relative; width:34px; height:34px; border:0; border-radius:10px; background:transparent; }
.workout-builder-controls button::before { position:absolute; inset:3px; border:1px solid rgba(98,129,92,.13); border-radius:8px; background:#f6faf3; box-shadow:inset 0 1px rgba(255,255,255,.86); content:""; }
.workout-builder-controls button > svg { position:relative; z-index:1; }
.workout-builder-controls button:last-child { background:transparent; }
.workout-builder-controls button:last-child::before { background:#fff4f2; }
.workout-session-actions { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2fr); gap:8px; }
.workout-session-next,.workout-session-skip { display:flex; width:100%; min-height:46px; align-items:center; justify-content:center; gap:8px; border-radius:15px; font:700 .75rem "DM Sans",sans-serif; cursor:pointer; transition:transform .16s ease,filter .16s ease,opacity .16s ease; }
.workout-session-skip { border:1px solid rgba(157,105,104,.2); color:#996569; background:#fff9f8; }
.workout-session-next:hover:not(:disabled),.workout-session-skip:hover:not(:disabled) { filter:brightness(1.04); transform:translateY(-1px); }
.workout-session-skip:disabled { opacity:.5; cursor:not-allowed; }
@media (max-width:720px) { .workout-builder-controls { grid-template-columns:repeat(3,32px); gap:1px; }.workout-builder-controls button { width:32px; height:32px; }.workout-session-next,.workout-session-skip { min-height:44px; font-size:.68rem; } }
@media (prefers-reduced-motion:reduce) { .workout-session-skip { transition:none; } }

/* Home chat action */
.button-chat .button-icon-chat { width:25px; height:25px; border:0; border-radius:9px; color:#b65663; background:linear-gradient(145deg,#fff8f6,#f8e1df); box-shadow:inset 0 1px rgba(255,255,255,.94),0 3px 8px rgba(173,80,93,.11); }
.button-icon-chat svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.65; }.button-icon-chat svg path:last-child { stroke-width:2.5; }
@media (max-width:720px) { .button-chat .button-icon-chat { width:24px; height:24px; border-radius:8px; }.button-icon-chat svg { width:17px; height:17px; } }

/* Direct audio calls */
.chat-topbar .call-button { display:grid; width:37px; height:37px; flex:0 0 auto; place-items:center; margin-left:auto; border:1px solid rgba(181,91,103,.18); border-radius:13px; padding:0; color:#b75c68; background:linear-gradient(145deg,#fff9f7,#fae8e6); box-shadow:inset 0 1px rgba(255,255,255,.92); cursor:pointer; transition:transform .16s ease,background .16s ease,color .16s ease,opacity .16s ease; }.chat-topbar .chat-menu-wrap { margin-left:0; }.call-button svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.75; }.call-button:hover:not(:disabled) { color:#a94e5a; background:#fff0ee; transform:translateY(-1px); }.call-button:disabled { opacity:.45; cursor:not-allowed; }.call-button:focus-visible,.call-control:focus-visible { outline:3px solid rgba(207,113,126,.32); outline-offset:3px; }
.call-overlay { position:fixed; z-index:90; inset:0; display:grid; place-items:center; padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left)); }.call-overlay-backdrop { position:absolute; inset:0; background:rgba(58,35,40,.36); backdrop-filter:blur(13px); }.call-card { position:relative; z-index:1; display:grid; justify-items:center; width:min(430px,100%); overflow:hidden; border:1px solid rgba(255,255,255,.88); border-radius:32px; padding:42px 34px 30px; color:#493438; background:linear-gradient(155deg,rgba(255,255,255,.98),rgba(255,241,239,.95)); box-shadow:0 32px 90px rgba(68,36,43,.27); text-align:center; animation:install-card-in .24s ease-out; }.call-wave { position:absolute; z-index:-1; border:1px solid rgba(205,112,124,.16); border-radius:50%; pointer-events:none; }.call-wave-one { width:260px; height:260px; top:-128px; right:-108px; }.call-wave-two { width:350px; height:350px; bottom:-228px; left:-190px; }.call-avatar { display:grid; width:92px; height:92px; place-items:center; border:1px solid rgba(255,255,255,.72); border-radius:30px; color:#fff; background:linear-gradient(145deg,#e2939b,#b35461); box-shadow:0 16px 32px rgba(176,80,93,.28),inset 0 1px rgba(255,255,255,.3); font:600 2.65rem/1 "Playfair Display",serif; }.call-card .eyebrow { margin:23px 0 9px; }.call-card h2 { margin:0; font:600 clamp(2rem,7vw,2.75rem)/1 "Playfair Display",serif; letter-spacing:-.045em; }.call-status { min-height:24px; margin:12px 0 0; color:#93777b; font-size:.86rem; line-height:1.45; }.call-timer { margin:12px 0 0; color:#b25864; font-size:1.1rem; font-weight:700; letter-spacing:.06em; }.call-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:9px; width:100%; margin-top:27px; }.call-control { display:inline-flex; min-width:132px; min-height:47px; align-items:center; justify-content:center; gap:8px; border:0; border-radius:15px; padding:0 15px; font:700 .82rem "DM Sans",sans-serif; cursor:pointer; transition:transform .16s ease,filter .16s ease,box-shadow .16s ease; }.call-control:hover { transform:translateY(-1px); filter:brightness(1.02); }.call-control span { font-size:1.12rem; line-height:1; }.call-accept { color:#fff; background:linear-gradient(135deg,#78b98c,#4e9a6b); box-shadow:0 9px 19px rgba(74,145,99,.22); }.call-decline,.call-end { color:#fff; background:linear-gradient(135deg,#d77b84,#b34f5d); box-shadow:0 9px 19px rgba(177,79,93,.22); }.call-mute { color:#9a5962; background:#fff; box-shadow:0 7px 16px rgba(109,62,67,.1); }.call-note { max-width:260px; margin:20px 0 0; color:#aa9295; font-size:.7rem; line-height:1.45; }body.call-open { overflow:hidden; }
@media (max-width:720px) { .chat-topbar .call-button { width:35px; height:35px; border-radius:12px; }.call-overlay { align-items:end; padding:14px 14px calc(14px + env(safe-area-inset-bottom)); }.call-card { width:min(500px,100%); border-radius:28px; padding:34px 22px 22px; }.call-avatar { width:82px; height:82px; border-radius:27px; font-size:2.35rem; }.call-card .eyebrow { margin-top:19px; }.call-status { font-size:.81rem; }.call-actions { margin-top:23px; }.call-control { min-width:calc(50% - 5px); min-height:46px; padding:0 10px; }.call-note { margin-top:17px; } }
@media (prefers-reduced-motion:reduce) { .call-card { animation:none; }.call-button,.call-control { transition:none; } }

/* Call history in the chat */
.message-call { align-items:center; margin:4px 0 15px; }.call-message-event { display:inline-flex; align-items:center; gap:7px; margin:auto; border:1px solid rgba(178,97,108,.15); border-radius:999px; padding:7px 11px; color:#9a7479; background:rgba(255,245,243,.8); font-size:.71rem; font-weight:700; box-shadow:0 4px 11px rgba(110,62,67,.05); }.call-message-event > span:first-child { display:grid; width:18px; height:18px; place-items:center; border-radius:6px; color:#b85966; background:#fff; font-size:.72rem; }.message-call .message-meta { margin:4px auto 0; color:#a99194; }

/* A playful system notice created only by Kukolka's #догана command. */
.message-reprimand { align-items:center; margin:10px 0 18px; animation:reprimand-arrive .34s cubic-bezier(.2,.9,.2,1.08) both; pointer-events:none; }
.reprimand-notice { display:flex; align-items:center; width:min(548px,94%); min-height:48px; margin:auto; border:1px solid rgba(222,125,133,.34); border-radius:999px; padding:6px 13px 6px 10px; color:#bd5d68; background:linear-gradient(105deg,rgba(255,248,247,.98),rgba(255,230,228,.72)); box-shadow:0 8px 18px rgba(186,86,98,.12),inset 0 1px rgba(255,255,255,.9); }
.reprimand-decoration { display:grid; width:16px; flex:0 0 16px; place-items:center; color:#dd8790; font-size:.77rem; transform:rotate(-16deg); }
.reprimand-gavel { width:43px; height:43px; flex:0 0 43px; fill:#d66f79; stroke:none; filter:drop-shadow(0 3px 3px rgba(193,89,101,.15)); }
.reprimand-gavel .reprimand-gavel-highlight { fill:none; stroke:#fff6f5; stroke-linecap:round; stroke-width:1.65; opacity:.86; }
.reprimand-divider { width:1px; align-self:stretch; min-height:27px; margin:0 13px 0 4px; background:linear-gradient(180deg,transparent,rgba(204,103,113,.4),transparent); }
.reprimand-notice p { flex:1; margin:0; color:#bd5b66; font-size:.82rem; font-weight:700; line-height:1.25; text-align:left; }
.reprimand-flourish { display:flex; align-items:center; gap:2px; margin-left:9px; color:#dc828b; font-size:.81rem; letter-spacing:-.1em; white-space:nowrap; transform:rotate(-9deg); }
@keyframes reprimand-arrive { from { opacity:0; transform:translateY(8px) scale(.96); } to { opacity:1; transform:translateY(0) scale(1); } }
@media (max-width:720px) { .message-reprimand { margin:8px 0 16px; }.reprimand-notice { width:min(100%,500px); min-height:47px; border-radius:19px; padding:6px 9px; }.reprimand-decoration { display:none; }.reprimand-gavel { width:37px; height:37px; flex-basis:37px; }.reprimand-divider { margin:0 9px; }.reprimand-notice p { font-size:.73rem; line-height:1.3; }.reprimand-flourish { margin-left:6px; font-size:.68rem; } }

/* A softer, longer system notice for Kukolka's #штраф command. */
.message-fine { align-items:center; margin:10px 0 18px; animation:reprimand-arrive .34s cubic-bezier(.2,.9,.2,1.08) both; pointer-events:none; }
.fine-notice { display:flex; align-items:center; width:min(600px,94%); margin:auto; border:1px solid rgba(222,125,133,.36); border-radius:23px; padding:9px 14px 9px 10px; color:#b95764; background:linear-gradient(105deg,rgba(255,249,248,.99),rgba(255,229,226,.75)); box-shadow:0 8px 18px rgba(186,86,98,.12),inset 0 1px rgba(255,255,255,.92); }
.fine-kiss-seal { position:relative; display:grid; width:47px; height:47px; flex:0 0 47px; place-items:center; border:1px solid rgba(211,101,113,.24); border-radius:15px; color:#cf6976; background:linear-gradient(145deg,#fffdfc,#ffe9e8); box-shadow:0 4px 10px rgba(193,89,101,.1); transform:rotate(-5deg); }
.fine-kiss-seal svg { width:22px; height:22px; fill:#d67480; }.fine-kiss-seal small { position:absolute; right:-8px; bottom:-5px; border:1px solid rgba(198,91,104,.25); border-radius:999px; padding:2px 5px; color:#ae505e; background:#fff9f8; font:800 .53rem/1 "DM Sans",sans-serif; transform:rotate(5deg); }
.fine-divider { width:1px; align-self:stretch; min-height:38px; margin:0 12px; background:linear-gradient(180deg,transparent,rgba(204,103,113,.42),transparent); }.fine-copy { display:flex; min-width:0; flex:1; flex-direction:column; gap:2px; }.fine-copy strong { color:#bd5b66; font-size:.82rem; line-height:1.25; }.fine-copy span { color:#a9787d; font-size:.7rem; line-height:1.3; }.fine-copy span:last-child { color:#bd5b66; font-weight:800; }.fine-flourish { align-self:flex-start; margin:2px 0 0 8px; color:#df8a92; font-size:.92rem; transform:rotate(10deg); }
@media (max-width:720px) { .message-fine { margin:8px 0 16px; }.fine-notice { width:min(100%,500px); padding:8px 9px; }.fine-kiss-seal { width:40px; height:40px; flex-basis:40px; border-radius:13px; }.fine-kiss-seal svg { width:19px; height:19px; }.fine-divider { margin:0 9px; }.fine-copy strong { font-size:.73rem; }.fine-copy span { font-size:.65rem; }.fine-flourish { margin-left:5px; } }

/* Clear status when direct peer-to-peer audio cannot be established. */
.call-status[data-state="problem"] { color:#b35461; font-weight:600; }

/* Messenger-like full-screen call experience. */
.call-overlay { padding:18px; background:radial-gradient(circle at 18% 14%,rgba(233,154,164,.22),transparent 33%),radial-gradient(circle at 86% 86%,rgba(119,54,73,.3),transparent 42%),rgba(42,24,32,.76); backdrop-filter:blur(20px) saturate(1.1); }
.call-overlay-backdrop { background:transparent; backdrop-filter:none; }
.call-card { display:flex; min-height:min(650px,calc(100dvh - 36px)); align-items:center; flex-direction:column; width:min(468px,100%); border:1px solid rgba(255,255,255,.18); border-radius:38px; padding:clamp(44px,8vh,76px) 28px 30px; color:#fff; background:radial-gradient(circle at 50% -2%,rgba(229,143,157,.36),transparent 32%),linear-gradient(160deg,#714255 0%,#472a38 52%,#2e202b 100%); box-shadow:0 32px 96px rgba(35,17,25,.44),inset 0 1px rgba(255,255,255,.13); }
.call-card::after { position:absolute; inset:13px; border:1px solid rgba(255,255,255,.08); border-radius:29px; content:""; pointer-events:none; }
.call-wave { z-index:0; border-color:rgba(255,221,224,.16); animation:call-wave-pulse 2.3s ease-in-out infinite; }.call-wave-two { animation-delay:1.05s; }
.call-avatar,.call-card .eyebrow,.call-card h2,.call-status,.call-timer,.call-actions,.call-note { position:relative; z-index:1; }
.call-avatar { width:118px; height:118px; border:7px solid rgba(255,255,255,.11); border-radius:50%; color:#fff; background:linear-gradient(145deg,#e5929d,#b45668); box-shadow:0 0 0 11px rgba(255,255,255,.055),0 18px 42px rgba(23,9,15,.28),inset 0 1px rgba(255,255,255,.4); font:600 3.15rem/1 "Playfair Display",serif; }
.call-card .eyebrow { margin:32px 0 9px; color:#ffc9ce; font-size:.69rem; letter-spacing:.18em; }.call-card h2 { max-width:340px; color:#fff; font:600 clamp(2rem,7vw,2.85rem)/1.02 "Playfair Display",serif; text-shadow:0 2px 16px rgba(34,14,22,.22); }.call-status { max-width:315px; min-height:24px; margin:13px 0 0; color:rgba(255,240,241,.78); font-size:.89rem; }.call-status[data-state="problem"] { color:#ffd0d3; }.call-timer { color:#ffe5e7; font-size:1rem; }
.call-actions { margin-top:auto; gap:22px; padding-top:36px; }.call-control { width:88px; min-width:0; min-height:0; flex-direction:column; gap:8px; padding:0; color:rgba(255,247,248,.9); background:transparent; box-shadow:none; font-size:.69rem; font-weight:700; }.call-control:hover { filter:none; transform:translateY(-2px); background:transparent; }.call-control-icon { display:grid; width:62px; height:62px; place-items:center; border:1px solid rgba(255,255,255,.13); border-radius:50%; box-shadow:0 10px 19px rgba(28,10,17,.2),inset 0 1px rgba(255,255,255,.2); font-size:1.55rem; transition:transform .16s ease,filter .16s ease; }.call-control:hover .call-control-icon { filter:brightness(1.07); transform:scale(1.05); }.call-control-label { max-width:92px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.call-accept,.call-decline,.call-mute,.call-end { background:transparent; box-shadow:none; }.call-accept .call-control-icon { background:#68b77e; }.call-decline .call-control-icon,.call-end .call-control-icon { background:#d66f7a; }.call-mute .call-control-icon { color:#614251; background:rgba(255,255,255,.93); }.call-mute[aria-pressed="true"] .call-control-icon { color:#fff; background:#ba6875; }.call-note { max-width:300px; margin:28px 0 0; color:rgba(255,235,237,.52); font-size:.68rem; }
@keyframes call-wave-pulse { 0%,100% { opacity:.48; transform:scale(.96); } 50% { opacity:.9; transform:scale(1.04); } }
@media (max-width:720px) { .call-overlay { padding:0; align-items:stretch; }.call-card { width:100%; min-height:100dvh; height:100dvh; border:0; border-radius:0; padding:calc(44px + env(safe-area-inset-top)) 24px calc(22px + env(safe-area-inset-bottom)); }.call-card::after { inset:10px; border-radius:25px; }.call-avatar { width:112px; height:112px; }.call-card .eyebrow { margin-top:29px; }.call-actions { width:100%; justify-content:space-around; gap:10px; padding-top:30px; }.call-control { width:92px; }.call-control-icon { width:60px; height:60px; }.call-note { margin-top:24px; } }
@media (prefers-reduced-motion:reduce) { .call-wave { animation:none; }.call-control-icon { transition:none; } }

/* Workout progress — the chart is deliberately light and readable on a phone. */
.workout-progress-card { margin-top:13px; border:1px solid rgba(96,126,91,.15); border-radius:19px; padding:14px; background:linear-gradient(135deg,rgba(255,255,255,.8),rgba(242,249,238,.68)); box-shadow:inset 0 1px rgba(255,255,255,.82),0 9px 22px rgba(75,102,72,.055); }.workout-progress-header { display:flex; align-items:center; justify-content:space-between; gap:12px; }.workout-progress-header .eyebrow { margin:0 0 4px; color:#799371; font-size:.58rem; }.workout-progress-header h3 { margin:0; color:#425840; font:600 1rem/1.1 "Playfair Display",serif; letter-spacing:-.025em; }.workout-progress-header label { min-width:0; max-width:56%; }.workout-progress-header select { width:100%; min-width:0; height:34px; border:1px solid rgba(102,133,96,.18); border-radius:10px; outline:0; padding:0 28px 0 10px; color:#587054; background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23668160' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center; font:700 .68rem "DM Sans",sans-serif; text-overflow:ellipsis; appearance:none; cursor:pointer; }.workout-progress-header select:focus { border-color:rgba(98,138,89,.58); box-shadow:0 0 0 3px rgba(111,150,100,.12); }.workout-progress-chart { margin-top:13px; border:1px solid rgba(96,126,91,.09); border-radius:14px; padding:7px 8px 5px; background:rgba(255,255,255,.52); }.workout-progress-chart svg { display:block; width:100%; height:112px; overflow:visible; }.workout-progress-grid-line { stroke:rgba(104,140,96,.14); stroke-width:1; stroke-dasharray:3 4; }.workout-progress-line { fill:none; stroke:#78996e; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 3px 3px rgba(80,115,74,.17)); }.workout-progress-point { fill:#fff; stroke:#78996e; stroke-width:2.2; }.workout-progress-point.is-last { fill:#6f9166; stroke:#f9fff7; stroke-width:3; filter:drop-shadow(0 3px 5px rgba(79,115,72,.25)); }.workout-progress-labels { display:flex; justify-content:space-between; gap:8px; margin-top:-2px; color:#99a694; font-size:.59rem; font-weight:700; }.workout-progress-summary { display:grid; grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr); align-items:center; gap:7px; margin-top:11px; }.workout-progress-compare { display:grid; min-width:0; gap:3px; border-radius:12px; padding:9px 10px; color:#798d75; background:rgba(255,255,255,.64); }.workout-progress-compare span { color:#91a08e; font-size:.58rem; font-weight:700; }.workout-progress-compare strong { overflow:hidden; color:#556e51; font:700 .74rem/1.2 "DM Sans",sans-serif; text-overflow:ellipsis; white-space:nowrap; }.workout-progress-compare.is-current { border:1px solid rgba(101,143,91,.16); background:#edf6e8; }.workout-progress-compare.is-current span { color:#72906a; }.workout-progress-compare.is-current strong { color:#476443; }.workout-progress-arrow { display:grid; width:20px; height:20px; place-items:center; border-radius:50%; color:#789271; background:#e7f1e2; font-weight:700; }
@media (max-width:720px) { .workout-progress-card { margin-top:10px; border-radius:16px; padding:12px 11px; }.workout-progress-header { gap:8px; }.workout-progress-header h3 { font-size:.94rem; }.workout-progress-header label { max-width:58%; }.workout-progress-header select { height:32px; padding-left:8px; font-size:.64rem; }.workout-progress-chart { margin-top:10px; border-radius:12px; padding:5px 6px 4px; }.workout-progress-chart svg { height:101px; }.workout-progress-summary { margin-top:9px; }.workout-progress-compare { border-radius:10px; padding:8px; }.workout-progress-compare strong { font-size:.69rem; }.workout-progress-arrow { width:18px; height:18px; } }

/* Training history: one compact but complete summary per completed session. */
.workout-history-row { justify-content:flex-start; min-height:72px; gap:10px; padding:10px 12px; }.workout-history-mark { display:grid; width:30px; height:30px; flex:0 0 auto; place-items:center; border:1px solid rgba(101,143,91,.15); border-radius:10px; color:#688660; background:#eaf4e5; font:800 .76rem/1 "DM Sans",sans-serif; }.workout-history-copy { display:grid; min-width:0; flex:1; gap:3px; }.workout-history-copy time { color:#92a08e; font-size:.6rem; font-weight:700; }.workout-history-copy strong { overflow:hidden; color:#4d614a; font-size:.8rem; text-overflow:ellipsis; white-space:nowrap; }.workout-history-metrics { display:flex; flex-wrap:wrap; gap:3px 8px; margin-top:1px; }.workout-history-metrics span { flex:0 0 auto; color:#7d917a; font-size:.62rem; font-weight:700; }.workout-history-metrics span + span::before { margin-right:8px; color:#b1beae; content:"·"; }
@media (max-width:720px) { .workout-history-row { min-height:69px; gap:9px; border-radius:13px; padding:9px 10px; }.workout-history-mark { width:28px; height:28px; border-radius:9px; }.workout-history-copy strong { font-size:.76rem; }.workout-history-metrics { gap:2px 6px; }.workout-history-metrics span { font-size:.59rem; }.workout-history-metrics span + span::before { margin-right:6px; } }

/* One restrained vector icon system across the training area. */
.workout-svg-icon,.workouts-stat-icon svg,.workouts-ready-icon svg,.workouts-empty > span svg,.workout-catalog-empty > span svg,.workout-builder-empty > span svg,.workout-complete-mark svg,.workout-history-mark svg { display:block; width:18px; height:18px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.85; }.workouts-stat-icon svg { width:17px; height:17px; }.workouts-ready-icon svg { width:18px; height:18px; }.workouts-empty > span svg,.workout-catalog-empty > span svg,.workout-builder-empty > span svg { width:20px; height:20px; }.workout-complete-mark svg { width:32px; height:32px; stroke-width:2.35; }.workout-history-mark svg { width:15px; height:15px; stroke-width:2.25; }.workout-builder-controls .workout-svg-icon,.workout-remove-set .workout-svg-icon { width:14px; height:14px; stroke-width:2.15; }.workout-exercise-card.is-selected::after { content:""; background:#729367 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.2 4.2L19.5 6.5'/%3E%3C/svg%3E") no-repeat center/14px 14px; font-size:0; }
@media (max-width:720px) { .workouts-stat-icon svg { width:15px; height:15px; }.workout-complete-mark svg { width:29px; height:29px; }.workout-builder-controls .workout-svg-icon { width:13px; height:13px; } }

/* Testosterone GYM — premium design foundation.
   This layer deliberately only changes the visual system; the workout flows and
   their data stay exactly as they are. */
.workouts-view {
  --gym-ink:#3c2930;
  --gym-copy:#8e7076;
  --gym-muted:#b59ca0;
  --gym-accent:#cf647a;
  --gym-accent-deep:#ad415b;
  --gym-accent-soft:#ffe7eb;
  --gym-peach:#fff1e7;
  --gym-surface:#fffdfc;
  --gym-surface-muted:#fff6f5;
  --gym-line:rgba(171,82,103,.14);
  --gym-shadow:0 24px 66px rgba(112,53,69,.15);
  position:relative;
  isolation:isolate;
}
.workouts-view::before {
  position:absolute;
  z-index:-1;
  inset:52px -12vw 0;
  border-radius:46px;
  background:
    radial-gradient(circle at 18% 18%,rgba(255,211,219,.62),transparent 24%),
    radial-gradient(circle at 87% 76%,rgba(255,229,213,.72),transparent 29%),
    linear-gradient(145deg,rgba(255,249,248,.82),rgba(255,238,238,.52));
  content:"";
  filter:blur(1px);
  pointer-events:none;
}
.button-workouts {
  border-color:rgba(200,93,118,.25);
  color:var(--gym-accent-deep);
  background:linear-gradient(135deg,#fffefe 5%,#fff1f2 100%);
  box-shadow:0 12px 28px rgba(167,64,89,.13),inset 0 1px rgba(255,255,255,.95);
}
.button-workouts:hover { border-color:rgba(190,68,95,.47); background:#fffafa; box-shadow:0 15px 31px rgba(167,64,89,.19); }
.workouts-button-icon { color:var(--gym-accent-deep); background:linear-gradient(145deg,#ffe7eb,#ffd8e0); }
.workouts-card {
  border:1px solid rgba(255,255,255,.92);
  border-radius:32px;
  background:radial-gradient(circle at 100% 0%,rgba(255,211,220,.34),transparent 33%),linear-gradient(145deg,rgba(255,255,255,.97),rgba(255,246,246,.92));
  box-shadow:var(--gym-shadow),inset 0 1px rgba(255,255,255,.95);
}
.workouts-topbar {
  padding:20px 22px;
  border-bottom-color:var(--gym-line);
  background:linear-gradient(110deg,rgba(255,255,255,.72),rgba(255,239,241,.53));
}
.workouts-mark {
  border-color:rgba(205,96,120,.17);
  border-radius:16px;
  color:var(--gym-accent-deep);
  background:linear-gradient(145deg,#ffeef0,#ffd9e1);
  box-shadow:0 8px 18px rgba(191,75,101,.13),inset 0 1px rgba(255,255,255,.95);
}
.workouts-topbar .eyebrow,.workout-catalog-header .eyebrow,.workout-builder-header .eyebrow,.workout-session-header .eyebrow,.workout-progress-header .eyebrow,.workout-complete .eyebrow { color:#bd6175; letter-spacing:.15em; }
.workouts-topbar h2,.workout-catalog-header h3,.workout-builder-header h3,.workout-session-header h3,.workout-progress-header h3,.workout-complete h3 { color:var(--gym-ink); }
.workouts-topbar h2 { font-size:1.48rem; }
.workouts-topbar > div > span,.workout-catalog-header p:not(.eyebrow),.workout-builder-header p:not(.eyebrow),.workout-session-header p:not(.eyebrow) { color:var(--gym-copy); }
.workouts-back,.workout-catalog-back {
  border:1px solid rgba(200,92,114,.2);
  border-radius:999px;
  color:#ad5265;
  background:rgba(255,255,255,.72);
  box-shadow:inset 0 1px rgba(255,255,255,.92);
}
.workouts-back:hover,.workout-catalog-back:hover { color:#963f55; background:#fff1f3; }
.workouts-content,.workout-catalog,.workout-builder,.workout-session { scrollbar-color:rgba(191,89,110,.45) transparent; }
.workouts-stat-card {
  border-color:var(--gym-line);
  border-radius:19px;
  background:linear-gradient(135deg,rgba(255,255,255,.95),rgba(255,240,242,.76));
  box-shadow:0 10px 24px rgba(128,58,75,.055),inset 0 1px rgba(255,255,255,.9);
}
.workouts-stat-icon { color:var(--gym-accent-deep); background:linear-gradient(145deg,#ffe7ea,#ffd4dd); box-shadow:inset 0 1px rgba(255,255,255,.82); }
.workouts-stat-streak .workouts-stat-icon { color:#b56645; background:linear-gradient(145deg,#fff0e6,#ffdfce); }
.workouts-stat-card span:not(.workouts-stat-icon),.workouts-stat-card small { color:var(--gym-copy); }
.workouts-stat-card strong { color:var(--gym-ink); }
.workouts-ready-card {
  border-color:rgba(205,94,117,.18);
  border-radius:20px;
  background:linear-gradient(115deg,rgba(255,231,235,.82),rgba(255,255,255,.78));
  box-shadow:0 10px 26px rgba(135,57,77,.06),inset 0 1px rgba(255,255,255,.92);
}
.workouts-ready-icon { color:var(--gym-accent-deep); background:linear-gradient(145deg,#ffe3e8,#ffcfd9); }
.workouts-ready-card .eyebrow { color:#c26679; }.workouts-ready-card h3 { color:var(--gym-ink); }.workouts-ready-card p:not(.eyebrow) { color:var(--gym-copy); }
.workouts-history-heading strong,.workout-history-row strong,.workout-history-copy strong { color:var(--gym-ink); }.workouts-history-heading span,.workout-history-copy time,.workout-history-metrics span { color:var(--gym-muted); }
.workouts-empty,.workout-catalog-empty,.workout-builder-empty {
  border-color:rgba(201,95,117,.24);
  background:linear-gradient(145deg,rgba(255,255,255,.56),rgba(255,238,240,.48));
  color:var(--gym-copy);
}
.workouts-empty > span,.workout-catalog-empty > span,.workout-builder-empty > span { color:var(--gym-accent-deep); background:#ffe9ed; }
.workouts-empty strong,.workout-catalog-empty strong,.workout-builder-empty strong { color:#765058; }
.workout-history-row,.workout-builder-item,.workout-set-row,.workout-complete-exercise {
  border-color:var(--gym-line);
  background:rgba(255,255,255,.77);
  box-shadow:0 7px 17px rgba(125,55,73,.04),inset 0 1px rgba(255,255,255,.9);
}
.workout-history-mark,.workout-builder-position,.workout-complete-index { color:var(--gym-accent-deep); background:#ffe8ec; border-color:rgba(204,98,120,.16); }
.workout-history-metrics span + span::before { color:#dfc6cb; }
.workouts-actions { border-top-color:var(--gym-line); background:rgba(255,250,250,.78); }
.workouts-actions p { color:var(--gym-copy); }
.workouts-start,.workout-selection-bar button,.workout-builder-start,.workout-session-next,.workout-complete-actions button:last-child {
  background:linear-gradient(135deg,#da788b 0%,#b54c64 100%);
  box-shadow:0 10px 21px rgba(177,67,91,.25),inset 0 1px rgba(255,255,255,.22);
}
.workouts-start:hover:not(:disabled),.workout-selection-bar button:hover,.workout-builder-start:hover:not(:disabled),.workout-session-next:hover:not(:disabled),.workout-complete-actions button:last-child:hover { filter:brightness(1.04) saturate(1.04); }
.workout-group-card,.workout-exercise-card {
  border-color:var(--gym-line);
  border-radius:19px;
  color:var(--gym-ink);
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(255,241,242,.73));
  box-shadow:0 10px 23px rgba(128,58,75,.055),inset 0 1px rgba(255,255,255,.94);
}
.workout-group-card:hover,.workout-exercise-card:hover { border-color:rgba(190,75,101,.43); box-shadow:0 14px 28px rgba(145,59,81,.13); }
.workout-group-card strong,.workout-exercise-card strong,.workout-builder-item strong,.workout-set-row strong,.workout-session-exercise h4 { color:var(--gym-ink); }
.workout-group-card span,.workout-exercise-card span,.workout-builder-item span:not(.workout-builder-position),.workout-set-row > div:first-child span,.workout-session-exercise span { color:var(--gym-copy); }
.workout-group-card b { color:#bd6074; }
.workout-group-mark { color:var(--gym-accent-deep); background:linear-gradient(145deg,#ffe9ed,#ffd9e1); }
.workout-exercise-card img,.workout-builder-item img,.workout-session-exercise img { background:#fff0f0; }
.workout-exercise-card.is-selected { border-color:#c9556d; box-shadow:0 0 0 3px rgba(201,82,107,.14),0 14px 28px rgba(144,58,80,.14); }
.workout-exercise-card.is-selected::after { background:#c95b71 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.2 4.2L19.5 6.5'/%3E%3C/svg%3E") no-repeat center/14px 14px; }
.workout-exercise-card.is-selected span { color:#ad5064; }
.workout-selection-bar { background:linear-gradient(180deg,rgba(255,250,250,0),rgba(255,248,248,.97) 33%); }.workout-selection-bar strong { color:var(--gym-ink); }.workout-selection-bar span { color:var(--gym-copy); }
.workout-name-field span,.workout-set-fields label > span { color:#8c6c73; }
.workout-name-field input,.workout-set-fields input,.workout-progress-header select {
  border-color:rgba(185,81,106,.18);
  color:var(--gym-ink);
  background-color:rgba(255,255,255,.9);
}
.workout-name-field input:focus,.workout-set-fields input:focus,.workout-progress-header select:focus { border-color:rgba(195,75,103,.65); box-shadow:0 0 0 4px rgba(209,93,119,.13); }
.workout-builder-controls button::before { border-color:rgba(188,83,106,.16); background:#fff9f9; }.workout-builder-controls button { color:#ad5668; }.workout-builder-controls button:last-child::before { background:#fff0f1; }
.workout-builder-note { color:#a2606e; }.workout-builder-note.is-saving { color:#9f8187; }
.workout-builder-clear,.workout-session-skip,.workout-complete-actions button { border-color:rgba(185,83,105,.2); color:#a65467; background:#fff9f9; }
.workout-session-cancel { border-color:rgba(190,82,102,.22); color:#ac5365; background:#fff4f5; }
.workout-session-progress { background:#f6dfe3; }.workout-session-progress span { background:linear-gradient(90deg,#ef9cad,#c85870); box-shadow:0 0 9px rgba(190,72,99,.32); }
.workout-session-exercise { border-color:var(--gym-line); border-radius:20px; background:linear-gradient(135deg,rgba(255,235,238,.92),rgba(255,255,255,.86)); box-shadow:0 11px 24px rgba(134,55,76,.075); }
.workout-set-row.is-current { border-color:rgba(199,84,108,.55); background:linear-gradient(135deg,rgba(255,234,238,.98),rgba(255,255,255,.88)); box-shadow:0 9px 20px rgba(149,60,82,.1); }.workout-set-row.is-complete { border-color:rgba(194,105,122,.3); }
.workout-set-fields input:disabled { color:#a98e93; background:#fff7f7; }.workout-set-fields i { color:#b2949b; }
.workout-add-set { border-color:rgba(198,85,109,.42); color:#ad5265; background:rgba(255,239,242,.78); }.workout-add-set:hover { background:#ffe9ed; }
.workout-rest { border-color:rgba(207,132,88,.2); color:#9d644b; background:linear-gradient(135deg,rgba(255,239,228,.95),rgba(255,255,255,.8)); }.workout-rest span { color:#b96c4c; }.workout-rest button { color:#a7594b; background:#fff; }
.workout-session-elapsed { color:#ac5265; background:#ffe7eb; }.workout-remove-set { border-color:rgba(180,84,102,.16); color:#b75868; background:#fff4f5; }
.workout-complete-mark { background:linear-gradient(145deg,#e88a9b,#b94b65); box-shadow:0 0 0 10px rgba(207,94,118,.09),0 16px 29px rgba(167,59,84,.22); }
.workout-complete > p:not(.eyebrow),.workout-complete-exercise span:not(.workout-complete-index) { color:var(--gym-copy); }.workout-complete-stats > div { border-color:var(--gym-line); background:rgba(255,255,255,.73); }.workout-complete-stats strong { color:var(--gym-ink); }.workout-complete-stats span { color:var(--gym-copy); }
.workout-cancel-backdrop { background:rgba(67,35,45,.28); }.workout-cancel-card { color:var(--gym-ink); background:linear-gradient(145deg,#fffefd,#fff2f3); box-shadow:0 22px 55px rgba(79,36,50,.24); }.workout-cancel-card .eyebrow { color:#be6074; }.workout-cancel-card h3 { color:var(--gym-ink); }.workout-cancel-card > p:not(.eyebrow) { color:var(--gym-copy); }.workout-cancel-card button:not(.workout-cancel-backdrop) { border-color:var(--gym-line); color:#a65366; background:#fffafa; }.workout-cancel-card button:last-child { background:linear-gradient(135deg,#dc788b,#b64c65); }
.workout-progress-card { border-color:var(--gym-line); border-radius:21px; background:linear-gradient(135deg,rgba(255,255,255,.93),rgba(255,237,240,.73)); box-shadow:0 12px 26px rgba(128,58,75,.065),inset 0 1px rgba(255,255,255,.9); }.workout-progress-chart { border-color:rgba(189,84,108,.1); background:rgba(255,255,255,.61); }.workout-progress-grid-line { stroke:rgba(189,84,108,.15); }.workout-progress-line { stroke:#cf637a; filter:drop-shadow(0 3px 3px rgba(165,59,85,.2)); }.workout-progress-point { stroke:#cf637a; }.workout-progress-point.is-last { fill:#c55770; stroke:#fff8f8; filter:drop-shadow(0 3px 5px rgba(163,55,81,.25)); }.workout-progress-labels { color:#b29aa0; }.workout-progress-compare { color:var(--gym-copy); background:rgba(255,255,255,.7); }.workout-progress-compare span { color:var(--gym-muted); }.workout-progress-compare strong { color:var(--gym-ink); }.workout-progress-compare.is-current { border-color:rgba(202,93,116,.18); background:#ffeaee; }.workout-progress-compare.is-current span { color:#bd6175; }.workout-progress-compare.is-current strong { color:#9f4258; }.workout-progress-arrow { color:#b65369; background:#ffe3e8; }
.workouts-error { border-top-color:rgba(184,83,99,.14); color:#b04f61; background:#fff4f3; }
@media (max-width:720px) {
  .workouts-view::before { inset:48px -5px 0; border-radius:30px; }
  .workouts-card { border-radius:27px; }
  .workouts-topbar { padding:17px 15px; }
  .workouts-mark { border-radius:14px; }
  .workouts-stat-card,.workouts-ready-card,.workout-group-card,.workout-exercise-card { border-radius:17px; }
  .workout-session-exercise,.workout-progress-card { border-radius:18px; }
}
@media (prefers-reduced-motion:reduce) {
  .workouts-view::before,.workout-group-card,.workout-exercise-card,.workouts-start,.workout-selection-bar button,.workout-builder-start,.workout-session-next,.workout-complete-actions button { transition:none; animation:none; }
}

/* Stage 2 — a real training dashboard, based only on saved workout data. */
.workouts-overview { grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.workouts-stat-card { min-height:92px; align-items:flex-start; gap:9px; padding:13px 11px; }
.workouts-stat-card > div { gap:4px; }.workouts-stat-card span:not(.workouts-stat-icon),.workouts-stat-card small { white-space:normal; line-height:1.18; }.workouts-stat-card strong { font-size:1.43rem; }
.workouts-stat-sets .workouts-stat-icon { color:#a86444; background:linear-gradient(145deg,#fff0e5,#ffdecd); }.workouts-stat-plan .workouts-stat-icon { color:#a45379; background:linear-gradient(145deg,#f7e6ff,#ecd6f7); }
.workout-today-card { position:relative; display:grid; grid-template-columns:minmax(0,1.15fr) minmax(190px,.85fr); min-height:192px; overflow:hidden; margin-top:13px; border:1px solid rgba(194,77,104,.2); border-radius:23px; padding:22px 22px 20px; color:#fff; background:linear-gradient(115deg,#d96f85 0%,#c65570 57%,#b54863 100%); box-shadow:0 18px 34px rgba(167,58,85,.22),inset 0 1px rgba(255,255,255,.28); }
.workout-today-card::before { position:absolute; width:255px; height:255px; right:-89px; top:-124px; border:1px solid rgba(255,255,255,.26); border-radius:50%; content:""; }.workout-today-card::after { position:absolute; width:188px; height:188px; right:48px; bottom:-136px; border:1px solid rgba(255,255,255,.18); border-radius:50%; content:""; }
.workout-today-copy { position:relative; z-index:2; display:flex; min-width:0; flex-direction:column; align-items:flex-start; }.workout-today-card .eyebrow { margin:0 0 7px; color:rgba(255,255,255,.77); font-size:.62rem; letter-spacing:.14em; }.workout-today-card h3 { max-width:360px; margin:0; color:#fffaf9; font:600 clamp(1.45rem,3vw,2rem)/1.02 "Playfair Display",serif; letter-spacing:-.045em; }.workout-today-card > div > p:not(.eyebrow) { max-width:360px; margin:8px 0 0; color:rgba(255,247,247,.84); font-size:.75rem; line-height:1.45; }
.workout-today-meta { display:flex; flex-wrap:wrap; gap:6px; margin-top:13px; }.workout-today-meta span { display:inline-flex; min-height:25px; align-items:center; gap:5px; border:1px solid rgba(255,255,255,.22); border-radius:999px; padding:0 8px; color:rgba(255,255,255,.94); background:rgba(112,31,52,.14); box-shadow:inset 0 1px rgba(255,255,255,.12); font-size:.62rem; }.workout-today-meta svg { width:12px; height:12px; stroke-width:2.1; }.workout-today-meta b { font-weight:700; }
.workout-today-action { min-height:38px; margin-top:14px; border:0; border-radius:12px; padding:0 13px; color:#ae455e; background:#fffafa; box-shadow:0 8px 16px rgba(102,30,48,.18),inset 0 1px rgba(255,255,255,.95); font:800 .7rem "DM Sans",sans-serif; cursor:pointer; transition:transform .16s ease,box-shadow .16s ease,background .16s ease; }.workout-today-action:hover { background:#fff; box-shadow:0 11px 20px rgba(91,26,42,.24); transform:translateY(-1px); }.workout-today-action span { margin-left:5px; font-size:.95rem; }
.workout-today-art { position:relative; z-index:1; min-width:0; color:rgba(255,245,246,.88); }.workout-today-art svg { position:absolute; z-index:2; width:min(205px,100%); right:-8px; bottom:8px; filter:drop-shadow(0 15px 12px rgba(108,31,51,.22)); }.workout-today-orbit { position:absolute; border:1px solid rgba(255,255,255,.24); border-radius:50%; }.orbit-one { width:129px; height:129px; right:16px; top:7px; }.orbit-two { width:183px; height:183px; right:-25px; top:-19px; border-color:rgba(255,255,255,.12); }.workout-today-badge { position:absolute; z-index:3; display:grid; width:36px; height:36px; right:5px; top:5px; place-items:center; border:1px solid rgba(255,255,255,.36); border-radius:12px; color:#fff; background:rgba(255,255,255,.16); box-shadow:inset 0 1px rgba(255,255,255,.28); font:800 .62rem/1 "DM Sans",sans-serif; letter-spacing:.08em; }
@media (min-width:900px) { .workouts-card { width:min(830px,100%); }.workouts-content { padding:20px; }.workout-today-card { min-height:204px; padding:24px; } }
@media (max-width:720px) { .workouts-overview { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }.workouts-stat-card { min-height:84px; gap:7px; padding:10px; }.workouts-stat-card strong { font-size:1.22rem; }.workout-today-card { grid-template-columns:minmax(0,1fr) 116px; min-height:184px; margin-top:11px; border-radius:20px; padding:18px 16px; }.workout-today-card h3 { max-width:222px; font-size:1.48rem; }.workout-today-card > div > p:not(.eyebrow) { max-width:230px; font-size:.7rem; }.workout-today-meta { max-width:225px; margin-top:10px; }.workout-today-meta span { min-height:23px; padding-inline:7px; font-size:.57rem; }.workout-today-action { min-height:36px; margin-top:11px; font-size:.66rem; }.workout-today-art svg { width:148px; right:-34px; bottom:24px; }.orbit-one { width:93px; height:93px; right:-3px; top:19px; }.orbit-two { width:133px; height:133px; right:-32px; top:-1px; }.workout-today-badge { width:30px; height:30px; right:-4px; top:1px; border-radius:10px; font-size:.54rem; } }
@media (max-width:380px) { .workout-today-card { grid-template-columns:minmax(0,1fr) 86px; padding-inline:14px; }.workout-today-art { opacity:.72; }.workout-today-card h3 { font-size:1.36rem; }.workout-today-meta span:nth-child(2) { display:none; } }

/* Stage 3 — progress is scannable in one glance and the journal stays compact. */
.workout-progress-card { overflow:hidden; padding:18px; }.workout-progress-header { position:relative; z-index:1; padding-bottom:13px; border-bottom:1px solid rgba(191,84,108,.12); }.workout-progress-header h3 { font-size:1.14rem; }.workout-progress-header label { max-width:61%; }.workout-progress-header select { height:38px; border-radius:12px; padding-left:12px; color:#9b435a; background-color:#fffafb; box-shadow:inset 0 1px rgba(255,255,255,.95); font-size:.71rem; }
.workout-progress-visual { display:grid; grid-template-columns:116px minmax(0,1fr); align-items:center; gap:14px; margin-top:15px; }.workout-progress-ring { --workout-ring-fill:0%; position:relative; display:grid; width:112px; height:112px; place-content:center; justify-items:center; border-radius:50%; color:#ad5066; background:conic-gradient(from -90deg,#d7687f var(--workout-ring-fill),#f6dde2 0); box-shadow:0 12px 21px rgba(161,62,86,.13),inset 0 1px rgba(255,255,255,.62); }.workout-progress-ring::before { position:absolute; inset:9px; border:1px solid rgba(198,86,110,.12); border-radius:inherit; background:linear-gradient(145deg,#fffefe,#fff4f5); box-shadow:inset 0 1px rgba(255,255,255,.95); content:""; }.workout-progress-ring::after { position:absolute; inset:0; border:1px solid rgba(255,255,255,.68); border-radius:inherit; content:""; pointer-events:none; }.workout-progress-ring-value,.workout-progress-ring-label { position:relative; z-index:1; }.workout-progress-ring-value { color:#a6455b; font:800 1.48rem/1 "DM Sans",sans-serif; letter-spacing:-.06em; }.workout-progress-ring-label { margin-top:3px; color:#a2868c; font-size:.57rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.workout-progress-chart { min-width:0; margin:0; border-color:rgba(192,86,109,.11); border-radius:16px; padding:9px 10px 6px; background:linear-gradient(145deg,rgba(255,255,255,.78),rgba(255,247,248,.64)); }.workout-progress-chart svg { height:121px; }.workout-progress-labels { padding-inline:2px; font-size:.58rem; }
.workout-progress-summary { grid-template-columns:minmax(0,1fr) 26px minmax(0,1fr); gap:9px; margin-top:14px; }.workout-progress-compare { min-height:57px; justify-content:center; border:1px solid rgba(187,83,106,.1); border-radius:14px; padding:10px 11px; }.workout-progress-compare span { font-size:.6rem; }.workout-progress-compare strong { font-size:.79rem; }.workout-progress-arrow { width:24px; height:24px; color:#c85a71; background:#ffe5ea; }
.workouts-history { margin-top:19px; }.workouts-history-heading { position:sticky; z-index:1; top:-1px; padding:3px 3px 11px; background:linear-gradient(180deg,rgba(255,251,251,.98),rgba(255,251,251,.83),rgba(255,251,251,0)); }.workouts-history-heading strong { color:#4c3339; font-size:.92rem; }.workouts-history-heading span { border-radius:999px; padding:5px 8px; color:#b15b6c; background:#ffedef; font-size:.6rem; }
.workouts-empty.has-history { gap:8px; }.workout-history-row { min-height:76px; gap:11px; border-color:rgba(185,82,105,.13); border-radius:17px; padding:10px 11px; background:linear-gradient(135deg,rgba(255,255,255,.9),rgba(255,245,246,.67)); box-shadow:0 8px 18px rgba(132,55,74,.045),inset 0 1px rgba(255,255,255,.95); transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease; }.workout-history-row:hover { border-color:rgba(194,82,107,.29); box-shadow:0 12px 23px rgba(132,55,74,.09); transform:translateY(-1px); }.workout-history-mark { width:34px; height:34px; border-color:rgba(199,91,115,.17); border-radius:12px; color:#b45168; background:linear-gradient(145deg,#ffe8ed,#ffdce4); }.workout-history-copy { gap:4px; }.workout-history-copy time { color:#b39ba0; font-size:.59rem; letter-spacing:.02em; }.workout-history-copy strong { color:#563a41; font-size:.81rem; }.workout-history-metrics { gap:3px 7px; }.workout-history-metrics span { color:#9b7f86; font-size:.6rem; }.workout-history-metrics span + span::before { color:#e2c8ce; }.workout-history-tail { display:grid; min-width:46px; min-height:26px; place-items:center; margin-left:auto; border:1px solid rgba(195,88,111,.13); border-radius:9px; padding:0 6px; color:#ac5365; background:#fff1f3; font-size:.59rem; font-weight:800; white-space:nowrap; }
@media (max-width:720px) { .workout-progress-card { border-radius:19px; padding:14px 12px; }.workout-progress-header { align-items:flex-start; padding-bottom:11px; }.workout-progress-header h3 { font-size:1.04rem; }.workout-progress-header label { max-width:57%; }.workout-progress-header select { height:35px; padding-left:9px; font-size:.65rem; }.workout-progress-visual { grid-template-columns:88px minmax(0,1fr); gap:10px; margin-top:12px; }.workout-progress-ring { width:84px; height:84px; }.workout-progress-ring::before { inset:7px; }.workout-progress-ring-value { font-size:1.18rem; }.workout-progress-ring-label { font-size:.49rem; }.workout-progress-chart { border-radius:13px; padding:6px 7px 4px; }.workout-progress-chart svg { height:100px; }.workout-progress-summary { grid-template-columns:minmax(0,1fr) 21px minmax(0,1fr); gap:6px; margin-top:11px; }.workout-progress-compare { min-height:52px; border-radius:12px; padding:8px; }.workout-progress-compare strong { font-size:.7rem; }.workout-progress-arrow { width:21px; height:21px; }.workouts-history { margin-top:15px; }.workouts-history-heading { padding-bottom:9px; }.workout-history-row { min-height:72px; gap:8px; border-radius:15px; padding:9px; }.workout-history-mark { width:30px; height:30px; border-radius:10px; }.workout-history-copy strong { font-size:.75rem; }.workout-history-tail { min-width:42px; min-height:24px; padding-inline:5px; font-size:.55rem; } }
@media (prefers-reduced-motion:reduce) { .workout-history-row { transition:none; } }

/* Stage 4 — catalogue and builder: image-led, clear, and thumb-friendly. */
.workout-catalog,.workout-builder { padding:20px; background:linear-gradient(180deg,rgba(255,253,253,.58),rgba(255,248,249,.32)); }.workout-catalog-header,.workout-builder-header { position:relative; gap:12px; margin-bottom:18px; }.workout-catalog-header > div,.workout-builder-header > div { position:relative; padding-left:13px; }.workout-catalog-header > div::before,.workout-builder-header > div::before { position:absolute; inset:3px auto 3px 0; width:3px; border-radius:999px; background:linear-gradient(#e98b9e,#be4f68); content:""; }.workout-catalog-header h3,.workout-builder-header h3 { font-size:1.38rem; }.workout-catalog-header p:not(.eyebrow),.workout-builder-header p:not(.eyebrow) { max-width:430px; color:#967b82; font-size:.76rem; }
.workout-group-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }.workout-exercise-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }.workout-group-card { position:relative; min-height:140px; overflow:hidden; grid-template-columns:1fr; grid-template-rows:auto minmax(0,1fr) auto; gap:9px; border-color:rgba(192,81,107,.15); border-radius:20px; padding:15px; background:linear-gradient(145deg,#fffefe,#fff0f2); box-shadow:0 12px 25px rgba(135,55,75,.065),inset 0 1px rgba(255,255,255,.96); }.workout-group-card::after { position:absolute; width:130px; height:130px; right:-64px; top:-68px; border:1px solid rgba(207,94,120,.13); border-radius:50%; content:""; }.workout-group-card:hover { border-color:rgba(191,72,100,.43); box-shadow:0 17px 31px rgba(145,57,79,.13); transform:translateY(-3px); }.workout-group-mark { position:relative; z-index:1; width:42px; height:42px; border-radius:14px; color:#ae4c64; background:linear-gradient(145deg,#ffe7ec,#ffd5df); box-shadow:0 8px 17px rgba(188,69,96,.12),inset 0 1px rgba(255,255,255,.9); }.workout-group-mark svg { width:21px; height:21px; stroke-width:1.9; }.workout-group-card > div { position:relative; z-index:1; align-self:end; }.workout-group-card strong { color:#50353c; font-size:.91rem; }.workout-group-card span { margin-top:5px; color:#9b7f86; font-size:.65rem; }.workout-group-card b { position:relative; z-index:1; align-self:end; grid-column:auto; color:#b2576b; font-size:.64rem; letter-spacing:.02em; }
.workout-exercise-card { position:relative; overflow:hidden; border-color:rgba(190,81,106,.14); border-radius:20px; background:#fff; box-shadow:0 11px 25px rgba(130,54,73,.075),inset 0 1px rgba(255,255,255,.95); }.workout-exercise-card img { aspect-ratio:4 / 3; transition:transform .28s cubic-bezier(.2,.8,.2,1),filter .28s ease; }.workout-exercise-card::before { position:absolute; z-index:2; right:9px; top:9px; border:1px solid rgba(255,255,255,.7); border-radius:999px; padding:5px 7px; color:#99485c; background:rgba(255,255,255,.88); box-shadow:0 4px 12px rgba(111,47,64,.13); content:"Додати"; font:800 .57rem/1 "DM Sans",sans-serif; opacity:0; transform:translateY(-4px); transition:opacity .16s ease,transform .16s ease; }.workout-exercise-card:hover img { filter:saturate(1.04) contrast(1.015); transform:scale(1.035); }.workout-exercise-card:hover::before,.workout-exercise-card:focus-visible::before { opacity:1; transform:translateY(0); }.workout-exercise-card > div { position:relative; z-index:1; min-height:66px; padding:11px 11px 12px; background:linear-gradient(145deg,#fffefe,#fff5f6); }.workout-exercise-card strong { color:#54363e; font-size:.78rem; }.workout-exercise-card span { margin-top:5px; color:#a1848b; font-size:.61rem; }.workout-exercise-card.is-selected { border-color:#ca5971; box-shadow:0 0 0 3px rgba(202,82,108,.13),0 14px 27px rgba(147,56,79,.14); }.workout-exercise-card.is-selected::before { right:10px; top:10px; display:block; border-color:rgba(255,255,255,.66); color:#fff; background:#c75a71; content:"У плані"; opacity:1; transform:none; }.workout-exercise-card.is-selected::after { top:10px; right:10px; width:23px; height:23px; opacity:0; pointer-events:none; }.workout-exercise-card.is-selected > div { background:linear-gradient(145deg,#fff7f8,#ffe9ed); }.workout-exercise-card.is-selected span { color:#b14f65; }
.workout-selection-bar { z-index:5; min-height:68px; bottom:-20px; margin-top:14px; border-top:1px solid rgba(194,83,108,.1); padding:15px 2px 20px; background:linear-gradient(180deg,rgba(255,249,250,0),rgba(255,250,250,.97) 31%); }.workout-selection-bar > div { gap:4px; }.workout-selection-bar strong { color:#57383f; font-size:.87rem; }.workout-selection-bar span { color:#a0848a; font-size:.65rem; }.workout-selection-bar button { min-height:44px; border-radius:14px; padding-inline:15px; font-size:.74rem; }
.workout-name-field { gap:7px; margin:0 0 16px; }.workout-name-field span { color:#8e6f76; font-size:.7rem; }.workout-name-field input { height:50px; border-color:rgba(190,82,106,.18); border-radius:15px; padding-inline:14px; color:#51353c; background:linear-gradient(135deg,#fffefe,#fff6f7); box-shadow:inset 0 1px rgba(255,255,255,.95); font-size:.86rem; }.workout-name-field input::placeholder { color:#b3999f; }
.workout-builder-list { gap:10px; }.workout-builder-item { grid-template-columns:34px 54px minmax(0,1fr) 130px; min-height:78px; gap:11px; border-color:rgba(190,81,106,.14); border-radius:18px; padding:11px; background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(255,243,245,.69)); box-shadow:0 9px 20px rgba(132,54,73,.055),inset 0 1px rgba(255,255,255,.94); }.workout-builder-position { width:34px; height:34px; border-radius:11px; color:#ad4e65; background:linear-gradient(145deg,#ffe8ed,#ffd8e1); font-size:.74rem; }.workout-builder-item img { width:54px; height:54px; border-radius:14px; box-shadow:0 5px 12px rgba(100,46,60,.1); }.workout-builder-item strong { color:#54373f; font-size:.81rem; }.workout-builder-item span:not(.workout-builder-position) { color:#9e8188; font-size:.64rem; }.workout-builder-controls { grid-template-columns:repeat(3,40px); justify-content:end; gap:3px; }.workout-builder-controls button { width:40px; height:40px; border-radius:12px; color:#ac5366; }.workout-builder-controls button::before { inset:3px; border-color:rgba(193,82,107,.15); border-radius:10px; background:#fffafa; }.workout-builder-controls button:last-child { color:#be5b6b; }.workout-builder-controls button:last-child::before { background:#fff0f2; }.workout-builder-controls button:not(:disabled):hover::before { border-color:rgba(191,77,104,.33); background:#fff3f5; }.workout-builder-controls button:focus-visible { outline:3px solid rgba(208,91,116,.25); outline-offset:2px; }.workout-builder-actions { position:sticky; z-index:3; bottom:-20px; margin-top:16px; border-top:1px solid rgba(194,83,108,.1); padding:15px 0 20px; background:linear-gradient(180deg,rgba(255,250,250,0),rgba(255,250,250,.98) 31%); }.workout-builder-clear { min-height:44px; border-radius:14px; padding-inline:14px; }.workout-builder-start { min-height:46px; border-radius:15px; padding-inline:17px; font-size:.75rem; }
@media (max-width:720px) { .workout-catalog,.workout-builder { padding:15px 12px; }.workout-catalog-header,.workout-builder-header { gap:10px; margin-bottom:15px; }.workout-catalog-header h3,.workout-builder-header h3 { font-size:1.18rem; }.workout-catalog-header p:not(.eyebrow),.workout-builder-header p:not(.eyebrow) { font-size:.7rem; }.workout-group-grid,.workout-exercise-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }.workout-group-card { min-height:128px; border-radius:17px; padding:12px; }.workout-group-mark { width:37px; height:37px; border-radius:12px; }.workout-group-mark svg { width:19px; height:19px; }.workout-group-card strong { font-size:.8rem; }.workout-group-card span { font-size:.59rem; }.workout-exercise-card { border-radius:17px; }.workout-exercise-card::before { opacity:1; transform:none; right:7px; top:7px; padding:4px 6px; font-size:.51rem; }.workout-exercise-card > div { min-height:61px; padding:9px; }.workout-exercise-card strong { font-size:.71rem; }.workout-exercise-card span { font-size:.57rem; }.workout-selection-bar { min-height:64px; bottom:-15px; margin-top:10px; padding:13px 1px 15px; }.workout-selection-bar button { min-height:43px; padding-inline:12px; font-size:.68rem; }.workout-name-field input { height:48px; font-size:16px; }.workout-builder-item { grid-template-columns:32px 48px minmax(0,1fr); grid-template-rows:minmax(48px,auto) 43px; min-height:0; gap:8px; padding:9px; }.workout-builder-position { width:32px; height:32px; border-radius:10px; }.workout-builder-item img { width:48px; height:48px; border-radius:13px; }.workout-builder-controls { grid-column:1 / -1; grid-row:2; grid-template-columns:repeat(3,1fr); justify-content:stretch; gap:6px; }.workout-builder-controls button { width:100%; height:42px; border-radius:12px; }.workout-builder-controls button::before { inset:2px; }.workout-builder-clear { min-height:43px; }.workout-builder-start { min-height:47px; font-size:.71rem; } }
@media (max-width:380px) { .workout-group-grid,.workout-exercise-grid { gap:7px; }.workout-group-card { min-height:117px; padding:10px; }.workout-exercise-card > div { min-height:58px; padding:8px; }.workout-exercise-card strong { font-size:.67rem; }.workout-exercise-card span { font-size:.53rem; }.workout-selection-bar > div { display:none; }.workout-selection-bar button { width:100%; }.workout-builder-actions { gap:7px; }.workout-builder-clear { padding-inline:10px; font-size:.66rem; }.workout-builder-start { padding-inline:11px; font-size:.66rem; } }
@media (prefers-reduced-motion:reduce) { .workout-exercise-card img,.workout-exercise-card::before,.workout-builder-controls button,.workout-today-action { transition:none; } }

/* Stage 5 — active training is a focused session, not a spreadsheet. */
.workout-session { padding:20px; background:linear-gradient(180deg,rgba(255,253,253,.62),rgba(255,247,248,.35)); }.workout-session-header { gap:13px; }.workout-session-header-actions { padding-bottom:2px; }.workout-session-header .eyebrow { color:#c25e73; letter-spacing:.14em; }.workout-session-header h3 { color:#4b3038; font-size:1.52rem; }.workout-session-header p:not(.eyebrow) { color:#967980; font-size:.76rem; }.workout-session-elapsed { margin-left:8px; border:1px solid rgba(193,79,105,.15); border-radius:999px; padding:5px 8px; color:#af4d64; background:#ffe8ed; font-size:.63rem; }.workout-session-progress { height:8px; margin:17px 0; border:1px solid rgba(200,87,110,.1); background:#f7dfe4; box-shadow:inset 0 1px 2px rgba(142,45,68,.06); }.workout-session-progress span { background:linear-gradient(90deg,#ef9caf,#c6506b); box-shadow:0 0 11px rgba(188,67,95,.33); }
.workout-session-exercise { position:relative; grid-template-columns:112px minmax(0,1fr); min-height:122px; overflow:hidden; gap:15px; border-color:rgba(192,80,106,.17); border-radius:22px; padding:12px; background:linear-gradient(125deg,rgba(255,231,236,.96),rgba(255,255,255,.91)); box-shadow:0 15px 30px rgba(138,53,75,.1),inset 0 1px rgba(255,255,255,.95); }.workout-session-exercise::after { position:absolute; width:132px; height:132px; right:-55px; top:-59px; border:1px solid rgba(201,86,111,.12); border-radius:50%; content:""; }.workout-session-exercise img { position:relative; z-index:1; width:112px; height:96px; border:2px solid rgba(255,255,255,.82); border-radius:17px; box-shadow:0 9px 18px rgba(104,41,60,.14); }.workout-session-exercise > div { position:relative; z-index:1; align-self:center; }.workout-session-exercise span { display:inline-flex; min-height:23px; align-items:center; border-radius:999px; padding:0 7px; color:#ad5166; background:rgba(255,255,255,.59); font-size:.6rem; font-weight:800; }.workout-session-exercise h4 { margin-top:8px; color:#51323a; font:600 clamp(1.1rem,3vw,1.34rem)/1.08 "Playfair Display",serif; letter-spacing:-.03em; white-space:normal; }
.workout-set-list { gap:10px; margin-top:17px; }.workout-set-row { position:relative; grid-template-columns:minmax(112px,.76fr) minmax(0,1.44fr); gap:13px; border-color:rgba(188,79,104,.13); border-radius:18px; padding:12px; background:linear-gradient(135deg,rgba(255,255,255,.9),rgba(255,246,247,.68)); box-shadow:0 8px 18px rgba(130,54,73,.045),inset 0 1px rgba(255,255,255,.93); }.workout-set-row.is-current { border-color:rgba(201,83,109,.5); background:linear-gradient(135deg,rgba(255,233,238,.98),rgba(255,255,255,.92)); box-shadow:0 12px 25px rgba(157,59,82,.13),inset 0 1px rgba(255,255,255,.96); }.workout-set-row.is-current::after { position:absolute; right:12px; top:10px; border-radius:999px; padding:4px 7px; color:#b24961; background:#ffe0e7; content:"зараз"; font-size:.54rem; font-weight:900; letter-spacing:.05em; text-transform:uppercase; }.workout-set-row.is-complete { border-color:rgba(105,155,112,.28); background:linear-gradient(135deg,rgba(247,255,247,.93),rgba(255,255,255,.85)); }.workout-set-row.is-complete::after { position:absolute; right:12px; top:10px; color:#63986d; content:"готово"; font-size:.57rem; font-weight:900; letter-spacing:.04em; text-transform:uppercase; }.workout-set-row.is-next { opacity:.78; }.workout-set-row strong { color:#593a42; font-size:.79rem; }.workout-set-row > div:first-child span { display:inline-flex; max-width:100%; margin-top:7px; border-radius:8px; padding:4px 6px; color:#9b7c84; background:#fff1f3; font-size:.58rem; white-space:nowrap; }.workout-remove-set { position:absolute; left:12px; bottom:11px; width:28px; height:28px; border-radius:9px; color:#bd5969; background:#fff2f3; }.workout-set-row > div:first-child:has(.workout-remove-set) span { margin-bottom:29px; }.workout-set-fields { gap:8px; }.workout-set-fields label { gap:5px; }.workout-set-fields label > span { color:#96777e; font-size:.59rem; letter-spacing:.02em; }.workout-set-fields input { height:44px; border-color:rgba(193,81,106,.16); border-radius:12px; color:#4e333a; background:#fffdfd; box-shadow:inset 0 1px rgba(255,255,255,.95); font-size:.88rem; }.workout-set-fields input:focus { border-color:rgba(199,79,107,.58); box-shadow:0 0 0 4px rgba(210,91,118,.13); }.workout-set-fields input:disabled { color:#ab9096; background:#fff8f8; }.workout-set-fields i { right:9px; bottom:13px; color:#ac9097; font-size:.57rem; }
.workout-add-set { min-height:43px; margin-top:11px; border-color:rgba(200,84,109,.38); border-radius:14px; color:#af5066; background:linear-gradient(135deg,rgba(255,245,247,.9),rgba(255,234,239,.78)); font-size:.73rem; }.workout-add-set:hover { background:#ffe9ee; }.workout-rest { min-height:57px; margin-top:11px; border-color:rgba(209,133,89,.24); border-radius:17px; padding:10px 12px; color:#925d48; background:linear-gradient(135deg,rgba(255,237,225,.98),rgba(255,250,246,.88)); box-shadow:0 9px 19px rgba(174,106,68,.08); }.workout-rest div { gap:8px; }.workout-rest strong { font-size:.76rem; }.workout-rest span { color:#b35f43; font-size:1.08rem; }.workout-rest button { min-height:34px; border:1px solid rgba(195,112,76,.16); border-radius:11px; color:#a2573e; background:#fffaf5; font-size:.66rem; }.workout-session-note { min-height:19px; margin:10px 3px 0; color:#a35c6d; }.workout-session-note.is-saved { color:#6d9a73; }.workout-session-actions { position:sticky; z-index:4; bottom:-20px; margin-top:15px; border-top:1px solid rgba(192,81,106,.11); padding:15px 0 20px; background:linear-gradient(180deg,rgba(255,250,251,0),rgba(255,250,251,.98) 28%); }.workout-session-next,.workout-session-skip { min-height:49px; border-radius:16px; font-size:.75rem; }.workout-session-skip { border-color:rgba(190,92,108,.19); color:#ad6271; background:#fff7f8; }.workout-session-next { box-shadow:0 11px 22px rgba(177,67,91,.24),inset 0 1px rgba(255,255,255,.22); }
.workout-complete { position:relative; overflow-y:auto; padding:clamp(32px,7vh,58px) 25px max(31px,env(safe-area-inset-bottom)); background:radial-gradient(circle at 50% 10%,rgba(255,217,225,.42),transparent 34%); }.workout-complete::before,.workout-complete::after { position:absolute; border:1px solid rgba(205,89,114,.11); border-radius:50%; content:""; pointer-events:none; }.workout-complete::before { width:230px; height:230px; left:-160px; top:75px; }.workout-complete::after { width:170px; height:170px; right:-116px; bottom:-64px; }.workout-complete-mark { width:74px; height:74px; border-width:7px; background:linear-gradient(145deg,#e98c9d,#b94a65); box-shadow:0 0 0 11px rgba(207,94,118,.1),0 18px 32px rgba(168,60,85,.24); }.workout-complete .eyebrow { position:relative; z-index:1; margin-top:27px; color:#c15c72; letter-spacing:.15em; }.workout-complete h3 { position:relative; z-index:1; color:#4d3038; }.workout-complete > p:not(.eyebrow) { position:relative; z-index:1; color:#93767e; }.workout-complete-stats { position:relative; z-index:1; gap:9px; margin-top:24px; }.workout-complete-stats > div { border-color:rgba(190,82,106,.14); border-radius:16px; padding:13px 6px; background:linear-gradient(145deg,rgba(255,255,255,.87),rgba(255,239,242,.72)); box-shadow:0 8px 17px rgba(133,53,74,.055); }.workout-complete-stats strong { color:#a7445b; font-size:1.3rem; }.workout-complete-stats span { color:#a1868c; }.workout-complete-list { position:relative; z-index:1; max-height:194px; gap:8px; margin-top:15px; }.workout-complete-exercise { grid-template-columns:31px minmax(0,1fr); gap:9px; border-color:rgba(190,82,106,.12); border-radius:14px; padding:9px 10px; background:rgba(255,255,255,.73); }.workout-complete-index { width:31px; height:31px; border-radius:10px; color:#b14c64; background:#ffe6eb; }.workout-complete-exercise strong { color:#583a41; }.workout-complete-exercise span:not(.workout-complete-index) { color:#a1848b; }.workout-complete-actions { position:relative; z-index:1; margin-top:20px; }.workout-complete-actions button { min-height:46px; border-radius:15px; }
@media (max-width:720px) { .workout-session { padding:15px 12px max(16px,env(safe-area-inset-bottom)); }.workout-session-header h3 { font-size:1.28rem; }.workout-session-progress { margin:14px 0; }.workout-session-exercise { grid-template-columns:88px minmax(0,1fr); min-height:103px; gap:11px; border-radius:19px; padding:9px; }.workout-session-exercise img { width:88px; height:84px; border-radius:14px; }.workout-session-exercise h4 { font-size:1.05rem; }.workout-set-list { gap:8px; margin-top:13px; }.workout-set-row { grid-template-columns:96px minmax(0,1fr); gap:9px; border-radius:16px; padding:10px; }.workout-set-row > div:first-child span { font-size:.54rem; }.workout-set-fields { gap:6px; }.workout-set-fields input { min-height:46px; height:46px; border-radius:12px; font-size:16px; }.workout-set-row.is-current::after,.workout-set-row.is-complete::after { right:9px; top:8px; font-size:.5rem; }.workout-rest { border-radius:15px; }.workout-session-actions { bottom:calc(-16px - env(safe-area-inset-bottom)); padding-bottom:max(16px,env(safe-area-inset-bottom)); }.workout-session-next,.workout-session-skip { min-height:50px; font-size:.69rem; }.workout-complete { align-content:start; padding:36px 17px max(26px,env(safe-area-inset-bottom)); }.workout-complete-mark { width:67px; height:67px; }.workout-complete .eyebrow { margin-top:22px; }.workout-complete-stats { gap:6px; margin-top:21px; }.workout-complete-stats > div { border-radius:14px; padding:11px 4px; }.workout-complete-list { max-height:175px; }.workout-complete-actions { margin-top:16px; } }
@media (max-width:390px) { .workout-session-actions { grid-template-columns:1fr; }.workout-session-skip { order:2; }.workout-set-row { grid-template-columns:88px minmax(0,1fr); gap:7px; padding:9px; }.workout-set-fields { gap:5px; }.workout-set-fields label > span { font-size:.54rem; }.workout-complete-stats strong { font-size:1.12rem; } }
@media (prefers-reduced-motion:reduce) { .workout-session-progress span,.workout-set-row,.workout-rest,.workout-complete-mark { transition:none; animation:none; } }

/* The heart quest deliberately stays small until opened, so it feels like a gentle surprise. */
.heart-quest-trigger { position:fixed; z-index:40; right:max(22px,calc(env(safe-area-inset-right) + 16px)); bottom:max(28px,calc(env(safe-area-inset-bottom) + 20px)); display:grid; width:58px; height:58px; place-items:center; border:1px solid rgba(255,255,255,.82); border-radius:50%; color:#fff; background:linear-gradient(145deg,#e9939d,#b84f61); box-shadow:0 13px 28px rgba(181,73,91,.35),inset 0 1px rgba(255,255,255,.45); cursor:pointer; animation:heart-quest-arrive .35s cubic-bezier(.2,.9,.25,1.18) both,heart-quest-pulse 1s ease-in-out infinite; }.heart-quest-trigger svg { position:relative; z-index:1; width:26px; height:26px; fill:rgba(255,255,255,.95); filter:drop-shadow(0 2px 2px rgba(98,33,46,.18)); }.heart-quest-trigger-glow { position:absolute; inset:-8px; border:1px solid rgba(220,109,124,.32); border-radius:50%; animation:heart-quest-ring 1.4s ease-out infinite; }.heart-quest-trigger:hover { filter:brightness(1.04); transform:scale(1.06); }.heart-quest-modal { position:fixed; z-index:85; inset:0; display:grid; place-items:center; padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left)); background:rgba(71,40,48,.32); backdrop-filter:blur(9px); }.heart-quest-card { position:relative; width:min(440px,100%); overflow:hidden; border:1px solid rgba(255,255,255,.9); border-radius:29px; padding:30px 26px 26px; background:radial-gradient(circle at 50% -12%,rgba(237,171,179,.27),transparent 40%),linear-gradient(145deg,rgba(255,255,255,.99),rgba(255,241,239,.97)); box-shadow:0 28px 76px rgba(88,41,52,.25); text-align:center; animation:heart-quest-card-in .22s ease-out; }.heart-quest-card::after { position:absolute; width:230px; height:230px; right:-135px; bottom:-150px; border:1px solid rgba(210,115,127,.11); border-radius:50%; content:""; pointer-events:none; }.heart-quest-mark { display:grid; width:50px; height:50px; place-items:center; margin:0 auto 14px; border-radius:17px; color:#fff; background:linear-gradient(145deg,#e5969f,#b95768); box-shadow:0 10px 22px rgba(182,80,95,.22); }.heart-quest-mark svg { width:26px; height:26px; fill:currentColor; }.heart-quest-card .eyebrow { margin:0 0 8px; }.heart-quest-card h2 { margin:0; color:#4b3439; font:600 clamp(1.75rem,6vw,2.3rem)/1.04 "Playfair Display",serif; letter-spacing:-.045em; }.heart-quest-timer { display:flex; align-items:center; justify-content:center; gap:9px; margin:15px auto 17px; color:#b35663; font:800 .82rem/1 "DM Sans",sans-serif; }.heart-quest-timer i { display:block; width:106px; height:6px; overflow:hidden; border-radius:999px; background:#f2dfdc; }.heart-quest-timer b { display:block; width:100%; height:100%; border-radius:inherit; background:linear-gradient(90deg,#e2989e,#bb5968); transform-origin:left; }.heart-quest-question { margin:0 auto 17px; color:#60464b; font:600 1.02rem/1.4 "DM Sans",sans-serif; }.heart-quest-options { display:grid; gap:8px; text-align:left; }.heart-quest-options button { display:flex; width:100%; min-height:47px; align-items:center; gap:11px; border:1px solid rgba(184,98,109,.14); border-radius:14px; padding:10px 13px; color:#6d5156; background:rgba(255,255,255,.72); font:600 .82rem/1.3 "DM Sans",sans-serif; text-align:left; cursor:pointer; transition:transform .15s ease,background .15s ease,border-color .15s ease; }.heart-quest-options button::before { display:grid; width:21px; height:21px; flex:0 0 21px; place-items:center; border:1px solid rgba(187,99,111,.22); border-radius:50%; color:#bf6672; content:attr(data-choice); font-size:.64rem; font-weight:800; }.heart-quest-options button:hover:not(:disabled) { border-color:rgba(184,98,109,.35); background:#fff5f3; transform:translateY(-1px); }.heart-quest-options button:disabled { cursor:wait; opacity:.68; }.heart-quest-result { min-height:20px; margin:15px 0 0; color:#a75462; font-size:.79rem; font-weight:800; }.heart-quest-result.is-correct { color:#629770; }.heart-quest-result.is-expired { color:#a48084; }body.heart-quest-open { overflow:hidden; }
@keyframes heart-quest-arrive { from { opacity:0; transform:scale(.6) rotate(-10deg); } to { opacity:1; transform:scale(1) rotate(0); } }@keyframes heart-quest-pulse { 0%,100% { box-shadow:0 13px 28px rgba(181,73,91,.35),0 0 0 0 rgba(225,132,145,.3),inset 0 1px rgba(255,255,255,.45); } 50% { box-shadow:0 15px 31px rgba(181,73,91,.38),0 0 0 11px rgba(225,132,145,0),inset 0 1px rgba(255,255,255,.45); } }@keyframes heart-quest-ring { from { opacity:.9; transform:scale(.72); } to { opacity:0; transform:scale(1.32); } }@keyframes heart-quest-card-in { from { opacity:0; transform:translateY(12px) scale(.96); } to { opacity:1; transform:translateY(0) scale(1); } }
@media (max-width:520px) { .heart-quest-trigger { right:max(16px,calc(env(safe-area-inset-right) + 12px)); bottom:max(20px,calc(env(safe-area-inset-bottom) + 12px)); width:54px; height:54px; }.heart-quest-modal { align-items:end; padding:14px 14px calc(14px + env(safe-area-inset-bottom)); }.heart-quest-card { border-radius:25px; padding:25px 18px 20px; }.heart-quest-question { font-size:.96rem; }.heart-quest-options button { min-height:45px; padding:9px 11px; font-size:.78rem; } }
@media (prefers-reduced-motion:reduce) { .heart-quest-trigger,.heart-quest-trigger-glow { animation:none; }.heart-quest-options button { transition:none; } }

/* Egor's small private control panel. It deliberately shares the site's soft, calm visual language. */
.admin-view { width:min(840px,calc(100% - 34px)); min-height:100svh; margin:auto; padding:112px 0 44px; }.admin-card { border:1px solid rgba(184,101,112,.16); border-radius:30px; padding:clamp(22px,4vw,38px); background:radial-gradient(circle at 100% 0%,rgba(239,172,179,.18),transparent 29%),linear-gradient(145deg,rgba(255,255,255,.96),rgba(255,247,245,.9)); box-shadow:0 24px 58px rgba(111,62,72,.12),inset 0 1px rgba(255,255,255,.95); }.admin-heading { display:grid; grid-template-columns:54px minmax(0,1fr) auto; align-items:center; gap:14px; }.admin-mark { display:grid; width:54px; height:54px; place-items:center; border-radius:18px; color:#fff; background:linear-gradient(145deg,#dc8994,#a94c5d); box-shadow:0 10px 21px rgba(174,74,91,.23); }.admin-mark svg { width:26px; height:26px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; }.admin-heading .eyebrow { margin:0 0 5px; }.admin-heading h2 { margin:0; color:#4e363b; font:600 clamp(1.8rem,4vw,2.45rem)/1 "Playfair Display",serif; letter-spacing:-.045em; }.admin-heading h2 em { color:#b75b68; font-style:italic; }.admin-heading p:not(.eyebrow) { margin:7px 0 0; color:#987d81; font-size:.76rem; line-height:1.4; }.admin-home-link { border:1px solid rgba(183,99,110,.18); border-radius:999px; padding:9px 11px; color:#a75462; background:#fffafa; font-size:.7rem; font-weight:800; text-decoration:none; white-space:nowrap; }.admin-tabs { display:flex; gap:7px; margin:29px 0 22px; border-bottom:1px solid rgba(174,95,104,.13); padding-bottom:12px; }.admin-tabs button { border:0; border-radius:999px; padding:9px 12px; color:#99787e; background:transparent; font:800 .72rem "DM Sans",sans-serif; cursor:pointer; }.admin-tabs button.is-active { color:#a84f5e; background:#fff1ef; box-shadow:inset 0 0 0 1px rgba(185,90,103,.15); }.admin-section-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; }.admin-section-heading > div { display:grid; gap:3px; }.admin-section-heading strong { color:#583d43; font-size:.93rem; }.admin-section-heading span { color:#a1878b; font-size:.67rem; font-weight:700; }.admin-add-question,.admin-refresh { border:1px solid rgba(181,91,103,.2); border-radius:12px; padding:9px 10px; color:#b25664; background:#fffafa; font:800 .68rem "DM Sans",sans-serif; cursor:pointer; }.admin-help { margin:12px 0 17px; color:#967b80; font-size:.73rem; line-height:1.45; }.admin-question-list { display:grid; gap:12px; }.admin-question { border:1px solid rgba(182,98,108,.14); border-radius:19px; padding:14px; background:rgba(255,255,255,.66); box-shadow:inset 0 1px rgba(255,255,255,.9); }.admin-question-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }.admin-question-number { color:#b35c68; font-size:.68rem; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }.admin-delete-question { border:0; border-radius:10px; padding:6px 8px; color:#bd6671; background:#fff0ef; font:800 .67rem "DM Sans",sans-serif; cursor:pointer; }.admin-question label { display:grid; gap:6px; color:#80666b; font-size:.65rem; font-weight:800; }.admin-question textarea,.admin-question input[type="text"] { width:100%; border:1px solid rgba(178,96,107,.16); border-radius:12px; outline:0; padding:10px 11px; color:#593f45; background:#fffdfc; font:600 .78rem/1.35 "DM Sans",sans-serif; resize:vertical; }.admin-question textarea { min-height:68px; }.admin-question textarea:focus,.admin-question input[type="text"]:focus { border-color:rgba(181,82,96,.48); box-shadow:0 0 0 3px rgba(211,119,131,.11); }.admin-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:11px; }.admin-option { display:grid !important; grid-template-columns:17px minmax(0,1fr); align-items:center; gap:7px; border:1px solid rgba(180,98,108,.12); border-radius:12px; padding:7px; background:#fffafa; }.admin-option:has(input:checked) { border-color:rgba(105,153,109,.35); background:#f2f9ef; }.admin-option input[type="radio"] { width:15px; height:15px; margin:0; accent-color:#759e70; }.admin-option input[type="text"] { min-width:0; padding:7px 8px; font-size:.71rem; }.admin-question-empty { display:grid; justify-items:center; margin-top:15px; border:1px dashed rgba(180,97,108,.2); border-radius:18px; padding:31px 18px; color:#9a7f84; text-align:center; }.admin-question-empty span { color:#d47b88; font:600 2rem/1 "Playfair Display",serif; }.admin-question-empty strong { margin-top:8px; color:#75575d; font-size:.82rem; }.admin-question-empty p { max-width:300px; margin:5px 0 0; font-size:.72rem; line-height:1.45; }.admin-save-row { display:flex; align-items:center; justify-content:space-between; gap:13px; margin-top:18px; }.admin-save-button { border:0; border-radius:14px; padding:12px 15px; color:#fff; background:linear-gradient(135deg,#d77a86,#ae4b5d); box-shadow:0 10px 19px rgba(177,77,94,.2); font:800 .72rem "DM Sans",sans-serif; cursor:pointer; }.admin-save-button:disabled,.admin-add-question:disabled,.admin-refresh:disabled { cursor:wait; opacity:.65; }.admin-feedback { margin:0; color:#a85a65; font-size:.72rem; font-weight:700; line-height:1.4; }.admin-feedback.is-success { color:#618d67; }.admin-feedback.is-error { color:#b45a64; }.admin-reward-users { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:17px; }.admin-user-card { border:1px solid rgba(180,98,108,.14); border-radius:19px; padding:14px; background:rgba(255,255,255,.66); box-shadow:inset 0 1px rgba(255,255,255,.9); }.admin-user-heading { display:flex; align-items:center; gap:9px; }.admin-user-avatar { display:grid; width:36px; height:36px; place-items:center; border-radius:12px; color:#fff; background:linear-gradient(145deg,#e18d98,#b25263); font:600 1.15rem/1 "Playfair Display",serif; }.admin-user-card[data-role="kukolka"] .admin-user-avatar { background:linear-gradient(145deg,#eba0a8,#bd6572); }.admin-user-heading strong { color:#5d4147; font-size:.84rem; }.admin-points { margin:15px 0 11px; color:#b15160; font:800 1.3rem/1 "DM Sans",sans-serif; }.admin-sticker-title { color:#9d8186; font-size:.64rem; font-weight:800; }.admin-sticker-chips { display:flex; flex-wrap:wrap; gap:5px; margin-top:7px; }.admin-sticker-chip { border-radius:999px; padding:5px 7px; color:#875f67; background:#fff0ee; font-size:.61rem; font-weight:800; }.admin-sticker-chip.is-sv { color:#806c90; background:#f2ecf4; }
@media (max-width:620px) { .admin-view { width:calc(100% - 24px); padding:92px 0 26px; }.admin-card { border-radius:25px; padding:22px 16px; }.admin-heading { grid-template-columns:45px minmax(0,1fr); gap:11px; }.admin-mark { width:45px; height:45px; border-radius:15px; }.admin-mark svg { width:22px; height:22px; }.admin-heading h2 { font-size:1.82rem; }.admin-heading p:not(.eyebrow) { font-size:.7rem; }.admin-home-link { grid-column:2; justify-self:start; margin-top:-4px; padding:8px 10px; }.admin-tabs { margin:22px 0 18px; }.admin-tabs button { padding:8px 10px; font-size:.68rem; }.admin-section-heading { align-items:flex-start; }.admin-options { grid-template-columns:1fr; }.admin-save-row { align-items:stretch; flex-direction:column; }.admin-save-button { width:100%; }.admin-reward-users { grid-template-columns:1fr; }.admin-question { border-radius:16px; padding:12px; } }

/* Actual sticker artwork in the panel makes collections readable at a glance. */
.admin-sticker-chips { align-items:center; gap:7px; }.admin-sticker-chip { position:relative; display:grid; width:54px; height:54px; margin:0; place-items:center; overflow:hidden; border:1px solid rgba(181,91,103,.18); border-radius:14px; padding:3px; background:linear-gradient(145deg,#fffafa,#fff1ef); box-shadow:0 5px 11px rgba(148,79,90,.08); }.admin-sticker-chip img { width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 3px 3px rgba(153,73,87,.13)); }.admin-sticker-chip figcaption { position:absolute; right:3px; bottom:3px; max-width:calc(100% - 6px); overflow:hidden; border-radius:999px; padding:2px 4px; color:#a54d5b; background:rgba(255,251,250,.92); box-shadow:0 1px 5px rgba(142,72,86,.12); font:800 .46rem/1 "DM Sans",sans-serif; text-overflow:ellipsis; white-space:nowrap; }.admin-sticker-chip.is-sv { border-color:rgba(128,108,144,.2); background:linear-gradient(145deg,#faf6fb,#eee6f1); }.admin-sticker-chip.is-sv figcaption { color:#735782; background:rgba(250,247,252,.94); }.admin-sticker-chip.is-expired { opacity:.5; filter:grayscale(.38); }.admin-sticker-chip.is-expired figcaption { color:#8c7d80; }.admin-expired-stickers { display:grid; gap:7px; margin-top:13px; padding-top:11px; border-top:1px solid rgba(181,91,103,.1); }.admin-expired-stickers > span { color:#a2898e; font-size:.61rem; font-weight:800; }.admin-sticker-empty { margin:4px 0; color:#a38a8f; font-size:.66rem; font-weight:700; }.admin-sticker-chip:hover { transform:translateY(-2px) scale(1.04); transition:transform .16s ease; }@media (max-width:620px) { .admin-sticker-chip { width:49px; height:49px; border-radius:13px; } }
.admin-library-progress { margin:5px 0 -1px; color:#9d8186; font-size:.61rem; font-weight:800; line-height:1.45; }

/* Desktop gives the collections room to show real sticker artwork at a glance. */
@media (min-width:900px) { .admin-view { width:min(1100px,calc(100% - 56px)); }.admin-card { padding:42px 46px; }.admin-reward-users { gap:18px; margin-top:21px; }.admin-user-card { min-height:330px; border-radius:23px; padding:20px; }.admin-user-heading { gap:11px; }.admin-user-avatar { width:42px; height:42px; border-radius:14px; font-size:1.32rem; }.admin-user-heading strong { font-size:.95rem; }.admin-points { margin:19px 0 14px; font-size:1.55rem; }.admin-sticker-title { font-size:.72rem; }.admin-sticker-chips { gap:10px; margin-top:10px; }.admin-sticker-chip { width:72px; height:72px; border-radius:18px; padding:4px; }.admin-sticker-chip figcaption { right:4px; bottom:4px; padding:3px 5px; font-size:.54rem; }.admin-expired-stickers { margin-top:17px; padding-top:14px; }.admin-expired-stickers > span { font-size:.68rem; } }

/* Compact question directory: details expand only for the question being edited. */
.admin-question-list { gap:8px; }.admin-question { padding:10px 12px; transition:border-color .16s ease,box-shadow .16s ease; }.admin-question.is-editing { border-color:rgba(181,88,101,.31); padding:14px; box-shadow:0 10px 22px rgba(148,79,90,.075),inset 0 1px rgba(255,255,255,.92); }.admin-question-header { min-height:34px; margin:0; }.admin-question-meta { display:grid; min-width:0; gap:3px; }.admin-question-preview { overflow:hidden; color:#65484e; font-size:.76rem; line-height:1.2; text-overflow:ellipsis; white-space:nowrap; }.admin-question-controls { display:flex; align-items:center; gap:6px; }.admin-edit-question { display:grid; width:32px; height:32px; flex:0 0 32px; place-items:center; border:1px solid rgba(180,93,105,.19); border-radius:10px; color:#b55966; background:#fff8f7; cursor:pointer; }.admin-edit-question svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; }.admin-edit-question:hover { color:#9d4654; border-color:rgba(180,83,97,.4); background:#fff1ef; }.admin-question.is-editing > label { margin-top:13px; }.admin-question.is-editing .admin-options { margin-top:11px; }.admin-question.is-editing .admin-question-header { margin-bottom:0; }.admin-question.is-editing .admin-question-preview { white-space:normal; }.admin-question.is-editing .admin-delete-question { padding:7px 8px; }@media (max-width:620px) { .admin-question { border-radius:15px; padding:9px 10px; }.admin-question.is-editing { padding:12px 10px; }.admin-question-preview { font-size:.72rem; }.admin-edit-question { width:31px; height:31px; flex-basis:31px; } }

/* A deliberate, one-minute heart can be launched from Egor's panel. */
.admin-question-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; }.admin-heart-trigger { border:1px solid rgba(193,83,104,.3); border-radius:12px; padding:9px 10px; color:#fff; background:linear-gradient(135deg,#df8491,#b34e61); box-shadow:0 7px 14px rgba(176,75,93,.16); font:800 .68rem "DM Sans",sans-serif; cursor:pointer; transition:transform .16s ease,filter .16s ease; }.admin-heart-trigger span { margin-right:3px; font-size:.86rem; }.admin-heart-trigger:hover:not(:disabled) { filter:brightness(1.04); transform:translateY(-1px); }.admin-heart-trigger:disabled { cursor:wait; opacity:.65; }@media (max-width:620px) { .admin-question-actions { justify-content:flex-start; } }

/* The heart sits in the calm upper-left area instead of covering the bottom controls. */
.heart-quest-trigger { left:var(--heart-quest-x,max(22px,calc(env(safe-area-inset-left) + 16px))); right:auto; top:var(--heart-quest-y,clamp(180px,31svh,330px)); bottom:auto; transition:left 1.25s cubic-bezier(.28,.85,.32,1),top 1.25s cubic-bezier(.28,.85,.32,1),filter .16s ease,transform .16s ease; }@media (max-width:520px) { .heart-quest-trigger { left:var(--heart-quest-x,max(16px,calc(env(safe-area-inset-left) + 12px))); top:var(--heart-quest-y,clamp(152px,29svh,250px)); right:auto; bottom:auto; } }@media (prefers-reduced-motion:reduce) { .heart-quest-trigger { transition:none; } }

/* Foundation for the reward-card opening sequence. Motion and reveal arrive next. */
.reward-opening { position:fixed; z-index:110; inset:0; display:grid; place-items:center; padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left)); background:rgba(70,38,48,.42); backdrop-filter:blur(12px); }.reward-opening-backdrop { position:absolute; inset:0; }.reward-opening-panel { position:relative; z-index:1; width:min(410px,100%); overflow:hidden; border:1px solid rgba(255,255,255,.87); border-radius:30px; padding:27px 24px 24px; background:radial-gradient(circle at 50% 0%,rgba(247,190,198,.33),transparent 38%),linear-gradient(145deg,rgba(255,253,252,.98),rgba(255,241,239,.96)); box-shadow:0 28px 76px rgba(76,39,49,.3),inset 0 1px rgba(255,255,255,.94); text-align:center; }.reward-opening-panel::before,.reward-opening-panel::after { position:absolute; border:1px solid rgba(210,112,126,.12); border-radius:50%; content:""; pointer-events:none; }.reward-opening-panel::before { width:220px; height:220px; top:-152px; left:-112px; }.reward-opening-panel::after { width:260px; height:260px; right:-170px; bottom:-185px; }.reward-opening-panel .eyebrow { position:relative; z-index:1; margin:0 0 7px; }.reward-opening-panel h2 { position:relative; z-index:1; margin:0; color:#51383e; font:600 clamp(1.75rem,6vw,2.2rem)/1 "Playfair Display",serif; letter-spacing:-.045em; }.reward-opening-panel h2 em { color:#ba5e6c; font-style:italic; }.reward-opening-stage { position:relative; z-index:1; display:grid; min-height:300px; place-items:center; margin:19px 0 14px; perspective:1050px; }.reward-opening-card { width:min(224px,64vw); aspect-ratio:3/4; margin:0; filter:drop-shadow(0 19px 20px rgba(136,61,78,.22)); transform-style:preserve-3d; }.reward-opening-card img { display:block; width:100%; height:100%; object-fit:contain; }.reward-opening-note { position:relative; z-index:1; margin:0; color:#9d7f85; font-size:.76rem; font-weight:600; line-height:1.4; }@media (max-width:520px) { .reward-opening { align-items:center; padding:16px; }.reward-opening-panel { border-radius:26px; padding:23px 17px 20px; }.reward-opening-stage { min-height:284px; margin:17px 0 12px; }.reward-opening-card { width:min(208px,64vw); }.reward-opening-note { font-size:.72rem; } }
body.reward-opening-open { overflow:hidden; }.reward-opening[data-pack="sv"] .reward-opening-panel { background:radial-gradient(circle at 50% 0%,rgba(215,195,237,.36),transparent 39%),linear-gradient(145deg,rgba(254,252,255,.98),rgba(246,239,250,.97)); }.reward-opening[data-pack="sv"] .reward-opening-panel::before,.reward-opening[data-pack="sv"] .reward-opening-panel::after { border-color:rgba(136,103,155,.15); }.reward-opening[data-pack="sv"] .reward-opening-panel h2 { color:#56495c; }.reward-opening[data-pack="sv"] .reward-opening-note { color:#8f7e95; }

/* Stage 3: the card turns over and presents the earned sticker. */

/* The final state gives the person time to see and deliberately collect the prize. */
.reward-opening-collect { position:relative; z-index:2; min-width:154px; border:0; border-radius:999px; padding:12px 19px; color:#fff; background:linear-gradient(135deg,#d77b87,#af4d60); box-shadow:0 12px 22px rgba(179,77,96,.24),inset 0 1px rgba(255,255,255,.28); font:800 .78rem/1 "DM Sans",sans-serif; cursor:pointer; }.reward-opening-collect span { display:inline-block; margin-left:5px; font-size:1rem; transition:transform .18s ease; }.reward-opening-collect:hover:not(:disabled) { filter:brightness(1.04); transform:translateY(-1px); }.reward-opening-collect:hover:not(:disabled) span { transform:translateX(3px); }.reward-opening-collect:focus-visible { outline:3px solid rgba(196,89,106,.28); outline-offset:3px; }.reward-opening-collect:disabled { cursor:wait; opacity:.68; }.reward-opening[data-phase="complete"] .reward-opening-note { color:#a95865; font-weight:800; }.reward-opening[data-phase="complete"] .reward-opening-collect { animation:reward-collect-appear .34s cubic-bezier(.2,.8,.3,1) both; }.reward-opening[data-pack="sv"] .reward-opening-collect { background:linear-gradient(135deg,#a780b4,#765586); box-shadow:0 12px 22px rgba(105,71,124,.22),inset 0 1px rgba(255,255,255,.28); }.reward-opening[data-pack="sv"][data-phase="complete"] .reward-opening-note { color:#80658b; }@keyframes reward-collect-appear { from { opacity:0; transform:translateY(10px) scale(.94); } to { opacity:1; transform:translateY(0) scale(1); } }@media (prefers-reduced-motion:reduce) { .reward-opening[data-phase="complete"] .reward-opening-collect { animation:none; } }

/* The reward term is part of the reveal itself, not a hidden detail after it. */
.reward-opening-duration { position:relative; z-index:2; display:inline-flex; min-height:29px; align-items:center; justify-content:center; margin:1px 0 15px; border:1px solid rgba(193,91,104,.2); border-radius:999px; padding:0 12px; color:#b35463; background:rgba(255,247,246,.92); box-shadow:inset 0 1px rgba(255,255,255,.88); font:800 .68rem/1 "DM Sans",sans-serif; letter-spacing:.01em; animation:reward-grant-appear .36s cubic-bezier(.2,.85,.3,1) both; }.reward-opening[data-grant-kind="permanent"] .reward-opening-duration { border-color:rgba(135,100,151,.22); color:#7f5a88; background:rgba(247,241,250,.94); }.reward-opening[data-pack="sv"] .reward-opening-duration { border-color:rgba(132,100,153,.2); color:#80658b; background:rgba(249,244,252,.94); }@keyframes reward-grant-appear { from { opacity:0; transform:translateY(7px) scale(.94); } to { opacity:1; transform:translateY(0) scale(1); } }@media (prefers-reduced-motion:reduce) { .reward-opening-duration { animation:none; } }

/* A short arcade-like shuffle keeps the card back visible until the final reveal. */
.reward-opening[data-phase="back"] .reward-opening-card { animation:reward-card-wait .42s cubic-bezier(.2,.85,.32,1) both; }.reward-opening[data-phase="shuffle"] .reward-opening-card { will-change:transform,filter; backface-visibility:visible; animation:reward-card-game-spin 1.65s cubic-bezier(.22,.75,.2,1) both; }@keyframes reward-card-wait { from { opacity:0; transform:translateY(14px) scale(.92) rotate(-2deg); } to { opacity:1; transform:translateY(0) scale(1) rotate(0); } }@keyframes reward-card-game-spin { 0% { transform:translateY(0) scale(1) rotateY(0deg) rotateZ(0deg); filter:drop-shadow(0 19px 20px rgba(136,61,78,.22)); } 12% { transform:translateY(-8px) scale(1.035) rotateY(145deg) rotateZ(-3deg); } 27% { transform:translateY(2px) scale(.98) rotateY(375deg) rotateZ(3deg); } 45% { transform:translateY(-7px) scale(1.04) rotateY(650deg) rotateZ(-2deg); } 62% { transform:translateY(1px) scale(.99) rotateY(885deg) rotateZ(2deg); } 80% { transform:translateY(-4px) scale(1.025) rotateY(1050deg) rotateZ(-1deg); } 100% { transform:translateY(0) scale(1) rotateY(1080deg) rotateZ(0); filter:drop-shadow(0 24px 26px rgba(136,61,78,.3)); } }@media (prefers-reduced-motion:reduce) { .reward-opening[data-phase="back"] .reward-opening-card,.reward-opening[data-phase="shuffle"] .reward-opening-card { animation:none; } }
/* iPhone PWA can stutter or leave a 3D layer behind when rotateY, a blur and a shadow animate together. On touch devices this keeps the same card-flip feeling using only a GPU-friendly 2D transform. */
@media (hover:none) and (pointer:coarse) { .reward-opening[data-phase="shuffle"] { backdrop-filter:none; -webkit-backdrop-filter:none; }.reward-opening-card { -webkit-transform:translateZ(0); transform:translateZ(0); -webkit-backface-visibility:hidden; backface-visibility:hidden; }.reward-opening[data-phase="shuffle"] .reward-opening-card { will-change:transform; -webkit-animation:reward-card-mobile-spin 1.65s cubic-bezier(.22,.75,.2,1) both; animation:reward-card-mobile-spin 1.65s cubic-bezier(.22,.75,.2,1) both; }@-webkit-keyframes reward-card-mobile-spin { 0% { -webkit-transform:translate3d(0,0,0) scaleX(1) rotate(0deg); } 13% { -webkit-transform:translate3d(0,-5px,0) scaleX(.09) rotate(90deg); } 25% { -webkit-transform:translate3d(0,1px,0) scaleX(1.02) rotate(180deg); } 38% { -webkit-transform:translate3d(0,-5px,0) scaleX(.09) rotate(270deg); } 50% { -webkit-transform:translate3d(0,0,0) scaleX(1) rotate(360deg); } 63% { -webkit-transform:translate3d(0,-4px,0) scaleX(.09) rotate(450deg); } 75% { -webkit-transform:translate3d(0,1px,0) scaleX(1.02) rotate(540deg); } 88% { -webkit-transform:translate3d(0,-3px,0) scaleX(.09) rotate(630deg); } 100% { -webkit-transform:translate3d(0,0,0) scaleX(1) rotate(720deg); } }@keyframes reward-card-mobile-spin { 0% { transform:translate3d(0,0,0) scaleX(1) rotate(0deg); } 13% { transform:translate3d(0,-5px,0) scaleX(.09) rotate(90deg); } 25% { transform:translate3d(0,1px,0) scaleX(1.02) rotate(180deg); } 38% { transform:translate3d(0,-5px,0) scaleX(.09) rotate(270deg); } 50% { transform:translate3d(0,0,0) scaleX(1) rotate(360deg); } 63% { transform:translate3d(0,-4px,0) scaleX(.09) rotate(450deg); } 75% { transform:translate3d(0,1px,0) scaleX(1.02) rotate(540deg); } 88% { transform:translate3d(0,-3px,0) scaleX(.09) rotate(630deg); } 100% { transform:translate3d(0,0,0) scaleX(1) rotate(720deg); } } }
/* The mobile card stays pinned to the center and flips only left-to-right. */
@media (hover:none) and (pointer:coarse) { .reward-opening[data-phase="shuffle"] .reward-opening-card { transform-origin:center center; -webkit-animation-name:reward-card-mobile-horizontal; animation-name:reward-card-mobile-horizontal; }@-webkit-keyframes reward-card-mobile-horizontal { 0%,100% { -webkit-transform:translate3d(0,0,0) scaleX(1); } 12%,37%,62%,87% { -webkit-transform:translate3d(0,0,0) scaleX(.055); } 25%,50%,75% { -webkit-transform:translate3d(0,0,0) scaleX(1); } }@keyframes reward-card-mobile-horizontal { 0%,100% { transform:translate3d(0,0,0) scaleX(1); } 12%,37%,62%,87% { transform:translate3d(0,0,0) scaleX(.055); } 25%,50%,75% { transform:translate3d(0,0,0) scaleX(1); } } }

/* iOS can retain a 3D back face after rotation, so the final prize is rendered independently. */
.reward-opening-winner { position:absolute; z-index:4; width:min(264px,70vw); max-height:290px; opacity:0; object-fit:contain; pointer-events:none; transform:scale(.5); visibility:hidden; filter:drop-shadow(0 18px 20px rgba(164,76,94,.24)); }.reward-opening[data-phase="winner"] .reward-opening-card,.reward-opening[data-phase="complete"] .reward-opening-card { opacity:0; pointer-events:none; visibility:hidden; }.reward-opening[data-phase="winner"] .reward-opening-winner,.reward-opening[data-phase="complete"] .reward-opening-winner { opacity:1; visibility:visible; }.reward-opening[data-phase="winner"] .reward-opening-winner { animation:reward-winner-arrive .7s cubic-bezier(.16,.86,.25,1) both; }.reward-opening[data-phase="complete"] .reward-opening-winner { transform:scale(1); }.reward-opening[data-pack="sv"] .reward-opening-winner { filter:drop-shadow(0 18px 20px rgba(110,76,133,.22)); }@keyframes reward-winner-arrive { 0% { opacity:0; transform:translateY(12px) scale(.48) rotate(-5deg); } 65% { opacity:1; transform:translateY(-4px) scale(1.07) rotate(2deg); } 100% { opacity:1; transform:translateY(0) scale(1) rotate(0); } }@media (prefers-reduced-motion:reduce) { .reward-opening[data-phase="winner"] .reward-opening-winner { animation:none; transform:scale(1); } }

/* Stage 3: a deliberate finish action leaves both hands free to switch cameras. */
.circle-finish-button,.circle-send-button { display:inline-flex; min-height:38px; align-items:center; justify-content:center; gap:7px; border:0; border-radius:12px; padding:0 12px; color:#fff; background:linear-gradient(135deg,#d07882,#ae505e); box-shadow:0 8px 14px rgba(178,77,93,.18); font:800 .68rem "DM Sans",sans-serif; cursor:pointer; transition:filter .16s ease,transform .16s ease; }.circle-finish-button span { display:block; width:9px; height:9px; border-radius:3px; background:#fff; box-shadow:0 0 0 2px rgba(255,255,255,.18); }.circle-finish-button:hover,.circle-send-button:hover:not(:disabled) { filter:brightness(1.04); transform:translateY(-1px); }.circle-send-button { background:linear-gradient(135deg,#cf747e,#a94b5a); }.circle-send-button span { font-size:1rem; line-height:1; }.circle-send-button:disabled { cursor:wait; opacity:.65; }.circle-live-stage.is-switching::after { position:absolute; z-index:4; inset:0; display:grid; place-items:center; color:#fff; background:rgba(51,28,35,.26); content:""; pointer-events:none; }
@media (max-width:520px) { .circle-finish-button,.circle-send-button { grid-column:1 / -1; width:100%; }.circle-recorder-actions:has(.circle-finish-button:not([hidden])),.circle-recorder-actions:has(.circle-send-button:not([hidden])) { grid-template-columns:42px minmax(0,1fr); } }

/* In preview, the two deliberate choices sit together instead of wrapping unpredictably. */
.circle-recorder-actions:has(.circle-send-button:not([hidden])) { grid-template-columns:42px minmax(0,1fr); }.circle-recorder-actions:has(.circle-send-button:not([hidden])) .circle-redo-button { grid-column:1; grid-row:2; width:100%; padding:0 8px; }.circle-recorder-actions:has(.circle-send-button:not([hidden])) .circle-send-button { grid-column:2; grid-row:2; width:100%; }.circle-recorder-actions:has(.circle-send-button:not([hidden])) > p { grid-column:2; }
.circle-recorder { min-height:100dvh; }.circle-recorder-close:disabled { cursor:wait; opacity:.55; }.circle-live-stage[data-state="sending"] .circle-live-ring span { opacity:1; animation:circle-recording-spin .9s linear infinite; }.circle-live-stage[data-state="sending"] { box-shadow:0 0 0 8px rgba(211,91,106,.11),0 18px 38px rgba(167,72,90,.25),inset 0 0 0 7px rgba(255,255,255,.55); }

/* Stage 6 — the training space behaves like a reliable small app on desktop,
   mobile Safari and the installed PWA. Long data never widens the page and
   focused fields retain enough room above the keyboard. */
.workouts-view { isolation:isolate; overflow:clip; }
.workouts-card,.workouts-content,.workout-catalog,.workout-builder,.workout-session,.workout-complete,
.workout-today-card,.workout-progress-card,.workout-history-row,.workout-builder-item,.workout-set-row { min-width:0; max-width:100%; }
.workouts-content,.workout-catalog,.workout-builder,.workout-session,.workout-complete {
  scroll-padding:16px 0 148px;
  scrollbar-color:rgba(191,79,105,.38) transparent;
}
.workouts-content::-webkit-scrollbar,.workout-catalog::-webkit-scrollbar,.workout-builder::-webkit-scrollbar,.workout-session::-webkit-scrollbar,.workout-complete::-webkit-scrollbar { width:6px; }
.workouts-content::-webkit-scrollbar-thumb,.workout-catalog::-webkit-scrollbar-thumb,.workout-builder::-webkit-scrollbar-thumb,.workout-session::-webkit-scrollbar-thumb,.workout-complete::-webkit-scrollbar-thumb { border-radius:999px; background:rgba(191,79,105,.35); }
.workout-name-field input,.workout-set-fields input { scroll-margin-block:18px 148px; }
.workout-today-card h3,.workout-today-card > div > p:not(.eyebrow),.workout-catalog-header h3,.workout-catalog-header p:not(.eyebrow),.workout-builder-header h3,.workout-builder-header p:not(.eyebrow),.workout-session-header h3,.workout-session-header p:not(.eyebrow),.workout-session-exercise h4,.workout-complete h3,.workout-complete > p:not(.eyebrow),.workouts-empty p,.workout-history-copy strong { overflow-wrap:anywhere; hyphens:auto; }
.workout-group-card strong,.workout-group-card span,.workout-exercise-card strong,.workout-exercise-card span,.workout-builder-item strong,.workout-builder-item span:not(.workout-builder-position),.workout-complete-exercise strong,.workout-complete-exercise span:not(.workout-complete-index) { white-space:normal; overflow-wrap:anywhere; }
.workout-builder-item strong,.workout-exercise-card strong { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; text-overflow:clip; }
.workout-builder-item span:not(.workout-builder-position),.workout-exercise-card span { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; text-overflow:clip; }
.workout-group-card,.workout-exercise-card,.workout-builder-controls button,.workout-today-action,.workout-session-next,.workout-session-skip,.workout-add-set,.workout-rest button,.workout-complete-actions button { -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
.workout-group-card:focus-visible,.workout-exercise-card:focus-visible,.workout-today-action:focus-visible,.workout-session-next:focus-visible,.workout-session-skip:focus-visible,.workout-add-set:focus-visible,.workout-rest button:focus-visible,.workout-complete-actions button:focus-visible { outline:3px solid rgba(203,83,111,.34); outline-offset:3px; }
.workout-session-actions { scroll-margin-bottom:calc(20px + env(safe-area-inset-bottom)); }
body.workout-keyboard-open .workout-session-actions { position:static; padding-bottom:16px; background:rgba(255,250,251,.96); }
body.workout-keyboard-open .workout-session { scroll-padding-bottom:184px; }
@media (max-width:720px) {
  .workouts-view { width:calc(100% - 20px); min-height:100svh; padding-top:max(84px,calc(72px + env(safe-area-inset-top))); padding-bottom:max(10px,env(safe-area-inset-bottom)); }
  .workouts-card { min-height:0; height:calc(100svh - max(94px,calc(82px + env(safe-area-inset-top)))); }
  .workouts-topbar { padding-left:max(15px,env(safe-area-inset-left)); padding-right:max(15px,env(safe-area-inset-right)); }
  .workout-today-card { min-width:0; }
  .workout-group-card strong,.workout-exercise-card strong,.workout-builder-item strong { font-size:max(.71rem,12px); }
  .workout-group-card span,.workout-exercise-card span,.workout-builder-item span:not(.workout-builder-position) { font-size:max(.57rem,10px); }
  .workout-complete-actions { padding-bottom:max(4px,env(safe-area-inset-bottom)); }
}
@supports (height:100dvh) {
  @media (max-width:720px) {
    .workouts-view { min-height:100dvh; }
    .workouts-card { height:calc(100dvh - max(94px,calc(82px + env(safe-area-inset-top)))); }
  }
}
@media (max-width:390px) {
  .workouts-topbar > div > span { max-width:128px; }
  .workout-today-card { grid-template-columns:minmax(0,1fr) 78px; }
  .workout-today-art { opacity:.55; }
  .workout-progress-visual { grid-template-columns:78px minmax(0,1fr); gap:8px; }
  .workout-progress-ring { width:76px; height:76px; }
}
@media (prefers-reduced-motion:reduce) {
  .workout-today-card,.workout-history-row,.workout-group-card,.workout-exercise-card,.workout-builder-controls button,.workout-session-actions,.workout-complete-actions button { transition:none; }
}

/* Poems — stage one establishes a private, calm place before the library arrives. */
.button-poems { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-width:210px; min-height:50px; border:1px solid rgba(132,100,159,.19); border-radius:17px; padding:0 18px; color:#715a83; background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(244,237,251,.84)); box-shadow:0 9px 20px rgba(111,77,132,.08),inset 0 1px rgba(255,255,255,.92); font:700 .83rem "DM Sans",sans-serif; }
.button-poems:hover { border-color:rgba(126,88,157,.42); background:#fff; box-shadow:0 12px 23px rgba(111,77,132,.13),inset 0 1px rgba(255,255,255,.95); }
.poems-button-icon { display:grid; width:25px; height:25px; place-items:center; border:1px solid rgba(126,94,151,.12); border-radius:9px; color:#765b8a; background:linear-gradient(145deg,#fbf7ff,#ede4f5); box-shadow:inset 0 1px rgba(255,255,255,.92); }
.poems-button-icon svg,.poems-mark svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; }
.poems-view { display:grid; width:min(880px,calc(100% - 40px)); min-height:100svh; place-items:center; margin:auto; padding:105px 0 42px; }
.poems-card { width:min(650px,100%); overflow:hidden; border:1px solid rgba(255,255,255,.87); border-radius:31px; background:radial-gradient(circle at 86% 12%,rgba(222,204,239,.27),transparent 30%),linear-gradient(145deg,rgba(255,255,255,.92),rgba(253,248,255,.79)); box-shadow:0 24px 65px rgba(91,63,111,.13),inset 0 1px rgba(255,255,255,.95); }
.poems-topbar { display:flex; align-items:center; gap:12px; border-bottom:1px solid rgba(126,91,153,.12); padding:19px 21px; }.poems-topbar > div { min-width:0; }.poems-topbar .eyebrow { margin:0 0 4px; color:#9274a5; font-size:.61rem; }.poems-topbar h2 { margin:0; color:#513d61; font:600 1.42rem/1 "Playfair Display",serif; letter-spacing:-.035em; }.poems-topbar > div > span { display:block; overflow:hidden; margin-top:4px; color:#967f9e; font-size:.7rem; font-weight:600; text-overflow:ellipsis; white-space:nowrap; }
.poems-mark { display:grid; width:44px; height:44px; flex:0 0 auto; place-items:center; border:1px solid rgba(125,91,152,.15); border-radius:15px; color:#815f97; background:linear-gradient(145deg,#fbf6ff,#ece2f4); box-shadow:inset 0 1px rgba(255,255,255,.92); }.poems-mark svg { width:21px; height:21px; }
.poems-back { min-height:34px; margin-left:auto; flex:0 0 auto; border:1px solid rgba(126,92,153,.16); border-radius:11px; padding:0 10px; color:#765c88; background:rgba(253,249,255,.9); font:700 .7rem "DM Sans",sans-serif; cursor:pointer; transition:transform .16s ease,background .16s ease; }.poems-back:hover { background:#f3ebfa; transform:translateX(-1px); }
.poems-content { min-height:370px; padding:clamp(26px,7vw,52px); }.poems-intro { position:relative; display:grid; min-height:292px; align-content:center; justify-items:center; overflow:hidden; border:1px solid rgba(136,100,164,.14); border-radius:24px; padding:33px 25px; color:#5a435f; background:radial-gradient(circle at 50% 10%,rgba(238,219,241,.58),transparent 34%),linear-gradient(145deg,rgba(255,255,255,.85),rgba(250,244,253,.68)); box-shadow:inset 0 1px rgba(255,255,255,.9); text-align:center; }.poems-intro::before,.poems-intro::after { position:absolute; border:1px solid rgba(146,100,170,.1); border-radius:50%; content:""; pointer-events:none; }.poems-intro::before { width:210px; height:210px; left:-141px; bottom:-132px; }.poems-intro::after { width:260px; height:260px; right:-188px; top:-174px; }.poems-intro-mark { position:relative; z-index:1; display:grid; width:46px; height:46px; place-items:center; border-radius:15px; color:#a16e96; background:linear-gradient(145deg,#fff0f5,#f0e7fb); box-shadow:0 9px 20px rgba(131,82,129,.1); font:600 2.5rem/.9 "Playfair Display",serif; }.poems-intro .eyebrow { position:relative; z-index:1; margin:18px 0 8px; color:#ae748d; font-size:.63rem; letter-spacing:.16em; }.poems-intro h3 { position:relative; z-index:1; margin:0; color:#553d5a; font:600 clamp(1.75rem,5.8vw,2.4rem)/1.02 "Playfair Display",serif; letter-spacing:-.05em; }.poems-intro h3 em { color:#ad6078; font-style:italic; }.poems-intro > p:not(.eyebrow) { position:relative; z-index:1; max-width:370px; margin:14px 0 0; color:#8e798e; font-size:.77rem; line-height:1.55; }.poems-access { position:relative; z-index:1; display:inline-flex; min-height:29px; align-items:center; margin-top:18px; border:1px solid rgba(130,94,153,.15); border-radius:999px; padding:0 10px; color:#80608c; background:rgba(255,255,255,.64); font-size:.65rem; font-weight:800; }
@media (max-width:720px) { .button-poems { min-width:224px; min-height:52px; border-radius:17px; }.poems-view { width:calc(100% - 20px); min-height:100dvh; padding:84px 0 max(12px,env(safe-area-inset-bottom)); align-items:start; }.poems-card { border-radius:26px; }.poems-topbar { gap:9px; padding:16px 15px; }.poems-mark { width:40px; height:40px; border-radius:14px; }.poems-topbar h2 { font-size:1.22rem; }.poems-topbar > div > span { font-size:.65rem; }.poems-back { padding:0 8px; font-size:.65rem; }.poems-content { min-height:calc(100dvh - 178px); padding:16px 12px; }.poems-intro { min-height:calc(100dvh - 212px); border-radius:20px; padding:28px 18px; }.poems-intro > p:not(.eyebrow) { font-size:.73rem; }.poems-access { max-width:100%; text-align:center; } }
@media (prefers-reduced-motion:reduce) { .poems-back { transition:none; } }

/* Poems — the collection is deliberately airy and book-like, without making long lines fragile. */
.poems-content { min-height:0; padding:clamp(20px,4.3vw,34px); }
.poems-library-head { display:flex; align-items:end; justify-content:space-between; gap:18px; margin-bottom:19px; padding:3px 3px 0; }
.poems-library-head > div { min-width:0; }.poems-library-head .eyebrow { margin:0 0 8px; color:#ae718a; font-size:.6rem; letter-spacing:.18em; }.poems-library-head h3 { margin:0; color:#513e58; font:600 clamp(1.55rem,4.5vw,2.2rem)/1.03 "Playfair Display",serif; letter-spacing:-.045em; }.poems-library-head h3 em { color:#ac627c; font-style:italic; }.poems-library-head > div > p:not(.eyebrow) { margin:9px 0 0; color:#977f91; font-size:.76rem; line-height:1.45; }
.poems-access { flex:0 0 auto; max-width:190px; min-height:30px; margin:0; border-color:rgba(187,106,132,.16); color:#a05f76; background:rgba(255,248,250,.78); font-size:.63rem; text-align:center; white-space:normal; }
.poems-library-tools { display:flex; align-items:center; gap:10px; margin-bottom:17px; }.poems-filter-tabs { display:flex; flex:0 0 auto; gap:4px; border:1px solid rgba(183,112,135,.13); border-radius:13px; padding:4px; background:rgba(255,255,255,.68); box-shadow:inset 0 1px rgba(255,255,255,.9); }.poems-filter-tabs button { min-height:30px; border:0; border-radius:9px; padding:0 10px; color:#927482; background:transparent; font:800 .65rem "DM Sans",sans-serif; cursor:pointer; transition:color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease; }.poems-filter-tabs button:hover { color:#8e5269; background:rgba(250,230,235,.56); }.poems-filter-tabs button.is-active { color:#fff; background:linear-gradient(135deg,#cf7788,#b9576e); box-shadow:0 5px 12px rgba(181,77,104,.2); }.poems-filter-tabs button:active { transform:scale(.97); }
.poems-search { display:flex; min-width:0; flex:1; align-items:center; gap:8px; border:1px solid rgba(179,106,131,.16); border-radius:13px; padding:0 11px; color:#b46f84; background:rgba(255,255,255,.72); box-shadow:inset 0 1px rgba(255,255,255,.9); }.poems-search:focus-within { border-color:rgba(190,83,111,.38); box-shadow:0 0 0 3px rgba(218,122,145,.1),inset 0 1px rgba(255,255,255,.9); }.poems-search svg { width:16px; height:16px; flex:0 0 auto; fill:none; stroke:currentColor; stroke-linecap:round; stroke-width:1.8; }.poems-search input { width:100%; min-width:0; height:38px; border:0; outline:0; color:#654b58; background:transparent; font:700 .72rem "DM Sans",sans-serif; }.poems-search input::placeholder { color:#b19aa4; font-weight:600; }
.poems-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }.poem-library-card { position:relative; display:flex; min-width:0; min-height:188px; flex-direction:column; overflow:hidden; border:1px solid rgba(177,103,130,.14); border-radius:19px; padding:16px; color:#5c444e; background:radial-gradient(circle at 94% 4%,rgba(239,204,220,.36),transparent 30%),linear-gradient(145deg,rgba(255,255,255,.9),rgba(255,248,249,.7)); box-shadow:0 10px 22px rgba(139,72,96,.06),inset 0 1px rgba(255,255,255,.95); animation:poem-card-in .38s both; animation-delay:calc(var(--poem-index, 0) * 45ms); }.poem-library-card::after { position:absolute; right:-31px; bottom:-46px; width:125px; height:125px; border:1px solid rgba(194,119,145,.1); border-radius:50%; content:""; pointer-events:none; }.poem-card-meta { display:flex; min-width:0; align-items:center; justify-content:space-between; gap:8px; color:#a68b96; font-size:.58rem; font-weight:800; line-height:1.3; }.poem-card-meta time { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.poem-card-meta span { flex:0 0 auto; color:#9d7282; }.poem-library-card h4 { display:-webkit-box; overflow:hidden; margin:14px 0 8px; color:#563d4a; font:600 1.12rem/1.06 "Playfair Display",serif; letter-spacing:-.026em; overflow-wrap:anywhere; -webkit-box-orient:vertical; -webkit-line-clamp:2; }.poem-library-card > p { display:-webkit-box; overflow:hidden; margin:0; color:#8d7580; font:500 .72rem/1.55 "DM Sans",sans-serif; overflow-wrap:anywhere; -webkit-box-orient:vertical; -webkit-line-clamp:3; }.poem-card-sign { position:relative; z-index:1; display:block; overflow:hidden; margin-top:auto; padding-top:13px; color:#b25f76; font-size:.61rem; font-weight:900; letter-spacing:.035em; text-overflow:ellipsis; white-space:nowrap; }
.poems-empty { position:relative; grid-column:1 / -1; display:grid; min-height:252px; place-content:center; justify-items:center; overflow:hidden; border:1px dashed rgba(181,106,134,.22); border-radius:21px; padding:25px; background:radial-gradient(circle at 50% 0,rgba(255,224,231,.48),transparent 44%),rgba(255,255,255,.55); text-align:center; }.poems-empty::before,.poems-empty::after { position:absolute; border:1px solid rgba(184,104,132,.11); border-radius:50%; content:""; pointer-events:none; }.poems-empty::before { width:190px; height:190px; left:-116px; bottom:-122px; }.poems-empty::after { width:154px; height:154px; top:-97px; right:-89px; }.poems-empty > span { position:relative; z-index:1; display:grid; width:48px; height:48px; place-items:center; border-radius:16px; color:#b9677d; background:linear-gradient(145deg,#ffeaf0,#f4e5ed); box-shadow:0 10px 20px rgba(181,88,114,.1); font:600 2.2rem/.9 "Playfair Display",serif; }.poems-empty h4 { position:relative; z-index:1; margin:15px 0 7px; color:#5a404d; font:600 1.3rem/1.08 "Playfair Display",serif; }.poems-empty p { position:relative; z-index:1; max-width:310px; margin:0; color:#977d88; font-size:.72rem; line-height:1.55; }.poems-empty-search > span { color:#85649a; background:linear-gradient(145deg,#f6ecff,#ece4f6); }.poems-empty-saved > span { color:#c6687f; }
@keyframes poem-card-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@media (max-width:720px) { .poems-content { min-height:calc(100dvh - 178px); padding:17px 13px max(23px,env(safe-area-inset-bottom)); }.poems-library-head { display:grid; gap:12px; margin-bottom:15px; }.poems-library-head > div > p:not(.eyebrow) { font-size:.71rem; }.poems-access { justify-self:start; max-width:100%; }.poems-library-tools { display:grid; gap:9px; }.poems-filter-tabs { width:100%; }.poems-filter-tabs button { flex:1; padding:0 6px; }.poems-search input { font-size:.69rem; }.poems-grid { grid-template-columns:1fr; gap:10px; }.poem-library-card { min-height:166px; border-radius:18px; padding:15px; }.poem-library-card h4 { font-size:1.07rem; }.poem-library-card > p { -webkit-line-clamp:2; }.poems-empty { min-height:calc(100dvh - 370px); min-height:260px; } }
@media (prefers-reduced-motion:reduce) { .poem-library-card { animation:none; } .poems-filter-tabs button { transition:none; } }

/* Poems reader — a contained page so it feels steady in browser and PWA alike. */
.poem-library-card { width:100%; border:1px solid rgba(177,103,130,.14); text-align:left; cursor:pointer; appearance:none; font:inherit; transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease; }.poem-library-card:hover { border-color:rgba(188,91,120,.28); box-shadow:0 15px 28px rgba(139,72,96,.11),inset 0 1px rgba(255,255,255,.95); transform:translateY(-2px); }.poem-library-card:focus-visible { outline:3px solid rgba(202,93,124,.28); outline-offset:3px; }.poem-library-card:active { transform:translateY(0) scale(.994); }
.poems-reader { display:grid; min-height:530px; grid-template-rows:auto minmax(0,1fr) auto; overflow:hidden; border:1px solid rgba(185,108,136,.15); border-radius:23px; background:radial-gradient(circle at 7% 0,rgba(255,226,233,.4),transparent 28%),linear-gradient(145deg,rgba(255,255,255,.94),rgba(253,247,249,.86)); box-shadow:inset 0 1px rgba(255,255,255,.96); }.poem-reader-toolbar { display:flex; min-width:0; align-items:center; justify-content:space-between; gap:9px; border-bottom:1px solid rgba(178,102,129,.12); padding:11px 13px; background:rgba(255,252,252,.69); }.poem-reader-toolbar > span { min-width:0; overflow:hidden; color:#a3828e; font-size:.63rem; font-weight:900; text-align:center; text-overflow:ellipsis; white-space:nowrap; }.poem-reader-back,.poem-reader-save { min-height:34px; flex:0 0 auto; border:1px solid rgba(186,99,128,.18); border-radius:10px; padding:0 10px; color:#9e5c72; background:rgba(255,249,250,.9); font:800 .65rem "DM Sans",sans-serif; cursor:pointer; transition:background .16s ease,transform .16s ease,box-shadow .16s ease; }.poem-reader-back:hover,.poem-reader-save:hover { background:#fff0f3; box-shadow:0 5px 12px rgba(182,91,115,.1); }.poem-reader-save.is-saved { border-color:rgba(191,82,111,.32); color:#fff; background:linear-gradient(135deg,#cf7788,#b9566d); }.poem-reader-save:disabled { cursor:wait; opacity:.65; }
.poem-reader-scroll { min-height:0; overflow:auto; overscroll-behavior:contain; padding:clamp(24px,6vw,54px) clamp(19px,8vw,76px); scroll-behavior:smooth; scrollbar-color:rgba(190,100,127,.36) transparent; }.poem-reader-scroll::-webkit-scrollbar { width:6px; }.poem-reader-scroll::-webkit-scrollbar-thumb { border-radius:999px; background:rgba(190,100,127,.35); }.poem-page { width:min(100%,560px); margin:0 auto; padding-bottom:22px; color:#513c47; }.poem-page .eyebrow { margin:0 0 13px; color:#be7085; font-size:.61rem; letter-spacing:.19em; }.poem-page h3 { margin:0; color:#4c3542; font:600 clamp(2rem,6vw,3.15rem)/.98 "Playfair Display",serif; letter-spacing:-.053em; overflow-wrap:anywhere; }.poem-reader-date { margin:12px 0 0; color:#ad8c98; font-size:.67rem; font-weight:800; }.poem-reader-inscription { margin:30px 0 27px; border-left:2px solid rgba(196,103,132,.38); padding:4px 0 4px 14px; color:#9b6f7e; font:italic 1rem/1.55 "Playfair Display",serif; white-space:pre-line; }.poem-reader-body { font:400 1.09rem/1.86 "Playfair Display",serif; letter-spacing:.002em; }.poem-reader-body p { margin:0 0 1.4em; white-space:pre-line; overflow-wrap:anywhere; }.poem-reader-body p:last-child { margin-bottom:0; }.poems-reader.poem-font-small .poem-reader-body { font-size:.98rem; line-height:1.78; }.poems-reader.poem-font-regular .poem-reader-body { font-size:1.09rem; line-height:1.86; }.poems-reader.poem-font-large .poem-reader-body { font-size:1.24rem; line-height:1.84; }
.poem-reader-footer { display:flex; min-width:0; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid rgba(178,102,129,.12); padding:11px 13px; background:rgba(255,252,252,.72); }.poem-font-size { display:flex; align-items:center; gap:3px; border:1px solid rgba(186,105,130,.14); border-radius:11px; padding:3px; background:rgba(255,255,255,.64); }.poem-font-size > span { margin:0 4px 0 5px; color:#aa8994; font-size:.56rem; font-weight:900; letter-spacing:.045em; text-transform:uppercase; }.poem-font-size button { display:grid; width:27px; height:27px; place-items:center; border:0; border-radius:8px; color:#9a7481; background:transparent; font-family:"Playfair Display",serif; cursor:pointer; }.poem-font-size button[data-poem-font="small"] { font-size:.64rem; }.poem-font-size button[data-poem-font="regular"] { font-size:.78rem; }.poem-font-size button[data-poem-font="large"] { font-size:.95rem; }.poem-font-size button.is-active { color:#fff; background:#bf6579; box-shadow:0 4px 10px rgba(184,84,109,.18); }.poem-reader-navigation { display:flex; min-width:0; gap:6px; }.poem-reader-navigation button { min-height:34px; min-width:0; border:1px solid rgba(184,103,130,.17); border-radius:10px; padding:0 9px; color:#a45f75; background:rgba(255,255,255,.72); font:800 .62rem "DM Sans",sans-serif; cursor:pointer; transition:transform .16s ease,background .16s ease; }.poem-reader-navigation button:hover:not(:disabled) { background:#fff0f3; transform:translateY(-1px); }.poem-reader-navigation button:disabled { cursor:not-allowed; opacity:.36; }
@media (max-width:720px) { .poems-view:has(.poems-reader:not([hidden])) { width:100%; padding:0; }.poems-view:has(.poems-reader:not([hidden])) .poems-card { min-height:100dvh; border-width:0; border-radius:0; }.poems-view:has(.poems-reader:not([hidden])) .poems-topbar { display:none; }.poems-view:has(.poems-reader:not([hidden])) .poems-content { min-height:100dvh; height:100dvh; padding:0; }.poems-reader { min-height:100dvh; height:100dvh; border:0; border-radius:0; }.poem-reader-toolbar { padding:calc(12px + env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) 11px max(14px,env(safe-area-inset-left)); }.poem-reader-scroll { padding:31px max(23px,env(safe-area-inset-right)) 31px max(23px,env(safe-area-inset-left)); -webkit-overflow-scrolling:touch; }.poem-page h3 { font-size:clamp(2rem,10.5vw,2.7rem); }.poem-reader-footer { padding:10px max(12px,env(safe-area-inset-right)) max(11px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)); }.poem-font-size > span { display:none; }.poem-reader-navigation button { padding:0 8px; }.poems-reader.poem-font-large .poem-reader-body { font-size:1.17rem; } }
@media (max-width:365px) { .poem-reader-toolbar { gap:5px; }.poem-reader-toolbar > span { display:none; }.poem-reader-back,.poem-reader-save { padding:0 8px; }.poem-reader-navigation button { font-size:.57rem; padding:0 6px; } }
@media (prefers-reduced-motion:reduce) { .poem-library-card,.poem-reader-back,.poem-reader-save,.poem-reader-navigation button { transition:none; }.poem-reader-scroll { scroll-behavior:auto; } }

/* Poems editor — kept in the same calm visual language, but deliberately clear for writing. */
.poems-library-actions { display:flex; flex:0 0 auto; align-items:center; gap:8px; }.poems-create { min-height:31px; border:1px solid rgba(177,82,111,.2); border-radius:10px; padding:0 10px; color:#fff; background:linear-gradient(135deg,#d37a8a,#b7546c); box-shadow:0 6px 14px rgba(181,77,104,.15); font:800 .63rem "DM Sans",sans-serif; cursor:pointer; transition:transform .16s ease,box-shadow .16s ease; }.poems-create:hover { box-shadow:0 9px 16px rgba(181,77,104,.22); transform:translateY(-1px); }.poems-create:active { transform:translateY(0) scale(.97); }
.poem-library-card { display:block; min-height:0; padding:0; background:radial-gradient(circle at 94% 4%,rgba(239,204,220,.36),transparent 30%),linear-gradient(145deg,rgba(255,255,255,.9),rgba(255,248,249,.7)); }.poem-library-open { position:relative; z-index:1; display:flex; width:100%; min-height:188px; flex-direction:column; border:0; padding:16px; color:#5c444e; background:transparent; font:inherit; text-align:left; cursor:pointer; }.poem-library-open h4 { display:-webkit-box; overflow:hidden; margin:14px 0 8px; color:#563d4a; font:600 1.12rem/1.06 "Playfair Display",serif; letter-spacing:-.026em; overflow-wrap:anywhere; -webkit-box-orient:vertical; -webkit-line-clamp:2; }.poem-card-excerpt { display:-webkit-box; overflow:hidden; color:#8d7580; font:500 .72rem/1.55 "DM Sans",sans-serif; overflow-wrap:anywhere; -webkit-box-orient:vertical; -webkit-line-clamp:3; }.poem-library-open:focus-visible { outline:3px solid rgba(202,93,124,.28); outline-offset:-3px; }.poem-card-edit { position:absolute; z-index:2; right:11px; bottom:10px; min-height:28px; border:1px solid rgba(181,98,127,.18); border-radius:9px; padding:0 8px; color:#aa6178; background:rgba(255,250,251,.92); box-shadow:0 4px 10px rgba(126,72,91,.06); font:800 .58rem "DM Sans",sans-serif; cursor:pointer; opacity:0; transform:translateY(3px); transition:opacity .16s ease,transform .16s ease,background .16s ease; }.poem-library-card:hover .poem-card-edit,.poem-card-edit:focus-visible { opacity:1; transform:translateY(0); }.poem-card-edit:hover { background:#fff0f3; }.poem-library-card:has(.poem-card-edit) .poem-card-sign { padding-right:75px; }
.poems-editor { display:grid; min-height:530px; overflow:hidden; border:1px solid rgba(185,108,136,.15); border-radius:23px; background:radial-gradient(circle at 7% 0,rgba(255,226,233,.4),transparent 28%),linear-gradient(145deg,rgba(255,255,255,.94),rgba(253,247,249,.86)); box-shadow:inset 0 1px rgba(255,255,255,.96); }.poem-editor-toolbar { display:flex; align-items:center; justify-content:space-between; gap:10px; border-bottom:1px solid rgba(178,102,129,.12); padding:11px 13px; background:rgba(255,252,252,.69); }.poem-editor-toolbar > span { color:#a3828e; font-size:.64rem; font-weight:900; }.poem-editor-form { display:grid; align-content:start; gap:15px; padding:clamp(21px,5vw,37px); }.poem-editor-form > label,.poem-editor-meta > label { display:grid; gap:7px; color:#856d78; font:800 .67rem "DM Sans",sans-serif; }.poem-editor-meta { display:grid; grid-template-columns:128px minmax(0,1fr); gap:11px; }.poem-editor-meta label > span { color:#b39aa5; font-size:.56rem; font-weight:700; }.poem-editor-form input,.poem-editor-form textarea { width:100%; min-width:0; border:1px solid rgba(181,103,130,.18); border-radius:12px; padding:11px 12px; outline:0; color:#5d444e; background:rgba(255,255,255,.77); box-shadow:inset 0 1px rgba(255,255,255,.9); font:600 .78rem/1.45 "DM Sans",sans-serif; transition:border-color .16s ease,box-shadow .16s ease; }.poem-editor-form input:focus,.poem-editor-form textarea:focus { border-color:rgba(191,82,111,.42); box-shadow:0 0 0 3px rgba(218,122,145,.1),inset 0 1px rgba(255,255,255,.9); }.poem-editor-form textarea { min-height:258px; resize:vertical; white-space:pre-wrap; font:400 .91rem/1.7 "Playfair Display",serif; }.poem-editor-feedback { min-height:17px; margin:-5px 0 0; color:#bd5f71; font-size:.66rem; font-weight:800; }.poem-editor-actions { display:grid; grid-template-columns:auto 1fr auto auto; gap:8px; align-items:center; border-top:1px solid rgba(182,102,129,.11); padding-top:14px; }.poem-editor-actions button { min-height:36px; border-radius:11px; padding:0 11px; font:800 .66rem "DM Sans",sans-serif; cursor:pointer; }.poem-editor-delete { border:1px solid rgba(197,102,116,.2); color:#bd5c6d; background:#fff7f7; }.poem-editor-cancel { border:1px solid rgba(179,106,130,.16); color:#986e7d; background:rgba(255,255,255,.74); }.poem-editor-save { border:1px solid rgba(177,82,111,.18); color:#fff; background:linear-gradient(135deg,#d37a8a,#b7546c); box-shadow:0 7px 15px rgba(181,77,104,.17); }.poem-editor-save:disabled,.poem-editor-delete:disabled { cursor:wait; opacity:.65; }
@media (max-width:720px) { .poems-library-head { align-items:start; }.poems-library-actions { width:100%; justify-content:space-between; }.poems-create { min-height:34px; }.poem-library-open { min-height:166px; padding:15px; }.poem-card-edit { opacity:1; transform:none; right:10px; bottom:10px; }.poems-editor { min-height:calc(100dvh - 178px); border-radius:20px; }.poem-editor-form { gap:13px; padding:20px 15px max(20px,env(safe-area-inset-bottom)); }.poem-editor-meta { grid-template-columns:1fr; gap:13px; }.poem-editor-form textarea { min-height:calc(100dvh - 426px); }.poem-editor-actions { grid-template-columns:auto 1fr auto; }.poem-editor-actions > span { display:none; }.poem-editor-save { grid-column:3; }.poem-editor-cancel { grid-column:2; } }
@media (max-width:390px) { .poems-library-actions { align-items:flex-start; flex-direction:column; }.poems-library-actions .poems-access { max-width:100%; }.poem-editor-actions button { padding:0 8px; font-size:.6rem; } }

/* Lapka is visually separate from the heart-purchased collections. */
.reward-shop-icon.is-lapka { overflow:hidden; color:#6d618d; background:linear-gradient(145deg,#f7f6ff,#e8e7fb); }.reward-shop-item.is-lapka { border-color:rgba(126,112,166,.17); background:linear-gradient(135deg,rgba(249,248,255,.82),rgba(255,255,255,.62)); }.reward-shop-item.is-lapka > span:last-child { color:#75698d; border-color:rgba(126,112,166,.2); background:#f7f4ff; }.admin-sticker-chip.is-lapka { border-color:rgba(120,104,163,.24); background:linear-gradient(145deg,#fbfaff,#eceafb); }.admin-sticker-chip.is-lapka figcaption { color:#6e608c; background:rgba(249,248,255,.94); }
.reward-opening[data-pack="lapka"] .reward-opening-panel { background:radial-gradient(circle at 50% 0%,rgba(211,204,246,.49),transparent 40%),radial-gradient(circle at 0 100%,rgba(255,215,229,.22),transparent 38%),linear-gradient(145deg,rgba(255,254,255,.98),rgba(244,242,255,.98)); }.reward-opening[data-pack="lapka"] .reward-opening-panel::before,.reward-opening[data-pack="lapka"] .reward-opening-panel::after { border-color:rgba(125,104,162,.16); }.reward-opening[data-pack="lapka"] .reward-opening-panel h2 { color:#51415f; }.reward-opening[data-pack="lapka"] .reward-opening-panel h2 em { color:#906180; }.reward-opening[data-pack="lapka"] .reward-opening-note { color:#83748f; }.reward-opening[data-pack="lapka"] .reward-opening-card { filter:drop-shadow(0 19px 20px rgba(94,75,132,.24)); }.reward-opening[data-pack="lapka"] .reward-opening-winner { filter:drop-shadow(0 19px 21px rgba(102,78,143,.28)); }.reward-opening[data-pack="lapka"] .reward-opening-duration { border-color:rgba(123,99,161,.24); color:#755984; background:rgba(246,242,255,.94); }.reward-opening[data-pack="lapka"] .reward-opening-collect { background:linear-gradient(135deg,#a67b9f,#72578c); box-shadow:0 12px 22px rgba(100,75,137,.25),inset 0 1px rgba(255,255,255,.28); }.reward-opening[data-pack="lapka"][data-phase="complete"] .reward-opening-note { color:#765b86; }

/* Exchange drawer for the third collection. It makes the irreversible choice explicit. */
body.lapka-exchange-open { overflow:hidden; }
.lapka-exchange { position:fixed; z-index:112; inset:0; display:grid; place-items:center; padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left)); background:rgba(66,51,82,.35); backdrop-filter:blur(11px); -webkit-backdrop-filter:blur(11px); }
.lapka-exchange-backdrop { position:absolute; inset:0; border:0; background:transparent; cursor:default; }
.lapka-exchange-card { position:relative; z-index:1; width:min(520px,100%); max-height:min(760px,calc(100dvh - 36px)); overflow:auto; border:1px solid rgba(255,255,255,.88); border-radius:29px; padding:27px; background:radial-gradient(circle at 100% 0,rgba(217,211,250,.46),transparent 35%),radial-gradient(circle at 0 100%,rgba(255,219,231,.27),transparent 36%),linear-gradient(145deg,rgba(255,254,255,.98),rgba(247,245,255,.96)); box-shadow:0 28px 76px rgba(58,45,77,.28),inset 0 1px rgba(255,255,255,.95); scrollbar-width:thin; scrollbar-color:rgba(123,105,153,.35) transparent; animation:lapka-exchange-in .24s cubic-bezier(.2,.85,.25,1.1) both; }
.lapka-exchange-card header { display:grid; grid-template-columns:55px minmax(0,1fr); align-items:center; gap:13px; padding-right:28px; }.lapka-exchange-mark { display:grid; width:55px; height:55px; place-items:center; overflow:hidden; border-radius:18px; background:linear-gradient(145deg,#f1efff,#dedbf6); box-shadow:0 9px 18px rgba(97,83,140,.18); }.lapka-exchange-mark img { width:100%; height:100%; object-fit:contain; }.lapka-exchange-card .eyebrow { margin:0 0 5px; color:#8877a2; }.lapka-exchange-card h2 { margin:0; color:#4f405e; font:600 clamp(1.7rem,5vw,2.15rem)/1 "Playfair Display",serif; letter-spacing:-.045em; }.lapka-exchange-card h2 em { color:#9d6281; font-style:italic; }.lapka-exchange-card header p:not(.eyebrow) { margin:7px 0 0; color:#887b92; font-size:.73rem; line-height:1.42; }.lapka-exchange-close { position:absolute; top:15px; right:16px; display:grid; width:32px; height:32px; place-items:center; border:1px solid rgba(132,111,161,.17); border-radius:11px; color:#846c91; background:rgba(255,255,255,.72); font:500 1.25rem/1 "DM Sans",sans-serif; cursor:pointer; }.lapka-exchange-close:hover { background:#f0edff; }.lapka-exchange-counter { display:inline-flex; min-height:31px; align-items:center; margin:22px 0 12px; border:1px solid rgba(134,112,164,.18); border-radius:999px; padding:0 11px; color:#796789; background:rgba(249,248,255,.85); font-size:.67rem; font-weight:900; }.lapka-exchange-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(88px,1fr)); gap:10px; }.lapka-exchange-choice { position:relative; display:grid; min-width:0; min-height:112px; align-content:center; justify-items:center; gap:5px; overflow:hidden; border:1px solid rgba(185,103,126,.16); border-radius:17px; padding:7px; color:#a07f89; background:linear-gradient(145deg,rgba(255,253,253,.96),rgba(255,242,244,.73)); box-shadow:inset 0 1px rgba(255,255,255,.92); font:800 .57rem/1 "DM Sans",sans-serif; cursor:pointer; transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease; }.lapka-exchange-choice:hover:not(:disabled) { border-color:rgba(158,95,133,.38); box-shadow:0 9px 16px rgba(133,76,105,.12),inset 0 1px rgba(255,255,255,.92); transform:translateY(-2px); }.lapka-exchange-choice img { width:76px; height:76px; object-fit:contain; filter:drop-shadow(0 4px 5px rgba(144,80,103,.1)); }.lapka-exchange-choice span { overflow:hidden; max-width:100%; text-overflow:ellipsis; white-space:nowrap; }.lapka-exchange-choice.is-selected { border-color:rgba(112,86,153,.52); color:#67517e; background:linear-gradient(145deg,#f6f3ff,#e9e4fa); box-shadow:0 8px 17px rgba(103,78,143,.17),inset 0 0 0 1px rgba(255,255,255,.72); transform:translateY(-1px); }.lapka-exchange-choice.is-selected::after { position:absolute; top:7px; right:7px; display:grid; width:18px; height:18px; place-items:center; border-radius:50%; color:#fff; background:#7b6498; box-shadow:0 3px 7px rgba(95,71,128,.25); content:"✓"; font-size:.65rem; }.lapka-exchange-choice:disabled { cursor:wait; opacity:.6; }.lapka-exchange-empty,.lapka-exchange-feedback { margin:16px 0 0; border-radius:14px; padding:10px 11px; font-size:.71rem; font-weight:700; line-height:1.4; text-align:center; }.lapka-exchange-empty { color:#987c85; background:#fff8f7; border:1px dashed rgba(181,98,112,.2); }.lapka-exchange-feedback { color:#80628e; background:#f4f1ff; border:1px solid rgba(126,105,157,.19); }.lapka-exchange-feedback.is-error { color:#ad5b67; background:#fff2f2; border-color:rgba(186,92,106,.19); }.lapka-exchange-feedback.is-busy { color:#806c54; background:#fff9ee; border-color:rgba(180,145,90,.18); }.lapka-exchange-card footer { display:flex; align-items:center; justify-content:flex-end; gap:9px; margin-top:19px; }.lapka-exchange-cancel,.lapka-exchange-confirm { min-height:39px; border-radius:12px; padding:0 13px; font:800 .68rem "DM Sans",sans-serif; cursor:pointer; }.lapka-exchange-cancel { border:1px solid rgba(143,120,150,.18); color:#886f80; background:rgba(255,255,255,.72); }.lapka-exchange-confirm { border:0; color:#fff; background:linear-gradient(135deg,#9e759f,#70578f); box-shadow:0 9px 17px rgba(103,77,135,.23); }.lapka-exchange-confirm:disabled { cursor:not-allowed; color:#aa9dac; background:#ede8ef; box-shadow:none; }.lapka-exchange-close:focus-visible,.lapka-exchange-choice:focus-visible,.lapka-exchange-cancel:focus-visible,.lapka-exchange-confirm:focus-visible { outline:3px solid rgba(132,103,171,.3); outline-offset:3px; }@keyframes lapka-exchange-in { from { opacity:0; transform:translateY(10px) scale(.97); } to { opacity:1; transform:none; } }
@media (max-width:520px) { .lapka-exchange { align-items:end; padding:0; }.lapka-exchange-card { width:100%; max-height:calc(100dvh - 30px); border-radius:27px 27px 0 0; padding:22px 16px max(20px,env(safe-area-inset-bottom)); }.lapka-exchange-card header { grid-template-columns:49px minmax(0,1fr); gap:11px; }.lapka-exchange-mark { width:49px; height:49px; border-radius:16px; }.lapka-exchange-card h2 { font-size:1.78rem; }.lapka-exchange-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }.lapka-exchange-choice { min-height:104px; border-radius:15px; }.lapka-exchange-choice img { width:68px; height:68px; }.lapka-exchange-card footer { margin-top:16px; }.lapka-exchange-cancel,.lapka-exchange-confirm { min-height:42px; }.lapka-exchange-confirm { flex:1; } }
@media (prefers-reduced-motion:reduce) { .lapka-exchange-card,.lapka-exchange-choice { animation:none; transition:none; } }

/* Answer timeline in Egor's panel. */
.admin-answer-list { display:grid; gap:10px; margin-top:17px; }.admin-answer-card { position:relative; overflow:hidden; border:1px solid rgba(181,96,107,.14); border-radius:18px; padding:14px; background:linear-gradient(145deg,rgba(255,255,255,.78),rgba(255,248,247,.7)); box-shadow:inset 0 1px rgba(255,255,255,.9); }.admin-answer-card::before { position:absolute; inset:0 auto 0 0; width:3px; background:#d47a86; content:""; }.admin-answer-card.is-correct::before { background:#76a071; }.admin-answer-card[data-role="kukolka"]::before { background:#d68591; }.admin-answer-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }.admin-answer-head strong { color:#5c4147; font-size:.8rem; }.admin-answer-head span { border-radius:999px; padding:5px 7px; color:#b25b68; background:#fff0ef; font-size:.61rem; font-weight:900; }.admin-answer-card.is-correct .admin-answer-head span { color:#568155; background:#eef7ec; }.admin-answer-question { margin:10px 0 10px; color:#63484d; font-size:.78rem; font-weight:800; line-height:1.35; }.admin-answer-choice { display:grid; gap:3px; margin:7px 0 0; border:1px solid rgba(179,95,106,.1); border-radius:11px; padding:8px 9px; background:rgba(255,252,251,.78); }.admin-answer-choice span { color:#a4878c; font-size:.59rem; font-weight:900; letter-spacing:.05em; text-transform:uppercase; }.admin-answer-choice strong { color:#76575e; font-size:.72rem; line-height:1.35; }.admin-answer-choice.is-correct-answer { border-color:rgba(102,151,98,.16); background:#f2f8f0; }.admin-answer-choice.is-correct-answer strong { color:#587755; }.admin-answer-date { display:block; margin-top:10px; color:#a58b90; font-size:.63rem; font-weight:800; }.admin-answers-section .admin-feedback { margin-top:14px; }@media (max-width:620px) { .admin-tabs { overflow-x:auto; padding-bottom:12px; scrollbar-width:none; }.admin-tabs::-webkit-scrollbar { display:none; }.admin-tabs button { flex:0 0 auto; }.admin-answer-card { border-radius:16px; padding:12px; }.admin-answer-question { font-size:.75rem; } }
