/* =========================================================
   هدى — لوحة باستيل على ورق عاجي
   ========================================================= */

:root{
  --paper:#FAF7F2;
  --paper-2:#F1EBE0;
  --ink:#2B2A33;
  --green:#2F6B4F;
  --green-dark:#24523D;
  --green-soft:#4E9B75;
  --lilac:#C9B8E8;
  --lilac-soft:#EFE9F9;
  --peach:#F7C9A9;
  --peach-soft:#FCEEE3;
  --mint:#B8E0CE;
  --mint-soft:#E9F5EF;
  --row-alt:#FBF6EF;
  --line:rgba(184,224,206,.85);
  --line-soft:rgba(184,224,206,.55);
  --line-ink:rgba(47,107,79,.20);
  --muted:#6B7C72;
  --shadow:0 8px 20px rgba(47,107,79,.08);
  --r-lg:22px;
  --r-md:14px;
  --r-sm:10px;
}

*,*::before,*::after{ box-sizing:border-box; }
[hidden]{ display:none !important; }

html{ -webkit-text-size-adjust:100%; }

body{
  margin:0;
  min-height:100vh;
  padding-bottom:82px;
  background:var(--paper);
  color:var(--ink);
  font-family:'Tajawal',system-ui,-apple-system,'Segoe UI',Tahoma,sans-serif;
  font-size:15px;
  font-weight:500;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

button,input,select,textarea{ font-family:inherit; font-size:inherit; color:inherit; }
button{ cursor:pointer; border:none; background:none; }
button,.tab,.seg-btn,.day,.icon-btn,.switch,.f-link{ -webkit-user-select:none; user-select:none; }
:focus-visible{ outline:2px solid var(--green); outline-offset:2px; }
::selection{ background:var(--lilac); color:var(--ink); }

/* ============ رأس الصفحة ============ */
.app-header{
  position:relative;
  overflow:hidden;
  background:linear-gradient(160deg,#DED2F1 0%,#C9B8E8 100%);
  border-radius:0 0 28px 28px;
  padding:16px 16px 15px;
  box-shadow:0 10px 24px rgba(47,107,79,.10);
}
.ornament{
  position:absolute; inset:0; width:100%; height:100%;
  opacity:.08; pointer-events:none;
}
.header-inner{
  position:relative;
  max-width:860px;
  margin-inline:auto;
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.logo{
  width:50px; height:50px; flex:none;
  border-radius:16px;
  background:#fff;
  color:var(--green);
  display:grid; place-items:center;
  box-shadow:0 6px 14px rgba(47,107,79,.12);
}
.brand{ min-width:0; }
.brand h1{
  margin:0;
  font-size:24px;
  font-weight:800;
  line-height:1.15;
  color:#26523E;
}
.brand p{
  margin:2px 0 0;
  font-size:12.5px;
  font-weight:500;
  color:#3F5C4D;
}
.ayah{
  margin-inline-start:auto;
  font-family:'Amiri',serif;
  font-size:16px;
  color:#2F6B4F;
  white-space:nowrap;
}

/* ============ شريط التبويبات ============ */
.tabs{
  position:sticky;
  top:0;
  z-index:40;
  background:var(--paper);
  border-bottom:1px solid var(--line-soft);
  padding:8px 12px;
}
.tabs-inner{
  max-width:860px;
  margin-inline:auto;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:4px;
}
.tab{
  display:flex; align-items:center; justify-content:center; gap:6px;
  min-height:44px;
  padding:0 4px;
  border-radius:13px;
  font-size:12.5px;
  font-weight:700;
  color:#3F5C4D;
  transition:background .18s ease, color .18s ease, box-shadow .18s ease;
}
.tab svg{ display:none; flex:none; width:17px; height:17px; }
.tab:hover{ background:var(--mint-soft); }
.tab[aria-selected="true"]{
  background:var(--lilac);
  color:#2B2A33;
  box-shadow:0 5px 14px rgba(201,184,232,.55);
}
.tab[aria-selected="true"]:hover{ background:var(--lilac); }

/* ============ المحتوى ============ */
main{
  max-width:860px;
  margin-inline:auto;
  padding:16px 14px 24px;
}
.view:not([hidden]){ animation:fadeUp .26s ease-out; }
@keyframes fadeUp{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:none; } }

.view-head{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; margin-bottom:12px; padding-inline:2px;
}
.view-head h2{
  margin:0;
  font-size:19px;
  font-weight:800;
  color:var(--green-dark);
}
.pill-count{
  font-size:11.5px;
  font-weight:700;
  color:#4A6B5B;
  background:var(--mint-soft);
  padding:4px 10px;
  border-radius:999px;
  white-space:nowrap;
}
.view-note{
  margin:0 0 14px;
  font-size:12.5px;
  color:var(--muted);
  line-height:1.6;
}

/* ============ الأزرار ============ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  min-height:46px;
  padding:0 18px;
  border-radius:var(--r-md);
  font-size:14px;
  font-weight:700;
  transition:transform .12s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn:active{ transform:scale(.97); }
.btn-primary{
  background:var(--green);
  color:#fff;
  box-shadow:0 8px 16px rgba(47,107,79,.18);
}
.btn-primary:hover{ background:var(--green-dark); }
.btn-ghost{
  background:#fff;
  color:var(--green);
  border:1px solid var(--line);
}
.btn-ghost:hover{ background:var(--mint-soft); }
.btn-danger{ background:#AE5348; color:#fff; }
.btn-danger:hover{ background:#96443A; }
.btn-sm{ min-height:38px; padding:0 13px; font-size:13px; border-radius:11px; }

/* ============ الحقول ============ */
.input{
  width:100%;
  min-height:46px;
  padding:0 13px;
  border:1px solid var(--line);
  border-radius:var(--r-md);
  background:#fff;
  color:var(--ink);
  font-size:15px;
  font-weight:500;
  transition:border-color .18s ease, box-shadow .18s ease;
}
.input::placeholder{ color:#93A69B; font-weight:400; }
.input:focus{
  outline:none;
  border-color:var(--green-soft);
  box-shadow:0 0 0 3px rgba(184,224,206,.55);
}
.input.is-bad{ animation:shake .32s ease; border-color:#C97A6C; }
@keyframes shake{
  0%,100%{ transform:translateX(0); }
  25%{ transform:translateX(-5px); }
  75%{ transform:translateX(5px); }
}
.textarea{
  min-height:66px;
  padding:10px 12px;
  line-height:1.55;
  resize:vertical;
}
.field{ display:flex; flex-direction:column; gap:5px; min-width:0; }
.field > span{ font-size:12px; font-weight:700; color:#5A7266; }

/* ============ البطاقات ============ */
.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow);
  padding:16px;
}

/* ============ إضافة طالب ============ */
.add-bar{
  display:flex;
  gap:8px;
  margin-bottom:14px;
}
.add-bar .input{ flex:1; min-width:0; }
.add-bar .btn{ flex:none; }

/* ============ قائمة الطلاب ============ */
.list-card{ padding:0; overflow:hidden; }
.student-list{ list-style:none; margin:0; padding:0; }
.student-row{
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 13px;
  min-height:58px;
}
.student-row:nth-child(even){ background:var(--row-alt); }
.num{
  flex:none;
  width:25px; height:25px;
  border-radius:8px;
  background:var(--mint-soft);
  color:var(--green);
  display:grid; place-items:center;
  font-size:11.5px;
  font-weight:800;
  font-variant-numeric:tabular-nums;
}
.s-name{
  flex:1;
  min-width:0;
  font-weight:700;
  font-size:15px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.row-actions{ display:flex; gap:6px; flex:none; }
.icon-btn{
  width:42px; height:42px;
  border-radius:12px;
  display:grid; place-items:center;
  background:#fff;
  border:1px solid var(--line);
  color:var(--green);
  transition:background .16s ease, transform .12s ease, color .16s ease;
}
.icon-btn:hover{ background:var(--mint-soft); }
.icon-btn:active{ transform:scale(.94); }
.icon-btn.danger{ color:#A8554A; }
.icon-btn.danger:hover{ background:var(--peach-soft); }
.icon-btn.ok{ background:var(--mint); border-color:var(--mint); color:#1F5B42; }
.edit-input{ flex:1; min-width:0; min-height:42px; }

/* ============ الحالة الفارغة ============ */
.empty{
  text-align:center;
  padding:30px 20px 28px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}
.empty-art{
  width:72px; height:72px;
  border-radius:50%;
  background:var(--mint-soft);
  color:var(--green);
  display:grid; place-items:center;
  margin-bottom:4px;
}
.empty h3{ margin:0; font-size:17px; font-weight:800; color:var(--green-dark); }
.empty p{
  margin:0;
  font-size:13.5px;
  color:var(--muted);
  max-width:330px;
  line-height:1.75;
}
.empty .btn{ margin-top:10px; }

/* ============ شريط الشهر ============ */
.month-bar{ padding:12px; margin-bottom:14px; }
.mb-row{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.seg{
  display:inline-flex;
  flex:none;
  background:var(--paper-2);
  padding:3px;
  border-radius:999px;
}
.seg-btn{
  padding:6px 14px;
  min-height:34px;
  border-radius:999px;
  font-size:12.5px;
  font-weight:800;
  color:#6B7C72;
  transition:background .16s ease, color .16s ease;
}
.seg-btn.is-active{
  background:#fff;
  color:var(--green);
  box-shadow:0 2px 6px rgba(47,107,79,.12);
}
.mb-selects{
  display:flex;
  gap:6px;
  flex:1;
  min-width:210px;
}
.select{
  flex:1;
  min-width:0;
  min-height:42px;
  padding:0 8px;
  font-size:13px;
  font-weight:700;
  color:var(--green-dark);
  appearance:none;
  background:#fff;
  text-overflow:ellipsis;
}
.mb-label{
  margin-top:8px;
  font-size:12px;
  font-weight:700;
  color:var(--muted);
}

/* ============ الحضور ============ */
.legend{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  padding:0 4px 12px;
  font-size:12px;
  font-weight:700;
  color:#5A7266;
}
.lg{ display:inline-flex; align-items:center; gap:5px; }
.dot{ width:12px; height:12px; border-radius:50%; display:inline-block; flex:none; }
.dot.d1{ background:var(--mint); }
.dot.d2{ background:var(--peach); }
.dot.d3{ background:var(--lilac); }
.lg-hint{ color:#95A69C; font-weight:500; }

.stat-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-bottom:14px;
}
.stat{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--r-md);
  box-shadow:var(--shadow);
  padding:9px 4px;
  text-align:center;
}
.stat b{
  display:block;
  font-size:17px;
  font-weight:800;
  color:var(--green);
  font-variant-numeric:tabular-nums;
  line-height:1.25;
}
.stat span{ font-size:10.5px; font-weight:700; color:var(--muted); }

.att-card{ padding:13px 14px; margin-bottom:12px; }
.att-head{
  display:flex; align-items:center; justify-content:space-between;
  gap:8px; flex-wrap:wrap; margin-bottom:9px;
}
.att-id{ display:flex; align-items:center; gap:8px; min-width:0; }
.att-name{
  font-weight:700;
  font-size:14.5px;
  max-width:46vw;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.att-meta{ display:flex; align-items:center; gap:5px; flex-wrap:wrap; }
.chip{
  font-size:10.5px;
  font-weight:700;
  padding:3px 8px;
  border-radius:999px;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.c-mint{ background:var(--mint-soft); color:#1F5B42; }
.c-peach{ background:var(--peach-soft); color:#8A4B25; }
.c-lilac{ background:var(--lilac-soft); color:#4A3A6B; }
.att-pct{
  font-size:12px;
  font-weight:800;
  color:var(--green);
  background:#fff;
  border:1px solid var(--line);
  padding:2px 9px;
  border-radius:999px;
  font-variant-numeric:tabular-nums;
}
.att-bar{
  height:5px;
  border-radius:999px;
  background:var(--paper-2);
  overflow:hidden;
  margin-bottom:11px;
}
.att-bar span{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#F7C9A9 0%,#B8E0CE 62%,#4E9B75 100%);
  transition:width .28s ease;
}

.days{ display:flex; flex-wrap:wrap; gap:8px; }
.day{
  position:relative;
  width:28px; height:28px;
  flex:none;
  border-radius:50%;
  display:grid; place-items:center;
  padding:0;
  font-size:11.5px;
  font-weight:700;
  font-variant-numeric:tabular-nums;
  background:#fff;
  border:1px dashed var(--line-ink);
  color:#8A9A91;
  transition:transform .12s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.day::after{
  content:'';
  position:absolute;
  inset:-4px;
  border-radius:50%;
}
.day:active{ transform:scale(.88); }
.day.s1{ background:var(--mint); border:1px solid var(--mint); color:#1F5B42; }
.day.s2{ background:var(--peach); border:1px solid var(--peach); color:#7A4322; }
.day.s3{ background:var(--lilac); border:1px solid var(--lilac); color:#4A3A6B; }

/* ============ المراجعة ============ */
.rev-card{ padding:0; margin-bottom:12px; overflow:hidden; }
.rev-head{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  min-height:58px;
  padding:10px 14px;
  text-align:start;
}
.rev-name{
  flex:1;
  min-width:0;
  font-weight:700;
  font-size:15px;
  text-align:start;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.rev-dots{ display:flex; gap:4px; flex:none; }
.pd{ width:8px; height:8px; border-radius:50%; background:var(--paper-2); display:block; }
.pd.on{ background:var(--green-soft); }
.chev{ display:grid; place-items:center; color:var(--green); transition:transform .22s ease; flex:none; }
.rev-card.open .chev{ transform:rotate(180deg); }

.rev-body{
  padding:0 14px 14px;
  border-top:1px solid var(--line-soft);
  display:flex;
  flex-direction:column;
  gap:12px;
}
.rev-meta{ padding-top:12px; }

.sub-card{
  border:1px solid var(--line);
  border-radius:var(--r-md);
  padding:12px;
  background:#fff;
  transition:background .22s ease, border-color .22s ease;
}
.sub-card.is-done{
  background:var(--mint-soft);
  border-color:var(--mint);
}
.sub-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:10px;
}
.sub-head h4{ margin:0; font-size:14px; font-weight:800; color:var(--green-dark); }
.done-btn{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:36px;
  padding:0 12px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  color:#6B7C72;
  font-size:12px;
  font-weight:800;
  transition:background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}
.done-btn:active{ transform:scale(.95); }
.done-btn.on{
  background:var(--green);
  border-color:var(--green);
  color:#fff;
}
.range{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }

/* ============ النتائج ============ */
.res-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  padding:14px 10px;
  margin-bottom:14px;
  text-align:center;
}
.res-summary > div{ min-width:0; }
.res-summary b{
  display:block;
  font-size:19px;
  font-weight:800;
  color:var(--green);
  font-variant-numeric:tabular-nums;
  line-height:1.3;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.res-summary span{ font-size:11px; font-weight:700; color:var(--muted); }

.res-card{ padding:13px 15px; margin-bottom:12px; }
.res-top{ display:flex; align-items:center; gap:10px; }
.rank{
  flex:none;
  width:28px; height:28px;
  border-radius:50%;
  display:grid; place-items:center;
  background:var(--paper-2);
  color:#6B7C72;
  font-size:12px;
  font-weight:800;
  font-variant-numeric:tabular-nums;
}
.rank.top{ background:var(--mint); color:#1F5B42; }
.rank.top1{ background:var(--green); color:#fff; }
.res-name{
  flex:1;
  min-width:0;
  font-weight:700;
  font-size:15px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.res-pct{
  flex:none;
  font-size:22px;
  font-weight:800;
  color:var(--green);
  line-height:1;
  font-variant-numeric:tabular-nums;
}
.res-pct i{ font-size:13px; font-style:normal; margin-inline-start:1px; }
.bar{
  height:10px;
  border-radius:999px;
  background:var(--paper-2);
  overflow:hidden;
  margin:11px 0 10px;
}
.bar span{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#F7C9A9 0%,#B8E0CE 60%,#4E9B75 100%);
  transition:width .35s ease;
}
.break{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:5px;
}
.break li{
  background:var(--row-alt);
  border-radius:var(--r-sm);
  padding:6px 2px;
  text-align:center;
  min-width:0;
}
.break li span{ display:block; font-size:10px; font-weight:700; color:var(--muted); }
.break li b{
  display:block;
  font-size:11.5px;
  font-weight:800;
  color:var(--green-dark);
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.legend-weights{
  margin:4px 0 0;
  font-size:11.5px;
  color:#8A9A91;
  line-height:1.7;
  padding-inline:4px;
}

/* ============ الأنشطة ============ */
.acts-grid{ display:grid; grid-template-columns:1fr; gap:12px; }
.act-card{ padding:14px; }
.act-head{ display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.act-icon{
  flex:none;
  width:44px; height:44px;
  border-radius:var(--r-md);
  background:var(--lilac-soft);
  border:1px solid var(--lilac);
  color:var(--green);
  display:grid; place-items:center;
  transition:transform .12s ease, background .18s ease;
}
.act-icon:active{ transform:scale(.94); }
.act-name{
  flex:1;
  min-width:0;
  min-height:44px;
  padding:0 10px;
  border:1px solid transparent;
  border-radius:var(--r-sm);
  background:transparent;
  font-size:15px;
  font-weight:800;
  color:var(--ink);
  transition:background .16s ease, border-color .16s ease;
}
.act-name:hover{ background:var(--row-alt); }
.act-name:focus{
  outline:none;
  background:#fff;
  border-color:var(--line);
  box-shadow:0 0 0 3px rgba(184,224,206,.5);
}
.icon-picker{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  padding:8px;
  margin-bottom:10px;
  background:var(--row-alt);
  border:1px solid var(--line-soft);
  border-radius:var(--r-md);
}
.icon-opt{
  width:38px; height:38px;
  border-radius:10px;
  display:grid; place-items:center;
  background:#fff;
  border:1px solid var(--line);
  color:var(--green);
}
.icon-opt.is-sel{ background:var(--lilac); border-color:var(--lilac); color:var(--ink); }
.section-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:9px 0;
  border-top:1px dashed var(--line-soft);
}
.section-row:first-child{ border-top:none; }
.sec-label{ font-size:13px; font-weight:700; color:#4A6B5B; }
.switch{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:0 12px 0 8px;
  padding-inline:12px 8px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  color:#6B7C72;
  font-size:12px;
  font-weight:800;
  transition:background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}
.switch:active{ transform:scale(.96); }
.switch-badge{
  order:2;
  width:16px; height:16px;
  border-radius:50%;
  background:#DCD5C8;
  transition:background .18s ease;
}
.switch-text{ order:1; }
.switch.on{
  background:var(--mint);
  border-color:var(--mint);
  color:#1F5B42;
}
.switch.on .switch-badge{ background:var(--green); }

/* ============ التذييل ============ */
.site-footer{
  position:fixed;
  inset-inline:0;
  bottom:0;
  z-index:50;
  background:#fff;
  border-top:1px solid var(--line);
  box-shadow:0 -6px 16px rgba(47,107,79,.06);
}
.footer-inner{
  max-width:860px;
  margin-inline:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  flex-wrap:wrap;
  padding:9px 12px;
  font-size:12px;
  font-weight:700;
  color:var(--green);
}
.f-item{ color:var(--green); text-decoration:none; display:inline-flex; align-items:center; gap:5px; }
.f-sep{ width:4px; height:4px; border-radius:50%; background:var(--mint); flex:none; }
.f-phone{ font-variant-numeric:tabular-nums; direction:ltr; }
.f-link{
  background:var(--lilac-soft);
  border:1px solid var(--lilac);
  border-radius:999px;
  padding:3px 10px;
  font-size:11.5px;
  font-weight:800;
  color:#2B2A33;
  direction:ltr;
}

/* ============ التوست ============ */
.toast{
  position:fixed;
  left:50%;
  bottom:74px;
  z-index:95;
  transform:translate(-50%,10px);
  max-width:calc(100vw - 32px);
  padding:10px 16px;
  border-radius:999px;
  background:#2B2A33;
  color:#FBF6EF;
  font-size:13px;
  font-weight:700;
  box-shadow:0 12px 26px rgba(43,42,51,.22);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
  text-align:center;
}
.toast.show{ opacity:.97; transform:translate(-50%,0); }

/* ============ النافذة ============ */
.modal{
  position:fixed;
  inset:0;
  z-index:90;
  display:grid;
  place-items:center;
  padding:20px;
}
.modal-backdrop{ position:absolute; inset:0; background:rgba(43,42,51,.36); }
.modal-card{
  position:relative;
  width:100%;
  max-width:370px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  box-shadow:0 20px 40px rgba(47,107,79,.18);
  padding:20px;
  animation:pop .2s ease-out;
}
@keyframes pop{ from{ opacity:0; transform:scale(.95); } to{ opacity:1; transform:none; } }
.modal-card h3{ margin:0 0 6px; font-size:17px; font-weight:800; color:var(--green-dark); }
.modal-card p{ margin:0 0 16px; font-size:13.5px; color:#5A7266; line-height:1.75; }
.modal-actions{ display:flex; gap:8px; }
.modal-actions .btn{ flex:1; }

/* ============ الطباعة ============ */
.print-only{ display:none; }
@media print{
  body{ background:#fff; padding:0; }
  .app-header,.tabs,.site-footer,.month-bar,.btn,.toast,.modal,.legend,.view-head .pill-count{ display:none !important; }
  main{ max-width:none; padding:0; }
  .print-only{ display:block !important; margin-bottom:12px; }
  .pr-title{ font-size:18px; font-weight:800; color:#24523D; }
  .pr-sub{ font-size:12px; color:#555; }
  .res-card{
    box-shadow:none;
    border:1px solid #cfd8d2;
    break-inside:avoid;
    page-break-inside:avoid;
  }
  .bar span,.att-bar span{ print-color-adjust:exact; -webkit-print-color-adjust:exact; }
}

/* ============ الشاشات الأكبر ============ */
@media (min-width:600px){
  .tabs-inner{ display:flex; gap:8px; }
  .tab{
    padding:0 16px;
    border-radius:999px;
    background:#fff;
    border:1px solid var(--line);
    font-size:14px;
  }
  .tab svg{ display:block; }
  .tab[aria-selected="true"]{ border-color:transparent; }
  .brand h1{ font-size:26px; }
  .view-head h2{ font-size:21px; }
}
@media (min-width:720px){
  .acts-grid{ grid-template-columns:1fr 1fr; }
}

@media (prefers-reduced-motion:reduce){
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
  .view:not([hidden]){ animation:none; }
}