/* =====================================================================
   مِدراك | shell.css — هيكل الموقع: شريط علوي + قائمة جانبية + نوافذ + بطاقة الحساب
   • كل الخصائص منطقية (inline-start/end) فتنقلب تلقائيًا بين العربي RTL والإنجليزي LTR.
   • الألوان كلها من المتغيرات (themes.css) فتتبع اللوحة والوضع الفاتح/الداكن.
   ===================================================================== */
:root { --topbar-h: 64px; --sidebar-w: 272px; }
html[data-layout="compact"]    { --sidebar-w: 80px; --sec-pad: 40px; --card-pad: 16px; --grid-min: 190px; }
html[data-layout="wide"]       { --sec-pad: 76px; --card-pad: 28px; --grid-min: 420px; }
html[data-layout="sequential"] { --sec-pad: 96px; --grid-min: 240px; }

/* ---------- أزرار وصور عامة ---------- */
#medrak-root .icon-btn { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; color: var(--text); transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
#medrak-root .icon-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.avatar { --av: 40px; width: var(--av); height: var(--av); border-radius: 50%; display: grid; place-items: center; overflow: hidden; flex: none;
  background: linear-gradient(145deg, var(--purple), var(--purple-deep)); color: #fff; font-weight: 800; font-size: calc(var(--av) * .44); line-height: 1; user-select: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- الشريط العلوي ---------- */
.topbar { position: sticky; top: 0; z-index: 60; height: var(--topbar-h); display: flex; align-items: center; gap: 8px; padding: 0 clamp(12px, 2vw, 24px);
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .spacer { flex: 1; }
.topbar .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--purple-text); font-weight: 800; font-size: 21px; margin-inline-end: 6px; }
.brand-mark { width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(145deg, var(--purple), var(--purple-deep)); color: #fff; display: grid; place-items: center; font-size: 19px; font-weight: 800; box-shadow: var(--shadow); }
.topbar .brand small { font-weight: 600; font-size: 12px; color: var(--text-soft); }

.tb-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 13px; border: 1px solid transparent; background: transparent; color: var(--text); font-size: 13.5px; font-weight: 700; cursor: pointer; text-decoration: none; font-family: inherit; transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast); }
.tb-btn:hover { background: var(--surface-2); border-color: var(--line); }
.tb-btn:active { transform: scale(.96); }
.tb-btn svg { width: 21px; height: 21px; flex: none; }
.tb-btn.icon-only { width: 42px; padding: 0; justify-content: center; }
.acct-chip { padding-inline: 5px 12px; }
.acct-chip .avatar { --av: 32px; }

/* ---------- القائمة الجانبية ---------- */
.sidebar { position: fixed; top: var(--topbar-h); bottom: 0; inset-inline-start: 0; width: var(--sidebar-w); z-index: 50; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border-inline-end: 1px solid var(--line); padding: 14px 12px 24px; display: flex; flex-direction: column; gap: 2px;
  transition: inset-inline-start .3s var(--ease), visibility 0s linear .3s; }
.sidebar-head { display: none; }
.nav-group-title { font-size: 11.5px; font-weight: 800; color: var(--text-faint); padding: 16px 14px 6px; letter-spacing: .02em; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; color: var(--text-soft); text-decoration: none; font-weight: 700; font-size: 14.5px; line-height: 1.3; transition: background var(--dur-fast), color var(--dur-fast); }
.nav-item svg { width: 20px; height: 20px; flex: none; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item[aria-current="page"] { background: var(--purple); color: #fff; box-shadow: var(--shadow); }
.nav-item:focus-visible, .topnav a:focus-visible, .tb-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.topnav { display: none; position: sticky; top: var(--topbar-h); z-index: 55; gap: 6px; padding: 8px clamp(12px, 2vw, 24px); overflow-x: auto; white-space: nowrap; scrollbar-width: thin;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topnav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; color: var(--text-soft); font-weight: 700; font-size: 13.5px; text-decoration: none; }
.topnav a svg { width: 17px; height: 17px; }
.topnav a:hover { background: var(--surface-2); color: var(--text); }
.topnav a[aria-current="page"] { background: var(--purple); color: #fff; }

.sidebar-backdrop { position: fixed; inset: 0; z-index: 65; background: rgba(6,10,20,.55); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s linear .3s; }
.sidebar-backdrop.show { opacity: 1; visibility: visible; transition: opacity .3s var(--ease), visibility 0s; }

/* موبايل/تابلت: القائمة تنزلق كدرج جانبي */
@media (max-width: 979.98px) {
  .sidebar { top: 0; height: 100%; width: min(86vw, 320px); z-index: 70; padding-top: 14px; box-shadow: var(--shadow-lg);
    inset-inline-start: calc(-1 * (min(86vw, 320px) + 40px)); visibility: hidden; }
  .sidebar.open { inset-inline-start: 0; visibility: visible; transition: inset-inline-start .3s var(--ease), visibility 0s; }
  .sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
  .sidebar-head .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--purple-text); font-weight: 800; font-size: 19px; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 980px) {
  .nav-toggle { display: none !important; }
  .sidebar-backdrop { display: none; }
  html:is([data-layout="sidebar"], [data-layout="compact"]) #medrak-root main,
  html:is([data-layout="sidebar"], [data-layout="compact"]) #medrak-root footer.site { margin-inline-start: var(--sidebar-w); }
  html:is([data-layout="wide"], [data-layout="sequential"]) .sidebar { display: none; }
  html:is([data-layout="wide"], [data-layout="sequential"]) .topnav { display: flex; }
  html[data-layout="wide"] #medrak-root .wrap { max-width: 920px; }
  html[data-layout="compact"] #medrak-root .wrap { max-width: 1400px; }
  /* قائمة مصغّرة: أيقونات فقط */
  html[data-layout="compact"] .sidebar { padding-inline: 10px; align-items: center; }
  html[data-layout="compact"] .sidebar .nav-item { justify-content: center; padding: 12px 0; width: 100%; }
  html[data-layout="compact"] .sidebar .nav-item .label,
  html[data-layout="compact"] .sidebar .nav-group-title { display: none; }
}
@media (max-width: 719.98px) {
  .tb-btn .tb-label { display: none; }
  .tb-btn { padding: 0; width: 42px; justify-content: center; }
  .acct-chip { width: auto; padding: 4px; }
  .topbar .brand small { display: none; }
}
#medrak-root .back-top { inset-inline-start: auto; inset-inline-end: 22px; }

/* ---------- أنماط تصميم الصفحة ---------- */
html[data-layout="sequential"] #medrak-root h2.section-title { font-size: clamp(30px, 4vw, 44px); position: relative; padding-bottom: 16px; }
html[data-layout="sequential"] #medrak-root h2.section-title::after { content: ''; position: absolute; inset-inline-start: 0; bottom: 0; width: 72px; height: 5px; border-radius: 99px; background: linear-gradient(90deg, var(--purple), var(--teal)); }
html[data-layout="sequential"] #medrak-root main > section + section { border-top: 1px solid var(--line); }
html[data-layout="compact"] #medrak-root h2.section-title { font-size: clamp(22px, 2.4vw, 28px); }
html[data-layout="compact"] #medrak-root p.section-sub { margin-bottom: 22px; font-size: 15px; }

/* ---------- دائرة الضوء ---------- */
#cursor-spotlight { position: fixed; inset: 0; pointer-events: none; z-index: 5; display: none; }
html[data-spotlight="on"] #cursor-spotlight { display: block; }
@media (hover: none), (pointer: coarse) { #cursor-spotlight { display: none !important; } }

/* ---------- النوافذ (حوارات) ---------- */
.mk-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(6,10,20,.6);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility 0s linear .25s; }
.mk-overlay.show { opacity: 1; visibility: visible; transition: opacity .25s var(--ease), visibility 0s; }
.mk-dialog { background: var(--surface); color: var(--text); width: min(100%, var(--dlg-w, 560px)); max-height: min(92vh, 920px); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(14px) scale(.97); transition: transform .3s var(--ease); }
.mk-overlay.show .mk-dialog { transform: none; }
.mk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 10px; }
.mk-head h2 { margin: 0; font-size: 20px; font-weight: 800; color: var(--text); }
.mk-body { padding: 4px 22px 20px; overflow-y: auto; flex: 1; }
.mk-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface); }
.mk-foot .grow { flex: 1; }
.mk-x { width: 40px; height: 40px; border-radius: 12px; border: 1px solid transparent; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--text-soft); }
.mk-x:hover { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.mk-x svg { width: 20px; height: 20px; }
@media (max-width: 640px) {
  .mk-overlay { align-items: flex-end; padding: 0; }
  .mk-dialog { width: 100%; max-height: 94vh; border-radius: 26px 26px 0 0; }
  .ob-overlay { align-items: center; padding: 12px; }
  .ob-overlay .mk-dialog { border-radius: 26px; max-height: 100%; overflow-y: auto; }
}

.mk-sec { margin-top: 22px; }
.mk-sec > h3 { margin: 0 0 10px; font-size: 13px; font-weight: 800; color: var(--text-soft); }
.mk-note { margin: 0 0 12px; font-size: 12.5px; color: var(--text-soft); line-height: 1.7; }
.mk-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mk-check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; color: var(--text); }
.mk-check input { width: 20px; height: 20px; margin: 0; flex: none; }

.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 8px 20px; border-radius: 999px; font-weight: 800; font-size: 13.5px; color: var(--text-soft); cursor: pointer; font-family: inherit; transition: background var(--dur-fast), color var(--dur-fast); }
.seg button:hover:not([aria-pressed="true"]) { background: var(--surface); color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--purple); color: #fff; }
.seg button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.pal-grid, .lay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 10px; }
.pal-card, .lay-card { text-align: start; padding: 10px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; display: flex; flex-direction: column; gap: 8px; font-family: inherit; transition: border-color var(--dur-fast), background var(--dur-fast), box-shadow var(--dur-fast); }
.pal-card:hover, .lay-card:hover { border-color: color-mix(in srgb, var(--purple-text) 50%, var(--line)); }
.pal-card[aria-pressed="true"], .lay-card[aria-pressed="true"] { border-color: var(--purple-text); background: var(--surface-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--purple-text) 22%, transparent); }
.pal-card:focus-visible, .lay-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.pal-name { font-weight: 800; font-size: 13.5px; color: var(--text); }
.pal-desc { font-size: 11.5px; color: var(--text-soft); line-height: 1.45; }
.pal-prev { display: block; position: relative; height: 70px; border-radius: 12px; padding: 8px; border: 1px solid color-mix(in srgb, var(--text) 16%, transparent); overflow: hidden; }
.pal-prev .pp-bar { display: block; height: 6px; width: 60%; border-radius: 4px; margin-bottom: 6px; }
.pal-prev .pp-card { display: flex; flex-direction: column; gap: 5px; padding: 7px; border-radius: 8px; }
.pal-prev .pp-card i { display: block; height: 5px; border-radius: 3px; width: 70%; }
.pal-prev .pp-card b { display: block; height: 9px; border-radius: 5px; width: 45%; }
.pal-prev .pp-dot { position: absolute; top: 8px; inset-inline-end: 8px; width: 9px; height: 9px; border-radius: 50%; }
.lay-prev { display: block; position: relative; height: 70px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.lay-prev i { position: absolute; display: block; border-radius: 4px; background: color-mix(in srgb, var(--text-faint) 55%, transparent); }
.lay-prev i.hl { background: var(--purple); }
/* معاينات التخطيط (بخصائص منطقية) */
.lay-sidebar i.s { inset-block: 6px; inset-inline-start: 6px; width: 20px; }
.lay-sidebar i.c1 { top: 8px; inset-inline: 32px 8px; height: 22px; }
.lay-sidebar i.c2 { top: 36px; inset-inline: 32px 8px; height: 26px; }
.lay-compact i.s { inset-block: 6px; inset-inline-start: 6px; width: 9px; }
.lay-compact i.c1 { top: 8px; inset-inline: 22px 44px; height: 24px; }
.lay-compact i.c2 { top: 8px; inset-inline: auto 8px; width: 30px; height: 24px; }
.lay-compact i.c3 { top: 38px; inset-inline: 22px 44px; height: 24px; }
.lay-compact i.c4 { top: 38px; inset-inline: auto 8px; width: 30px; height: 24px; }
.lay-wide i.t { top: 6px; inset-inline: 8px; height: 8px; }
.lay-wide i.c1 { top: 20px; inset-inline: 22px; height: 18px; }
.lay-wide i.c2 { top: 44px; inset-inline: 22px; height: 18px; }
.lay-seq i.t { top: 6px; inset-inline: 8px; height: 8px; }
.lay-seq i.c1 { top: 20px; inset-inline: 8px; height: 10px; }
.lay-seq i.c2 { top: 36px; inset-inline: 8px; height: 10px; }
.lay-seq i.c3 { top: 52px; inset-inline: 8px; height: 10px; }

/* ---------- الترحيب الأول (Onboarding) ---------- */
.ob-overlay { background: radial-gradient(900px 520px at 85% -10%, color-mix(in srgb, var(--teal) 24%, transparent), transparent 60%), radial-gradient(720px 520px at 0% 110%, color-mix(in srgb, var(--purple) 20%, transparent), transparent 60%), var(--bg);
  backdrop-filter: none; align-items: center; overflow-y: auto; }
.ob-card { --dlg-w: 500px; padding: 0; }
.ob-top { display: flex; justify-content: flex-end; padding: 14px 16px 0; }
.ob-inner { padding: 4px clamp(20px, 5vw, 34px) 26px; display: flex; flex-direction: column; gap: 16px; }
.ob-brand { display: flex; align-items: center; gap: 10px; justify-content: center; color: var(--purple-text); font-weight: 800; font-size: 22px; }
.ob-inner h1 { margin: 0; text-align: center; font-size: clamp(22px, 5vw, 28px); line-height: 1.35; color: var(--text); font-weight: 800; }
.ob-sub { margin: -6px 0 0; text-align: center; color: var(--text-soft); font-size: 14px; line-height: 1.75; }
.ob-avatar-row { display: flex; align-items: center; gap: 16px; justify-content: center; flex-wrap: wrap; }
.ob-avatar-row .avatar { --av: 84px; border: 3px solid var(--surface-2); box-shadow: var(--shadow); }
.ob-avatar-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ob-field label { display: block; margin-bottom: 6px; font-weight: 800; font-size: 13.5px; color: var(--text); }
#medrak-root .ob-field input[type="text"] { width: 100%; padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font-size: 16px; font-family: inherit; margin: 0; }
#medrak-root .ob-field input[type="text"]:focus { border-color: var(--purple-text); }
.ob-field input[type="text"]:focus-visible { outline: 3px solid color-mix(in srgb, var(--purple-text) 35%, transparent); outline-offset: 1px; }
.ob-hint { margin: 6px 0 0; font-size: 12.5px; color: var(--text-soft); line-height: 1.6; }
.gender-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gender-choice button { padding: 14px 10px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); color: var(--text); font-weight: 800; font-size: 15px; cursor: pointer; font-family: inherit; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: border-color var(--dur-fast), background var(--dur-fast), color var(--dur-fast); }
.gender-choice button:hover:not([aria-pressed="true"]) { border-color: var(--purple-text); background: var(--surface-2); }
.gender-choice button[aria-pressed="true"] { border-color: var(--purple); background: var(--purple); color: #fff; }
.gender-choice button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.gender-choice .gc-ic { font-size: 26px; line-height: 1; }
.ob-error { min-height: 20px; margin: 0; font-size: 13px; font-weight: 700; color: var(--wrong-text); }
.ob-cta { width: 100%; justify-content: center; padding: 15px; font-size: 15px; }
.ob-links { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 4px 2px; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--purple-text); text-decoration: underline; text-underline-offset: 3px; }
.ob-resume { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); }
.ob-resume .avatar { --av: 40px; }
.ob-resume .grow { flex: 1; font-size: 13.5px; font-weight: 700; }

/* ---------- جولة التعريف ---------- */
.tour-dialog { --dlg-w: 520px; }
.tour-body { text-align: center; padding: 6px clamp(20px, 5vw, 36px) 20px; }
.tour-ic { width: 76px; height: 76px; border-radius: 50%; background: var(--surface-2); color: var(--purple-text); display: grid; place-items: center; margin: 6px auto 16px; border: 1px solid var(--line); }
.tour-ic svg { width: 34px; height: 34px; }
.tour-body h3 { margin: 0 0 8px; font-size: 20px; font-weight: 800; color: var(--text); }
.tour-body p { margin: 0 auto; max-width: 42ch; font-size: 14.5px; line-height: 1.85; color: var(--text-soft); min-height: 5.4em; }
.tour-dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.tour-dots i { width: 8px; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--text-faint) 45%, var(--surface)); transition: width .25s var(--ease), background .25s; }
.tour-dots i.on { width: 26px; background: var(--purple); }
.tour-foot { justify-content: space-between; }

/* ---------- بطاقة الحساب بالرئيسية ---------- */
#medrak-root section.account-wrap { padding: 26px 0 6px; }
.account-hero { position: relative; overflow: hidden; border-radius: 30px; padding: clamp(18px, 3vw, 34px); border: 1px solid var(--line); box-shadow: var(--shadow); background: linear-gradient(135deg, var(--surface-2), var(--surface)); }
.account-hero::after { content: ''; position: absolute; inset-inline-end: -70px; bottom: -70px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--teal) 24%, transparent), transparent 70%); pointer-events: none; }
.ah-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.ah-avatar { position: relative; width: 84px; height: 84px; flex: none; }
.ah-avatar .avatar { --av: 84px; border: 3px solid var(--surface); box-shadow: var(--shadow); }
.ah-edit { position: absolute; inset-block-end: -2px; inset-inline-end: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--purple); color: #fff; display: grid; place-items: center; border: 2px solid var(--surface); text-decoration: none; }
.ah-edit svg { width: 14px; height: 14px; }
.ah-title { margin: 0; font-size: clamp(24px, 4vw, 38px); font-weight: 800; line-height: 1.3; color: var(--text); }
.ah-sub { margin: 6px 0 0; font-size: 15px; color: var(--text-soft); }
.ah-date { margin: 4px 0 0; font-size: 13px; color: var(--text-soft); }
.ah-card { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(14px, 2.4vw, 22px); }
.ah-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ring { position: relative; width: 92px; height: 92px; flex: none; }
.ring svg { width: 92px; height: 92px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring .ring-bg { stroke: color-mix(in srgb, var(--text-faint) 32%, var(--surface)); }
.ring .ring-fg { stroke: var(--purple); stroke-linecap: round; transition: stroke-dashoffset .8s var(--ease); }
.ring-val { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: var(--text); }
.ah-info { flex: 1; min-width: 200px; }
.ah-label { margin: 0 0 2px; font-size: 12.5px; color: var(--text-soft); font-weight: 700; }
.ah-big { margin: 0 0 8px; font-size: clamp(17px, 2.4vw, 22px); font-weight: 800; color: var(--text); }
.ah-ach { margin: 8px 0 0; font-size: 13px; color: var(--teal-deep); font-weight: 700; }
.ah-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ah-actions .btn { padding: 10px 18px; font-size: 13px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.day { border: 1px solid var(--line); border-radius: 14px; padding: 9px 2px; text-align: center; background: var(--surface); min-width: 0; }
.day .dn { font-size: 11.5px; color: var(--text-soft); font-weight: 700; }
.day .dd { font-size: 18px; font-weight: 800; margin: 2px 0; color: var(--text); }
.day .ds { font-size: 11px; color: var(--text-faint); font-weight: 700; }
.day.today { border-color: var(--purple-text); background: var(--surface-2); box-shadow: 0 0 0 2px color-mix(in srgb, var(--purple-text) 20%, transparent); }
.day.active .ds { color: var(--correct-text); }
.streak { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 800; color: var(--text); }
@media (max-width: 520px) { .week { gap: 4px; } .day { padding: 8px 0; border-radius: 12px; } .day .dd { font-size: 15px; } .day .dn { font-size: 10px; letter-spacing: -.2px; } .day .ds { font-size: 12px; } }
.day.active .ds { font-size: 13px; }

/* ---------- إشعار قصير ---------- */
.mk-toast { position: fixed; inset-inline: 0; bottom: 24px; margin-inline: auto; width: fit-content; max-width: 90vw; z-index: 3000; background: var(--text); color: var(--bg); padding: 11px 20px; border-radius: 999px; font-weight: 800; font-size: 13.5px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.mk-toast.show { opacity: 1; transform: none; }
/* ===== إضافات (مُولَّدة) ===== */
.avatar svg { width: 56%; height: 56%; }
.mk-steps { margin: 0 0 4px; padding-inline-start: 22px; font-size: 13px; line-height: 1.9; color: var(--text-soft); }
.mk-steps li { margin-bottom: 4px; }
.mk-foot .btn { padding: 11px 20px; font-size: 13.5px; }
.mk-body .btn svg, .mk-foot .btn svg, .ob-avatar-actions .btn svg { flex: none; }
.ob-top .tb-btn { height: 38px; border-color: var(--line); }
.ob-card .mk-foot { display: none; }
@media (prefers-reduced-motion: reduce) { #cursor-spotlight { display: none !important; } }
