/* Panda Nursery Manager 2.1 — واجهة فاتحة وبسيطة بروح تطبيقات الموبايل */
:root {
	--pri: #4C7CF5; --pri-d: #3765DB; --pri-soft: #EAF0FF;
	--paper: #F3F6FD; --surface: #FFFFFF; --surface-2: #F8FAFF; --line: #E5EAF5; --line-2: #EEF2FA;
	--text: #1F2A44; --muted: #637091; --faint: #868FA9;
	--coral: #F0634E; --coral-d: #D9482F; --coral-soft: #FFEDEA;
	--sky: #4C7CF5; --sky-soft: #EAF0FF;
	--bamboo: #22A86B; --bamboo-soft: #E2F7EC;
	--honey: #E59A12; --honey-soft: #FFF4DC;
	--plum: #8B5CF6; --plum-soft: #F1EBFF;
	--pink: #EC4899; --pink-soft: #FDE8F3;
	--teal: #14A3B8; --teal-soft: #E0F6F9;
	--ink: #1F2A44;
	--r-sm: 12px; --r: 20px;
	--shadow: 0 6px 24px -10px rgba(52, 86, 170, .18);
	--shadow-pop: 0 24px 60px -12px rgba(31, 42, 68, .3);
	--font: "Cairo", "Segoe UI", Tahoma, system-ui, sans-serif;
	--side: 260px;
	color-scheme: light;
}
[data-theme="dark"] {
	--pri-soft: #1E2A4A; --paper: #0F1424; --surface: #171D31; --surface-2: #1B2238; --line: #283150; --line-2: #212944;
	--text: #E8ECF7; --muted: #9AA5C4; --faint: #6A7599; --ink: #E8ECF7;
	--coral-soft: #3A1F1D; --sky-soft: #1E2A4A; --bamboo-soft: #143126; --honey-soft: #36290F; --plum-soft: #2A2146; --pink-soft: #3A1A2D; --teal-soft: #11313A;
	--shadow: 0 6px 24px -10px rgba(0, 0, 0, .6); --shadow-pop: 0 24px 60px -12px rgba(0, 0, 0, .7);
	color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 15px; line-height: 1.65; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--pri); text-decoration: none; }
:focus-visible { outline: 2px solid var(--pri); outline-offset: 2px; border-radius: 6px; }
.num, .money { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.money .cur { font-size: .72em; color: var(--muted); margin-right: 4px; font-weight: 500; direction: rtl; unicode-bidi: isolate; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.pos { color: var(--bamboo); } .neg { color: var(--coral-d); }
[data-theme="dark"] .neg { color: #FF8a7a; }
.hide { display: none !important; }

.boot-splash { position: fixed; inset: 0; display: grid; place-content: center; gap: 22px; justify-items: center; background: var(--paper); }
.boot-splash img { width: 96px; height: 96px; border-radius: 28px; box-shadow: var(--shadow-pop); }
.boot-bar { width: 140px; height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 40%; background: var(--pri); border-radius: 5px; animation: boot 1.1s ease-in-out infinite; }
@keyframes boot { 0% { transform: translateX(120%); } 100% { transform: translateX(-260%); } }

/* الهيكل */
.app { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-inline-end: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 6px 18px; }
.brand img { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; box-shadow: var(--shadow); }
.brand b { display: block; font-size: 16px; font-weight: 800; line-height: 1.3; }
.brand small { display: block; font-size: 12px; color: var(--muted); }
.nav-g { font-size: 12.5px; color: var(--faint); padding: 14px 10px 4px; font-weight: 600; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 14px; color: var(--text); font-size: 14.5px; font-weight: 600; transition: background .15s; }
.nav a:hover { background: var(--surface-2); }
.nav a.on { background: var(--pri-soft); color: var(--pri); }
.chip { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; font-size: 18px; background: var(--c-soft, var(--line-2)); line-height: 1; }
.nav a .cnt { margin-inline-start: auto; font-size: 12px; background: var(--coral); color: #fff; border-radius: 999px; padding: 0 8px; line-height: 20px; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.side-foot .who { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700; }
.side-foot .who small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 12px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.icon-btn svg { width: 19px; height: 19px; stroke: currentColor; }
.icon-btn:hover { background: var(--line-2); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 14px 30px; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); }
.top h1 { margin: 0; font-size: 21px; font-weight: 800; }
.top .crumb { color: var(--muted); font-size: 13.5px; }
.top .grow { flex: 1; }
.search-trigger { display: flex; align-items: center; gap: 10px; min-width: 280px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; font-size: 14px; box-shadow: var(--shadow); }
.search-trigger svg { width: 18px; height: 18px; stroke: currentColor; }
.search-trigger kbd { margin-inline-start: auto; font: 11px var(--font); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; color: var(--faint); }
.menu-btn { display: none; }
.view { padding: 8px 30px 60px; max-width: 1360px; width: 100%; }
.view.enter { animation: viewin .25s ease-out; }
@keyframes viewin { from { opacity: 0; transform: translateY(6px); } }
.bottom-nav { display: none; }

/* أزرار */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; }
.btn svg { width: 17px; height: 17px; stroke: currentColor; flex: none; }
.btn:hover { border-color: var(--faint); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.pri { background: var(--pri); border-color: var(--pri); color: #fff; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--pri) 70%, transparent); }
.btn.pri:hover { background: var(--pri-d); border-color: var(--pri-d); }
.btn.ink { background: var(--text); border-color: var(--text); color: var(--surface); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--line-2); }
.btn.danger { color: var(--coral-d); }
.btn.danger:hover { border-color: var(--coral); background: var(--coral-soft); }
.btn.sm { height: 34px; padding: 0 13px; font-size: 13.5px; }
.btn.xs { height: 30px; padding: 0 11px; font-size: 13px; }
.btn.busy { position: relative; color: transparent !important; }
.btn.busy::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid currentColor; border-color: #fff #fff transparent transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn:not(.pri).busy::after { border-color: var(--muted) var(--muted) transparent transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--line-2); color: var(--muted); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.badge.green { background: var(--bamboo-soft); color: var(--bamboo); }
.badge.red { background: var(--coral-soft); color: var(--coral-d); }
.badge.amber { background: var(--honey-soft); color: var(--honey); }
.badge.blue { background: var(--sky-soft); color: var(--sky); }
.badge.plum { background: var(--plum-soft); color: var(--plum); }

.panel { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); }
.panel-h { display: flex; align-items: center; gap: 10px; padding: 16px 20px 6px; }
.panel-h h2, .panel-h h3 { margin: 0; font-size: 16px; font-weight: 800; }
.panel-h .grow { flex: 1; }
.panel-b { padding: 14px 20px 18px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row .grow { flex: 1; }
.mt { margin-top: 18px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar .grow { flex: 1; }
.input-search { position: relative; }
.input-search svg { position: absolute; inset-inline-start: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); stroke: var(--faint); pointer-events: none; }
.input-search input[type=search] { padding-inline-start: 40px; width: 280px; border-radius: 999px; }
.seg { display: inline-flex; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; gap: 2px; overflow-x: auto; max-width: 100%; }
.seg button { border: 0; background: transparent; height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.seg button.on { background: var(--pri); color: #fff; }
.seg button .n { font-size: 12px; opacity: .75; margin-inline-start: 5px; }

input[type=text], input[type=password], input[type=number], input[type=date], input[type=time], input[type=tel], input[type=email], input[type=search], input[type=month], input[type=color], select, textarea {
	height: 44px; width: 100%; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--text); transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 84px; padding: 10px 14px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 4px var(--pri-soft); }
input[type=color] { padding: 4px; width: 60px; }
input.amt { text-align: left; direction: ltr; font-variant-numeric: tabular-nums; font-weight: 700; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 13.5px; font-weight: 700; color: var(--text); }
.field > span i { color: var(--coral); font-style: normal; }
.field small { font-size: 12.5px; color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fields .full { grid-column: 1 / -1; }
.fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--pri); }
.check:has(input:checked) { border-color: var(--pri); background: var(--pri-soft); }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 230px; overflow: auto; }

/* الجداول */
.tbl-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.t th { text-align: start; font-weight: 700; font-size: 13px; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t th.sortable { cursor: pointer; user-select: none; }
.t th .arr { font-size: 10px; margin-inline-start: 4px; }
.t td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tbody tr:last-child td { border-bottom: 0; }
.t tbody tr.click { cursor: pointer; }
.t tbody tr:hover td { background: var(--surface-2); }
.t td.e, .t th.e { text-align: end; }
.t tfoot td { font-weight: 800; border-top: 1px solid var(--line); background: var(--surface-2); padding: 12px 16px; }
.t .sub { display: block; font-size: 13px; color: var(--muted); }
.t tr.dim td { opacity: .5; }
.t .acts { display: flex; gap: 4px; justify-content: flex-end; }
.t.compact td { padding: 9px 12px; }
.t .lvl1 td { font-weight: 800; background: var(--surface-2); }
.t .indent { padding-inline-start: 30px; }

.av { --c: var(--pri); width: 42px; height: 42px; flex: none; border-radius: 14px; display: inline-grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--surface)); }
.av.lg { width: 76px; height: 76px; font-size: 26px; border-radius: 24px; }
.av.sm { width: 32px; height: 32px; font-size: 12.5px; border-radius: 10px; }
.av svg { width: 17px; height: 17px; stroke: currentColor; }
.who-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who-cell b { font-weight: 700; display: block; }
.who-cell a { color: inherit; }

/* الرئيسية */
.hello { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 24px; margin-bottom: 20px; background: linear-gradient(135deg, var(--pri) 0%, #6C93FA 100%); color: #fff; position: relative; overflow: hidden; }
.hello::after { content: "🐼"; position: absolute; inset-inline-end: 24px; bottom: -18px; font-size: 110px; opacity: .12; transform: rotate(-12deg); }
.hello h2 { margin: 0; font-size: 24px; font-weight: 800; }
.hello p { margin: 2px 0 0; opacity: .9; font-size: 14.5px; }
.hello .grow { flex: 1; position: relative; z-index: 1; }
.hello .btn { position: relative; z-index: 1; background: #fff; color: var(--pri); border-color: #fff; }
.hello .btn.ghost { background: rgba(255, 255, 255, .16); color: #fff; border-color: transparent; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); color: var(--text); transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(52, 86, 170, .3); }
.tile .chip { width: 52px; height: 52px; font-size: 27px; border-radius: 16px; }
.tile b { font-size: 15.5px; font-weight: 800; }
.tile small { color: var(--muted); font-size: 13px; margin-top: -8px; }
.tile .big { font-size: 22px; font-weight: 800; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; }
.stat .chip { width: 48px; height: 48px; font-size: 24px; border-radius: 15px; }
.stat > div > span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.stat b { display: block; font-size: 21px; font-weight: 800; line-height: 1.3; }
.stat small { font-size: 12.5px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); min-width: 0; }
.kpi > span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi > b { display: block; font-size: 23px; font-weight: 800; margin: 2px 0; }
.kpi > small { font-size: 12.5px; color: var(--muted); }
.kpi .spark { display: block; height: 26px; margin-top: 6px; }
.today-kids { display: flex; flex-wrap: wrap; gap: 8px; }
.today-kids i { font-style: normal; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 15%, var(--surface)); position: relative; }
.today-kids i.out { opacity: .55; }
.today-kids i.abs { filter: grayscale(1); opacity: .35; }
.today-kids i.in::after { content: ""; position: absolute; bottom: -2px; inset-inline-end: -2px; width: 11px; height: 11px; border-radius: 50%; background: var(--bamboo); border: 2px solid var(--surface); }
.ring-wrap { position: relative; width: 110px; height: 110px; flex: none; }
.ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-wrap .ring-n { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-wrap .ring-n b { font-size: 26px; line-height: 1; font-weight: 800; }
.ring-wrap .ring-n small { color: var(--muted); font-size: 12px; }
.ring-wrap circle { transition: stroke-dashoffset 1.2s cubic-bezier(.2, .8, .2, 1); }

.alerts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.alert { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--sky-soft); font-size: 14px; font-weight: 600; }
.alert::before { content: "💡"; font-size: 18px; }
.alert.warning { background: var(--honey-soft); } .alert.warning::before { content: "⏰"; }
.alert.danger { background: var(--coral-soft); } .alert.danger::before { content: "⚠️"; }
.alert .grow { flex: 1; }

.legend { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font: 12px var(--font); fill: var(--faint); }
.chart .gridl { stroke: var(--line-2); }
.bars-anim rect.bar { transform-box: fill-box; transform-origin: bottom; animation: grow .7s cubic-bezier(.2, .8, .2, 1) backwards; }
@keyframes grow { from { transform: scaleY(0); } }
.tip { position: fixed; z-index: 90; pointer-events: none; background: var(--text); color: var(--surface); padding: 7px 11px; border-radius: 10px; font-size: 13px; box-shadow: var(--shadow-pop); white-space: nowrap; }

.hbars { display: flex; flex-direction: column; gap: 12px; }
.hbar { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; font-weight: 600; }
.hbar .track { grid-column: 1 / -1; height: 9px; border-radius: 9px; background: var(--line-2); overflow: hidden; }
.hbar .track i { display: block; height: 100%; border-radius: 9px; background: var(--c, var(--pri)); }
.stackbar { display: flex; height: 14px; border-radius: 14px; overflow: hidden; background: var(--line-2); gap: 3px; }
.stackbar i { display: block; height: 100%; border-radius: 4px; }
.cap-bar { height: 8px; border-radius: 8px; background: var(--line-2); overflow: hidden; }
.cap-bar i { display: block; height: 100%; background: var(--c, var(--bamboo)); border-radius: 8px; }

.list { display: flex; flex-direction: column; padding: 4px 8px 8px; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; }
.li .grow { flex: 1; min-width: 0; }
.li .grow b { font-weight: 700; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .grow small { color: var(--muted); font-size: 13px; }
a.li { color: inherit; }
a.li:hover { background: var(--surface-2); }

.classes { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.class-card { --c: var(--pri); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 12px; border-top: 5px solid var(--c); }
.class-card h3 { margin: 0; font-size: 17px; font-weight: 800; }
.class-card .meta { font-size: 13.5px; color: var(--muted); }
.class-card .count { display: flex; align-items: baseline; gap: 6px; }
.class-card .count b { font-size: 30px; font-weight: 800; }

.profile-head { display: flex; gap: 18px; align-items: center; padding: 22px; flex-wrap: wrap; }
.profile-head h2 { margin: 0; font-size: 23px; font-weight: 800; }
.profile-head .grow { flex: 1; min-width: 200px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; padding: 0 22px 22px; }
.fact { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.fact > span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.fact b { font-weight: 800; }
.health { background: var(--honey-soft); border-radius: 16px; padding: 14px 16px; font-size: 14px; white-space: pre-wrap; }
.health::before { content: "🩺 "; }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; overflow-x: auto; padding-bottom: 2px; }
.tabs button, .tabs a { border: 1px solid var(--line); background: var(--surface); padding: 8px 16px; cursor: pointer; color: var(--muted); border-radius: 999px; white-space: nowrap; font-size: 14px; font-weight: 700; }
.tabs .on { color: #fff; background: var(--pri); border-color: var(--pri); }
.cal { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.cal i { aspect-ratio: 1; border-radius: 10px; background: var(--line-2); display: grid; place-items: center; font-style: normal; font-size: 12px; color: var(--muted); font-weight: 700; }
.cal i.p { background: var(--bamboo); color: #fff; }
.cal i.a { background: var(--coral-soft); color: var(--coral-d); }

/* الحضور */
.att-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.att-stats { display: flex; gap: 10px; margin-inline-start: auto; flex-wrap: wrap; }
.att-stats span { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; color: var(--muted); font-weight: 600; }
.att-stats b { font-size: 17px; color: var(--text); }
.att-class { margin-bottom: 22px; }
.att-class h3 { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 800; margin: 0 0 12px; }
.att-class h3 i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.kid { --c: var(--pri); display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow); transition: border-color .2s, background .2s; }
.kid .grow { flex: 1; min-width: 0; }
.kid .grow b { display: block; font-weight: 800; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kid .grow small { color: var(--muted); font-size: 12.5px; }
.kid.present { border-color: color-mix(in srgb, var(--bamboo) 50%, transparent); background: color-mix(in srgb, var(--bamboo-soft) 55%, var(--surface)); }
.kid.left { border-style: dashed; }
.kid.absent { background: var(--surface-2); }
.kid.absent .av { filter: grayscale(1); opacity: .5; }
.kid .acts { display: flex; gap: 4px; }

/* النوافذ */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(20, 28, 50, .42); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 580px; background: var(--surface); border-radius: 26px; box-shadow: var(--shadow-pop); animation: pop .22s cubic-bezier(.2, .9, .3, 1.2); }
.modal.wide { max-width: 880px; } .modal.xwide { max-width: 1140px; }
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 20px 24px 0; }
.modal-h h3 { margin: 0; font-size: 19px; font-weight: 800; flex: 1; }
.modal-b { padding: 18px 24px; }
.modal-f { display: flex; gap: 8px; padding: 14px 24px 22px; }
.form-err { background: var(--coral-soft); color: var(--coral-d); border-radius: 14px; padding: 11px 14px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.note { background: var(--sky-soft); border-radius: 14px; padding: 11px 14px; font-size: 13.5px; }

.toasts { position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 80; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 440px; background: var(--text); color: var(--surface); padding: 13px 18px; border-radius: 16px; box-shadow: var(--shadow-pop); font-size: 14.5px; font-weight: 600; animation: toast .25s ease-out; }
.toast::before { content: "✅"; }
.toast.err::before { content: "⚠️"; }
@keyframes toast { from { transform: translateY(14px); opacity: 0; } }

.palette { width: 100%; max-width: 640px; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-pop); overflow: hidden; margin-top: 4vh; }
.palette input { height: 60px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 17px; padding: 0 22px; box-shadow: none !important; }
.palette .res { max-height: 430px; overflow-y: auto; padding: 8px; }
.palette .grp { font-size: 12.5px; color: var(--faint); padding: 10px 14px 4px; font-weight: 700; }
.palette .it { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; cursor: pointer; font-weight: 600; }
.palette .it svg { width: 18px; height: 18px; stroke: var(--muted); }
.palette .it small { color: var(--muted); margin-inline-start: auto; font-size: 12.5px; }
.palette .it.on { background: var(--pri-soft); }

.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty svg { display: none; }
.empty::before { content: "🌱"; display: block; font-size: 42px; margin-bottom: 6px; }
.empty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }
.skel { background: linear-gradient(90deg, var(--line-2) 25%, var(--line) 50%, var(--line-2) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r); }
@keyframes sk { to { background-position: -200% 0; } }

/* المستندات */
.doc { background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); border-radius: var(--r); padding: 34px 38px; }
.doc-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding-bottom: 20px; border-bottom: 2px solid var(--pri); margin-bottom: 22px; }
.doc-head .org { display: flex; gap: 14px; align-items: center; }
.doc-head .org img { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; }
.doc-head .org b { font-size: 19px; display: block; font-weight: 800; }
.doc-head .org small { color: var(--muted); display: block; font-size: 13px; }
.doc-head .ttl { text-align: end; }
.doc-head .ttl h2 { margin: 0; font-size: 26px; font-weight: 800; color: var(--pri); }
.doc-head .ttl .num { color: var(--muted); }
.doc-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.doc-meta > div > span { display: block; font-size: 13px; color: var(--muted); }
.doc-meta b { font-weight: 800; }
.doc-total { display: flex; justify-content: flex-end; margin-top: 16px; }
.doc-total table { min-width: 300px; border-collapse: collapse; }
.doc-total td { padding: 7px 12px; }
.doc-total tr.big td { font-size: 18px; font-weight: 800; border-top: 2px solid var(--text); }
.doc-foot { margin-top: 28px; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 13.5px; text-align: center; }
.stamp { display: inline-block; border: 3px solid currentColor; border-radius: 12px; padding: 2px 14px; font-weight: 800; font-size: 18px; transform: rotate(-6deg); }
.stamp.paid { color: var(--bamboo); } .stamp.void { color: var(--coral); } .stamp.partial { color: var(--honey); }
.report-h { text-align: center; margin-bottom: 18px; }
.report-h h2 { margin: 0; font-size: 21px; font-weight: 800; }
.report-h small { color: var(--muted); }
.fin-row td:first-child { width: 60%; }
.fin-total td { font-weight: 800; border-top: 2px solid var(--text) !important; font-size: 15px; }
.big-figure { font-size: 28px; font-weight: 800; }

#print-root { display: none; }
@media print {
	body { background: #fff !important; color: #000; }
	body.printing .app, body.printing .overlay, body.printing .toasts { display: none !important; }
	body.printing #print-root { display: block; }
	#print-root .doc, #print-root .panel { border: 0; padding: 0; box-shadow: none; }
	@page { size: A4; margin: 14mm; }
}

@media screen and (max-width: 1100px) {
	.kpis, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.g-main, .g3 { grid-template-columns: minmax(0, 1fr); }
}
/* الموبايل: شريط سفلي، وجداول تتحول لبطاقات */
@media screen and (max-width: 860px) {
	body { font-size: 15px; }
	.app { grid-template-columns: 1fr; }
	.side { position: fixed; inset-block: 0; inset-inline-start: 0; width: 290px; z-index: 70; transform: translateX(100%); transition: transform .25s ease; box-shadow: var(--shadow-pop); }
	.app.nav-open .side { transform: none; }
	.app.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(20, 28, 50, .4); z-index: 65; }
	.menu-btn { display: none; }
	.top { padding: 12px 16px; }
	.search-trigger { min-width: 0; width: 44px; padding: 0; justify-content: center; }
	.search-trigger span, .search-trigger kbd { display: none; }
	.view { padding: 4px 14px 100px; }
	.g2, .fields, .fields.three, .checks { grid-template-columns: minmax(0, 1fr); }
	.input-search, .input-search input[type=search] { width: 100%; flex: 1 1 100%; }
	.tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
	.tile { padding: 14px 8px; align-items: center; text-align: center; gap: 8px; }
	.tile b { font-size: 13.5px; } .tile small { font-size: 12px; }
	.tile .chip { width: 50px; height: 50px; }
	.hello { padding: 18px; border-radius: 22px; flex-wrap: wrap; } .hello h2 { font-size: 20px; } .hello .btns { width: 100%; } .hello .btn { height: 38px; font-size: 13.5px; }
	.stat b { font-size: 18px; }
	.doc { padding: 20px; } .doc-meta { grid-template-columns: 1fr 1fr; }
	.overlay { padding: 0; align-items: flex-end; }
	.modal { border-radius: 26px 26px 0 0; max-height: 92vh; overflow-y: auto; }
	.top h1 { font-size: 18px; } .top .crumb { display: none; }
	.hide-m { display: none !important; }
	.bottom-nav { display: flex; position: fixed; inset-inline: 10px; bottom: 10px; z-index: 50; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-pop); padding: 6px; justify-content: space-around; }
	.bottom-nav a, .bottom-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 16px; color: var(--muted); font-size: 11.5px; font-weight: 700; border: 0; background: transparent; cursor: pointer; }
	.bottom-nav .e { font-size: 21px; line-height: 1.2; }
	.bottom-nav .on { color: var(--pri); background: var(--pri-soft); }
	.toasts { bottom: 90px; inset-inline: 14px; }
	.cards-m table.t thead { display: none; }
	.cards-m table.t, .cards-m table.t tbody, .cards-m table.t tr, .cards-m table.t td { display: block; width: 100%; }
	.cards-m table.t tr { padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
	.kpis, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
	.kpi > b { font-size: 19px; }
	.cards-m table.t td { padding: 3px 0; border: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; text-align: start !important; }
	.cards-m table.t td .v { text-align: end; min-width: 0; }
	.cards-m table.t td:first-child .v { text-align: start; flex: 1; }
	.cards-m table.t td[data-l]::before { content: attr(data-l); color: var(--muted); font-size: 13px; font-weight: 600; flex: none; }
	.cards-m table.t td:first-child { font-size: 15.5px; padding-bottom: 6px; }
	.cards-m table.t td:first-child::before { display: none; }
	.cards-m table.t td:empty { display: none; }
	.cards-m table.t tfoot { display: block; }
	.cards-m .t .acts { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ===== 2.2: الدخول، الطلبات، الواجبات، المهام، التنبيهات، البوابة ===== */
.link { border: 0; background: none; color: var(--pri); font-weight: 700; cursor: pointer; padding: 0; }
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); }
.auth-art { background: linear-gradient(150deg, var(--pri) 0%, #7A9DFB 60%, #9DB7FF 100%); color: #fff; padding: 60px 56px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-art::after { content: "🐼"; position: absolute; font-size: 260px; inset-inline-start: -40px; bottom: -60px; opacity: .1; transform: rotate(14deg); }
.auth-art img { width: 96px; height: 96px; border-radius: 28px; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .3); background: #fff; }
.auth-art h1 { font-size: 36px; font-weight: 800; margin: 22px 0 6px; }
.auth-art p { font-size: 17px; opacity: .92; max-width: 460px; margin: 0; }
.auth-art ul { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; font-weight: 600; }
.auth-art li { background: rgba(255, 255, 255, .14); padding: 12px 16px; border-radius: 16px; max-width: 420px; }
.auth-card { background: var(--surface); padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; }
.auth-card h2 { font-size: 26px; font-weight: 800; margin: 0 0 4px; }
.auth-card form { margin-top: 22px; }
.auth-switch { margin-top: 22px; text-align: center; color: var(--muted); font-size: 14px; }
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.role-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 10px; border-radius: 20px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .15s, transform .15s, background .15s; }
.role-card span { font-size: 38px; line-height: 1.2; }
.role-card b { font-size: 15px; }
.role-card:hover { border-color: var(--pri); background: var(--pri-soft); transform: translateY(-2px); }
.child-box { background: var(--pink-soft); border-radius: 16px; padding: 14px 16px; }
.demo-acc { margin-top: 26px; padding: 16px; border-radius: 18px; background: var(--honey-soft); }
.demo-acc b { display: block; margin-bottom: 10px; font-size: 13.5px; }
.bell { position: relative; }
.bell-n { position: absolute; top: 2px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--coral); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.bell-panel { position: fixed; z-index: 75; width: 380px; max-width: calc(100vw - 20px); max-height: 70vh; overflow-y: auto; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-pop); animation: pop .18s ease-out; display: flex; flex-direction: column; }
.notif.unread { background: var(--pri-soft); }
.notif + .notif { margin-top: 2px; }
.notif .chip { width: 40px; height: 40px; font-size: 20px; }
.req { padding: 18px 20px; }
.hw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.hw-card { --c: var(--pri); text-align: start; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); border-inline-start: 5px solid var(--c); box-shadow: var(--shadow); }
.hw-card h3 { margin: 0; font-size: 16px; font-weight: 800; }
.hw-card p { margin: 0; color: var(--muted); font-size: 13.5px; white-space: pre-wrap; }
.hw-card.done { opacity: .7; border-inline-start-color: var(--bamboo); }
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.kcol { background: var(--line-2); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 160px; }
.kcol h3 { margin: 0 4px 4px; font-size: 15px; font-weight: 800; }
.task { background: var(--surface); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.task b { font-size: 15px; }
.task p { margin: 0; font-size: 13px; color: var(--muted); }
.task.late { border-inline-start: 4px solid var(--coral); }
.kids-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.kid-card { --c: var(--pri); display: block; color: inherit; padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); border-top: 5px solid var(--c); }
.kid-card h3 { margin: 0; font-size: 19px; font-weight: 800; }
.kid-card .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media screen and (max-width: 860px) {
	.auth { grid-template-columns: 1fr; }
	.auth-art { padding: 30px 24px 26px; text-align: center; align-items: center; }
	.auth-art h1 { font-size: 26px; margin-top: 12px; } .auth-art p { font-size: 14.5px; } .auth-art ul { display: none; } .auth-art img { width: 72px; height: 72px; }
	.auth-card { padding: 28px 20px 40px; border-radius: 28px 28px 0 0; margin-top: -20px; position: relative; }
	.kanban { grid-template-columns: 1fr; }
	.kid-card .facts { grid-template-columns: 1fr 1fr; }
	.bell-panel { left: 10px !important; right: 10px; width: auto; }
}
.visitor-box { margin-top: 22px; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: linear-gradient(135deg, var(--pink-soft), var(--honey-soft)); }
.visitor-box div { flex: 1; } .visitor-box b { display: block; font-size: 15.5px; } .visitor-box small { color: var(--muted); font-size: 13px; }
.ref-box { margin: 20px auto 0; padding: 16px; border-radius: 18px; background: var(--pri-soft); border: 2px dashed var(--pri); max-width: 300px; }
.ref-box small { display: block; color: var(--muted); font-size: 12.5px; } .ref-box b { font-size: 30px; font-weight: 800; color: var(--pri); letter-spacing: 1px; }
.track-card { margin-top: 20px; text-align: center; padding: 22px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); }
.track-card b { display: block; font-size: 19px; } .track-card p { margin: 8px 0 0; }
.track-card.approved { background: var(--bamboo-soft); } .track-card.rejected { background: var(--coral-soft); }
@media screen and (max-width: 860px) { .visitor-box { flex-direction: column; text-align: center; } }
/* ===== 2.4: تجميع المالية ===== */
.nav a.on-parent { background: var(--surface-2); }
.subnav { margin: 2px 0 6px; padding-inline-start: 22px; border-inline-start: 2px solid var(--line); margin-inline-start: 24px; display: flex; flex-direction: column; gap: 1px; }
.subnav a { font-size: 13.5px; font-weight: 600; padding: 6px 10px; gap: 9px; }
.subnav a .e { font-size: 15px; width: 20px; text-align: center; }
.crumb-up { font-weight: 700; }
.tile-big { grid-column: span 2; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 0; align-content: center; background: linear-gradient(135deg, var(--bamboo-soft), var(--surface) 70%); }
.tile-big .chip { grid-row: 1 / 4; width: 66px; height: 66px; font-size: 36px; align-self: center; }
.tile-big b { font-size: 17px; }
.tile-big .big { font-size: 26px; line-height: 1.3; }
.tile-big small { margin-top: 0; }
.hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.hub-card { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); color: var(--text); transition: transform .15s, box-shadow .15s; }
.hub-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(52, 86, 170, .3); }
.hub-card .chip { width: 60px; height: 60px; font-size: 30px; border-radius: 18px; }
.hub-card b { display: block; font-size: 16.5px; font-weight: 800; }
.hub-card small { display: block; color: var(--muted); font-size: 13px; }
.hub-num { text-align: end; flex: none; }
.hub-num b { font-size: 18px; }
.hub-go { color: var(--faint); font-size: 22px; }
@media screen and (max-width: 860px) {
	.tile-big { grid-column: span 3; text-align: start; }
	.hub { grid-template-columns: 1fr; }
	.hub-card { padding: 16px; } .hub-card .chip { width: 50px; height: 50px; font-size: 26px; }
}

/* ===== 2.5: المستخدم أعلى القائمة، الصور، الكتب ===== */
.side-user { display: flex; align-items: center; gap: 10px; padding: 10px; margin: 0 0 12px; border-radius: 16px; background: var(--surface-2, var(--line-2)); border: 1px solid var(--line); }
.side-user .who { flex: 1; min-width: 0; }
.side-user .who b { display: block; font-size: 13.5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: auto; unicode-bidi: plaintext; text-align: start; }
.side-user .who small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .su-acts { display: flex; gap: 2px; flex-shrink: 0; }
.side-user .su-acts .icon-btn { width: 32px; height: 32px; }

.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.thumb { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; padding: 0; border: 1px solid var(--line); background: var(--line-2); cursor: zoom-in; flex-shrink: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs.sm .thumb { width: 56px; height: 56px; border-radius: 10px; }
.imgpick > span { font-size: 13px; font-weight: 700; margin-bottom: 6px; display: block; }
.ip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.ip-item, .ip-add { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; }
.ip-item { background: var(--line-2); border: 1px solid var(--line); display: grid; place-items: center; }
.ip-item img { width: 100%; height: 100%; object-fit: cover; }
.ip-x { position: absolute; top: 4px; inset-inline-end: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.ip-add { border: 2px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; color: var(--muted); text-align: center; padding: 6px; transition: .15s; }
.ip-add:hover { border-color: var(--sky); color: var(--sky); background: var(--sky-soft); }
.ip-add .ip-plus { font-size: 24px; } .ip-add b { font-size: 12.5px; color: var(--ink); } .ip-add small { font-size: 10.5px; }
.ip-item.loading .spin { width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--sky); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,10,20,.94); display: grid; place-items: center; animation: fadeIn .15s; }
.lightbox img { max-width: 94vw; max-height: 86vh; border-radius: 10px; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox button, .lightbox a { position: absolute; border: 0; background: rgba(255,255,255,.14); color: #fff; border-radius: 999px; cursor: pointer; text-decoration: none; }
.lb-x { top: 16px; inset-inline-end: 16px; width: 44px; height: 44px; font-size: 28px; }
.lb-n { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 30px; }
.lb-prev { inset-inline-start: 12px; } .lb-next { inset-inline-end: 12px; }
.lb-c { position: absolute; top: 24px; inset-inline-start: 24px; color: #fff; font-size: 14px; opacity: .8; }
.lb-dl { bottom: 22px; left: 50%; transform: translateX(-50%); padding: 10px 18px; font-size: 14px; font-weight: 700; }
@keyframes fadeIn { from { opacity: 0; } }

.hw-cover { position: relative; margin: 4px 0 2px; height: 120px; border-radius: 12px; overflow: hidden; background: var(--line-2); }
.hw-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hw-cover span { position: absolute; bottom: 8px; inset-inline-start: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.hw-kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.hw-kid { padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.hw-kid.done { border-color: color-mix(in srgb, var(--bamboo) 45%, transparent); background: color-mix(in srgb, var(--bamboo) 7%, var(--surface)); }
.hw-kid small { display: block; color: var(--muted); font-size: 12px; }
.hw-kid .thumbs { margin: 8px 0 0; }
.hw-note, .hw-mine { margin-top: 8px; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: var(--line-2); }
.hw-fb { margin-top: 8px; font-size: 13px; font-weight: 600; padding: 8px 10px; border-radius: 10px; background: var(--honey-soft); color: var(--ink); }

.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.book-card { display: flex; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; }
.book-card.dim { opacity: .6; }
.bk-spine { width: 54px; flex-shrink: 0; background: linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c) 65%, #000)); display: grid; place-items: center; font-size: 26px; position: relative; }
.bk-spine::after { content: ''; position: absolute; inset-block: 0; inset-inline-end: 6px; width: 2px; background: rgba(255,255,255,.35); }
.bk-body { flex: 1; min-width: 0; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.bk-body > .row > b { font-size: 15px; }
.bk-price { font-size: 18px; font-weight: 800; }
.bk-meters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bk-meters > div { background: var(--line-2); border-radius: 10px; padding: 6px; text-align: center; }
.bk-meters span { display: block; font-size: 11px; color: var(--muted); }
.bk-meters b { font-size: 15px; }
.bk-warn { font-size: 12.5px; font-weight: 700; color: var(--coral); background: var(--coral-soft); padding: 6px 10px; border-radius: 10px; }
.pick-list { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 4px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px; }
.pick { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.pick:hover { background: var(--line-2); }
.pick small { margin-inline-start: auto; color: var(--muted); font-size: 12px; }
.pick:has(input:checked) { background: var(--sky-soft); }
.pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-opt { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; position: relative; }
.pay-opt input { position: absolute; opacity: 0; }
.pay-opt:has(input:checked) { border-color: var(--sky); background: var(--sky-soft); }
.pay-opt small { color: var(--muted); font-size: 12px; }
@media screen and (max-width: 760px) {
	.book-grid, .hw-kids { grid-template-columns: 1fr; }
	.pay-opts { grid-template-columns: 1fr; }
	.ip-grid { grid-template-columns: repeat(3, 1fr); }
	.lb-n { display: none; }
}
.side-user { flex-wrap: wrap; row-gap: 8px; }
.side-user .su-acts { width: 100%; justify-content: space-between; padding-top: 8px; border-top: 1px dashed var(--line); }
.side-user .su-acts .icon-btn { flex: 1; width: auto; border-radius: 10px; }
.hw-kids { align-items: start; }

/* ===== 2.6: الفترة، PDF، الجدول، المستخدمين ===== */
.pdf-btn { width: auto !important; padding: 0 10px; gap: 4px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 800; color: var(--coral); border: 1px solid color-mix(in srgb, var(--coral) 30%, transparent); border-radius: 12px; }
.pdf-btn svg { width: 18px; height: 18px; stroke: currentColor; }
.modal-h .pdf-btn { margin-inline-start: auto; margin-inline-end: 6px; height: 34px; }
.shift-pick, .role-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.sp-opt, .rp-opt { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; transition: .15s; }
.sp-opt input, .rp-opt input { position: absolute; opacity: 0; pointer-events: none; }
.sp-opt:has(input:checked), .rp-opt:has(input:checked) { border-color: var(--sky); background: var(--sky-soft); }
.sp-e, .rp-e { font-size: 22px; } .sp-opt small, .rp-opt small { color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.shift-pick { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.shift-evening { background: #2B2F5A !important; color: #E8E9FF !important; } .shift-morning { background: var(--honey-soft) !important; color: #8A5A00 !important; }
.emo-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.emo-pick label { cursor: pointer; } .emo-pick input { position: absolute; opacity: 0; }
.emo-pick span { display: grid; place-items: center; width: 40px; height: 40px; font-size: 20px; border-radius: 12px; border: 2px solid var(--line); }
.emo-pick input:checked + span { border-color: var(--sky); background: var(--sky-soft); }

.day-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); }
.day-head h2 { margin: 0; font-size: 20px; } .day-head .icon-btn { font-size: 26px; }
.day-prog { min-width: 130px; text-align: center; } .day-prog b { font-size: 20px; } .day-prog small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.banner { padding: 12px 16px; border-radius: 14px; background: var(--line-2); font-weight: 700; margin-bottom: 14px; }
.banner.holiday { background: var(--honey-soft); }
.ev-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ev-chip { padding: 6px 12px; border-radius: 999px; background: var(--plum-soft); font-weight: 700; font-size: 13px; }
.sl-group { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 18px 0 8px; } .sl-group i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.timeline { display: flex; flex-direction: column; gap: 0; position: relative; }
.slot { display: grid; grid-template-columns: 64px 22px 1fr; gap: 6px; align-items: stretch; }
.sl-time { text-align: center; padding-top: 12px; } .sl-time b { display: block; font-size: 15px; } .sl-time small { color: var(--muted); font-size: 12px; }
.sl-dot { position: relative; } .sl-dot::before { content: ''; position: absolute; inset-block: 0; left: 50%; width: 2px; background: var(--line); transform: translateX(-50%); }
.sl-dot::after { content: ''; position: absolute; top: 16px; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--c); transform: translateX(-50%); }
.slot.now .sl-dot::after { background: var(--c); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 25%, transparent); animation: pulse 1.6s infinite; }
.slot.lg-done .sl-dot::after { background: var(--bamboo); border-color: var(--bamboo); }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--c) 8%, transparent); } }
.sl-body { margin: 6px 0; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); border-inline-start: 4px solid var(--c); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 3px; }
.slot.past:not(.lg-done) .sl-body { opacity: .75; } .slot.now .sl-body { border-color: var(--c); }
.slot.lg-done .sl-body { background: color-mix(in srgb, var(--bamboo) 7%, var(--surface)); }
.slot.lg-skipped .sl-body { background: var(--line-2); }
.sl-log { font-size: 13px; font-weight: 700; margin-top: 4px; }
.wk-wrap { overflow-x: auto; padding: 0; }
.wk-grid { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 720px; }
.wk-grid th, .wk-grid td { border-bottom: 1px solid var(--line-2); border-inline-start: 1px solid var(--line-2); padding: 6px; vertical-align: top; }
.wk-grid thead th { background: var(--surface-2); font-size: 13px; padding: 10px 6px; position: sticky; top: 0; }
.wk-grid thead th.today { color: var(--sky); } .wk-grid tbody th { font-size: 12px; white-space: nowrap; color: var(--muted); width: 96px; }
.wk-slot { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: start; padding: 8px 10px; border: 0; border-radius: 10px; background: color-mix(in srgb, var(--c) 13%, var(--surface)); border-inline-start: 3px solid var(--c); cursor: pointer; font: inherit; color: inherit; margin-bottom: 4px; }
.wk-slot b { font-size: 13px; } .wk-slot small { font-size: 11.5px; color: var(--muted); }
.wk-empty { width: 100%; min-height: 40px; border: 1.5px dashed var(--line); border-radius: 10px; background: none; color: var(--muted); font-size: 18px; cursor: pointer; opacity: .5; }
.wk-empty:hover { opacity: 1; border-color: var(--sky); color: var(--sky); }
.wk-list { display: none; }
.mcal { padding: 0; overflow: hidden; display: block; }
.cal-h, .cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-h div { padding: 10px 4px; text-align: center; font-size: 12.5px; font-weight: 800; background: var(--surface-2); border-bottom: 1px solid var(--line-2); } .cal-h .off { color: var(--muted); }
.cal-d { min-height: 104px; padding: 6px; border-bottom: 1px solid var(--line-2); border-inline-start: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 3px; cursor: pointer; overflow: hidden; }
.cal-d:hover { background: var(--surface-2); } .cal-d.off { background: color-mix(in srgb, var(--line-2) 55%, transparent); } .cal-d.hol { background: var(--honey-soft); } .cal-d.blank { cursor: default; background: none; }
.cal-n { font-weight: 800; font-size: 13px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.cal-d.today .cal-n { background: var(--sky); color: #fff; }
.cal-it { display: block; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--plum-soft); }
.k-holiday { background: var(--honey-soft); } .k-trip { background: var(--teal-soft, var(--sky-soft)); } .k-exam { background: var(--coral-soft); } .k-meeting { background: var(--sky-soft); } .k-plan { background: var(--bamboo-soft); } .k-hw { background: var(--line-2); } .k-bd { background: var(--pink-soft); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; } .cal-legend .cal-it { display: inline-block; font-size: 12px; }

.role-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.rs { display: flex; flex-direction: column; align-items: center; min-width: 96px; padding: 10px 14px; border-radius: 16px; border: 2px solid var(--line-2); background: var(--surface); cursor: pointer; font: inherit; color: inherit; box-shadow: var(--shadow); }
.rs b { font-size: 22px; color: var(--c, var(--ink)); } .rs span { font-size: 12.5px; font-weight: 700; } .rs.on { border-color: var(--sky); background: var(--sky-soft); }
.user-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.user-card { padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.user-card.off { opacity: .6; } .uc-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: plaintext; }
.role-b { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: var(--cs); color: var(--ink); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.perm-m th.c, .perm-m td.c { text-align: center; font-size: 12.5px; } .perm-m tr.grp td { background: var(--surface-2); font-weight: 800; }
.perm-m .yes { color: var(--bamboo); font-weight: 900; font-size: 16px; } .perm-m .no { color: var(--line); }
.pdf-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #eef2fa; font-size: 12px; font-weight: 700; margin-inline-end: 6px; }

@media screen and (max-width: 760px) {
	.wk-wrap { display: none; } .wk-list { display: flex; flex-direction: column; gap: 10px; }
	.cal-d { min-height: 64px; padding: 3px; } .cal-g .cal-it { font-size: 0; padding: 0; width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin: 1px; }
	.cal-h div { font-size: 10px; padding: 8px 0; }
	.day-head h2 { font-size: 17px; } .day-prog { min-width: 90px; }
	.pdf-btn span { display: none; } .pdf-btn { padding: 0 8px; }
	.slot { grid-template-columns: 52px 18px 1fr; }
}
@media print {
	#print-root .pdf-doc { font-size: 12px; }
	#print-root .pdf-body .toolbar { margin-bottom: 8px; }
	#print-root .stats { grid-template-columns: repeat(4, 1fr); gap: 8px; }
	#print-root .stat, #print-root .panel, #print-root .book-card, #print-root .hw-card, #print-root .user-card, #print-root .slot, #print-root .kid, #print-root .tile, #print-root tr { break-inside: avoid; box-shadow: none !important; }
	#print-root .panel { border: 1px solid #dde3ef !important; padding: 8px; margin-bottom: 10px; }
	#print-root table { width: 100%; font-size: 11px; } #print-root .tbl-wrap { overflow: visible; }
	#print-root .wk-wrap { display: block !important; } #print-root .wk-list { display: none !important; } #print-root .wk-grid { min-width: 0; }
	#print-root .cal-d { min-height: 70px; } #print-root .lightbox { display: none; }
	#print-root .hello, #print-root .bottom-nav { display: none; }
	* { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.bye-note { padding: 12px 14px; border-radius: 14px; background: var(--bamboo-soft); color: var(--ink); font-weight: 700; margin-bottom: 16px; text-align: center; animation: fadeIn .4s; }
.lost-box { text-align: center; font-size: 13.5px; } .lost-box summary { cursor: pointer; color: var(--muted); list-style: none; }
.lost-box > div { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--sky-soft); }

/* ===== 2.7: الرسائل ===== */
.chat-app { display: grid; grid-template-columns: 340px 1fr; gap: 0; height: calc(100vh - 150px); min-height: 480px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.chat-list { border-inline-end: 1px solid var(--line-2); overflow-y: auto; display: flex; flex-direction: column; }
.cl-h { display: flex; gap: 8px; align-items: center; padding: 12px; position: sticky; top: 0; background: var(--surface); z-index: 2; border-bottom: 1px solid var(--line-2); }
.cl-h .input-search { min-width: 0; }
.cl-sec { padding: 10px 14px 4px; font-size: 12px; font-weight: 800; color: var(--muted); }
.chat-item { display: flex; gap: 10px; align-items: center; padding: 10px 14px; text-decoration: none; color: inherit; border: 0; background: none; font: inherit; width: 100%; cursor: pointer; border-bottom: 1px solid var(--line-2); }
.chat-item:hover { background: var(--surface-2); } .chat-item.on { background: var(--sky-soft); }
.chat-item.starter { background: color-mix(in srgb, var(--plum) 5%, var(--surface)); }
.chat-av { width: 44px; height: 44px; flex-shrink: 0; border-radius: 15px; display: grid; place-items: center; font-size: 22px; background: color-mix(in srgb, var(--c) 15%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.ci-t { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.ci-p { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12.5px; }
.chat-item.unread .ci-t, .chat-item.unread .ci-p { font-weight: 800; color: var(--ink); }
.ci-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--bamboo); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.empty-mini { padding: 30px 16px; text-align: center; color: var(--muted); font-size: 13.5px; }
.chat-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--paper); }
.empty-pane { align-items: center; justify-content: center; text-align: center; padding: 20px; }
.cp-h { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line-2); }
.cp-h small { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-back { display: none; font-size: 26px; text-decoration: none; }
.msgs { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; }
#msg-list { display: flex; flex-direction: column; gap: 4px; }
.more-btn { align-self: center; margin-bottom: 8px; }
.m-day { text-align: center; margin: 10px 0 6px; } .m-day span { font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--surface); padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line-2); }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 78%; }
.msg.mine { align-self: flex-start; align-items: flex-start; } .msg:not(.mine) { align-self: flex-end; align-items: flex-end; }
[dir=rtl] .msg.mine, .msg.mine { align-self: flex-start; } 
.m-by { font-size: 11.5px; font-weight: 800; color: var(--plum); margin: 6px 6px 2px; }
.m-b { position: relative; padding: 8px 12px 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 1px 2px rgba(20,30,60,.05); min-width: 70px; }
.msg.mine .m-b { background: var(--sky); color: #fff; border-color: transparent; border-start-start-radius: 4px; }
.msg:not(.mine) .m-b { border-start-end-radius: 4px; }
.m-t { white-space: pre-wrap; word-break: break-word; font-size: 14.5px; line-height: 1.6; }
.m-b .thumbs { margin: 2px 0 6px; } .m-b .thumb { width: 150px; height: 150px; }
.m-time { display: flex; gap: 6px; align-items: center; justify-content: flex-end; font-size: 10.5px; opacity: .7; margin-top: 2px; }
.m-del { border: 0; background: none; cursor: pointer; font-size: 11px; opacity: .6; padding: 0; color: inherit; } .m-del:hover { opacity: 1; }
.msg.del .m-b { background: var(--line-2) !important; color: var(--muted) !important; }
.composer { padding: 10px 12px; background: var(--surface); border-top: 1px solid var(--line-2); }
.composer.ro { text-align: center; color: var(--muted); font-size: 13.5px; font-weight: 700; }
.cmp-row { display: flex; gap: 8px; align-items: flex-end; }
.cmp-row textarea { flex: 1; resize: none; min-height: 44px; max-height: 140px; border-radius: 22px !important; padding: 10px 16px !important; line-height: 1.5; }
.cmp-send { width: 46px; height: 46px; padding: 0; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; } .cmp-send svg { width: 20px; height: 20px; stroke: currentColor; transform: scaleX(-1); }
.cmp-att { width: 44px; height: 44px; font-size: 20px; cursor: pointer; flex-shrink: 0; display: grid; place-items: center; }
.cmp-imgs { display: flex; gap: 6px; flex-wrap: wrap; } .cmp-imgs:not(:empty) { margin-bottom: 8px; }
.cmp-img { position: relative; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--line-2); display: grid; place-items: center; }
.cmp-img img { width: 100%; height: 100%; object-fit: cover; } .cmp-img button { position: absolute; top: 2px; inset-inline-end: 2px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
.pick .star { cursor: pointer; } .pick .star input { position: absolute; opacity: 0; } .pick .star span { filter: grayscale(1); opacity: .35; font-size: 18px; } .pick .star input:checked + span { filter: none; opacity: 1; }
@media screen and (max-width: 760px) {
	.chat-app { grid-template-columns: 1fr; height: calc(100vh - 205px); border-radius: 18px; }
	.chat-app.has-open .chat-list { display: none; } .chat-app:not(.has-open) .chat-pane { display: none; }
	.cp-back { display: grid; } .msg { max-width: 88%; } .m-b .thumb { width: 120px; height: 120px; }
}
.cl-h .input-search { flex: 1 1 auto; width: auto !important; min-width: 0 !important; max-width: none; } .cl-h .input-search input { width: 100%; min-width: 0; } .cl-h > .btn { flex-shrink: 0; position: relative; z-index: 1; }

/* ===== 2.8: حضور الموظفين ===== */
.sec-t { font-size: 16px; margin: 18px 0 10px; }
.punch { display: flex; align-items: center; gap: 16px; padding: 16px 18px; margin-bottom: 16px; border-radius: var(--r); background: linear-gradient(135deg, color-mix(in srgb, var(--sky) 12%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--sky) 25%, transparent); box-shadow: var(--shadow); }
.punch.st-in { background: linear-gradient(135deg, color-mix(in srgb, var(--bamboo) 14%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--bamboo) 30%, transparent); }
.punch.st-done, .punch.st-marked { background: var(--surface); }
.pc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pc-clock { font-size: 30px; font-weight: 900; letter-spacing: 1px; line-height: 1.1; }
.pc-times { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); } .pc-times b { color: var(--ink); font-size: 15px; }
.pc-warn { color: var(--coral); font-weight: 800; } .pc-ok { color: #A36A00; font-weight: 800; }
.pc-btn { flex-shrink: 0; min-width: 170px; min-height: 64px; padding: 10px 18px; border: 0; border-radius: 18px; font: inherit; font-size: 16px; font-weight: 900; color: #fff; cursor: pointer; background: linear-gradient(135deg, var(--sky), color-mix(in srgb, var(--sky) 70%, #000)); box-shadow: 0 8px 20px color-mix(in srgb, var(--sky) 35%, transparent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: transform .1s; }
.pc-btn small { font-size: 11px; font-weight: 600; opacity: .85; }
.pc-btn:active { transform: scale(.97); }
.st-in .pc-btn { background: linear-gradient(135deg, var(--coral), color-mix(in srgb, var(--coral) 70%, #000)); box-shadow: 0 8px 20px color-mix(in srgb, var(--coral) 35%, transparent); }
.pc-btn:disabled { background: var(--line-2); color: var(--muted); box-shadow: none; cursor: default; }
.punch.big { flex-direction: column; text-align: center; padding: 26px 18px; }
.punch.big .pc-info { align-items: center; } .punch.big .pc-clock { font-size: 52px; } .punch.big .pc-times { justify-content: center; }
.punch.big .pc-btn { width: 100%; max-width: 360px; min-height: 84px; font-size: 20px; border-radius: 24px; }
.sa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.sa-card { padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; border-inline-start: 4px solid var(--line); }
.sa-card.s-in { border-inline-start-color: var(--bamboo); } .sa-card.s-left { border-inline-start-color: var(--sky); } .sa-card.s-not_in, .sa-card.s-absent { border-inline-start-color: var(--coral); } .sa-card.s-leave, .sa-card.s-sick { border-inline-start-color: var(--honey); }
.sa-card .ci-t + small { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .sa-times > div { background: var(--line-2); border-radius: 10px; padding: 6px; text-align: center; } .sa-times small { display: block; font-size: 11px; color: var(--muted); } .sa-times b { font-size: 15px; }
.att-hint { color: var(--sky) !important; }
.role-stats .rs { cursor: default; }
@media screen and (max-width: 760px) {
	.punch:not(.big) { flex-direction: column; align-items: stretch; text-align: center; } .punch:not(.big) .pc-info { align-items: center; } .punch:not(.big) .pc-times { justify-content: center; }
	.pc-btn { min-width: 0; width: 100%; } .sa-grid { grid-template-columns: 1fr; }
}

/* ===== 2.9: تعديل الأدوار ===== */
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.role-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); cursor: pointer; font: inherit; color: inherit; transition: .15s; }
.role-card:hover { border-color: var(--sky); transform: translateY(-1px); }
.rc-e { width: 52px; height: 52px; flex-shrink: 0; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: var(--line-2); }
.role-card b { display: block; font-size: 15px; } .role-card small { display: block; font-size: 12.5px; }
.rc-go { opacity: .45; font-size: 16px; }
.perm-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.pg { border: 1px solid var(--line-2); border-radius: 14px; padding: 6px 10px 10px; margin: 0; min-width: 0; }
.pg legend { display: flex; align-items: center; gap: 8px; width: 100%; padding: 4px 2px; font-weight: 800; font-size: 13.5px; }
.pg legend span { flex: 1; }
.pg-cap { display: flex; align-items: center; gap: 8px; padding: 7px 6px; border-radius: 10px; cursor: pointer; font-size: 13.5px; }
.pg-cap:hover { background: var(--line-2); } .pg-cap:has(input:checked) { background: var(--bamboo-soft); }
.pg-cap.locked { cursor: default; opacity: .75; } .pg-cap input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--bamboo); }
.pm-wrap { padding: 0; overflow: auto; max-height: 70vh; }
.pm-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 640px; font-size: 13px; }
.pm-table th, .pm-table td { padding: 9px 8px; border-bottom: 1px solid var(--line-2); text-align: center; white-space: nowrap; }
.pm-table thead th { position: sticky; top: 0; background: var(--surface-2); z-index: 2; vertical-align: bottom; }
.pm-table .pm-cap { position: sticky; inset-inline-start: 0; background: var(--surface); text-align: start; z-index: 1; min-width: 170px; max-width: 220px; white-space: normal; box-shadow: -1px 0 0 var(--line-2) inset; }
.pm-table thead .pm-cap { z-index: 3; background: var(--surface-2); }
.pm-table tr.grp td { background: var(--surface-2); font-weight: 800; text-align: start; }
.pm-role { border: 0; background: none; font: inherit; color: inherit; font-weight: 800; cursor: pointer; line-height: 1.5; }
.pm-table .yes { color: var(--bamboo); font-weight: 900; font-size: 16px; } .pm-table .no { color: var(--line); }
@media screen and (max-width: 760px) { .pm-table { font-size: 12px; min-width: 560px; } .pm-table .pm-cap { min-width: 130px; max-width: 150px; } .perm-groups { grid-template-columns: 1fr; } }
.role-card { flex-direction: row !important; text-align: start !important; justify-content: flex-start !important; } .role-card .rc-e { width: 46px; height: 46px; font-size: 22px; }
.role-card .rc-go { font-size: 14px !important; width: auto !important; height: auto !important; flex-shrink: 0; }

/* ===== 2.10: بصمة الموبايل ===== */
.bio-sim { position: fixed; inset: 0; z-index: 220; background: rgba(10,14,30,.6); display: grid; place-items: end center; animation: fadeIn .15s; }
.bs-card { width: min(420px, 100%); background: var(--surface); border-radius: 28px 28px 0 0; padding: 26px 20px 30px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; box-shadow: 0 -10px 40px rgba(0,0,0,.25); }
.bs-card b { font-size: 18px; } .bs-card small { color: var(--muted); font-size: 12.5px; }
.bs-fp { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--sky); background: var(--sky-soft); font-size: 44px; cursor: pointer; animation: fpPulse 1.4s infinite; }
.bs-fp.ok { border-color: var(--bamboo); background: var(--bamboo-soft); animation: none; }
@keyframes fpPulse { 50% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--sky) 15%, transparent); } }
.bio-box .list { margin-bottom: 4px; }
.li-warn { background: color-mix(in srgb, var(--honey) 10%, transparent); }
.dev-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media screen and (max-width: 760px) { .dev-li { flex-wrap: wrap; } .dev-li > .grow { flex: 1 1 calc(100% - 60px); min-width: 0; } .dev-acts { width: 100%; justify-content: space-between; padding-inline-start: 52px; } }

/* ===== 2.11: الإشعارات والنسخ الاحتياطي ===== */
.push-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 14px; border-radius: var(--r); background: linear-gradient(135deg, color-mix(in srgb, var(--honey) 14%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--honey) 30%, transparent); box-shadow: var(--shadow); flex-wrap: wrap; }
.push-card.st-on { background: color-mix(in srgb, var(--bamboo) 8%, var(--surface)); border-color: color-mix(in srgb, var(--bamboo) 25%, transparent); }
.push-card .pc-ic { font-size: 30px; }
.push-card .grow { min-width: 200px; } .push-card b { display: block; font-size: 15px; } .push-card small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
/* 2.11.1 — رابط البصمة في كارت الحضور */
.punch .pc-link { display: block; text-align: center; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--sky, #4f86f7); text-decoration: none; }
.punch .pc-warn[data-skew] { display: block; margin-top: 6px; font-size: 12.5px; }
.punch .pc-warn[data-skew][hidden] { display: none; }
.bio-mode { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 12px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); }
.bio-mode b { display: block; font-size: 15px; } .bio-mode small { color: var(--muted); }
.bio-mode.on { border-color: color-mix(in srgb, var(--bamboo, #2fb36d) 50%, transparent); }
@media screen and (max-width: 560px) { .bio-mode .btn { width: 100%; } }
/* 2.12 — شاشة تأكيد الهوية باسم الأكاديمية */
.bio-sim { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bio-sim.out { opacity: 0; transition: opacity .2s; }
.bs-card { animation: sheetUp .28s cubic-bezier(.2,.9,.3,1.2); padding-bottom: max(30px, env(safe-area-inset-bottom)); }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
.bs-brand { display: flex; align-items: center; gap: 10px; }
.bs-brand img { width: 44px; height: 44px; border-radius: 14px; object-fit: cover; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.bs-brand b { font-size: 19px; font-weight: 900; }
.bs-title { margin: -4px 0 4px; font-weight: 700; color: var(--ink-2, inherit); }
.bs-btns { display: flex; gap: 8px; justify-content: center; }
.bio-sim.err .bs-fp { border-color: var(--coral); background: var(--coral-soft); animation: shake .35s; }
.bio-sim.err .bs-msg { color: var(--coral); font-weight: 700; }
.bs-fp.ok { border-color: var(--bamboo); background: var(--bamboo-soft); animation: none; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* 2.12 — شريط التحميل والتنقل بين الشاشات */
#pnm-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 400; pointer-events: none; opacity: 0; transition: opacity .25s .1s; }
#pnm-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sky), var(--plum, #8b5cf6), var(--sky)); background-size: 200% 100%; border-radius: 0 3px 3px 0; box-shadow: 0 0 10px var(--sky); transition: width .35s ease; animation: progShine 1.2s linear infinite; margin-inline-start: auto; }
[dir=rtl] #pnm-progress i { border-radius: 3px 0 0 3px; }
#pnm-progress.on { opacity: 1; transition-delay: 0s; }
@keyframes progShine { to { background-position: -200% 0; } }
.view { transition: opacity .16s ease; }
.view.leaving { opacity: .35; }
.view.enter { animation: viewin2 .28s cubic-bezier(.2,.8,.2,1); }
@keyframes viewin2 { from { opacity: 0; transform: translateY(10px) scale(.995); } }
.view.enter > * { animation: stagger .34s cubic-bezier(.2,.8,.2,1) both; }
.view.enter > *:nth-child(2) { animation-delay: .03s; } .view.enter > *:nth-child(3) { animation-delay: .06s; } .view.enter > *:nth-child(4) { animation-delay: .09s; } .view.enter > *:nth-child(n+5) { animation-delay: .12s; }
@keyframes stagger { from { opacity: 0; transform: translateY(8px); } }
.bottom-nav a, .bottom-nav button, .nav a, .tile, .btn { -webkit-tap-highlight-color: transparent; }
.bottom-nav a:active, .bottom-nav button:active, .tile:active, .btn:active:not(:disabled) { transform: scale(.95); transition: transform .08s; }
.bottom-nav a .e { transition: transform .2s cubic-bezier(.3,1.6,.5,1); }
.bottom-nav a.on .e { transform: translateY(-2px) scale(1.12); }
.view.leaving { pointer-events: none; }
.auth-tag { display: inline-block; margin: 0 0 12px; padding: 4px 14px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 13.5px; font-weight: 700; letter-spacing: .3px; direction: auto; }
@media screen and (max-width: 860px) { .auth-tag { margin-bottom: 8px; font-size: 12.5px; } }
.bio-sim [hidden] { display: none !important; }
/* 2.12.1 — لودر التنقل بدل البهتان */
.view.leaving { opacity: 1; pointer-events: auto; }
.pnm-loader { min-height: 52vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--muted); font-weight: 700; font-size: 14px; animation: plIn .18s ease-out; }
@keyframes plIn { from { opacity: 0; transform: scale(.96); } }
.pl-ring { position: relative; width: 78px; height: 78px; display: grid; place-items: center; }
.pl-ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--sky); border-inline-start-color: var(--sky); animation: spin .75s linear infinite; }
.pl-ring img { width: 54px; height: 54px; border-radius: 16px; object-fit: cover; animation: plPulse 1.1s ease-in-out infinite; }
@keyframes plPulse { 50% { transform: scale(.9); } }
/* 2.13 — تثبيت التطبيق (آيفون + أندرويد) */
.side-install { display: flex; align-items: center; gap: 8px; width: calc(100% - 4px); margin: 4px 2px 10px; padding: 10px 14px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--sky) 55%, transparent); background: var(--sky-soft); color: var(--sky); font: inherit; font-weight: 800; font-size: 13.5px; cursor: pointer; }
.inst-nudge { position: fixed; z-index: 150; inset-inline: 12px; bottom: calc(92px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 12px 34px rgba(16,24,48,.22); animation: sheetUp .3s cubic-bezier(.2,.9,.3,1.2); }
.inst-nudge .in-ic { font-size: 26px; } .inst-nudge b { display: block; font-size: 14px; } .inst-nudge small { color: var(--muted); font-size: 12px; }
.inst-nudge .in-x { border: 0; background: none; color: var(--muted); font-size: 16px; padding: 4px 6px; cursor: pointer; }
.pnm-auth ~ .inst-nudge, body:not(:has(.bottom-nav)) .inst-nudge { bottom: calc(16px + env(safe-area-inset-bottom)); }
@media screen and (min-width: 861px) { .inst-nudge { inset-inline: auto 24px; bottom: 24px; width: 380px; } }
.inst-sheet .bs-card { align-items: stretch; text-align: start; gap: 12px; max-height: 92vh; overflow: auto; }
.inst-sheet .bs-brand, .inst-sheet .bs-title { align-self: center; text-align: center; }
.is-perks { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.is-perks span { padding: 4px 10px; border-radius: 999px; background: var(--sky-soft); color: var(--sky); font-size: 12px; font-weight: 700; }
.is-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.is-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--bg, rgba(0,0,0,.03)); border: 1px solid var(--line-2); }
.is-n { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--sky); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.is-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); display: grid; place-items: center; color: #0A84FF; font-size: 20px; font-weight: 900; }
.is-steps b { display: block; font-size: 14px; } .is-steps small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; line-height: 1.6; }
.is-lead, .is-note { margin: 0; font-size: 13.5px; color: var(--muted); text-align: center; line-height: 1.7; }
.inst-sheet .btn.full { width: 100%; justify-content: center; }
.inst-sheet .bs-x { align-self: center; }
.is-arrow { text-align: center; font-size: 30px; animation: bob 1s ease-in-out infinite; margin: -4px 0 -6px; }
@keyframes bob { 50% { transform: translateY(6px); } }
@media screen and (min-width: 700px) { .inst-sheet .is-arrow { display: none; } }

/* 2.14 — بطاقات موحّدة على الموبايل */
@media screen and (max-width: 760px) {
	.facts { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
	.facts .fact { min-width: 0; margin: 0; padding: 12px 14px; min-height: 70px; border-radius: 14px; background: var(--surface-2, #f7f8fb); border: 1px solid var(--line-2); display: flex; flex-direction: column; justify-content: center; gap: 4px; box-sizing: border-box; }
	.facts .fact > span { font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.3; }
	.facts .fact > b { font-size: 14.5px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
	.facts .fact:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.profile-head { gap: 12px; }
	.profile-head .btns { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.profile-head .btns .btn { justify-content: center; width: 100%; padding: 10px 8px; font-size: 13.5px; }
	.tabs { gap: 8px; padding: 2px 2px 8px; scrollbar-width: none; }
	.tabs::-webkit-scrollbar { display: none; }
	.tabs button, .tabs a { padding: 9px 16px; min-height: 40px; }
	.panel, .stat, .kpi { border-radius: 16px; }
	.stat, .kpi { padding: 14px; }
	.li { padding: 12px 14px; }
}
@media screen and (max-width: 760px) { .profile-head .btns .btn.ghost { border: 1px solid var(--line); background: var(--surface); } .profile-head .btns .btn.ghost.danger { border-color: #f3c7c7; } }

/* 2.15 — إيصال حراري 80مم */
@media print {
	#print-root .thermal { width: 74mm; margin: 0 auto; font-size: 11px; line-height: 1.45; }
	#print-root .thermal .doc { max-width: none !important; padding: 0; }
	#print-root .thermal .doc-meta { display: block; }
	#print-root .thermal .doc-meta > div { display: flex; justify-content: space-between; border-bottom: 1px dashed #999; padding: 3px 0; }
	#print-root .thermal table { font-size: 11px; }
	#print-root .thermal th, #print-root .thermal td { padding: 3px 2px; }
	#print-root .thermal .row { display: block !important; margin-top: 14px !important; }
	#print-root .thermal img { max-height: 40px; }
}

/* 2.15 — قائمة النهارده */
.today-box { padding: 0; margin-bottom: 16px; overflow: hidden; }
.today-box .panel-h { padding: 14px 18px 4px; }
.today-list { display: flex; flex-direction: column; padding: 4px 8px 10px; }
.today-it { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 12px; color: inherit; text-decoration: none; font-weight: 600; font-size: 14.5px; }
.today-it:hover, .today-it:active { background: var(--surface-2); }
.today-it .ti { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--surface-2); font-size: 17px; flex: none; }
.empty-ok { padding: 14px 18px 18px; color: var(--muted); font-weight: 600; }

/* 2.15.1 — زرار التثبيت في صفحة الدخول + تحسينات الآيفون */
.auth-install { margin-top: 14px; width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--sky, #4C7CF5) 60%, transparent); background: var(--sky-soft, #EAF0FF); color: var(--sky, #1F5FBF); font-weight: 800; font-size: 14px; cursor: pointer; font-family: inherit; }
#pnm-root [hidden], .modal [hidden] { display: none !important; }
.modal, .modal-b, .fields > *, .field { min-width: 0; max-width: 100%; }
.modal input[type=date], .modal input[type=time] { min-width: 0; width: 100%; box-sizing: border-box; }
.modal .note, .modal .muted { overflow-wrap: anywhere; }
@media screen and (max-width: 760px) { .doc { max-width: 100%; overflow-x: hidden; } .doc .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; } .doc table.t th, .doc table.t td { padding: 8px 6px; font-size: 13px; } }

/* 2.16.1 — أداء الموبايل: بلاش blur ولا ظلال تقيلة */
@media screen and (max-width: 760px) {
	.overlay, .bio-sim { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
	.overlay { background: rgba(20, 28, 50, .55); }
	.view.enter { animation-duration: .12s !important; }
	.card, .panel, .stat, .kpi { box-shadow: 0 1px 3px rgba(0, 0, 0, .06) !important; }
	* { -webkit-tap-highlight-color: transparent; }
	.list, .tbl-wrap { contain: content; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ===== 2.18 توحيد الأزرار والجداول والكروت ===== */
.acts { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: nowrap; }
.acts .btn.xs { min-width: 32px; height: 32px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; white-space: nowrap; }
.acts .btn.xs svg { width: 16px; height: 16px; }
.btn.danger.ghost, .btn.ghost.danger { border-color: color-mix(in srgb, var(--coral, #e5534b) 35%, transparent); }
.t td { vertical-align: middle; }
.t td .sub { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.t td:first-child, .t th:first-child { padding-inline-start: 18px; }
.t td:last-child, .t th:last-child { padding-inline-end: 18px; }
.t tbody tr:last-child td { border-bottom: 0; }
.t td[class="e"] .badge, .t td .badge { white-space: nowrap; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar .grow { flex: 1 1 8px; }
.toolbar .btn { height: 40px; }
.panel, .book-card, .kid, .stat { border-radius: 18px; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.book-grid > * { min-width: 0; }
.modal .note { line-height: 1.7; }
.modal .fields { gap: 12px 14px; }
.modal-foot .btn, .modal .actions .btn { min-width: 96px; }
@media (max-width: 720px) {
	.toolbar { gap: 8px; }
	.toolbar .btn { flex: 1 1 calc(50% - 8px); justify-content: center; }
	.toolbar .seg { flex: 1 1 100%; overflow-x: auto; }
	.cards-m .t .acts { justify-content: flex-end; }
	.acts .btn.xs { height: 36px; min-width: 40px; }
	.book-grid { grid-template-columns: 1fr; }
}
.book-card .row .btn.xs, .book-grid .row .btn.xs { flex: 1 1 auto; justify-content: center; height: 34px; }

/* ===== 2.19 activities & friendly home ===== */
.spill{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;font-weight:700;font-size:13px;background:#eef2ff;color:#3730a3}
.spill small{font-weight:500;opacity:.7;font-size:11px}
.spill.t-amber{background:#fef3c7;color:#92400e}.spill.t-blue{background:#dbeafe;color:#1e40af}.spill.t-pink{background:#fce7f3;color:#9d174d}
.spill.t-orange{background:#ffedd5;color:#9a3412}.spill.t-indigo{background:#e0e7ff;color:#3730a3}.spill.t-teal{background:#ccfbf1;color:#115e59}
.spill.t-green{background:#dcfce7;color:#166534}.spill.t-red{background:#fee2e2;color:#991b1b}.spill.t-violet{background:#ede9fe;color:#5b21b6}.spill.t-none{background:#f1f5f9;color:#64748b}
.act-board{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.act-kid{background:#fff;border:1px solid #e8ebf3;border-radius:20px;padding:14px;display:flex;flex-direction:column;gap:10px;box-shadow:0 2px 10px rgba(30,41,90,.05)}
.act-kid.away{opacity:.55}
.act-feed{display:flex;flex-direction:column;gap:10px}
.act-item{display:flex;gap:12px;align-items:center;padding:12px 14px;border-radius:18px;background:#fff;border:1px solid #e8ebf3}
.act-item.t-amber{background:#fffbeb}.act-item.t-blue{background:#eff6ff}.act-item.t-pink{background:#fdf2f8}.act-item.t-orange{background:#fff7ed}
.act-item.t-indigo{background:#eef2ff}.act-item.t-teal{background:#f0fdfa}.act-item.t-green{background:#f0fdf4}.act-item.t-red{background:#fef2f2}.act-item.t-violet{background:#f5f3ff}
.act-ic{font-size:26px;width:46px;height:46px;border-radius:16px;background:#fff;display:grid;place-items:center;box-shadow:0 2px 6px rgba(0,0,0,.06);flex:none}
.act-time{font-size:12px;color:#64748b}
.day-h{font-weight:800;margin:10px 0 4px;color:#475569}
.chips-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px}
.chip-opt input{position:absolute;opacity:0}
.chip-opt span{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 6px;border:2px solid #e5e7eb;border-radius:16px;cursor:pointer;text-align:center;font-size:13px;background:#fff}
.chip-opt span b{font-weight:700}
.chip-opt input:checked+span{border-color:#6366f1;background:#eef2ff;box-shadow:0 0 0 3px rgba(99,102,241,.15)}
.status-hero{display:flex;gap:16px;align-items:center;padding:20px;border-radius:26px;background:linear-gradient(135deg,#eef2ff,#fdf2f8);margin-bottom:14px}
.status-hero .sh-emoji{font-size:54px;width:84px;height:84px;display:grid;place-items:center;background:#fff;border-radius:26px;box-shadow:0 6px 18px rgba(80,80,160,.12)}
.status-hero h2{margin:2px 0 0}.status-hero small{color:#64748b}
.status-hero.t-nap{background:linear-gradient(135deg,#e0e7ff,#f5f3ff)}.status-hero.t-meal{background:linear-gradient(135deg,#ffedd5,#fef3c7)}
.status-hero.t-green{background:linear-gradient(135deg,#dcfce7,#ecfeff)}
@media(max-width:600px){.status-hero{flex-direction:column;text-align:center}}
.launcher{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:14px;margin:16px 0}
.lt{background:var(--bg);border-radius:24px;padding:18px 10px;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;text-decoration:none;color:#334155;font-size:13px;transition:transform .15s,box-shadow .15s;box-shadow:0 2px 8px rgba(40,50,90,.05)}
.lt:hover{transform:translateY(-3px);box-shadow:0 10px 22px rgba(40,50,90,.12)}
.lt-e{font-size:34px;width:64px;height:64px;border-radius:22px;background:rgba(255,255,255,.75);display:grid;place-items:center}
@media(max-width:600px){.launcher{grid-template-columns:repeat(3,1fr);gap:10px}.lt{padding:14px 6px}.lt-e{width:52px;height:52px;font-size:28px}}
/* ===== 2.20 audit ===== */
.aud-bar{display:flex;flex-wrap:wrap;gap:8px}.aud-bar select,.aud-bar input{min-width:130px}
.aud-list{display:flex;flex-direction:column}
.aud-item{display:flex;gap:12px;align-items:flex-start;padding:12px 4px;border-bottom:1px solid #eef0f6}
.aud-item:last-child{border-bottom:0}
.aud-ic{width:38px;height:38px;border-radius:12px;background:#eef2ff;display:grid;place-items:center;font-size:18px;flex:none}
.aud-item.bad .aud-ic{background:#fee2e2}.aud-item.del .aud-ic{background:#ffedd5}
.aud-act{color:#4f46e5;font-weight:700}.aud-det{font-size:12.5px;word-break:break-word;margin-top:2px}
.aud-t{display:flex;flex-direction:column;align-items:flex-end;font-size:12px;white-space:nowrap;gap:2px}
@media(max-width:600px){.aud-item{flex-wrap:wrap}.aud-t{flex-direction:row;gap:8px;width:100%}}
/* ===== 2.23.1 back button ===== */
.back-btn{display:inline-grid;place-items:center;font-size:22px;font-weight:800;flex:none}
.back-btn.hide{display:none}
/* ===== 2.24 face kiosk ===== */
.enroll{display:flex;flex-direction:column;align-items:center;gap:10px}
.enroll-cam{width:min(70vw,260px);aspect-ratio:1;border-radius:50%;overflow:hidden;background:#0f172a;box-shadow:0 8px 24px rgba(76,124,245,.25)}
.enroll-cam video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}
.enroll-st{font-weight:700;text-align:center}
.enroll-bar{width:100%;height:10px;border-radius:99px;background:#e5e7eb;overflow:hidden}.enroll-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#4c7cf5,#22c55e);transition:width .3s}
.copy-box input{width:100%;font-size:12px}
.toolbar .seg{flex-wrap:wrap}
.kiosk-cta{display:flex;align-items:center;gap:12px;padding:14px 16px;margin:0 0 12px;border-radius:20px;background:linear-gradient(135deg,#e0e7ff,#fdf2f8);text-decoration:none;color:inherit;font-size:14px}
.kiosk-cta>span:first-child{font-size:30px}.kiosk-cta b{display:block}.kiosk-cta small{color:#64748b}
.kiosk-here{display:flex;align-items:center;gap:12px;width:100%;text-align:start;border:0;cursor:pointer;padding:16px;margin:0 0 12px;border-radius:20px;background:linear-gradient(135deg,#4c7cf5,#7c5cf5);color:#fff;font:inherit;box-shadow:0 8px 22px rgba(76,124,245,.3)}
.kiosk-here>span{font-size:32px}.kiosk-here b{display:block;font-size:16px}.kiosk-here small{opacity:.85}
/* ===== 2.25 باقة المتابعة + القصص + التطور ===== */
.lock-card{max-width:520px;margin:20px auto;text-align:center;background:var(--surface);border:1px solid var(--line);border-radius:26px;padding:30px 22px;box-shadow:var(--shadow)}
.lock-card .lock-e{font-size:56px}.lock-card h2{margin:8px 0}.lock-card p{color:var(--muted);line-height:1.8}
.promo{display:flex;align-items:center;gap:12px;padding:14px 16px;margin:0 0 14px;border-radius:22px;background:linear-gradient(135deg,#ffd76a,#ff9f6a);color:#3b2400;text-decoration:none;box-shadow:0 8px 22px rgba(255,159,106,.3)}
.promo-e{font-size:32px}.promo b{display:block}.promo small{opacity:.85;font-size:12.5px}
.promo-p{display:flex;flex-direction:column;align-items:center;line-height:1.1}.promo-p s{opacity:.7;font-size:13px}.promo-p b{font-size:26px}.promo-p small{font-size:11px}
.story-day{display:flex;align-items:center;gap:12px;padding:14px 16px;margin:14px 0;border-radius:22px;background:linear-gradient(135deg,#312e81,#6d28d9);color:#fff;text-decoration:none}
.story-day>span:first-child{font-size:30px}.story-day b{display:block}.story-day small{opacity:.8}.story-day.big b{font-size:18px}
.offer-hero{text-align:center;padding:22px 16px;border-radius:26px;background:linear-gradient(135deg,#ff6a88,#ff9f6a);color:#fff;margin-bottom:16px}
.offer-hero h2{margin:8px 0 4px;font-size:24px}.offer-hero p{margin:0;opacity:.95}.oh-tag{display:inline-block;background:rgba(255,255,255,.25);padding:4px 12px;border-radius:99px;font-weight:700;font-size:13px}
.plans{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.plan{position:relative;background:var(--surface);border:2px solid var(--line);border-radius:24px;padding:20px 14px;text-align:center;display:flex;flex-direction:column;gap:6px;align-items:center}
.plan h3{margin:0}.plan s{color:var(--faint)}.plan .pp b{font-size:34px;color:var(--pri)}.plan small{color:var(--muted)}.plan .btn{margin-top:8px;width:100%}
.plan.best{border-color:var(--pri);box-shadow:0 10px 28px rgba(76,124,245,.18)}.best-tag{position:absolute;top:-12px;background:var(--pri);color:#fff;padding:3px 12px;border-radius:99px;font-size:12px;font-weight:700}
.sec-h{margin:20px 0 10px;font-size:17px}
.feat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
.feat{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:14px;display:flex;flex-direction:column;gap:4px}.feat span{font-size:28px}.feat small{color:var(--muted);line-height:1.6}
.prem-ok{display:flex;align-items:center;gap:12px;padding:16px;border-radius:22px;background:var(--bamboo-soft);margin-bottom:14px}.prem-ok>span{font-size:30px}.prem-ok b{display:block}.prem-ok small{color:var(--muted)}
.pay-info{margin-top:16px;display:flex;flex-direction:column;gap:8px;background:var(--surface);border:1px dashed var(--line);border-radius:18px;padding:14px}
.pay-plans,.pay-methods{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}
.pay-plan input,.pay-m input,.badge-pick input,.kid-pick input,.rate input{position:absolute;opacity:0;pointer-events:none}
.pay-plan span,.pay-m span{display:flex;flex-direction:column;align-items:center;gap:2px;padding:12px;border:2px solid var(--line);border-radius:16px;cursor:pointer;text-align:center}
.pay-plan s{color:var(--faint);font-size:12px}.pay-plan em{font-style:normal;font-weight:800;font-size:18px;color:var(--pri)}
.pay-m code,.pay-info code{font-size:14px;font-weight:700;background:var(--paper);padding:2px 8px;border-radius:8px}
.pay-plan input:checked+span,.pay-m input:checked+span,.badge-pick input:checked+span,.kid-pick input:checked+span{border-color:var(--pri);background:var(--pri-soft)}
.note.warn{background:var(--honey-soft)}
.story-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.story-card{background:var(--surface);border:1px solid var(--line);border-radius:20px;overflow:hidden;display:flex;flex-direction:column}
.sc-link{display:flex;flex-direction:column;gap:4px;color:inherit;text-decoration:none;padding-bottom:10px}.sc-link b,.sc-link small{padding:0 10px}.sc-link small{color:var(--muted);font-size:12px}
.sc-cover{position:relative;aspect-ratio:4/3;display:grid;place-items:center;background:linear-gradient(135deg,var(--plum-soft),var(--sky-soft));font-size:52px}.sc-cover img{width:100%;height:100%;object-fit:cover}
.sc-lock,.sc-audio{position:absolute;top:8px;font-style:normal;font-size:18px;background:rgba(255,255,255,.85);border-radius:99px;padding:2px 6px}.sc-lock{left:8px}.sc-audio{right:8px}
.story-card.locked .sc-cover{filter:saturate(.6)}
.story-read{max-width:720px;margin:0 auto}
.story-hero{display:grid;place-items:center;font-size:84px;aspect-ratio:16/7;border-radius:26px;background:linear-gradient(135deg,var(--plum-soft),var(--sky-soft));overflow:hidden}.story-hero img{width:100%;height:100%;object-fit:cover}
.story-read h1{text-align:center;margin:16px 0 4px}.center{text-align:center;justify-content:center}
.story-tools{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center;margin:14px 0}.story-tools audio{width:100%}
.story-body{font-size:19px;line-height:2.1;background:var(--surface);border-radius:22px;padding:18px 20px;border:1px solid var(--line)}
.story-moral{margin-top:14px;padding:14px 16px;border-radius:18px;background:var(--honey-soft);font-weight:700;line-height:1.8}
.dims{display:flex;flex-direction:column;gap:10px;margin-bottom:8px}.dim{display:flex;flex-direction:column;gap:6px}
.rate{display:flex;gap:6px}.rate label{flex:1}.rate span{display:block;text-align:center;padding:8px 0;border:2px solid var(--line);border-radius:12px;cursor:pointer;font-weight:700}
.rate input:checked+span{background:var(--pri);color:#fff;border-color:var(--pri)}
.badge-pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;margin-bottom:10px}
.badge-pick span{display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 4px;border:2px solid var(--line);border-radius:16px;cursor:pointer;font-size:12.5px;text-align:center}.badge-pick em{font-style:normal;font-size:26px}
.kid-pick{display:flex;flex-wrap:wrap;gap:6px}.kid-pick span{display:inline-block;padding:6px 12px;border:2px solid var(--line);border-radius:99px;cursor:pointer}
.badge-wall{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px;padding:12px}
.bw{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;padding:12px 4px;border-radius:18px;background:var(--paper);opacity:.45;filter:grayscale(1);text-align:center;font-size:12px}
.bw.on{opacity:1;filter:none;background:var(--honey-soft)}.bw em{font-style:normal;font-size:30px}.bw i{position:absolute;top:6px;left:8px;font-style:normal;font-weight:800;color:var(--pri)}
.dim-bars{display:flex;flex-direction:column;gap:10px}.db{display:grid;grid-template-columns:150px 1fr 40px;gap:10px;align-items:center;font-size:13.5px}
.db-bar{height:12px;border-radius:99px;background:var(--paper);overflow:hidden}.db-bar i{display:block;height:100%;background:linear-gradient(90deg,#4c7cf5,#22c55e);border-radius:99px}
.g-chart{width:100%;max-width:420px;display:block;margin:0 auto}
@media(max-width:600px){.plans{grid-template-columns:1fr}.db{grid-template-columns:110px 1fr 36px}.story-body{font-size:18px}}
/* ===== 2.26 قصص مصوّرة ===== */
.scene{display:block;width:100%;height:100%;object-fit:cover}
.sc-cover .scene{position:absolute;inset:0}
.book{background:var(--surface);border:1px solid var(--line);border-radius:26px;overflow:hidden;box-shadow:var(--shadow);margin-top:12px}
.bk-art{aspect-ratio:400/260;background:var(--paper);display:grid;place-items:center}.bk-emoji{font-size:90px}
.bk-text{font-size:20px;line-height:2.1;padding:18px 20px 6px;min-height:150px;white-space:pre-line}
.bk-end{padding:0 16px}
.bk-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px}.bk-nav .btn{min-width:110px}.bk-num{color:var(--muted)}
.bk-dots{display:flex;justify-content:center;gap:6px;padding:0 0 14px}.bk-dots i{width:8px;height:8px;border-radius:50%;background:var(--line)}.bk-dots i.on{background:var(--pri);width:22px;border-radius:99px}
.pg-list{display:flex;flex-direction:column;gap:10px;margin:8px 0}
.pg-row{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line);border-radius:16px;padding:10px;background:var(--paper)}
.pg-art{width:110px;flex:none;display:flex;flex-direction:column;gap:6px;align-items:center}
.pg-art>img,.pg-art>svg,.pg-art>span{width:110px;aspect-ratio:400/260;border-radius:10px;object-fit:cover;background:var(--surface);display:grid;place-items:center;font-size:30px}
.pg-row textarea{width:100%;margin-top:4px}
@media(max-width:600px){.bk-text{font-size:18px}.pg-art,.pg-art>img,.pg-art>svg,.pg-art>span{width:84px}}
/* ===== 2.26 تنسيق ألوان الباقة مع التطبيق ===== */
.offer-hero{background:linear-gradient(135deg,var(--pri),#7c5cf5)!important;box-shadow:0 10px 26px rgba(76,124,245,.28)}
.promo{background:linear-gradient(135deg,var(--pri),#7c5cf5)!important;color:#fff!important;box-shadow:0 8px 22px rgba(76,124,245,.28)!important}
.promo small{color:rgba(255,255,255,.85)}
.promo-e{width:46px;height:46px;border-radius:16px;background:rgba(255,255,255,.2);display:grid;place-items:center;font-size:24px!important}
.feat-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))!important}
.feat{flex-direction:row!important;align-items:center;gap:12px!important}
.feat-ic{width:52px;height:52px;flex:none;border-radius:16px;background:var(--bg);display:grid;place-items:center;font-size:26px!important}
.feat b{display:block}.feat-st{font-style:normal;font-size:16px;color:var(--muted)}
.plan .pp b{font-size:38px}
.lt{position:relative}.lt.locked .lt-e{filter:grayscale(.35);opacity:.8}
.lt-lock{position:absolute;top:8px;left:10px;font-style:normal;font-size:13px;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.9);box-shadow:0 2px 6px rgba(0,0,0,.08)}
.lt-lock.open{background:#22c55e;color:#fff;font-weight:800}
[data-theme="dark"] .lt{color:#1e293b}
.bk-class{display:block;margin:0 auto 12px}
.book.classroom{position:fixed;inset:0;z-index:999;border-radius:0;display:flex;flex-direction:column;overflow:auto;background:var(--surface)}
.book.classroom .bk-art{max-height:62vh;aspect-ratio:auto;flex:1}.book.classroom .bk-art .scene{height:100%}
.book.classroom .bk-text{font-size:clamp(22px,3.2vw,40px);min-height:auto}
.bk-play{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;padding:4px 16px 0}
.bk-play:empty{display:none}
.bk-rec{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center;padding:12px 16px;border-top:1px dashed var(--line);background:var(--paper)}
/* ===== 2.28 ألبوم + استلام آمن + إحالة + تذكير ===== */
.album-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.ph{position:relative;margin:0;background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden}
.ph-img{display:block;width:100%;aspect-ratio:1;border:0;padding:0;background:var(--paper);cursor:zoom-in}.ph-img img{width:100%;height:100%;object-fit:cover}
.ph figcaption{padding:8px 10px;display:flex;flex-direction:column;gap:2px;font-size:13px}.ph figcaption small{color:var(--muted);font-size:11.5px}
.ph-del,.ph-dl{position:absolute;top:8px;left:8px;width:30px;height:30px;border-radius:50%;border:0;background:rgba(255,255,255,.9);display:grid;place-items:center;text-decoration:none;cursor:pointer;font-size:14px}
.safe-hero,.ref-hero{display:flex;gap:12px;align-items:center;padding:16px;border-radius:22px;background:linear-gradient(135deg,var(--pri),#7c5cf5);color:#fff;margin-bottom:14px}
.safe-hero>span{font-size:34px}.safe-hero b{display:block;font-size:16px}.safe-hero small{opacity:.9;line-height:1.7}
.ref-hero{flex-direction:column;text-align:center}.rh-e{font-size:50px}.ref-hero h2{margin:4px 0}.ref-hero p{margin:0;opacity:.92}
.ref-code{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.18);border-radius:16px;padding:10px 16px;margin-top:12px}.ref-code b{font-size:26px;letter-spacing:3px}
.pk-ph{width:44px;height:44px;border-radius:14px;object-fit:cover}
.pk-list{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}.pk input{position:absolute;opacity:0}
.pk span{display:grid;grid-template-columns:52px 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;padding:10px;border:2px solid var(--line);border-radius:16px;cursor:pointer}
.pk span>img,.pk span>.chip{grid-row:1/3;width:52px;height:52px;border-radius:14px;object-fit:cover;display:grid;place-items:center;font-style:normal;font-size:22px}
.pk span small{color:var(--muted)}.pk input:checked+span{border-color:var(--pri);background:var(--pri-soft)}.pk.warn input:checked+span{border-color:#f59e0b;background:var(--honey-soft)}
.li.sent{opacity:.6}
.bk-rec{flex-direction:column;gap:10px!important;margin:10px 16px 0;border:2px dashed var(--pri)!important;border-radius:18px;background:var(--pri-soft)!important}
.bk-rec .rec-st{font-size:14px}.rec-btns{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.rec-on{animation:recpulse 1s infinite}@keyframes recpulse{50%{box-shadow:0 0 0 8px rgba(239,68,68,.25)}}
details.feat{display:block!important;padding:0!important}details.feat summary{list-style:none;display:flex;align-items:center;gap:12px;padding:14px;cursor:pointer}details.feat summary::-webkit-details-marker{display:none}
details.feat[open]{border-color:var(--pri)}
.feat-dt{margin:0;padding:0 16px 14px;list-style:none;display:flex;flex-direction:column;gap:6px;font-size:13.5px;line-height:1.7}
.feat-dt li{color:var(--text)}
.feat-price{margin-top:12px;text-align:center;font-size:15px}.feat-price b{font-size:24px;color:var(--pri)}.feat-price s{color:var(--faint)}
/* 2.28.2 شارة الإحالة */
.lt.hot{box-shadow:0 0 0 2px #f472b6,0 4px 14px rgba(236,72,153,.25)}
.lt.hot b{font-size:12px;line-height:1.35}
.lt-badge{position:absolute;top:-9px;left:50%;transform:translateX(-50%);font-style:normal;font-size:11px;font-weight:800;color:#fff;background:linear-gradient(135deg,#ec4899,#f43f5e);padding:3px 10px;border-radius:999px;white-space:nowrap;box-shadow:0 3px 8px rgba(244,63,94,.4);animation:ltPulse 1.6s ease-in-out infinite;z-index:2}
.lt.hot .lt-e{animation:ltWig 2.4s ease-in-out infinite}
@keyframes ltPulse{0%,100%{transform:translateX(-50%) scale(1)}50%{transform:translateX(-50%) scale(1.1)}}
@keyframes ltWig{0%,85%,100%{transform:rotate(0)}90%{transform:rotate(-12deg)}95%{transform:rotate(12deg)}}
@media(prefers-reduced-motion:reduce){.lt-badge,.lt.hot .lt-e{animation:none}}
/* 2.29 خانة الطفل عند ولي الأمر */
.kcs{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px;margin-top:18px}
.kc{--c:var(--pri);position:relative;background:var(--surface);border-radius:26px;padding:18px;box-shadow:0 6px 22px rgba(40,50,90,.08);border:1px solid var(--line-2);overflow:hidden;display:flex;flex-direction:column;gap:14px}
.kc::before{content:"";position:absolute;inset:0 0 auto 0;height:96px;background:linear-gradient(135deg,color-mix(in srgb,var(--c) 22%,#fff),color-mix(in srgb,var(--c) 8%,#fff));z-index:0}
.kc>*{position:relative;z-index:1}
.kc-top{display:flex;align-items:center;gap:14px}
.kc-av{width:64px;height:64px;border-radius:22px;background:#fff;display:grid;place-items:center;font-size:36px;box-shadow:0 4px 12px rgba(40,50,90,.12);border:3px solid color-mix(in srgb,var(--c) 45%,#fff);flex:none}
.kc h3{margin:0;font-size:19px;font-weight:800;color:#1e293b}
.kc-sub{display:flex;flex-wrap:wrap;gap:4px 10px;margin-top:4px;font-size:12.5px;color:#475569}
.kc-status{display:flex;flex-wrap:wrap;gap:6px;align-items:center;min-height:26px}
.kc-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.kc-stats>div{background:var(--bg-soft,#f6f7fb);border-radius:16px;padding:10px 6px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0}
.kc-stats i{font-style:normal;font-size:20px;line-height:1.2}
.kc-stats span{font-size:11.5px;color:var(--muted)}
.kc-stats b{font-size:13.5px;font-weight:800;display:flex;align-items:center;gap:2px;justify-content:center;max-width:100%;flex-wrap:wrap;line-height:1.3}
.kc-stats small{font-size:10.5px;color:var(--muted)}
.kc-ed{border:0;background:none;padding:0 2px;font-size:12px;cursor:pointer;opacity:.7}
.kc-acts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;border-top:1px dashed var(--line);padding-top:12px}
.kc-acts>*{display:flex;align-items:center;justify-content:center;gap:4px;height:40px;border-radius:14px;border:1px solid var(--line);background:var(--surface);font:inherit;font-size:12.5px;font-weight:700;color:var(--ink,#334155);text-decoration:none;cursor:pointer;white-space:nowrap}
.kc-acts>button{background:#fff1f2;border-color:#fecdd3;color:#be123c}
.kc-abs{display:flex;align-items:center;gap:10px;background:#fff1f2;border:1px solid #fecdd3;border-radius:16px;padding:10px 12px;color:#9f1239;text-decoration:none}
.kc-abs b{display:block;font-size:13px}.kc-abs small{font-size:11.5px;opacity:.85}
[data-theme="dark"] .kc::before{opacity:.35}[data-theme="dark"] .kc h3{color:var(--ink,#e2e8f0)}[data-theme="dark"] .kc-sub{color:var(--muted)}
@media(max-width:600px){.kcs{grid-template-columns:1fr}}
/* بلاغ الغياب */
.seg a{display:inline-flex;align-items:center;height:34px;padding:0 14px;border-radius:999px;font-size:13.5px;font-weight:700;color:var(--muted);text-decoration:none;white-space:nowrap}.seg a.on{background:var(--pri);color:#fff}
.abs-form{display:flex;flex-direction:column;gap:10px}
.abs-lbl{font-weight:800;font-size:13.5px;margin-top:4px}
.abs-kid{display:flex;align-items:center;gap:10px;background:var(--bg-soft,#f6f7fb);border-radius:14px;padding:8px 12px}
.abs-chips{display:flex;flex-wrap:wrap;gap:8px}
.abs-chip input,.abs-r input{position:absolute;opacity:0;pointer-events:none}
.abs-chip span,.abs-q{display:inline-flex;align-items:center;height:38px;padding:0 16px;border-radius:999px;border:1.5px solid var(--line);background:var(--surface);font:inherit;font-weight:700;font-size:13.5px;cursor:pointer;color:inherit}
.abs-chip input:checked+span,.abs-q.on{border-color:var(--pri);background:var(--pri);color:#fff}
.abs-dates{display:none}.abs-dates.show{display:grid}
.abs-sum{font-size:12.5px;color:var(--muted)}
.abs-reasons{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px}
.abs-r span{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 4px;border-radius:16px;border:1.5px solid var(--line);background:var(--surface);font-weight:700;font-size:12.5px;cursor:pointer;text-align:center}
.abs-r i{font-style:normal;font-size:24px}
.abs-r input:checked+span{border-color:var(--pri);background:color-mix(in srgb,var(--pri) 10%,var(--surface));box-shadow:0 0 0 2px color-mix(in srgb,var(--pri) 25%,transparent)}
.abs-promise{background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46;border-radius:14px;padding:10px 12px;font-size:13px}
.abs-done{text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px;padding:6px 0}
.abs-ok{width:78px;height:78px;border-radius:50%;background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;font-size:42px;font-weight:900;display:grid;place-items:center;box-shadow:0 8px 24px rgba(34,197,94,.35);animation:absPop .45s cubic-bezier(.2,1.6,.4,1)}
@keyframes absPop{from{transform:scale(.3);opacity:0}to{transform:scale(1);opacity:1}}
.abs-done h3{margin:6px 0 0;font-size:20px}.abs-done p{margin:0;color:var(--muted)}
.abs-card{width:100%;background:var(--bg-soft,#f6f7fb);border-radius:16px;padding:10px 14px;text-align:start;display:flex;flex-direction:column;gap:6px}
.abs-card div{display:flex;justify-content:space-between;gap:10px;font-size:13.5px}.abs-card span{color:var(--muted)}
.abs-free{width:100%;background:#ecfdf5;border:1.5px solid #86efac;color:#166534;border-radius:14px;padding:12px;font-size:15px}
.abs-hero{display:flex;align-items:center;gap:14px;background:linear-gradient(135deg,#ffe4e6,#fdf2f8);border-radius:24px;padding:18px}
.abs-hero h2{margin:0;font-size:19px}.abs-hero p{margin:4px 0 0;font-size:13.5px;color:#475569}
.ah-e{font-size:40px;width:64px;height:64px;border-radius:20px;background:#fff;display:grid;place-items:center;flex:none}
.abs-big{width:100%;height:50px;margin-top:12px;font-size:15px}
.abs-li.off{opacity:.55}.abs-li.new{background:color-mix(in srgb,var(--pri) 6%,transparent)}
.kid.excused{outline:2px dashed #fda4af;outline-offset:-2px}
/* 2.29.1 طي القائمة */
.lfold{margin:14px 0}
.lfold .launcher{margin:10px 0 0}
.lfold-btn{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--line-2);background:var(--surface);border-radius:16px;padding:10px 14px;font:inherit;cursor:pointer;color:inherit;box-shadow:0 2px 8px rgba(40,50,90,.05)}
.lfold-btn span{font-weight:800;font-size:14px}
.lfold-btn b{font-size:12.5px;color:var(--pri);background:color-mix(in srgb,var(--pri) 10%,transparent);padding:5px 12px;border-radius:999px}
.lfold.is-folded .launcher{grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:78px;overflow-x:auto;gap:8px;padding:10px 2px 6px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.lfold.is-folded .launcher::-webkit-scrollbar{display:none}
.lfold.is-folded .lt{padding:8px 4px;border-radius:18px;gap:5px;scroll-snap-align:start;font-size:11px}
.lfold.is-folded .lt-e{width:40px;height:40px;font-size:22px}
.lfold.is-folded .lt b{font-size:10.5px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.lfold.is-folded .lt-badge{font-size:9px;padding:2px 6px;top:-6px}
.lfold.is-folded .lt-lock{width:18px;height:18px;font-size:10px;top:4px;left:4px}
/* 2.29.2 سهم قفل القائمة الجانبية */
.side-close{display:none}
@media screen and (max-width:860px){
	.brand{position:relative}
	.side-close{display:grid;place-items:center;margin-inline-start:auto;flex:none;width:42px;height:42px;border-radius:14px;border:1px solid var(--line);background:var(--surface);color:var(--pri);font-size:22px;font-weight:900;cursor:pointer;box-shadow:var(--shadow)}
	.side-close:active{transform:scale(.92)}
}
/* 2.30 عدّاد الرسائل على الأيقونات */
.lt-cnt{position:absolute;top:8px;left:8px;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:var(--coral,#ef4444);color:#fff;font-style:normal;font-size:12.5px;font-weight:800;display:grid;place-items:center;box-shadow:0 3px 8px rgba(239,68,68,.4);border:2px solid #fff;z-index:3;animation:cntPop .3s ease}
.lt-cnt.hide{display:none}
.lt:has(.lt-cnt:not(.hide)) .lt-lock{display:none}
.lfold.is-folded .lt-cnt{top:2px;left:2px;min-width:18px;height:18px;font-size:10px;padding:0 4px}
.bottom-nav button{position:relative}
.more-cnt{position:absolute;top:2px;margin-inline-start:22px;font-size:10px;background:var(--coral);color:#fff;border-radius:999px;padding:0 5px;line-height:16px}
@keyframes cntPop{from{transform:scale(.4)}to{transform:scale(1)}}
/* 2.30 الفويس */
.voices{display:flex;flex-direction:column;gap:6px;margin:8px 0}
.voice,.vp-item{display:flex;align-items:center;gap:8px;background:color-mix(in srgb,var(--pri) 7%,var(--surface));border:1px solid color-mix(in srgb,var(--pri) 18%,transparent);border-radius:16px;padding:6px 10px;position:relative}
.voice audio,.vp-item audio{flex:1;min-width:0;height:38px}
.v-ic{font-size:20px;flex:none}
.vp-item .ip-x{position:static;flex:none}
.vp-list{display:flex;flex-direction:column;gap:6px;margin:6px 0}
.vp-acts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.vp-rec,.vp-up{display:flex;align-items:center;justify-content:center;gap:6px;height:48px;border-radius:16px;border:2px dashed var(--pri);background:color-mix(in srgb,var(--pri) 6%,var(--surface));color:var(--pri);font:inherit;font-weight:800;font-size:13.5px;cursor:pointer}
.vp-rec i,.vp-up i{font-style:normal;font-size:20px}
.vp-up{border-color:var(--line);color:inherit;background:var(--surface)}
.vp-rec.on{background:#ef4444;border-color:#ef4444;border-style:solid;color:#fff;animation:vpPulse 1.2s ease-in-out infinite}
@keyframes vpPulse{0%,100%{box-shadow:0 0 0 0 rgba(239,68,68,.45)}50%{box-shadow:0 0 0 8px rgba(239,68,68,0)}}
.vp-st{font-size:12.5px;margin-top:6px}
.act-item .thumbs,.act-item .voices{margin:6px 0}
/* ===== 2.30.1 وضوح الكلام: الوضع العادي والليلي ===== */
/* العادي: ألوان كلام البادجات أغمق شوية علشان تتقري على الخلفية الفاتحة */
:root:not([data-theme="dark"]) .badge.green{color:#13804f}
:root:not([data-theme="dark"]) .badge.amber{color:#9a6200}
:root:not([data-theme="dark"]) .badge.red,:root:not([data-theme="dark"]) .badge.coral{color:#c2361f}
:root:not([data-theme="dark"]) .badge.pink,:root:not([data-theme="dark"]) .badge.plain[style*="pink"]{color:#be185d}
:root:not([data-theme="dark"]) .badge.blue{color:#2f5fd6}
:root:not([data-theme="dark"]) .shift-morning{color:#7a4f00}
/* الليلي: أي خلفية كانت بيضا/فاتحة ثابتة بقت داكنة، والكلام الغامق بقى فاتح */
[data-theme="dark"] .av{color:color-mix(in srgb,var(--c) 55%,#fff);background:color-mix(in srgb,var(--c) 24%,var(--surface))}
[data-theme="dark"] .act-kid,[data-theme="dark"] .act-item,[data-theme="dark"] .chip-opt span,[data-theme="dark"] .kc-av,[data-theme="dark"] .ah-e,[data-theme="dark"] .status-hero .sh-emoji,[data-theme="dark"] .act-ic{background:var(--surface-2);color:var(--text)}
[data-theme="dark"] .act-item{border-color:var(--line)}
[data-theme="dark"] .act-item.t-amber{background:color-mix(in srgb,#f59e0b 13%,var(--surface))}
[data-theme="dark"] .act-item.t-blue{background:color-mix(in srgb,#3b82f6 13%,var(--surface))}
[data-theme="dark"] .act-item.t-pink{background:color-mix(in srgb,#ec4899 13%,var(--surface))}
[data-theme="dark"] .act-item.t-orange{background:color-mix(in srgb,#f97316 13%,var(--surface))}
[data-theme="dark"] .act-item.t-indigo{background:color-mix(in srgb,#6366f1 13%,var(--surface))}
[data-theme="dark"] .act-item.t-teal{background:color-mix(in srgb,#14b8a6 13%,var(--surface))}
[data-theme="dark"] .act-item.t-green{background:color-mix(in srgb,#22c55e 13%,var(--surface))}
[data-theme="dark"] .act-item.t-red{background:color-mix(in srgb,#ef4444 13%,var(--surface))}
[data-theme="dark"] .act-item.t-violet{background:color-mix(in srgb,#8b5cf6 13%,var(--surface))}
[data-theme="dark"] .chip-opt input:checked+span{background:var(--pri-soft);border-color:var(--pri)}
[data-theme="dark"] .spill{background:#26305a;color:#c7d2fe}
[data-theme="dark"] .spill.t-amber{background:#3d2e0c;color:#fcd34d}
[data-theme="dark"] .spill.t-blue{background:#16284d;color:#93c5fd}
[data-theme="dark"] .spill.t-pink{background:#3d1630;color:#f9a8d4}
[data-theme="dark"] .spill.t-orange{background:#3d2010;color:#fdba74}
[data-theme="dark"] .spill.t-indigo{background:#24264f;color:#a5b4fc}
[data-theme="dark"] .spill.t-teal{background:#0f3532;color:#5eead4}
[data-theme="dark"] .spill.t-green{background:#123322;color:#86efac}
[data-theme="dark"] .spill.t-red{background:#3d1515;color:#fca5a5}
[data-theme="dark"] .spill.t-violet{background:#2c1f4f;color:#c4b5fd}
[data-theme="dark"] .spill.t-none{background:var(--surface-2);color:var(--muted)}
[data-theme="dark"] .status-hero,[data-theme="dark"] .status-hero.t-nap,[data-theme="dark"] .status-hero.t-meal,[data-theme="dark"] .status-hero.t-green,[data-theme="dark"] .kiosk-cta{background:linear-gradient(135deg,var(--pri-soft),var(--surface-2))}
[data-theme="dark"] .aud-ic{background:var(--pri-soft)}[data-theme="dark"] .aud-item.bad .aud-ic{background:var(--coral-soft)}[data-theme="dark"] .aud-item.del .aud-ic{background:var(--honey-soft)}
[data-theme="dark"] .aud-act{color:#a5b4fc}
[data-theme="dark"] .enroll-bar{background:var(--line)}
[data-theme="dark"] .act-time,[data-theme="dark"] .day-h,[data-theme="dark"] .status-hero small,[data-theme="dark"] .kiosk-cta small,[data-theme="dark"] .kc-sub,[data-theme="dark"] .abs-hero p{color:var(--muted)}
[data-theme="dark"] .kc::before{opacity:1;background:linear-gradient(135deg,color-mix(in srgb,var(--c) 30%,var(--surface)),var(--surface))}
[data-theme="dark"] .kc h3{color:var(--text)}
[data-theme="dark"] .kc-stats>div,[data-theme="dark"] .abs-kid,[data-theme="dark"] .abs-card{background:var(--surface-2)}
[data-theme="dark"] .kc-acts>*{background:var(--surface-2);border-color:var(--line);color:var(--text)}
[data-theme="dark"] .kc-acts>button,[data-theme="dark"] .kc-abs{background:var(--coral-soft);border-color:#5b2a2a;color:#fda4af}
[data-theme="dark"] .abs-promise,[data-theme="dark"] .abs-free{background:var(--bamboo-soft);border-color:#1f5a3c;color:#86efac}
[data-theme="dark"] .abs-hero{background:linear-gradient(135deg,var(--coral-soft),var(--pink-soft))}
[data-theme="dark"] .feat-ic{background:color-mix(in srgb,var(--bg) 22%,var(--surface-2))}
[data-theme="dark"] .shift-morning{color:#fbbf24}
[data-theme="dark"] .pc-ok{color:#fbbf24}
[data-theme="dark"] .lt-badge{color:#fff}
[data-theme="dark"] .vp-up{background:var(--surface-2)}
[data-theme="dark"] .badge.blue.plain{color:#93b4ff}
[data-theme="dark"] .badge.plain{color:var(--text)}
[data-theme="dark"] .badge.shift-morning{color:#fbbf24!important}
[data-theme="dark"] .badge.shift-evening{color:#c4b5fd!important}
#smsf [name=test_phone]{height:44px;border:1px solid var(--line);border-radius:12px;padding:0 12px;background:var(--surface);color:var(--text);flex:1;min-width:140px}
/* 2.30.2 الإيميل */
.test-in,#smsf [name=test_phone]{height:44px;border:1px solid var(--line);border-radius:12px;padding:0 12px;background:var(--surface);color:var(--text);flex:1;min-width:150px;font:inherit}
.sw-row{display:flex;align-items:center;gap:8px;margin:10px 0}
.sw-row input{width:20px;height:20px}
.email-nudge{display:flex;align-items:center;gap:10px;background:var(--pri-soft);border:1px solid color-mix(in srgb,var(--pri) 30%,transparent);border-radius:18px;padding:12px 14px;margin:12px 0}
.email-nudge>span{font-size:26px}.email-nudge b{display:block}.email-nudge small{color:var(--muted);font-size:12.5px}
.su-me{font-size:17px}


/* 2.33.1 حضور النهارده في الترحيب (بنفس ألوان التطبيق) */
.stalk { display: flex; align-items: center; gap: 3px; margin-top: 12px; max-width: 420px; }
.stalk i { flex: 1; height: 10px; border-radius: 3px; background: rgba(255,255,255,.25); }
.stalk i.on { background: #fff; }
.stalk b { margin-inline-start: 10px; font-size: 16px; font-weight: 800; color: #fff; }
.lt-lock { color: #1F2A44; }

/* 2.34 🎮 ألعاب تنمية المهارات */
.gm-hero{display:flex;gap:14px;align-items:center;background:linear-gradient(135deg,#4C7CF5,#7AA2FF);color:#fff;border-radius:24px;padding:20px 22px;margin-bottom:14px;position:relative;overflow:hidden}
.gm-hero::after{content:"🎮";position:absolute;inset-inline-end:16px;bottom:-14px;font-size:90px;opacity:.15;transform:rotate(-10deg)}
.gm-hero h2{margin:0;font-size:22px}.gm-hero p{margin:4px 0 0;opacity:.9;font-size:13.5px}
.gm-total{display:flex;align-items:center;gap:8px;margin-top:10px;flex-wrap:wrap}.gm-total b{font-size:20px}.gm-total span{opacity:.9;font-size:13px}
.gm-total i{flex-basis:100%;height:8px;border-radius:8px;background:rgba(255,255,255,.25);position:relative;overflow:hidden;max-width:320px}
.gm-total i::after{content:"";position:absolute;inset-block:0;inset-inline-start:0;width:var(--p);background:#FFD54F;border-radius:8px}
.gm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;margin-top:12px}
.gm-card-game{background:var(--surface);border:1px solid var(--line-2);border-radius:22px;box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column}
.gm-main{border:0;background:none;font:inherit;color:inherit;display:flex;flex-direction:column;align-items:center;gap:4px;padding:16px 8px 10px;cursor:pointer}
.gm-ic{font-size:40px;width:70px;height:70px;border-radius:22px;background:var(--sky-soft);display:grid;place-items:center}
.gm-main b{font-size:15px;font-weight:800}.gm-main small{color:var(--muted);font-size:12px}
.gm-levels{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line-2)}
.gm-lv{border:0;background:none;font:inherit;color:inherit;display:flex;flex-direction:column;align-items:center;padding:6px 2px;cursor:pointer;min-height:48px;justify-content:center}
.gm-lv+.gm-lv{border-inline-start:1px solid var(--line-2)}.gm-lv span{font-weight:800;font-size:14px}.gm-lv i{font-style:normal;font-size:10px;line-height:1.2;color:var(--muted)}
.gm-lv.lk{color:var(--faint);font-size:14px;display:flex;align-items:center;justify-content:center}
.gm-play{display:flex;flex-direction:column;gap:16px;align-items:stretch;user-select:none;-webkit-user-select:none}
.gm-bar{display:flex;gap:4px}.gm-bar i{flex:1;height:8px;border-radius:6px;background:var(--line)}.gm-bar i.on{background:var(--bamboo)}
.gm-q{position:relative;text-align:center;background:var(--surface-2);border-radius:22px;padding:16px 12px}
.gm-q p{margin:8px 0 0;font-size:19px;font-weight:700}
.gm-say{position:absolute;top:8px;inset-inline-end:8px;border:0;background:var(--surface);border-radius:50%;width:40px;height:40px;font-size:18px;box-shadow:var(--shadow);cursor:pointer}
.gm-big{font-size:84px;line-height:1.1}
.gm-big .gm-shape{width:110px;height:110px}.gm-outline .gm-shape g{fill:none;stroke:#1F2A44;stroke-width:5;stroke-dasharray:8 6}
[data-theme="dark"] .gm-outline .gm-shape g{stroke:#E8ECF7}
.gm-count{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;font-size:40px;line-height:1.1;max-width:360px;margin:0 auto}
.gm-opts{display:grid;gap:12px;grid-template-columns:repeat(3,1fr)}.gm-opts.n4{grid-template-columns:repeat(2,1fr)}.gm-opts.n5{grid-template-columns:repeat(3,1fr)}
.gm-opt{min-height:96px;border:2px solid var(--line);background:var(--surface);border-radius:22px;display:grid;place-items:center;cursor:pointer;font:inherit;color:inherit;transition:transform .12s;touch-action:manipulation}
.gm-opt:active{transform:scale(.95)}
.gm-opt.ok{border-color:#22A86B;background:#E2F7EC;animation:gmPop .45s}
.gm-opt.no{border-color:#F0634E;background:#FFEDEA;opacity:.55;animation:gmShake .35s}
[data-theme="dark"] .gm-opt.ok{background:#143126}[data-theme="dark"] .gm-opt.no{background:#3A1F1D}
.gm-num{font-size:46px;font-weight:800}.gm-letter{font-size:52px;font-weight:800}.gm-emo{font-size:50px}
.gm-dot{width:62px;height:62px;border-radius:50%;box-shadow:inset 0 -4px 0 rgba(0,0,0,.15)}
.gm-opt .gm-shape{width:64px;height:64px}
.gm-cards{display:grid;gap:10px;grid-template-columns:repeat(3,1fr)}.gm-cards.n8{grid-template-columns:repeat(4,1fr)}.gm-cards.n12{grid-template-columns:repeat(4,1fr)}
.gm-card{aspect-ratio:1;border:0;border-radius:18px;background:linear-gradient(135deg,#4C7CF5,#8B5CF6);color:#fff;font-size:30px;cursor:pointer;display:grid;place-items:center;box-shadow:var(--shadow);transition:transform .2s}
.gm-card.open{background:var(--surface);border:2px solid var(--line);font-size:40px}.gm-card.gone{opacity:.45;border-color:#22A86B}
.gm-end{text-align:center;padding:10px 0 4px;position:relative}
.gm-stars{font-size:52px;letter-spacing:6px}.gm-stars span{filter:grayscale(1);opacity:.3;display:inline-block}.gm-stars span.on{filter:none;opacity:1;animation:gmPop .5s backwards}
.gm-stars span.on:nth-child(2){animation-delay:.15s}.gm-stars span.on:nth-child(3){animation-delay:.3s}
.gm-end h3{margin:8px 0 4px;font-size:22px}.gm-unlock{color:#22A86B;font-weight:800}
.gm-end .btns{justify-content:center;margin-top:12px}
.gm-confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.gm-confetti i{position:absolute;top:-10px;left:var(--x);width:8px;height:14px;background:var(--c);border-radius:2px;animation:gmFall var(--d) ease-in forwards}
@keyframes gmFall{to{transform:translateY(320px) rotate(540deg);opacity:0}}
@keyframes gmPop{0%{transform:scale(.6)}60%{transform:scale(1.12)}100%{transform:scale(1)}}
@keyframes gmShake{0%,100%{transform:translateX(0)}25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
@media(prefers-reduced-motion:reduce){.gm-opt.ok,.gm-opt.no,.gm-stars span.on,.gm-confetti i{animation:none}}
.gm-set{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 0;border-top:1px solid var(--line-2)}
.gm-set:first-of-type{border-top:0}.gm-set b{display:block}.gm-set small{display:block;font-size:12.5px}
/* 2.35 — ألعاب: عربي/English + تفاعل */
.gm-lang button{min-width:64px;font-weight:800}
.gm-play{position:relative}
.gm-word{font-size:26px!important;font-weight:900!important;margin:2px 0 0!important}
.gm-fb{position:absolute;inset-inline:0;top:-6px;z-index:5;margin:auto;width:max-content;max-width:92%;display:flex;align-items:center;gap:8px;padding:8px 18px 8px 10px;border-radius:999px;font-size:18px;color:#fff;box-shadow:0 8px 22px rgba(20,40,90,.22);opacity:0;transform:translateY(-8px) scale(.9);pointer-events:none}
.gm-fb.ok{background:#1F9D61}.gm-fb.no{background:#E5533F}
.gm-fb .gm-fb-i{width:30px;height:30px;border-radius:50%;background:rgba(255,255,255,.25);display:grid;place-items:center;font-size:20px;font-weight:900}
.gm-fb.show{animation:gmFb 1.3s ease forwards}
@keyframes gmFb{0%{opacity:0;transform:translateY(-8px) scale(.9)}12%{opacity:1;transform:translateY(0) scale(1.06)}20%{transform:scale(1)}80%{opacity:1}100%{opacity:0;transform:translateY(-6px)}}
.gm-opt{position:relative;overflow:visible}
.gm-opt .gm-mark{position:absolute;top:-10px;inset-inline-end:-8px;width:38px;height:38px;border-radius:50%;display:none;place-items:center;font-style:normal;font-size:22px;font-weight:900;color:#fff;box-shadow:0 4px 10px rgba(0,0,0,.18)}
.gm-opt.ok .gm-mark{display:grid;background:#1F9D61;animation:gmPop .4s}
.gm-opt.no .gm-mark{display:grid;background:#E5533F;animation:gmPop .4s}
.gm-opt.no{opacity:.7}
.gm-opt.ok{box-shadow:0 0 0 4px rgba(34,168,107,.25)}
.gm-opt.dim:not(.ok):not(.no){opacity:.35;transform:scale(.96)}
.gm-opt:focus-visible{outline:3px solid #4C7CF5;outline-offset:3px}
.gm-card{transition:transform .2s}.gm-card.open:not(.gone){transform:rotateY(0) scale(1.04)}
@media(prefers-reduced-motion:reduce){.gm-fb.show{animation:none;opacity:1;transform:none}.gm-opt .gm-mark{animation:none}}
/* 2.35.1 — المكافأة */
.gm-end{overflow:hidden;min-height:340px;padding-top:18px}
.gm-rays{position:absolute;left:50%;top:70px;width:520px;height:520px;margin:-260px 0 0 -260px;border-radius:50%;background:repeating-conic-gradient(from 0deg,rgba(253,216,53,.22) 0 12deg,transparent 12deg 24deg);animation:gmSpin 14s linear infinite;pointer-events:none;-webkit-mask:radial-gradient(circle,#000 30%,transparent 68%);mask:radial-gradient(circle,#000 30%,transparent 68%)}
.gm-end.s0 .gm-rays,.gm-end.s1 .gm-rays{opacity:.4}
.gm-trophy{position:relative;font-size:92px;line-height:1;animation:gmBounce 1s cubic-bezier(.3,1.6,.5,1) both;filter:drop-shadow(0 10px 14px rgba(229,154,18,.35))}
.gm-end .gm-stars{position:relative;margin-top:6px}
.gm-end h3,.gm-end p,.gm-end .btns{position:relative}
.gm-stars span.on{animation:gmStar .55s cubic-bezier(.3,1.7,.5,1) backwards}
.gm-stars span.on:nth-child(1){animation-delay:.75s}.gm-stars span.on:nth-child(2){animation-delay:1.05s}.gm-stars span.on:nth-child(3){animation-delay:1.35s}
.gm-stk{position:relative;display:inline-flex;align-items:center;gap:10px;margin:10px auto 2px;padding:8px 16px 8px 10px;border-radius:18px;background:linear-gradient(135deg,#FFF6D6,#FFE9F2);border:2px dashed #E59A12;animation:gmStk .7s 1.9s cubic-bezier(.3,1.6,.5,1) backwards}
.gm-stk-e{font-size:46px;line-height:1;animation:gmWig 1.2s 2.6s ease-in-out 2}
.gm-stk b{font-size:16px;color:#8A5A00}
[data-theme="dark"] .gm-stk{background:#3A2F14}[data-theme="dark"] .gm-stk b{color:#FFD36B}
.gm-confetti i{width:9px;height:15px;animation:gmFall2 var(--d) var(--w) cubic-bezier(.2,.6,.4,1) forwards}
@keyframes gmFall2{0%{transform:translateY(-20px) rotate(0)}100%{transform:translateY(420px) rotate(var(--r));opacity:0}}
@keyframes gmSpin{to{transform:rotate(360deg)}}
@keyframes gmBounce{0%{transform:scale(0) rotate(-20deg)}60%{transform:scale(1.15) rotate(6deg)}100%{transform:scale(1) rotate(0)}}
@keyframes gmStar{0%{transform:scale(0) rotate(-90deg)}100%{transform:scale(1) rotate(0)}}
@keyframes gmStk{0%{transform:scale(0)}100%{transform:scale(1)}}
@keyframes gmWig{0%,100%{transform:rotate(0)}25%{transform:rotate(-14deg)}75%{transform:rotate(14deg)}}
.gm-album h3{margin:0 0 2px}.gm-album p{margin:0 0 10px;font-size:12.5px}
.gm-album-g{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.gm-album-g span{aspect-ratio:1;border-radius:14px;display:grid;place-items:center;font-size:28px;background:var(--surface-2);color:var(--muted);font-weight:800;border:2px dashed var(--line)}
.gm-album-g span.on{background:linear-gradient(135deg,#FFF6D6,#E8F0FF);border:2px solid #F3C64A}
[data-theme="dark"] .gm-album-g span.on{background:#2C3550}
@media(prefers-reduced-motion:reduce){.gm-rays,.gm-trophy,.gm-stk,.gm-stk-e,.gm-confetti i{animation:none}}
.gm-diag{font-size:12.5px;margin:-4px 0 8px;min-height:0}.gm-diag:empty{display:none}

.gm-prog{display:grid;gap:10px;padding:0 14px 14px}
.gm-pr{display:grid;grid-template-columns:1fr auto;gap:8px 10px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.gm-pr-h b{display:block;font-size:15px}.gm-pr-h small{font-size:12px}
.gm-pr-t{font-weight:900;font-size:16px;background:#FFF6D6;color:#8A5A00;border-radius:999px;padding:4px 12px}
[data-theme="dark"] .gm-pr-t{background:#3A2F14;color:#FFD36B}
.gm-pr-g{grid-column:1/-1;display:grid;grid-template-columns:repeat(6,1fr);gap:6px}
.gm-pr-g span{display:flex;flex-direction:column;align-items:center;gap:1px;padding:6px 2px;border-radius:12px;background:var(--surface-2);font-weight:800;font-size:13px;color:var(--muted)}
.gm-pr-g span i{font-style:normal;font-size:20px;filter:grayscale(1);opacity:.5}.gm-pr-g span small{font-size:10px;font-weight:600}
.gm-pr-g span.on{color:var(--text);background:#EAF1FF}.gm-pr-g span.on i{filter:none;opacity:1}
[data-theme="dark"] .gm-pr-g span.on{background:#22304F}
/* 2.36 — الأيقونات لكل دور */
.ft-intro b{display:block;margin-bottom:4px}.ft-intro p{margin:0;font-size:13px}
.ft-roles{display:flex;gap:8px;overflow-x:auto;padding:12px 2px;scrollbar-width:none}
.ft-role{flex:none;display:flex;align-items:center;gap:6px;padding:9px 14px;border-radius:999px;border:1.5px solid var(--line);background:var(--surface);font:inherit;font-weight:700;color:inherit;cursor:pointer}
.ft-role.on{background:var(--brand,#4C7CF5);border-color:transparent;color:#fff}
.ft-g{padding:4px 16px 10px}.ft-g h4{margin:8px 0 4px;font-size:13px;color:var(--muted)}
.ft-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line-2,var(--line))}
.ft-row:last-child{border-bottom:0}
.ft-row b{flex:1;font-size:15px}.ft-e{font-size:22px;width:30px;text-align:center}
.ft-row.off .ft-e,.ft-row.off b{opacity:.45}
.ft-sw{flex:none;width:52px;height:30px;border-radius:999px;border:0;background:#CBD3E1;position:relative;cursor:pointer;transition:background .2s;padding:0}
.ft-sw i{position:absolute;top:3px;inset-inline-start:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:inset-inline-start .2s}
.ft-sw[aria-checked="true"]{background:#22A86B}.ft-sw[aria-checked="true"] i{inset-inline-start:25px}
.ft-sw.busy{opacity:.5;pointer-events:none}
.ft-sw:focus-visible{outline:3px solid #4C7CF5;outline-offset:2px}
[data-theme="dark"] .ft-sw{background:#3A4560}
/* 2.37 — فيديوهات الأطفال */
.vd-hero{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:18px 20px;border-radius:22px;background:linear-gradient(135deg,#4C7CF5,#7FA2FF);color:#fff;margin-bottom:14px}
.vd-hero>div{flex:1;min-width:220px}.vd-hero h2{margin:0 0 4px;font-size:22px}.vd-hero p{margin:0;opacity:.92;font-size:14px}
.vd-hero .btn.pri{background:#fff;color:#2F5BD8;border-color:#fff}
.vd-cats{margin-bottom:14px;overflow-x:auto;flex-wrap:nowrap;max-width:100%}.vd-cats button{white-space:nowrap}.vd-cats small{opacity:.65;margin-inline-start:3px}
.vd-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
@media(max-width:520px){.vd-grid{grid-template-columns:1fr 1fr;gap:10px}}
.vd-card{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden;display:flex;flex-direction:column}
.vd-card.draft{opacity:.7}
.vd-thumb{position:relative;display:block;width:100%;aspect-ratio:16/9;border:0;padding:0;cursor:pointer;background:linear-gradient(135deg,var(--g));overflow:hidden}
.vd-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}
.vd-thumb:hover img{transform:scale(1.04)}
.vd-emo{font-size:54px;display:grid;place-items:center;height:100%}
.vd-pl{position:absolute;bottom:8px;inset-inline-end:8px;width:40px;height:40px;font-size:16px!important;border-radius:50%;background:rgba(255,255,255,.92);color:#2F5BD8;display:grid;place-items:center;font-size:20px;box-shadow:0 6px 18px rgba(20,40,90,.25);padding-inline-start:3px}
.vd-thumb:focus-visible{outline:3px solid #4C7CF5;outline-offset:-3px}
.vd-tag{position:absolute;top:8px;inset-inline-start:8px;font-style:normal;font-size:11.5px;font-weight:800;padding:3px 9px;border-radius:999px;background:#1D2B53;color:#fff}
.vd-tag.free{background:#22A86B}
.vd-meta{padding:10px 12px 12px;display:grid;gap:3px}.vd-meta b{font-size:14.5px;line-height:1.45}.vd-meta small{color:var(--muted);font-size:12px}
.vd-acts{position:absolute;top:6px;inset-inline-end:6px;display:flex;gap:4px}
.vd-acts .icon-btn{background:rgba(255,255,255,.92);width:34px;height:34px}
.vd-frame{position:relative;width:100%;aspect-ratio:16/9;background:#000;border-radius:14px;overflow:hidden}
.vd-frame.tall{aspect-ratio:9/16;max-width:340px;margin:auto}
.vd-frame video,.vd-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000}
.vd-about{margin:12px 2px 0;color:var(--muted);line-height:1.7}
.vd-next{margin-top:12px;width:100%;justify-content:center}.vd-next.pulse{animation:vdPulse 1s ease-in-out infinite;background:#EAF1FF}
@keyframes vdPulse{50%{transform:scale(1.02)}}
.vd-src{width:100%}.vd-src button{flex:1}
.vd-drop{display:flex;flex-direction:column;align-items:center;gap:4px;padding:18px;border:2px dashed var(--line);border-radius:16px;cursor:pointer;text-align:center;background:var(--surface-2)}
.vd-drop small{color:var(--muted)}
.vd-prog{margin-top:8px;position:relative;height:26px;border-radius:999px;background:var(--surface-2);overflow:hidden}
.vd-prog i{position:absolute;inset-block:0;inset-inline-start:0;width:0;background:linear-gradient(90deg,#4C7CF5,#22A86B);transition:width .2s}
.vd-prog b{position:relative;display:block;text-align:center;line-height:26px;font-size:12.5px}
.vd-ok{font-size:13px;color:#1F7A4D;font-weight:700;margin-bottom:6px}.vd-bad{font-size:13px;color:#B3261E;font-weight:700}
.vd-lockcta b{display:block}.vd-lockcta p{margin:4px 0 10px}
[data-theme="dark"] .vd-pl{background:rgba(30,38,60,.9);color:#9DB8FF}
@media(prefers-reduced-motion:reduce){.vd-next.pulse{animation:none}.vd-thumb img{transition:none}}

.vd-thumb:not(:has(img)) .vd-pl{inset:0;margin:auto;width:52px;height:52px}
/* 2.38 — تحديد جماعي + تصنيفات */
.bulk-bar{display:none}
.bulk-scope.sel .bulk-bar{display:flex;position:sticky;bottom:calc(84px + env(safe-area-inset-bottom));z-index:20;margin-top:14px;align-items:center;gap:6px;flex-wrap:wrap;padding:10px 12px;border-radius:18px;background:var(--surface);border:1.5px solid #4C7CF5;box-shadow:0 10px 30px rgba(20,40,90,.18)}
@media(min-width:900px){.bulk-scope.sel .bulk-bar{bottom:16px}}
.bulk-n{flex:1 1 100%;font-size:13.5px}
@media(min-width:620px){.bulk-n{flex:1 1 auto}}
.bulk-scope.sel [data-bid]{position:relative;cursor:pointer;outline:2px dashed transparent;transition:outline-color .15s,transform .15s}
.bulk-scope.sel [data-bid]::after{content:'';position:absolute;top:8px;inset-inline-end:8px;width:28px;height:28px;border-radius:9px;background:#fff;border:2px solid #94A3B8;z-index:3;box-shadow:0 2px 6px rgba(0,0,0,.15)}
.bulk-scope.sel [data-bid].picked{outline-color:#4C7CF5;transform:scale(.97)}
.bulk-scope.sel [data-bid].picked::after{content:'✓';background:#4C7CF5;border-color:#4C7CF5;color:#fff;display:grid;place-items:center;font-weight:900;font-size:17px;line-height:24px;text-align:center}
.bulk-scope.sel .vd-acts,.bulk-scope.sel .vd-tog{visibility:hidden}
.vd-tog{display:flex;align-items:center;gap:8px;padding:0 12px 12px}.vd-tog small{color:#1F7A4D;font-weight:700}
.story-card.draft{opacity:.72}
.vc-list{display:grid;gap:8px}
.vc-row{display:flex;align-items:center;gap:6px}
.vc-row input{min-width:0;padding:9px 10px;border:1.5px solid var(--line);border-radius:12px;background:var(--surface);color:inherit;font:inherit}
.vc-row .vc-e{width:56px;text-align:center;font-size:18px}.vc-row .vc-n{flex:1}
.vc-row small{white-space:nowrap;font-size:11.5px}
.vc-add{margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}.vc-add b{display:block;margin-bottom:8px}
.vd-st{margin:8px 2px 0;font-size:13px;font-weight:700}.vd-st:empty{display:none}.vd-st.ok{color:#1F7A4D}.vd-st.bad{color:#B3261E}
[data-theme="dark"] .vd-st.ok{color:#6EE7A8}[data-theme="dark"] .vd-st.bad{color:#FF9B8F}
/* 2.39 — فيديو التعريف بالتطبيق */
.intro-card{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:18px;align-items:center;margin:14px 0;padding:14px;border-radius:24px;background:linear-gradient(135deg,#FFFFFF,#EEF4FF);border:1px solid #DCE6FB;box-shadow:0 10px 30px rgba(40,80,180,.10);transition:opacity .25s,transform .25s}
.intro-card.out{opacity:0;transform:translateY(-6px)}
@media(max-width:640px){.intro-card{grid-template-columns:1fr;gap:12px;padding:12px}}
.intro-thumb{position:relative;display:block;width:100%;aspect-ratio:16/9;border:0;padding:0;border-radius:18px;overflow:hidden;cursor:pointer;background:#EAF1FF}
.intro-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s}
.intro-thumb:hover img{transform:scale(1.03)}
.intro-emo{font-size:60px;display:grid;place-items:center;height:100%}
.intro-play{position:absolute;inset:0;margin:auto;width:66px;height:66px;border-radius:50%;background:#EF5A47;box-shadow:0 0 0 8px rgba(239,90,71,.22),0 10px 24px rgba(239,90,71,.4);display:grid;place-items:center;animation:introPulse 2.2s ease-in-out infinite}
.intro-play i{width:0;height:0;border-style:solid;border-width:12px 0 12px 20px;border-color:transparent transparent transparent #fff;margin-left:5px}
[dir="rtl"] .intro-play i{transform:none}
@keyframes introPulse{50%{box-shadow:0 0 0 14px rgba(239,90,71,.10),0 10px 24px rgba(239,90,71,.4)}}
.intro-thumb:focus-visible{outline:3px solid #4C7CF5;outline-offset:3px}
.intro-txt small{display:block;color:#4C7CF5;font-weight:800;font-size:12.5px;margin-bottom:4px}
.intro-txt b{display:block;font-size:19px;line-height:1.45;color:var(--text)}
.intro-txt p{margin:6px 0 12px;color:var(--muted);font-size:13.5px;line-height:1.7}
.intro-btns{display:flex;gap:8px;flex-wrap:wrap}
.intro-chip{display:flex;align-items:center;gap:8px;width:100%;margin:10px 0;padding:10px 14px;border-radius:16px;border:1px dashed #BCD0F7;background:#F5F8FF;color:#2F5BD8;font:inherit;font-weight:700;font-size:13.5px;cursor:pointer}
.intro-chip span{font-size:18px}.intro-chip i{margin-inline-start:auto;font-style:normal;width:28px;height:28px;border-radius:50%;background:#4C7CF5;color:#fff;display:grid;place-items:center;font-size:11px}
.intro-player .vd-frame{position:relative}
.intro-end{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:rgba(15,25,55,.78);color:#fff;text-align:center;padding:16px;backdrop-filter:blur(3px)}
.intro-end b{font-size:22px}.intro-end p{margin:0 0 6px;opacity:.9}
.intro-end .btn.ghost{color:#fff;border-color:rgba(255,255,255,.5)}
.intro-admin{display:flex;gap:14px;align-items:center;padding:12px;margin-bottom:14px}
.ia-thumb{position:relative;flex:none;width:150px;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#EAF1FF;cursor:pointer;display:grid;place-items:center;font-size:34px}
.ia-thumb img{width:100%;height:100%;object-fit:cover}.ia-thumb i{position:absolute;inset:0;margin:auto;width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.92);color:#EF5A47;display:grid;place-items:center;font-style:normal;font-size:13px}
.intro-admin b{display:block}.intro-admin small{font-size:12px}
@media(max-width:520px){.ia-thumb{width:110px}}
[data-theme="dark"] .intro-card{background:linear-gradient(135deg,#1B2440,#222D4F);border-color:#2E3B63}
[data-theme="dark"] .intro-chip{background:#1E2845;border-color:#34446F;color:#9DB8FF}
@media(prefers-reduced-motion:reduce){.intro-play{animation:none}.intro-thumb img{transition:none}}
/* 2.40.2 — اختيار طفل للفاتورة */
.bp-list{display:grid;gap:6px;max-height:55vh;overflow:auto;margin-top:10px}
.bp-kid{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:inherit;font:inherit;text-align:start;cursor:pointer}
.bp-kid:hover,.bp-kid:focus-visible{border-color:#4C7CF5;background:#F3F7FF}
[data-theme="dark"] .bp-kid:hover,[data-theme="dark"] .bp-kid:focus-visible{background:#1E2845}
.bp-av{flex:none;width:38px;height:38px;border-radius:12px;background:#EAF1FF;color:#2F5BD8;display:grid;place-items:center;font-weight:900}
.bp-kid span:nth-child(2){flex:1;display:grid}.bp-kid small{color:var(--muted);font-size:12px}
.bp-kid i{font-style:normal;color:var(--muted);font-size:20px}
/* 2.40.3 — تعديل بنود الفاتورة قبل الإصدار */
.di{display:flex;gap:6px;align-items:center;margin:3px 0}
.di-d{flex:1;min-width:120px;padding:6px 9px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:inherit;font:inherit;font-size:13px}
.di-n{display:flex;align-items:center;gap:4px;flex:none}
.di-n input{width:92px;padding:6px 8px;border:1.5px solid #BCD0F7;border-radius:10px;background:var(--surface);color:inherit;font:inherit;font-weight:800;text-align:left}
.di-n small{color:var(--muted);font-size:11px}
.di input:focus{outline:2px solid #4C7CF5;outline-offset:1px}
@media(max-width:640px){.di{flex-wrap:wrap}.di-d{flex:1 1 100%}}
/* 2.41 — الرسم والتلوين */
body.ds-open{overflow:hidden}
.ds-ov{position:fixed;inset:0;z-index:58;display:flex;flex-direction:column;background:#EEF3FC;color:#1D2B53;touch-action:none}
[data-theme="dark"] .ds-ov{background:#121a2e;color:#E8EEFF}
.ds-top{display:flex;align-items:center;gap:6px;padding:10px 12px;padding-top:calc(10px + env(safe-area-inset-top));background:var(--surface);box-shadow:0 2px 10px rgba(20,40,90,.08)}
.ds-top b{font-size:16px;margin-inline-start:4px}
.ds-ib{width:42px;height:42px;border-radius:14px;border:0;background:var(--surface-2);color:inherit;font-size:20px;cursor:pointer;display:grid;place-items:center}
.ds-ib:disabled{opacity:.35}
.ds-save{margin-inline-start:4px}
.ds-stage{flex:1;min-height:0;display:grid;place-items:center;padding:10px}
.ds-board{position:relative;width:min(100%,calc(100vh - 290px),760px);aspect-ratio:1;border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 10px 30px rgba(20,40,90,.15)}
.ds-board canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.ds-lines{cursor:cell;touch-action:none}
.ds-bar{background:var(--surface);padding:8px 10px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -2px 12px rgba(20,40,90,.08)}
.ds-tools{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:6px}
.ds-tool{flex:none;display:flex;flex-direction:column;align-items:center;gap:1px;min-width:62px;padding:6px 4px;border-radius:14px;border:2px solid transparent;background:var(--surface-2);color:inherit;font:inherit;cursor:pointer}
.ds-tool span{font-size:24px;line-height:1.1}.ds-tool small{font-size:11px;font-weight:700}
.ds-tool.on{border-color:#4C7CF5;background:#EAF1FF}
[data-theme="dark"] .ds-tool.on{background:#22304F}
.ds-row2{display:flex;align-items:center;gap:10px}
.ds-sizes{display:flex;gap:4px;flex:none}
.ds-size{width:38px;height:38px;border-radius:12px;border:2px solid transparent;background:var(--surface-2);display:grid;place-items:center;cursor:pointer}
.ds-size i{display:block;border-radius:50%;background:currentColor}.ds-size.on{border-color:#4C7CF5}
.ds-pal{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:4px 2px}
.ds-c{flex:none;width:34px;height:34px;border-radius:50%;border:3px solid #fff;background:var(--c);box-shadow:0 0 0 1px rgba(0,0,0,.15);cursor:pointer;position:relative}
.ds-c.on{box-shadow:0 0 0 3px #4C7CF5;transform:scale(1.12)}
.ds-custom{display:grid;place-items:center;background:conic-gradient(red,yellow,lime,cyan,blue,magenta,red);overflow:hidden}
.ds-custom.on{background:var(--c)}
.ds-custom input{position:absolute;inset:0;opacity:0;cursor:pointer}.ds-custom span{color:#fff;font-weight:900;text-shadow:0 1px 2px rgba(0,0,0,.5)}
.ds-stamps{display:flex;gap:6px;overflow-x:auto;padding-top:6px}
.ds-stamp{flex:none;width:44px;height:44px;border-radius:12px;border:2px solid transparent;background:var(--surface-2);font-size:24px;cursor:pointer}
.ds-stamp.on{border-color:#4C7CF5}
.ds-tool:focus-visible,.ds-c:focus-visible,.ds-ib:focus-visible,.ds-size:focus-visible,.ds-stamp:focus-visible{outline:3px solid #4C7CF5;outline-offset:2px}
.ds-savep{text-align:center}.ds-savep img{width:min(260px,70vw);border-radius:16px;box-shadow:0 6px 18px rgba(0,0,0,.12)}
.ds-savep p{font-weight:700;margin:12px 0}.ds-savep .btn{width:100%;justify-content:center;margin-top:8px}
.ds-hero{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:18px 20px;border-radius:22px;background:linear-gradient(135deg,#FFB547,#FF7E6B);color:#fff;margin-bottom:14px}
.ds-hero>div:first-child{flex:1;min-width:220px}.ds-hero h2{margin:0 0 4px}.ds-hero p{margin:0;opacity:.95;font-size:14px}
.ds-hero .btn{background:#fff;color:#C2410C;border-color:#fff}
.ds-start{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ds-big{display:flex;flex-direction:column;align-items:center;gap:4px;padding:22px 12px;border-radius:22px;border:0;color:#1D2B53;font:inherit;cursor:pointer;box-shadow:0 8px 20px rgba(20,40,90,.10);transition:transform .15s}
.ds-big:active{transform:scale(.97)}
.ds-big.c1{background:linear-gradient(135deg,#FFF1CC,#FFE0E6)}.ds-big.c2{background:linear-gradient(135deg,#DCEBFF,#E6F7EE)}
.ds-big span{font-size:46px}.ds-big b{font-size:18px}.ds-big small{color:#5B6785;font-size:12.5px;text-align:center}
.ds-cats{margin-bottom:12px;overflow-x:auto;flex-wrap:nowrap}
.ds-pages{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.ds-pages.preview{opacity:.6;pointer-events:none}
.ds-pg{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px;border:1.5px solid var(--line);border-radius:16px;background:#fff;color:#1D2B53;font:inherit;cursor:pointer}
.ds-pg svg{width:100%;height:auto;aspect-ratio:1}.ds-pg b{font-size:13.5px}
.ds-pg:hover{border-color:#4C7CF5}
.ds-gal{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;padding:0 14px 14px}
.ds-art{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--surface);padding:0;color:inherit;font:inherit;cursor:pointer;text-align:start}
.ds-art img{width:100%;aspect-ratio:1;object-fit:cover;background:#fff}
.ds-art span{display:grid;padding:8px 10px}.ds-art b{font-size:13.5px}.ds-art small{color:var(--muted);font-size:11.5px}
.ds-light{text-align:center}.ds-light img{width:min(100%,560px);border-radius:16px;background:#fff}
@media(max-width:520px){.ds-board{width:min(100%,calc(100vh - 300px))}.ds-tool{min-width:56px}}
/* 2.42 — وضع الزائر */
.gt-entry{display:flex;align-items:center;gap:12px;width:100%;margin-top:14px;padding:12px 14px;border-radius:18px;border:1.5px solid #BCD0F7;background:linear-gradient(135deg,#F3F7FF,#FFF7EC);color:inherit;font:inherit;text-align:start;cursor:pointer}
.gt-entry span{font-size:30px}.gt-entry div{flex:1;display:grid}.gt-entry b{font-size:15px}.gt-entry small{color:var(--muted);font-size:12.5px}.gt-entry i{font-style:normal;font-size:22px;color:#4C7CF5}
[data-theme="dark"] .gt-entry{background:#1E2845;border-color:#34446F}
.gt{max-width:980px;margin:0 auto;padding:0 16px 110px}
.gt-load{max-width:980px;margin:40px auto;padding:16px}
.gt-top{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:10px;padding:12px 2px;background:color-mix(in srgb,var(--paper) 90%,transparent);backdrop-filter:blur(10px)}
.gt-top img{width:40px;height:40px;border-radius:12px}.gt-top b{font-size:17px}
.gt-hero{margin-top:8px;padding:24px 22px;border-radius:26px;background:linear-gradient(135deg,#4C7CF5,#7FA2FF);color:#fff}
.gt-hero small{display:inline-block;padding:4px 12px;border-radius:999px;background:rgba(255,255,255,.2);font-weight:800;font-size:12.5px}
.gt-hero h1{margin:10px 0 6px;font-size:24px;line-height:1.45}.gt-hero p{margin:0 0 14px;opacity:.95;line-height:1.75}
.gt-hero .btn.pri{background:#fff;color:#2F5BD8;border-color:#fff}.gt-hero .btn:not(.pri){background:rgba(255,255,255,.16);color:#fff;border-color:rgba(255,255,255,.4)}
.gt-video{position:relative;display:block;width:100%;margin-top:14px;aspect-ratio:16/9;max-height:360px;border:0;padding:0;border-radius:22px;overflow:hidden;background:#EAF1FF;cursor:pointer}
.gt-video img{width:100%;height:100%;object-fit:cover}.gt-video span{font-size:64px}
.gt-video i{position:absolute;inset:0;margin:auto;width:70px;height:70px;border-radius:50%;background:#EF5A47;box-shadow:0 0 0 10px rgba(239,90,71,.22)}
.gt-video i::after{content:'';position:absolute;left:28px;top:22px;border-style:solid;border-width:13px 0 13px 21px;border-color:transparent transparent transparent #fff}
.gt-video b{position:absolute;inset-inline:0;bottom:0;padding:24px 16px 12px;background:linear-gradient(transparent,rgba(10,20,50,.7));color:#fff;text-align:start;font-size:15px}
.gt-h{margin:22px 2px 10px;font-size:18px}
.gt-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
@media(max-width:520px){.gt-grid{grid-template-columns:1fr 1fr;gap:10px}}
.gt-tile{position:relative;display:flex;flex-direction:column;gap:4px;padding:16px 14px 14px;border-radius:20px;border:1.5px solid var(--line);background:var(--surface);color:inherit;font:inherit;text-align:start;cursor:pointer;transition:transform .15s,border-color .15s}
.gt-tile:hover{transform:translateY(-2px);border-color:#BCD0F7}
.gt-tile.open{border-color:#9AD9B6;background:linear-gradient(160deg,var(--surface),#EFFAF4)}
[data-theme="dark"] .gt-tile.open{background:linear-gradient(160deg,var(--surface),#16302A)}
.gt-tile.lk .gt-e{filter:grayscale(.3)}
.gt-e{font-size:34px}.gt-tile b{font-size:15px}.gt-tile small{color:var(--muted);font-size:12.5px;line-height:1.6}
.gt-badge{position:absolute;top:10px;inset-inline-end:10px;font-style:normal;font-size:11.5px;font-weight:800;padding:3px 9px;border-radius:999px;background:#1D2B53;color:#fff}
.gt-tile.open .gt-badge{background:#22A86B}
.gt-badge.static{position:static}
.gt-cta{position:fixed;inset-inline:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:30;max-width:956px;margin:0 auto;display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:20px;background:var(--surface);box-shadow:0 12px 36px rgba(20,40,90,.22);border:1.5px solid #BCD0F7}
.gt-cta div{flex:1;display:grid}.gt-cta small{color:var(--muted);font-size:12.5px}
.gt-lock{text-align:center}.gt-lock-i{font-size:52px}.gt-lock ul{text-align:start;padding:0;list-style:none;display:grid;gap:6px;margin:12px 0}.gt-lock li{font-size:14px}
.gt-list{display:grid;gap:8px}.gt-item{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:inherit;font:inherit;text-align:start;cursor:pointer}
.gt-item span{font-size:26px}.gt-item b{flex:1}.gt-item i{font-style:normal;color:var(--muted)}
.gt-story p{line-height:2;font-size:16px}.gt-story audio{width:100%;margin-bottom:10px}
/* 2.43 — عضو التطبيق */
.gt-entry.mem{background:linear-gradient(135deg,#EFFAF4,#F3F7FF);border-color:#9AD9B6}
[data-theme="dark"] .gt-entry.mem{background:#16302A;border-color:#2F6B52}
.gt-mem{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:22px;padding:18px;border-radius:22px;background:linear-gradient(135deg,#E8F8EF,#EAF1FF);border:1.5px solid #9AD9B6}
.gt-mem div{flex:1;min-width:220px}.gt-mem p{margin:6px 0 0;color:var(--muted);line-height:1.7}
[data-theme="dark"] .gt-mem{background:#16302A;border-color:#2F6B52}
.mem-h{margin:18px 2px 8px;font-size:16px}
.lt.nurs{border:0;font:inherit;cursor:pointer;opacity:.85}
/* 2.43.1 — معاينة الرسم والألعاب */
.ds-pg{position:relative}
.ds-try{position:absolute;top:6px;inset-inline-start:6px;font-style:normal;font-size:11.5px;font-weight:800;color:#fff;background:#E8457A;padding:3px 9px;border-radius:99px;z-index:1}
.ds-pg.lk svg{opacity:.45}.ds-pg.lk b{color:#7a86a8}
.ds-lk{position:absolute;top:6px;inset-inline-start:6px;font-style:normal;background:#fff;border-radius:50%;width:28px;height:28px;display:grid;place-items:center;box-shadow:0 2px 6px rgba(0,0,0,.12);z-index:1}
.ds-lockpg{width:150px;margin:0 auto 8px;background:#fff;border-radius:16px;padding:8px}.ds-lockpg svg{width:100%;height:auto}
.gm-lv.lock{opacity:.55;text-decoration:none;color:inherit}
/* 2.44 — القراءة */
.rd-hero{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:22px;border-radius:26px;color:#fff;background:linear-gradient(135deg,#2FA987,#4C7CF5);margin-bottom:12px}
.rd-hero h2{margin:0 0 6px}.rd-hero p{margin:0;opacity:.95;line-height:1.75}
.rd-hero .gm-total{margin-top:12px}
.rd-sec{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:14px;margin-top:14px}
.rd-sec-h{display:flex;align-items:center;gap:12px}.rd-sec-h b{display:block;font-size:16.5px}.rd-sec-h small{color:var(--muted);line-height:1.6}
.rd-sec-e{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;font-size:24px;font-weight:800;background:#E7F6F1;color:#1E8F6E;flex:none}
.rd-sec-p{font-size:13px;font-weight:700;color:var(--muted);white-space:nowrap}
.rd-path{display:flex;flex-wrap:wrap;gap:12px;margin-top:14px;padding:4px}
.rd-node{position:relative;width:72px;height:84px;border:0;background:none;font:inherit;color:inherit;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;touch-action:manipulation}
.rd-n{width:60px;height:60px;border-radius:50%;display:grid;place-items:center;font-size:22px;font-weight:800;background:#EAF1FF;color:#2F5FD0;border:3px solid #C9D9FF;box-shadow:0 4px 0 #C9D9FF;transition:transform .12s}
.rd-node:active .rd-n{transform:translateY(3px);box-shadow:0 1px 0 #C9D9FF}
.rd-node.done .rd-n{background:#22A86B;color:#fff;border-color:#1A8A57;box-shadow:0 4px 0 #157046}
.rd-node.cur .rd-n{background:#4C7CF5;color:#fff;border-color:#2F5FD0;box-shadow:0 4px 0 #2448A8;animation:rdPulse 1.6s infinite}
.rd-node.lk .rd-n{background:#EEF1F6;color:#9AA5BD;border-color:#DCE2EC;box-shadow:0 4px 0 #DCE2EC;font-size:18px}
.rd-node i{font-style:normal;font-size:11px;line-height:1;min-height:12px;color:var(--muted);font-weight:700}
.rd-node em{position:absolute;top:-6px;inset-inline-end:-2px;font-style:normal;font-size:10.5px;font-weight:800;background:#E8457A;color:#fff;border-radius:99px;padding:2px 7px}
@keyframes rdPulse{50%{transform:scale(1.07)}}
[data-theme="dark"] .rd-n{background:#1D2A48;border-color:#2C3D66;box-shadow:0 4px 0 #2C3D66;color:#9DB8FF}
[data-theme="dark"] .rd-node.lk .rd-n{background:#222838;border-color:#2E3548;box-shadow:0 4px 0 #2E3548;color:#69738C}
.rd-stage{display:flex;flex-direction:column;gap:12px}
.rd-tabs{display:flex;gap:6px;justify-content:center}.rd-tabs b{padding:6px 14px;border-radius:99px;font-size:13.5px;background:var(--surface-2);color:var(--muted)}.rd-tabs b.on{background:#4C7CF5;color:#fff}
.rd-card{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;background:linear-gradient(180deg,#F3F7FF,#fff);border:1.5px solid #DCE6FB;border-radius:26px;padding:18px 12px}
[data-theme="dark"] .rd-card{background:#18213A;border-color:#2C3D66}
.rd-big{font-weight:800;line-height:1.35}
.rd-letter{font-size:96px;color:#2F5FD0;font-family:"Noto Naskh Arabic","Amiri","Traditional Arabic",serif}
.rd-letter.en{font-family:inherit;font-size:84px;letter-spacing:4px}.rd-letter.en span{color:#E8457A}
.rd-word{font-size:52px;font-family:"Noto Naskh Arabic","Amiri","Traditional Arabic",serif;color:#1D2B53}
[data-theme="dark"] .rd-word{color:#EAF0FF}
.rd-word[dir="ltr"],.rd-card[dir="ltr"] .rd-word{font-family:inherit;letter-spacing:2px}
.rd-word u{color:#E8457A;text-decoration:none;padding:0 4px}
.rd-sub{margin:0;color:var(--muted);font-size:15px}.rd-sub b{color:#2F5FD0}
.rd-hm{font-size:24px;color:#E8457A}
.rd-row{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px}.rd-row small{color:var(--muted);font-size:12.5px;width:100%}
.rd-chip{min-width:48px;padding:6px 12px;border-radius:14px;border:1.5px solid var(--line);background:var(--surface);font:inherit;font-size:24px;font-weight:700;color:inherit;cursor:pointer;font-family:"Noto Naskh Arabic","Amiri",serif}
.rd-chip.big{font-size:34px;min-width:64px}
.rd-chip.hot{border-color:#E8457A;background:#FFEAF1;color:#C2245B}
[data-theme="dark"] .rd-chip.hot{background:#3A1F2B}
.rd-chip.w{font-size:26px}
.rd-sent{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.rd-ex{display:flex;align-items:center;gap:12px;background:var(--surface);border-radius:18px;padding:8px 16px}.rd-ex b{font-size:30px;font-family:"Noto Naskh Arabic","Amiri",serif}.rd-ex em{color:#E8457A;font-style:normal}
.rd-pic{font-size:54px;line-height:1.1}.rd-pic.xl{font-size:84px}
.rd-nav{display:flex;gap:8px;justify-content:space-between;flex-wrap:wrap}.rd-nav .btn{flex:1;min-height:48px}
.rd-q p{margin:0 0 8px}.rd-q .rd-word{font-size:44px}
.rd-opts .gm-opt{min-height:84px;padding:8px}
.rd-ow{font-size:28px;font-family:"Noto Naskh Arabic","Amiri",serif}.rd-ol{font-size:44px;font-family:"Noto Naskh Arabic","Amiri",serif}.rd-os{font-size:19px;line-height:1.6;font-family:"Noto Naskh Arabic","Amiri",serif}
[lang="en"] .rd-ow,[lang="en"] .rd-ol,[lang="en"] .rd-os{font-family:inherit}
.rd-opts:has(.rd-os){grid-template-columns:1fr}
.rd-har{display:flex;flex-direction:column;align-items:center;gap:2px}.rd-har i{font-style:normal;font-size:40px;color:#E8457A;line-height:1}.rd-har b{font-size:15px}
.rd-gap{font-size:24px;line-height:1.9;margin-top:6px;font-family:"Noto Naskh Arabic","Amiri",serif}[lang="en"] .rd-gap{font-family:inherit}.rd-gap u{color:#E8457A;text-decoration:none}
.rd-slots{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;min-height:62px}
.rd-slot{min-width:52px;height:58px;border-bottom:3px dashed #9DB4E8;display:grid;place-items:center;font-size:32px;font-weight:800;font-family:"Noto Naskh Arabic","Amiri",serif;padding:0 6px}
.rd-slots.w .rd-slot{font-size:22px;min-width:60px}
.rd-slot.on{border-bottom-style:solid;border-color:#4C7CF5;color:#2F5FD0;animation:gmPop .35s}
.rd-slots.done .rd-slot{border-color:#22A86B;color:#1A8A57}
.rd-tiles{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.rd-tile{min-width:62px;min-height:62px;border-radius:18px;border:2px solid #C9D9FF;background:#fff;box-shadow:0 4px 0 #C9D9FF;font:inherit;font-size:32px;font-weight:800;color:#1D2B53;cursor:pointer;font-family:"Noto Naskh Arabic","Amiri",serif;touch-action:manipulation;padding:0 10px}
.rd-tile.w{font-size:22px}
[lang="en"] .rd-tile,[lang="en"] .rd-slot{font-family:inherit}
.rd-tile.used{visibility:hidden}
.rd-tile.shake{animation:gmShake .35s;border-color:#F0634E}
[data-theme="dark"] .rd-tile{background:#1D2A48;color:#EAF0FF;border-color:#2C3D66;box-shadow:0 4px 0 #2C3D66}
@media(max-width:480px){.rd-letter{font-size:80px}.rd-word{font-size:42px}.rd-pic.xl{font-size:70px}.rd-node{width:62px}.rd-n{width:54px;height:54px}}
[lang="en"] .rd-word,[lang="en"] .rd-ex b,[lang="en"] .rd-chip{font-family:inherit}
.rd-q p{padding-inline:40px}
.rd-stab{margin-bottom:12px;display:inline-flex}
.rd-pick{display:inline-flex;align-items:center;gap:6px;font-weight:700}.rd-pick select{min-height:42px;border-radius:12px;border:1.5px solid var(--line);background:var(--surface);color:inherit;font:inherit;padding:0 10px;max-width:240px}
.rd-kpi{background:rgba(255,255,255,.18);border-radius:18px;padding:10px 16px;text-align:center}.rd-kpi b{display:block;font-size:30px}.rd-kpi small{opacity:.9}
.rd-bc{display:flex;flex-direction:column;gap:3px;min-width:140px}.rd-bc small{font-size:12px}
.rd-bar{height:8px;border-radius:99px;background:var(--surface-2);overflow:hidden}.rd-bar i{display:block;height:100%;width:var(--p);background:linear-gradient(90deg,#2FA987,#4C7CF5);border-radius:99px}
.rd-tv{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#FFF6E0;border:1.5px dashed #F2C14E;border-radius:16px;padding:8px 12px}
.rd-tv span{flex:1;min-width:150px;font-size:14px}.rd-tv.sm{background:var(--surface-2);border-color:var(--line)}
[data-theme="dark"] .rd-tv{background:#3A3018}
.rd-listen.tv{background:#FFF1CC;border-color:#F2C14E}
.rd-recbox{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
.rd-mic{width:110px;height:110px;border-radius:50%;border:0;background:#4C7CF5;color:#fff;font-size:46px;cursor:pointer;box-shadow:0 8px 24px rgba(76,124,245,.35)}
.rd-mic.on{background:#E8457A;animation:rdPulse 1.2s infinite;box-shadow:0 0 0 10px rgba(232,69,122,.18)}
.rd-time{font-size:15px}.rd-prev{width:100%;display:flex;flex-direction:column;gap:10px;align-items:center}.rd-prev audio{width:100%}
.rd-file{cursor:pointer}
.rd-kids{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.rd-kid{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:12px}
.rd-kid-h{display:flex;align-items:center;gap:10px}.rd-kid-h b{display:block}.rd-kid-h small{font-size:12px}
.rd-kid-t{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.rd-kid-t span{font-size:12.5px;font-weight:700;display:block;margin-bottom:4px}
.rd-kid-t .rd-bc{min-width:0}
.rd-letter.sm{font-size:72px}
.rd-ex.big{padding:12px 20px}.rd-ex.big b{font-size:40px}
.rd-pos{display:flex;flex-direction:column;gap:8px;width:100%}
.rd-pos-r{display:grid;grid-template-columns:70px 72px 50px 1fr;align-items:center;gap:8px;background:var(--surface);border-radius:16px;padding:6px 10px}
.rd-pos-r small{color:var(--muted);font-weight:700}.rd-pos-r b{font-size:28px;font-family:"Noto Naskh Arabic","Amiri",serif;cursor:pointer;text-align:start}
.rd-pos-r .rd-pic{font-size:34px}
.rd-hc{display:flex;flex-direction:column;align-items:center;gap:2px}.rd-hc small{font-size:12px;color:var(--muted);font-family:inherit}
/* 2.46 — أكاديمي */
.rd-subjs{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.rd-subj{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:16px 10px;border-radius:24px;background:var(--bg);color:#1D2B53;text-decoration:none;border:1.5px solid rgba(0,0,0,.04);transition:transform .12s}
.rd-subj:active{transform:scale(.97)}
.rd-subj-i{width:64px;height:64px;border-radius:20px;background:#fff;display:grid;place-items:center;font-size:32px;font-weight:800;color:#2F5FD0;box-shadow:0 4px 12px rgba(0,0,0,.06)}
.rd-subj b{font-size:16px}.rd-subj small{font-size:12px;color:#5A6888}.rd-subj .rd-bar{width:100%;background:rgba(255,255,255,.7)}
[data-theme="dark"] .rd-subj{filter:brightness(.85)}
.rd-back{color:#fff;opacity:.9;text-decoration:none;font-size:13.5px;font-weight:700;display:inline-block;margin-bottom:6px}
.rd-kid-m{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}
.rd-km{display:flex;flex-direction:column;gap:3px;text-decoration:none;color:inherit;background:var(--surface-2);border-radius:12px;padding:6px 8px}.rd-km span{font-size:12px;font-weight:700}.rd-km small{font-size:11px;color:var(--muted)}
.rd-word.sm{font-size:36px}
.rd-tag{padding:4px 14px;border-radius:99px;font-weight:800;font-size:15px}.rd-tag.g0{background:#E2F7EC;color:#1A8A57}.rd-tag.g1{background:#FFEDEA;color:#C2412E}
.rd-fact{font-size:20px;line-height:1.9;margin:0;max-width:520px;font-weight:600}
.rd-ans{font-size:36px;color:#2F5FD0}
.rd-num{font-size:84px;color:#2F5FD0;display:flex;align-items:baseline;gap:12px;justify-content:center}.rd-num small{font-size:28px;color:var(--muted)}.rd-num.sm{font-size:40px}
.rd-nw{font-size:28px}
.rd-g{display:inline-flex;flex-wrap:wrap;justify-content:center;gap:4px;max-width:300px}.rd-g i{font-style:normal;font-size:32px;line-height:1.1}
.rd-grp.big .rd-g i{font-size:40px}.rd-grp.sm .rd-g i{font-size:22px}.rd-grp.sm .rd-g{max-width:140px}
.rd-vs{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}.rd-vs>div{display:flex;flex-direction:column;align-items:center;gap:6px;background:var(--surface);border-radius:16px;padding:10px;border:2px solid transparent}.rd-vs>div.win{border-color:#22A86B}.rd-vs b{font-size:28px}
.rd-eq{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}.rd-eq>b{font-size:36px;color:#E8457A}.rd-eq.sm .rd-g i{font-size:26px}
.rd-x{opacity:.35;text-decoration:line-through;text-decoration-color:#E8457A;text-decoration-thickness:3px;font-size:32px;margin-inline-start:6px}
.rd-num.eqn{font-size:54px;white-space:nowrap}
/* لوحة الحروف */
.rd-lb-entry{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:22px;background:linear-gradient(135deg,#FFF6E0,#FFE9F1);border:1.5px solid #F7D58B;color:#1D2B53;text-decoration:none;margin-bottom:12px}
.rd-lb-entry b{display:block;font-size:17px}.rd-lb-entry small{color:#6A5A3A}.rd-lb-entry i{font-style:normal;font-size:26px;color:#C79A2B}
.rd-lb-ic{flex:none;width:72px;height:58px;border-radius:16px;background:#fff;display:grid;place-items:center;font-size:22px;font-weight:800;color:#2F5FD0;font-family:"Noto Naskh Arabic","Amiri",serif}
[data-theme="dark"] .rd-lb-entry{background:#3A3018;border-color:#6B5520;color:#F5EBD3}
.rd-lb{background:linear-gradient(180deg,#FFF9EF,#F3F8FF);border-radius:28px;padding:14px 12px 20px;margin:-4px -2px 0}
[data-theme="dark"] .rd-lb{background:#151C2E}
.rd-lb-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.rd-lb-top h2{margin:0;font-size:22px}
.rd-lb-back{text-decoration:none;font-weight:700;color:var(--muted)}
.rd-lb-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0 10px}
.rd-lb-tabs a{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 4px;border-radius:18px;background:#fff;border:2px solid #E3E9F6;text-decoration:none;color:#1D2B53}
.rd-lb-tabs a b{font-size:30px;line-height:1.3;font-family:"Noto Naskh Arabic","Amiri",serif}.rd-lb-tabs a span{font-size:13px;font-weight:700}
.rd-lb-tabs a.on{background:#4C7CF5;border-color:#4C7CF5;color:#fff;box-shadow:0 6px 16px rgba(76,124,245,.3)}
[data-theme="dark"] .rd-lb-tabs a{background:#1D2A48;border-color:#2C3D66;color:#EAF0FF}
.rd-lb-bar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.rd-lb-bar .btn{flex:1;min-height:50px;font-size:16px}
.rd-lb-bar .btn.on{background:#E8457A;color:#fff;border-color:#E8457A}
.rd-lb-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;direction:rtl}
@media(min-width:600px){.rd-lb-grid{grid-template-columns:repeat(7,1fr)}}
.rd-lt{position:relative;aspect-ratio:1;border:0;border-radius:22px;background:var(--c);color:#1D2B53;font:inherit;font-size:clamp(40px,11vw,58px);font-weight:700;font-family:"Noto Naskh Arabic","Amiri",serif;line-height:1;cursor:pointer;box-shadow:0 5px 0 rgba(0,0,0,.07);touch-action:manipulation;transition:transform .12s}
.rd-lt:active{transform:scale(.94)}
.rd-lt.pop{animation:rdPop .45s}
.rd-lt.on{outline:4px solid #4C7CF5;transform:scale(1.06);box-shadow:0 8px 20px rgba(76,124,245,.35)}
@keyframes rdPop{0%{transform:scale(1)}35%{transform:scale(1.15)}70%{transform:scale(.96)}100%{transform:scale(1)}}
.rd-lb.rec .rd-lt{outline:2px dashed #E8457A}
.rd-lb.staff .rd-lt.has::after{content:"🎙️";position:absolute;top:4px;inset-inline-end:6px;font-size:13px}
.rd-lb-note{font-size:12.5px;margin-top:12px}
@media(prefers-reduced-motion:reduce){.rd-lt.pop{animation:none}}
/* أقسام المادة كبطاقات */
.rd-tiles2{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media(min-width:700px){.rd-tiles2{grid-template-columns:repeat(3,1fr)}}
.rd-st{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:16px 10px 14px;border-radius:24px;background:var(--bg);color:#1D2B53;text-decoration:none;border:2px solid transparent;transition:transform .12s}
.rd-st:active{transform:scale(.97)}
.rd-st.cur{border-color:#4C7CF5;box-shadow:0 8px 20px rgba(76,124,245,.25)}
.rd-st-i{width:68px;height:68px;border-radius:20px;background:#fff;display:grid;place-items:center;font-size:34px;font-weight:800;color:#2F5FD0;box-shadow:0 4px 12px rgba(0,0,0,.06);font-family:"Noto Naskh Arabic","Amiri",serif}
.rd-st b{font-size:15.5px;line-height:1.4}.rd-st small{font-size:12px;color:#5A6888;line-height:1.5}
.rd-st .rd-bar{width:100%;background:rgba(255,255,255,.75)}.rd-st-p{font-weight:700}
.rd-st-n{position:absolute;top:10px;inset-inline-start:12px;font-weight:800;font-size:13px;color:#5A6888;background:rgba(255,255,255,.7);border-radius:99px;width:26px;height:26px;display:grid;place-items:center}
.rd-st-now{position:absolute;top:-9px;inset-inline-end:10px;font-style:normal;font-size:11px;font-weight:800;background:#4C7CF5;color:#fff;border-radius:99px;padding:3px 9px}
.rd-st-ok{position:absolute;top:8px;inset-inline-end:10px;font-style:normal;font-size:20px}
[data-theme="dark"] .rd-st,[data-theme="dark"] .rd-sechead,[data-theme="dark"] .rd-lt2{filter:brightness(.88)}
.rd-sechead{background:var(--bg);border-radius:24px;padding:12px 14px 16px;margin-bottom:12px;color:#1D2B53}
.rd-back2{text-decoration:none;font-weight:700;color:#5A6888;font-size:13.5px}
.rd-sechead-b{display:flex;align-items:center;gap:12px;margin-top:8px}.rd-sechead-b b{display:block;font-size:18px}.rd-sechead-b small{color:#5A6888}
.rd-lessons{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media(min-width:700px){.rd-lessons{grid-template-columns:repeat(4,1fr)}}
.rd-lt2{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 8px;border-radius:22px;border:2px solid #E3E9F6;background:#fff;font:inherit;color:#1D2B53;cursor:pointer;box-shadow:0 5px 0 #E3E9F6;touch-action:manipulation}
.rd-lt2:active{transform:translateY(3px);box-shadow:0 2px 0 #E3E9F6}
.rd-lt2.cur{border-color:#4C7CF5;box-shadow:0 5px 0 #2F5FD0}
.rd-lt2.done{border-color:#9AD9B6;box-shadow:0 5px 0 #9AD9B6;background:#F2FBF6}
.rd-lt2.lk{opacity:.6}
.rd-lt2-pv{display:grid;grid-template-columns:repeat(2,1fr);gap:4px;width:100%;max-width:120px}
.rd-lt2-pv i{font-style:normal;aspect-ratio:1;display:grid;place-items:center;background:#F3F7FF;border-radius:12px;font-size:26px;font-family:"Noto Naskh Arabic","Amiri",serif;font-weight:700;color:#2F5FD0}
.rd-lt2 b{font-size:16px}.rd-lt2-s{font-size:13px;font-weight:700;color:#5A6888}
.rd-lt2 em{position:absolute;top:-8px;inset-inline-end:8px;font-style:normal;font-size:11px;font-weight:800;background:#E8457A;color:#fff;border-radius:99px;padding:2px 8px}
/* 2.47 — وقت الأطفال */
.kl-ov{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:20px;background:linear-gradient(160deg,#4C7CF5,#6BA4FF 55%,#FFE3EC);overflow:auto}
body.kl-on{overflow:hidden}
.kl-box{width:100%;max-width:400px;background:#fff;border-radius:30px;padding:26px 22px;text-align:center;box-shadow:0 24px 60px rgba(20,40,110,.3);color:#1D2B53}
.kl-art{position:relative;font-size:70px;line-height:1;margin-bottom:6px;animation:klSway 3s ease-in-out infinite}.kl-art span{position:absolute;font-size:34px;bottom:-4px;margin-inline-start:-14px}
@keyframes klSway{50%{transform:rotate(-6deg)}}
.kl-box h2{margin:8px 0 6px;font-size:26px}.kl-box>p{margin:0 0 18px;color:#5A6888;line-height:1.8;font-size:16px}
.kl-form{display:flex;flex-direction:column;gap:10px;background:#F3F7FF;border-radius:20px;padding:14px;text-align:start}
.kl-form b{font-size:14px;color:#5A6888}
.kl-form input,.kl-form select{min-height:48px;border-radius:14px;border:1.5px solid #D5DEF0;padding:0 12px;font:inherit;font-size:16px;background:#fff;color:#1D2B53}
.kl-form label{display:flex;align-items:center;gap:8px;font-weight:700;font-size:14.5px}.kl-form label select{flex:1}
.kl-form .btn{min-height:52px;font-size:17px}
@media(prefers-reduced-motion:reduce){.kl-art{animation:none}}
.kl-pick{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}
.kl-pick label{cursor:pointer}.kl-pick input{position:absolute;opacity:0}
.kl-pick span{display:block;text-align:center;padding:10px 4px;border-radius:14px;border:1.5px solid var(--line);background:var(--surface);font-size:13px}.kl-pick span b{display:block;font-size:20px}
.kl-pick input:checked+span{border-color:#4C7CF5;background:#EAF1FF;color:#2F5FD0}
.kl-pick input:focus-visible+span{outline:3px solid #9DB8FF}
[data-theme="dark"] .kl-pick input:checked+span{background:#1D2A48}
.kl-bed{display:flex;align-items:center;gap:8px;margin:6px 0;cursor:pointer}
.kl-bedt{margin-bottom:8px}
.kl-bed:has(input:not(:checked))+.kl-bedt{display:none}

/* ===== 2.48: المشاركة والصورة المصغّرة وفيديو القصة ===== */
.vd-meta2{grid-template-columns:1fr auto;align-items:start;gap:8px}.vd-meta2>div{display:grid;gap:3px;min-width:0}
.vd-sh{border:0;background:var(--paper,#f3f6ff);width:36px;height:36px;border-radius:12px;cursor:pointer;font-size:16px;flex:none}
.vd-sh:hover{filter:brightness(.95)}
.vd-pacts{display:flex;justify-content:center;margin:10px 0 0}
.share-box{display:grid;gap:12px}.share-url{display:flex;gap:6px}.share-url input{flex:1;min-width:0;padding:10px;border:1px solid var(--line);border-radius:12px;font:inherit;font-size:13px;background:var(--surface)}
.share-apps{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.share-apps .btn{justify-content:center}
.pst-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.pst-prev{width:150px;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:var(--paper,#f3f6ff);display:grid;place-items:center;border:1px solid var(--line);flex:none}
.pst-prev img{width:100%;height:100%;object-fit:cover}.pst-prev span{font-size:40px}
.pst-btns{display:flex;gap:6px;flex-wrap:wrap}
.pst-frame{margin-top:10px;display:grid;gap:8px;padding:10px;border:1px dashed var(--line);border-radius:14px}
.pst-frame video{width:100%;max-height:260px;border-radius:12px;background:#000}.pst-frame input[type=range]{width:100%}
.pst-st{display:block;margin-top:6px}
.pg-art{position:relative}.pg-art video{width:100%;aspect-ratio:400/260;object-fit:cover;border-radius:10px;background:#000;display:block}
.pg-vtag{position:absolute;top:6px;inset-inline-start:6px;background:rgba(255,255,255,.92);border-radius:8px;padding:0 6px;font-style:normal}
.pg-mbtns{display:flex;gap:4px;flex-wrap:wrap;margin-top:6px}.pg-vprog{font-size:12px;color:var(--muted);margin-top:4px}
.bk-video{width:100%;height:100%;object-fit:contain;background:#000}
.sc-video{position:absolute;bottom:8px;inset-inline-start:8px;background:rgba(255,255,255,.92);border-radius:10px;padding:2px 6px;font-style:normal}
.gt-page{display:grid;gap:8px;margin-bottom:14px}.gt-page img,.gt-page video{width:100%;border-radius:14px;background:#000}
.pg-art video{width:110px}
@media(max-width:600px){
.pg-row{display:grid;grid-template-columns:1fr auto;grid-template-areas:"art del" "txt txt";gap:8px}
.pg-row>.pg-art{grid-area:art;width:100%;align-items:stretch}.pg-row>.grow{grid-area:txt}.pg-row>[data-pdel]{grid-area:del}
.pg-art>img,.pg-art>svg,.pg-art>span,.pg-art video{width:100%}
.pg-mbtns{justify-content:flex-start}
}
