/* LERNO v36 — خوانایی، کارنامهٔ آماده، حالت شب کامل و واکنش‌گرایی */
.page-title{position:relative;margin-top:58px!important}
.page-title>.page-back{top:-54px!important;right:0!important;z-index:2}
.page-title>small,.home-dashboard-head>div>small{display:none!important}
.page-title h1{margin-top:0!important}
.site-credit{opacity:.62!important;font-size:8px!important;padding-block:8px 14px!important}
.schedule-editor{display:none!important}

/* بازگشت واضح و بیرون از متن */
.page-back,.support-back,.back-focus{width:46px!important;height:46px!important;border-radius:15px!important}
.page-back svg,.support-back svg,.back-focus svg{width:25px!important;height:25px!important}
.timer-screen .back-focus{top:22px!important;right:22px!important}

/* بازگشت قرمز و متفاوت */
.page-back,.support-back,.back-focus{border:2px solid #ef476f!important;background:#fff1f4!important;color:#d9234e!important;box-shadow:0 8px 20px rgba(216,35,78,.14)!important}.page-back:hover,.page-back:focus-visible,.support-back:hover,.support-back:focus-visible,.back-focus:hover,.back-focus:focus-visible{border-color:#d9234e!important;background:#ffe0e7!important;color:#b5143b!important;outline:4px solid rgba(239,71,111,.18)!important}.dark .page-back,.dark .support-back,.dark .back-focus{border-color:#ff7896!important;background:#3b1c2a!important;color:#ffadc0!important}.dark .page-back:hover,.dark .support-back:hover,.dark .back-focus:hover{background:#552136!important;color:#ffd6df!important}

/* کارنامهٔ توصیفی: همهٔ درس‌ها از قبل آماده‌اند */
.report-card.is-descriptive .report-form,.report-card.is-descriptive .report-table-head{display:none!important}
.report-card.is-descriptive .report-table{margin-top:22px}
.report-subject-row{display:grid;grid-template-columns:minmax(130px,.72fr) minmax(420px,1.8fr) 44px;align-items:center;gap:16px;min-height:82px;padding:13px 16px;border-top:1px solid var(--line)}
.report-subject-row:first-child{border-top:0}.report-subject-name{display:flex;align-items:center;gap:10px;color:var(--ink);font-size:16px;font-weight:850}.report-subject-name i{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:var(--v35-soft);color:var(--v35-accent);font-style:normal;font-size:18px}
.report-levels{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.report-levels button{min-height:44px;padding:7px 9px;border:1px solid var(--line);border-radius:11px;background:var(--paper);color:var(--muted);font:750 12px/1.65 Vazirmatn,Tahoma,sans-serif;cursor:pointer}.report-levels button:hover,.report-levels button:focus-visible{border-color:var(--v35-accent);color:var(--v35-accent);outline:3px solid color-mix(in srgb,var(--v35-accent) 13%,transparent)}.report-levels button.selected{border-color:var(--v35-accent);background:var(--v35-accent);color:#fff;box-shadow:0 7px 16px color-mix(in srgb,var(--v35-accent) 28%,transparent)}
.report-subject-row.is-removed{display:none}.report-restore{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 24px 22px;padding:12px 15px;border:1px dashed var(--line);border-radius:13px;color:var(--muted);font-size:13px}.report-restore button{border:0;background:none;color:var(--v35-accent);font-weight:850;cursor:pointer}

/* دکمه حذف درس: ضربدرِ ترسیم‌شده و واضح در هر دو حالت روشن و شب */
.report-delete{position:relative;display:grid;place-items:center;width:46px!important;height:46px!important;padding:0!important;border:2px solid #ef476f!important;border-radius:14px!important;background:#fff1f4!important;color:transparent!important;font-size:0!important;box-shadow:0 4px 12px rgba(216,50,82,.13);cursor:pointer;transition:transform .16s ease,background .16s ease,box-shadow .16s ease}
.report-delete::before,.report-delete::after{content:"";position:absolute;left:50%;top:50%;width:19px;height:3px;border-radius:999px;background:#d9234e;transform-origin:center}
.report-delete::before{transform:translate(-50%,-50%) rotate(45deg)}
.report-delete::after{transform:translate(-50%,-50%) rotate(-45deg)}
.report-delete:hover{background:#ffe1e8!important;box-shadow:0 6px 16px rgba(216,50,82,.2);transform:translateY(-1px)}
.report-delete:active{transform:scale(.95)}
.report-delete:focus-visible{outline:3px solid rgba(239,71,111,.28);outline-offset:3px}
.dark .report-delete{border-color:#ff7694!important;background:#3a1d2a!important;box-shadow:0 4px 14px rgba(0,0,0,.26)}
.dark .report-delete::before,.dark .report-delete::after{background:#ff9caf}
.dark .report-delete:hover{background:#512235!important}

/* ثبت و ویرایش کارنامه */
.report-actions-v38{display:flex;justify-content:center;padding:4px 24px 24px}.report-actions-v38 button{min-width:min(320px,100%);min-height:54px;padding:12px 24px;border-radius:15px;font:900 15px/1.7 Vazirmatn,Tahoma,sans-serif;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease}.report-save-v38{border:0;background:var(--v35-accent);color:#fff;box-shadow:0 10px 22px color-mix(in srgb,var(--v35-accent) 25%,transparent)}.report-edit-v38{border:1px solid var(--v35-accent);background:var(--paper);color:var(--v35-accent)}.report-actions-v38 button:hover{transform:translateY(-1px)}.report-level-result{display:flex;align-items:center;justify-content:center;min-height:46px;padding:8px 14px;border-radius:12px;background:#edf7f3;color:#147a59;font-size:14px;font-weight:900}.report-level-result.needs{background:#fff0e7;color:#b95b19}.report-level-result.acceptable{background:#fff8d9;color:#886b00}.report-level-result.good{background:#edf4ff;color:#2365bd}.report-level-result.empty{background:var(--paper);color:var(--muted)}.report-card.report-locked .report-subject-row{grid-template-columns:minmax(150px,.8fr) minmax(220px,1.2fr)}.report-card.report-locked:not(.is-descriptive) .report-form,.report-card.report-locked:not(.is-descriptive) .report-delete{display:none!important}.dark .report-level-result{background:#173b34;color:#82e1be}.dark .report-level-result.needs{background:#482737;color:#ffb3c1}.dark .report-level-result.acceptable{background:#473d1d;color:#ffe188}.dark .report-level-result.good{background:#203a66;color:#a9c8ff}.dark .report-level-result.empty{background:#0d192b;color:#aab9cc}.dark .report-edit-v38{background:#0d192b;color:#9ec6ff}

/* ساعت اختصاصی لرنو */
.todo-time{display:flex!important;align-items:center!important;gap:8px!important}.todo-time>span{display:none!important}.lerno-time-button{min-width:112px;min-height:48px;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 13px;border:1px solid var(--line);border-radius:13px;background:var(--paper);color:var(--ink);font-weight:800;cursor:pointer}.lerno-time-button svg{width:20px;height:20px;fill:none;stroke:var(--v35-accent);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.lerno-time-button.empty span{color:var(--muted);font-weight:650}
.todo-time[hidden],.home-quick-note[hidden],#progress-page[hidden],[data-page="progress-page"][hidden]{display:none!important}
.time-dialog{display:grid;gap:17px}.time-preview{display:grid;place-items:center;min-height:72px;border-radius:16px;background:var(--v35-soft);color:var(--v35-accent);font-size:30px;font-weight:900;direction:ltr}.time-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px}.time-column{display:grid;gap:7px}.time-column>span{color:var(--muted);font-size:13px;text-align:center}.time-scroll{height:190px;overflow:auto;padding:5px;border:1px solid var(--line);border-radius:14px;background:var(--paper);scrollbar-width:thin}.time-scroll button{width:100%;min-height:42px;border:0;border-radius:9px;background:transparent;color:var(--ink);font-weight:800;cursor:pointer}.time-scroll button.selected{background:var(--v35-accent);color:#fff}.time-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.time-actions button{min-height:46px;border-radius:12px;font-weight:850;cursor:pointer}.time-clear{border:1px solid var(--line);background:var(--paper);color:var(--muted)}.time-apply{border:0;background:var(--v35-accent);color:#fff}
.home-quick-note{grid-template-columns:auto minmax(170px,1fr) auto auto!important}.home-note-time{min-width:50px!important;width:50px!important;padding:0!important}.home-note-time span{display:none}.home-note-time.empty{min-width:50px!important}

/* ماشین حساب تایپی */
.calc-type-input{width:100%;min-height:105px;margin:0 0 18px;padding:18px 22px;border:1px solid var(--line);border-radius:18px;background:var(--paper);color:var(--ink);font:800 clamp(25px,4vw,38px)/1.4 Vazirmatn,Tahoma,sans-serif;text-align:left;direction:ltr;outline:none}.calc-type-input::placeholder{color:var(--muted);font-size:16px;font-weight:600;opacity:.78}.calc-type-input:focus{border-color:var(--v35-accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--v35-accent) 15%,transparent)}.calculator>output{display:none!important}.numeric-only{direction:ltr}
.focus-subject{display:grid;gap:8px;margin:0 auto 20px;text-align:right}.focus-subject span{color:var(--ink);font-size:14px;font-weight:850}.focus-subject select{width:100%;min-height:52px;padding:0 14px;border:1px solid var(--line);border-radius:13px;background:var(--paper);color:var(--ink);font-size:15px}.focus-subject select:focus{border-color:var(--v35-accent);outline:3px solid color-mix(in srgb,var(--v35-accent) 14%,transparent)}

/* دکمه تنظیمات در پروفایل و پنجرهٔ جدا */
.profile-settings-launch{width:min(980px,100%);margin:22px auto 0;display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:14px;padding:16px 18px;border:1px solid var(--line);border-radius:18px;background:var(--white);color:var(--ink);box-shadow:var(--sh);text-align:right;cursor:pointer}.profile-settings-launch i{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:var(--v35-soft);color:var(--v35-accent);font-style:normal;font-size:23px}.profile-settings-launch span{display:grid;gap:3px}.profile-settings-launch b{font-size:16px}.profile-settings-launch small{color:var(--muted);font-size:13px}.profile-settings-launch strong{color:var(--v35-accent);font-size:28px}.settings-dialog-v38 .modal-box{width:min(720px,100%)}.profile-settings-v36{display:grid;gap:14px}.profile-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.profile-setting{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:74px;padding:14px 15px;border:1px solid var(--line);border-radius:14px;background:var(--paper)}.profile-setting span{display:grid;gap:4px}.profile-setting b{font-size:14px}.profile-setting small{color:var(--muted);font-size:12px}.profile-setting select{min-height:44px;padding:0 10px;border:1px solid var(--line);border-radius:10px;background:var(--white);font-size:13px}.profile-setting input{width:22px;height:22px;accent-color:var(--v35-accent)}.profile-settings-save{width:100%;min-height:50px;margin-top:2px;border:0;border-radius:13px;background:var(--v35-accent);color:#fff;font-weight:850;cursor:pointer}.dark .profile-settings-launch{border-color:#29425f;background:#111f34;color:#eef5ff}
.profile-setting.disabled{opacity:.48}.profile-setting select:disabled{cursor:not-allowed}.settings-danger-v39{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:5px;padding:15px;border:1px solid #f3bdc8;border-radius:14px;background:#fff7f9}.settings-danger-v39>div{display:grid;gap:3px}.settings-danger-v39 b{color:#ba2446;font-size:14px}.settings-danger-v39 small{color:#8e6070;font-size:12px}.settings-danger-v39 button,.danger{min-height:44px;padding:9px 14px;border:1px solid #df365b;border-radius:11px;background:#d9234e;color:#fff;font-weight:850;cursor:pointer}.clear-data-v39{display:grid;gap:18px}.clear-data-v39 p{margin:0!important;font-size:15px!important;line-height:2!important}.clear-data-v39>div{display:grid;grid-template-columns:1fr 1fr;gap:10px}.clear-data-v39 button{min-height:46px;border-radius:12px;font-weight:850;cursor:pointer}.clear-data-v39 .plain{border:1px solid var(--line);background:var(--paper);color:var(--ink)}.dark .settings-danger-v39{border-color:#683247;background:#311c28}.dark .settings-danger-v39 b{color:#ff9cb2}.dark .settings-danger-v39 small{color:#c59aa6}

/* پشتیبانی یکپارچه و جمع‌وجور */
.support-chat-card form{display:block!important;padding:14px 16px 16px!important}.support-composer{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:stretch!important;gap:0!important;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:var(--paper)}.support-chat-card .support-composer textarea{min-height:56px!important;max-height:110px!important;margin:0!important;padding:16px!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--ink)!important;resize:none!important;font-size:14px!important;line-height:1.8!important;outline:none!important}.support-chat-card .support-composer .blue{align-self:stretch!important;min-width:104px!important;min-height:56px!important;margin:0!important;border-radius:0!important;box-shadow:none!important}.support-composer:focus-within{border-color:var(--v35-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--v35-accent) 14%,transparent)}.support-connection-note{display:none!important}.dark .support-composer{border-color:#304863;background:#0b1728}

/* مدیریت درس ثبت‌شده در برنامه هفتگی */
.school-table .lesson.has-lesson{font-weight:900}.schedule-edit-form-v39{display:grid;gap:16px}.schedule-edit-form-v39 label{font-size:13px!important}.schedule-edit-form-v39 [data-yes]{margin-top:8px!important;min-height:50px}.schedule-manage-v39{display:grid;gap:18px}.schedule-manage-v39>div:first-child{display:grid;gap:5px;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--paper)}.schedule-manage-v39 small{color:var(--muted);font-size:12px}.schedule-manage-v39 b{font-size:19px}.schedule-manage-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.schedule-manage-actions button{min-height:48px;border-radius:12px;font-weight:850;cursor:pointer}.schedule-edit-action{border:1px solid var(--v35-accent);background:var(--v35-soft);color:var(--v35-accent)}.schedule-delete-action{border:1px solid #e34a69;background:#fff0f3;color:#c72449}.dark .schedule-delete-action{border-color:#7b3850;background:#421f2e;color:#ff9fb5}.schedule-delete-confirm-v39{display:grid;gap:18px}.schedule-delete-confirm-v39>div{display:grid;grid-template-columns:1fr 1fr;gap:10px}.schedule-delete-confirm-v39 button{min-height:46px;border-radius:12px;font-weight:850}.schedule-delete-confirm-v39 .plain{border:1px solid var(--line);background:var(--paper);color:var(--ink)}

/* فقط نوشته‌های واردشده توسط کاربر قابل انتخاب و کپی هستند */
body{-webkit-user-select:none;user-select:none}input,textarea,[contenteditable="true"],.task-copy b,.task>b,.todo-row .task-copy b,.calendar-entry-row b,.support-bubble.user,.schedule-item b,.school-table .lesson{-webkit-user-select:text;user-select:text}

/* فاصله‌گذاری تمیز و قابل لمس */
.page-title{margin-bottom:24px!important}.page-title+article,.page-title+section{margin-top:0}.task-form{gap:16px!important}.task-form-without-text{padding-block:22px!important}.task-form-without-text .task-details{gap:14px!important}.task-form-without-text>#taskSubject{min-height:50px}.site-dialog .dialog-body{gap:16px!important}.site-dialog .dialog-body>div{display:grid;gap:16px}.site-dialog .dialog-body [data-yes],.site-dialog .dialog-body input+button.blue{margin-top:10px!important}.weekly-schedule{margin-top:22px}.task-group{margin-top:24px}.profile{margin-bottom:0}

/* تقویم: روز خالی برای ثبت، روز پُر فقط برای مدیریت */
.modal-box.existing-day #entryForm{display:none!important}.modal-box.existing-day #calendarEntryList{margin-top:8px;border-top:0;padding-top:0}.modal-box.empty-day #calendarEntryList{display:none!important}.calendar-entry-row{min-height:64px!important;padding:11px!important}.calendar-entry-row button{min-height:38px!important;padding-inline:12px!important;font-size:12px!important}.calendar-entry-row button:last-child{background:#fff0f3!important;color:#c92f50!important}.calendar-entry-row b{font-size:14px;line-height:1.8}.entry-mode-note{margin:3px 0 15px;color:var(--muted);font-size:13px;line-height:1.9}

/* حالت شب کامل برای همهٔ پایه‌ها */
body.grade-middle:not(.dark),body.grade-high:not(.dark){--ink:#122039;--muted:#65748b;--paper:#f4f7fb;--white:#fff;--line:#dde5f0;--soft:#e9efff;--v35-soft:#e9efff;background:radial-gradient(circle at 78% -12%,#dce5ff 0,transparent 34%),linear-gradient(145deg,#f7f9fd,#eef3fa) fixed!important;color:var(--ink)!important}
body.grade-middle:not(.dark) .sidebar,body.grade-high:not(.dark) .sidebar{background:#101d32!important;border-color:#233754!important}.grade-middle:not(.dark) .sidebar nav button,.grade-high:not(.dark) .sidebar nav button{color:#b4c1d4!important}.grade-middle:not(.dark) .sidebar nav button.active,.grade-high:not(.dark) .sidebar nav button.active{background:#243c68!important;color:#fff!important}.grade-middle:not(.dark) .side-profile,.grade-high:not(.dark) .side-profile{background:#172944!important;color:#eef4ff!important}.grade-middle:not(.dark) .topbar,.grade-high:not(.dark) .topbar{background:#fffffff0!important;border-color:#dde5f0!important}.grade-middle:not(.dark) .page-title,.grade-high:not(.dark) .page-title{border-color:#dce4f0!important;background:#fff!important}.grade-middle:not(.dark) .page-title h1,.grade-high:not(.dark) .page-title h1{color:#122039!important}.grade-middle:not(.dark) .home-dashboard-head,.grade-high:not(.dark) .home-dashboard-head{border-color:#dbe4f2!important;background:linear-gradient(120deg,#fff,#edf2ff)!important}.grade-middle:not(.dark) .home-dashboard-head h1,.grade-high:not(.dark) .home-dashboard-head h1{color:#122039!important}.grade-middle:not(.dark) .home-dashboard-card,.grade-high:not(.dark) .home-dashboard-card,.grade-middle:not(.dark) .home-quick-note,.grade-high:not(.dark) .home-quick-note,.grade-middle:not(.dark) .tasks,.grade-high:not(.dark) .tasks,.grade-middle:not(.dark) .calendar,.grade-high:not(.dark) .calendar,.grade-middle:not(.dark) .focus,.grade-high:not(.dark) .focus,.grade-middle:not(.dark) .calculator,.grade-high:not(.dark) .calculator,.grade-middle:not(.dark) .profile,.grade-high:not(.dark) .profile,.grade-middle:not(.dark) .account-card,.grade-high:not(.dark) .account-card,.grade-middle:not(.dark) .report-card,.grade-high:not(.dark) .report-card{border-color:#dce5f0!important;background:#fff!important;box-shadow:0 14px 34px #213b6612!important}.grade-middle:not(.dark) .home-important-row,.grade-high:not(.dark) .home-important-row{border-color:#dce5f0!important;background:#f5f8fc!important}.grade-middle:not(.dark) .home-important-copy b,.grade-high:not(.dark) .home-important-copy b,.grade-middle:not(.dark) .home-dashboard-card h2,.grade-high:not(.dark) .home-dashboard-card h2{color:#122039!important}.grade-middle:not(.dark) .report-head,.grade-high:not(.dark) .report-head{background:#f4f7fb!important}.grade-middle:not(.dark) .report-summary,.grade-high:not(.dark) .report-summary{background:#f5f8fc!important}.grade-middle:not(.dark) .report-summary article,.grade-high:not(.dark) .report-summary article{background:#fff!important}
body.dark.grade-early,body.dark.grade-upper{--ink:#eff5ff;--muted:#a8b7ca;--paper:#0d1929;--white:#132238;--line:#2a405d;--soft:#183451;--v35-soft:#183451;background:radial-gradient(circle at 88% 10%,#24466b 0 8%,transparent 8.5%),linear-gradient(145deg,#08121f,#0b1829 55%,#0d2030) fixed!important;color:var(--ink)!important}
.dark.grade-early .shell,.dark.grade-upper .shell{background:transparent!important}.dark.grade-early .sidebar,.dark.grade-upper .sidebar{background:#0b1728!important;border-color:#253a57!important;box-shadow:10px 0 40px #02071366!important}.dark.grade-early .sidebar nav button,.dark.grade-upper .sidebar nav button{color:#b3c2d7!important}.dark.grade-early .sidebar nav button.active,.dark.grade-upper .sidebar nav button.active{background:linear-gradient(135deg,#1d5f9f,#285bc1)!important;color:#fff!important}.dark.grade-early .side-profile,.dark.grade-upper .side-profile{background:#11223a!important}
.dark.grade-early .topbar,.dark.grade-upper .topbar{border-color:#263b58!important;background:#0b1729ed!important}.dark.grade-early .top-tool-dock,.dark.grade-upper .top-tool-dock,.dark.grade-early .date-line,.dark.grade-upper .date-line{border-color:#2b4261!important;background:#10213a!important}.dark.grade-early .actions button,.dark.grade-upper .actions button{border-color:#2b4261!important;background:#12233a!important;color:#edf5ff!important}
.dark.grade-early .page-title,.dark.grade-upper .page-title,.dark.grade-early .home-dashboard-head,.dark.grade-upper .home-dashboard-head{border-color:#29425f!important;background:linear-gradient(125deg,#142740,#101e33)!important;box-shadow:0 18px 44px #02071155!important}.dark.grade-early .page-title h1,.dark.grade-upper .page-title h1,.dark.grade-early .home-dashboard-head h1,.dark.grade-upper .home-dashboard-head h1{color:#f3f7ff!important}.dark.grade-early .page-title p,.dark.grade-upper .page-title p,.dark.grade-early .home-dashboard-head p,.dark.grade-upper .home-dashboard-head p{color:#adbbcf!important}
.dark.grade-early .home-dashboard-card,.dark.grade-upper .home-dashboard-card,.dark.grade-early .home-quick-note,.dark.grade-upper .home-quick-note,.dark.grade-early .tasks,.dark.grade-upper .tasks,.dark.grade-early .calendar,.dark.grade-upper .calendar,.dark.grade-early .focus,.dark.grade-upper .focus,.dark.grade-early .calculator,.dark.grade-upper .calculator,.dark.grade-early .profile,.dark.grade-upper .profile,.dark.grade-early .account-card,.dark.grade-upper .account-card,.dark.grade-early .report-card,.dark.grade-upper .report-card,.dark.grade-early .profile-settings-v36,.dark.grade-upper .profile-settings-v36{border-color:#29425f!important;background:#111f34!important;box-shadow:0 18px 44px #0207114a!important}
.dark.grade-early .home-dashboard-card h2,.dark.grade-upper .home-dashboard-card h2,.dark.grade-early .home-important-copy b,.dark.grade-upper .home-important-copy b{color:#f1f6ff!important}.dark.grade-early .home-important-row,.dark.grade-upper .home-important-row,.dark.grade-early .home-quick-note input,.dark.grade-upper .home-quick-note input{border-color:#2a425f!important;background:#0c192b!important;color:#eef5ff!important}
.dark.grade-early input,.dark.grade-early select,.dark.grade-early textarea,.dark.grade-upper input,.dark.grade-upper select,.dark.grade-upper textarea{border-color:#2d4665!important;background:#0c192a!important;color:#eef5ff!important}.dark.grade-early input::placeholder,.dark.grade-early textarea::placeholder,.dark.grade-upper input::placeholder,.dark.grade-upper textarea::placeholder{color:#8091a8!important}
.dark .days button{border-color:#2a405d!important;background:#101e32!important;color:#eef5ff!important}.dark .days button>b{color:#eef5ff!important}.dark .days button.today{background:#183b63!important;box-shadow:inset 0 0 0 2px #4b9cff!important}.dark .days button.today>b{color:#9dcbff!important}.dark .days button.holiday{background:#261a29!important}.dark .days button.holiday>b{color:#ff9bad!important}.dark .days button.blank-day{background:#0b1626!important}.dark .weekdays{color:#b6c5d9!important}.dark .calendar-top h2{color:#f2f7ff!important}.dark .modal-box,.dark .site-dialog .modal-box,.dark .confirm-v35-card{border-color:#304966!important;background:#132238!important;color:#eef5ff!important}.dark .modal-box h2,.dark .modal-box b{color:#f3f7ff!important}.dark .calendar-entry-row{background:#0d1a2c!important}.dark .calendar-entry-row button:last-child{background:#452132!important;color:#ffacc0!important}
.dark .report-subject-row{border-color:#29405d}.dark .report-levels button{border-color:#304863;background:#0d192b;color:#b4c2d5}.dark .report-levels button.selected{background:#5276e8;color:#fff}.dark .profile-setting{border-color:#2a405d;background:#0d192b}.dark .profile-setting select{border-color:#304863;background:#13233a}.dark .calc-type-input{border-color:#304863;background:#0b1728;color:#f3f7ff}

/* خانه در عرض‌های مختلف */
.home-dashboard-card>header{grid-template-columns:44px minmax(0,1fr) auto!important}.home-dashboard-card>header>div{min-width:0}.home-dashboard-card>header h2,.home-dashboard-card>header small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-dashboard-card>header button{white-space:nowrap}.home-empty-state{padding-inline:14px!important}.home-empty-state span{max-width:100%;line-height:1.9}
@media(max-width:1180px) and (min-width:761px){.home-dashboard-grid,body.grade-upper .home-dashboard-grid,body.grade-middle .home-dashboard-grid,body.grade-high .home-dashboard-grid{grid-template-columns:1fr 1fr!important}.home-important-card{grid-column:1/-1!important;grid-row:auto!important}.home-dashboard-card{min-height:300px!important}}
@media(max-width:760px){.page-title{margin-top:50px!important;margin-bottom:20px!important}.page-title>.page-back{top:-48px!important}.home-dashboard-card>header{grid-template-columns:40px minmax(0,1fr)!important;align-items:center!important}.home-dashboard-card>header button{grid-column:2;justify-self:start!important}.home-dashboard-card>header h2,.home-dashboard-card>header small{white-space:normal}.home-dashboard-card{min-width:0!important;overflow:hidden}.home-quick-note{grid-template-columns:1fr auto!important}.home-quick-note label{grid-column:1/-1}.home-quick-note input{grid-column:1}.home-note-time{grid-column:2}.home-quick-note>.blue{grid-column:1/-1}.report-subject-row{grid-template-columns:1fr 46px;gap:12px;padding:16px 12px}.report-subject-name{grid-column:1}.report-levels{grid-column:1/-1;grid-row:2;grid-template-columns:1fr 1fr}.report-delete{grid-column:2;grid-row:1}.report-card.report-locked .report-subject-row{grid-template-columns:1fr}.report-card.report-locked .report-subject-name,.report-card.report-locked .report-levels{grid-column:1}.report-card.report-locked .report-levels{grid-row:2}.report-actions-v38{padding-inline:14px}.profile-settings-grid{grid-template-columns:1fr}.profile-setting{align-items:flex-start;flex-direction:column}.profile-setting select{width:100%}.profile-settings-launch{grid-template-columns:44px 1fr auto;padding:14px}.profile-settings-launch i{width:44px;height:44px}.site-dialog .dialog-body>div{gap:18px}.weekly-schedule{margin-top:18px}}
@media(max-width:420px){.report-levels{grid-template-columns:1fr}.report-levels button{min-height:42px}.home-dashboard-card{padding:14px!important}.home-card-icon{width:38px!important;height:38px!important}.home-dashboard-card h2{font-size:17px!important}.calendar-entry-row{grid-template-columns:1fr 1fr!important}.calendar-entry-row>span,.calendar-entry-row>b{grid-column:1/-1}.time-columns{gap:8px}.time-scroll{height:165px}.support-composer{grid-template-columns:minmax(0,1fr) auto!important}.support-chat-card .support-composer .blue{width:auto!important;min-width:82px!important;padding-inline:12px!important}.support-chat-card .support-composer textarea{min-width:0!important;padding:13px!important}.settings-danger-v39{align-items:flex-start;flex-direction:column}.settings-danger-v39 button{width:100%}.clear-data-v39>div{grid-template-columns:1fr}.schedule-manage-actions,.schedule-delete-confirm-v39>div{grid-template-columns:1fr}}

.schedule-edit-form-v39 [data-yes]:disabled{opacity:.45;cursor:not-allowed}

/* v42: کنترل انتخاب واضح و یکپارچه */
select{
  -webkit-appearance:none!important;
  appearance:none!important;
  min-height:48px;
  padding-left:58px!important;
  cursor:pointer!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Crect x='1' y='1' width='32' height='32' rx='10' fill='%23217bf2'/%3E%3Cpath d='m11.5 14.5 5.5 5 5.5-5' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-position:left 9px center!important;
  background-size:34px 34px!important;
  background-repeat:no-repeat!important;
}
select:hover{border-color:var(--v35-accent)!important}
select:focus-visible{border-color:var(--v35-accent)!important;outline:3px solid color-mix(in srgb,var(--v35-accent) 18%,transparent)!important;outline-offset:2px}
select:disabled{cursor:not-allowed!important;opacity:.55}

/* v42: دکمه‌های تأیید حذف، دقیقاً هم‌اندازه و هم‌راستا */
.schedule-delete-confirm-v39>div,
.clear-data-v39>div,
.confirm-v35-card>div{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:stretch!important;
  gap:12px!important;
  width:100%!important;
}
.schedule-delete-confirm-v39>div>button,
.clear-data-v39>div>button,
.confirm-v35-card>div>button{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  height:56px!important;
  min-height:56px!important;
  margin:0!important;
  padding:0 14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:15px!important;
  font:850 14px/1.5 Vazirmatn,Tahoma,sans-serif!important;
  white-space:nowrap!important;
}
@media(max-width:420px){
  .schedule-delete-confirm-v39>div,
  .clear-data-v39>div,
  .confirm-v35-card>div{grid-template-columns:1fr!important}
}

/* فیلد ناقص با پیام داخلی لرنو */
.lerno-invalid-v42{
  border-color:#e32653!important;
  box-shadow:0 0 0 4px rgba(227,38,83,.16)!important;
}
.dark .lerno-invalid-v42{
  border-color:#ff7896!important;
  box-shadow:0 0 0 4px rgba(255,120,150,.16)!important;
}
