@font-face{font-family:Vazir;src:url('/fonts/Vazirmatn.woff2') format('woff2');font-display:swap}*{box-sizing:border-box}body{margin:0;background:#f9f5ee;color:#382d2c;font:15px/1.6 Arial,Vazir,sans-serif}button,input,textarea{font:inherit}button,a,input,textarea{ -webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}a{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #b77788;outline-offset:4px}h1,h2,h3,.brand{font-family:Georgia,Vazir,serif;font-weight:400;line-height:1.15}h1{font-size:clamp(42px,6vw,76px);letter-spacing:-2px;margin:16px 0 22px}h2{font-size:34px;margin:16px 0 25px}h3{font-size:25px;margin:10px 0}p{margin:10px 0}small,.muted{color:#857570}.eyebrow{font-size:10px;letter-spacing:2.5px;font-weight:bold;color:#94616b}.primary{background:#793f4c;color:#fff9f1;border:1px solid #793f4c;border-radius:7px;padding:12px 22px}.primary:hover{background:#61313c}.secondary{border:1px solid #d7c9be;background:transparent;padding:10px 18px;border-radius:7px;color:#684d50}.icon{border:0;background:transparent;color:#793f4c;font-size:22px;min-width:40px;min-height:40px}.text-link{color:#793f4c;text-underline-offset:5px}.loading{min-height:100vh;display:grid;place-items:center;font-family:Georgia,serif;font-size:25px}header{height:94px;max-width:1240px;margin:auto;padding:0 42px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5dcd1}.brand{font-size:24px;display:flex;gap:12px;align-items:center}.brand span{color:#994f60;font-size:28px}header .muted{font-size:12px}.header-right{display:flex;gap:14px;align-items:center}.layout{max-width:1240px;margin:auto;padding:50px 42px}.hero{display:grid;grid-template-columns:1.3fr 1fr;gap:60px;align-items:center;margin-bottom:55px}.hero-copy>p{color:#857570;max-width:400px}.hero-copy h1 em{color:#955567;font-weight:400}.hero-art{min-height:290px;position:relative;display:grid;place-items:center}.paper{width:238px;min-height:262px;background:#fffdf7;box-shadow:0 8px 35px #5d362a12;padding:38px 27px;text-align:center;transform:rotate(7deg);border:1px solid #e9dfd3;position:relative}.paper:before{content:'';position:absolute;width:85px;height:26px;background:#e6c8b497;left:76px;top:-11px;transform:rotate(-8deg)}.paper .heart{font-size:42px;color:#9e5c6a}.paper h3{font-style:italic;font-size:30px}.paper p{font-size:11px;color:#9b8172;letter-spacing:1px}.orbit{position:absolute;font-size:60px;color:#c5a186;right:2%;bottom:0;transform:rotate(15deg)}.date-pill{margin-top:22px;display:inline-flex;gap:12px;align-items:center;background:#efe5db;border-radius:30px;padding:8px 16px;font-size:12px;color:#785a55;border:0}.date-pill strong{font-size:18px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px;border-bottom:1px solid #dfd4c9;padding-bottom:18px}.tabs{display:flex;gap:8px}.tab{border:0;background:transparent;padding:9px 17px;color:#88776e;border-radius:22px}.tab.active{background:#793f4c;color:#fff9f1}.search{border:1px solid #dfd4c9;background:transparent;border-radius:25px;padding:9px 17px;width:210px}.section-top{display:flex;justify-content:space-between;align-items:end;margin-bottom:24px}.section-top h2{font-size:30px;margin:0 0 5px}.section-top p{font-size:12px;color:#8e7b70}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.card{background:#fffdf8;border:1px solid #e7ddd2;border-radius:8px;padding:18px;align-self:start;overflow:hidden}.card-media{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:4px;background:#eee2d8;display:block;margin-bottom:18px}.card .entry-body{white-space:pre-wrap;overflow-wrap:anywhere;color:#75655e;font-size:14px;max-height:160px;overflow:hidden}.card.expanded .entry-body{max-height:none}.card .stamp{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#a28577;text-transform:uppercase;letter-spacing:1px}.card-foot{display:flex;justify-content:space-between;align-items:center;margin-top:20px;padding-top:12px;border-top:1px solid #eee5dc;font-size:12px;color:#a08178}.card-foot button{border:0;background:none;color:#956373;font-size:12px;padding:6px}.letter{background:#f5e9df;padding:28px}.letter:before{content:'♡';font-size:35px;color:#a97478}.wish{background:#f1f0e6}.wish.done h3{text-decoration:line-through;color:#9b9184}.empty{grid-column:1/-1;text-align:center;border:1px dashed #d9c6b6;border-radius:8px;padding:60px 20px}.empty .heart{font-size:40px;color:#ad7683}.empty p{color:#89766a;max-width:380px;margin:15px auto 24px}.bottom-note{display:flex;justify-content:space-between;gap:20px;margin-top:60px;padding-top:20px;border-top:1px solid #e5dcd1;color:#9e8b7e;font-size:11px}.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-intro{background:#793f4c;color:#f7eadd;padding:clamp(40px,8vw,110px);display:flex;flex-direction:column;justify-content:center}.auth-intro .eyebrow{color:#d8afa8}.auth-intro p{color:#d9bdb4;max-width:340px}.auth-intro .brand{position:absolute;top:40px}.auth-intro .brand span{color:#e6c5b7}.auth-form{padding:60px;align-self:center;max-width:600px;width:100%;margin:auto}.auth-form h2{font-size:40px}.auth-form .primary{width:100%;margin-top:10px}label{display:block;font-size:12px;color:#7f645d;margin:18px 0}input:not([type=file]),textarea{display:block;width:100%;border:1px solid #daccc1;border-radius:5px;padding:12px;margin-top:7px;background:#fffdf8;color:#382d2c;outline:none}input:focus,textarea:focus{border-color:#9b6575;box-shadow:0 0 0 3px #9b657512}textarea{resize:vertical}.error{color:#a02c43;font-size:13px;white-space:pre-wrap}dialog{background:#faf6ef;color:#382d2c;border:1px solid #dfd0c2;border-radius:12px;max-width:560px;width:calc(100% - 32px);padding:28px;max-height:90vh}dialog::backdrop{background:#33252888;backdrop-filter:blur(4px)}.dialog-top{display:flex;align-items:center;justify-content:space-between}.upload{border:1px dashed #c7ab9b;padding:16px;text-align:center;cursor:pointer}.upload small{display:block;font-size:10px;margin-top:4px}.upload input{max-width:100%;font-size:12px;margin-top:12px}.file-chip{font-size:11px;padding:5px 9px;background:#eee1d6;border-radius:4px;margin:4px;display:inline-block}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#513a40;color:white;border-radius:8px;padding:12px 22px;z-index:10;max-width:90vw;display:none}#toast.visible{display:block}hr{border:0;border-top:1px solid #dfd4c9;margin:25px 0}.account-heading{margin-top:25px;border-bottom:1px solid #dfd4c9;padding-bottom:6px;color:#793f4c}#settings-dialog .primary{width:100%}@media(min-width:1000px){.card:nth-child(3n+2){transform:translateY(12px)}}@media(max-width:760px){header{height:78px;padding:0 22px}.brand{font-size:20px}.header-right .muted{display:none}.layout{padding:35px 22px}.hero{grid-template-columns:1fr;gap:10px;margin-bottom:30px}.hero-art{display:none}h1{font-size:52px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.toolbar{flex-direction:column;align-items:stretch}.tabs{justify-content:space-between}.search{width:100%;margin:0}.section-top .primary{padding:10px 13px;font-size:12px}.bottom-note{flex-direction:column;gap:5px}.auth{grid-template-columns:1fr}.auth-intro{padding:85px 30px 30px}.auth-intro .brand{top:25px}.auth-intro h1{font-size:44px;margin:15px 0}.auth-form{padding:35px 30px}.auth-form h2{font-size:30px}}@media(max-width:480px){.grid{grid-template-columns:1fr}.tab{font-size:12px;padding:9px 13px}.card{padding:18px}.section-top h2{font-size:27px}}

/* Keep the search field compact beside chapter navigation. */
.tabs{flex-shrink:0}.tab{white-space:nowrap}.toolbar .search{width:210px;flex:0 0 210px;margin:0}@media(max-width:760px){.toolbar .search{width:100%;flex:auto}}

.language-bar{display:flex;justify-content:flex-end;padding:10px 24px;border-bottom:1px solid #e5dcd1}.language-bar button{padding:5px 14px;font-size:13px}.auth-intro{position:relative;min-height:460px}.auth{min-height:calc(100vh - 58px)}
:lang(fa) body{font-family:Vazir,sans-serif;line-height:1.9}:lang(fa) h1,:lang(fa) h2,:lang(fa) h3,:lang(fa) .brand,:lang(fa) .loading{font-family:Vazir,sans-serif;letter-spacing:0;line-height:1.65}:lang(fa) h1{font-size:clamp(36px,4.6vw,60px);font-weight:650}:lang(fa) h2{font-size:29px;font-weight:600}:lang(fa) h3{font-size:22px;font-weight:550}:lang(fa) em{font-style:normal}:lang(fa) .eyebrow,:lang(fa) .stamp,:lang(fa) .paper p{letter-spacing:0}:lang(fa) .eyebrow{font-size:12px}:lang(fa) .card .entry-body{line-height:2}:lang(fa) .paper h3{font-size:25px}:lang(fa) .card-foot{gap:8px;flex-wrap:wrap}:lang(fa) .date-pill{flex-wrap:wrap;justify-content:center}:lang(fa) input[name^="username"],:lang(fa) input[type="password"],input[type="date"]{direction:ltr;text-align:start}.card [dir="auto"]{unicode-bidi:plaintext;overflow-wrap:anywhere}
@media(max-width:760px){.auth-intro{min-height:310px}:lang(fa) .auth-intro h1{font-size:34px}:lang(fa) .auth-form h2{font-size:27px}:lang(fa) header{padding:0 16px}:lang(fa) .brand{font-size:18px}.header-right{gap:6px}:lang(fa) .section-top{gap:12px;align-items:center}:lang(fa) .section-top h2{font-size:24px}}

.auth{grid-template-columns:repeat(2,minmax(0,1fr))}.auth>section,.hero>div{min-width:0}.auth h1{overflow-wrap:anywhere}:lang(fa) .auth-intro h1{font-size:clamp(32px,3.8vw,50px)}@media(max-width:760px){.auth{grid-template-columns:minmax(0,1fr)}}

/* An expressive Naskh face for titles; Vazirmatn keeps controls and reading clear. */
@font-face{font-family:Amiri;src:url('/fonts/Amiri-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Amiri;src:url('/fonts/Amiri-Bold.ttf') format('truetype');font-weight:700;font-style:normal;font-display:swap}
:lang(fa) h1,:lang(fa) h2,:lang(fa) h3,:lang(fa) .brand{font-family:Amiri,serif;font-weight:700;line-height:1.65}
:lang(fa) h1{font-size:clamp(42px,5vw,68px)}:lang(fa) h2{font-size:34px}:lang(fa) h3{font-size:29px}:lang(fa) .brand{font-size:28px}:lang(fa) .paper h3{font-family:Amiri,serif;font-size:31px}
:lang(fa) .letter .entry-body{font-family:Amiri,serif;font-size:23px;line-height:1.95;color:#70434e}:lang(fa) .auth-intro h1{font-size:clamp(38px,4.2vw,57px)}
.card{position:relative;box-shadow:0 5px 20px #79524706;border-radius:12px}
.wish{background:linear-gradient(145deg,#fff9f7,#f6e7e8);border-color:#e9ccd0;border-top:3px solid #d3a1ab}
.wish h3{color:#874e60}.wish .stamp{color:#966c77}.wish.done{background:linear-gradient(145deg,#fffaf7,#f0e1df)}.wish.done h3{color:#a57b83}
.memory{background:linear-gradient(160deg,#fffdf9,#fff0ec);border-color:#e9cfc6}.memory .card-media{border:5px solid #fffdf9;box-shadow:0 3px 12px #8f5b4817}.memory h3{color:#8c4b56}
.letter{background:radial-gradient(ellipse at top right,#eac2cb44,transparent 70%),linear-gradient(160deg,#fff7f5,#f4dde3);border:1px solid #dfb8c3;border-top:3px solid #b27587;padding:28px}.letter:before{display:block;text-align:center;font-size:40px;color:#ad657d;margin-bottom:12px}.letter h3{color:#88465c}.letter .card-foot{border-color:#e7c8d1}
.sticker-decoration{display:flex;justify-content:flex-end;margin:12px 0 -3px;pointer-events:none}.sticker-decoration img{width:104px;height:92px;object-fit:contain;transform:rotate(-6deg);filter:drop-shadow(0 4px 3px #8b5a6810)}.letter .sticker-decoration img{width:120px;height:108px}.wish .sticker-decoration img{width:88px;height:80px}
.sticker-field{margin:20px 0;padding:14px;border:1px solid #e5cfd0;border-radius:10px;min-width:0}.sticker-field legend{padding:0 8px;color:#895868;font-size:13px}.sticker-hint{font-size:11px;margin:0 0 14px}.sticker-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.sticker-choice{position:relative;border:1px solid #e5d6d0;border-radius:9px;background:#fffcf8;min-height:92px;padding:8px;display:grid;place-items:center;color:#8c6470}.sticker-choice img{width:100%;height:78px;object-fit:contain}.sticker-choice[aria-pressed=true]{border:2px solid #a76b7c;background:#f9e8ed;box-shadow:0 0 0 2px #a76b7c15}.sticker-choice[aria-pressed=true]:after{content:'✓';position:absolute;inset-block-start:2px;inset-inline-end:6px;color:#98546b;font-size:14px}.no-sticker{font-size:12px}
@media(max-width:760px){:lang(fa) .brand{font-size:23px}:lang(fa) .section-top h2{font-size:29px}:lang(fa) .auth-form h2{font-size:32px}:lang(fa) .auth-intro h1{font-size:40px}.letter{padding:23px}}

.reactions{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #e9d2d4;margin-top:12px;padding-top:12px}.reactions button{background:transparent;border:0;color:#8f6370;font-size:12px;padding:7px 5px}.reactions .like-button{display:flex;align-items:center;gap:7px}.like-button>span:first-child{font-size:23px;line-height:1}.reactions .liked{color:#b14368}.thread{border-top:1px solid #e7cdd2;margin-top:10px;padding-top:12px}.thread[hidden]{display:none}.comment{background:#ffffff80;border:1px solid #eddce0;border-radius:9px;padding:12px;margin-bottom:10px}.comment-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:10px;color:#9a7881}.comment-meta bdi{font-weight:600;color:#785360}.comment-meta button{border:0;background:none;color:#a2707d;font:inherit;cursor:pointer;margin-inline-start:auto}.comment p{white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.9 Arial,Vazir,sans-serif;color:#6e5058}:lang(fa) .comment p{font-family:Vazir,sans-serif}.comment-sticker{display:block;width:100px;height:90px;object-fit:contain;margin-top:9px}.comment-form label{margin:10px 0}.comment-form textarea{min-height:75px;font-size:13px}.comment-form summary{font-size:12px;cursor:pointer;color:#9a6073;padding:8px 0}.comment-form .primary{margin-top:12px;font-size:12px;padding:9px 14px}.comment-stickers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.comment-stickers button{border:1px solid #e3ccd2;border-radius:7px;min-height:64px;background:#fffaf8;color:#946879;font-size:10px;padding:4px}.comment-stickers img{width:100%;height:60px;object-fit:contain}.comment-stickers button[aria-pressed=true]{border:2px solid #ae7288;background:#f5e0e8}

/* Match the browser chrome declared by the theme-color metadata. */
.language-bar,header{background:#793f4c;color:#fff6ec;border-color:#ffffff20}.language-bar{border-bottom:1px solid #ffffff20}header{max-width:none;padding-inline:max(24px,calc((100vw - 1156px)/2))}.language-bar .secondary,header .secondary{color:#fff4e9;border-color:#ffffff55;background:#ffffff09}header .brand span{color:#f0bdc6}header .muted{color:#eed0d2}header .icon{color:#fff0e6}.language-bar .secondary:hover,header .secondary:hover{background:#ffffff1c}@media(max-width:760px){header,:lang(fa) header{padding-inline:16px}}

[hidden]{display:none!important}

body[data-authenticated=true] #public-toolbar{display:none}.app-header{height:82px;gap:18px}.app-header .brand{margin-inline-end:auto}.app-header svg,.bottom-nav svg,.drawer-links svg{width:24px;height:24px;display:block;flex-shrink:0}.menu-toggle{display:grid;place-items:center}.profile-shortcut{display:flex;align-items:center;gap:9px;background:none;border:0;color:#fff4e9;font-size:13px;padding:3px;cursor:pointer}.user-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;flex-shrink:0;background:#f6e5e0;border:2px solid #fff9f1;display:block}.profile-shortcut .user-avatar{width:38px;height:38px}.header-right{gap:14px}.app-header #language-toggle{padding:7px 13px;font-size:12px}
#side-menu{position:fixed;inset-block:0;inset-inline-start:0;inset-inline-end:auto;margin:0;padding:24px;width:min(330px,88vw);height:100dvh;max-height:100dvh;max-width:100vw;border:0;border-inline-end:1px solid #e3c8cd;border-radius:0;background:#fcf5f0;box-shadow:0 0 50px #46262f30;overflow-y:auto}#side-menu[open]{display:flex;flex-direction:column;animation:drawer-appear .2s ease-out}#side-menu::backdrop{background:#37212b88;backdrop-filter:blur(3px)}@keyframes drawer-appear{from{opacity:0;transform:translateX(-20px)}to{opacity:1;transform:translateX(0)}}:dir(rtl) #side-menu[open]{animation-name:drawer-appear-rtl}@keyframes drawer-appear-rtl{from{opacity:0;transform:translateX(20px)}to{opacity:1;transform:translateX(0)}}.drawer-top{display:flex;align-items:center;justify-content:space-between}.drawer-person{display:flex;align-items:center;gap:14px;width:100%;text-align:start;border:0;border-bottom:1px solid #ead2d7;background:none;padding:22px 0;color:#704351}.drawer-person .user-avatar{width:60px;height:60px}.drawer-person span{display:flex;flex-direction:column;gap:5px}.drawer-person small{font-size:11px;color:#9b7c83}.drawer-links{display:grid;gap:7px;margin:24px 0}.drawer-links button{display:flex;align-items:center;gap:14px;padding:13px 15px;text-align:start;background:none;border:0;border-radius:9px;color:#875662}.drawer-links button.active{background:#efdae1;color:#794052}.drawer-bottom{margin-top:auto;display:grid;gap:12px;padding-top:30px}.drawer-bottom .secondary{width:100%}.drawer-bottom #menu-language:empty{display:none}.bottom-nav{display:none}
.profile-page{max-width:680px;margin:0 auto;padding:42px 24px 70px}.profile-page h1{font-size:42px;letter-spacing:0;margin-bottom:10px}.profile-card{background:#fffaf6;border:1px solid #e8cfd4;border-radius:18px;padding:28px;margin-top:25px}.profile-picture{display:flex;justify-content:center;margin-bottom:25px}.profile-picture .user-avatar{width:112px;height:112px;border:5px solid white;box-shadow:0 5px 25px #92546c22}.avatar-field{border:0;margin:25px 0;padding:0;min-width:0}.avatar-field legend{font-size:13px;color:#845667;margin-bottom:14px}.avatar-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.avatar-grid button{border:2px solid transparent;border-radius:50%;padding:3px;background:none;aspect-ratio:1;min-width:0}.avatar-grid img{display:block;width:100%;height:100%;border-radius:50%}.avatar-grid button[aria-pressed=true]{border-color:#ad6e85;background:#efd6df}.profile-upload{border:1px dashed #cfa4b0;border-radius:9px;padding:16px}.profile-upload input{display:block;width:100%;font-size:12px;margin:12px 0}.profile-upload small{display:block;font-size:11px}.profile-card>.primary{width:100%}.liker-faces{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.liker{display:flex;align-items:center;gap:5px;font-size:10px;color:#9d667b}.liker .user-avatar{width:25px;height:25px;border-width:1px}.reactions{flex-wrap:wrap;gap:8px}.liked-people{flex:1;min-width:0}.reactions button[data-action=comments]{margin-inline-start:auto}.reactions .like-button{font-size:11px}
@media(max-width:760px){.app-header{height:68px;padding:0 16px;gap:8px;position:sticky;top:0;z-index:3}.app-header .brand{font-size:18px}:lang(fa) .app-header .brand{font-size:23px}.app-header .desktop-control{display:none!important}.app-header .header-right{gap:0}.menu-toggle{min-width:36px}.app-header .user-avatar{width:33px;height:33px}.bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;inset-inline:0;bottom:0;z-index:4;padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:#fffaf7f5;border-top:1px solid #e6cbd2;box-shadow:0 -4px 24px #7341530a;backdrop-filter:blur(14px)}.bottom-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:0;background:transparent;color:#ac8591;padding:6px 2px;border-radius:12px;min-width:0}.bottom-item span{font-size:10px;white-space:nowrap}.bottom-item svg{width:23px;height:23px}.bottom-item.active{background:#f1dfe7;color:#914b68}.toolbar .tabs{display:none}body[data-authenticated=true]{padding-bottom:calc(82px + env(safe-area-inset-bottom))}.profile-page{padding:28px 20px 45px}.profile-card{padding:22px 18px}.avatar-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:290px;margin:auto}.avatar-grid button{max-width:80px;width:100%;justify-self:center}.hero{margin-bottom:24px}.hero h1{margin-top:10px}.layout{padding-top:26px}#toast{bottom:calc(105px + env(safe-area-inset-bottom))}.liker-faces{gap:7px}.liker{gap:3px}.reactions .like-button{gap:4px}}
@media(prefers-reduced-motion:reduce){#side-menu[open]{animation:none!important}}

.notification-bell{position:relative;display:grid;place-items:center;overflow:visible}.notification-badge{display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border-radius:12px;background:#cf7c96;color:#fff;font:11px/1 Vazir,Arial,sans-serif}.notification-bell .notification-badge{position:absolute;inset-block-start:0;inset-inline-end:-3px;border:2px solid #793f4c}.drawer-links .notification-badge{margin-inline-start:auto}.dashboard-overview{margin:20px 0 45px}.dashboard-overview h2{font-size:30px}.dashboard-chapters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.dashboard-chapters button{background:#fff9f4;border:1px solid #e7ccd1;color:#92586c;border-radius:14px;padding:22px;display:flex;flex-direction:column;align-items:center;gap:10px}.dashboard-chapters svg{width:30px;height:30px}.dashboard-chapters strong{font-size:26px;font-weight:500}.dashboard-chapters span{font-size:13px}.dashboard-activity{display:flex;align-items:center;gap:18px;text-align:start;width:100%;padding:22px;margin-top:20px;border:1px solid #e2c3ce;border-radius:14px;background:#f4e3e9;color:#834a5e}.dashboard-activity>svg{width:28px;height:28px}.dashboard-activity>span:not(.notification-badge){display:grid;gap:5px}.dashboard-activity strong{font-size:15px;font-weight:500}.dashboard-activity small{font-size:12px}.dashboard-activity .notification-badge{margin-inline-start:auto}
.settings-page,.notifications-page{max-width:840px;margin:auto;padding:38px 24px 70px}.settings-page>h1,.notifications-page h1{font-size:42px;letter-spacing:0;margin:12px 0}.settings-panel{border:1px solid #e7cfd4;border-radius:15px;background:#fffaf6;padding:26px;margin-top:25px;scroll-margin-top:85px}.settings-panel h2{font-size:28px;margin-top:0}.settings-panel>.muted{font-size:13px}.settings-panel .profile-page{padding:0;max-width:none}.settings-panel .profile-page>.eyebrow{display:none}.settings-panel .profile-card{box-shadow:none;border:0;padding:10px 0;margin:0}.settings-panel .dialog-top{display:block}.settings-panel .dialog-top .icon{display:none}.settings-panel .muted{line-height:1.9}.preference-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 0;border-bottom:1px solid #eddbdf;font-size:14px}.preference-row input[type=checkbox]{appearance:auto;display:block;width:20px;height:20px;flex-shrink:0;accent-color:#985d76;padding:0;margin:0;box-shadow:none}.settings-panel .primary{margin-top:16px}.date-settings .primary{width:auto}#profile-settings h2{font-family:Amiri,Georgia,serif}.notification-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}.notification-heading button{font-size:12px;white-space:nowrap}.notification-row{display:flex;gap:16px;align-items:flex-start;text-align:start;width:100%;background:#fffaf6;border:1px solid #ead7dc;border-radius:13px;padding:18px;margin:12px 0;color:#76535e}.notification-row.unread{background:#f8e9ef;border-color:#dfbbc8}.notification-row .user-avatar{width:45px;height:45px}.notification-copy{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1;font-size:13px}.notification-copy>bdi:first-child{font-weight:600;color:#874c63}.notification-title{font-weight:500;overflow-wrap:anywhere;color:#5f394b}.notification-copy small{font-size:10px}.unread-dot{width:7px;height:7px;flex-shrink:0;border-radius:50%;background:transparent;margin-top:14px}.unread .unread-dot{background:#ba6f8b}.notifications-page .empty{padding:42px 20px}.notification-target{outline:2px solid #c78da4;outline-offset:4px}#notification-list{margin-top:25px}
@media(max-width:760px){.app-header .header-right{gap:7px}.app-header .brand{font-size:17px}:lang(fa) .app-header .brand{font-size:21px}.notification-bell{min-width:32px;min-height:36px}.notification-bell svg{width:21px}.dashboard-chapters{gap:10px}.dashboard-chapters button{padding:18px 8px}.dashboard-chapters span{font-size:11px}.dashboard-overview h2{font-size:27px}.dashboard-activity{padding:18px;gap:12px}.settings-page,.notifications-page{padding:28px 20px 50px}.settings-panel{padding:20px 16px}.notification-row{padding:14px;gap:10px}.notification-row .user-avatar{width:37px;height:37px}.notification-heading{align-items:center}.notification-heading h1{font-size:34px}.notification-heading button{padding:8px 10px;font-size:11px}.settings-page>h1{font-size:38px}}

.settings-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:5px;background:#f0e0e5;border:1px solid #e4cbd3;border-radius:12px;margin:25px 0 0}.settings-tabs [role=tab]{border:0;border-radius:8px;background:transparent;color:#986d7d;padding:11px 8px;font-size:13px;line-height:1.7;min-width:0}.settings-tabs [aria-selected=true]{background:#fffaf6;color:#86475f;box-shadow:0 2px 8px #79506410}.settings-page [role=tabpanel]{margin-top:18px}.settings-page [role=tabpanel][hidden]{display:none!important}.settings-page .profile-page>h2{margin-top:0}.settings-tabs button:focus-visible{outline:2px solid #9c6479;outline-offset:2px}#backup-settings .text-link{display:inline-block;margin-top:12px}@media(max-width:760px){.settings-tabs{gap:3px;padding:4px}.settings-tabs [role=tab]{padding:10px 3px;font-size:11px}.settings-page>.muted{font-size:13px}}

.settings-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}.timestamp{display:flex;flex-wrap:wrap;gap:3px 8px;font-size:10px;line-height:1.8;text-transform:none;letter-spacing:0;color:#a48186}.timestamp .relative-time{color:#9b6177}.card-dates{display:flex;flex-direction:column;gap:5px;max-width:72%}.stamp{gap:10px;align-items:flex-start}.notification-copy .timestamp{margin-top:3px}.comment-meta .timestamp{font-size:9px}.storage-chart-wrap{display:flex;align-items:center;gap:25px;flex-wrap:wrap;margin:25px 0}.storage-chart{width:195px;max-width:100%;flex-shrink:0}.storage-chart circle{fill:none;stroke-width:18}.chart-track{stroke:#f0e6e8}.storage-chart text{font-size:13px;fill:#805367;font-family:Vazir,Arial,sans-serif}.storage-chart .chart-caption{font-size:9px;fill:#a17b87}.segment-images{stroke:#ad718d;background:#ad718d}.segment-videos{stroke:#d39987;background:#d39987}.segment-text{stroke:#a6a1c0;background:#a6a1c0}.segment-metadata{stroke:#d5ba8d;background:#d5ba8d}.storage-legend{padding:0;margin:0;list-style:none;flex:1;min-width:190px}.storage-legend li{display:flex;align-items:center;gap:9px;padding:9px 0;border-bottom:1px solid #efdee2;font-size:12px}.storage-legend strong{margin-inline-start:auto;font-weight:500}.legend-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.storage-quota{font-size:12px;margin-bottom:25px}.storage-quota meter{display:block;width:100%;height:15px;accent-color:#ad718d;margin-top:8px}.storage-table-wrap{overflow-x:auto}.storage-table{width:100%;border-collapse:collapse;font-size:12px}.storage-table th,.storage-table td{padding:11px 8px;text-align:start;border-bottom:1px solid #ecdce0}.storage-table th{font-weight:500;color:#a17182}.storage-table th:not(:first-child),.storage-table td:not(:first-child){white-space:nowrap}.storage-result{border:1px solid #d5becb;border-radius:9px;background:#f4e7ed;padding:13px;font-size:12px}.storage-filter select{width:100%;padding:9px;border:1px solid #dfc9d2;border-radius:8px;background:#fffaf6;color:#83546a;font:inherit;margin-top:8px}.cleanup-toolbar{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}.cleanup-toolbar button{font-size:12px;padding:9px 13px}.storage-files{margin-top:15px}.storage-file{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #ebd9df;margin:0;font-size:12px}.storage-file input[type=checkbox]{width:18px;height:18px;flex-shrink:0;margin:0;padding:0;appearance:auto;accent-color:#985d76}.storage-thumbnail{width:46px;height:46px;background:#f1e4e8;border-radius:8px;flex-shrink:0;display:grid;place-items:center;overflow:hidden}.storage-thumbnail img{width:100%;height:100%;object-fit:cover}.storage-thumbnail svg{width:25px;height:25px;color:#af7c90}.storage-file-info{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1;overflow-wrap:anywhere}.storage-file-info small{font-size:10px}.storage-file>strong{font-weight:500;font-size:11px;white-space:nowrap}.storage-paging{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:20px;font-size:11px}.storage-paging button{padding:7px 12px;font-size:11px}#storage-selection{font-size:12px}#storage-settings>.muted{font-size:12px}
@media(max-width:760px){.settings-tabs [role=tab]{font-size:10px;line-height:1.65;padding:9px 2px}.storage-chart-wrap{justify-content:center;gap:10px}.storage-chart{width:175px}.storage-file{gap:7px}.storage-thumbnail{width:35px;height:35px}.storage-table{font-size:10px}.storage-table td,.storage-table th{padding:10px 4px}.card-dates{max-width:76%}}

/* Quiet loading placeholders, with the same rose and cream palette as the story. */
.image-shell{position:relative;display:inline-grid;vertical-align:middle;object-fit:contain;isolation:isolate;min-width:0;overflow:hidden}.image-shell>img{grid-area:1/1;width:100%;height:100%;min-width:0;object-fit:inherit;border-radius:inherit;display:block;opacity:0;transition:opacity .2s ease}.image-shell[data-image-state=loaded]>img{opacity:1}.image-loader,.image-failed{grid-area:1/1;z-index:1;align-self:stretch;justify-self:stretch;display:flex;align-items:center;justify-content:center;background:#f7ecec;color:#a3687e;min-height:24px;min-width:24px}.image-shell[data-image-state=loaded]>.image-loader,.image-shell[data-image-state=error]>.image-loader,.image-failed[hidden]{display:none}.image-failed{background:#f3e5e8}.image-failed>span:first-child{font-size:24px;color:#b78f9b}.love-spinner{position:relative;display:inline-grid;place-items:center;flex-shrink:0;width:30px;height:30px;font:19px/1 Georgia,serif;color:#a4677e}.love-spinner:before{content:'';position:absolute;inset:0;border:2px solid #dcbfc980;border-top-color:#a4677e;border-inline-end-color:#bd8c9f;border-radius:50%;animation:love-turn 1s linear infinite}.user-avatar .love-spinner{width:20px;height:20px;font-size:13px}.user-avatar .image-loader{border-radius:50%;min-width:0;min-height:0}.image-shell.card-media{display:grid;object-fit:cover}.sticker-decoration>.image-shell{width:104px;height:92px;transform:rotate(-6deg)}.letter .sticker-decoration>.image-shell{width:120px;height:108px}.wish .sticker-decoration>.image-shell{width:88px;height:80px}.sticker-decoration .image-shell>img{width:100%;height:100%;transform:none}.sticker-decoration .image-loader,.sticker-choice .image-loader,.comment-stickers .image-loader,.comment-sticker .image-loader{background:#fbf1ee80;border-radius:12px}.sticker-choice>.image-shell{width:100%;height:78px}.comment-stickers .image-shell{width:100%;height:60px}.comment-sticker.image-shell{display:grid}.storage-thumbnail>.image-shell{width:100%;height:100%;object-fit:cover}.storage-thumbnail .love-spinner{width:23px;height:23px;font-size:15px}.avatar-grid .image-shell{width:100%;aspect-ratio:1;border-radius:50%}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.media-backup{margin-top:30px;padding-top:22px;border-top:1px solid #e7cfd4}.media-backup h3{font-size:25px}.media-backup>.muted{font-size:12px}.media-backup select{display:block;margin-top:8px;width:100%;padding:10px;border:1px solid #dec7d0;border-radius:8px;background:#fffaf6;color:#805364;font:inherit}.backup-loading{display:flex;align-items:center;gap:12px;color:#95637a;font-size:12px;margin-top:22px}.backup-parts{display:grid;gap:12px;margin-top:18px}.backup-part{display:flex;align-items:center;justify-content:space-between;gap:12px;text-decoration:none;font-size:12px;background:#f9edf2}.backup-part small{font-size:11px;white-space:nowrap}.backup-part:hover{border-color:#af788f;background:#f2e0e9}#media-backup-list>p{font-size:12px}@keyframes love-turn{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.love-spinner:before{animation:none;border-style:dotted}.image-shell>img{transition:none}}@media(max-width:480px){.backup-part{align-items:flex-start;flex-direction:column;gap:5px}}
