/* مُستخرَج من dashboard-parent.html (كتلة <style> رقم 1) — منقولٌ حرفيّاً، وموضعُ وسمِه في الصفحة هو موضعُ الكتلة نفسُه (ترتيبُ التتالي كما كان). */
/* Sprint 3 Phase 10 — child learning analytics card */
.analytics-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:14px}
.analytics-loading{color:#6b7280;font-size:13px;text-align:center;padding:10px}
.analytics-empty{color:#6b7280;font-size:13px;text-align:center;padding:8px}
.analytics-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}
.analytics-stat{background:#f9fafb;border-radius:10px;padding:10px;text-align:center}
.analytics-stat-value{font-weight:700;font-size:18px;color:#0f172a;line-height:1.2}
.analytics-stat-label{font-size:11px;color:#6b7280;margin-top:4px}
.analytics-stat .up{color:#16a34a}
.analytics-stat .down{color:#dc2626}
.analytics-chart{display:flex;align-items:flex-end;gap:4px;height:96px;padding:6px 2px;border-bottom:1px dashed #e5e7eb}
.analytics-chart-bar{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:8px;position:relative}
.analytics-chart-fill{width:100%;background:linear-gradient(180deg,#0ea5e9,#0284c7);border-radius:3px 3px 0 0;min-height:2px;transition:height .2s ease}
.analytics-chart-fill.empty{background:#e5e7eb}
.analytics-chart-fill.completed{background:linear-gradient(180deg,#22c55e,#16a34a)}
.analytics-chart-fill.review{background:linear-gradient(180deg,#f59e0b,#d97706)}
.analytics-chart-label{font-size:9px;color:#6b7280}
.analytics-chart-tt{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;font-size:10px;padding:3px 6px;border-radius:4px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s;margin-bottom:4px;z-index:2}
.analytics-chart-bar:hover .analytics-chart-tt{opacity:1}
.analytics-recommend{background:#eff6ff;border-right:3px solid #2563eb;border-radius:8px;padding:10px 12px;font-size:13px;color:#1e3a8a;line-height:1.6}
.analytics-recommend.celebrate{background:#ecfdf5;border-right-color:#16a34a;color:#065f46}
.analytics-recommend.support{background:#fef3c7;border-right-color:#d97706;color:#92400e}
.analytics-weak-row{display:flex;flex-wrap:wrap;gap:6px}
.analytics-weak-chip{background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;border-radius:999px;padding:3px 10px;font-size:12px}
.analytics-tod{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;font-size:11px;color:#374151}
.analytics-tod-cell{background:#f3f4f6;border-radius:8px;padding:6px;text-align:center}
.analytics-tod-cell strong{display:block;font-size:14px;color:#0f172a;margin-bottom:2px}

/* Sprint 3 Phase 10+ — weekly family digest */
.digest-card{margin-top:16px;background:#fff;border:1px solid rgba(20,184,166,.14);border-radius:22px;padding:16px;display:flex;flex-direction:column;gap:14px;box-shadow:0 18px 44px rgba(15,23,42,.055)}
.digest-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.digest-title{font-size:17px;font-weight:900;color:#0f172a}
.digest-range{font-size:12px;color:#5b6878}
.digest-range select{background:#fff;color:#0f172a;border:1px solid rgba(20,184,166,.18);border-radius:10px;padding:6px 10px;font-size:12px}
.digest-email-btn{background:linear-gradient(135deg,#0f766e,#115e59);color:#fff;border:none;border-radius:8px;padding:6px 12px;font-size:11px;font-weight:700;cursor:pointer;transition:opacity .2s}
.digest-email-btn:hover{opacity:.85}
.digest-email-btn:disabled{opacity:.5;cursor:not-allowed}
.digest-loading,.digest-empty{font-size:12px;color:#5b6878;text-align:center;padding:10px}
.digest-empty-state{background:#f8fffe;border:1px solid rgba(20,184,166,.12);border-radius:18px;padding:22px 16px;text-align:center;color:#5b6878}
.digest-empty-title{font-size:16px;font-weight:900;color:#0f172a;margin-bottom:6px}
.digest-empty-note{font-size:13px;line-height:1.7;color:#5b6878}
.digest-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.digest-stat{background:#f8fffe;border:1px solid rgba(20,184,166,.1);border-radius:14px;padding:12px;text-align:start;min-width:0}
.digest-stat-value{font-size:20px;font-weight:900;color:#0f172a;line-height:1.2}
.digest-stat-value.pos{color:#22c55e}
.digest-stat-value.warn{color:#f59e0b}
.digest-stat-value.urg{color:#b91c1c}
.digest-stat-label{font-size:11px;color:#5b6878;margin-top:5px;font-weight:800}
.digest-children{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.digest-child{background:#fff;border:1px solid rgba(20,184,166,.12);border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:8px;box-shadow:0 10px 24px rgba(15,23,42,.04)}
.digest-child-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.digest-child-name{font-size:13px;font-weight:900;color:#0f172a}
.digest-child-streak{font-size:11px;color:#22c55e;font-weight:700;display:inline-flex;align-items:center;gap:5px}
.digest-child-streak.zero{color:#94a3b8}
.digest-child-streak svg{width:13px;height:13px;flex:none}
.digest-child-row{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#5b6878}
.digest-child-row>span{display:inline-flex;align-items:center;gap:6px}
.digest-child-row>span svg{width:14px;height:14px;flex:none;opacity:.65;color:#0f766e}
.digest-child-row strong{color:#0f172a;font-weight:800}
.digest-child-rec{font-size:12px;line-height:1.6;padding:7px 9px;border-radius:10px;background:rgba(56,189,248,.08);color:#0369a1}
.digest-child-rec.celebrate{background:rgba(34,197,94,.08);color:#047857}
.digest-child-rec.support{background:rgba(251,191,36,.12);color:#92400e}
.digest-child-weak{display:flex;flex-wrap:wrap;gap:4px}
.digest-child-weak-chip{font-size:10px;background:rgba(251,146,60,.12);color:#9a3412;border-radius:99px;padding:2px 8px;font-weight:700}
.ri-summary{font-size:11.5px;color:#4b5563;line-height:1.55;margin-top:4px;padding:5px 8px;background:#f0fdf4;border-right:3px solid #22c55e;border-radius:6px;direction:rtl}

.dashboard-tabs{position:sticky;top:0;z-index:30;display:flex;gap:8px;overflow-x:auto;padding:0 0 14px;margin-bottom:14px;scrollbar-width:none}
.dashboard-tabs::-webkit-scrollbar{display:none}
.dashboard-tab{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.09);color:rgba(255,255,255,.68);border-radius:999px;padding:10px 16px;font:800 13px/1 'Tajawal',system-ui,sans-serif;cursor:pointer;white-space:nowrap}
.dashboard-tab.active{background:#22c55e;color:#052e10;border-color:#22c55e}
.dashboard-tab-panel{display:none;position:relative;z-index:1}
.dashboard-tab-panel.active{display:block}
.children-hero-copy{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:14px}
.compact-value{font-size:15px;line-height:1.45;word-break:break-word}
.tab-section-card{background:#0a1410;border:1px solid rgba(255,255,255,.08);border-radius:28px;padding:18px;margin-top:16px}
.tab-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.tab-section-head h3{font-size:18px;font-weight:900;line-height:1.4}
.secondary-grid{display:grid;grid-template-columns:1fr;gap:12px}
.secondary-card{background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.07);border-radius:18px;padding:14px;display:grid;gap:12px;min-width:0}
.secondary-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.secondary-title{font-size:15px;font-weight:900;color:#fff}
.secondary-note{font-size:12px;color:rgba(255,255,255,.56);line-height:1.8}
.secondary-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:8px}
.secondary-metric{background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.06);border-radius:13px;padding:10px}
.secondary-metric span{display:block;font-size:10px;color:rgba(255,255,255,.42);margin-bottom:4px;font-weight:800}
.secondary-metric strong{display:block;font-size:13px;color:#fff;line-height:1.5;word-break:break-word}
.lesson-plan-dashboard{max-width:920px;margin-inline:auto;display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.lesson-plan-form{display:grid;gap:12px}
.lesson-plan-form .frow{margin-top:0 !important}
.child-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px}
.child-card-actions .soft-btn{flex:1 1 120px}
.children-grid .card{width:100%;justify-self:stretch}
.card-actions{display:flex;flex-wrap:wrap;gap:8px}
.card-actions .soft-btn,.card-actions .enter-btn{width:auto;flex:1 1 120px;margin-bottom:0}
@media(min-width:640px){.secondary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:760px){.lesson-plan-form .frow{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1024px){.dashboard-tabs{top:0}.my-children-hero{margin-bottom:18px}}
@media(min-width:1024px){
  #tab-children{max-width:min(100%,1040px);margin-inline:auto}
  #tab-children .dashboard-workspace.no-priority{max-width:900px;margin-inline:auto}
  #tab-children .children-grid.single-child{grid-template-columns:minmax(0,390px);justify-content:center}
}
/* overflow-x:clip (لا hidden): يقصّ الفائض دون إنشاء حاوية تمرير تكسر sticky للتبويبات. */
@media(max-width:719px){.content{overflow-x:clip}.summary-card{min-height:auto}.children-grid{grid-template-columns:minmax(0,1fr)}.card{padding:15px}.mob-hdr-actions{flex-shrink:0}.mob-hdr-btn{padding-inline:11px}}
body.dashboard-theme .dashboard-tab-panel,
body.dashboard-theme .tab-section-card,
body.dashboard-theme .secondary-card,
body.dashboard-theme .secondary-metric{background:rgba(255,255,255,.78) !important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);color:#0f172a !important;border-color:rgba(255,255,255,.88) !important;box-shadow:0 20px 50px -16px rgba(10,42,38,.1),0 2px 8px rgba(0,0,0,.03),inset 0 1px 0 rgba(255,255,255,.9) !important}
body.dashboard-theme .secondary-title,
body.dashboard-theme .secondary-metric strong{color:#0f172a !important}
body.dashboard-theme .secondary-note,
body.dashboard-theme .secondary-metric span{color:#5b6878 !important}
body.dashboard-theme .dashboard-tab{background:rgba(255,255,255,.75) !important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:#0f172a !important;border:1px solid rgba(255,255,255,.8) !important}
body.dashboard-theme .dashboard-tab.active{background:linear-gradient(to bottom,#0d7f6e,#0e6b5e) !important;color:#fff !important;border-color:transparent !important;box-shadow:0 6px 18px rgba(14,138,120,.35)}
body.dashboard-theme .child-action-danger{border-top-color:rgba(239,68,68,.18)}

.progress-dashboard{max-width:980px;margin-inline:auto;display:grid;gap:12px}
.progress-hero-card{background:#fff;border:1px solid rgba(20,184,166,.14);box-shadow:0 18px 44px rgba(15,23,42,.06);border-radius:22px;padding:16px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px}
.progress-eyebrow{font-size:11px;font-weight:900;color:#0f766e;margin-bottom:5px}
.progress-hero-title{font-size:22px;font-weight:900;color:#0f172a;line-height:1.35}
.progress-hero-summary{font-size:13px;color:#5b6878;line-height:1.75;margin-top:4px;max-width:620px}
.progress-hero-meta{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.progress-action-group{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.progress-stat-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.progress-stat-card{background:#fff;border:1px solid rgba(20,184,166,.12);border-radius:16px;padding:12px 13px;box-shadow:0 12px 30px rgba(15,23,42,.05);min-width:0}
.progress-stat-card span{display:block;font-size:11px;color:#5b6878;font-weight:900;margin-bottom:5px}
.progress-stat-card strong{display:block;font-size:15px;color:#0f172a;line-height:1.45;word-break:break-word}
.progress-section{background:#fff;border:1px solid rgba(20,184,166,.12);border-radius:22px;padding:15px;box-shadow:0 18px 44px rgba(15,23,42,.055)}
.progress-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.progress-section-head h3{font-size:17px;font-weight:900;color:#0f172a;line-height:1.4}
.progress-section-head p{font-size:12px;color:#5b6878;line-height:1.7;margin-top:3px}
.progress-reports-grid{--progress-card-single-width:520px;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;align-items:stretch}
.progress-reports-grid.single-child{grid-template-columns:minmax(0,var(--progress-card-single-width));justify-content:flex-start}
.progress-report-card{border:1px solid rgba(20,184,166,.14);background:#fff;border-radius:20px;padding:15px;display:grid;gap:13px;min-width:0;box-shadow:0 14px 34px rgba(15,23,42,.055)}
.progress-report-card.selected{border-color:rgba(13,148,136,.38);box-shadow:0 16px 38px rgba(15,23,42,.07),inset 0 0 0 1px rgba(13,148,136,.12)}
.progress-card-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:flex-start;gap:12px;border-bottom:1px solid rgba(20,184,166,.1);padding-bottom:12px}
.progress-card-label{display:block;font-size:10px;font-weight:900;color:#5b6878;margin-bottom:4px}
.progress-card-title{font-size:18px;font-weight:900;color:#0f172a;line-height:1.35}
.progress-card-status{display:grid;justify-items:end;gap:5px}
.progress-card-note{font-size:12px;color:#5b6878;line-height:1.75;margin-top:-2px}
.progress-mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.progress-mini{background:#f8fffe;border:1px solid rgba(20,184,166,.1);border-radius:14px;padding:11px;min-width:0}
.progress-mini span{display:block;font-size:10px;font-weight:900;color:#5b6878;margin-bottom:4px}
.progress-mini strong{display:block;font-size:14px;color:#0f172a;line-height:1.45;word-break:break-word}
.progress-report-actions{display:flex;align-items:stretch;justify-content:center}
.progress-report-actions .soft-btn{width:100%;min-height:42px}
.review-items-list{display:grid;gap:8px}
.review-item{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;background:#fff7ed;border:1px solid #fed7aa;border-radius:14px;padding:11px}
.review-item-title{font-size:13px;font-weight:900;color:#9a3412;line-height:1.55}
.review-item-note{font-size:11px;color:#b45309;line-height:1.6;margin-top:2px}
.review-item-unread{background:#fef2f2;border-color:#fecaca;animation:unreadPulse 2s ease-in-out 1}
@keyframes unreadPulse{0%,100%{box-shadow:none}50%{box-shadow:0 0 0 3px rgba(239,68,68,.15)}}
.review-empty{background:#f0fdf4;border-color:#bbf7d0}
.review-empty .review-item-title{color:#166534}
.review-empty .review-item-note{color:#15803d}
.technical-details{margin-top:6px;font-size:11px;color:#5b6878}
.technical-details summary{cursor:pointer;font-weight:800;color:#5b6878}
.technical-details div{margin-top:5px;padding:7px 9px;border-radius:10px;background:#f1f5f9;direction:ltr;text-align:left;white-space:pre-wrap;word-break:break-word}

html,body{max-width:100%;overflow-x:hidden}
.main-col{min-width:0}
.desk-hdr,
.content{width:100%;max-width:1180px;margin-inline:auto}
.desk-hdr{padding-inline:clamp(20px,3vw,34px)}
.desk-hdr-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.desk-hdr-btn{background:linear-gradient(to bottom,#0d7f6e,#0e6b5e);color:#fff;border:none;border-radius:14px;padding:10px 18px;font-weight:700;font-size:13px;cursor:pointer;font-family:inherit;display:flex;align-items:center;gap:6px;box-shadow:0 8px 18px -6px rgba(14,107,94,.45)}
@media(max-width:1023px){.mob-hdr{flex-wrap:wrap}}
.content{padding-inline:clamp(14px,3vw,34px)}
.dashboard-tabs{max-width:100%;gap:7px;padding:0 2px 12px;margin:0 -2px 14px;overscroll-behavior-inline:contain}
.dashboard-tab{padding:9px 14px;font-size:12px}
.dashboard-tab-panel{min-width:0}
.my-children-hero{margin-bottom:16px}
.my-children-hero .summary-hero{width:100%;padding:18px}
.children-hero-copy{align-items:center;margin-bottom:12px}
.children-hero-copy>div{flex:1 1 360px;min-width:min(100%,360px)}
.children-hero-copy .soft-btn{flex:0 0 auto}
.clean-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}
.clean-summary-grid .summary-card{min-height:auto;padding:12px 14px}
/* محدّد فترة عدّ الجلسات (يومي/أسبوعي/شهري) داخل بطاقة الملخّص */
.summary-period{display:inline-flex;gap:4px;margin-top:8px;background:rgba(20,184,166,.10);border-radius:999px;padding:3px}
.summary-period .period-btn{border:0;background:transparent;color:var(--rattl-muted,#5b6878);font-family:inherit;font-weight:800;font-size:11px;padding:4px 10px;border-radius:999px;cursor:pointer;line-height:1;transition:background .15s,color .15s}
.summary-period .period-btn.active{background:var(--rattl-primary-dark,#0f766e);color:#fff}
.summary-period .period-btn:not(.active):hover{color:var(--rattl-primary-dark,#0f766e)}
.dashboard-workspace.no-priority{max-width:100%}
.children-area{min-width:0}
.children-grid{grid-template-columns:minmax(0,1fr);gap:14px;align-items:stretch}
.children-grid .card{width:100%;max-width:none;justify-self:stretch}
.children-grid.single-child{grid-template-columns:minmax(0,360px);justify-content:center}
.child-clean-card{padding:14px;min-height:auto}
.child-clean-card .card-primary-col{gap:9px}
.child-clean-card .card-top{margin-bottom:2px}
.child-clean-card .avatar{width:40px;height:40px;border-radius:13px}
.child-clean-card .child-name{font-size:15px}
.child-clean-card .child-age{font-size:11.5px;line-height:1.55}
.child-clean-card .task-row{margin-bottom:7px}
.child-clean-card .prog-row{margin-bottom:4px}
.child-clean-card .track{height:4px;margin-bottom:6px}
.child-clean-card .card-note{display:none}
.child-card-actions{gap:7px;margin-top:4px}
.child-card-actions .soft-btn,
.child-card-actions .enter-btn{width:auto;flex:1 1 116px;min-height:40px;margin-bottom:0;padding:9px 10px;white-space:normal;line-height:1.35}
#state-empty{max-width:480px;margin:18px auto 0;padding:42px 18px}
body.dashboard-theme .state-box{color:#5b6878}
body.dashboard-theme #state-empty p:first-of-type{color:#0f172a !important;font-size:17px}
body.dashboard-theme #state-empty p:not(:first-of-type){color:#5b6878}
body.dashboard-theme #state-empty svg{stroke:rgba(15,118,110,.28) !important}
@media(min-width:720px){.children-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1180px){.children-grid:not(.single-child){grid-template-columns:repeat(3,minmax(0,1fr))}}
/* الجوال: شريط التبويبات مثبّت أسفل النوتش فيبقى قابلاً للضغط (كان relative فيختفي). */
@media(max-width:1023px){
  .content{max-width:860px}
  .dashboard-tabs{position:sticky;top:env(safe-area-inset-top,0px);z-index:35;padding-top:8px;background:rgba(8,13,8,.92);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 6px 18px -12px rgba(0,0,0,.35)}
  body.dashboard-theme .dashboard-tabs{background:rgba(246,250,248,.94);box-shadow:0 6px 18px -12px rgba(10,42,38,.18)}
}
@media(max-width:767px){
  .mob-hdr{flex-wrap:wrap;align-items:flex-start}
  .mob-hdr-brand{flex:1 1 220px}
  .dashboard-tabs{gap:6px;margin-inline:calc(-1 * clamp(14px,3vw,34px));padding:0 clamp(14px,3vw,34px) 10px}
  .dashboard-tab{padding:8px 12px;font-size:12px}
  .children-hero-copy{align-items:stretch}
  .children-hero-copy .soft-btn{width:100%}
  .clean-summary-grid{grid-template-columns:1fr}
  .child-clean-card{padding:13px}
  .child-clean-card .card-top{grid-template-columns:auto minmax(0,1fr) auto;align-items:center}
  .child-clean-card .card-head-meta{order:initial}

  .child-card-actions .soft-btn,.child-card-actions .enter-btn{flex-basis:138px}
  .progress-dashboard{gap:10px}
  .progress-hero-card,.progress-section{border-radius:18px;padding:13px}
  .progress-hero-title{font-size:19px}
  .progress-card-head{grid-template-columns:1fr}
  .progress-card-status{justify-items:start}
  .progress-action-group{justify-content:flex-start}
  .progress-action-group .soft-btn,.progress-action-group .enter-btn{flex:1 1 130px}
  .progress-stat-row,.progress-reports-grid,.progress-reports-grid.single-child,.progress-mini-grid{grid-template-columns:1fr}
  .review-item{display:block}
}
@media(min-width:768px) and (max-width:900px){
  .progress-hero-card{grid-template-columns:1fr}
  .progress-action-group{justify-content:flex-start}
  .progress-stat-row,.progress-reports-grid,.progress-reports-grid.single-child{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:430px){.content{padding-inline:12px}.dashboard-tabs{margin-inline:-12px;padding-inline:12px}.my-children-hero .summary-hero{padding:15px 13px}.children-grid{gap:12px}.child-card-actions .soft-btn,.child-card-actions .enter-btn{flex-basis:100%}.mob-hdr-actions{max-width:none}}

/* مفتاح وضع الخطة لكل طفل (تلقائي/يدوي) — أيقونات SVG، بلا إيموجي. */
.plan-mode-toggle{display:inline-flex;gap:4px;padding:4px;border-radius:14px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1)}
.pm-opt{display:inline-flex;align-items:center;gap:7px;border:0;cursor:pointer;font-family:inherit;font-weight:800;font-size:13px;padding:9px 15px;border-radius:11px;color:rgba(255,255,255,.62);background:transparent;transition:.15s}
.pm-opt svg{width:16px;height:16px}
.pm-opt:hover{color:#fff}
.pm-opt.is-active{background:linear-gradient(135deg,#0f766e,#115e59);color:#fff;box-shadow:0 6px 16px rgba(13,148,136,.3)}
.pm-opt[disabled]{opacity:.5;cursor:default}
/* مرحلةٌ تعمل كاملةً وينقصها صوتُ المعلّمة: تُختار ويُنفَّذ الاختيار، والوسمُ
   يقول الحقيقةَ **قبل** الضغط لا بعده (بلاغ المالك ٢٠٢٦-٠٩-٠٧). */
.pm-opt.is-pending{font-size:12px}
.pm-opt.is-pending:not(.is-active){color:rgba(255,255,255,.45)}
.pm-opt.is-pending.is-active{background:linear-gradient(135deg,#d97706,#b45309);box-shadow:0 6px 16px rgba(180,83,9,.3)}
body.dashboard-theme .pm-opt.is-pending:not(.is-active){color:#94a3b8}
body.dashboard-theme .plan-mode-toggle{background:#f1f5f9;border-color:#e2e8f0}
body.dashboard-theme .pm-opt{color:#5b6878}
body.dashboard-theme .pm-opt:hover{color:#0f172a}
body.dashboard-theme .pm-opt.is-active{color:#fff}
.manual-plan-form .frow{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
.manual-plan-form .frow.one{grid-template-columns:1fr}
.manual-plan-form .flbl{display:block;font-size:12.5px;font-weight:700;margin-bottom:6px;color:rgba(255,255,255,.72)}
body.dashboard-theme .manual-plan-form .flbl{color:#475569}
@media(max-width:520px){.manual-plan-form .frow{grid-template-columns:1fr}}

/* Phase 4 — parent journey report (read-only). Matches the dark teal dashboard. */
.plan-report{display:grid;gap:12px}
.pr-block{background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.07);border-radius:16px;padding:15px}
.pr-now{background:linear-gradient(135deg,rgba(16,185,129,.16),rgba(13,148,136,.08));border-color:rgba(16,185,129,.32)}
.pr-now .now-surah{font-size:22px;font-weight:900;color:#fff;line-height:1.3;margin-top:2px}
.pr-now .now-ayah{font-size:13px;color:rgba(255,255,255,.66);margin-top:5px;font-variant-numeric:tabular-nums;font-weight:700}
.pr-eyebrow{font-size:11px;font-weight:900;letter-spacing:.03em;color:#34d399;display:flex;align-items:center;gap:7px;margin-bottom:8px}
.pr-eyebrow svg{width:15px;height:15px;flex:0 0 auto}
.pr-lead{margin:0;font-size:12.5px;color:rgba(255,255,255,.62);line-height:1.9}
.pr-method{display:grid;gap:11px;margin-top:13px}
.pr-step{display:flex;gap:11px;align-items:flex-start}
.pr-step .pr-ic{flex:0 0 auto;width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:rgba(16,185,129,.14);color:#34d399;border:1px solid rgba(16,185,129,.3)}
.pr-step .pr-ic svg{width:17px;height:17px}
.pr-step h5{margin:0 0 2px;font-size:13.5px;font-weight:800;color:#e6fff5}
.pr-step p{margin:0;font-size:12px;color:rgba(255,255,255,.58);line-height:1.75}
.journey-rail{position:relative;height:9px;border-radius:99px;background:rgba(255,255,255,.09);overflow:hidden}
.journey-fill{position:absolute;inset-block:0;inset-inline-start:0;background:linear-gradient(90deg,#10b981,#34d399);border-radius:99px;transition:inline-size .6s cubic-bezier(.22,1,.36,1)}
.journey-ends{display:flex;justify-content:space-between;margin-top:8px;font-size:11.5px;color:rgba(255,255,255,.5);gap:10px}
.journey-ends b{color:rgba(255,255,255,.78);font-weight:800}
.pr-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:13px}
.pr-stat{background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.07);border-radius:12px;padding:11px 13px}
.pr-stat .k{font-size:11px;color:rgba(255,255,255,.5)}
.pr-stat .v{font-size:19px;font-weight:900;color:#fff;font-variant-numeric:tabular-nums;margin-top:3px}
.pr-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:11px}
.pr-chip{font-size:12.5px;font-weight:700;color:#d1fae5;background:rgba(16,185,129,.1);border:1px solid rgba(16,185,129,.26);border-radius:99px;padding:6px 13px}
.pr-chip .pr-num{opacity:.6;font-weight:900;margin-inline-end:5px;font-variant-numeric:tabular-nums}
.pr-list{display:grid;gap:8px;margin-top:11px}
.pr-row{display:flex;align-items:center;gap:11px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.07);border-radius:12px;padding:10px 13px}
.pr-row .pr-txt{min-width:0}
.pr-row .pr-name{font-weight:800;color:#fff;font-size:13.5px}
.pr-row .pr-reason{font-size:11.5px;color:rgba(255,255,255,.55);margin-top:2px;line-height:1.6}
.pr-row .pr-pct{margin-inline-start:auto;font-size:14px;font-weight:900;font-variant-numeric:tabular-nums;flex:0 0 auto}
.pr-dot{flex:0 0 auto;width:9px;height:9px;border-radius:50%}
.st-mastered{background:#34d399}.st-review_due{background:#fbbf24}.st-relearning{background:#fb7185}.st-learning{background:#60a5fa}.st-new{background:#cbd5e1}
.pr-pct.c-mastered{color:#34d399}.pr-pct.c-review_due{color:#fbbf24}.pr-pct.c-relearning{color:#fb7185}.pr-pct.c-learning{color:#93c5fd}
.pr-empty{font-size:12.5px;color:rgba(255,255,255,.5);margin-top:9px;display:flex;align-items:center;gap:7px}
.pr-empty svg{width:15px;height:15px;color:#34d399;flex:0 0 auto}
/* Light theme (body.dashboard-theme is the parent dashboard's active theme):
   the report was authored on the dark base palette, so on the white dashboard
   its light text was invisible. Restate every color on the light palette. */
body.dashboard-theme .pr-block{background:#f7fbfa;border-color:rgba(20,184,166,.16)}
body.dashboard-theme .pr-now{background:linear-gradient(135deg,rgba(16,185,129,.12),rgba(13,148,136,.05));border-color:rgba(16,185,129,.28)}
body.dashboard-theme .pr-now .now-surah{color:#0f172a}
body.dashboard-theme .pr-now .now-ayah{color:#0f766e}
body.dashboard-theme .pr-eyebrow{color:#0f766e}

body.dashboard-theme .pr-step h5,
body.dashboard-theme .pr-row .pr-name,
body.dashboard-theme .pr-stat .v{color:#0f172a}
body.dashboard-theme .pr-lead,
body.dashboard-theme .pr-step p,
body.dashboard-theme .pr-row .pr-reason,
body.dashboard-theme .pr-stat .k,
body.dashboard-theme .journey-ends,
body.dashboard-theme .pr-empty{color:#5b6878}
body.dashboard-theme .journey-ends b{color:#334155}
body.dashboard-theme .pr-step .pr-ic{background:rgba(16,185,129,.1);color:#0f766e;border-color:rgba(16,185,129,.22)}
body.dashboard-theme .journey-rail{background:rgba(15,23,42,.08)}
body.dashboard-theme .pr-stat,
body.dashboard-theme .pr-row{background:#fff;border-color:rgba(20,184,166,.14)}
body.dashboard-theme .pr-chip{color:#0f766e;background:rgba(16,185,129,.09);border-color:rgba(16,185,129,.22)}
body.dashboard-theme .pr-pct.c-mastered{color:#059669}
body.dashboard-theme .pr-pct.c-review_due{color:#b45309}
body.dashboard-theme .pr-pct.c-relearning{color:#e11d48}
body.dashboard-theme .pr-pct.c-learning{color:#2563eb}
