/* Arabic-first reading rhythm, distinct learning cards, and comfortable touch controls. */
:root{--ink:#173c46;--muted:#506770;--line:#dce7e8;font-family:Tajawal,Tahoma,Arial,sans-serif;font-size:16px}
body{background:radial-gradient(ellipse at 100% 0,#e7f3ee,transparent 50%),#f5f8fa}
button,input,select,textarea{font-family:inherit}
h1,h2,h3,.eyebrow{letter-spacing:0!important}
.member-header{height:84px;background:#fff}
.quiet-link{font-size:14px;font-weight:700;background:#fff}
.workspace{gap:28px;padding-top:32px}
.sidebar{padding:22px 14px;border-radius:24px;box-shadow:0 8px 30px #183f4407}
.identity strong{font-size:16px}.identity small{font-size:13px}.avatar{font-size:23px}
.nav-caption{font-size:12px;margin-bottom:12px}.nav a{font-size:16px;font-weight:500;min-height:52px}
.nav a[aria-current=page]{font-weight:700}
.sidebar-library,.sidebar-foot .text-button{font-size:14px}
.page-heading h1{font-size:clamp(28px,3vw,39px);font-weight:800;line-height:1.5}
.page-heading .eyebrow{font-size:13px}.page-heading p{font-size:15px;line-height:1.8}
.tag{font-size:13px;line-height:1.6}
.hero{border-radius:26px;padding:32px;min-height:246px;background:radial-gradient(ellipse at 10% 15%,#337f7f88,transparent 55%),linear-gradient(115deg,#153f50,#175d52);box-shadow:0 12px 30px #173d4914}
.hero .eyebrow{font-size:14px}.hero h2{font-size:clamp(26px,2.6vw,34px);font-weight:800;line-height:1.5}
.hero p{font-size:15px;line-height:1.9}.hero .btn{font-size:16px}
.hero-art>p{font-size:13px}.hero-art>p strong{font-size:16px}.orb b{font-size:42px}.orb span{font-size:12px}
.stats{gap:16px}.stat{padding:22px;border-radius:20px;background:#f0f8f4;border-color:#d8e9df;box-shadow:none}
.stats>.stat:nth-child(2){background:#fff8e9;border-color:#eee3c9}.stats>.stat:nth-child(3){background:#f0f5ff;border-color:#dde6f4}
.stat-icon{background:#fff;border:1px solid #dcebe4}.stat-icon.amber,.stat-icon.blue{background:#fff}
.stat-label{font-size:15px;font-weight:500;color:#415c64}.stat .value{font-size:34px;font-weight:800;margin-block:8px 5px}.stat small{font-size:13px;color:#506770;line-height:1.7}
.card{padding:26px;border-radius:22px;box-shadow:0 6px 24px #183b4305}.card h2{font-size:21px;font-weight:700}
.card-heading{padding-bottom:14px;border-bottom:1px solid #edf2f1;margin-bottom:18px}.card-heading a{font-size:14px;font-weight:700;min-height:44px}
.btn{font-size:15px;font-weight:700;min-height:48px}.btn.small{font-size:14px;min-height:44px}
.text-button{font-size:14px;min-height:44px}.item-actions .text-button{min-height:44px}
.item{padding-block:20px}.item h3{font-size:18px;line-height:1.7}.item p{font-size:14px;line-height:1.8}.item-kind{font-size:12px;padding:5px 9px;line-height:1.5}
.item small{font-size:13px}.item.done{border-radius:12px;padding-inline:12px;border-inline-start:3px solid #348267}
.empty{background:#f8fbfa;padding:28px 18px}.empty p{font-size:15px}.empty>span{color:#538577}
.footnote{font-size:13px;line-height:1.9}.bar,.bar strong{font-size:12px}.bar{gap:10px}
.field{font-size:15px;font-weight:500}.field input,.field select{font-size:16px;min-height:50px;background:#fff}.field small{font-size:13px}
legend{font-size:16px;font-weight:700;margin-bottom:12px}.choice{font-size:14px;min-height:48px;padding:11px 14px;background:#fbfdfc}
.choices:has(input[name=types]){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.choices:has(input[name=types]) .choice{min-width:0;line-height:1.7}
.choice:has(input:checked){background:#eaf5ef;border-color:#35856e;color:#194e42}
.choice:focus-within{outline:3px solid #bf812c;outline-offset:3px}
.form-actions .footnote{flex:1;min-width:180px}.form-actions{gap:16px}
.task-summary{background:#edf7f2;border-color:#d4e8dd;padding:18px;font-size:16px}.task-summary span{font-size:13px}.task-summary progress{height:11px;margin-top:14px}
.week-day{padding:16px;border:1px solid #e1e9e7;border-radius:16px;margin-top:14px}
.plan-day>summary{font-size:17px}.plan-day>summary>span{font-size:14px}.plan-day .item:last-child{padding-bottom:16px}
.foundation-course>p{font-size:15px;color:var(--muted)}.foundation-course details{font-size:15px}.foundation-section-progress{font-size:14px;line-height:1.7}
.foundation-course summary{font-weight:700;display:flex;align-items:center;gap:8px}.foundation-course summary:before{content:'+';font-size:22px}.foundation-course details[open]>summary:before{content:'−'}
.auth-story h1{font-size:40px;line-height:1.65}.auth-story p{font-size:16px}.auth-point{font-size:15px}.auth-story .eyebrow{font-size:14px}
.auth-card h2{font-size:28px;font-weight:800}.auth-card>p{font-size:15px}.auth-card .field{font-size:15px}.auth-card .text-button,.auth-switch,.auth-error{font-size:14px}.auth-card form>.btn{font-size:16px}.password-toggle{font-size:13px}
.notice{font-size:15px}#member-toast{font-size:15px;line-height:1.8}
@media(max-width:1100px) and (min-width:721px){
 .workspace{grid-template-columns:180px minmax(0,1fr);gap:20px;padding-inline:20px}.sidebar{padding-inline:10px}.nav a{font-size:14px}
 .hero{grid-template-columns:minmax(0,1fr) 135px;padding:25px;gap:16px}.orb{width:125px;height:125px}
 .stats{gap:10px}.stat{padding:17px}.stat-label{font-size:14px}.stat small{font-size:12px}
 .choices:has(input[name=types]){grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
 .member-header{height:74px;padding-inline:16px;gap:12px}.quiet-link{font-size:12px;padding-inline:10px}
 .workspace{padding:24px 16px calc(114px + env(safe-area-inset-bottom))}.sidebar{padding:0;border-radius:0;box-shadow:none}
 .nav{padding:6px;gap:2px;border-radius:20px}.nav a{min-height:62px;padding:6px 1px;gap:6px}.nav a>span{font-size:11px;font-weight:700}.nav a .ui-icon{width:21px;height:21px}
 .page-heading h1{font-size:29px}.page-heading p{font-size:14px}.page-heading .eyebrow{font-size:12px}
 .hero{padding:24px;border-radius:22px;gap:20px;min-height:0}.hero h2{font-size:27px}.hero .eyebrow{font-size:13px}.hero p{font-size:14px}.hero .btn{font-size:15px;width:100%}
 .hero-art{padding-top:18px}.orb{width:86px;height:86px}.orb b{font-size:30px}.orb span{font-size:10px}.hero-art>p{font-size:13px}.hero-art>p strong{font-size:16px}
 .stats{gap:8px}.stat{padding:14px 10px;border-radius:16px}.stat-label{font-size:13px;line-height:1.7;display:block}.stat .value{font-size:29px}.stat small{font-size:11px;line-height:1.7}.stat-icon{width:32px;height:32px}
 .card{padding:20px;border-radius:20px}.card h2{font-size:20px}.card-heading{gap:6px;padding-bottom:10px}.card-heading a{font-size:13px}
 .item-copy{flex-basis:100%;min-width:0}.item h3{font-size:17px}.item p{font-size:14px}.item-actions{gap:8px}.item-actions .btn{flex:1;padding-inline:10px}
 .field{font-size:14px}.field input,.field select{font-size:16px}.footnote{font-size:13px}.text-button{font-size:14px}
 .choices:has(input[name=types]){grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.choice{font-size:14px;padding:10px;min-height:48px}.choice input{margin:0}
 .form-actions .footnote{flex-basis:100%}.task-summary{padding:15px;font-size:15px}.task-summary span{font-size:12px}
 .week-day{padding:12px}.plan-day>summary{font-size:15px;gap:8px}.plan-day>summary>span{font-size:12px}
 .auth-layout{padding-top:28px}.auth-card{padding:26px 22px}.auth-card h2{font-size:27px}.auth-card>p{font-size:14px}.auth-card .field{font-size:14px}
 #member-toast{bottom:calc(100px + env(safe-area-inset-bottom));font-size:14px}.notice{font-size:14px}
}
@media(max-width:350px){
 .workspace{padding-inline:12px}.member-header{padding-inline:12px;gap:8px}.quiet-link{font-size:11px;padding-inline:8px}.member-logo{width:128px}
 .nav{inset-inline:6px;padding:5px;gap:0}.nav a>span{font-size:10px}.hero,.card{padding:18px}.hero h2{font-size:25px}
 .stat{padding:12px 8px}.stat-label{font-size:12px}.stat .value{font-size:27px}.stat small{font-size:11px}.choice{font-size:13px;padding:9px 7px}
}
