@font-face{font-family:Harir;src:url(/assets/Harir-Regular-BQfHM74S.otf) format("opentype");font-weight:400}@font-face{font-family:Harir;src:url(/assets/Harir-Bold-ByN4SHZh.otf) format("opentype");font-weight:700}:root{--base: #F5F0EB;--dark: #2B2426;--primary: #C8868C;--teal: #5B8A8A;--amber: #D4A574;--sage: #8BA888;--slate: #8A8DA0;--text-secondary: #8A7D76;--text-muted: #B8AEA6;--white: #FFFFFF;--error: #D44848;--border: #E8DDD5;--border-light: #EBE6E0}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%}html{direction:rtl}body{font-family:Harir,ui-sans-serif,system-ui,sans-serif;background:radial-gradient(circle at top right,rgba(200,134,140,.08),transparent 24rem),linear-gradient(180deg,#faf7f4 0%,var(--base) 38%,#f1ebe5 100%);color:var(--dark)}button,input,textarea{font:inherit}button{cursor:pointer;border:none;background:none}a{color:inherit;text-decoration:none}.auth-page{min-height:100vh;display:grid;place-items:center;padding:40px 24px;position:relative}.auth-card{width:min(100%,420px)}.auth-hero{background:var(--primary);color:#fff8f5;padding:24px 32px 36px;border-radius:4px 4px 40px}.auth-hero h1{margin:0 0 8px;font-size:32px;line-height:1.3}.auth-hero p{margin:0;color:#fff8f5bf;line-height:1.7}.auth-back{display:inline-flex;align-items:center;gap:8px;color:#fff8f5bf;margin-bottom:18px}.auth-form{padding:40px 32px 0}.field{display:grid;gap:10px}.field__label{font-size:12px;letter-spacing:1px;color:var(--text-secondary);font-weight:700}.field__input,.composer__input{width:100%;border:none;border-bottom:2px solid var(--border);background:var(--white);border-radius:4px 4px 0 0;padding:16px 18px;color:var(--dark)}.field__input{font-size:18px}.auth-button{width:100%;margin-top:44px;display:inline-flex;align-items:center;justify-content:center;gap:10px}.auth-button--single{gap:0}.auth-help{margin-top:28px;text-align:center;color:var(--primary);font-weight:700}.auth-help--button{display:block;width:100%;padding:0}.not-found-card__actions{padding-top:32px}.auth-side-word{position:absolute;left:28px;bottom:72px;writing-mode:vertical-rl;text-orientation:upright;letter-spacing:4px;color:#d4ccc4;font-size:11px;font-weight:700}.doc-page{min-height:100vh;padding:28px 24px 72px}.doc-shell{width:min(100%,980px);margin-inline:auto}.doc-nav{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.doc-brand{color:var(--dark);font-size:24px;font-weight:700}.doc-nav__links{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.doc-nav__link{background:#ffffffb8;border:1px solid var(--border);border-radius:999px;padding:10px 14px;color:var(--text-secondary);font-weight:700}.doc-nav__cta{min-height:42px}.doc-hero{background:var(--dark);color:var(--base);padding:32px 34px;border-radius:4px 4px 4px 34px;margin-bottom:18px}.doc-hero__eyebrow{color:var(--teal);font-size:12px;font-weight:700;margin-bottom:8px;letter-spacing:1px}.doc-hero h1{margin:0 0 10px;font-size:34px;line-height:1.35}.doc-hero p{margin:0;color:#f5f0ebbd;line-height:1.9}.doc-meta{display:flex;gap:10px 18px;flex-wrap:wrap;margin-top:18px;color:#f5f0eb8f;font-size:13px}.doc-card{background:var(--white);border-radius:4px;padding:28px 28px 8px}.doc-highlight{background:#5b8a8a14;border-inline-start:3px solid var(--teal);border-radius:4px;padding:18px 18px 18px 22px;margin-bottom:24px}.doc-highlight strong{display:block;margin-bottom:8px}.doc-highlight p{margin:0;color:var(--text-secondary);line-height:1.95}.doc-section{padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid var(--border-light)}.doc-section:last-of-type{border-bottom:none;padding-bottom:0;margin-bottom:0}.doc-section h2{margin:0 0 12px;font-size:22px}.doc-section p,.doc-section li{color:var(--text-secondary);line-height:1.95}.doc-section p{margin:0}.doc-section ul,.doc-section ol{margin:0;padding-inline-start:22px}.doc-section li+li{margin-top:8px}.doc-link{color:var(--teal);font-weight:700;text-decoration:underline;text-decoration-color:#5b8a8a4d;text-underline-offset:3px}.doc-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.otp-hidden{position:absolute;opacity:0;pointer-events:none}.otp-boxes{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;width:100%;margin-bottom:40px}.otp-box{min-height:60px;display:grid;place-items:center;background:var(--white);border-bottom:2px solid var(--border);border-radius:4px 4px 0 0;font-size:24px;font-weight:700}.otp-box--filled{border-bottom-color:var(--teal);color:var(--teal)}.otp-box--active{border-bottom-color:var(--primary)}.page-shell{min-height:100dvh;padding:24px}.app-frame{width:min(100%,1320px);min-height:calc(100dvh - 48px);margin-inline:auto;display:grid;grid-template-areas:"nav body";grid-template-columns:236px minmax(0,1fr);gap:24px;align-items:start}.app-frame__body{grid-area:body;min-width:0;min-height:0;padding:0 0 32px}.app-header{display:none}.header-card{background:var(--dark);color:var(--base);padding:24px 28px;border-radius:4px 4px 4px 24px;margin-bottom:20px}.header-card--hero{border-bottom-left-radius:32px;position:relative;overflow:hidden}.header-card--hero:after{content:"";position:absolute;top:0;right:0;width:120px;height:120px;background:#c8868c14;border-bottom-left-radius:88px}.header-card h2,.header-card__titles h2{margin:0;font-size:24px}.header-card p,.header-card__titles p{margin:4px 0 0;font-size:13px;color:#f5f0eb8a}.header-label{margin-bottom:4px;color:#f5f0eb8a;font-size:13px;font-weight:700}.header-card__top{display:flex;align-items:flex-start;justify-content:space-between;flex-direction:row-reverse;gap:16px}.header-card__titles{flex:1;position:relative;z-index:1}.quote-strip{position:relative;z-index:1;margin-top:22px;border-top:1px solid rgba(245,240,235,.1);padding-top:14px}.quote-strip__label{color:var(--teal);font-size:12px;font-weight:700;margin-bottom:8px}.quote-strip__text{line-height:1.9}.icon-button{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;position:relative;flex-shrink:0}.icon-button--ghost{background:#ffffff14;color:var(--base)}.icon-button--light{background:#ffffff24;color:var(--base)}.icon-button--danger{background:#d448481a;color:var(--error)}.icon-button__dot{position:absolute;top:10px;right:10px;width:8px;height:8px;border-radius:999px;background:var(--primary);border:1px solid var(--base)}.section-caption{color:var(--text-secondary);font-size:14px;font-weight:700;margin-bottom:8px}.daughter-tabs,.subject-grid,.stack-list,.chip-row{display:grid;gap:10px}.daughter-tabs{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));margin-bottom:16px}.daughter-tab{background:#ffffffa3;border:1px solid transparent;border-radius:4px;padding:14px 16px;text-align:center;color:var(--text-secondary);position:relative;overflow:hidden}.stage-badge{position:absolute;top:6px;inset-inline-start:6px;font-size:10px;font-weight:700;padding:2px 8px;border-radius:999px;letter-spacing:.5px;background:#b7838c;color:#fff;pointer-events:none}.stage-badge--ابتدائي{background:#8ba888}.stage-badge--متوسط{background:#5b8a8a}.single-daughter-card{position:relative;overflow:hidden}.daughter-tab strong,.daughter-tab span{display:block}.daughter-tab strong{margin-bottom:4px}.daughter-tab span{font-size:12px}.daughter-tab--active{background:#b7838c;color:var(--base)}.single-daughter-card,.info-banner,.info-card,.today-quote-card,.note-card,.simple-card,.subject-card,.subject-row-card,.query-card,.teacher-card,.quote-card,.history-card,.student-row-card{background:var(--white);border-radius:4px}.single-daughter-card{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;margin-bottom:16px}.single-daughter-card h3,.single-daughter-card p{margin:0}.single-daughter-card p{color:var(--text-secondary);margin-top:4px}.single-daughter-card__initial{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#c8868c29;color:var(--primary);font-weight:700}.subject-grid__row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.subject-card{position:relative;display:flex;flex-direction:column;gap:10px;border-inline-start:3px solid var(--card-accent);padding:18px;text-align:right;min-height:140px}.subject-card--wide{grid-column:span 1}.subject-card__icon,.subject-row-card__icon,.category-card__icon{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;font-size:22px;font-weight:700}.subject-card__icon svg,.subject-row-card__icon svg,.subject-pill svg{width:22px;height:22px;display:block}.subject-card__body h4,.subject-row-card__body strong,.query-card h3,.teacher-card h3,.history-card h3{margin:0;font-size:18px}.subject-card__body p,.subject-row-card__body span,.teacher-card p{margin:4px 0 0;color:var(--text-secondary)}.subject-card__badge{position:absolute;top:16px;left:16px;background:#2b24260f;color:var(--text-secondary);border-radius:999px;padding:6px 10px;font-size:12px}.category-list,.composer{display:grid;gap:12px}.category-card{position:relative;border-inline-start:3px solid var(--category-color);border-radius:4px;padding:18px;text-align:right}.category-card__content{display:flex;align-items:center;justify-content:space-between;flex-direction:row-reverse;gap:12px}.category-card__title{font-weight:700;margin-bottom:4px}.category-card__hint{color:var(--text-secondary);font-size:13px;line-height:1.8}.category-card__icon{background:var(--category-color);color:#fff}.tabbar{grid-area:nav;position:sticky;top:24px;border:1px solid rgba(43,36,38,.06);background:#ffffffc7;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:0 18px 50px #2b242614;border-radius:28px;display:grid;grid-auto-flow:row;gap:6px;padding:14px}.tabbar__item{min-height:60px;display:flex;flex-direction:row-reverse;align-items:center;justify-content:flex-end;gap:12px;padding:0 14px;font-size:14px;font-weight:700;color:var(--text-muted);position:relative;border-radius:18px;transition:background-color .18s ease,color .18s ease}.tabbar__item--active{color:var(--dark);background:#2b24260f}.tabbar__line{width:3px;height:22px;background:transparent;border-radius:999px;flex-shrink:0}.tabbar__item--active .tabbar__line{background:var(--primary)}.tabbar__icon-wrap{position:relative;display:inline-grid;place-items:center;width:26px;flex-shrink:0}.tabbar__dot{position:absolute;top:-2px;right:-4px;width:8px;height:8px;border-radius:999px;background:var(--primary);border:1px solid var(--white)}.tabbar__item>:last-child{flex:1;text-align:right}.overlay,.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#2b242675;display:grid;place-items:center;z-index:40;padding:24px}.dialog,.sheet{width:min(100%,420px);background:var(--white);border-radius:24px;border:1px solid rgba(43,36,38,.06);box-shadow:0 30px 80px #2b242638}.dialog{border-radius:18px;overflow:hidden}.dialog__body{padding:22px 22px 16px}.dialog__title{margin:0 0 10px}.dialog__message{margin:0;line-height:1.9;color:var(--text-secondary)}.dialog__actions{display:grid;gap:10px;padding:0 22px 22px}.dialog__actions--row{grid-template-columns:repeat(2,minmax(0,1fr))}.sheet-backdrop{align-items:end}.sheet{border-bottom-left-radius:0;border-bottom-right-radius:0;max-height:min(82vh,760px);overflow:auto;animation:slideUp .2s ease-out}.sheet__handle{width:54px;height:5px;border-radius:999px;background:#ddd4cd;margin:10px auto 14px}.sheet__header{padding:0 24px 12px;text-align:right}.sheet__title{margin:0 0 6px;font-size:28px}.sheet__subtitle{margin:0;color:var(--text-secondary);line-height:1.8}.sheet__content{padding:0 16px 24px}.button{min-height:46px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 16px;font-weight:700}.button--primary{background:var(--primary);color:var(--white)}.button--dark{background:var(--dark);color:var(--base)}.button--light{background:#2b24260f;color:var(--dark)}.button--ghost{background:var(--white);color:var(--text-secondary);border:1px solid var(--border)}.button--danger{background:#d448481a;color:var(--error)}.info-banner{position:relative;padding:18px 20px 18px 24px;margin-bottom:16px}.info-banner__stripe{position:absolute;inset-block:0;inset-inline-start:0;width:3px;background:var(--teal)}.info-banner p,.today-quote-card p,.note-card,.response-panel__text{margin:0;line-height:1.9;color:var(--text-secondary)}.stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:24px}.mini-card{background:var(--white);border-radius:4px;min-height:110px;display:grid;place-items:center;gap:8px;text-align:center}.mini-card span{font-size:24px}.info-card{padding:0 20px;margin-bottom:24px}.info-row{display:flex;align-items:center;justify-content:space-between;flex-direction:row-reverse;padding:16px 0}.info-row label{color:var(--text-secondary)}.info-divider{height:1px;background:var(--border)}.logout-card{width:100%;background:var(--white);border-radius:4px;border-bottom:2px solid var(--error);min-height:58px;color:var(--error);font-weight:700}.empty-block{background:#ffffffa3;border:1px dashed rgba(43,36,38,.12);color:var(--text-secondary);min-height:120px;border-radius:16px;display:grid;place-items:center;margin-bottom:16px}.empty-block--sheet{min-height:80px;margin:0}.empty-block--error{border-style:solid;border-color:#d448482e;background:#fff8f8eb;color:var(--error);min-height:72px;padding:16px 18px;place-items:center}.back-link{color:#f5f0ebb8;display:inline-flex;align-items:center;gap:8px;margin-bottom:14px}.student-row-card,.subject-row-card,.query-card,.quote-card,.history-card,.teacher-card{border-inline-start:3px solid var(--card-accent);padding:16px 18px;text-align:right}.student-row-card,.subject-row-card{display:flex;align-items:center;justify-content:space-between;flex-direction:row-reverse}.muted-action{color:var(--text-secondary)}.chip-row{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:16px}.choice-chip{min-height:44px;border-radius:999px;border:1px solid var(--choice-color);color:var(--choice-color);display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 12px}.choice-chip--selected{color:var(--white)}.stack-list--sheet{gap:8px}.action-card{width:100%;background:#f7f3ef;border-radius:4px;padding:16px 18px;text-align:right;font-weight:700}.query-card__top,.teacher-card__meta,.quote-card__meta,.today-quote-card__top,.history-card__top,.history-card__footer,.query-card__footer,.quote-card__actions{display:flex;align-items:center;justify-content:space-between;flex-direction:row-reverse;gap:10px}.pill,.pill-button,.tiny-badge,.subject-pill,.role-chip{border-radius:999px;padding:6px 10px;font-size:12px;font-weight:700;display:inline-flex;align-items:center;gap:6px}.pill--rose,.tiny-badge--rose{background:#c8868c1f;color:var(--primary)}.pill--teal{background:#5b8a8a1f;color:var(--teal)}.role-chip{margin-top:10px;width:fit-content;background:#5b8a8a33;color:var(--teal);border-radius:2px}.subject-pill{border-radius:4px;flex-direction:row-reverse}.response-panel{border-radius:4px;padding:10px 12px;margin-bottom:10px}.response-panel__label{font-size:11px;color:var(--text-secondary);margin-bottom:6px;text-align:right;font-weight:700}.response-panel__text{color:var(--dark);text-align:right;line-height:1.7;font-size:14px;font-weight:700}.response-panel__text--pending{color:var(--text-secondary)}.teacher-card__body{margin-top:10px}.today-quote-card{padding:18px 20px;margin-bottom:16px}.quote-card__actions{margin-top:14px}.preset-section{display:grid;gap:8px}.simple-card{padding:16px 18px}.simple-card--accent{position:relative;overflow:hidden}.simple-card--accent:before{content:"";position:absolute;inset-block:0;inset-inline-start:0;width:3px;background:var(--sage)}.status-text--active{color:var(--sage)}.status-text--muted{color:var(--text-muted)}.pill-button{background:var(--badgeOffBg, #f2efeb)}.pill-button--active{background:#ebf5f0;color:var(--sage)}.pill-button--muted{background:#f2efeb;color:var(--text-muted)}.composer__submit{width:100%}.toast{position:fixed;top:18px;left:50%;transform:translate(-50%);min-width:240px;max-width:calc(100vw - 40px);background:var(--white);border:1px solid var(--border);border-radius:16px;box-shadow:0 18px 50px #2b24261f;padding:14px 18px;z-index:60;display:inline-flex;align-items:center;gap:12px}.toast__dot{width:10px;height:10px;border-radius:999px;background:var(--teal)}.toast--warning .toast__dot{background:var(--amber)}.toast--error .toast__dot{background:var(--error)}.history-card{position:relative;overflow:hidden;border-inline-start:none;padding:16px;padding-inline-start:20px}.history-card__indicator{position:absolute;inset-block:0;inset-inline-start:0;width:3px;background:var(--card-accent)}.history-card__top{align-items:flex-start;margin-bottom:10px}.history-card__header-text{flex:1}.history-card__header-text h3{margin:0;font-size:15px}.history-card__header-text p{margin:3px 0 0;color:var(--text-secondary);font-size:14px}.history-card__category-badge{align-self:flex-end;padding:6px 8px;border-radius:4px;font-size:12px;font-weight:700;flex-shrink:0}.history-card__proactive{align-self:flex-end;width:fit-content;background:#f0e9e2;color:var(--amber);padding:6px 8px;border-radius:4px;font-size:12px;font-weight:700;margin-bottom:10px}.history-card__footer{align-items:flex-end;flex-direction:column;gap:2px}.history-card__footer span{font-size:11px;color:var(--text-muted);text-align:right}@keyframes slideUp{0%{transform:translateY(24px);opacity:0}to{transform:translateY(0);opacity:1}}@media(max-width:900px){.page-shell{padding:0}.doc-page{padding:22px 16px 56px}.doc-nav{align-items:flex-start;flex-direction:column}.doc-hero{padding:26px 22px}.doc-hero h1{font-size:28px}.doc-card{padding:22px 18px 8px}.app-frame{width:100%;min-height:100dvh;grid-template-areas:"body";grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:0}.app-frame__body{padding:12px 24px calc(96px + env(safe-area-inset-bottom,0px));overflow:visible}.tabbar{position:fixed;top:auto;left:0;right:0;bottom:0;width:100%;height:auto;z-index:50;border-top:1px solid var(--border-light);border-inline:none;border-bottom:none;border-radius:0;background:var(--white);box-shadow:0 -12px 28px #2b242614;-webkit-backdrop-filter:none;backdrop-filter:none;display:flex;align-items:stretch;justify-content:space-around;gap:0;padding:0 0 env(safe-area-inset-bottom,0px)}.tabbar__item{flex:1 1 0;min-height:78px;flex-direction:column;justify-content:center;gap:6px;padding:0;font-size:10px;border-radius:0;background:transparent}.tabbar__line{width:20px;height:2px}.tabbar__icon-wrap{width:auto}.tabbar__item>:last-child{flex:initial;text-align:center}}@media(max-width:540px){.app-frame__body{padding-inline:18px}}
