@font-face {font-family:'Vazirmatn';src:url('./fonts/Vazirmatn-var.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap;}
:root{--bg:#faf7f5;--surface:#fff;--ink:#2f2835;--muted:#8a8290;--line:#eee9ea;--rose:#b9657d;--rose-dark:#91475e;--rose-light:#fae7eb;--peach:#fff0e8;--lav:#f1ebf9;--teal:#389991;--mint:#ddf2ee;--shadow:0 16px 45px rgba(69,43,56,.068);--r:25px;--safe-bottom:env(safe-area-inset-bottom,0px);font-synthesis:none}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100dvh;background:var(--bg);color:var(--ink);font-family:Vazirmatn,"Vazir",-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,sans-serif;font-size:14px;-webkit-tap-highlight-color:transparent}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}h1,h2,h3,h4,p{margin-top:0}h1{font-size:27px}h2{font-size:19px}h3{font-size:15px}p{line-height:1.9}a{text-decoration:none;color:var(--rose-dark)}input,select,textarea{background:#fff;border:1px solid #e6e0e4;border-radius:14px;padding:12px 14px;width:100%;color:var(--ink);outline:none;transition:border .16s;min-height:46px}input:focus,select:focus,textarea:focus{border-color:var(--rose);box-shadow:0 0 0 3px #f7e8ec}textarea{resize:vertical;min-height:88px}label{display:grid;gap:8px;font-weight:650;font-size:12px;color:#58505d;margin-bottom:14px}.tiny{font-size:11px;color:var(--muted);line-height:1.9}.muted{color:var(--muted)}.small{font-size:12px}.text-center{text-align:center}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:14px;font-weight:750;padding:11px 16px;min-height:44px;background:#f5eff2;color:var(--rose-dark);white-space:nowrap}.button.primary{color:white;background:var(--rose);box-shadow:0 8px 18px #b9657d2d}.button.primary:hover{background:var(--rose-dark)}.button.outline{background:white;border-color:#eadbe0}.button.ghost{border-color:transparent;background:transparent}.button.danger{background:#fff1f0;color:#b64049}.button.wide{width:100%}.button.sm{font-size:12px;min-height:38px;padding:8px 13px}.button.block{display:flex}.button:focus-visible,.icon-button:focus-visible,.tab-btn:focus-visible,.day:focus-visible{outline:3px solid #cb8ca4;outline-offset:3px}.notice{padding:13px 15px;border-radius:14px;font-size:12px;line-height:1.9;margin:12px 0;background:#f3ebf9;color:#6b5182}.notice.danger{background:#fff0ef;color:#a94249}.notice.success{background:#e4f7ef;color:#2d7560}.panel{background:var(--surface);border:1px solid #f0ebeb;border-radius:var(--r);padding:20px;box-shadow:var(--shadow)}.panel + .panel{margin-top:15px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:23px 0 14px}.section-title h2{font-size:17px;margin:0;letter-spacing:-.5px}.section-title .hint{font-size:12px;color:var(--muted)}.eyebrow{font-size:11px;color:var(--rose-dark);font-weight:800;letter-spacing:.2px}.chip{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;background:#f7eef2;color:#944b63;border-radius:99px;font-size:11px;font-weight:750}.chip.mint{background:#e3f4ef;color:#22796f}.chip.peach{background:#fff1e7;color:#ab7353}.spacer{height:12px}.empty{padding:32px 15px;text-align:center;color:var(--muted)}.empty .empty-icon{font-size:43px;display:block;margin-bottom:12px}.empty strong{color:var(--ink);display:block;margin-bottom:10px;font-size:15px}.empty p{font-size:12px;max-width:280px;margin:0 auto 20px}.flex{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.stack{display:grid;gap:12px}.grow{flex:1}.right{text-align:right}.divider{height:1px;background:var(--line);margin:16px 0}
/* Login */
.initial-splash{min-height:100dvh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px}.initial-splash p{font-size:25px;font-weight:850;margin:0}.initial-splash small{color:var(--muted)}.brand-mark{display:grid;place-items:center;width:58px;height:58px;border-radius:21px;background:linear-gradient(135deg,#f5d3d9,#fff0e9);font-size:36px;color:var(--rose-dark);box-shadow:0 12px 34px #b9657d2a}.auth-shell{min-height:100dvh;display:grid;grid-template-columns:minmax(320px,440px) minmax(320px,480px);justify-content:center;align-items:center;gap:7vw;padding:40px}.auth-art{padding:50px 20px;position:relative}.auth-art h1{font-size:48px;line-height:1.55;margin:26px 0 8px;font-weight:870}.auth-art h1 span{color:var(--rose)}.auth-art p{font-size:16px;max-width:400px;color:var(--muted)}.art-orbit{width:245px;height:245px;border-radius:50%;border:30px solid #f4d9e0;background:#fff6f1;display:grid;place-items:center;font-size:97px;position:relative;margin:34px auto}.art-orbit:after{content:'✦';position:absolute;right:-52px;top:28px;font-size:38px;color:#debd8b}.auth-card{background:#fff;box-shadow:0 20px 70px #68435211;border:1px solid #f0e8e9;border-radius:32px;padding:32px}.auth-card .brand-mark{width:48px;height:48px;font-size:30px;margin-bottom:24px}.auth-card h2{font-size:25px;margin-bottom:8px}.auth-card>p{color:var(--muted);font-size:12px}.auth-tabs{display:flex;background:#f7f2f3;border-radius:14px;padding:5px;gap:4px;margin:22px 0}.auth-tabs button{flex:1;background:transparent;border:0;border-radius:11px;min-height:42px;font-weight:750;color:var(--muted)}.auth-tabs button.active{background:#fff;box-shadow:0 3px 10px #00000008;color:var(--rose-dark)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.form-grid label{min-width:0}.mode-selector{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:18px}.mode-selector button{border:1px solid #e9e0e4;border-radius:14px;background:#fff;padding:13px 8px;text-align:center;white-space:normal}.mode-selector button.active{background:#fff1f3;border-color:#c67f91;color:var(--rose-dark)}.auth-footer{color:var(--muted);font-size:11px;margin-top:22px;text-align:center}
/* Shell */
.app-frame{max-width:1120px;margin:0 auto;display:grid;grid-template-columns:235px minmax(0,1fr);min-height:100dvh}.sidebar{padding:29px 19px;background:#fff;border-left:1px solid #efe9e9;position:sticky;top:0;height:100dvh}.side-brand{display:flex;align-items:center;gap:11px;margin-bottom:55px;padding:0 9px}.side-brand .brand-mark{width:43px;height:43px;font-size:28px;border-radius:15px}.side-brand strong{font-size:23px}.side-brand small{display:block;font-size:10px;color:var(--muted)}.side-nav{display:grid;gap:9px}.tab-btn{border:0;background:transparent;color:#847b85;display:flex;align-items:center;gap:13px;padding:15px;border-radius:15px;width:100%;font-size:13px;font-weight:750;text-align:right}.tab-btn.active{background:#f7e9ed;color:var(--rose-dark)}.tab-btn svg,.icon-button svg,.button svg,.nav-btn svg{flex-shrink:0;width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.side-footer{position:absolute;bottom:27px;right:19px;left:19px;padding:13px;background:#faf6f6;border-radius:17px}.side-footer strong{font-size:12px}.side-footer small{display:block;color:var(--muted);margin-top:6px}.main-area{padding:23px 44px 100px;min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;min-height:52px}.topbar h1{font-size:24px;margin:3px 0}.topbar p{color:var(--muted);font-size:12px;margin:0}.profile-bubble{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:#f4e4e8;color:var(--rose-dark);font-size:18px;font-weight:900}.sync-pill{font-size:11px;padding:7px 10px;border-radius:99px;background:#e9f5f0;color:#2d7666;border:1px solid #daede6;display:inline-flex;align-items:center;gap:6px}.sync-pill.offline{background:#fff0e6;color:#a86942;border-color:#f3e3d7}.sync-pill.unsynced{background:#fff4e8;color:#9c693d;border-color:#f4e3d8}.sync-dot{width:6px;height:6px;background:currentColor;border-radius:50%}.mobile-top-brand{display:none}.bottom-nav{display:none}
/* dashboard */
.welcome-hero{position:relative;background:linear-gradient(130deg,#f5dfe4 0%,#f9edef 60%,#fff6f0 100%);border-radius:30px;overflow:hidden;padding:26px;display:grid;grid-template-columns:1fr 180px;align-items:center;gap:12px;min-height:170px}.welcome-hero:before{content:'';position:absolute;left:-90px;top:-90px;height:280px;width:280px;border:38px solid #ffffff7c;border-radius:50%}.welcome-hero .text{position:relative;z-index:1}.welcome-hero h2{font-size:24px;margin-bottom:10px}.welcome-hero p{color:#775b6a;line-height:1.9;max-width:360px;margin:0}.hero-moon{position:relative;margin:auto;width:140px;height:140px;border-radius:50%;border:18px solid #fffcf7;display:grid;place-items:center;font-size:62px;color:var(--rose);box-shadow:0 0 0 10px #ffffff53;transform:rotate(-15deg)}.dashboard-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:16px}.phase-card{padding:23px;background:#fff;display:flex;align-items:center;gap:25px;min-height:220px}.phase-ring{width:140px;height:140px;flex:0 0 140px;display:grid;place-items:center;position:relative}.phase-ring svg{width:100%;height:100%;transform:rotate(-90deg)}.ring-content{position:absolute;display:grid;place-items:center;text-align:center;line-height:1.3}.ring-content strong{font-size:39px;font-weight:850;color:var(--rose-dark)}.ring-content span{font-size:10px;color:var(--muted)}.phase-card h3{font-size:19px;margin:12px 0 8px}.phase-card p{font-size:12px;color:var(--muted);margin-bottom:12px}.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.stat-card{padding:20px 15px;display:flex;flex-direction:column;justify-content:space-between;gap:14px;min-height:105px}.stat-card .symbol{font-size:24px;line-height:1}.stat-card strong{display:block;font-size:17px;margin-bottom:4px}.stat-card small{color:var(--muted);font-size:11px}.stat-card.pink{background:var(--rose-light)}.stat-card.green{background:var(--mint)}.stat-card.orange{background:var(--peach)}.stat-card.lav{background:var(--lav)}.quick-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.action-card{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-height:110px;background:#fff;border:1px solid #eee7ea;border-radius:22px;padding:18px;text-align:right;font-weight:800;color:var(--ink)}.action-card .action-icon{width:40px;height:40px;border-radius:14px;background:#fae6eb;display:grid;place-items:center;color:var(--rose);font-size:22px}.action-card:nth-child(2) .action-icon{background:#e7f6f2;color:var(--teal)}.action-card:nth-child(3) .action-icon{background:#f3ecfa;color:#9274bd}.tip-card{background:linear-gradient(120deg,#f7f1fd,#fff);display:flex;gap:17px;align-items:center}.tip-emblem{font-size:30px;width:58px;height:58px;display:grid;place-items:center;border-radius:20px;background:#fff}.tip-card strong{font-size:14px}.tip-card p{font-size:12px;color:#7e718b;margin:5px 0 0}.card-arrow{border:0;color:var(--rose);background:transparent;font-weight:750}.list-card{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid var(--line)}.list-card:last-child{border-bottom:0;padding-bottom:0}.list-card:first-child{padding-top:0}.list-card strong{display:block;font-size:13px}.list-card small{color:var(--muted);font-size:11px;display:block;margin-top:6px}.icon-button{border:0;background:#f7f1f2;border-radius:11px;display:grid;place-items:center;min-width:36px;height:36px;color:#8b6371}
/* calendar */
.calendar-card{padding:20px}.cal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px;gap:12px}.cal-head h3{font-size:18px;margin:0}.cal-controls{display:flex;gap:6px}.cal-controls .icon-button{min-width:37px}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;text-align:center}.calendar .weekday{font-size:12px;color:#a49aa4;padding:5px 0 12px;font-weight:700}.day{min-width:0;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#faf8f8;border:1px solid transparent;border-radius:15px;color:var(--ink);font-weight:750;position:relative;gap:2px}.day.placeholder{visibility:hidden}.day.period{background:#f7c9d5;color:#7e3952}.day.predicted{background:#fce8ed;color:#a2536b}.day.fertile{background:#ddf2ef;color:#287c70}.day.today{border:2px solid #b85e7d}.day.selected{background:#ad5f79!important;color:#fff!important;box-shadow:0 6px 15px #ab5e7952}.day small{font-size:9px;opacity:.8}.legend{display:flex;flex-wrap:wrap;gap:14px;padding-top:20px;margin-top:16px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.legend span{display:flex;align-items:center;gap:6px}.legend i{width:11px;height:11px;border-radius:4px;display:inline-block;background:#f7c9d5}.legend .l-pred{background:#fce8ed}.legend .l-fert{background:#ddf2ef}.legend .l-today{background:white;border:2px solid #b85e7d}.calendar-side{display:grid;grid-template-columns:1.5fr 1fr;align-items:start;gap:16px}.day-detail h3{margin-bottom:4px}.tag-list{display:flex;gap:7px;flex-wrap:wrap}.tag{padding:7px 11px;border-radius:99px;background:#f5f1f3;color:#635967;font-size:11px;font-weight:650}.tag.active{background:#b9657d;color:#fff}.tag.clickable{border:1px solid transparent;cursor:pointer}.tag.clickable:hover{border-color:#bb7e91}
/* records */
.mood-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:19px}.mood-option{background:#faf8f8;border:1px solid #f1e9eb;border-radius:15px;padding:12px 4px;display:grid;justify-items:center;gap:7px;color:var(--muted);font-size:10px}.mood-option span{font-size:25px}.mood-option.active{background:#fff0f3;border-color:#ba6b82;color:var(--rose-dark)}.pain-options{display:flex;gap:8px;margin-bottom:18px}.pain-options button{flex:1;border:1px solid #eee3e6;border-radius:12px;padding:10px 4px;background:#faf7f8;color:#716771}.pain-options button.active{border-color:#b9657d;background:#fce8ed;color:#a04a63}.date-trigger{padding:12px 14px;border:1px dashed #c99ba9;color:var(--rose-dark);background:#fff8fa;border-radius:15px;display:flex;align-items:center;justify-content:space-between;width:100%}.record-box{background:#faf7f7;padding:14px;border-radius:17px;margin-top:12px}.record-box strong{font-size:12px}.record-box p{font-size:11px;color:var(--muted);margin:5px 0 0}.section-description{color:var(--muted);font-size:12px;margin:0 0 20px}.record-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.record-form-grid label{margin:0}.record-form-grid .date-trigger{font-size:12px;white-space:normal;min-height:46px}.record-controls{display:flex;justify-content:flex-start;gap:9px;margin-top:17px}
/* partner */
.partner-visual{padding:25px;background:linear-gradient(135deg,#f5e2e8,#fff7f5);border-radius:var(--r);position:relative;overflow:hidden}.partner-visual:after{content:'♡';font-family:Georgia,serif;font-size:200px;line-height:1;position:absolute;left:-10px;bottom:-70px;color:#ffffff90;pointer-events:none}.partner-visual h3{font-size:21px;margin-bottom:8px}.partner-visual p{max-width:400px;color:#765c68;position:relative;z-index:1}.person-icon{font-size:33px;background:white;width:60px;height:60px;display:grid;place-items:center;border-radius:19px;margin-bottom:19px}.partner-card .partner-info{position:relative;z-index:1}.partner-card .chip{margin-top:10px}.code-display{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;direction:ltr;text-align:center;letter-spacing:3px;font-weight:850;background:#f7f3f5;padding:13px;border-radius:13px;color:#733d56;font-size:17px;word-break:break-all}.privacy-note{background:#f5f8f6;border-radius:17px;padding:14px;color:#507166;font-size:11px;line-height:2}
/* settings and modal */
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.settings-grid>.panel{margin:0}.setting-row{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:13px}.setting-row label{margin:0}.setting-row input{width:85px;text-align:center}.modal-overlay{position:fixed;inset:0;background:#30202a83;display:flex;align-items:center;justify-content:center;z-index:50;padding:18px}.modal{width:min(100%,435px);max-height:90dvh;overflow:auto;background:#fff;border-radius:27px;padding:21px;box-shadow:0 20px 90px #35243140}.modal h3{margin:0}.modal .day{height:43px;border-radius:12px}.modal .calendar{gap:4px}.modal .calendar .weekday{padding-bottom:7px}.modal-close{width:33px;height:33px}.toast{position:fixed;bottom:calc(27px + var(--safe-bottom));left:50%;transform:translateX(-50%);z-index:99;padding:12px 18px;background:#312a36;color:#fff;border-radius:15px;box-shadow:0 10px 30px #0003;max-width:90vw;text-align:center;font-size:12px;animation:toastin .2s ease}@keyframes toastin{from{opacity:0;transform:translate(-50%,10px)}to{opacity:1;transform:translate(-50%,0)}}.install-page{display:grid;place-items:center;padding:35px 14px}.install-card{width:min(100%,520px);background:#fff;border-radius:30px;padding:32px;box-shadow:var(--shadow)}.install-card .brand-mark{margin-bottom:20px}.install-card>p{color:var(--muted)}.install-card h3{margin:22px 0 15px;border-bottom:1px solid #f0e9e9;padding-bottom:10px}
@media(max-width:970px){.main-area{padding:22px 26px 100px}.app-frame{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding:22px 12px}.dashboard-grid{grid-template-columns:1fr}.calendar-side{grid-template-columns:1fr}.auth-shell{gap:1vw}}
@media(max-width:720px){body{background:#faf7f6}.auth-shell{display:block;padding:0;max-width:450px;margin:auto}.auth-art{display:none}.auth-card{min-height:100dvh;box-shadow:none;border:0;border-radius:0;padding:54px 24px 36px}.auth-card h2{font-size:24px}.app-frame{display:block;max-width:600px}.sidebar{display:none}.main-area{padding:17px 16px calc(105px + var(--safe-bottom))}.mobile-top-brand{display:flex;align-items:center;gap:7px;font-size:18px;font-weight:850}.mobile-top-brand .brand-mark{width:31px;height:31px;border-radius:11px;font-size:19px}.topbar{margin-bottom:18px}.topbar h1{font-size:20px}.topbar p{font-size:11px}.topbar .profile-bubble{width:34px;height:34px;font-size:16px}.bottom-nav{position:fixed;z-index:25;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(5,1fr);height:calc(67px + var(--safe-bottom));padding:5px 8px calc(5px + var(--safe-bottom));background:#ffffffef;backdrop-filter:blur(14px);border-top:1px solid #f0e8ea;box-shadow:0 -4px 20px #33202c08}.bottom-nav .nav-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:transparent;border:0;border-radius:13px;color:#998e98;font-size:10px;font-weight:800;padding:4px;min-width:0}.bottom-nav .nav-btn.active{color:var(--rose-dark);background:#f9ebef}.bottom-nav svg{width:21px;height:21px;stroke-width:1.9}.welcome-hero{padding:20px;grid-template-columns:1fr 75px;min-height:145px;border-radius:23px}.welcome-hero h2{font-size:19px;margin-bottom:7px}.welcome-hero p{font-size:11px}.hero-moon{width:69px;height:69px;border-width:10px;font-size:29px}.section-title{margin:22px 0 13px}.panel{padding:17px;border-radius:21px}.phase-card{padding:17px;gap:17px;min-height:174px}.phase-ring{width:112px;height:112px;flex-basis:112px}.ring-content strong{font-size:32px}.phase-card h3{font-size:17px;margin:7px 0}.phase-card p{font-size:11px}.stats-grid{grid-template-columns:1fr 1fr}.stat-card{min-height:100px;padding:14px}.stat-card strong{font-size:15px}.quick-actions{gap:8px}.action-card{padding:12px;gap:10px;min-height:110px;font-size:11px;border-radius:17px}.action-card .action-icon{width:35px;height:35px}.calendar .day{height:43px;border-radius:12px}.calendar{gap:5px}.calendar-card{padding:13px}.calendar .weekday{font-size:11px}.legend{gap:10px}.settings-grid{grid-template-columns:1fr}.auth-card{padding-top:max(40px,env(safe-area-inset-top))}.toast{bottom:calc(90px + var(--safe-bottom))}}
@media(max-width:365px){.main-area{padding-left:10px;padding-right:10px}.calendar{gap:3px}.day{height:39px!important}.stats-grid{gap:8px}.quick-actions{gap:6px}.action-card{padding:10px}.form-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* 1.2: editorial sections and offline magazine */
.section-art{display:grid;grid-template-columns:132px minmax(0,1fr);gap:20px;align-items:center;padding:14px 18px;margin-bottom:21px;background:linear-gradient(115deg,#fff0ef,#fff9f3);border:1px solid #f3e5e8;border-radius:24px;overflow:hidden;min-height:150px}
.section-art img{width:132px;height:120px;object-fit:cover;border-radius:18px}.section-art h2{font-size:20px;margin:7px 0 2px}.section-art p{font-size:12px;color:#806d77;margin:5px 0 0;line-height:1.9}
.mag-intro .section-art{margin-bottom:18px}.mag-chips{display:flex;gap:8px;overflow-x:auto;padding:2px 0 15px;scrollbar-width:none}.mag-chips button{font:inherit;border:1px solid #eadde1;border-radius:40px;padding:9px 14px;flex-shrink:0;background:white;color:#7f6574;cursor:pointer}.mag-chips button.active{background:#ad637b;color:white;border-color:#ad637b}
.mag-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.mag-card,.mag-mini{font:inherit;text-align:right;cursor:pointer;border:1px solid #efe5e8;background:white;color:var(--ink);padding:0;overflow:hidden;box-shadow:var(--shadow)}.mag-card{border-radius:21px;display:flex;flex-direction:column;min-width:0}.mag-card>img{width:100%;height:178px;object-fit:cover;display:block}.mag-card-body{display:flex;flex-direction:column;gap:8px;padding:15px;flex:1}.mag-card strong{font-size:15px;line-height:1.8}.mag-card small{color:var(--muted);font-size:11px;line-height:1.85}.mag-read{margin-top:auto;font-size:12px;font-weight:800;color:var(--rose-dark)}.mag-highlight{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.mag-mini{border-radius:15px;display:flex;flex-direction:column}.mag-mini img{width:100%;height:100px;object-fit:cover}.mag-mini span{color:var(--rose-dark);font-size:10px;padding:9px 10px 2px}.mag-mini strong{padding:0 10px 12px;font-size:11px;line-height:1.7}
.mag-article{margin-top:16px;background:white;border:1px solid #f1e9eb;border-radius:24px;overflow:hidden}.mag-cover{height:260px;width:100%;object-fit:cover;display:block}.mag-article-body{padding:23px}.mag-article-body>h2{font-size:25px;margin:13px 0}.mag-lead{font-size:14px;color:#786879}.mag-article-body section{margin:25px 0}.mag-article-body section h3{font-size:17px;margin-bottom:13px}.mag-article-body section p{font-size:14px;line-height:2.15}.mag-sources{border-top:1px solid var(--line);padding-top:16px}.mag-sources a{display:block;font-size:12px;line-height:2;margin:7px 0}.mag-sources small{display:block;font-size:11px;color:var(--muted);margin-top:12px}
@media(max-width:720px){.bottom-nav{grid-template-columns:repeat(6,minmax(0,1fr));padding-left:2px;padding-right:2px}.bottom-nav .nav-btn{font-size:9px;gap:2px}.section-art{grid-template-columns:98px 1fr;gap:12px;padding:10px;min-height:122px}.section-art img{width:98px;height:102px;border-radius:15px}.section-art h2{font-size:16px}.section-art p{font-size:11px}.mag-grid{gap:10px}.mag-card>img{height:145px}.mag-card-body{padding:11px}.mag-card strong{font-size:13px}.mag-card small{font-size:10px}.mag-highlight{gap:7px}.mag-mini img{height:83px}.mag-mini strong{font-size:10px}.mag-article-body{padding:16px}.mag-cover{height:205px}.mag-article-body>h2{font-size:21px}}
@media(max-width:360px){.mag-grid{grid-template-columns:1fr}.section-art{grid-template-columns:80px 1fr}.section-art img{width:80px}.bottom-nav .nav-btn{font-size:8px}}

/* 1.3.0 — همدم‌جان: branding, profile avatars, password visibility, CAPTCHA */
.brand-mark{overflow:hidden;padding:0;background:linear-gradient(135deg,#fff4ec,#f3dbe7)}
.brand-mark img{width:100%;height:100%;display:block;object-fit:cover}
.brand-lockup{display:flex;align-items:center;gap:12px;min-width:0}
.brand-lockup>.brand-mark{flex:0 0 58px}
.brand-lockup>span:last-child{display:grid;gap:3px}
.brand-lockup strong{font-size:24px;line-height:1.3;font-weight:900;color:#433047}
.brand-lockup small{font-size:11px;color:var(--muted);font-weight:600}
.side-brand .brand-lockup>.brand-mark{width:43px;height:43px;flex-basis:43px;border-radius:15px}
.side-brand .brand-lockup strong{font-size:21px}
.side-brand .brand-lockup small{font-size:10px}
.auth-art>.brand-lockup{margin-bottom:26px}
.auth-card-brand{margin-bottom:18px;display:flex;justify-content:center}
.auth-card-brand .brand-mark{width:50px;height:50px;flex-basis:50px;margin:0}
.auth-card-brand .brand-lockup strong{font-size:22px}
.auth-card-brand .brand-lockup small{font-size:10px}
.art-orbit{overflow:hidden}
.art-orbit img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.mobile-top-brand .brand-mark{width:31px;height:31px;flex:0 0 31px;border-radius:11px;font-size:0}
.profile-open{border:0;padding:0;background:transparent;display:grid;place-items:center;border-radius:50%;flex:0 0 auto}
.profile-open:focus-visible{outline:3px solid #cb8ca4;outline-offset:3px}
.profile-bubble{padding:0;overflow:hidden;border:2px solid #fff;box-shadow:0 0 0 1px #ead9e0}
.profile-bubble img,.profile-preview-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.password-field{position:relative;width:100%}
.password-field input{padding-left:52px}
.password-toggle{position:absolute;left:7px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:10px;background:transparent;color:#786879}
.password-toggle:hover{background:#f8eef2;color:var(--rose-dark)}
.password-toggle svg,.captcha-refresh svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.captcha-panel{border:1px solid #eee1e6;background:#fffafb;border-radius:17px;padding:13px;margin:3px 0 16px}
.captcha-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.captcha-head strong{font-size:12px;color:#655267}
.captcha-refresh{display:inline-flex;align-items:center;gap:5px;border:1px solid #ead9e0;background:#fff;border-radius:10px;padding:6px 9px;font-size:11px;color:var(--rose-dark)}
.captcha-image-wrap{display:flex;align-items:center;justify-content:center;min-height:72px;margin:0 0 12px;border-radius:12px;overflow:hidden;background:#f7f1f4}
.captcha-image-wrap img{display:block;width:220px;max-width:100%;height:72px;object-fit:contain}
.captcha-placeholder{font-size:11px;color:var(--muted);padding:12px;text-align:center}
.captcha-panel label{margin-bottom:0}
.captcha-panel input[name="captchaAnswer"]{direction:ltr;text-align:center;letter-spacing:4px;font-weight:850;text-transform:uppercase}
.profile-panel{grid-column:1/-1}
.profile-edit-head{display:flex;align-items:center;gap:16px;margin-bottom:18px}
.profile-preview-avatar{display:block;width:100px;height:100px;flex:0 0 100px;overflow:hidden;border-radius:50%;background:#f6e8ee;border:4px solid #fff;box-shadow:0 0 0 1px #ead6df,0 9px 25px #744b5c12}
.profile-edit-copy{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}
.profile-edit-copy strong{font-size:14px}
.profile-edit-copy small{font-size:11px;line-height:1.8;color:var(--muted)}
.profile-edit-copy .file-import{margin:0}
.avatar-section-title{display:flex;justify-content:space-between;align-items:center;margin:20px 0 12px}
.avatar-section-title strong{font-size:13px}.avatar-section-title small{font-size:11px;color:var(--muted)}
.avatar-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:11px;margin-bottom:18px}
.avatar-option{width:100%;aspect-ratio:1;border:2px solid transparent;border-radius:50%;overflow:hidden;padding:0;background:#fff;box-shadow:0 0 0 1px #eee3e8;transition:transform .15s,border-color .15s}
.avatar-option img{width:100%;height:100%;display:block;object-fit:cover}
.avatar-option.active{border-color:#b65e7c;box-shadow:0 0 0 3px #f3d9e3;transform:scale(1.04)}
.avatar-option:focus-visible{outline:3px solid #cb8ca4;outline-offset:3px}
.profile-note{margin:12px 0 0}
@media(max-width:720px){
 .auth-card-brand .brand-lockup{justify-content:center}
 .auth-card-brand .brand-lockup strong{font-size:22px}
 .auth-card-brand{margin-bottom:23px}
 .auth-card .auth-card-brand+.auth-card-brand{display:none}
 .auth-card .brand-mark{margin-bottom:0}
 .brand-lockup>.brand-mark{flex-basis:48px;width:48px;height:48px;border-radius:17px}
 .side-brand .brand-lockup>.brand-mark{flex-basis:43px;width:43px;height:43px}
 .profile-bubble{width:36px;height:36px}
 .profile-edit-head{align-items:center;gap:13px}
 .profile-preview-avatar{width:82px;height:82px;flex-basis:82px}
 .avatar-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
 .profile-panel{grid-column:auto}
 .captcha-panel{padding:11px}
}
@media(max-width:365px){.avatar-grid{gap:8px}.profile-preview-avatar{width:72px;height:72px;flex-basis:72px}.profile-edit-copy small{font-size:10px}}

/* Hamdamjan 1.4.0: safe icon dimensions, shared mood and fertility guidance */
.privacy-note svg{width:18px!important;height:18px!important;max-width:18px;max-height:18px;display:inline-block;vertical-align:middle;stroke:currentColor;fill:none;stroke-width:1.8}
.signup-honeypot{position:absolute!important;left:-9999px!important;top:-9999px!important;opacity:0!important;pointer-events:none!important}
.care-message{border:1px solid #eac8d8;background:linear-gradient(110deg,#fff4f8,#f8f5ff);border-radius:18px;padding:16px 18px;margin:12px 0 17px;color:#6b425c;font-size:13px;line-height:2;box-shadow:0 3px 13px #6544550a}
.care-message.compact{margin:14px 0 0;background:#fff8fb;font-size:12px}
.fertility-message{background:#f0f9f5;color:#3b685b;border:1px solid #d9eae1;padding:13px 14px;border-radius:13px;line-height:2;font-size:12px;margin:13px 0}
@media(max-width:720px){.care-message{font-size:12px;padding:13px 14px}.fertility-message{font-size:11px}}

/* Hamdamjan 1.5 — warm, airy and original couple experience */
.hd-duo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:8px 0 16px}
.hd-duo-card{background:#fff;border:1px solid #f0e7ea;border-radius:24px;padding:19px 15px;display:flex;align-items:center;flex-direction:column;gap:9px;text-align:center;box-shadow:var(--shadow);min-width:0}
.hd-duo-card.hd-self{background:linear-gradient(155deg,#fff8fa,#fff)}.hd-duo-card.hd-other{background:linear-gradient(155deg,#f4f3ff,#fff)}
.hd-duo-title{display:flex;align-items:center;justify-content:center;gap:9px;font-size:13px;min-width:0;max-width:100%}
.hd-duo-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hd-duo-avatar{display:block;width:36px;height:36px;flex:0 0 36px;border-radius:50%;overflow:hidden;background:#f7e7ec}
.hd-duo-avatar img{width:100%;height:100%;object-fit:cover}.hd-avatar-heart{display:grid;place-items:center;background:#e7e9ff;color:#7d77bd;font-size:27px}
.hd-duo-face{font-size:44px;line-height:1.3;margin:3px 0}.hd-duo-card>strong{font-size:12px;min-height:38px;line-height:1.7}
.hd-duo-card .button{margin-top:auto}
.hd-day-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:13px 0}
.hd-score-card{display:flex;flex-direction:column;align-items:center;gap:4px;border-radius:17px;background:#f9f7fa;padding:12px 6px;text-align:center;min-width:0}
.hd-score-card span{font-size:23px}.hd-score-card strong{font-size:11px}.hd-score-card b{font-size:15px;color:var(--rose-dark)}
.hd-shared-signs{background:#f7f9f4;border:1px solid #e3e9df;padding:12px 14px;border-radius:15px;font-size:12px;line-height:2;margin-bottom:15px}
.hd-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:9px 0 10px}
.hd-feature{display:flex;flex-direction:column;gap:9px;align-items:center;justify-content:center;border:1px solid #f0e5e9;background:#fff;border-radius:19px;padding:14px 7px;color:#554352;box-shadow:var(--shadow)}
.hd-feature span{font-size:26px}.hd-feature strong{font-size:12px}
.hd-log-panel{padding:22px}.hd-mood-caption{font-weight:800;color:#7a6471;margin:20px 0 12px}
.hd-ratings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:22px 0}
.hd-rating-row{border:1px solid #f0e7ed;background:#fffafb;border-radius:17px;padding:13px 11px;min-width:0}
.hd-rating-title{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-bottom:12px}
.hd-rating-title span{font-size:21px}.hd-rating-title strong{font-size:12px}.hd-rating-title small{margin-right:auto;color:var(--rose-dark);font-size:12px;font-weight:900}
.hd-rating-options{display:flex;gap:4px;direction:ltr;justify-content:center}
.hd-rating-options button{border:1px solid #e6d9e1;background:#fff;color:#77636f;border-radius:9px;min-width:0;flex:1;padding:6px 0;font-size:11px}
.hd-rating-options button.active{background:#b9657d;border-color:#b9657d;color:white;font-weight:900}
.hd-filter-bar{display:flex;align-items:center;gap:8px;overflow-x:auto;scrollbar-width:none;padding:4px 0 12px;margin:6px 0 10px}
.hd-filter{flex:0 0 auto;background:#fff;color:#816d79;border:1px solid #eadce3;border-radius:30px;padding:9px 14px;font-size:12px}
.hd-filter.active{background:#b9657d;border-color:#b9657d;color:#fff;font-weight:800}
.hd-sign-group{margin:20px 0 24px}.hd-sign-group h3{font-size:15px;margin:0 0 13px;padding-bottom:10px;border-bottom:1px solid #f0e9eb}
.hd-sign-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.hd-sign{border:1px solid #eee7e8;background:#fff;border-radius:19px;padding:14px 6px;display:flex;align-items:center;flex-direction:column;gap:9px;min-width:0;min-height:103px;justify-content:center;color:#443941}
.hd-sign>span{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#faf6f7;font-size:28px}
.hd-sign strong{font-size:11px;line-height:1.8;text-align:center;font-weight:700;overflow-wrap:anywhere}
.hd-sign.active{border-color:#c17b95;background:#fff1f6;box-shadow:0 0 0 2px #f6dbe6 inset}
.hd-sign.active>span{background:#f5dfe9}
.hd-care-alert{background:#fff2ee;border:1px solid #f3cfc3;color:#884a3b;padding:13px 15px;border-radius:15px;font-size:12px;line-height:2;margin:15px 0}
.hd-board{margin:25px 0}.hd-items{display:grid;gap:10px;margin:8px 0 20px}
.hd-item{display:flex;align-items:flex-start;gap:13px;background:white;border:1px solid #f0e7e9;border-radius:18px;padding:15px;box-shadow:var(--shadow)}
.hd-item-icon{font-size:25px;width:43px;height:43px;flex:0 0 43px;display:grid;place-items:center;background:#faf2f6;border-radius:14px}
.hd-item-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.hd-item-body small{font-size:10px;color:var(--rose-dark)}.hd-item-body strong{font-size:14px;overflow-wrap:anywhere}
.hd-item-body p{font-size:12px;color:#81737e;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.hd-item.done .hd-item-body strong{text-decoration:line-through;color:#8d8390}
.hd-item-buttons{display:flex;gap:5px;flex:0 0 auto}.hd-item-buttons button{border:1px solid #eadde4;background:#fff;border-radius:10px;color:#987586;font-size:17px;width:30px;height:30px}
.hd-couple-form{background:linear-gradient(140deg,#fff,#fff8fb)}.hd-couple-form label{margin-bottom:13px}.hd-couple-form select{width:100%;padding:12px;border:1px solid #eee0e7;border-radius:12px;background:#fff;color:var(--ink)}
@media(max-width:860px){.hd-sign-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.hd-ratings{grid-template-columns:1fr}.hd-rating-row{display:grid;grid-template-columns:1fr 1.5fr;align-items:center;gap:12px}.hd-rating-title{margin-bottom:0}}
@media(max-width:600px){.hd-duo-grid{gap:9px}.hd-duo-card{padding:13px 8px;border-radius:20px}.hd-duo-face{font-size:38px}.hd-duo-title{gap:6px}.hd-duo-title strong{font-size:11px}.hd-duo-card .button{font-size:10px;padding:8px 10px}.hd-score-card{padding:10px 3px}.hd-feature-grid{gap:7px}.hd-feature{padding:13px 3px;border-radius:16px}.hd-feature span{font-size:23px}.hd-feature strong{font-size:10px}.hd-log-panel{padding:14px}.hd-sign-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.hd-sign{min-height:97px;padding:11px 5px;border-radius:15px}.hd-sign>span{width:46px;height:46px;font-size:25px}.hd-sign strong{font-size:10px}.hd-rating-row{grid-template-columns:1fr;gap:7px}.hd-rating-title{margin-bottom:3px}.hd-rating-options button{padding:7px 0}.hd-item{padding:12px;gap:8px}.hd-item-icon{width:37px;height:37px;flex-basis:37px}}
@media(max-width:360px){.hd-sign-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hd-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.day.hd-recorded:not(.period) small{color:#b9657d;font-size:17px;line-height:8px;font-weight:900}

/* SALAMATEHAM_AGE_GATE_V1 */
.age-gate-page{min-height:100dvh;display:grid;place-items:center;background:linear-gradient(135deg,#f9eaf1,#f2f7f3);padding:20px}
.age-gate-brand{position:absolute;top:28px;right:30px}
.age-gate-overlay{background:#30202a33;z-index:110}
.age-gate-modal{text-align:center;max-width:460px;padding:30px 26px}
.age-gate-modal h2{font-size:23px;margin:10px 0}
.age-gate-modal p{line-height:2;color:#655a66}
.age-gate-modal form{text-align:right;margin:20px 0 12px}
.age-gate-modal form label{display:block;margin-bottom:8px;font-weight:700}
.age-gate-modal form select{width:100%;margin-bottom:20px;min-height:48px}
.age-gate-icon{width:58px;height:58px;display:grid;place-items:center;margin:0 auto;background:#f8e5ee;color:#b45f7c;font-size:34px;border-radius:50%}
@media(max-width:600px){.age-gate-brand{top:18px;right:18px}.age-gate-modal{padding:26px 20px}}
