@font-face{font-family:Vazirmatn;src:url('assets/fonts/Vazirmatn.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
:root{color-scheme:light;--bg:#fbd3da;--accent:#390a16;--text:#38212a;--muted:#76515e;--surface:#fff4f7;--field:#f9e5eb;--field-border:#a06b7b;--line:#dbaebc;--soft-line:#edc9d3;--radius:16px;--font:Vazirmatn,Tahoma,sans-serif;--shadow:0 8px 28px #390a1606}
*{box-sizing:border-box}html{scroll-padding-bottom:100px;-webkit-text-size-adjust:100%}body{margin:0;background:var(--bg);color:var(--text);font:400 16px/1.85 var(--font);text-rendering:optimizeLegibility}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{border:0;background:none;color:inherit;cursor:pointer;touch-action:manipulation}button:disabled{cursor:default}button,a{-webkit-user-select:none;user-select:none}a{color:var(--accent)}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px}button,input,select,textarea{transition:background-color .14s,border-color .14s,box-shadow .14s,transform .14s}button:active:not(:disabled){transform:translateY(1px)}h1,h2,h3,p{margin:0}h1{font-size:28px;font-weight:750;line-height:1.6;letter-spacing:-.65px}h2{font-size:20px;font-weight:700;line-height:1.7}h3{font-size:17px;font-weight:650;line-height:1.8}p{color:var(--muted);line-height:1.9}small{font-size:12px}.icon{width:21px;height:21px;display:inline-block;vertical-align:middle;flex-shrink:0;pointer-events:none}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Shared, measurable controls. */
.primary{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:56px;padding:14px 22px;border:1px solid var(--accent);border-radius:13px;background:var(--accent);color:#fff6f8;font-size:16px;font-weight:600;line-height:1.6;box-shadow:0 3px 8px #390a1608}.primary:hover{background:#4b1423}.primary:disabled{background:#e9c2cc;border-color:#e9c2cc;color:#80515f;box-shadow:none}.primary .icon{width:20px;height:20px}.textbtn{min-height:44px;padding:10px 4px;color:var(--accent);font-size:13px;display:inline-flex;align-items:center;gap:8px}.textbtn .icon{width:17px;height:17px}.pill{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;background:#f2d8e0;border:1px solid #ddb6c2;border-radius:8px;padding:4px 10px;color:#66414e;font-size:12px;font-weight:500}.pill.pending{background:#f8e8d7;border-color:#d5b99a;color:#785430}label{display:block;font-size:14px;font-weight:500;line-height:1.8;margin:20px 0 8px}input:not([type=checkbox]):not([type=radio]),textarea,select{display:block;width:100%;min-width:0;border:1px solid var(--field-border);border-radius:11px;background:var(--field);color:var(--text);caret-color:var(--accent);font-size:16px;line-height:1.8;padding:13px 15px;outline:0;box-shadow:0 1px 2px #390a1603}input:not([type=checkbox]):not([type=radio]),select{min-height:55px}input:not([type=checkbox]):not([type=radio]):focus,textarea:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 3px #390a1618}input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus{-webkit-box-shadow:0 0 0 1000px var(--field) inset;-webkit-text-fill-color:var(--text);caret-color:var(--accent)}input[type=checkbox]{width:22px;height:22px;flex-shrink:0;margin:3px 0;accent-color:var(--accent)}textarea{resize:vertical;min-height:144px}select{padding-inline-end:30px}option{background:var(--field);color:var(--text)}.fieldhint{font-size:12px;line-height:1.8;margin-top:7px}.error{font-size:13px;color:#932543;line-height:1.9;margin-top:12px;white-space:pre-wrap}.error:empty{margin:0}.empty{padding:35px 15px;text-align:center;font-size:14px}.card{padding:24px;border:1px solid var(--line);background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow)}.pagehead{margin-bottom:26px}.pagehead h1{font-size:26px}.pagehead p{font-size:14px;margin-top:8px}.eyebrow{font-size:12px;color:var(--muted);margin-bottom:6px}
/* App shell: one narrow reading column, no desktop dashboard in the patient flow. */
.patient-screen main{max-width:480px;margin:auto}.patient-screen header{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:80px;padding:16px 24px 8px;padding-top:max(16px,env(safe-area-inset-top));margin:0}.simplebrand{display:inline-flex;align-items:center;gap:11px;text-decoration:none;font-size:20px;font-weight:750;letter-spacing:-.6px;color:var(--accent);line-height:1.6}.brand-mark{width:38px;height:38px;display:block;flex-shrink:0}.account-shortcut{min-height:44px;display:inline-flex;align-items:center;gap:7px;padding:8px 4px;font-size:13px;font-weight:500;color:var(--accent)}.account-shortcut .icon{width:19px;height:19px}.patient-screen #content{padding:28px 24px 118px;min-height:calc(100dvh - 80px)}.mobile{display:none}.patient-screen .mobile{display:flex;position:fixed;inset:auto 0 0;max-width:480px;margin:auto;background:#fbd3daf5;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-top:1px solid #d6a6b7;z-index:20;padding:8px 18px max(12px,env(safe-area-inset-bottom));gap:12px}.patient-screen .mobile button{flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-width:0;min-height:55px;margin:0;padding:3px 0;color:var(--muted);font-size:12px}.mobile button>span{height:30px;width:46px;display:grid;place-items:center;border-radius:9px;transition:background .15s}.mobile .icon{width:22px;height:22px}.mobile small{font-size:11px;font-weight:500;line-height:1.6}.mobile button.active{color:var(--accent)}.mobile button.active>span{background:#ebbdca}.mobile button.active small{font-weight:750}.auth-screen .mobile,.survey-screen .mobile,.mobile:empty{display:none}.auth-screen #content{padding-top:26px;padding-bottom:40px}.survey-screen #content{padding-top:4px;padding-bottom:max(24px,env(safe-area-inset-bottom));min-height:calc(100dvh - 80px)}
/* Entry and account. */
.auth-wrap{padding-top:6px}.auth-heading{margin-bottom:28px}.auth-heading h1{font-size:29px}.auth-heading p{font-size:15px;margin-top:9px}.demo-banner{padding:14px 16px;background:var(--field);border:1px solid var(--soft-line);border-radius:12px;font-size:12px;line-height:2;margin:24px 0}.auth-wrap .primary{width:100%;margin-top:24px}.password-field{position:relative}.password-field input{padding-left:58px!important}.password-field button{position:absolute;left:3px;top:3px;bottom:3px;min-width:48px;min-height:48px;display:grid;place-items:center;border-radius:9px;color:var(--muted)}.password-field .icon{width:20px;height:20px}.simple-consent{display:flex;align-items:flex-start;gap:12px;font-size:13px;font-weight:400;line-height:1.9;margin:24px 0 4px}.auth-switch{text-align:center;font-size:14px;color:var(--muted);margin-top:24px}.auth-switch button{min-height:44px;padding:8px;color:var(--accent);font-weight:650}.preview-entry{border-top:1px solid var(--line);padding-top:12px;margin-top:24px;text-align:center}.preview-entry button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;font-size:12px;color:var(--muted)}.preview-entry .icon{width:17px;height:17px}.simple-account{padding-top:8px}.simple-account>p{font-size:14px;margin-top:8px}.account-list{margin-top:28px;border-top:1px solid var(--line)}.account-list button{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:65px;width:100%;text-align:right;padding:17px 0;border-bottom:1px solid var(--line);font-size:15px}.account-list button .icon{width:19px;height:19px}.account-list #soundswitch span:last-child{border-radius:7px;padding:3px 11px;background:#edc5d1;font-size:12px;color:var(--accent)}.account-list #soundswitch[aria-pressed=false] span:last-child{background:#f5dce4;color:var(--muted)}
/* Home: a single task, no decorative reporting panels. */
.patient-home{padding-top:16px}.home-welcome>p:first-child{font-size:13px;font-weight:500;color:var(--muted);margin-bottom:9px}.home-welcome h1{font-size:29px;font-weight:750;line-height:1.6}.home-welcome>p:last-child{font-size:15px;line-height:1.9;margin-top:10px}.daily-task{position:relative;padding:25px 24px 24px;margin-top:32px;border:1px solid #dcb1bf;border-radius:19px;background:var(--surface);box-shadow:var(--shadow)}.task-symbol{display:grid;place-items:center;width:48px;height:48px;border:1px solid #e8c4d0;background:#f8e3eb;border-radius:13px;color:var(--accent);margin-bottom:22px}.task-symbol .icon{width:26px;height:26px;stroke-width:1.6}.daily-task h2{font-size:21px;font-weight:700;margin-bottom:8px}.daily-task p{font-size:14px;line-height:1.9}.daily-task .primary{width:100%;justify-content:space-between;margin-top:25px;min-height:57px}.demo-caption{text-align:center;font-size:12px;margin-top:22px;color:var(--muted)}
/* A focused question, two clear answer targets and one continuation. */
.survey-top{display:flex;justify-content:space-between;align-items:center;min-height:52px;margin-bottom:12px;font-size:13px;font-weight:500;color:var(--muted)}.backbtn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 0 8px 12px;font-size:13px;color:var(--accent)}.backbtn .icon{width:18px;height:18px}.question-count{font-variant-numeric:tabular-nums;padding:5px 10px;border:1px solid #ddaebe;border-radius:8px;background:#f7dfe7;font-size:12px}.simple-survey progress{display:block;width:100%;height:5px;border:0;border-radius:4px;overflow:hidden;background:#e9bdca;accent-color:var(--accent)}.simple-survey progress::-webkit-progress-bar{background:#e9bdca}.simple-survey progress::-webkit-progress-value{background:var(--accent);border-radius:4px}.simple-survey progress::-moz-progress-bar{background:var(--accent);border-radius:4px}.question-stage{display:flex;flex-direction:column;min-height:calc(100dvh - 185px);padding-top:28px}.question-period{font-size:13px;margin-bottom:18px;font-weight:450}.question-stage h1{font-size:24px;font-weight:700;line-height:1.95;letter-spacing:-.4px;margin:0 0 30px;outline:none}.simple-choices{display:grid;gap:12px;margin-bottom:28px}.choice{width:100%;min-height:68px;display:flex;justify-content:space-between;align-items:center;padding:17px 20px;text-align:right;border:1px solid #a06b7b;border-radius:13px;background:var(--field);font-size:18px;font-weight:500;color:var(--text)}.choice:hover{background:#f5dce6}.choice.selected{background:#edc7d4;border:2px solid var(--accent);padding:16px 19px;box-shadow:0 0 0 1px #390a1608}.choice-dot{width:22px;height:22px;border:1.5px solid #976071;border-radius:50%;flex-shrink:0}.selected .choice-dot{border:6px solid var(--accent);background:#fff4f7}.question-stage>.primary{width:100%;justify-content:space-between;margin-top:auto;min-height:57px}.question-stage:has(textarea) h1{margin-bottom:8px}.question-stage:has(textarea)>p:not(.question-period):not(.error){font-size:14px}.question-stage textarea{margin:20px 0 24px;min-height:160px;line-height:1.9}.question-stage .submission-note{text-align:center;font-size:12px!important;margin-top:15px}.question-stage .error{margin-top:12px}.question-stage .error:empty{margin-top:0}.simple-success{text-align:center;padding-top:60px}.success-check{width:72px;height:72px;border:1px solid #dcb1bf;border-radius:22px;background:var(--surface);color:var(--accent);display:grid;place-items:center;margin:0 auto 28px;box-shadow:var(--shadow)}.success-check .icon{width:31px;height:31px;stroke-width:1.8}.simple-success h1{font-size:27px}.simple-success p{font-size:15px;margin:12px 0 34px}.simple-success .primary{width:100%}
/* History, reminders and direct messages. */
.patient-screen .card{padding:24px;background:var(--surface)}.patient-screen .card h2{font-size:21px;margin-bottom:14px}.patient-screen .card p{font-size:14px;margin:8px 0}.patient-screen .card .primary{width:100%}details{font-size:14px;border-bottom:1px solid var(--line);padding:14px 0}details:last-child{border-bottom:0}summary{cursor:pointer;min-height:44px;line-height:1.9;padding:8px 0;color:var(--text);font-size:14px}details p{font-size:14px;line-height:2;margin:10px 0}details[open]>summary{margin-bottom:8px}.response-detail{border:1px solid #dcb1bf;background:var(--surface);padding:13px 18px;border-radius:13px;margin-bottom:14px}.response-detail summary{font-size:14px}.response-detail summary .pill{margin-inline-start:6px}.response-detail p{font-size:14px;line-height:2.1;padding-block:7px;border-top:1px solid var(--soft-line)}.response-detail p b{color:var(--accent)}.response-detail .free-note{white-space:pre-wrap;background:var(--field);padding:14px;border-radius:9px;border:0}.inbox-preview{display:block;width:100%;text-align:right;background:var(--field);border:1px solid #b68595;border-radius:13px;padding:17px 20px;margin-top:26px}.inbox-preview span{color:var(--accent);font-size:12px;font-weight:600}.inbox-preview b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;font-weight:450;line-height:2;margin:7px 0}.inbox-preview small{font-size:12px;color:var(--muted)}.patient-message{border:1px solid #b68595;background:var(--field);padding:19px 20px;border-radius:14px;margin-bottom:16px}.patient-message p{white-space:pre-wrap;line-height:2;font-size:15px;color:var(--text)}.patient-message .message-date{font-size:12px;color:var(--muted);margin-bottom:10px;font-variant-numeric:tabular-nums}
/* Administration uses the same controls, with room for longer lists. */
.admin-screen main{max-width:1100px;margin:auto}.admin-screen header{display:flex;align-items:center;justify-content:space-between;min-height:88px;margin:0 32px;padding:18px 0;border-bottom:1px solid #d6a6b7}.admin-screen #content{padding:32px 32px 60px;min-height:calc(100dvh - 88px)}.admin-screen .auth-wrap{max-width:420px;margin:30px auto}.admin-screen .auth-wrap .primary{width:100%}.admin-label{font-size:12px;font-weight:450;border-right:1px solid #c99aaa;padding-right:12px;margin-right:3px;letter-spacing:0;color:var(--muted)}.admin-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.admin-heading h1{font-size:28px}.tabs{display:flex;gap:6px;border-bottom:1px solid #d6a6b7;padding:0 0 14px;margin-bottom:24px;overflow-x:auto;overscroll-behavior-inline:contain}.tabs button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:11px 16px;border-radius:10px;font-size:14px;font-weight:500;white-space:nowrap}.tabs button.active{background:#f5dce5;color:var(--accent);box-shadow:inset 0 0 0 1px #cda0b0}.tabs .icon{width:18px;height:18px}.admin-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:24px;margin-top:24px;align-items:start}.admin-columns>div{min-width:0}.admin-editor{padding:25px;border:1px solid #dcb1bf;border-radius:16px;background:var(--surface);box-shadow:var(--shadow)}.admin-columns h2{font-size:20px;margin-bottom:18px}.admin-screen .primary{font-size:14px;min-height:50px;margin-top:15px}.admin-hint{font-size:13px;line-height:1.9;margin:15px 0}.patient-item{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-height:85px;border-bottom:1px solid #dcb1bf;padding:17px 16px;text-align:right;border-radius:11px}.patient-item:hover{background:#f7dfe6}.patient-item.selected{background:#f5dce5;box-shadow:inset -3px 0 var(--accent)}.patient-item b{font-size:15px;font-weight:650;line-height:1.8;overflow-wrap:anywhere}.patient-item small{display:block;font-size:12px;color:var(--muted);margin-top:6px;line-height:1.8}.patient-item>.icon{width:18px;height:18px}.formpair{display:grid;grid-template-columns:1fr 1fr;gap:14px}.formpair label{min-width:0}.adminrow{display:flex;align-items:flex-start;gap:9px;margin:12px 0}.adminrow textarea{flex:1;min-width:0;min-height:110px;font-size:15px}.adminrow button{min-width:44px;min-height:44px;display:grid;place-items:center;border-radius:9px;color:var(--accent);margin-top:4px}.adminrow button:hover{background:#f1d2dd}.adminrow .icon{width:20px;height:20px}.set-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px}.set-toolbar p{font-size:14px}.set-toolbar .primary{margin-top:0}.fixed-free{background:#f8e3ea;border:1px solid var(--soft-line);border-radius:11px;padding:17px;margin:22px 0;font-size:14px}.fixed-free p{font-size:14px;margin-top:6px}.fixed-free small{font-size:12px;color:var(--muted)}.response-list{margin-top:24px}.historyrow{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:19px 0;border-bottom:1px solid var(--line)}.historyrow b{font-size:14px}.message-compose{border-top:1px solid var(--line);margin-top:27px;padding-top:24px}.message-compose h3{font-size:19px;margin-bottom:10px}.message-compose textarea{min-height:140px}.send-result{font-size:13px;line-height:1.9;color:var(--accent);margin-top:15px;white-space:pre-wrap}.message-history-item{border-top:1px solid var(--line);padding:16px 0}.message-history-item p{white-space:pre-wrap;font-size:14px;line-height:1.9;color:var(--text)}.message-history-item small{font-size:12px;color:var(--muted);line-height:1.9;display:block;margin-top:8px}#changepass .primary{width:100%}#toast{display:none;position:fixed;bottom:max(30px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:100;max-width:calc(100% - 40px);width:max-content;padding:14px 20px;border-radius:12px;background:var(--accent);color:#fff6f8;font-size:14px;line-height:1.8;box-shadow:0 6px 25px #390a161c}.patient-screen #toast{bottom:100px}
@keyframes enter{from{opacity:.25;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}.question-stage,.simple-success{animation:enter .16s ease-out}
@media(min-width:801px){.patient-screen header{padding-top:24px;min-height:96px}.patient-screen #content{padding-top:34px;min-height:calc(100dvh - 96px)}.patient-home{padding-top:16px}.auth-wrap{padding-top:10px}.survey-screen #content{padding-top:8px}.question-stage{min-height:calc(100dvh - 215px)}}
@media(max-width:700px){.admin-screen header{min-height:76px;margin:0 20px;padding:16px 0}.admin-screen #content{padding:25px 20px 50px}.admin-screen .auth-wrap{margin:10px auto}.admin-label{display:none}.admin-heading{gap:10px;margin-bottom:22px}.admin-heading h1{font-size:25px}.admin-columns{grid-template-columns:1fr;gap:24px}.admin-editor{padding:21px}.tabs{gap:3px}.tabs button{font-size:12px;gap:6px;padding:10px 9px}.tabs .icon{width:17px;height:17px}.set-toolbar{align-items:flex-start;flex-direction:column;gap:16px}.admin-screen .primary{font-size:15px;min-height:52px}}
@media(max-width:360px){.patient-screen header{padding-inline:20px}.patient-screen #content{padding-inline:20px}.simplebrand{font-size:19px}.brand-mark{width:35px;height:35px}.account-shortcut{font-size:12px}.home-welcome h1{font-size:27px}.daily-task{padding:22px 20px}.question-stage{padding-top:22px}.question-stage h1{font-size:22px;line-height:1.9;margin-bottom:24px}.choice{min-height:63px;padding:15px 18px}.choice.selected{padding:14px 17px}.admin-screen #content{padding-inline:16px}.formpair{gap:10px}.tabs button{font-size:11px;padding-inline:8px}}
@media(max-height:650px){.question-stage{min-height:calc(100dvh - 177px);padding-top:18px}.question-period{margin-bottom:10px}.question-stage h1{font-size:22px;margin-bottom:20px}.simple-choices{gap:10px;margin-bottom:20px}.choice{min-height:60px;padding-block:13px}.choice.selected{padding-block:12px}.simple-success{padding-top:30px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:700px){.admin-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:visible}.admin-tabs button{width:100%;font-size:13px;min-height:46px;padding:10px 9px}}

.defaults-intro{margin-block:24px;max-width:720px}.defaults-intro p{line-height:1.9}.default-series{border:1px solid var(--line,#d9b3bd);border-radius:18px;padding:18px;margin-block:14px;background:#f9e5eb}.default-series summary{font-weight:700;cursor:pointer;min-height:36px}.default-series label{margin-top:16px}.default-series .adminrow button{font-size:26px}.default-series textarea{min-height:88px}
