/* منجاز — «لوحتي» مساحة المعلم (1.117) */
.sp-page { max-width: 1180px; }
.sp-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 26px; padding: 26px 28px 22px; color: #fff; background: linear-gradient(125deg, var(--h1) 0%, var(--h2) 55%, var(--h3) 100%); box-shadow: 0 18px 40px rgba(16, 40, 47, .18); margin: 6px 0 12px; }
.sp-hero::before { content: ''; position: absolute; inset-inline-start: -60px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; border: 34px solid rgba(255, 255, 255, .07); z-index: -1; }
.sp-hero::after { content: ''; position: absolute; inset-inline-end: 8%; top: -50px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255, 255, 255, .06); z-index: -1; }
.sp-hero-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.sp-av { width: 68px; height: 68px; border-radius: 22px; background: rgba(255, 255, 255, .16); border: 2px solid rgba(255, 255, 255, .35); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 900; }
.sp-who small { color: rgba(255, 255, 255, .78); font-weight: 800; font-size: 13px; }
.sp-who h1 { font-size: 26px; font-weight: 900; line-height: 1.3; margin: 2px 0; color: #fff; }
.sp-who p { color: rgba(255, 255, 255, .88); font-size: 14.5px; margin: 0; }
.sp-hero-acts { display: flex; flex-direction: column; gap: 8px; }
.sp-cust { display: inline-flex; align-items: center; gap: 6px; justify-content: center; background: rgba(255, 255, 255, .14) !important; color: #fff !important; border: 1.5px solid rgba(255, 255, 255, .4) !important; padding: 8px 14px; font-size: 14px; }
.sp-cust:hover { background: rgba(255, 255, 255, .24) !important; }
.sp-quote { margin: 16px 0 0; padding: 12px 18px; border-radius: 16px; background: rgba(255, 255, 255, .12); font-size: 18px; font-weight: 800; line-height: 1.7; border-inline-start: 4px solid rgba(255, 255, 255, .7); }
.sp-quote::before { content: '“'; font-size: 26px; margin-inline-end: 4px; opacity: .7; }
.sp-icons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sp-icons span { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .15); display: flex; align-items: center; justify-content: center; }
.sp-bar-top { display: flex; justify-content: flex-end; margin: -2px 2px 6px; }
.sp-save { font-size: 12.5px; font-weight: 700; color: #2A7A66; } .sp-save.bad { color: #A2531A; }
.sp-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.sp-stat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; color: #1E7290; box-shadow: 0 8px 20px rgba(21, 80, 102, .05); }
.sp-stat b { font-size: 22px; font-weight: 900; color: #10282F; line-height: 1.3; } .sp-stat span { font-size: 12.5px; color: var(--mut); font-weight: 700; }
.sp-next { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; padding: 11px 16px; border-radius: 16px; background: #ECF7F4; border: 1px solid #C7E5DD; color: #155066; font-size: 15px; }
.sp-next.muted { background: #F6F9F9; border-color: var(--line); color: var(--mut); font-size: 14px; }
.sp-next small { color: var(--mut); }
.sp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 12px; align-items: start; }
.sp-card { padding: 20px; border-radius: 22px; min-width: 0; }
.sp-card.wide { grid-column: 1 / -1; }
.sp-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.sp-h h2 { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 900; color: var(--b1); margin: 0; }
.sp-h h2 svg { color: #22816f; }
.sp-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-sm { padding: 7px 12px !important; font-size: 13.5px !important; display: inline-flex; align-items: center; gap: 5px; }
.sp-hint { color: var(--mut); font-size: 13.5px; margin: 0 0 10px; }
.sp-sub { font-size: 15px; font-weight: 900; color: #155066; margin: 14px 0 6px; }
.sp-in { font: inherit; font-weight: 600; font-size: 14px; color: #10282F; width: 100%; min-width: 0; border: 1.5px solid #DCE7E5; border-radius: 10px; padding: 7px 10px; background: #fff; }
.sp-in.b { font-weight: 800; }
.sp-in:focus, .sp-cell:focus { outline: none; border-color: #2A9C86; box-shadow: 0 0 0 3px rgba(42, 156, 134, .15); }
.sp-xs { max-width: 120px; }
textarea.sp-in { resize: vertical; line-height: 1.75; margin-top: 6px; }
.sp-card label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 800; color: #3d5257; }
.sp-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sp-g3 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.sp-row { display: flex; gap: 8px; align-items: center; }
.sp-ttset { display: flex; flex-wrap: wrap; gap: 10px; margin: 2px 0 10px; }
.sp-ttset label { min-width: 110px; }
.sp-list { display: flex; flex-direction: column; gap: 8px; }
.sp-item { position: relative; padding: 10px 10px 10px 40px; border: 1px solid #E3ECEB; border-radius: 14px; background: #FAFCFC; }
.sp-del { position: absolute; top: 10px; left: 8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: #687577; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sp-del:hover { background: #FBE9E7; color: #B0443B; }
.sp-add { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 800; font-size: 14px; color: #155066; background: #fff; border: 1.5px dashed #9CCBC0; border-radius: 12px; padding: 8px 14px; cursor: pointer; }
.sp-add:hover { background: #F2FAF8; }
.sp-empty { color: var(--mut); font-size: 13.5px; margin: 2px 0; padding: 10px 12px; border-radius: 12px; background: #F7FAFA; }
.sp-badge { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 12.5px; font-weight: 800; color: #155066; background: #E6F3F0; border-radius: 999px; padding: 4px 10px; }
.sp-st summary { cursor: pointer; font-size: 13px; font-weight: 800; color: #155066; margin-top: 8px; }
.sp-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sp-chip { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 12.5px; font-weight: 800; color: #155066; background: #fff; border: 1px solid #CFE2E0; border-radius: 999px; padding: 5px 11px; text-decoration: none; cursor: pointer; }
.sp-chip:hover { border-color: #2A9C86; background: #F2FAF8; }
.sp-tt { overflow-x: auto; border: 1px solid #E3ECEB; border-radius: 14px; }
.sp-tt table { width: 100%; min-width: 640px; border-collapse: collapse; }
.sp-tt th, .sp-tt td { border: 1px solid #E8EFEE; padding: 4px; text-align: center; }
.sp-tt thead th { background: #F2F8F7; font-size: 13px; color: #155066; font-weight: 900; } .sp-tt thead small { display: block; font-size: 11px; color: var(--mut); font-weight: 700; }
.sp-tt tbody th { background: #F7FAFA; font-size: 13.5px; color: #10282F; white-space: nowrap; padding: 4px 10px; }
.sp-tt tr.on th, .sp-tt tr.on td { background: #EAF6F2; }
.sp-cell { width: 100%; min-width: 74px; border: 1px solid transparent; border-radius: 8px; padding: 7px 4px; font: inherit; font-size: 13px; font-weight: 700; text-align: center; background: transparent; color: #10282F; }
.sp-cell:hover { border-color: #DCE7E5; background: #fff; }
.sp-uprog { display: grid; grid-template-columns: auto auto auto minmax(80px, 1fr); align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: #3d5257; }
.sp-step { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #CFE2E0; background: #fff; color: #155066; font: 800 17px/1 system-ui, sans-serif; cursor: pointer; }
.sp-bar { position: relative; height: 10px; border-radius: 999px; background: #E6EEED; overflow: visible; margin: 8px 0 2px; }
.sp-bar i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 999px; background: linear-gradient(90deg, #2A9C86, #1E7290); }
.sp-uprog .sp-bar { margin: 0; }
.sp-bar em { position: absolute; top: -4px; width: 3px; height: 18px; border-radius: 2px; background: #E8590C; transform: translateX(50%); }
.sp-psum { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 4px; }
.sp-psum div { display: flex; align-items: baseline; gap: 6px; font-size: 13.5px; color: var(--mut); } .sp-psum b { font-size: 22px; color: #10282F; font-weight: 900; }
.sp-ana { margin-top: 12px; }
.sp-lock { padding: 16px; border-radius: 16px; background: linear-gradient(135deg, #FFF8E6, #FFFDF5); border: 1px solid #F0D58C; }
.sp-lock b { display: flex; align-items: center; gap: 6px; color: #5B4510; font-size: 15.5px; } .sp-lock p { color: #5B4510; font-size: 14px; margin: 6px 0 10px; line-height: 1.8; }
.sp-at { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 4px 0 10px; }
.sp-at th { background: #155066; color: #fff; padding: 8px; text-align: right; font-weight: 800; } .sp-at td { border-bottom: 1px solid #E3ECEB; padding: 8px; } .sp-at td small { display: block; color: var(--mut); }
.sp-st-bad { color: #B0443B; font-weight: 800; } .sp-st-ok { color: #1F7A55; font-weight: 800; } .sp-st-up { color: #1E5FA8; font-weight: 800; }
.sp-tips { padding: 12px 14px; border-radius: 14px; background: #FFF4E5; border: 1px solid #FFD8A8; color: #6B3B07; font-size: 14px; line-height: 1.8; } .sp-tips.ok { background: #ECF8F4; border-color: #BFE0D6; color: #155066; }
.sp-tips ul { margin: 4px 0 0; padding-inline-start: 20px; list-style: disc; } .sp-tips a { color: #155066; font-weight: 800; }
.sp-grow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.sp-gi { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #E3ECEB; border-radius: 16px; background: #fff; color: #10282F; text-decoration: none; transition: border-color .15s, transform .15s; }
.sp-gi:hover { border-color: #2A9C86; transform: translateY(-2px); }
.sp-gi > svg { color: #1E7290; } .sp-gi b { display: block; font-size: 14.5px; font-weight: 900; } .sp-gi small { color: var(--mut); font-size: 12.5px; line-height: 1.6; }
.sp-gi i { font-style: normal; font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.sp-gi i.ok { background: #E3F4EC; color: #1F7A55; } .sp-gi i.pro { background: #FFF1CC; color: #7A5A00; } .sp-gi i.free { background: #E6F1FA; color: #1E5FA8; } .sp-gi i.st { background: #F1E8FA; color: #5B2E91; }
.sp-sub-on, .sp-sub-off { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-radius: 14px; font-size: 14px; font-weight: 700; }
.sp-sub-on { background: #ECF8F4; color: #155066; } .sp-sub-off { background: #FFF8E6; color: #5B4510; border: 1px solid #F0D58C; }
.sp-sub-on, .sp-sub-off span { display: flex; align-items: center; gap: 6px; }
.sp-custp { margin: 0 0 12px; }
.sp-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #F2F6F6; color: #10282F; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sp-lbl { display: block; font-size: 12.5px; font-weight: 800; color: #3d5257; margin: 12px 0 6px; } .sp-lbl small { color: var(--mut); font-weight: 600; }
.sp-cols { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-cols button { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px #D5E3E1; cursor: pointer; }
.sp-cols button[aria-checked="true"] { box-shadow: 0 0 0 2.5px #10282F; }
.sp-picks { display: grid; grid-template-columns: repeat(auto-fill, 46px); gap: 8px; }
.sp-pick { aspect-ratio: 1; border-radius: 12px; border: 1.5px solid #DCE7E5; background: #fff; color: #155066; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sp-pick[aria-pressed="true"] { background: #1E7290; border-color: #1E7290; color: #fff; }
.sp-gate { text-align: center; padding: 40px 22px; max-width: 640px; margin: 20px auto; color: #155066; } .sp-gate h1 { font-size: 24px; margin: 10px 0 6px; } .sp-gate p { color: var(--mut); margin: 0 0 16px; line-height: 1.9; }
.sp-act { margin-top: 8px; display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 12.5px; font-weight: 800; color: #5B4510; background: #FFF8E6; border: 1px solid #F0D58C; border-radius: 999px; padding: 4px 11px; cursor: pointer; }
.sp-act.on { background: #155066; border-color: #155066; color: #fff; }
.sp-ck { flex-direction: row !important; } .sp-ck input { width: 20px; height: 20px; accent-color: #1E7290; }
#sp-tasks .sp-g3 { grid-template-columns: auto minmax(0, 1fr) auto; }
.sp-done { text-decoration: line-through; color: #687577; } .sp-late { border-color: #E8A39B; color: #B0443B; }
.sp-lk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sp-lk a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #E3ECEB; border-radius: 14px; background: #fff; color: #10282F; font-weight: 800; font-size: 13.5px; text-decoration: none; }
.sp-lk a svg { color: #1E7290; flex: none; } .sp-lk a:hover { border-color: #2A9C86; background: #F2FAF8; }
@media (max-width: 920px) { .sp-grid { grid-template-columns: minmax(0, 1fr); } .sp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sp-grow { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .sp-hero { padding: 18px 16px 16px; border-radius: 22px; } .sp-hero-in { grid-template-columns: auto minmax(0, 1fr); gap: 12px; } .sp-hero-acts { grid-column: 1 / -1; flex-direction: row; } .sp-hero-acts .btn { flex: 1; }
  .sp-av { width: 54px; height: 54px; font-size: 24px; border-radius: 18px; } .sp-who h1 { font-size: 21px; } .sp-quote { font-size: 15.5px; }
  .sp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp-stat:last-child { grid-column: 1 / -1; }
  .sp-g2, .sp-g3 { grid-template-columns: minmax(0, 1fr); } .sp-xs { max-width: none; } .sp-ttset label { min-width: calc(50% - 5px); flex: 1; }
  .sp-card { padding: 16px; } .sp-uprog { grid-template-columns: auto auto auto; } .sp-uprog .sp-bar { grid-column: 1 / -1; }
}
@media print { .sp-page { display: none !important; } }
/* 1.121.0 — صورة الفصل الذكي تحت ألوان اللوحة (أزرق/بنفسجي/أخضر/زهري) دون أن تطغى عليها */
@supports (background: color-mix(in srgb, red 50%, transparent)) {
  .sp-hero { background-image: linear-gradient(125deg, color-mix(in srgb, var(--h1) 86%, transparent) 0%, color-mix(in srgb, var(--h2) 78%, transparent) 55%, color-mix(in srgb, var(--h3) 84%, transparent) 100%), var(--hero-w, none); background-image: linear-gradient(125deg, color-mix(in srgb, var(--h1) 86%, transparent) 0%, color-mix(in srgb, var(--h2) 78%, transparent) 55%, color-mix(in srgb, var(--h3) 84%, transparent) 100%), var(--hero-ws, none); background-color: var(--h2); background-size: cover; background-position: center 40%; background-repeat: no-repeat; }
}
@media print { .sp-hero { background-image: none !important; } }
