@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Nunito:wght@800;900;1000&family=Playfair+Display:wght@500;600&display=swap');

:root{
  --pink:#ef6d9f; --pink2:#f8a7c5; --deep:#8f315d; --burgundy:#6e1846; --burgundy-2:#7d1f4d; --card-pink:#fff9fb;
  --bg:#fff7fb;
  --card:#ffffffd9; --text:#34242c; --muted:#8c737d; --line:#f1dbe5;
  --shadow:0 18px 50px rgba(139,47,88,.10); --radius:22px;
}
*{box-sizing:border-box} html,body{touch-action:manipulation} html{background:#ffeef5} body{margin:0;color:var(--text);font-family:"DM Sans",sans-serif;min-height:100vh;min-height:100dvh}
button,[role="button"],a,input,select,textarea,label{touch-action:manipulation}
button,input,textarea,select{font:inherit} button{cursor:pointer;border:0}
.hidden{display:none!important}.muted{color:var(--muted)}.error{color:#b43c64;min-height:20px}
.glass{background:var(--card);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border:1px solid #fff;box-shadow:var(--shadow)}
.auth-shell{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:24px}
.auth-card{width:min(430px,100%);padding:36px;border-radius:32px;text-align:center}
.brand-mark{width:72px;height:72px;margin:auto;border-radius:50%;display:grid;place-items:center;background:#ffe0ed;color:var(--deep);font-size:36px}
.eyebrow{font-size:11px;letter-spacing:.18em;color:var(--deep);font-weight:700}
h1,h2,h3{font-family:"Playfair Display",serif} h1{font-size:40px;margin:12px 0 4px} h2{margin:2px 0;font-size:26px} h3{font-size:22px}
form{display:grid;gap:14px;text-align:left;margin-top:24px}label{display:grid;gap:7px;font-size:13px;font-weight:600}
input,textarea,select{border:1px solid var(--line);border-radius:14px;padding:13px;background:#fff;color:var(--text);outline:none}
input:focus,textarea:focus{border-color:var(--pink);box-shadow:0 0 0 4px #ef6d9f18}
.primary,.secondary,.icon-btn,.avatar{border-radius:14px;padding:12px 16px}.primary{background:var(--pink);color:white;box-shadow:0 8px 20px #ef6d9f33}.secondary{background:#ffe7f0;color:var(--deep)}.full{width:100%}
.topbar{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;align-items:center;padding:max(18px,env(safe-area-inset-top,18px)) max(18px,calc((100vw - 1050px)/2)) 18px;background:#fff8fbdd;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-bottom:1px solid var(--line)}
.hard-refresh-btn{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:38px;height:38px;padding:9px;border:1px solid #f2dce5;border-radius:50%;background:#ffffffb8;color:#a65d7b;cursor:pointer;transition:background .18s ease,color .18s ease,box-shadow .18s ease}
.hard-refresh-btn:hover,.hard-refresh-btn:focus-visible{background:#fff;color:#d74482;box-shadow:0 3px 12px #8f315d18;outline:none}
.hard-refresh-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hard-refresh-btn:disabled{opacity:.65;cursor:wait}
body:not(.home-dashboard) .hard-refresh-btn{display:none}
.top-brand{display:flex;align-items:center;gap:11px}.top-brand .eyebrow{margin:0 0 3px}.top-logo{width:42px;height:42px;margin:0;font-size:22px}.top-brand h2{font-size:22px}
.top-actions{display:flex;gap:8px}.icon-btn,.avatar{background:#fff;border:1px solid var(--line);color:var(--deep)}.avatar{width:44px;height:44px;padding:0;border-radius:50%;background:#ffe2ed}
#notification-center{position:relative;z-index:55;pointer-events:auto}
.notification-toggle{position:relative;width:44px;height:44px;display:grid;place-items:center;padding:10px;border-radius:50%}
.notification-toggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.notification-count{position:absolute;top:-3px;right:-4px;min-width:18px;height:18px;display:grid;place-items:center;padding:0 4px;border:2px solid #fff;border-radius:999px;background:#d9367a;color:#fff;font-size:9px;font-weight:700;line-height:1}
.notification-count[hidden]{display:none}
.notification-panel{position:absolute;top:calc(100% + 11px);right:-120px;z-index:56;width:min(360px,calc(100vw - 28px));overflow:hidden;border:1px solid var(--line);border-radius:19px;background:#fff;box-shadow:0 18px 55px #54213b26}
.notification-panel.hidden{display:none}
.notification-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 15px;border-bottom:1px solid #f4e7ed;background:#fffafd}
.notification-panel-head h3{margin:0;color:var(--deep);font-size:18px}
.notification-panel-head p{margin:3px 0 0;color:var(--muted);font-size:10px}
.notification-mark-all{flex:none;padding:6px;border-radius:9px;background:#fff0f6;color:var(--deep);font-size:10px;font-weight:700}
.notification-mark-all[hidden]{display:none}
.notification-list{max-height:min(55vh,390px);max-height:min(55dvh,390px);overflow-y:auto;-webkit-overflow-scrolling:touch;padding:4px 9px}
.notification-item{width:100%;display:flex;align-items:flex-start;gap:9px;padding:11px 7px;border-bottom:1px solid #f5edf1;background:#fff;color:var(--text);text-align:left}
.notification-item:last-child{border-bottom:0}
.notification-item.unread{border-radius:11px;background:#fff5f9}
.notification-item-icon{width:34px;height:34px;flex:none;display:grid;place-items:center;border-radius:11px;background:#ffe8f1;font-size:17px}
.notification-item-copy{min-width:0;flex:1;display:grid;gap:3px}
.notification-item-copy strong{color:var(--deep);font-size:12px}
.notification-item-copy>span{color:#69535d;font-size:11px;line-height:1.4}
.notification-item-copy small{color:var(--muted);font-size:9px}
.notification-unread-dot{width:8px;height:8px;flex:none;margin:7px 4px 0 0;border-radius:50%;background:var(--pink)}
.notification-empty,.notification-error{margin:0;padding:25px 12px;color:var(--muted);font-size:12px;text-align:center}
.notification-error{color:#b43c64}
.notification-panel-foot{display:grid;gap:4px;padding:10px 14px;border-top:1px solid #f4e7ed;background:#fffafd;text-align:center}
.notification-panel-foot button{justify-self:center;padding:7px 11px;border-radius:999px;background:#ffe7f0;color:var(--deep);font-size:10px;font-weight:700}
.notification-panel-foot button:disabled{opacity:.55;cursor:not-allowed}
.notification-panel-foot small{color:var(--muted);font-size:9px}
#avatar-letter img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.content{max-width:1050px;margin:auto;padding:22px 18px 110px}.hero{padding:24px;border-radius:28px;background:linear-gradient(135deg,#ffd9e8,#fff);box-shadow:var(--shadow)}
.hero h1{font-size:34px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}.card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:18px;box-shadow:0 8px 30px #8f315d0a}.card h3{margin:0 0 8px}.stat{font-size:28px;font-weight:700;color:var(--deep)}
.section-head{display:flex;justify-content:space-between;align-items:center;margin:24px 0 12px}.list{display:grid;gap:10px}.item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px;border:1px solid var(--line);border-radius:16px;background:#fff}
.item.done{opacity:.65;text-decoration:line-through}.tag{display:inline-block;padding:5px 9px;border-radius:999px;background:#ffe6f0;color:var(--deep);font-size:11px;font-weight:700}
.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.photo-grid img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:14px}
.bottom-nav{position:fixed;z-index:30;bottom:12px;bottom:max(12px,env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);width:min(760px,calc(100% - 24px));display:grid;grid-template-columns:repeat(6,minmax(0,1fr));padding:8px;background:#fffdfef2;border:1px solid var(--line);box-shadow:0 12px 40px #8f315d18;border-radius:24px;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
.bottom-nav button{display:grid;justify-items:center;align-content:center;gap:3px;min-width:0;min-height:48px;background:none;color:#70485a;font-size:20px;padding:5px 2px;border-radius:16px;-webkit-tap-highlight-color:transparent}.bottom-nav button span{display:block;font-size:10px;margin-top:0;white-space:nowrap}.bottom-nav button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.bottom-nav button.active{color:var(--deep);background:#fff0f6}.bottom-nav button.active span{font-weight:700}
.drawer{position:fixed;z-index:50;right:16px;bottom:90px;bottom:max(90px,calc(90px + env(safe-area-inset-bottom,0px)));width:min(390px,calc(100% - 32px));padding:20px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:24px}.drawer-head{display:flex;justify-content:space-between;align-items:center}.music-player{display:flex;gap:12px;align-items:center;margin:14px 0}.album-art{width:58px;height:58px;border-radius:16px;background:#ffdce9;display:grid;place-items:center;color:var(--deep);font-size:24px}.music-controls{display:flex;gap:8px;margin:12px 0}.music-controls button{flex:1}.upload-btn{display:block;text-align:center;background:#ffe7f0;color:var(--deep);padding:12px;border-radius:14px;cursor:pointer}.upload-btn input{display:none}
.music-drawer{width:min(560px,calc(100% - 32px));height:min(78vh,760px);height:min(78dvh,760px);max-height:calc(100vh - 112px);max-height:calc(100dvh - 112px);display:flex;flex-direction:column;overflow:hidden}.music-drawer .drawer-head{flex:none}.music-main{flex:1 1 0;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding-right:3px}.music-track-copy{min-width:0;overflow-wrap:anywhere}.music-track-copy p{margin:5px 0 0;font-size:12px}.music-controls button:disabled,.music-song-actions button:disabled,.upload-btn.disabled{opacity:.48;cursor:not-allowed}.music-volume-label{display:flex;grid-template-columns:auto 1fr;align-items:center;gap:12px;margin:8px 0;font-size:12px}.music-volume-label input{flex:1;padding:0;accent-color:var(--pink)}
.music-progress-row{display:flex;align-items:center;gap:9px;margin:12px 0 2px}.music-time{flex:none;min-width:36px;color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums;text-align:center}.music-progress{flex:1;min-width:0;height:20px;padding:0;accent-color:var(--pink);cursor:pointer}.music-progress:disabled{opacity:.5;cursor:default}.music-song-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:center}.music-song-actions .upload-btn{font-size:12px;padding:11px 8px}.music-song-actions button{padding:11px 8px;font-size:12px}.music-storage-note{font-size:10px;line-height:1.4;margin:8px 2px}.music-library-section h4{margin:12px 0 6px;color:var(--deep)}.music-library{display:grid;gap:6px}.music-library-empty{font-size:12px;margin:4px}.music-library-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 9px;background:#fff8fb;border:1px solid var(--line);border-radius:12px;font-size:12px}.music-library-item>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.music-library-actions{display:flex;align-items:center;gap:5px;flex:none}.music-library-actions button{padding:7px 10px;font-size:11px}.music-chat{flex:0 0 25%;min-height:130px;display:flex;flex-direction:column;overflow:hidden;border-top:1px solid var(--line);padding-top:9px;margin-top:9px}.music-chat-heading{display:flex;justify-content:space-between;align-items:center;font-size:12px}.music-chat-heading small{font-size:10px}.music-chat-messages{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:6px;padding:8px 2px}.music-chat-message{display:flex;align-items:baseline;gap:6px;max-width:90%;font-size:11px;overflow-wrap:anywhere}.music-chat-message strong{color:var(--deep);flex:none}.music-chat-message.own{align-self:flex-end;flex-direction:row-reverse;text-align:right}.music-chat-form{display:flex;gap:7px;margin:0}.music-chat-form input{flex:1;min-width:0;padding:9px 11px;font-size:12px}.music-chat-form button{padding:8px 12px;font-size:12px}
.modal{position:fixed;inset:0;z-index:60;background:#2b142080;display:grid;place-items:center;padding:max(20px,env(safe-area-inset-top,20px)) max(20px,env(safe-area-inset-right,20px)) max(20px,env(safe-area-inset-bottom,20px)) max(20px,env(safe-area-inset-left,20px))}.modal-card{width:min(560px,100%);max-height:90vh;max-height:90dvh;overflow:auto;-webkit-overflow-scrolling:touch;background:#fff;border-radius:26px;padding:22px}.modal-head{display:flex;justify-content:space-between}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.canvas-wrap{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}.draw-canvas{display:block;width:100%;touch-action:none}
@media(min-width:760px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero{padding:32px}.content{padding-top:30px}}

.toast{position:fixed;z-index:100;left:50%;bottom:92px;bottom:max(92px,calc(92px + env(safe-area-inset-bottom,0px)));transform:translate(-50%,20px);opacity:0;background:#38202b;color:white;padding:11px 16px;border-radius:999px;transition:.25s;pointer-events:none}.toast.show{opacity:1;transform:translate(-50%,0)}

.together-counter{width:100%;display:flex;align-items:center;gap:15px;text-align:left;padding:18px 22px;margin:22px 0;border:1px solid #f5c3d7;border-radius:22px;background:linear-gradient(105deg,#ffe0ec,#fff);color:var(--text);box-shadow:var(--shadow)}.counter-heart{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:#fff;color:var(--pink);font-size:27px}.together-counter strong,.together-counter small{display:block}.together-counter strong{font-size:19px;color:var(--deep)}.together-counter small{margin-top:3px;color:var(--muted)}.counter-arrow{margin-left:auto;color:var(--deep);font-size:28px}
.diary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.diary-column{min-width:0;padding:16px;background:#fff9fc;border:1px solid var(--line);border-radius:22px}.diary-head,.post-author{display:flex;align-items:center;gap:11px}.diary-head h3{margin:0;font-size:20px}.diary-head p{margin:3px 0 0;font-size:12px}.diary-avatar{flex:none;width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:#ffe2ed;color:var(--deep);font-weight:700;font-size:17px}.diary-avatar.small{width:36px;height:36px}.diary-composer{display:grid;gap:10px;margin:15px 0;padding:12px;background:#fff;border:1px solid var(--line);border-radius:17px}.diary-composer textarea{resize:vertical;min-height:76px}.composer-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.composer-actions .primary{margin-left:auto}.photo-select{display:inline-flex;align-items:center;min-height:40px;padding:0 12px;border-radius:12px;background:#fff0f6;color:var(--deep);cursor:pointer}.photo-select input{display:none}.selected-photo{font-size:11px;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.drive-note{margin:0;color:var(--muted);font-size:10px}.diary-posts{display:grid;gap:12px}.diary-post{min-width:0;padding:14px;background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:0 6px 22px #8f315d08}.post-author strong,.post-author small{display:block}.post-author small{font-size:11px;color:var(--muted);margin-top:2px}.post-content{margin:12px 0;overflow-wrap:anywhere}.post-content p{margin:0 0 10px;line-height:1.5}.post-anchor{color:inherit;text-decoration:none}.drive-photo{display:grid;gap:6px}.drive-photo img{width:100%;max-height:390px;object-fit:cover;border-radius:13px;background:#fff0f6}.photo-open{color:var(--deep);font-size:12px;text-decoration:none}.post-actions{display:flex;gap:14px;padding:7px 0;border-top:1px solid #faedf2;border-bottom:1px solid #faedf2}.text-button{padding:3px;background:none;color:#8c737d;font-size:12px}.text-button.liked{color:var(--deep);font-weight:700}.comment-list{display:grid;gap:8px;padding:9px 0}.comment{display:grid;grid-template-columns:auto 1fr;align-items:baseline;gap:3px 7px;padding:8px 10px;background:#fff7fa;border-radius:12px;font-size:12px}.comment strong{color:var(--deep)}.comment span,.comment audio,.comment button{grid-column:1/-1}.comment audio{width:min(100%,280px);height:34px}.comment-reply{margin:3px 0 0 14px;border-left:2px solid #f3cad9;border-radius:0 10px 10px 0}.comment-form{display:flex;align-items:center;gap:6px;margin:7px 0 0}.comment-form input{min-width:0;flex:1;padding:9px 11px;font-size:12px}.comment-form .secondary{padding:9px;font-size:11px}.voice-btn{width:36px;height:36px;border-radius:11px;background:#fff0f6;color:var(--deep)}.empty-diary{text-align:center;padding:22px 8px;color:var(--muted)}.empty-diary span{font-size:24px;color:var(--pink)}.empty-diary p{margin:5px 0}.empty-diary small{font-size:11px}.older-posts{width:100%;margin-top:12px;padding:9px}
.voice-btn.recording{background:var(--deep);color:#fff;animation:voice-pulse 1s infinite alternate}.load-photo{padding:12px;border-radius:12px;background:#fff0f6;color:var(--deep);text-align:center}@keyframes voice-pulse{to{opacity:.65;transform:scale(.96)}}
.history-image img{width:100%;height:100%;object-fit:cover;border-radius:12px}
.counter-main{min-width:min(530px,72vw)}.counter-units{display:flex;align-items:center;justify-content:center;gap:clamp(9px,3vw,24px)}.counter-units span{display:grid;gap:1px;min-width:42px}.counter-units b{font-size:22px;line-height:1.1;color:#8f315d}.counter-units small{font-size:10px;letter-spacing:0!important}.counter-units i{height:32px;border-left:1px solid #d96c99}
.wall-read-only{margin:14px 0;padding:11px 12px;border-radius:13px;background:#fff0f6;font-size:12px}
.home-feature-grid{display:flex;gap:16px;align-items:stretch;margin:10px 0 20px}.home-post-panel,.home-drawing-panel{flex:1;min-width:0}.home-panel-head{margin:8px 0 12px}.home-panel-head h2{font-size:24px}.home-panel-head .eyebrow{margin:0 0 3px}.home-drawing-panel{display:flex;flex-direction:column;gap:14px;margin-top:48px;padding:18px;border-radius:22px;background:linear-gradient(155deg,#fff,#fff7fa);box-shadow:0 8px 30px #8f315d0a}.home-drawing-heading{display:flex;align-items:center;gap:12px}.home-drawing-heading h3{margin:0;font-size:21px;color:var(--deep)}.home-drawing-heading p{margin:4px 0 0;font-size:12px}.home-drawing-icon{flex:none;width:48px;height:48px;display:grid;place-items:center;border:2px solid #e65391;border-radius:50%;color:#d83f81;font-size:23px}.home-canvas-launch{flex:1;min-height:270px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:20px;border:1px dashed #ef9cbb;border-radius:18px;background:linear-gradient(145deg,#fff7fb,#ffedf4);color:#d74684;font:italic 17px "Playfair Display",serif}.home-canvas-launch:hover{background:#ffedf4;border-color:#db5d92}.home-canvas-heart{font-size:45px;line-height:1}.home-canvas-action{margin-top:10px;padding:8px 13px;border-radius:999px;background:#fff;color:var(--deep);font:600 11px "DM Sans",sans-serif}.home-drawing-panel>.drive-note{margin:0}.today-section{margin:4px 0 20px}.today-section>.section-head{margin:18px 0 12px}.today-section .section-head h2{font-size:25px}.today-section .eyebrow{margin:0 0 3px}.today-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.today-cards .card{min-width:0;display:flex;align-items:flex-start;gap:12px;padding:17px;text-align:left}.today-cards strong{color:var(--deep)}.today-cards p{margin:7px 0 0;line-height:1.45}.today-question,.today-challenge{position:relative;padding-bottom:42px!important}.today-link{position:absolute;bottom:13px;left:66px;color:var(--deep);font-size:12px;font-weight:700}.today-icon{flex:none;width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#ffe2ed;color:#dc4d88;font-size:22px}.challenge-icon{background:#fff0df;color:#e48c32}.dashboard-extras{display:grid;grid-template-columns:1.2fr 1fr;gap:14px;align-items:stretch}.dashboard-extras .hero,.memory-summary{margin:0}.memory-summary .photo-grid{margin-top:10px}
.couple-brand{text-align:center;padding:12px 0 2px;color:var(--deep)}.couple-brand .brand-hearts{font-size:36px;line-height:1;color:#dd4d89;letter-spacing:-12px;padding-right:12px;transform:rotate(-8deg)}.couple-brand h1{font-size:clamp(34px,6vw,48px);font-weight:500;font-style:italic;margin:5px 0 2px}.couple-brand p{font-size:10px;letter-spacing:.3em;margin:0}.couple-brand p span{color:var(--pink);padding:0 5px}
.together-counter{position:relative;justify-content:center;min-height:174px;margin:16px 0 22px;overflow:hidden;color:#741e4b;background:linear-gradient(110deg,#f8c3d7dd,#f9d4dfaa 50%,#d46c91aa),radial-gradient(ellipse at 86% 40%,#8b3456 0,#e99ab0 35%,transparent 65%);border-color:#f6bdd2}.counter-script{font-family:"Playfair Display",serif;font-style:italic;font-size:22px;line-height:1.05;transform:rotate(-8deg);margin-right:18px}.counter-main{text-align:center;display:grid;gap:7px}.counter-main small{letter-spacing:.15em;font-size:10px}.counter-main strong{border:1px solid #de77a0;border-radius:999px;padding:8px 19px;background:#fff8fbcc;font-size:18px}.counter-main em{font-style:normal;font-size:13px}.counter-heart,.counter-arrow{display:none}
.shared-feed{width:min(760px,100%);margin:0 auto}.diary-composer{position:relative;padding:17px 18px 12px 72px;border-radius:20px;box-shadow:0 7px 24px #8f315d0a}.diary-composer textarea{border:0;box-shadow:none!important;resize:vertical;min-height:66px;font-size:16px}.feed-avatar{position:absolute;left:17px;top:19px;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#ef6d9f,#a43f6c);color:white;font-size:19px;font-weight:700}.feed-posts{display:grid;gap:13px;margin-top:14px}.feed-posts .diary-post{padding:17px 18px;border-radius:20px}.post-menu{margin-left:auto;display:flex;gap:9px}.post-menu .text-button{font-size:11px;color:#aa7189}.post-menu .text-button:hover{color:var(--deep)}
.drawing-fab{position:fixed;z-index:28;right:max(22px,calc((100vw - 1050px)/2));bottom:100px;width:58px;height:58px;border-radius:50%;background:linear-gradient(140deg,#ef6d9f,#d8417e);color:white;font-size:28px;box-shadow:0 10px 24px #b93c7350;border:3px solid white;transition:transform .18s}.drawing-fab:hover{transform:translateY(-3px)}
.live-drawing{max-width:1050px;margin:0 auto}.drawing-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:8px 2px 16px}.drawing-heading h1{font-size:clamp(27px,5vw,40px);margin:4px 0}.drawing-heading p{margin:4px 0}.drawing-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 17px 17px 0 0;
}

/* New toolbar actions inside apple-markup-dock */
.apple-markup-dock .toolbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 6px 9px;
  border-radius: 18px;
  background: #fff8fb;
}

.apple-markup-dock .toolbar-actions .tool-button { flex: none; min-height: 40px; padding: 8px 11px; white-space: nowrap; border: 1px solid #f3e3ea; border-radius: 999px; }
.apple-markup-dock .markup-color-button,.apple-markup-dock .markup-tune-button { flex: none; }
.apple-markup-dock .controls-divider { margin-left: 1px; margin-right: 1px; }
.tool-group{display:flex;gap:7px;align-items:center;padding:0 8px}.colors button{width:22px;height:22px;border-radius:50%;background:var(--swatch);border:2px solid white;box-shadow:0 0 0 1px #ead3dd}.colors button.selected{box-shadow:0 0 0 2px #a43262}.brush-size{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted)}.brush-size input{width:76px;padding:0;border:0;box-shadow:none}.tool-button{padding:9px 11px;border-radius:11px;background:#fff3f8;color:var(--deep);font-size:12px}.tool-button.selected{background:#ed5c94;color:white}.draw-board{position:relative;background:white;border:1px solid var(--line);border-top:0;border-radius:0 0 17px 17px;overflow:hidden;box-shadow:0 12px 32px #8f315d0b}.draw-canvas{display:block;width:100%;height:auto;aspect-ratio:5/3;touch-action:none;cursor:crosshair;background-color:#fffdfd;background-image:radial-gradient(#f6e7ed 1px,transparent 1px);background-size:22px 22px}.canvas-watermark{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;color:#db4c89;font:italic 22px "Playfair Display",serif;opacity:.08}.drawing-status{display:flex;align-items:center;gap:8px;padding:12px 3px;color:var(--deep);font-size:12px}.drawing-status .muted{margin-left:auto;font-size:11px}.presence-dot{width:9px;height:9px;border-radius:50%;background:#cfadb9}.presence-dot.online{background:#45bd88;box-shadow:0 0 0 4px #45bd8822}.drawing-history{margin-top:10px}.drawing-history h2{font-size:25px}.drawing-history-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}.history-card{display:flex;align-items:center;gap:12px;padding:10px;background:#fff;border:1px solid var(--line);border-radius:16px}.history-image{width:78px;aspect-ratio:1;border-radius:12px;background:linear-gradient(135deg,#ffe2ed,#fff4f9);color:var(--pink);display:grid;place-content:center}.history-image span{font-size:26px}.history-image small{font-size:10px}.history-card>div{display:grid;gap:4px;min-width:0}.history-card strong,.history-card small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-card strong{color:var(--deep);font-size:13px}.history-card small,.history-card a{font-size:10px;color:var(--muted)}.history-card a{color:var(--deep);text-decoration:none}
@media(max-width:759px){.couple-brand{padding-top:2px}.together-counter{min-height:148px;padding:12px}.counter-script{font-size:18px;margin-right:8px}.counter-main{min-width:0;flex:1}.counter-main strong{font-size:16px;padding:7px 13px}.counter-units{gap:8px}.counter-units span{min-width:32px}.counter-units b{font-size:18px}.counter-units i{height:26px}.diary-composer{padding-left:62px}.feed-avatar{left:12px}.drawing-heading{align-items:flex-start}.drawing-heading .secondary{font-size:12px;padding:10px}.drawing-tools{gap:6px;padding:8px}.tool-button{font-size:11px;padding:8px}.brush-size{order:5}.drawing-status{flex-wrap:wrap}.drawing-status .muted{width:100%;margin:0 0 0 17px}.draw-canvas{aspect-ratio:4/3}.drawing-fab{right:17px;bottom:92px;width:54px;height:54px}}
@media(max-width:759px){.diary-grid{grid-template-columns:1fr}.diary-column{padding:13px}.together-counter{padding:14px}.counter-heart{width:42px;height:42px}}
@media(max-width:759px){.home-feature-grid{flex-direction:column;gap:12px}.home-panel-head{margin-top:5px}.home-drawing-panel{margin-top:0;padding:15px}.home-canvas-launch{min-height:205px}.today-cards{grid-template-columns:1fr}.today-cards .card{padding:15px}.dashboard-extras{grid-template-columns:1fr}.dashboard-welcome{padding:21px}.memory-summary .photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.counter-script{display:none}.together-counter{min-height:142px;padding:14px}.counter-main{min-width:0;flex:1}.counter-main small{font-size:9px}.counter-main strong{font-size:17px;padding:7px 16px}.counter-units{gap:clamp(8px,2vw,20px)}.counter-units span{min-width:36px}.counter-units b{font-size:20px}.counter-main em{font-size:11px}
.bottom-nav button .nav-post-icon{font-size:22px;line-height:23px}
.post-page{width:min(680px,100%);margin:0 auto}.post-page-head{display:flex;align-items:center;justify-content:space-between;margin:4px 0 12px}.post-page-head .eyebrow{margin:0 0 2px}.post-page-head h1{margin:0;color:var(--deep);font-size:30px}.post-compose-open{padding:9px 15px;border-radius:999px}.post-profiles{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-bottom:12px;padding:4px;border-radius:16px;background:#ffeaf2}.post-profiles button{padding:9px 5px;border-radius:12px;background:transparent;color:#916b7d;font-size:13px}.post-profiles button.selected{background:#fff;color:#c83272;box-shadow:0 2px 8px #8f315d12;font-weight:700}.post-page-composer{margin:0 0 12px;padding:12px 13px 10px 62px;border-color:#f3d5e1}.post-page-composer textarea{min-height:55px;padding:8px;font-size:14px}.post-page-composer .feed-avatar{left:12px;top:15px;width:36px;height:36px}.post-page-composer .composer-actions{gap:7px}.post-page-composer .primary{padding:9px 14px}.post-page-feed{display:grid;gap:10px}.social-post{padding:13px 14px;background:#fff;border:1px solid #f2dce5;border-radius:17px;box-shadow:0 4px 16px #8f315d08}.social-post>header{display:flex;align-items:center;gap:9px}.social-avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#f7a8c5,#de4e88);color:#fff;font-weight:700}.social-author{display:grid;gap:2px}.social-author strong{font-size:13px;color:#60283f}.social-author small{font-size:10px;color:var(--muted)}.social-post .post-delete{margin-left:auto}.social-post-text{margin:10px 0;line-height:1.45;font-size:14px;overflow-wrap:anywhere}.social-post-photo{overflow:hidden;margin:9px 0;border-radius:13px;background:#fff2f7}.social-post-photo img{display:block;width:100%;max-height:440px;aspect-ratio:4/3;object-fit:cover}.post-drive-load{width:100%;min-height:130px;background:#fff2f7;color:var(--deep)}.social-post-actions{display:flex;align-items:center;gap:14px;padding:7px 0;border-top:1px solid #faedf2;border-bottom:1px solid #faedf2}.social-post-actions a{margin-left:auto;color:var(--deep);font-size:11px;text-decoration:none}.social-comments{display:grid;gap:3px}.post-comment{margin:7px 0 0;padding:7px 9px;border-radius:10px;background:#fff7fa;font-size:12px}.post-comment strong{color:var(--deep)}.social-comment-form{display:flex;grid-template-columns:none;gap:6px;margin:8px 0 0;text-align:left}.social-comment-form input{min-width:0;flex:1;padding:9px 10px;font-size:12px}.social-comment-form button{padding:7px 11px;border-radius:10px;background:#ffe8f1;color:var(--deep);font-size:11px}
@media(max-width:420px){.post-page-head h1{font-size:27px}.post-profiles button{font-size:12px}.post-page-composer{padding-left:54px}.post-page-composer .feed-avatar{width:32px;height:32px}.social-post{padding:11px}.social-post-photo img{max-height:340px}.bottom-nav{bottom:max(8px,env(safe-area-inset-bottom,0px));padding:6px 4px}.bottom-nav button{min-height:46px;font-size:18px;padding:5px 0}.bottom-nav button span{font-size:9px}}

.home-dashboard {
  min-height: 100vh;
  min-height: 100dvh;
}
.home-dashboard .topbar {
  height: calc(52px + env(safe-area-inset-top, 0px));
  justify-content: center;
  padding: calc(4px + env(safe-area-inset-top, 0px)) 12px 4px;
  border: 0;
}
.home-dashboard .top-brand { display: none; }
.home-dashboard .hard-refresh-btn { top: calc(env(safe-area-inset-top, 0px) + 50%); }
.home-dashboard .top-actions {
  position: absolute;
  inset: env(safe-area-inset-top, 0px) 16px 0;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.home-dashboard .top-actions button { pointer-events: auto; }
.home-dashboard #notification-center { pointer-events: auto; }
.home-dashboard .notification-panel { left: 0; right: auto; }
.home-dashboard .content { padding-top: 0; }
.home-dashboard .icon-btn,
.home-dashboard .avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #ffe3ef;
  color: var(--deep);
  box-shadow: 0 4px 14px #8f315d10;
}
.home-dashboard .together-counter {
  justify-content: space-between;
  min-height: 174px;
  border: 1px solid #f6bdd2;
  background:
    radial-gradient(ellipse at 91% 90%, #a94b6c99 0, transparent 37%),
    linear-gradient(110deg, #f8c3d7 0%, #f9d4df 52%, #eca2bb 100%);
}
.home-dashboard .home-counter-art { font-size: 174px; }
.home-dashboard .home-date-control { cursor: pointer; }
.home-dashboard .home-date-control:hover { background: #fff; }
.home-dashboard .home-post-card { border: 1px solid #f5e1e9; }
.home-dashboard .home-drawing-panel { align-self: stretch; padding: 10px; }
.home-dashboard .home-canvas-launch { width: 100%; }
.home-dashboard .today-cards .card {
  border-color: #f4dbe5;
  box-shadow: 0 8px 24px #8f315d0b;
}
.home-dashboard .today-question .today-link,
.home-dashboard .today-challenge .today-link {
  padding: 6px 12px;
  border-radius: 999px;
  background: #e65391;
  color: white;
  font-size: 11px;
}
.home-dashboard .today-challenge .today-link { background: #e98a37; }
.home-dashboard .bottom-nav {
  bottom: max(12px, env(safe-area-inset-bottom));
  background: #fffdfef5;
}
@media (max-width: 759px) {
  .home-dashboard .content { padding-left: 12px; padding-right: 12px; }
  .home-dashboard .couple-brand { padding-top: 0; }
  .home-dashboard .together-counter { margin-top: 12px; }
}
@media (min-width: 360px) and (max-width: 759px) {
  .home-dashboard .home-feature-grid,
  .home-dashboard .today-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .home-dashboard .home-post-panel,
  .home-dashboard .home-drawing-panel { padding: 10px; }
  .home-dashboard .home-avatar { width: 30px; height: 30px; }
  .home-dashboard .home-post-btn { padding: 7px 10px; font-size: 11px; }
  .home-dashboard .home-canvas-launch { min-height: 150px; padding: 9px; font-size: 13px; }
  .home-dashboard .today-cards .card { gap: 7px; padding: 10px; }
  .home-dashboard .today-icon { width: 28px; height: 28px; font-size: 17px; }
  .home-dashboard .today-card-copy strong { font-size: 11px; }
  .home-dashboard .today-card-copy p { font-size: 11px; }
  .home-dashboard .today-question,
  .home-dashboard .today-challenge { padding-bottom: 42px !important; }
  .home-dashboard .today-question .today-link,
  .home-dashboard .today-challenge .today-link { left: 44px; padding: 6px 8px; font-size: 9px; }
}
.home-dashboard .today-section .section-head h2 { font-size: 18px; }
.today-question-category { display: block; width: fit-content; margin-top: 6px; padding: 3px 7px; border-radius: 999px; background: #fff0f6; color: var(--deep); font-size: 9px; font-weight: 700; }
.today-question-category:empty { display: none; }
.home-special-day-reminders{display:grid;gap:6px;margin:12px 0;padding:9px 12px;border:1px solid #f1c7d8;border-radius:15px;background:#fff8fb}
.home-special-day-reminders[hidden]{display:none}
.home-special-day-reminder{display:flex;align-items:flex-start;gap:8px;margin:0;color:var(--deep);font-size:12px;font-weight:700}
.home-special-day-reminder>span:first-child{flex:none}
.home-special-day-reminder small{display:block;margin-top:2px;color:var(--muted);font-size:10px;font-weight:500}
.home-special-day-more{margin:0;color:var(--muted);font-size:10px}
.home-special-day-error{color:#b43c64}

.home-drawing-panel { margin-top: 0; padding: 10px; }
.home-canvas-launch { width: 100%; min-height: 190px; gap: 10px; padding: 10px; border: 0; background: #fff; }
.home-drawing-preview { width: 100%; min-height: 145px; display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: linear-gradient(145deg,#fff4f8,#ffe7f0); color: var(--pink); }
.home-drawing-preview img { display: block; width: 100%; height: 100%; min-height: 145px; max-height: 230px; object-fit: cover; }
.home-drawing-preview small { color: var(--muted); font: 12px "DM Sans",sans-serif; }
.home-canvas-heart { font-size: 34px; }
.live-drawing { position: fixed; inset: 0; z-index: 80; width: 100%; max-width: none; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 10px; overflow: hidden; padding: max(10px,env(safe-area-inset-top,10px)) max(12px,env(safe-area-inset-right,12px)) max(10px,env(safe-area-inset-bottom,10px)) max(12px,env(safe-area-inset-left,12px)); background: #fff7fb; }
.drawing-heading { flex: none; display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: 0; gap: 7px; }
.drawing-heading h1 { flex: 1; margin: 0; color: var(--deep); font-size: 19px; }
.drawing-close { width: 44px; height: 44px; flex: none; border-radius: 50%; background: #ffe7f0; color: var(--deep); font-size: 25px; line-height: 1; }
.drawing-header-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.drawing-header-actions button { flex: none; min-height: 38px; padding: 7px 13px; border-radius: 999px; font-size: 12px; }
.drawing-header-save { margin-left: auto; }
.drawing-title-row { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 44px; }
.drawing-history-trigger { align-self: center; flex: none; min-width: 100px; min-height: 44px; padding: 8px 16px; border-radius: 999px; }
.drawing-tools { flex: none; gap: 7px; padding: 10px; border-radius: 15px; }
.drawing-custom-color { position: relative; width: 44px; height: 44px; display: grid; place-items: center; overflow: hidden; border: 1px solid #edd5df; border-radius: 50%; background: #fff; color: var(--deep); font-size: 20px; line-height: 1; cursor: pointer; }
.drawing-custom-color input { position: absolute; inset: -6px; width: 54px; height: 54px; padding: 0; opacity: 0; cursor: pointer; }
.draw-board { flex: 1; min-width: 0; min-height: 0; display: grid; place-items: center; border-radius: 15px; }
.draw-canvas { width: 100%; height: 100%; min-height: 0; }
.drawing-status { flex: none; min-height: 24px; padding: 0 3px; }
.drawing-history-overlay { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: max(16px,env(safe-area-inset-top,16px)) max(16px,env(safe-area-inset-right,16px)) max(16px,env(safe-area-inset-bottom,16px)) max(16px,env(safe-area-inset-left,16px)); background: #32162580; }
.drawing-history-overlay.hidden { display: none; }
.drawing-history-dialog { width: min(680px,100%); max-height: min(78vh,720px); max-height: min(78dvh,720px); display: flex; flex-direction: column; overflow: hidden; padding: 16px; border: 1px solid #f1dbe5; border-radius: 20px; background: #fff9fc; box-shadow: 0 20px 60px #54213b30; }
.drawing-history-dialog>header { display: flex; align-items: center; justify-content: space-between; flex: none; margin-bottom: 12px; }
.drawing-history-dialog>header .drawing-close { min-width: 44px; }
.drawing-history-dialog h2 { margin: 0; color: var(--deep); font-size: 20px; }
.drawing-history-list { overflow-y: auto; grid-template-columns: 1fr; padding-right: 3px; }
.history-card { min-width: 0; }
.history-image { flex: none; overflow: hidden; padding: 0; }
.history-image img { width: 100%; height: 100%; object-fit: cover; }
@media(max-width:759px) {
  .home-dashboard .home-canvas-launch { min-height: 150px; padding: 8px; }
  .home-dashboard .home-drawing-preview,.home-dashboard .home-drawing-preview img { min-height: 105px; }
  .live-drawing { gap: 8px; padding-left: max(8px,env(safe-area-inset-left)); padding-right: max(8px,env(safe-area-inset-right)); }
  .drawing-heading { gap: 6px; }
  .drawing-heading h1 { font-size: 17px; }
  .drawing-header-actions button { min-height: 36px; padding: 6px 11px; font-size: 11px; }
  .drawing-title-row { gap: 7px; }
  .drawing-tools { gap: 4px; padding: 6px; }
  .drawing-tools .tool-button { min-height: 40px; padding: 7px 8px; font-size: 10px; }
  .drawing-tools .tool-group { gap: 5px; padding: 0 3px; }
  .drawing-tools .colors button { width: 25px; height: 25px; }
  .drawing-custom-color { width: 40px; height: 40px; }
  .brush-size { min-height: 40px; }
  .brush-size input { width: clamp(54px,18vw,78px); }
  .drawing-history-dialog { max-height: min(84vh,720px); max-height: min(84dvh,720px); padding: 14px; }
  .draw-canvas { width: 100%; height: 100%; }
  .drawing-status { font-size: 10px; }
}

.games-page{max-width:820px;margin:0 auto}
.games-intro{padding:12px 2px 8px}
.games-intro .eyebrow,.games-play-heading .eyebrow,.games-daily-heading .eyebrow{margin:0 0 6px}
.games-intro h1{margin:0;color:var(--deep);font-size:clamp(30px,7vw,42px)}
.games-intro>p:last-child{margin:8px 0 0}
.games-hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 24px}
.games-hub-card{position:relative;min-height:130px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:10px;padding:16px;text-align:left;border:1px solid var(--line);border-radius:20px;background:#ffffffed;color:var(--text);box-shadow:0 8px 28px #8f315d0b;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.games-hub-card:hover{transform:translateY(-2px);border-color:#efb4cb;box-shadow:0 12px 32px #8f315d15}
.games-card-emoji{width:48px;height:48px;flex:none;display:grid;place-items:center;border-radius:16px;background:#fff0f6;font-size:26px}
.games-card-copy{display:grid;gap:3px;padding-right:14px}
.games-card-copy strong{color:var(--deep);font-size:15px}
.games-card-copy>span{color:var(--muted);font-size:11px;line-height:1.4}
.games-card-label{position:absolute;top:15px;right:15px;padding:4px 7px;border-radius:999px;background:#ffe6f0;color:var(--deep);font-size:9px;font-weight:700;letter-spacing:.06em}
.games-card-arrow{position:absolute;right:15px;bottom:14px;color:var(--pink);font-size:22px;line-height:1}
.games-daily,.game-panel{padding:18px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 8px 28px #8f315d0b}
.games-daily-heading{display:flex;align-items:center;gap:12px}
.games-daily-heading>span{width:44px;height:44px;display:grid;place-items:center;border-radius:15px;background:#ffe7f0;color:var(--deep);font-size:25px}
.games-daily-heading h2{margin:0;color:var(--deep);font-size:21px}
.games-daily>p.muted{margin:8px 0 12px;font-size:13px}
.game-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;max-width:340px;margin:14px auto 8px}
.game-square{aspect-ratio:1;border:1px solid #fecdd3;border-radius:14px;background:#fff1f5;color:#e11d48;font-size:25px;font-weight:700;transition:background .15s ease}
.game-square:hover:not(:disabled){background:#ffe2ec}
.game-square:disabled{border-color:#f0e4ea;background:#faf6f8;color:#c6aab7;cursor:default}
.game-square.found{border-color:#e11d48;background:#f43f5e;color:#fff}
.game-result{min-height:24px;margin:14px 0;color:var(--deep);font-size:14px;font-weight:600;text-align:center}
.score-history{margin-top:16px;padding-top:14px;border-top:1px solid #f1e8ed}
.score-history h3{margin:0 0 8px;color:var(--text);font-size:16px}
.score-history .muted{margin:5px 0;font-size:12px}
.score-item{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px dashed #f1e8ed;color:#68515b;font-size:12px}
.score-item span:last-child{color:var(--deep);font-weight:700}
.games-back-button{margin:0 0 14px;padding:8px 0;background:none;color:var(--deep);font-size:13px;font-weight:700}
.games-play-heading{display:flex;align-items:center;gap:13px;margin:0 0 17px}
.games-play-heading .games-card-emoji{width:54px;height:54px;font-size:28px}
.games-play-heading h1{margin:0;color:var(--deep);font-size:28px}
.games-play-heading .muted{margin:4px 0 0;font-size:12px}
.game-panel{max-width:600px;margin:0 auto;text-align:center}
.games-instructions{margin:0 auto 16px;color:var(--muted);font-size:13px;line-height:1.55}
.game-panel .primary,.game-panel .secondary{min-height:42px}
.game-panel .game-result{margin:14px 0}
.memory-board{display:grid;grid-template-columns:repeat(auto-fill, minmax(70px,1fr));gap:9px;margin:0 auto}
.memory-card{aspect-ratio:1;border:1px solid #f0c9d9;border-radius:15px;background:linear-gradient(145deg,#fff2f7,#ffe4ef);color:var(--deep);font-size:clamp(23px,8vw,35px);box-shadow:0 4px 12px #8f315d0b}
.memory-card.matched{border-color:#ef9fbe;background:#ffeaf2}
.memory-card:disabled{cursor:default}
.game-form{max-width:360px;margin:18px auto 0;text-align:left}
.game-form label{color:var(--deep)}
.game-form .primary{width:100%}
.game-form-error{min-height:18px;margin:0;color:#b43c64;font-size:12px}
.word-guess-word{margin:22px 0;font-size:clamp(22px,6vw,34px);font-weight:700;letter-spacing:.13em;color:var(--deep);overflow-wrap:anywhere}
.letter-board{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;max-width:400px;margin:12px auto}
.letter-board button{min-height:38px;border:1px solid var(--line);border-radius:10px;background:#fff7fb;color:var(--deep);font-size:13px;font-weight:700}
.letter-board button:disabled{background:#f4edf0;color:#b9a6ae}
.word-reset{margin-top:8px}
.emoji-question{margin:10px 0 20px;color:var(--deep);font-size:clamp(40px,12vw,58px);letter-spacing:.05em}
.quiz-options{display:grid;gap:9px;max-width:420px;margin:0 auto 14px}
.quiz-option{width:100%;min-height:46px;padding:11px 14px;border:1px solid var(--line);border-radius:14px;background:#fff8fb;color:var(--text);font-size:13px;text-align:left}
.quiz-option:hover:not(:disabled){border-color:var(--pink2);background:#fff0f6}
.quiz-option.correct{border-color:#8ac7a1;background:#effaf2;color:#276841}
.quiz-option.incorrect{border-color:#e8a5b4;background:#fff0f2;color:#a73556}
.trivia-question{margin:8px 0 20px;color:var(--deep);font-size:21px}
.trivia-answer{color:var(--muted);font-size:14px}
.trivia-answer strong{color:var(--deep)}
.spin-wheel{width:118px;height:118px;display:grid;place-items:center;margin:6px auto 18px;border:8px solid #ffe3ee;border-radius:50%;background:conic-gradient(#ffe8f1 0 25%,#fff 25% 50%,#ffe8f1 50% 75%,#fff 75%);font-size:54px;box-shadow:0 8px 22px #8f315d12}
.spin-result{display:grid;gap:9px;max-width:380px;margin:19px auto 0;padding:17px;border-radius:18px;background:#fff2f7}
.spin-result .eyebrow{margin:0;color:var(--deep)}
.spin-result strong{color:var(--deep);font-size:18px}
.spin-result .secondary{justify-self:center}
.tic-tac-toe-status{min-height:24px;margin:0 0 13px;color:var(--deep);font-size:14px;font-weight:700}
.tic-tac-toe-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:330px;margin:0 auto 16px}
.tic-tac-toe-cell{aspect-ratio:1;border:1px solid #f1c8d8;border-radius:16px;background:#fff6fa;color:var(--deep);font-size:clamp(30px,11vw,52px);font-weight:700}
.tic-tac-toe-cell.played-x{color:#d9367a}
.tic-tac-toe-cell.played-o{color:#8d64aa}
.tic-tac-toe-cell:disabled{cursor:default}
.tic-tac-toe-legend{margin:14px 0 0;color:var(--muted);font-size:12px}
.special-days{max-width:760px;margin:0 auto}
.special-days-back{margin:0 0 14px;padding:8px 0;background:none;color:var(--deep);font-size:13px;font-weight:700}
.special-days-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.special-days-header h1{margin:0;color:var(--deep);font-size:clamp(28px,6vw,38px)}
.special-days-header .eyebrow{margin:0 0 5px}
.special-days-header .muted{margin:5px 0 0;font-size:12px;line-height:1.5}
.special-days-add{flex:none;padding:10px 13px;font-size:12px}
.special-days-list{display:grid;gap:8px}
.special-day-item{min-width:0;display:flex;align-items:center;gap:11px;padding:12px;border:1px solid var(--line);border-radius:17px;background:#fff;box-shadow:0 5px 18px #8f315d08}
.special-day-item-icon{width:40px;height:40px;flex:none;display:grid;place-items:center;border-radius:13px;background:#fff0f6;font-size:20px}
.special-day-item-copy{min-width:0;flex:1;display:grid;gap:3px}
.special-day-item-copy strong{overflow-wrap:anywhere;color:var(--deep);font-size:13px}
.special-day-item-copy>span{color:var(--muted);font-size:10px;line-height:1.4}
.special-day-countdown{flex:none;color:#c83c78;font-size:11px;font-weight:700;text-align:right}
.special-day-countdown.is-past{color:var(--muted)}
.special-day-edit{width:32px;height:32px;flex:none;border-radius:10px;background:#fff2f7;color:var(--deep);font-size:17px}
.special-days-empty{padding:34px 18px;border:1px dashed #edcbd9;border-radius:18px;background:#fff9fc;text-align:center}
.special-days-empty>span{color:var(--pink);font-size:30px}
.special-days-empty p{margin:7px 0 4px;color:var(--deep);font-weight:700}
.special-days-empty small{color:var(--muted);font-size:11px}
.special-days-modal{position:fixed;inset:0;z-index:70;display:grid;place-items:center;overflow:auto;padding:max(18px,env(safe-area-inset-top,18px)) max(18px,env(safe-area-inset-right,18px)) max(18px,env(safe-area-inset-bottom,18px)) max(18px,env(safe-area-inset-left,18px));background:#32162580}
.special-days-modal.hidden{display:none}
.special-days-form{width:min(440px,100%);max-height:calc(100vh - 36px);max-height:calc(100dvh - 36px);overflow:auto;padding:21px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:var(--shadow)}
.special-days-form-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.special-days-form-heading h2{margin:0;color:var(--deep);font-size:21px}
.special-days-form>label:not(.special-day-repeat){margin:11px 0 5px;color:var(--deep);font-size:12px}
.special-days-form>input,.special-days-form>select{width:100%;min-height:44px}
.special-days-form .special-day-repeat{display:flex;grid-template-columns:none;align-items:center;gap:9px;margin:14px 0;color:var(--text);font-size:12px}
.special-day-repeat input{width:17px;height:17px;margin:0;accent-color:var(--pink)}
.special-days-form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
.special-days-form-actions button{min-width:92px}
.special-day-delete{margin-top:13px;padding:8px 0;background:none;color:#b43c64;font-size:12px;font-weight:700}
.special-day-delete.hidden{display:none}
.more-page{max-width:760px;margin:0 auto}
.more-page.showing-special-days>.more-page-heading,.more-page.showing-special-days>.more-page-actions{display:none}
.more-page-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 18px}
.more-page-heading .eyebrow{margin:0 0 5px}
.more-page-heading h1{margin:0;color:var(--deep);font-size:clamp(28px,6vw,38px)}
.more-logout{width:34px;height:34px;display:grid;place-items:center;padding:0;border:1px solid var(--line);border-radius:50%;background:#fff;color:#b43c64;font-size:18px}
.more-logout:hover{background:#fff0f5}
.more-page-actions{display:grid;gap:10px}
.more-action{width:100%;display:flex;align-items:center;gap:12px;padding:14px;text-align:left}
.more-action-icon{width:42px;height:42px;flex:none;display:grid;place-items:center;border-radius:14px;background:#fff0f6;font-size:21px}
.more-action>span:nth-child(2){min-width:0;flex:1;display:grid;gap:4px}
.more-action strong{color:var(--deep);font-size:14px}
.more-action small{color:var(--muted);font-size:11px;line-height:1.4}
.more-action-arrow{color:var(--muted);font-size:24px}
.bucket-page-header{display:flex;align-items:center;gap:12px;max-width:640px;margin:0 auto 14px}
.bucket-page-header .games-back-button{flex:none}
.bucket-page-header .eyebrow{margin:0 0 4px}
.bucket-page-header h1{margin:0;color:var(--deep);font-size:clamp(24px,5vw,32px)}
@media(min-width:600px){.games-hub-grid{gap:14px}.games-hub-card{min-height:145px;padding:19px}.games-card-copy strong{font-size:16px}.games-card-copy>span{font-size:12px}.games-daily,.game-panel{padding:24px}}
@media(max-width:360px){.games-hub-grid{gap:8px}.games-hub-card{min-height:122px;padding:12px;border-radius:17px}.games-card-emoji{width:42px;height:42px;font-size:23px}.games-card-copy strong{font-size:13px}.games-card-copy>span{font-size:10px}.games-card-label{top:11px;right:11px;font-size:8px}.games-card-arrow{right:11px;bottom:10px}}
body.word-search-fullscreen{overflow:hidden}
body.word-search-fullscreen .topbar,body.word-search-fullscreen .bottom-nav{display:none}
body.word-search-fullscreen .content{width:100%;max-width:none;min-height:100vh;min-height:100dvh;margin:0;padding:0}
.find-words-page{width:100%;height:100vh;height:100dvh;min-height:520px;display:flex;flex-direction:column;gap:12px;overflow:auto;padding:max(10px,env(safe-area-inset-top,10px)) max(12px,env(safe-area-inset-right,12px)) max(10px,env(safe-area-inset-bottom,10px)) max(12px,env(safe-area-inset-left,12px));background:radial-gradient(ellipse at top left,#ffe5ef 0,#fff8fb 48%,#fff 100%)}
.find-words-header{width:min(1260px,100%);min-height:54px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;margin:0 auto}
.find-words-back{justify-self:start;display:flex;align-items:center;gap:5px;padding:8px 10px;border-radius:12px;background:#fff;color:var(--deep);font-size:13px;font-weight:700}
.find-words-back:first-letter{font-size:22px}
.find-words-title{display:flex;align-items:center;gap:9px}
.find-words-title-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:13px;background:#ffe7f0;font-size:20px}
.find-words-title .eyebrow{margin:0 0 2px;font-size:8px}
.find-words-title h1{margin:0;color:var(--deep);font-size:clamp(20px,4vw,27px);white-space:nowrap}
.find-words-online{justify-self:end;color:var(--muted);font-size:10px}
.find-words-content{width:min(1260px,100%);flex:1;display:flex;flex-direction:column;margin:0 auto}
.find-words-match{flex:1;display:flex;flex-direction:column;gap:10px}
.find-words-status{min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 13px;border:1px solid var(--line);border-radius:16px;background:#ffffffd9}
.find-words-status>div:first-child{min-width:0;display:grid;gap:2px}
.find-words-status strong{color:var(--deep);font-size:13px}
.find-words-status>div:first-child span{color:var(--muted);font-size:10px;line-height:1.35}
.find-words-counter{flex:none;color:var(--deep);font-size:24px;font-weight:700}
.find-words-counter small{color:var(--muted);font-size:12px;font-weight:600}
.find-words-scores{display:flex;align-items:center;gap:15px;padding:0 4px}
.find-words-score{min-width:0;display:flex;align-items:center;gap:6px;color:#725360;font-size:11px}
.find-words-score strong{color:var(--deep);font-size:14px}
.find-words-score-dot,.find-words-presence-dot{width:9px;height:9px;flex:none;border-radius:50%;background:#b5a8af}
.find-words-score-dot.own{background:#35a66b}
.find-words-score-dot.partner{background:#e45883}
.find-words-online-count{display:flex;align-items:center;gap:5px;margin-left:auto;color:var(--muted);font-size:10px}
.find-words-presence-dot.online{background:#35a66b;box-shadow:0 0 0 3px #35a66b21}
.find-words-play-area{flex:1;display:grid;grid-template-columns:minmax(0,1fr) 250px;align-items:center;gap:16px;min-height:0}
.find-words-board-wrap{width:100%;display:grid;place-items:center}
.find-words-board{width:min(100%,min(70vh,760px));width:min(100%,min(70dvh,760px));display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:3px;padding:7px;border:1px solid #efd5e0;border-radius:20px;background:#fff;box-shadow:0 12px 36px #8f315d12;touch-action:none;user-select:none}
.find-words-cell{min-width:0;aspect-ratio:1;display:grid;place-items:center;padding:0;border:1px solid #f4e5eb;border-radius:8px;background:#fffafd;color:#533844;font-size:clamp(11px,2.6vw,21px);font-weight:700;line-height:1;touch-action:none;user-select:none;-webkit-user-select:none}
.find-words-cell.selecting{border-color:#bba1d3;background:#f0e6f8;color:#714596}
.find-words-cell.own{border-color:#b5e3c7;background:#dff5e7;color:#27794a}
.find-words-cell.partner{border-color:#f2bdce;background:#ffe4ec;color:#b63865}
.find-words-words-panel{max-height:min(62vh,630px);max-height:min(62dvh,630px);overflow:auto;-webkit-overflow-scrolling:touch;padding:13px;border:1px solid var(--line);border-radius:18px;background:#ffffffd9}
.find-words-words-panel h2{display:flex;align-items:center;justify-content:space-between;margin:0 0 9px;color:var(--deep);font-family:"DM Sans",sans-serif;font-size:13px}
.find-words-words-panel h2 span{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#fff0f6;color:var(--deep);font-size:10px}
.find-words-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin:0;padding:0;list-style:none}
.find-words-word{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:3px;padding:6px;border-radius:8px;background:#fff7fa;color:#533844;font-size:10px;font-weight:700}
.find-words-word small{overflow:hidden;color:var(--muted);font-size:8px;font-weight:500;text-overflow:ellipsis}
.find-words-word.own{background:#e7f7ec;color:#27794a}
.find-words-word.partner{background:#fff0f4;color:#b63865}
.find-words-word.found>span{text-decoration:line-through}
.find-words-new-round{align-self:center;min-height:42px}
.find-words-welcome{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px;border:1px solid var(--line);border-radius:22px;background:#ffffffd9;text-align:center}
.find-words-welcome>span{font-size:42px}
.find-words-welcome h2{margin:0;color:var(--deep);font-size:24px}
.find-words-welcome p{max-width:420px;margin:0 0 8px;color:var(--muted);font-size:13px;line-height:1.55}
.find-words-message{min-height:14px;margin:0;color:var(--deep);font-size:10px;text-align:center}
@media(max-width:760px){
  .find-words-page{gap:8px;padding-left:max(8px,env(safe-area-inset-left,8px));padding-right:max(8px,env(safe-area-inset-right,8px))}
  .find-words-header{grid-template-columns:auto 1fr auto;gap:5px}
  .find-words-back{padding:7px 6px;font-size:11px}
  .find-words-title{gap:6px}
  .find-words-title-icon{width:32px;height:32px;border-radius:11px;font-size:17px}
  .find-words-title h1{font-size:19px}
  .find-words-title .eyebrow{font-size:7px}
  .find-words-play-area{flex:none;grid-template-columns:1fr;gap:7px}
  .find-words-board{width:min(100%,620px);gap:2px;padding:5px;border-radius:15px}
  .find-words-cell{border-radius:5px;font-size:clamp(10px,4.4vw,18px)}
  .find-words-words-panel{max-height:clamp(80px,17vh,145px);max-height:clamp(80px,17dvh,145px);padding:8px 10px}
  .find-words-words-panel h2{margin-bottom:5px;font-size:11px}
  .find-words-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}
  .find-words-word{justify-content:center;padding:4px 2px;font-size:9px}
  .find-words-word small{display:none}
}
@media(max-width:360px){
  .find-words-header{grid-template-columns:auto 1fr auto}
  .find-words-back span{display:none}
  .find-words-board{width:min(100%,600px);gap:1px;padding:4px}
  .find-words-cell{border-radius:4px;font-size:10px}
  .find-words-list{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(min-width:761px) and (max-height:700px){
  .find-words-board{width:min(100%,min(66vh,690px));width:min(100%,min(66dvh,690px))}
  .find-words-match{gap:6px}
}
@media(max-width:420px){.special-days-header{align-items:flex-start}.special-days-add{padding:9px 10px}.special-day-item{gap:8px;padding:10px}.special-day-item-icon{width:34px;height:34px;font-size:18px}.special-day-countdown{max-width:68px;font-size:10px}}


/* ===== Our Little World: romantic home polish (visual-only) ===== */
.home-dashboard .content{width:min(100%,980px);margin-inline:auto;padding-bottom:calc(108px + env(safe-area-inset-bottom))}
.home-dashboard .couple-brand{padding:8px 10px 14px;text-align:center}
.home-dashboard .brand-hearts{color:#e7478a;text-shadow:0 7px 18px #e7478a24;transform:rotate(-5deg)}
.home-dashboard .couple-brand h1{margin:5px 0 2px;color:#98335f;font-size:clamp(34px,7vw,48px);letter-spacing:-.045em;line-height:1.12}
.home-dashboard .couple-brand p{margin:7px 0 0;color:#a43a6a;font-size:11px;font-weight:800;letter-spacing:.22em}
.home-dashboard .couple-brand p span{display:inline-block;margin-inline:10px;color:#f06a9b}
.home-dashboard .together-counter{position:relative;overflow:hidden;min-height:205px;margin:8px 0 20px;padding:26px 18px 22px;border:1px solid #f5b7d0;border-radius:30px;box-shadow:0 18px 38px #b93e7010,inset 0 1px #ffffff7a;background:radial-gradient(circle at 95% 115%,#c36a8d50 0,transparent 38%),linear-gradient(118deg,#f8c5da 0%,#f9d6e3 56%,#efa8c2 100%)}
.home-dashboard .counter-script{display:none}
.home-dashboard .counter-main{position:relative;z-index:2;width:100%;text-align:center}
.home-dashboard .counter-main>small{display:block;margin-bottom:12px;color:#936276;font-size:11px;font-weight:800;letter-spacing:.18em}
.home-dashboard .home-date-control{display:inline-flex;align-items:center;gap:10px;min-height:43px;padding:8px 17px;border:1px solid #f09bbd;border-radius:999px;background:#fff7fb;box-shadow:0 5px 14px #a6336510;color:#8d2c58;font-weight:800}
.home-dashboard .home-date-heart{display:grid;width:27px;height:27px;place-items:center;border-radius:50%;background:#ffe0ec;color:#e7478a;font-size:20px}
.home-dashboard .counter-units{justify-content:center;gap:0;margin-top:17px}
.home-dashboard .counter-units span{min-width:68px;padding:0 10px}
.home-dashboard .counter-units b{color:#97345f;font-size:clamp(25px,5vw,34px);line-height:1.1}
.home-dashboard .counter-units span small{margin-top:5px;color:#8f7280;font-size:11px}
.home-dashboard .counter-units i{height:38px;background:#ed6598}
.home-dashboard .home-counter-art{right:2%;bottom:-50px;color:#ffffff60;font-size:188px;line-height:1;transform:rotate(-8deg)}
.home-dashboard .home-header-composition{position:relative;width:100%;margin:8px 0 20px;overflow:hidden;line-height:0;background:#fde8ef}
.home-dashboard .home-header-image{display:block;width:100%;height:auto}
.home-dashboard .home-header-countdown{position:absolute;left:3.8%;top:56.1%;width:52.2%;height:14%;display:grid;grid-template-columns:1.32fr .95fr .98fr 1.08fr;align-items:center;text-align:center;pointer-events:none}
.home-dashboard .home-header-countdown span{min-width:0;display:grid;place-items:center}
.home-dashboard .home-header-countdown b{display:block;color:#a5003e;font-family:'Nunito','Arial Rounded MT Bold',system-ui,sans-serif;font-size:clamp(20px,7vw,64px);font-weight:1000;letter-spacing:-.055em;line-height:1;text-shadow:0 1px 0 #fff1}
.home-dashboard .home-header-date{position:absolute;left:21.7%;top:44.8%;width:15.2%;height:7.8%;display:flex;align-items:center;justify-content:center;gap:clamp(2px,.5vw,8px);min-height:0;padding:0;border:1px solid #f28aac;border-radius:999px;background:linear-gradient(145deg,#fffafd,#fff5f9);box-shadow:0 2px 6px #a6336512;color:#92274f;font-family:'Nunito',system-ui,sans-serif;font-size:clamp(8px,1.55vw,16px);font-weight:900;line-height:1.1;white-space:nowrap}
.home-dashboard .home-header-date-heart{display:grid;flex:none;width:1.55em;height:1.55em;place-items:center;border-radius:50%;background:#ffe0eb;color:#e13f7e;font-size:1.25em;line-height:1}
.home-dashboard .home-header-composition .home-date-input{position:absolute;left:0;top:0;width:1px;height:1px}
.home-dashboard .home-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:stretch;margin:18px 0 24px}
.home-dashboard .home-post-panel,.home-dashboard .home-drawing-panel{min-width:0;min-height:255px;margin:0;padding:14px;border:1px solid #f3d5e1;border-radius:26px;background:#fffdfef0;box-shadow:0 12px 30px #a83e6d0a,inset 0 1px #fff}
.home-dashboard .home-post-panel{display:flex;flex-direction:column;gap:12px}
.home-dashboard .home-feed{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center}
.home-dashboard .home-empty-posts{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;padding:12px 5px 18px;text-align:center}
.home-dashboard .home-empty-posts-heart{display:grid;width:54px;height:54px;margin-bottom:13px;place-items:center;border-radius:19px;background:linear-gradient(145deg,#ffe6f0,#fff2f7);color:#e34f8d;font-size:34px;box-shadow:0 7px 20px #e34f8d16}
.home-dashboard .home-empty-posts strong{color:#96345f;font-family:'Playfair Display',Georgia,serif;font-size:16px;line-height:1.3}
.home-dashboard .home-empty-posts p{max-width:230px;margin:8px 0 10px;color:#987b89;font-size:12px;line-height:1.5}
.home-dashboard .home-empty-posts-note{color:#d34e86;font-size:10px;font-weight:700;letter-spacing:.03em}
.home-dashboard .home-view-more{width:100%;min-height:40px;margin-top:auto;border:1px solid #f5c7d9;border-radius:999px;background:#fff5f9;color:#a13767;font-size:12px;font-weight:800}
.home-dashboard .home-drawing-panel{display:flex}
.home-dashboard .home-canvas-launch{min-height:0;height:100%;justify-content:space-between;gap:12px;padding:5px;background:transparent}
.home-dashboard .home-drawing-preview{flex:1;width:100%;min-height:175px;max-height:230px;border:1px dashed #f0a9c5;border-radius:20px;background:linear-gradient(145deg,#fff8fb,#ffedf4)}
.home-dashboard .home-drawing-preview img{width:100%;height:100%;min-height:175px;max-height:230px;object-fit:contain;background:#fff}
.home-dashboard .home-canvas-action{margin:0;padding:8px 12px;background:transparent;color:#a43a6a;font:800 12px 'DM Sans',sans-serif}
.home-dashboard .today-section{margin:8px 0 22px}
.home-dashboard .today-section>.section-head{margin:0 0 13px}
.home-dashboard .today-section .eyebrow{color:#a23a69;font-size:10px;font-weight:800;letter-spacing:.2em}
.home-dashboard .today-section .section-head h2{margin:4px 0 0;color:#39242e;font-family:'Playfair Display',Georgia,serif;font-size:clamp(21px,4vw,27px);line-height:1.2}
.home-dashboard .today-cards{gap:13px}
.home-dashboard .today-cards .card{min-height:160px;padding:15px 13px 48px;gap:10px;border:1px solid #f4d2e0;border-radius:25px;background:#fffdfef5;box-shadow:0 10px 26px #a83e6d08}
.home-dashboard .today-icon{width:38px;height:38px;background:#ffe5ef;color:#e34f8d}
.home-dashboard .today-card-copy{min-width:0}
.home-dashboard .today-card-copy strong{font-size:13px}
.home-dashboard .today-card-copy p{margin-top:9px;color:#9a7b89;font-size:12px;line-height:1.5}
.home-dashboard .today-question .today-card-copy p{display:none}
.home-dashboard .today-question-category{margin-top:8px;padding:5px 9px;font-size:10px}
.home-dashboard .today-question .today-link,.home-dashboard .today-challenge .today-link{left:63px;bottom:13px;min-height:34px;padding:8px 13px;font-size:11px;box-shadow:0 5px 12px #d744821c}
.home-dashboard .today-challenge .today-link{background:#e98a37}
.home-dashboard .bottom-nav{width:min(760px,calc(100% - 24px));padding:10px 7px;border:1px solid #f3d3e0;border-radius:28px;box-shadow:0 14px 36px #a83e6d16}
.home-dashboard .bottom-nav button{gap:5px;font-size:22px}
.home-dashboard .bottom-nav button svg{width:25px;height:25px}
.home-dashboard .bottom-nav button .nav-post-icon{font-size:22px;line-height:25px}
.home-dashboard .bottom-nav button span{font-size:10px}
@media(max-width:420px){
.home-dashboard .content{padding-left:10px;padding-right:10px}
.home-dashboard .couple-brand{padding-top:2px;padding-bottom:10px}
.home-dashboard .together-counter{min-height:190px;padding:23px 8px 18px;border-radius:26px}
.home-dashboard .counter-main>small{font-size:9px;letter-spacing:.13em}
.home-dashboard .counter-units span{min-width:0;flex:1;padding:0 5px}
.home-dashboard .counter-units b{font-size:27px}
.home-dashboard .counter-units span small{font-size:10px}
.home-dashboard .counter-units i{height:32px}
.home-dashboard .home-counter-art{right:-5%;bottom:-40px;font-size:158px}
.home-dashboard .home-header-composition{margin-top:12px}
.home-dashboard .home-header-countdown b{font-size:clamp(19px,7vw,34px)}
.home-dashboard .home-feature-grid{gap:10px;margin:14px 0 20px}
.home-dashboard .home-post-panel,.home-dashboard .home-drawing-panel{min-height:245px;padding:10px;border-radius:23px}
.home-dashboard .home-empty-posts-heart{width:44px;height:44px;border-radius:15px;font-size:29px}
.home-dashboard .home-empty-posts strong{font-size:14px}
.home-dashboard .home-empty-posts p{font-size:10px}
.home-dashboard .home-drawing-preview,.home-dashboard .home-drawing-preview img{min-height:160px}
.home-dashboard .today-cards{gap:9px}
.home-dashboard .today-cards .card{min-height:160px;padding:13px 9px 48px;gap:7px;border-radius:22px}
.home-dashboard .today-icon{width:30px;height:30px;font-size:18px}
.home-dashboard .today-card-copy strong{font-size:11px}
.home-dashboard .today-card-copy p{font-size:10px}
.home-dashboard .today-question .today-link,.home-dashboard .today-challenge .today-link{left:46px;bottom:12px;padding:8px 9px;font-size:10px}
}

/* Touch-first safety and readability improvements */
button, a, input[type="range"], input[type="color"], select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, canvas:focus-visible { outline: 3px solid #b52f70; outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .58; }
@media (max-width: 359px) {
  .drawing-heading h1 { font-size: 15px; }
  .drawing-header-actions button { padding-right: 9px; padding-left: 9px; font-size: 10px; }
  .drawing-tools { gap: 3px; }
  .drawing-tools .tool-button { padding: 6px 5px; font-size: 9px; }
  .drawing-tools .colors button { width: 22px; height: 22px; }
  .drawing-custom-color { width: 36px; height: 36px; }
}

.home-dashboard .today-question .today-link,.home-dashboard .today-challenge .today-link{
  left:62px;bottom:8px;width:min(225px,calc(100% - 74px));min-height:0;height:auto;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;font-size:0;line-height:0
}
.home-dashboard .today-question .today-link img,.home-dashboard .today-challenge .today-link img{display:block;width:100%;height:auto;object-fit:contain}
@media(max-width:759px){.home-dashboard .today-question .today-link,.home-dashboard .today-challenge .today-link{left:46px;bottom:8px;width:calc(100% - 56px);padding:0}}
@media (max-height: 520px) and (orientation: landscape) {
  .live-drawing { gap: 4px; }
  .drawing-tools { gap: 3px; padding: 4px 6px; }
  .drawing-tools .tool-button { min-height: 34px; padding: 5px 7px; }
  .drawing-tools .colors button { width: 21px; height: 21px; }
  .drawing-custom-color { width: 34px; height: 34px; }
  .brush-size { min-height: 34px; }
  .drawing-status { min-height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Drawing controls: clear history actions, brush feedback and sync visibility */
.drawing-tools .colors button { min-width: 32px; min-height: 32px; }
.brush-size { min-height: 42px; }
.brush-preview-row { flex: none; display: flex; align-items: center; gap: 9px; min-height: 27px; padding: 0 10px; color: var(--deep); font-size: 11px; }
#brush-size-value { min-width: 34px; color: var(--muted); font-variant-numeric: tabular-nums; }
#brush-size-preview { display: inline-block; flex: none; border-radius: 50%; }
.drawing-footer-controls { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
.drawing-footer-controls .drawing-history-trigger { align-self: auto; }
.drawing-footer-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.drawing-restore-trigger { min-height: 40px; padding: 7px 10px; font-size: 11px; white-space: nowrap; }
.drawing-sync-label { overflow: hidden; color: #4b705d; font-size: 11px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.drawing-sync-label.offline { color: #9c5d15; }
.drawing-sync-label.syncing::after { content: ""; display: inline-block; width: 9px; height: 9px; margin-left: 6px; border: 2px solid #edbfd2; border-top-color: var(--deep); border-radius: 50%; animation: drawing-spin .75s linear infinite; vertical-align: -1px; }
@keyframes drawing-spin { to { transform: rotate(360deg); } }
.history-dialog-actions { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; color: var(--muted); font-size: 11px; }
.history-dialog-actions .tool-button { min-height: 40px; }
@media(max-width:759px) {
  .drawing-tools .colors button { min-width: 30px; min-height: 30px; }
  .drawing-tools .tool-button { min-height: 42px; }
  .drawing-footer-controls { min-height: 46px; }
  .drawing-footer-actions { gap: 5px; }
  .drawing-restore-trigger { min-height: 42px; padding: 6px 8px; font-size: 10px; }
  .drawing-sync-label { max-width: 34vw; font-size: 10px; }
  .history-dialog-actions { align-items: flex-start; flex-direction: column; }
}

/* ==========================================================================
   Apple Markup / Notes Style Drawing Toolbar & Controls
   ========================================================================== */

.drawing-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.drawing-title-group h1 {
  margin: 0;
  color: var(--deep);
  font-size: 19px;
  font-weight: 700;
  white-space: nowrap;
}
.drawing-presence-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #ebd0dc;
  border-radius: 999px;
  font-size: 11px;
  color: var(--deep);
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(143, 49, 93, 0.05);
}
.drawing-title-row { display: flex; align-items: center; gap: 9px; min-width: 0; }

.markup-dock-container {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
  z-index: 50;
}

/* Apple PencilKit Dock Tray */
.apple-markup-dock {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 7px 12px 8px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(228, 212, 222, 0.85);
  border-radius: 38px;
  box-shadow: 0 12px 32px rgba(80, 25, 50, 0.10), 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  user-select: none;
  -webkit-user-select: none;
}
.apple-markup-dock::-webkit-scrollbar { display: none; }
.markup-tools-row { display: flex; align-items: flex-end; justify-content: center; gap: 7px; width: max-content; max-width: 100%; flex: none; }
.markup-tool-group { display: flex; align-items: flex-end; gap: 5px; flex: none; padding: 0 3px; }
.apple-markup-dock .toolbar-actions { display: flex; align-items: center; justify-content: center; gap: 8px; flex: none; width: 100%; padding: 5px 8px 0; border-top: 1px solid #f1e3e9; }
.apple-markup-dock .toolbar-actions .tool-button { flex: 1 1 0; min-width: 72px; min-height: 38px; padding: 7px 12px; white-space: nowrap; border: 1px solid #f3e3ea; border-radius: 999px; background: #fff8fb; color: var(--deep); }
.apple-markup-dock .markup-color-button,.apple-markup-dock .markup-tune-button { flex: none; }

/* Tool Stems / Pens */
.markup-tool {
  position: relative;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 36px;
  height: 84px;
  transform-origin: bottom center;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.markup-tool .tool-svg {
  width: 36px;
  height: 84px;
  display: block;
  overflow: visible;
  pointer-events: none;
}

.markup-tool:hover {
  transform: translateY(-4px);
}

/* Selected Tool elevates upward with 3D shadow */
.markup-tool.selected {
  transform: translateY(-15px);
  filter: drop-shadow(0 10px 12px rgba(80, 25, 50, 0.22));
}

.markup-tool.selected::after {
  content: "";
  position: absolute;
  bottom: -4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a43262;
  box-shadow: 0 0 6px rgba(164, 50, 98, 0.5);
}

/* Vertical Dock Divider */
.markup-divider {
  width: 1px;
  height: 38px;
  align-self: center;
  background: #e6d3dd;
  margin: 0 3px;
  flex: none;
}

/* Color Wheel Button */
.markup-color-button {
  background: transparent;
  border: 0;
  padding: 0;
  margin-bottom: 7px;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.markup-color-button:hover {
  transform: scale(1.08);
}

.markup-color-button:active {
  transform: scale(0.95);
}

.color-wheel-ring {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 3.5px;
  background: conic-gradient(from 0deg, #ff3b30, #ff9500, #ffcc00, #34c759, #00c7be, #007aff, #5856d6, #af52de, #ff2d55, #ff3b30);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.color-wheel-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2.5px solid #ffffff;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22);
  transition: background-color 0.15s ease;
}

/* Tune / Tool Settings Button */
.markup-tune-button {
  background: #fff0f5;
  border: 1px solid #ebd0dc;
  border-radius: 20px;
  height: 38px;
  padding: 0 11px;
  margin-bottom: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--deep);
  font: 700 11px "DM Sans", sans-serif;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.markup-tune-button:hover {
  background: #ffe3ee;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(164, 50, 98, 0.12);
}

.tune-dot-preview {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc4d88;
  border: 1px solid rgba(0, 0, 0, 0.12);
  transition: all 0.15s ease;
}

/* Floating Popovers */
.markup-popovers-host {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: min(340px, 94vw);
  pointer-events: none;
  z-index: 100;
}

.markup-popover {
  position: relative;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(230, 215, 224, 0.9);
  border-radius: 22px;
  padding: 14px 16px;
  box-shadow: 0 16px 42px rgba(60, 20, 40, 0.18), 0 2px 10px rgba(0, 0, 0, 0.05);
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.markup-popover.hidden {
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  pointer-events: none;
  display: none;
}

.popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f4e3eb;
}

.popover-header strong {
  font-size: 14px;
  color: var(--deep);
  font-weight: 700;
}

.popover-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ffe6f0;
  color: #a43262;
  font-weight: 600;
}

.popover-section {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
}

.popover-section.hidden {
  display: none !important;
}

.popover-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.popover-label-row strong {
  color: var(--deep);
  font-size: 12px;
}

/* Preset Pills */
.preset-pills-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.preset-pill {
  flex: 1;
  background: #f8edf2;
  border: 1px solid #edd5e0;
  border-radius: 8px;
  padding: 5px 0;
  font: 600 11px "DM Sans", sans-serif;
  color: var(--deep);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-align: center;
}

.preset-pill:hover {
  background: #f4dbe6;
}

.preset-pill.active {
  background: #a43262;
  border-color: #a43262;
  color: #ffffff;
}

/* Sliders */
.apple-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #ebd2de;
  outline: none;
  margin: 5px 0;
  cursor: pointer;
}

.apple-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.apple-slider::-webkit-slider-thumb:active {
  transform: scale(1.15);
}

.apple-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

/* Live Stroke Preview Box */
.popover-preview-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  background: #fff8fb;
  border: 1px dashed #f0cedc;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 4px;
}

.popover-stroke-preview {
  border-radius: 50%;
  background: #dc4d88;
  transition: width 0.12s ease, height 0.12s ease, background-color 0.12s ease, opacity 0.12s ease;
}

/* Color Palette Grid */
.color-palette-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.palette-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: grid;
  place-items: center;
  background-color: var(--swatch-color);
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.palette-swatch:hover {
  transform: scale(1.12);
}

.palette-swatch.selected {
  box-shadow: 0 0 0 2.5px #a43262, 0 2px 8px rgba(0, 0, 0, 0.2);
  transform: scale(1.08);
}

.palette-swatch.selected::after {
  content: "✓";
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.palette-swatch[data-color="#ffffff"].selected::after {
  color: #333333;
  text-shadow: none;
}

/* Custom Color Picker Row */
.custom-color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #f4e3eb;
}

.custom-color-picker-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--deep);
  cursor: pointer;
}

.custom-color-picker-label input[type="color"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.custom-color-ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff3b30, #ff9500, #ffcc00, #34c759, #00c7be, #007aff, #5856d6, #af52de, #ff2d55, #ff3b30);
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  display: inline-block;
}

.custom-color-hex {
  font: 700 11px "SF Mono", Monaco, Menlo, monospace;
  color: var(--muted);
  background: #f7ebf1;
  padding: 3px 7px;
  border-radius: 6px;
}

/* Footer Status Bar */
.drawing-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 580px;
  padding: 4px 10px max(8px, env(safe-area-inset-bottom, 16px));
  font-size: 11px;
}

@media (max-width: 759px) {
  .apple-markup-dock {
    gap: 4px;
    padding: 6px 9px 7px;
  }
  .markup-tools-row { gap: 5px; }
  .markup-tool-group { gap: 3px; padding: 0 2px; }
  .apple-markup-dock .toolbar-actions { gap: 6px; padding: 5px 4px 0; }
  .apple-markup-dock .toolbar-actions .tool-button { min-width: 68px; min-height: 38px; padding: 6px 8px; font-size: 11px; }
  .markup-tool {
    width: 32px;
    height: 76px;
  }
  .markup-tool .tool-svg {
    width: 32px;
    height: 76px;
  }
  .color-wheel-ring {
    width: 34px;
    height: 34px;
  }
  .markup-tune-button {
    height: 34px;
    padding: 0 8px;
    font-size: 10px;
  }
}

@media (max-width: 375px) {
  .apple-markup-dock {
    gap: 4px;
    padding: 5px 7px 6px;
  }
  .markup-tools-row { gap: 3px; overflow-x: auto; overflow-y: hidden; width: 100%; justify-content: flex-start; scrollbar-width: none; }
  .markup-tools-row::-webkit-scrollbar { display: none; }
  .markup-tool-group { gap: 1px; padding: 0; }
  .apple-markup-dock .toolbar-actions { gap: 5px; padding: 4px 2px 0; }
  .apple-markup-dock .toolbar-actions .tool-button { min-width: 64px; min-height: 36px; padding: 5px 6px; font-size: 10px; }
  .markup-tool {
    width: 28px;
    height: 68px;
  }
  .markup-tool .tool-svg {
    width: 28px;
    height: 68px;
  }
  .color-wheel-ring {
    width: 30px;
    height: 30px;
  }
  .markup-tune-button {
    padding: 0 6px;
  }
  .markup-tune-button span:last-child {
    display: none;
  }
}

/* ==========================================================================
   Drawing History Photo Gallery Grid & Full-Size Preview Modal
   ========================================================================== */

.drawing-history-dialog {
  width: min(780px, 96vw);
  max-height: min(84vh, 780px);
  max-height: min(84dvh, 780px);
  padding: 18px;
}

.history-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex: none;
}

.history-header-titles {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.history-header-titles h2 {
  margin: 0;
  color: var(--deep);
  font-size: 20px;
  font-weight: 700;
}

.history-header-titles .muted {
  font-size: 12px;
  color: var(--muted);
}

.history-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

#history-restore-selected {
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #a43262;
  color: #ffffff;
  font-weight: 600;
  font-size: 12px;
  border: 0;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

#history-restore-selected.hidden {
  display: none;
}

/* Grid layout with square cards */
.drawing-history-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  overflow-y: auto;
  padding: 4px 4px 16px;
  flex: 1;
  min-height: 0;
}

@media (min-width: 560px) {
  .drawing-history-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
  }
}

/* Square Card */
.drawing-grid-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  background: var(--card-bg, #f3e8ee);
  box-shadow: 0 4px 16px rgba(70, 20, 45, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, outline 0.15s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.drawing-grid-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(70, 20, 45, 0.15);
}

.drawing-grid-card.selected {
  outline: 3px solid #a43262;
  outline-offset: -1px;
}

/* Thumbnail Button */
.drawing-card-thumb-btn {
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  padding: 12px 12px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.drawing-card-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.09));
  transition: transform 0.2s ease;
}

.drawing-grid-card:hover .drawing-card-thumb-btn img {
  transform: scale(1.03);
}

/* Radio / Selection Circle Button (Bottom-Left) */
.drawing-select-circle-btn {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 5;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.selection-circle {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #33202a;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: all 0.15s ease;
}

.drawing-select-circle-btn:hover .selection-circle {
  transform: scale(1.1);
  border-color: #a43262;
}

.selection-circle.checked {
  border-color: #a43262;
  background: #a43262;
  box-shadow: inset 0 0 0 3.5px #ffffff, 0 2px 6px rgba(164, 50, 98, 0.35);
}

/* Card Delete Button (Top-Right) */
.drawing-card-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #724659;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0.75;
  transition: all 0.18s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  -webkit-tap-highlight-color: transparent;
}

.drawing-card-delete-btn:hover {
  opacity: 1;
  background: #ffebee;
  color: #c62828;
  transform: scale(1.12);
  box-shadow: 0 2px 8px rgba(198, 40, 40, 0.25);
}

/* Card Footer */
.drawing-card-footer {
  position: absolute;
  bottom: 8px;
  left: 38px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 10px;
  color: #4a2839;
  pointer-events: none;
  overflow: hidden;
}

.drawing-card-author {
  font-weight: 700;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.drawing-card-date {
  color: #7c5a6b;
  flex: none;
  font-size: 9px;
}

/* Full-Size Actual Size Preview Modal */
.drawing-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: max(16px,env(safe-area-inset-top,16px)) max(16px,env(safe-area-inset-right,16px)) max(16px,env(safe-area-inset-bottom,16px)) max(16px,env(safe-area-inset-left,16px));
}

.drawing-preview-overlay.hidden {
  display: none !important;
}

.preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 6, 16, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.preview-card-dialog {
  position: relative;
  z-index: 1;
  width: min(1040px, 96vw);
  max-height: min(92vh, 880px);
  max-height: min(92dvh, 880px);
  display: flex;
  flex-direction: column;
  background: #fffcfd;
  border-radius: 26px;
  padding: 18px;
  border: 1px solid #ebd3df;
  box-shadow: 0 24px 75px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.preview-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex: none;
  gap: 12px;
  flex-wrap: wrap;
}

.preview-meta {
  display: grid;
  gap: 2px;
}

.preview-meta strong {
  color: var(--deep);
  font-size: 16px;
  font-weight: 700;
}

.preview-meta small {
  color: var(--muted);
  font-size: 11px;
}

.preview-dialog-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-dialog-actions .primary {
  min-height: 40px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.preview-trash-btn {
  min-height: 40px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff0f3;
  color: #c62828;
  border: 1px solid #f8c8d2;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preview-trash-btn:hover {
  background: #ffe0e6;
  border-color: #f29bb0;
}

.preview-image-container {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  background: #fdf5f9;
  border-radius: 18px;
  padding: 14px;
  border: 1px dashed #f0cedc;
}

#preview-modal-img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  max-height: 70dvh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
  background: #ffffff;
}

@media (max-width: 559px) {
  .preview-dialog-header {
    gap: 8px;
  }
  .preview-meta strong {
    font-size: 14px;
  }
  .preview-dialog-actions .primary,
  .preview-trash-btn {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 11px;
  }
}



/* SOS line coloring */
.sos-line-cell.own-line{background:#a5d6a7;border-color:#1b5e20;}
.sos-line-cell.partner-line{background:#ef9a9a;border-color:#b71c1c;}

/* Games summary card */
.games-summary{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:#fff8fb;border:1px solid var(--line);border-radius:20px;margin-bottom:16px;}
.games-summary .avatar{width:48px;height:48px;border-radius:50%;background:#ffe2ed;display:grid;place-items:center;color:var(--deep);font-weight:700;}
.games-summary .stats{display:flex;gap:12px;flex-wrap:wrap;}
.games-summary .stat{font-size:14px;color:var(--deep);font-weight:700;}

/* Love Photo equal sizing */
.love-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

/* Waiting placeholder styling */
.love-waiting {
  color: var(--muted);
  font-style: italic;
  margin: 8px 0;
}

/* ===== Overall App Background: Asset/Background.png for complete app ===== */
html {
  background: #ffeef5;
}
html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #ffeef5;
  background-image: url("../Asset/Background.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  pointer-events: none;
}
body {
  background: transparent;
}
#app-view,
.auth-shell,
.content {
  background: transparent;
}
.topbar {
  background: #fff8fb66;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
/* ===== Harmonized Pink Theme: unified burgundy accents over Background photo (home only, visual-only) ===== */
body.home-dashboard {
  background: transparent;
}
body.home-dashboard .topbar {
  background: #fff8fb66;
  border-bottom: 1px solid #f2c9d9;
}
body.home-dashboard .content {
  background: transparent;
}
/* Content cards: consistent very light pink / off-white */
body.home-dashboard .home-post-panel,
body.home-dashboard .home-drawing-panel,
body.home-dashboard .today-cards .card:not(.today-image-card),
body.home-dashboard .home-post-panel .home-post-card,
body.home-dashboard .home-special-day-reminders {
  background: #fff9fb !important;
  border-color: #f2c9d9 !important;
}
/* Image cards: clean PNG, no card chrome */
body.home-dashboard .today-cards .today-image-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: hidden;
}
body.home-dashboard .today-image-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 25px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}
body.home-dashboard .today-image-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25px;
}
/* Card text: rich dark burgundy / deep rose */
body.home-dashboard .home-post-panel,
body.home-dashboard .home-drawing-panel,
body.home-dashboard .today-cards .card,
body.home-dashboard .home-post-text,
body.home-dashboard .home-post-author strong,
body.home-dashboard .today-card-copy strong,
body.home-dashboard .today-cards strong,
body.home-dashboard .home-empty-posts strong,
body.home-dashboard .couple-brand h1,
body.home-dashboard .home-drawing-heading h3 {
  color: var(--burgundy) !important;
}
body.home-dashboard .counter-units b,
body.home-dashboard .home-header-countdown b {
  color: #7d1f4d !important;
}
/* Section titles + action buttons unified */
body.home-dashboard .today-section .eyebrow,
body.home-dashboard .today-section .section-head h2,
body.home-dashboard .home-view-more,
body.home-dashboard .home-canvas-action,
body.home-dashboard .home-post-btn,
body.home-dashboard .today-link {
  color: var(--burgundy) !important;
  border-color: #e2a3bd !important;
}
body.home-dashboard .home-view-more {
  background: #fff5f9 !important;
}
body.home-dashboard .home-canvas-action {
  background: #fff5f9 !important;
}
