/* منصة الرحلة: نموذج تجريبي. مظهر دافئ وواضح: زوايا لينة، ألوان مساندة هادئة لكل مرحلة، وخط عناوين مستدير. */
:root {
  --accent: #146356;            /* لون الجهة: يتغيّر من «التحكم بالبرنامج» */
  --accent-deep: color-mix(in srgb, var(--accent) 78%, #000);
  --gold: #c39432;
  --mint: #38c7b1;  --mint-soft: #ddf6ee;
  --sun: #ffd65c;   --sun-soft: #fff4d1;
  --peach: #ffb197; --peach-soft: #ffe8de;
  --lilac: #bfa8f0; --lilac-soft: #f0eafb;
  --ground: #f3f7f5;
  --surface: #ffffff;
  --ink: #15302b;
  --ink-2: #5a6f6a;
  --line: #e1eae6;
  --line-2: #cbd8d3;
  --warn: #a3541f;
  --r: 20px;
  --shadow: 0 1px 2px rgb(21 48 43 / .04), 0 10px 30px rgb(21 48 43 / .07);
  --display: "Baloo Bhaijaan 2", "Readex Pro", system-ui, sans-serif;
  font-family: "Readex Pro", system-ui, "Segoe UI", Tahoma, sans-serif;
}
.tone-mint { --tone: var(--mint); --tone-soft: var(--mint-soft); }
.tone-sun { --tone: var(--sun); --tone-soft: var(--sun-soft); }
.tone-lilac { --tone: var(--lilac); --tone-soft: var(--lilac-soft); }
.tone-peach { --tone: var(--peach); --tone-soft: var(--peach-soft); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-size: 15.5px; line-height: 1.75; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
::selection { background: var(--mint-soft); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- الهيكل ---------- */
.shell { display: grid; grid-template-columns: 16.5rem minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: .75rem; align-self: start; height: calc(100vh - 1.5rem); margin: .75rem; margin-inline-end: 0;
  display: flex; flex-direction: column; gap: 1.4rem; padding: 1.4rem 1rem 1rem; border-radius: 26px;
  background: var(--accent); color: #fff; overflow: hidden; isolation: isolate;
}
.side::after { /* نجمة خفيفة في الزاوية، من روح هوية الجهة */
  content: ""; position: absolute; z-index: -1; inset-inline-end: -3.2rem; bottom: 4.5rem; width: 11rem; height: 11rem; background: rgb(255 255 255 / .06);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.brand { display: flex; align-items: center; gap: .7rem; padding-inline: .45rem; }
.brand__mark { width: 2.5rem; height: 2.5rem; padding: .35rem; border-radius: 14px; background: rgb(255 255 255 / .14); color: #fff; flex: none; }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.brand__org { font-size: .8rem; color: rgb(255 255 255 / .75); line-height: 1.4; }
.nav { display: grid; gap: .2rem; }
.nav button {
  display: flex; align-items: center; gap: .65rem; width: 100%; min-height: 2.75rem; padding: .45rem .8rem;
  border: 0; border-radius: 14px; background: none; text-align: start; cursor: pointer; color: rgb(255 255 255 / .82);
  transition: background-color .18s, color .18s, transform .18s;
}
.nav button:hover { background: rgb(255 255 255 / .12); color: #fff; }
.nav button[aria-current="page"] { background: #fff; color: var(--accent-deep); font-weight: 600; box-shadow: 0 6px 16px rgb(0 0 0 / .14); }
.nav__label { flex: 1; }
.nav__count { min-width: 1.6rem; padding: 0 .4rem; border-radius: 999px; background: rgb(255 255 255 / .16); font-size: .76rem; text-align: center; line-height: 1.5rem; }
.nav button[aria-current="page"] .nav__count { background: var(--mint-soft); color: var(--accent-deep); }
.side__note { margin-top: auto; padding: .75rem .85rem; border-radius: 14px; background: rgb(255 255 255 / .1); font-size: .78rem; line-height: 1.65; color: rgb(255 255 255 / .85); }

.main { min-width: 0; }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding: 1.5rem 2rem .9rem; }
.top__title { font-family: var(--display); font-size: 2rem; font-weight: 700; line-height: 1.25; }
.top__tools { display: flex; flex-wrap: wrap; gap: .6rem 1rem; padding: .35rem .5rem .35rem .9rem; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.top__tools select { border: 0; background: var(--ground); border-radius: 999px; font-weight: 500; }
.view { padding: .25rem 2rem 4rem; outline: none; max-width: 86rem; }
.view > * { animation: rise .4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; translate: 0 10px; } }

/* ---------- القطع المشتركة ---------- */
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: 1.1rem 1.35rem .2rem; }
.card__title { font-family: var(--display); font-size: 1.2rem; font-weight: 700; line-height: 1.4; }
.card__body { padding: 1.1rem 1.35rem 1.35rem; }
.muted { color: var(--ink-2); }
.small { font-size: .84rem; }
.grid { display: grid; gap: 1.1rem; }
.cols-2 { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: grid; gap: 1.1rem; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.spread { justify-content: space-between; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.6rem; padding: .35rem 1.1rem;
  border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--surface); cursor: pointer; text-decoration: none; color: var(--ink); font-weight: 500;
  transition: background-color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--main { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 28%, transparent); }
.btn--main:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--sun { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn--sun:hover { background: #fff; border-color: #fff; }
.btn--quiet { border-color: transparent; background: none; color: var(--ink-2); }
.btn--quiet:hover { background: var(--ground); border-color: transparent; color: var(--ink); transform: none; }
.btn--danger { color: var(--warn); }
.btn--danger:hover { border-color: var(--warn); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: .3em; }
.linkbtn:hover { text-decoration-color: currentColor; }

.field { display: grid; gap: .3rem; font-size: .84rem; color: var(--ink-2); }
.field--inline { grid-auto-flow: column; align-items: center; gap: .5rem; }
.field input, .field select, .field textarea, select, .input {
  min-height: 2.6rem; padding: .35rem .8rem; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: .95rem;
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.field textarea { min-height: 5.5rem; padding-block: .6rem; resize: vertical; line-height: 1.75; }
.field input[type="color"] { padding: .2rem; width: 3.5rem; }
input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .9rem 1rem; }
.form .wide { grid-column: 1 / -1; }

.pill { display: inline-flex; align-items: center; min-height: 1.6rem; padding: 0 .75rem; border-radius: 999px; font-size: .78rem; font-weight: 500; line-height: 1.6rem; background: #e8eeeb; color: #445651; white-space: nowrap; }
.pill--done { background: var(--mint-soft); color: #0c5a4d; }
.pill--now { background: var(--sun); color: #4d3a00; }
.pill--warn { background: var(--peach-soft); color: #8a3a15; }

table { width: 100%; border-collapse: collapse; }
th { padding: .7rem 1.1rem; text-align: start; font-size: .8rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
td { padding: .8rem 1.1rem; border-top: 1px solid var(--line); vertical-align: middle; }
td.n, th.n { text-align: end; font-variant-numeric: tabular-nums; }
.tablewrap { overflow-x: auto; }
tbody tr { transition: background-color .15s; }
tbody tr.is-link { cursor: pointer; }
tbody tr.is-link:hover { background: #f4f9f6; }

.who { display: inline-flex; align-items: center; gap: .55rem; }
.av { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; font-family: var(--display); font-size: .9rem; font-weight: 700; flex: none; background: hsl(var(--h, 160) 60% 88%); color: hsl(var(--h, 160) 45% 24%); }
.avs { display: inline-flex; }
.avs .av { margin-inline-start: -.5rem; box-shadow: 0 0 0 2.5px var(--surface); }
.avs .av:first-child { margin-inline-start: 0; }

/* أرقام الصفحة الرئيسية: بلاطات بلون مساند لكل رقم */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.tile { position: relative; overflow: hidden; isolation: isolate; padding: 1.15rem 1.3rem 1.2rem; border-radius: var(--r); background: var(--tone-soft); }
.tile::after { content: ""; position: absolute; z-index: -1; inset-inline-end: -1.6rem; bottom: -1.6rem; width: 6.5rem; height: 6.5rem; border-radius: 50%; box-shadow: inset 0 0 0 .9rem var(--tone); opacity: .45; }
.tile__label { font-size: .88rem; font-weight: 500; }
.tile__value { font-family: var(--display); font-size: 2.3rem; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.tile__note { font-size: .8rem; color: #41534f; }
/* الأرقام داخل البطاقات (تقرير الأثر) */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: .4rem 0 .6rem; }
.kpi { padding: .8rem 1.35rem; border-inline-start: 1px solid var(--line); }
.kpi:first-child { border-inline-start: 0; }
.kpi__label { font-size: .84rem; color: var(--ink-2); }
.kpi__value { font-family: var(--display); font-size: 2rem; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.kpi__note { font-size: .8rem; color: var(--ink-2); }

/* لافتة الترحيب */
.hero { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; padding: 1.7rem 1.9rem; border-radius: 26px; background: var(--accent); color: #fff; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; }
.hero::before { inset-inline-end: 22%; top: -2.2rem; width: 7rem; height: 7rem; background: var(--sun); opacity: .9; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.hero::after { inset-inline-end: 34%; bottom: -3rem; width: 8rem; height: 8rem; border-radius: 50%; box-shadow: inset 0 0 0 1rem rgb(255 255 255 / .1); }
.hero__text { display: grid; gap: .45rem; max-width: 38rem; }
.hero__hi { font-weight: 500; color: rgb(255 255 255 / .82); }
.hero__title { font-family: var(--display); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); font-weight: 700; line-height: 1.35; text-wrap: balance; }
.hero__meta { color: rgb(255 255 255 / .82); margin-bottom: .5rem; }
.hero .ic { width: 1.1em; height: 1.1em; }
.hero__ring { position: relative; width: 8.2rem; height: 8.2rem; flex: none; }
.hero__ring svg { width: 100%; height: 100%; rotate: -90deg; }
.ring__track { fill: none; stroke: rgb(255 255 255 / .18); stroke-width: 11; }
.ring__bar { fill: none; stroke: var(--sun); stroke-width: 11; stroke-linecap: round; }
.hero__ring p { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.2; }
.hero__ring strong { font-family: var(--display); font-size: 1.9rem; font-weight: 700; }
.hero__ring span { font-size: .78rem; color: rgb(255 255 255 / .82); }

.empty { padding: 2.2rem 1.35rem; text-align: center; color: var(--ink-2); }
.empty strong { display: block; margin-bottom: .2rem; font-family: var(--display); font-size: 1.15rem; color: var(--ink); }

/* التبويبات: أزرار حبّة واضحة */
.tabs { display: flex; gap: .4rem; margin-block: 1.1rem; padding: .35rem; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); overflow-x: auto; width: fit-content; max-width: 100%; }
.tabs button { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.5rem; padding: .3rem 1rem; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font-weight: 500; cursor: pointer; white-space: nowrap; transition: background-color .18s, color .18s; }
.tabs button:hover { background: var(--ground); color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--accent); color: #fff; }

.crumb { margin-bottom: .9rem; font-size: .9rem; }
.bar { height: 9px; border-radius: 999px; background: #e3ebe7; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* ---------- خيط الرحلة ---------- */
.thread { display: grid; gap: 1.4rem; }
.thread__stage { display: grid; gap: .65rem; }
.thread__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; }
.thread__name { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); font-size: 1.1rem; font-weight: 700; }
.thread__name::before { content: ""; width: .8rem; height: .8rem; border-radius: 50%; background: var(--tone); }
.thread__dots { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.6rem, 1fr)); gap: .6rem; }
.stop {
  display: grid; align-content: start; gap: .15rem; min-height: 6.4rem; padding: .7rem .8rem .75rem; text-align: start;
  border: 1.5px solid transparent; border-radius: 16px; background: var(--ground); cursor: pointer;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.stop:hover { transform: translateY(-2px); border-color: var(--tone); box-shadow: 0 8px 18px rgb(21 48 43 / .08); }
.stop__n { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 500; color: var(--ink-2); }
.stop__n::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; border: 1.5px solid var(--line-2); }
.stop__t { font-size: .9rem; font-weight: 500; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stop__d { margin-top: auto; font-size: .76rem; color: var(--ink-2); }
.stop.is-done { background: var(--tone-soft); }
.stop.is-done .stop__n { color: #1c4f46; }
.stop.is-done .stop__n::before { background: var(--accent); border-color: var(--accent); }
.stop.is-now { background: var(--surface); border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sun) 55%, transparent); }
.stop.is-now .stop__n { color: #6b4d0c; }
.stop.is-now .stop__n::before { background: var(--gold); border-color: var(--gold); }

/* ---------- لافتة المحطة ---------- */
.banner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem 2rem; padding: 1.5rem 1.7rem; border-radius: 26px; background: var(--tone-soft); position: relative; overflow: hidden; isolation: isolate; }
.banner::after { content: ""; position: absolute; z-index: -1; inset-inline-end: 30%; bottom: -2.6rem; width: 7rem; height: 7rem; background: var(--tone); opacity: .5; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.banner__stage { font-weight: 500; color: #37504a; }
.banner__title { font-family: var(--display); font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.2rem); font-weight: 700; line-height: 1.35; text-wrap: balance; }
.banner__meta { color: #37504a; }
.banner__guide { margin-top: .6rem; font-weight: 500; }

/* ---------- عارض الملفات ---------- */
.viewer { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); min-height: 30rem; border-top: 1px solid var(--line); }
.card > .viewer:first-child { border-top: 0; }
.viewer__list { border-inline-end: 1px solid var(--line); padding: .8rem; display: grid; align-content: start; gap: .3rem; }
.viewer__item { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; min-height: 3rem; padding: .5rem .7rem; border: 0; border-radius: 12px; background: none; text-align: start; cursor: pointer; transition: background-color .15s; }
.viewer__item:hover { background: var(--ground); }
.viewer__item[aria-current="true"] { background: var(--mint-soft); font-weight: 500; }
.viewer__item span:first-child { font-size: .92rem; line-height: 1.45; overflow-wrap: anywhere; }
.ftype { flex: none; padding: 0 .5rem; border-radius: 8px; font-size: .68rem; font-weight: 600; line-height: 1.4rem; letter-spacing: .02em; }
.ftype--pdf { background: var(--peach-soft); color: #8a3a15; }
.ftype--html { background: var(--lilac-soft); color: #4a3492; }
.viewer__stage { min-width: 0; background: #edf2f0; display: grid; }
.viewer__frame { width: 100%; height: 72vh; border: 0; background: #fff; display: block; }
.viewer__pages { display: grid; gap: .9rem; justify-items: center; padding: 1.1rem; max-height: 76vh; overflow: auto; }
.viewer__pages canvas { max-width: 100%; height: auto; background: #fff; border-radius: 6px; box-shadow: 0 2px 10px rgb(21 48 43 / .12); }
.viewer__plain { padding: 1.25rem; max-height: 72vh; overflow: auto; background: #fff; }
.viewer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .45rem .6rem .45rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface); font-weight: 500; }
.drop { display: grid; justify-items: center; gap: .1rem; margin-top: .5rem; padding: 1rem .7rem; border: 2px dashed var(--line-2); border-radius: 14px; text-align: center; font-size: .82rem; color: var(--ink-2); cursor: pointer; transition: border-color .18s, background-color .18s; }
.drop .ic { width: 1.5rem; height: 1.5rem; color: var(--accent); }
.drop strong { color: var(--ink); font-weight: 500; font-size: .9rem; }
.drop:hover, .drop.is-over { border-color: var(--accent); background: var(--mint-soft); }

.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .8rem; }
.album figure { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #e3ebe7; }
.album img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album button { position: absolute; top: .4rem; inset-inline-end: .4rem; min-height: 2rem; }

.code { display: inline-block; padding: .2rem 1.2rem; border-radius: 18px; background: var(--sun-soft); font-family: var(--display); font-size: 3rem; font-weight: 700; letter-spacing: .2em; font-variant-numeric: tabular-nums; direction: ltr; line-height: 1.3; }
.qa { display: grid; gap: 1rem; }
.qa__item { display: grid; gap: .35rem; padding: .9rem 1rem; border-radius: 16px; background: var(--ground); }
.qa__a { padding: .6rem .85rem; border-radius: 12px; background: var(--mint-soft); }
.answer { white-space: pre-wrap; padding: .9rem 1rem; border-radius: 16px; background: var(--ground); min-height: 3.2rem; }

/* ---------- المجموعات ---------- */
.team__top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: 1.1rem 1.35rem; background: var(--tone-soft); }
.team__name { font-family: var(--display); font-size: 1.3rem; font-weight: 700; }
.team .pill { background: rgb(255 255 255 / .8); color: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; }
.steps span { height: 9px; border-radius: 999px; background: #e3ebe7; }
.steps span.is-on { background: var(--tone, var(--accent)); }
.phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; }
.phases button { min-height: 2.7rem; padding: .3rem; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--surface); font-weight: 500; cursor: pointer; transition: border-color .18s, background-color .18s; }
.phases button:hover:not(:disabled) { border-color: var(--accent); }
.phases button.is-on { background: var(--mint-soft); border-color: transparent; color: #0c5a4d; }
.phases button.is-at { background: var(--accent); border-color: var(--accent); color: #fff; }
.phases button:disabled { cursor: default; }
.note { padding: .85rem 1rem; border-radius: 16px; background: var(--ground); margin-top: .6rem; }

.cert { position: relative; max-width: 44rem; margin-inline: auto; padding: 3rem 2rem; text-align: center; border-radius: 22px; background: #fff; box-shadow: var(--shadow), inset 0 0 0 10px var(--mint-soft), inset 0 0 0 12px var(--accent); }
.cert h2 { font-family: var(--display); font-size: 2.3rem; font-weight: 700; color: var(--accent); }
.cert__name { margin: 1rem 0 .4rem; font-family: var(--display); font-size: 2rem; font-weight: 700; }
.cert__id { margin-top: 1.4rem; font-size: .78rem; color: var(--ink-2); direction: ltr; }

.toast { position: fixed; z-index: 30; bottom: 1.4rem; left: 50%; translate: -50% 1rem; margin: 0; padding: .7rem 1.3rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; box-shadow: 0 12px 30px rgb(0 0 0 / .2); opacity: 0; pointer-events: none; transition: opacity .2s, translate .25s cubic-bezier(.34, 1.56, .64, 1); }
.toast.is-on { opacity: 1; translate: -50% 0; }

/* ---------- الشاشات الصغيرة ---------- */
@media (max-width: 68rem) {
  .cols-2, .cols-3 { grid-template-columns: minmax(0, 1fr); }
  .tiles, .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(3) { border-inline-start: 0; }
  .viewer { grid-template-columns: minmax(0, 1fr); }
  .viewer__list { border-inline-end: 0; border-bottom: 1px solid var(--line); }
}
@media (min-width: 48.01rem) and (max-width: 68rem) { .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 48rem) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; margin: .6rem; padding: .9rem .8rem .7rem; gap: .8rem; border-radius: 22px; }
  .side::after { display: none; }
  .nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: .2rem; }
  .nav button { min-height: 2.5rem; }
  .side__note { display: none; }
  .top { padding: .9rem 1rem .6rem; }
  .top__title { font-size: 1.6rem; }
  .top__tools { border-radius: 18px; }
  .view { padding: .25rem 1rem 3rem; }
  .hero { padding: 1.3rem 1.2rem; }
  .hero__ring { width: 6.2rem; height: 6.2rem; }
  .hero__ring strong { font-size: 1.4rem; }
  .tile__value { font-size: 1.8rem; }
  .tabs { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
