@font-face{font-family:Vazirmatn;src:url('assets/Vazirmatn-FD-Regular.ttf') format('truetype');font-weight:400;font-display:swap}@font-face{font-family:Vazirmatn;src:url('assets/Vazirmatn-FD-Bold.ttf') format('truetype');font-weight:600 900;font-display:swap}
:root{--paper:#FFF9EF;--surface:#FFFFFF;--ink:#29243E;--muted:#625D73;--purple:#6033CB;--purple-dark:#48229F;--purple-light:#F0E9FF;--yellow:#FFCF47;--coral:#F46760;--line:#E8E2ED;--soft-line:#F0EBE4;--radius:24px;--shadow:0 8px 28px #35205B08;--focus:#29243E}
*{box-sizing:border-box}html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}body{margin:0;background:var(--paper);color:var(--ink);font-family:Vazirmatn,Tahoma,sans-serif;font-size:16px;line-height:1.9}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:none}button:disabled{cursor:default}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}h1,h2,h3,strong{font-weight:700}h1,h2,h3{line-height:1.6}img{max-width:100%;display:block}svg{vertical-align:middle;flex-shrink:0}button{touch-action:manipulation}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--focus);outline-offset:4px}button:disabled{opacity:.38}input,select,textarea{width:100%;border:1.5px solid #D7CFDF;background:white;border-radius:14px;padding:12px 16px;min-height:52px;transition:border-color .15s}input::placeholder,textarea::placeholder{color:#787183;opacity:1}input:focus,select:focus,textarea:focus{border-color:var(--purple)}input[aria-invalid=true]{border-color:#BC3737}textarea{resize:vertical;line-height:2.2}select{padding-left:36px}button,a{transition:background .16s,box-shadow .16s,transform .16s}
.primary,.secondary,.text-btn,.back-link,.banner-cta{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;font-weight:700;border-radius:14px;line-height:1.7;padding:11px 21px}.primary{background:var(--purple);color:#fff;box-shadow:0 3px 0 var(--purple-dark)}.primary:hover{background:var(--purple-dark)}.primary:active{transform:translateY(2px);box-shadow:none}.secondary{color:var(--purple-dark);border:1.5px solid #CCB9F0;background:#fff}.secondary:hover{background:var(--purple-light)}.text-btn{padding:8px 2px;color:var(--purple);min-height:44px;font-size:14px;justify-content:flex-start}.back-link{padding:0;color:var(--muted);font-size:14px;min-height:44px;margin-bottom:16px;font-weight:400;justify-content:flex-start}.back-link:hover{color:var(--purple)}.icon-btn{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:var(--muted);flex-shrink:0}.icon-btn:hover{background:var(--purple-light);color:var(--purple)}.icon-btn.selected,.favorite.selected{background:#FFF0EE;color:#B73E4B}.full{width:100%}.pill,.count-pill{display:inline-flex;align-items:center;gap:6px;border-radius:50px;padding:5px 12px;font-size:12px;font-weight:700;line-height:1.8;background:var(--purple-light);color:var(--purple-dark);white-space:nowrap}.count-pill{background:#fff;color:var(--muted);border:1px solid var(--line)}.eyebrow{font-size:12px;font-weight:700;color:var(--purple-dark);display:block}.muted,.field-hint,.sample-note{color:var(--muted)}.sample-note{font-size:12px;line-height:2;margin-top:18px;display:flex;gap:7px;align-items:flex-start}.sample-note svg{margin-top:4px;flex-shrink:0}.divider{height:1px;background:var(--line);margin:24px 0}.field-label{font-size:14px;font-weight:700;margin-bottom:9px;display:block}.field-label small{font-weight:400;color:var(--muted);font-size:12px;margin-right:5px}.group-label{margin-top:24px}.field-hint{font-size:12px;margin-top:12px;display:flex;align-items:flex-start;gap:6px}.field-hint svg{margin-top:4px}.error{color:#AD292F;font-size:13px;line-height:1.9;min-height:0;margin:0}.error:not(:empty){margin-top:10px}.notice{padding:14px 16px;border-radius:14px;display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:2}.notice svg{margin-top:5px}.soft{background:#FFF5D4;color:#655014}.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}
.brand{display:inline-flex;align-items:center;gap:9px;color:var(--purple);font-size:32px;font-weight:700;line-height:1.5}.logo-mark{height:42px;width:42px;display:grid;place-items:center;background:var(--purple);color:var(--yellow);border-radius:15px;transform:rotate(5deg)}.logo-dot{color:#D05C31}.brand-caption{font-size:12px;color:var(--muted);margin-top:10px}.app-shell{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100dvh;direction:rtl}.sidebar{background:#fff;position:sticky;top:0;height:100dvh;padding:30px 20px 20px;border-left:1px solid var(--soft-line);display:flex;flex-direction:column}.side-nav{display:flex;flex-direction:column;gap:8px;margin-top:38px}.nav-item{display:flex;align-items:center;gap:12px;min-height:54px;border-radius:16px;padding:10px 12px;font-size:15px;color:var(--muted)}.nav-item.active{background:var(--purple-light);color:var(--purple-dark);font-weight:700}.nav-item:hover{background:#F7F3FF}.playful-icon{flex-shrink:0}.nav-item small{font-size:12px;background:#E2D4FA;padding:1px 6px;border-radius:7px;margin-right:auto}.sidebar-bottom{margin-top:auto;padding-top:60px}.gentle-note{background:#FFF5D7;border-radius:20px;padding:0 14px 18px;text-align:center}.gentle-note .hero-character{width:156px;height:120px;object-fit:contain;margin:-38px auto 0}.gentle-note strong{font-size:13px;display:block}.gentle-note p{font-size:12px;color:var(--muted);margin-top:3px}.sidebar-signature{display:block;font-size:11px;text-align:center;color:var(--muted);margin-top:20px}.app-main{min-width:0}.app-header{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 42px}.desktop-greeting{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:8px}.avatar{height:44px;width:44px;border-radius:16px;background:#fff;border:1px solid var(--line);color:var(--purple);display:grid;place-items:center}.avatar:hover{background:var(--purple-light)}.mobile-brand{display:none}.page{padding:14px 42px 40px;max-width:1140px;margin:0 auto}.page-title{margin-bottom:24px}.page-title h1{font-size:27px;line-height:1.6}.page-title p{color:var(--muted);font-size:14px;margin-top:5px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.section-heading h2{font-size:21px}.section-heading p{font-size:13px;color:var(--muted);margin-top:2px}.section-mini{font-size:13px;color:var(--muted)}.bottom-nav{display:none}
.peach{--tint:#FFF0EB}.mint{--tint:#EAF7EC}.butter{--tint:#FFF4CF}.lavender{--tint:#F1E9FF}.sky{--tint:#E8F5FD}.night{--tint:#EDEEFF}.hero-character{width:100%;height:auto;object-fit:contain}.skill-art{width:100%;height:100%;object-fit:contain}.scene{position:relative;overflow:hidden;border-radius:20px;aspect-ratio:1.5;background:#F3EDFF}.scene>img{height:100%;width:100%;object-fit:cover}.scene-music{position:absolute;color:var(--purple);font-size:34px;font-weight:700;pointer-events:none}.note-one{top:20%;left:12%;transform:rotate(-13deg)}.note-two{top:13%;right:18%;font-size:26px;transform:rotate(16deg)}
.modal-backdrop{position:fixed;inset:0;background:#28203D66;backdrop-filter:blur(4px);z-index:50;display:grid;place-items:center;padding:22px}.modal{width:100%;max-width:440px;background:#fff;border-radius:24px;padding:30px;position:relative;box-shadow:0 24px 70px #24133F30;max-height:85dvh;overflow:auto}.modal h2{font-size:22px;margin-bottom:20px;padding-left:28px}.modal p{font-size:14px;color:var(--muted);margin-top:12px}.modal-close{position:absolute;left:10px;top:10px}.modal-actions{display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap;margin-top:24px}.danger-button{background:#AC3443;box-shadow:none}.danger-button:hover{background:#8D2835}#toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,15px);background:var(--ink);color:#fff;border-radius:14px;padding:12px 20px;font-size:14px;width:max-content;max-width:calc(100vw - 32px);box-shadow:0 8px 24px #24133F20;opacity:0;pointer-events:none;z-index:80;transition:opacity .2s,transform .2s}#toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1100px){.app-shell{grid-template-columns:195px minmax(0,1fr)}.sidebar{padding:28px 16px 18px}.app-header{padding:0 28px}.page{padding:10px 28px 32px}.brand-caption{font-size:11px}.nav-item{font-size:14px;padding:10px}.brand{font-size:29px}.logo-mark{width:38px;height:38px}}
@media(max-width:760px){body{font-size:15px}.app-shell{display:block}.sidebar{display:none}.app-main{padding-bottom:calc(82px + env(safe-area-inset-bottom))}.app-header{height:66px;padding:0 20px}.desktop-greeting{display:none}.mobile-brand{display:inline-flex;font-size:29px}.mobile-brand .logo-mark{width:35px;height:35px;border-radius:12px}.avatar{width:40px;height:40px;border-radius:14px}.page{padding:8px 20px 24px}.page-title{margin-bottom:20px}.page-title h1{font-size:24px}.page-title p{font-size:13px;margin-top:2px}.section-heading h2{font-size:19px}.section-heading p{font-size:12px}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:30;justify-content:space-around;gap:4px;background:#FFFFFFF5;border-top:1px solid var(--line);backdrop-filter:blur(16px);padding:7px 12px calc(8px + env(safe-area-inset-bottom))}.bottom-nav a{display:flex;flex:1;align-items:center;flex-direction:column;justify-content:center;gap:2px;font-size:11px;min-height:58px;border-radius:15px;color:var(--muted)}.bottom-nav .playful-icon{width:29px;height:29px}.bottom-nav a.active{background:var(--purple-light);color:var(--purple-dark);font-weight:700}#toast{bottom:calc(92px + env(safe-area-inset-bottom))}.section-heading{margin-bottom:12px}.primary,.secondary{font-size:14px;min-height:48px;padding:11px 18px}}
@media(max-width:360px){.page{padding-left:16px;padding-right:16px}.app-header{padding:0 16px}.page-title h1{font-size:22px}.bottom-nav{padding-left:7px;padding-right:7px}.bottom-nav a{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* One consent, continuous generation. The dialog has no cancel action. */
.family-stages{grid-template-columns:repeat(3,1fr)}
body.family-waiting{overflow:hidden}
.family-wait-overlay{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;background:rgba(47,29,79,.48);backdrop-filter:blur(9px);padding:20px;overflow:auto}
.family-wait-card{width:min(100%,510px);max-height:calc(100svh - 40px);overflow:auto;text-align:center;background:linear-gradient(160deg,#fffdf8,#f5edff);border:2px solid #fff;border-radius:32px;padding:30px 28px;box-shadow:0 28px 100px #24123745;outline:none}
.family-wait-art{position:relative;width:180px;height:150px;margin:0 auto 16px;display:grid;place-items:center}
.family-wait-art img{width:160px;height:130px;object-fit:cover;border-radius:28px;box-shadow:0 10px 28px #59349c22}
.family-wait-art .floating-note,.family-wait-art .floating-star{position:absolute;font-size:38px;color:#7544ca;animation:avazak-float 3s ease-in-out infinite}
.family-wait-art .floating-note{right:-5px;top:4px}.family-wait-art .floating-star{left:0;bottom:0;color:#e6af38;animation-delay:-1.5s}
.family-wait-card h2{font-size:clamp(22px,5vw,28px);line-height:1.7;margin:8px 0 12px;color:#35234f}
.family-wait-status{display:grid;justify-items:center;gap:8px}.family-wait-status p{font-size:15px;line-height:2;margin:0;color:#6c617c}
.family-wait-status .boot-spinner{width:25px;height:25px;margin:6px}
.family-wait-stages{display:flex;padding:0;list-style:none;justify-content:space-between;gap:8px;margin:25px 0}
.family-wait-stages li{flex:1;font-size:12px;line-height:1.8;color:#9b91a8;display:grid;justify-items:center;gap:8px}
.family-wait-stages li>span{width:37px;height:37px;border-radius:50%;display:grid;place-items:center;background:#eae3f2;font-size:20px}
.family-wait-stages li.done{color:#397753}.family-wait-stages li.done>span{background:#e0f1e5}.family-wait-stages li.current{color:#6134b0;font-weight:700}.family-wait-stages li.current>span{color:white;background:#7544ca;box-shadow:0 0 0 6px #e8dbfc}
.family-wait-tip{font-size:15px;border-radius:18px;background:#fff2cd;padding:13px 10px;color:#715726;line-height:1.9;margin:0 0 15px}
.family-wait-card>small{display:block;font-size:12px;line-height:1.9;color:#80738c}
@keyframes avazak-float{50%{transform:translateY(-10px) rotate(8deg)}}
@media(max-width:480px){.family-wait-overlay{padding:14px}.family-wait-card{padding:24px 18px;border-radius:26px;max-height:calc(100svh - 28px)}.family-wait-art{height:125px}.family-wait-art img{width:140px;height:115px}}
@media(prefers-reduced-motion:reduce){.family-wait-art .floating-note,.family-wait-art .floating-star{animation:none}}
