/* ============ صفحة الأوراد ============ */
.wd-head { padding-bottom: clamp(1.4rem, 3vw, 2.4rem); }
.wd-head h1 { margin-top: .2rem; }
.wd-title { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.2rem); }
.wd-logo { width: clamp(104px, 14vw, 170px); height: auto; flex: none; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35));
  animation: wd-logo-in 1.1s var(--wd-ease) both, wd-logo-glow 5s 1.2s ease-in-out infinite; }
@keyframes wd-logo-in { from { opacity: 0; transform: scale(.86) translateY(8px); filter: blur(4px) drop-shadow(0 6px 18px rgba(0,0,0,.35)); } }
@keyframes wd-logo-glow { 50% { filter: drop-shadow(0 0 14px rgba(217,188,122,.55)) drop-shadow(0 6px 18px rgba(0,0,0,.3)); } }
@media (max-width: 640px) { .wd-title { flex-direction: column; text-align: center; gap: .4rem; } .wd-logo { width: 132px; } }
.wd-sub { margin: .35rem 0 0; color: rgba(255,255,255,.78); font-size: .98rem; }
.wd-dates { display: flex; justify-content: space-between; gap: 1rem; margin: .4rem 0 .6rem; }
.wd-date { margin: 0; display: flex; flex-direction: column; line-height: 1.4; }
.wd-greg { text-align: left; align-items: flex-end; }
.wd-date-k { font-size: .72rem; letter-spacing: .02em; color: var(--brass-light); opacity: .9; }
.wd-date-v { font-family: var(--display); font-size: clamp(1.05rem, 2.6vw, 1.35rem); font-weight: 700; color: #fff; }

:root { --wd-ease: cubic-bezier(.22,1,.36,1); --wd-spring: cubic-bezier(.34,1.56,.64,1); }
.wd-app { padding-bottom: 3rem; }

/* ---------- شريط المواقيت ---------- */
.wd-sky { margin-top: clamp(-1.6rem, -2.5vw, -1rem); position: relative; z-index: 2;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 18px;
  padding: 1rem clamp(1rem, 2.5vw, 1.6rem) 1.1rem; box-shadow: 0 14px 40px -24px rgba(14,59,54,.45); }
.wd-sky-top { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.wd-city { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--rule); background: var(--paper);
  border-radius: 999px; padding: .3rem .8rem .3rem .9rem; font: 600 .92rem var(--text); color: var(--emerald); cursor: pointer;
  transition: border-color .2s, background .2s; }
.wd-city:hover { border-color: var(--brass-light); background: #fff; }
.wd-city svg { width: 18px; height: 18px; fill: none; stroke: var(--brass); stroke-width: 1.8; }
.wd-now { margin: 0; color: var(--muted); font-size: .9rem; }
.wd-sync { margin: 0 auto 0 0; font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: .4rem; }
.wd-sync::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9db3ab; }
.wd-sync[data-s="ok"]::before { background: #2f8a63; }
.wd-sync[data-s="busy"]::before { background: var(--brass); animation: wd-blink 1s infinite; }
.wd-sync[data-s="off"]::before { background: #c27b14; }
.wd-sync[data-s="err"]::before { background: var(--live); }
.wd-sync button { font: inherit; color: var(--emerald-2); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
@keyframes wd-blink { 50% { opacity: .25; } }

.wd-track { position: relative; margin: 1.1rem .4rem .2rem; height: 14px; }
.wd-track-bar { height: 6px; border-radius: 6px; overflow: hidden; position: absolute; inset: 4px 0 auto;
  background: linear-gradient(90deg, #0e3b36, #2b5d55); transform-origin: right; animation: wd-grow 1.1s var(--wd-ease) both; }
.wd-day { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, #e9c98a, #f3e6c4 50%, #e9c98a); transition: right .8s var(--wd-ease), width .8s var(--wd-ease); }
#wd-marks { position: absolute; inset: 0; pointer-events: none; }
.wd-mwin { position: absolute; top: 1px; height: 12px; border-radius: 4px; transition: background .5s, box-shadow .5s; }
.wd-mwin.ok, .wd-mwin.soon { background: rgba(47,155,98,.55); box-shadow: 0 0 0 1.5px #2f9b62; }
.wd-mwin.soon { background: rgba(47,155,98,.22); }
.wd-mwin.late { background: rgba(200,58,46,.7); box-shadow: 0 0 0 1.5px #c83a2e, 0 0 12px rgba(200,58,46,.6); animation: wd-late 1.4s ease-in-out infinite; }
.wd-mwin.done { background: rgba(47,155,98,.85); box-shadow: 0 0 0 1.5px #1f7a4a; }
.wd-mwin.missed { background: repeating-linear-gradient(45deg, rgba(200,58,46,.25) 0 3px, transparent 3px 6px); box-shadow: 0 0 0 1px rgba(200,58,46,.45); }
@keyframes wd-late { 50% { box-shadow: 0 0 0 1.5px #c83a2e, 0 0 2px rgba(200,58,46,.2); } }
.wd-tick { position: absolute; top: -3px; width: 1.5px; height: 20px; margin-right: -.75px; background: rgba(14,59,54,.35); border-radius: 1px; }
.wd-tick.sun { background: #c99a4b; }
.wd-legend { display: block; line-height: 1.9; margin: .65rem .4rem 0; font-size: .9rem; color: var(--ink, #1d2b29); min-height: 1.4em; }
.wd-legend .dot { display: inline-block; vertical-align: middle; width: 10px; height: 10px; border-radius: 50%; margin-left: .45rem; }
.wd-legend .dot.ok { background: #2f9b62; box-shadow: 0 0 0 3px rgba(47,155,98,.2); }
.wd-legend .dot.late, .wd-legend .dot.missed { background: #c83a2e; box-shadow: 0 0 0 3px rgba(200,58,46,.2); animation: wd-blink 1.2s infinite; }
.wd-legend .dot.done { background: #1f7a4a; }
.wd-legend b { color: #c83a2e; font-weight: 700; white-space: nowrap; }
.wd-legend .wd-link { margin-right: .3rem; }
.wd-link { font: inherit; font-weight: 700; color: var(--emerald-2, #1d6b5f); background: rgba(217,188,122,.2); border: 1px solid rgba(217,188,122,.6); border-radius: 999px; padding: .15rem .7rem; cursor: pointer; transition: background .2s, transform .2s var(--wd-ease); }
.wd-link:hover { background: rgba(217,188,122,.38); transform: translateY(-1px); }
@keyframes wd-grow { from { transform: scaleX(0); } }
.wd-sun { position: absolute; top: 0; width: 14px; height: 14px; margin-right: -7px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff6dc, #d9bc7a 60%, #96712a); box-shadow: 0 0 0 4px rgba(217,188,122,.25), 0 0 18px 4px rgba(217,188,122,.55);
  transition: right 1.2s var(--wd-ease); animation: wd-pulse 2.6s ease-in-out infinite; }
@keyframes wd-pulse { 50% { box-shadow: 0 0 0 7px rgba(217,188,122,.12), 0 0 26px 8px rgba(217,188,122,.45); } }
.wd-times { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: .3rem; }
.wd-times li { text-align: center; padding: .35rem .2rem; border-radius: 10px; transition: background .3s; }
.wd-times li.cur { background: rgba(217,188,122,.16); }
.wd-times li.next { box-shadow: inset 0 0 0 1px rgba(14,59,54,.18); }
.wd-times i { display: block; font-style: normal; font-size: .72rem; color: var(--emerald-2, #1d6b5f); margin-top: .1rem; }
@media (max-width: 560px) { .wd-times { grid-template-columns: repeat(3, 1fr); } .wd-times b { font-size: 1rem; } }
.wd-times b { display: block; font: 700 1.12rem/1.3 var(--display); color: var(--emerald); }
.wd-times span { font-size: .8rem; color: var(--muted); }

/* ---------- التبويبات ---------- */
.wd-tabs { display: flex; align-items: center; gap: .3rem; margin-top: 1.6rem; border-bottom: 1px solid var(--rule); }
.wd-tabs [role=tab] { position: relative; background: none; border: 0; padding: .7rem 1.1rem; font: 600 1.02rem var(--text); color: var(--muted); cursor: pointer; }
.wd-tabs [role=tab][aria-selected=true] { color: var(--emerald); }
.wd-tabs [role=tab]::after { content: ""; position: absolute; inset: auto .6rem -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brass);
  transform: scaleX(0); transition: transform .35s var(--wd-ease); }
.wd-tabs [role=tab][aria-selected=true]::after { transform: scaleX(1); }
.wd-acct { margin-right: auto; display: inline-flex; align-items: center; gap: .4rem; background: var(--emerald); color: #fff; border: 0;
  border-radius: 999px; padding: .42rem .95rem; font: 600 .9rem var(--text); cursor: pointer; transition: transform .2s, background .2s; }
.wd-acct:hover { background: var(--emerald-2); transform: translateY(-1px); }
.wd-acct svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.wd-pane { padding-top: 1.3rem; animation: wd-pane .55s var(--wd-ease); }
@keyframes wd-pane { from { opacity: 0; transform: translateY(10px); filter: blur(3px); } }
@keyframes wd-fade { from { opacity: 0; transform: translateY(8px); } }

/* ---------- بطاقات الأوراد ---------- */
.wd-hint { border: 1px solid #e7cf9b; background: linear-gradient(90deg, #fbf3e2, #fffaf0); color: #6b4f17; border-radius: 14px;
  padding: .75rem 1rem; margin-bottom: 1rem; font-size: .95rem; animation: wd-fade .5s var(--wd-ease); }
.wd-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.wd-card { position: relative; animation: wd-rise .6s var(--wd-ease) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes wd-rise { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.wd-card > button { width: 100%; will-change: transform; text-align: right; display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; align-items: center;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 18px; padding: 1.05rem 1.1rem; cursor: pointer; font: inherit; color: inherit;
  position: relative; overflow: hidden; transition: transform .5s var(--wd-ease), box-shadow .5s var(--wd-ease), border-color .4s; }
.wd-card > button::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: radial-gradient(120% 90% at 100% 0, rgba(217,188,122,.14), transparent 55%); }
.wd-card > button:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -22px rgba(14,59,54,.5); border-color: var(--brass-light); }
.wd-card > button:active { transform: translateY(0) scale(.99); }
.wd-card.is-open > button { border-color: rgba(150,113,42,.55); }
.wd-card.is-done > button { background: linear-gradient(160deg, #f3f8f5, #fff); }
.wd-ring { grid-row: span 3; width: 64px; height: 64px; position: relative; }
.wd-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.wd-ring circle { fill: none; stroke-width: 5; }
.wd-ring .bg { stroke: #e6ece8; }
.wd-ring .fg { stroke: var(--brass); stroke-linecap: round; stroke-dasharray: 176; stroke-dashoffset: 176; transition: stroke-dashoffset 1.4s var(--wd-ease) .15s, stroke .3s; }
.wd-card.is-done .wd-ring .fg { stroke: #2f8a63; }
.wd-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 .95rem var(--display); color: var(--emerald); }
.wd-card-name { font: 700 1.28rem/1.3 var(--display); color: var(--emerald); }
.wd-card-meta { font-size: .86rem; color: var(--muted); }
.wd-card-rounds { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .25rem; }
.wd-pill { font-size: .76rem; border-radius: 999px; padding: .1rem .55rem; background: #eef2ef; color: var(--muted); white-space: nowrap; }
.wd-pill.open { background: rgba(217,188,122,.25); color: #6b4f17; }
.wd-pill.done { background: #dff0e7; color: #1f6b4a; }
.wd-pill.part { background: #fbeee0; color: #8a4f12; }
.wd-pill.miss { background: #f6e3e5; color: #8d2433; }

/* ---------- القارئ ---------- */
body.wd-lock { overflow: hidden; }
.wd-reader[hidden], .wd-hint[hidden], .wd-pane[hidden], .wd-report-actions[hidden] { display: none !important; }
.wd-reader { position: fixed; inset: 0; z-index: 1000; background: var(--paper); display: flex; flex-direction: column;
  animation: wd-open .62s var(--wd-ease) both; will-change: clip-path; }
.wd-reader.closing { animation: wd-close .38s cubic-bezier(.55,0,.75,.2) forwards; }
@keyframes wd-open { from { clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%)); } to { clip-path: circle(150% at var(--ox, 50%) var(--oy, 50%)); } }
@keyframes wd-close { from { clip-path: circle(150% at var(--ox, 50%) var(--oy, 50%)); } to { clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%)); } }
.wd-reader .wd-r-head > * { animation: wd-fade .5s .18s var(--wd-ease) both; }
.wd-instant, .wd-instant * { transition: none !important; }
.wd-enter .wd-item, .wd-enter .wd-faw, .wd-enter .wd-sec-h, .wd-enter .wd-lead { animation: wd-up .6s var(--wd-ease) both; animation-delay: calc(.12s + var(--d, 0) * 55ms); }
@keyframes wd-up { from { opacity: 0; transform: translateY(16px); } }
.wd-r-head { display: flex; align-items: center; gap: .6rem; padding: .7rem clamp(.8rem, 3vw, 2rem); background: var(--emerald); color: #fff;
  background-image: linear-gradient(120deg, rgba(217,188,122,.12), transparent 40%); }
.wd-r-titles { flex: 1; min-width: 0; }
.wd-r-titles h2 { font-size: 1.3rem; color: #fff; }
.wd-r-titles p { margin: 0; font-size: .82rem; color: rgba(255,255,255,.75); }
.wd-r-tools { display: flex; gap: .3rem; }
.wd-icon-btn { min-width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06);
  color: #fff; display: grid; place-items: center; cursor: pointer; font: 700 .95rem var(--display); transition: background .2s; }
.wd-icon-btn:hover { background: rgba(255,255,255,.16); }
.wd-icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.wd-r-rounds { display: flex; gap: .4rem; padding: .6rem clamp(.8rem, 3vw, 2rem); background: #0b322e; overflow-x: auto; }
.wd-r-rounds:empty { display: none; }
.wd-r-rounds button { flex: none; border: 1px solid rgba(255,255,255,.2); background: transparent; color: rgba(255,255,255,.8);
  border-radius: 999px; padding: .3rem .85rem; font: 500 .86rem var(--text); cursor: pointer; transition: all .25s; }
.wd-r-rounds button[aria-selected=true] { background: var(--brass-light); border-color: var(--brass-light); color: var(--emerald); font-weight: 600; }
.wd-r-progress { height: 4px; background: #dfe6e1; }
.wd-r-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brass), var(--brass-light)); transition: width .8s var(--wd-ease); border-radius: 0 3px 3px 0; box-shadow: 0 0 10px rgba(217,188,122,.7); }
.wd-r-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1rem clamp(.8rem, 3vw, 2rem) 2rem; scroll-behavior: smooth; }
.wd-r-inner { max-width: 820px; margin: 0 auto; }
.wd-r-foot { display: flex; align-items: center; gap: .8rem; padding: .6rem clamp(.8rem, 3vw, 2rem) calc(.6rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule); background: #fff; }
.wd-r-count { flex: 1; font-size: .88rem; color: var(--muted); }

.wd-sec-h { display: flex; align-items: center; gap: .7rem; margin: 1.6rem 0 .8rem; color: var(--brass); font: 700 1.05rem var(--display); }
.wd-sec-h::before, .wd-sec-h::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--brass-light)); }
.wd-sec-h::after { background: linear-gradient(90deg, var(--brass-light), transparent); }
.wd-sec-h:first-child { margin-top: .3rem; }
.wd-lead { text-align: center; color: var(--muted); font-size: .92rem; margin: 0 0 1rem; }
.wd-note { border-right: 3px solid var(--brass-light); background: #fbf6ea; padding: .6rem .9rem; border-radius: 8px; color: #5c4a22; font-size: .92rem; margin: .8rem 0; }
.wd-state { text-align: center; background: #fff; border: 1px dashed var(--rule); border-radius: 12px; padding: .7rem; color: var(--muted); margin-bottom: 1rem; }
.wd-state.closed { border-color: #e9c5ca; color: #8d2433; background: #fdf6f7; }

.wd-item { --fs: 1; background: var(--sheet); border: 1px solid var(--rule); border-radius: 18px; margin-bottom: .9rem; overflow: hidden;
  transition: border-color .45s var(--wd-ease), box-shadow .45s var(--wd-ease), background-color .45s; }
.wd-item.flash { animation: wd-flash .9s var(--wd-ease); }
@keyframes wd-flash { 0% { box-shadow: 0 0 0 0 rgba(47,138,99,.45); background-color: #f1faf5; } 100% { box-shadow: 0 0 0 16px rgba(47,138,99,0); } }
.wd-item.is-active { border-color: rgba(150,113,42,.55); box-shadow: 0 16px 38px -26px rgba(150,113,42,.7); }
.wd-item-h { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem .2rem; }
.wd-item-t { flex: 1; font: 700 1.04rem var(--text); color: var(--emerald); transition: color .3s, opacity .3s; }
.wd-item-c { font-size: .85rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wd-check { width: 26px; height: 26px; flex: none; border-radius: 50%; background: #2f8a63; display: none; place-items: center; }
.wd-check svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 24; stroke-dashoffset: 24; }
.wd-item.is-done .wd-check { display: grid; animation: wd-pop .45s var(--wd-ease); }
.wd-item.is-done .wd-check svg { animation: wd-draw .4s .15s forwards; }
@keyframes wd-pop { from { transform: scale(0); } 70% { transform: scale(1.15); } }
@keyframes wd-draw { to { stroke-dashoffset: 0; } }
.wd-item.is-done .wd-item-t { color: #7f948d; }
.wd-item-intro { padding: 0 1rem; color: var(--brass); font-size: .9rem; margin: .1rem 0 0; }
.wd-collapse { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .6s var(--wd-ease); }
.wd-collapse > div { overflow: hidden; transition: opacity .45s var(--wd-ease); }
.wd-item.is-done:not(.show-text) .wd-collapse > div { opacity: 0; }
.wd-item.is-done:not(.show-text) .wd-collapse { grid-template-rows: 0fr; }
.wd-text { margin: 0; padding: .4rem 1.1rem .9rem; font: 400 calc(1.42rem * var(--fs))/2.15 var(--display); color: var(--ink); white-space: pre-line; text-align: right; }
.wd-text.q { font-size: calc(1.55rem * var(--fs)); }
.wd-text .alt { color: var(--brass); }
.wd-last { margin: 0 1.1rem .8rem; padding: .55rem .9rem; border-radius: 12px; background: #fbf6ea; font: 700 calc(1.3rem * var(--fs))/1.9 var(--display); color: #6b4f17;
  display: none; }
.wd-item.on-last .wd-last { display: block; animation: wd-glow 1.6s ease-in-out infinite alternate; }
.wd-item.on-last .wd-text { opacity: .45; }
@keyframes wd-glow { to { box-shadow: 0 0 0 3px rgba(217,188,122,.5); } }
.wd-item-f { display: flex; align-items: center; gap: .6rem; padding: .2rem 1rem 1rem; }
.wd-showtext { display: none; background: none; border: 0; color: var(--emerald-2); font: 500 .85rem var(--text); cursor: pointer; text-decoration: underline; padding: .3rem; }
.wd-item.is-done .wd-showtext { display: inline; }
.wd-item.is-done .wd-pad { display: none; }

/* زر العدّ */
.wd-pad { --p: 0; position: relative; margin-inline: auto; width: 100%; max-width: 420px; height: 76px; border: 0; border-radius: 20px; cursor: pointer;
  background: linear-gradient(180deg, #154c45, var(--emerald)); color: #fff; display: flex; align-items: center; justify-content: center; gap: 1rem;
  font: 700 1.05rem var(--text); box-shadow: 0 10px 22px -12px rgba(14,59,54,.9), inset 0 1px 0 rgba(255,255,255,.14);
  overflow: hidden; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; transition: transform .45s var(--wd-spring), box-shadow .3s var(--wd-ease), background .3s; }
.wd-pad::before { content: ""; position: absolute; inset: 0; transform-origin: right; transform: scaleX(var(--p));
  background: linear-gradient(90deg, rgba(217,188,122,.32), rgba(217,188,122,.1)); transition: transform .6s var(--wd-ease); }
.wd-pad:active, .wd-pad.press { transform: scale(.965); transition-duration: .12s; box-shadow: 0 4px 12px -8px rgba(14,59,54,.9); }
.wd-pad[disabled] { background: #c9d3ce; box-shadow: none; cursor: not-allowed; color: #5d6d67; }
.wd-pad .num { position: relative; display: inline-grid; font: 700 2rem/1.15 var(--display); min-width: 2.6ch; text-align: center; overflow: hidden; height: 1.2em; }
.wd-pad .num i { grid-area: 1 / 1; font-style: normal; }
.wd-pad .num i.in { animation: wd-num-in .42s var(--wd-ease) both; }
.wd-pad .num i.out { animation: wd-num-out .32s var(--wd-ease) forwards; }
@keyframes wd-num-in { from { transform: translateY(70%); opacity: 0; color: var(--brass-light); } 60% { color: var(--brass-light); } }
@keyframes wd-num-out { to { transform: translateY(-70%); opacity: 0; } }
.wd-pad .lbl { position: relative; opacity: .85; font-size: .92rem; }
.wd-ripple { position: absolute; border-radius: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; pointer-events: none;
  background: radial-gradient(circle, rgba(240,214,150,.55), rgba(217,188,122,0) 70%); animation: wd-ripple .75s var(--wd-ease) forwards; }
@keyframes wd-ripple { from { transform: scale(.4); opacity: 1; } to { transform: scale(13); opacity: 0; } }
.wd-pad.once { height: 58px; font-size: 1rem; }

.wd-kh { margin-top: 1.6rem; }

/* ---------- السجل والتقرير ---------- */
.wd-report-bar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.wd-seg-ctl { display: inline-flex; flex-wrap: wrap; background: #e9efeb; border-radius: 12px; padding: 4px; }
.wd-seg-ctl input { position: absolute; opacity: 0; pointer-events: none; }
.wd-seg-ctl span { display: block; white-space: nowrap; padding: .4rem .85rem; border-radius: 9px; cursor: pointer; font-size: .9rem; color: var(--muted); transition: all .25s; }
.wd-seg-ctl input:checked + span { background: #fff; color: var(--emerald); font-weight: 600; box-shadow: 0 2px 6px rgba(14,59,54,.12); }
.wd-seg-ctl input:focus-visible + span { outline: 3px solid var(--brass-light); }
.wd-btn { border: 0; border-radius: 12px; padding: .55rem 1.2rem; background: var(--brass); color: #fff; font: 600 .95rem var(--text); cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s; }
.wd-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(150,113,42,.9); }
.wd-btn.ghost { background: transparent; color: var(--emerald); border: 1px solid var(--rule); }
.wd-btn.ghost:hover { border-color: var(--brass-light); box-shadow: none; }
.wd-btn.small { padding: .4rem .8rem; font-size: .85rem; }
.wd-btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.wd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .7rem; margin: 1.2rem 0 .8rem; }
.wd-stat { background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: .8rem 1rem; animation: wd-rise .5s var(--wd-ease) both; animation-delay: calc(var(--i) * 60ms); }
.wd-stat b { display: block; font: 700 1.7rem/1.2 var(--display); color: var(--emerald); }
.wd-stat span { font-size: .84rem; color: var(--muted); }
.wd-stat.pct b { color: var(--brass); }
.wd-report-actions { display: flex; gap: .5rem; margin-bottom: .8rem; flex-wrap: wrap; }
.wd-table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 14px; background: #fff; }
.wd-table-wrap:empty { display: none; }
.wd-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 760px; }
.wd-table th, .wd-table td { padding: .55rem .6rem; border-bottom: 1px solid #edf1ee; text-align: center; white-space: nowrap; }
.wd-table th { background: #f3f6f4; color: var(--emerald); font-weight: 600; position: sticky; top: 0; }
.wd-table td:first-child, .wd-table th:first-child { text-align: right; position: sticky; right: 0; background: #fff; z-index: 1; box-shadow: -1px 0 0 #edf1ee; }
.wd-table th:first-child { background: #f3f6f4; z-index: 2; }
.wd-table tbody tr { cursor: pointer; transition: background .2s; animation: wd-fade .4s var(--wd-ease) both; }
.wd-table tbody tr:hover { background: #f8faf8; }
.wd-table .d2 { display: block; font-size: .78rem; color: var(--muted); }
.wd-table .ok { color: #1f6b4a; font-weight: 700; }
.wd-table .pt { color: #8a4f12; }
.wd-table .no { color: #9aa8a3; }
.wd-st { display: inline-block; border-radius: 999px; padding: .08rem .6rem; font-size: .8rem; }
.wd-st.s-done { background: #dff0e7; color: #1f6b4a; }
.wd-st.s-part { background: #fbeee0; color: #8a4f12; }
.wd-st.s-none { background: #f6e3e5; color: #8d2433; }
.wd-st.s-live { background: rgba(217,188,122,.25); color: #6b4f17; }
.wd-st.s-pre { background: #eef2ef; color: #7d8c87; }

/* ---------- النوافذ ---------- */
.wd-dialog { border: 0; padding: 0; border-radius: 20px; width: min(94vw, 440px); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); color: var(--ink); }
.wd-dialog[open] { animation: wd-rise .4s var(--wd-ease); }
.wd-dialog::backdrop { background: rgba(10,30,27,.55); backdrop-filter: blur(3px); }
.wd-dialog-in { padding: 1.3rem 1.3rem 1.1rem; }
.wd-dialog h3 { font-size: 1.35rem; color: var(--emerald); margin-bottom: .4rem; }
.wd-dialog p { font-size: .92rem; color: var(--muted); }
.wd-field { display: block; margin: .8rem 0; }
.wd-field > span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .3rem; color: var(--emerald); }
.wd-field input, .wd-field select { width: 100%; font: 500 1.05rem var(--text); padding: .6rem .8rem; border: 1px solid var(--rule); border-radius: 12px; background: #fff; }
.wd-field input:focus, .wd-field select:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(217,188,122,.35); }
.wd-phone { display: flex; align-items: stretch; direction: ltr; border: 1px solid var(--rule); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.wd-phone:focus-within { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(217,188,122,.35); }
.wd-cc { position: relative; flex: none; display: flex; align-items: center; gap: .35rem; padding: 0 .55rem 0 .75rem; border-right: 1px solid var(--rule); cursor: pointer; }
.wd-cc-v { display: flex; align-items: center; gap: .4rem; font: 600 1rem/1 -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); white-space: nowrap; }
.wd-cc-v i { font-style: normal; font-size: 1.35rem; line-height: 1; }
.wd-cc::after { content: ""; width: 7px; height: 7px; margin: -4px 0 0 .1rem; border: solid var(--muted); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.wd-field .wd-cc select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; border: 0; font-size: 16px; }
.wd-field .wd-phone input { flex: 1; min-width: 0; border: 0; border-radius: 0 12px 12px 0; box-shadow: none; text-align: left; direction: ltr;
  font: 500 1.08rem -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: .02em; padding: .7rem .8rem; }
.wd-field .wd-phone input:focus { box-shadow: none; }
.wd-code { letter-spacing: .5em; text-align: center; direction: ltr; font-size: 1.5rem !important; }
.wd-dialog-act { display: flex; gap: .5rem; justify-content: flex-start; margin-top: 1rem; flex-wrap: wrap; }
.wd-err { color: var(--live) !important; min-height: 1.2em; margin: .3rem 0 0; }
.wd-daylist { list-style: none; padding: 0; margin: .6rem 0 0; max-height: 60vh; overflow: auto; }
.wd-daylist li { border-bottom: 1px solid #edf1ee; padding: .55rem 0; }
.wd-daylist b { color: var(--emerald); }
.wd-daylist small { display: block; color: var(--muted); }

/* ---------- تنبيه وإتمام ---------- */
.wd-toast { position: fixed; z-index: 1200; left: 50%; bottom: calc(1.2rem + env(safe-area-inset-bottom)); transform: translate(-50%, 140%);
  background: var(--emerald); color: #fff; border-radius: 12px; padding: .6rem 1rem; font-size: .92rem; box-shadow: 0 14px 30px -12px rgba(0,0,0,.4);
  transition: transform .4s var(--wd-ease), opacity .3s, visibility .4s; max-width: 92vw; opacity: 0; visibility: hidden; }
.wd-toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.wd-done { position: fixed; inset: 0; z-index: 1100; display: grid; place-content: center; justify-items: center; text-align: center;
  background: radial-gradient(circle at 50% 42%, #134a43, #071f1c 70%); color: #fff; animation: wd-fade .12s; cursor: pointer; }
.wd-done[hidden] { display: none; }
.wd-done-mark { position: relative; width: min(74vw, 300px); height: min(74vw, 300px); display: grid; place-items: center; }
.wd-done-star { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; opacity: .75; }
.wd-done-logo { position: relative; width: 52%; height: auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,.5)); animation: wd-logo-in .32s var(--wd-ease) both; }
.wd-done-star path, .wd-done-star circle { fill: none; stroke: var(--brass-light); stroke-width: 1.6; stroke-dasharray: 900; stroke-dashoffset: 900;
  animation: wd-star .55s var(--wd-ease) forwards; }
.wd-done-star path:nth-child(2) { animation-delay: .06s; }
.wd-done-star path:nth-child(3) { animation-delay: .14s; stroke-opacity: .7; }
.wd-done-star circle { animation-delay: .22s; fill: rgba(217,188,122,0); transition: fill .6s; }
.wd-done.lit .wd-done-star { animation: wd-spin 18s linear infinite; }
@keyframes wd-star { to { stroke-dashoffset: 0; } }
@keyframes wd-spin { to { transform: rotate(360deg); } }
.wd-done-t { font: 700 2.4rem var(--display); margin: 1rem 0 0; color: var(--brass-light); animation: wd-rise .3s .05s var(--wd-ease) both; }
.wd-done-s { margin: .2rem 0 0; color: rgba(255,255,255,.8); animation: wd-rise .3s .1s var(--wd-ease) both; }

.wd-dua { text-align: center; margin-top: 2.6rem; font: 700 1.2rem/1.9 var(--display); color: var(--emerald); }

@media (max-width: 560px) {
  .wd-seg-ctl span { padding: .35rem .6rem; font-size: .84rem; }
  .wd-report-bar { gap: .6rem; }
  .wd-times b { font-size: 1rem; }
  .wd-text { padding-inline: .9rem; }
  .wd-tabs [role=tab] { padding: .7rem .8rem; }
  .wd-sync { margin: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .wd-app *, .wd-reader, .wd-reader *, .wd-done, .wd-done * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  body * { visibility: hidden !important; }
  #wd-print-area, #wd-print-area * { visibility: visible !important; }
  #wd-print-area { position: absolute; inset: 0; }
  #wd-print-area .wd-table { min-width: 0; font-size: 9pt; }
  #wd-print-area .wd-table th { position: static; }
}

/* الفواتح داخل الورد */
.wd-faw { border: 1px solid rgba(150,113,42,.45); border-radius: 20px; margin: .4rem 0 1.2rem; background: linear-gradient(180deg, #fffaf0, #fff); overflow: hidden;
  transition: border-color .5s, background .5s; }
.wd-faw.done { border-color: #cfe5d8; background: #f6fbf8; }
.wd-faw-h { width: 100%; display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; background: none; border: 0; cursor: pointer; font: inherit; text-align: right; }
.wd-faw-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #efe3c6; transition: background .4s, transform .5s var(--wd-spring); }
.wd-faw-ic svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .3s; }
.wd-faw.done .wd-faw-ic { background: #2f8a63; transform: scale(1.05); }
.wd-faw.done .wd-faw-ic svg { opacity: 1; }
.wd-faw-t { flex: 1; font: 700 1.1rem var(--display); color: var(--emerald); }
.wd-faw-s { font-size: .82rem; color: var(--brass); }
.wd-faw.done .wd-faw-s { color: #2f8a63; }
.wd-faw-h[aria-expanded=false] + .wd-faw-b { grid-template-rows: 0fr; }
.wd-faw-h[aria-expanded=false] + .wd-faw-b > div { opacity: 0; }
.wd-faw-b > div { padding: 0 .7rem; }
.wd-faw .wd-item { margin-bottom: .7rem; }
.wd-faw .wd-lead { margin-top: -.2rem; }

/* ---------- الجولة 3 ---------- */
.wd-cards[data-ready="1"] .wd-card { animation: none; }
.wd-quiet .wd-stat, .wd-quiet .wd-table tbody tr, .wd-pane.wd-quiet { animation: none !important; }
.wd-card.is-late { box-shadow: 0 0 0 2px rgba(200,58,46,.55), 0 10px 30px -12px rgba(200,58,46,.5); border-radius: 18px; }
.wd-card.is-late .wd-card-meta { color: #c83a2e; font-weight: 700; }
.wd-card.is-sub button { background: linear-gradient(135deg, #fffaf0, #f6ead0); }
.wd-card.is-sub .wd-card-name::after { content: "بدل المسبعات"; display: inline-block; margin-right: .4rem; font: 600 .7rem var(--text); color: #96712a; background: rgba(217,188,122,.3); padding: .05rem .5rem; border-radius: 999px; vertical-align: middle; }
.wd-font { display: inline-flex; align-items: center; justify-content: center; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1; }
.wd-font .sm { font-size: .95rem; font-weight: 700; }
.wd-font .lg { font-size: 1.22rem; font-weight: 700; }
.wd-fath-cta { margin: .2rem 0 1.2rem; padding: .9rem 1rem; border-radius: 14px; background: rgba(200,58,46,.07); border: 1px solid rgba(200,58,46,.25); }
.wd-fath-cta p { margin: 0 0 .6rem; }
.ok.sub { font-size: .78rem; white-space: nowrap; }
.wd-calc { margin: .55rem .3rem 0; font-size: .78rem; line-height: 1.7; color: var(--muted); }

/* ---------- إغلاق سريع للبند عند «تمت القراءة» (v2) ---------- */
.wd-item.closing .wd-collapse { transition: grid-template-rows .24s cubic-bezier(.4, 0, .2, 1);}
.wd-item.is-done.closing:not(.show-text) .wd-collapse > div { transition: none; transform-origin: var(--gx1) var(--gy1); animation: wd-genie .24s cubic-bezier(.5, 0, .75, .35) forwards;}
.wd-item.is-done.closing .wd-pad { display: flex; pointer-events: none; transform-origin: var(--gx2) var(--gy2); animation: wd-genie .24s cubic-bezier(.5, 0, .75, .35) forwards;}
.wd-item.is-done.closing .wd-showtext { visibility: hidden;}
.wd-item.closing .wd-item-f { box-sizing: border-box; overflow: hidden; animation: wd-fold .24s cubic-bezier(.4, 0, .2, 1) forwards;}
.wd-item.closing { transition: none;}
@keyframes wd-genie { 0% { transform: scale(1, 1); opacity: 1;} 55% { transform: scale(.34, .5); opacity: .75;} 100% { transform: scale(.02, .02); opacity: 0;}}
@keyframes wd-fold { from { height: var(--fh);} to { height: var(--fe);}}
.wd-item.is-done .wd-check { animation-duration: .3s;}
.wd-item.wd-nt .wd-item-h { padding: .55rem 1rem 0; min-height: 0;}
.wd-item.wd-nt .wd-item-t { min-width: 0;}
.wd-item.wd-nt .wd-text { padding-top: .2rem;}

/* شريط لمس غير مرئي أعلى القارئ يعيد القراءة لأعلى نقطة (آيفون) */
.wd-reader { position: fixed;}
.wd-toptap { position: absolute; top: 0; left: 0; right: 0; height: calc(env(safe-area-inset-top, 0px) + 8px); z-index: 6; background: transparent; -webkit-tap-highlight-color: transparent;}
.wd-reader .wd-r-head { cursor: pointer;}
.wd-reader .wd-r-head button, .wd-reader .wd-r-head a { cursor: pointer;}

/* سهم الصعود لأعلى القارئ: يظهر فقط بعد التمرير بعيدًا عن البداية */
.wd-uparrow { position: absolute; top: 1px; left: 50%; z-index: 7; width: 42px; height: 20px; margin-left: -21px; padding: 0; border: 0; border-radius: 0 0 14px 14px;
  background: rgba(7,31,28,.55); color: var(--brass-light); display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
  opacity: 0; visibility: hidden; transform: translateY(-100%); transition: opacity .25s, transform .3s var(--wd-ease), visibility .3s; }
.wd-uparrow.show { opacity: 1; visibility: visible; transform: translateY(0); }
.wd-uparrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.wd-uparrow.show svg { animation: wd-bob 1.5s ease-in-out infinite; }
@keyframes wd-bob { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .wd-uparrow.show svg { animation: none; } }

/* مع الخط الكبير يطول نص الذكر فيهرب زر العدّ تحت الشاشة: نثبّته أسفل القارئ ما دام الذكر لم يكتمل ونصّه ممتد تحت الشاشة */
@supports (overflow: clip) {
  .wd-item { overflow: clip; }
  .wd-item:not(.is-done) .wd-item-f { position: sticky; bottom: 0; z-index: 4; padding-top: .9rem;
    background: linear-gradient(to bottom, rgba(255,255,255,0), var(--sheet) 34%); }
}

/* زر العدّ أصغر وأخف خاصة على الهاتف */
.wd-pad { height: 56px; max-width: 280px; border-radius: 16px; gap: .7rem; }
.wd-pad .num { font-size: 1.5rem; }
.wd-pad .lbl { font-size: .85rem; }
.wd-pad.once { height: 46px; font-size: .95rem; }
.wd-item-f { padding-bottom: .8rem; }
.wd-font .eq { font: 700 1.25rem/1 var(--display); }

/* ---------- وضوح أعلى (أندرويد) وتثبيت الصفحة أفقيًا ---------- */
.wd-app, .wd-reader { --muted: #394a45; --rule: #aebcb5; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.wd-app { overflow-x: clip; }
/* لا انجراف جانبي: القارئ يتحرك رأسيًا فقط ولا يخرج عن عرض الشاشة */
.wd-reader { max-width: 100%; overflow-x: hidden; }
.wd-r-body { overflow-x: hidden; overscroll-behavior-x: none; touch-action: pan-y pinch-zoom; }
.wd-text, .wd-last, .wd-item-t, .wd-note { overflow-wrap: anywhere; }
.wd-sub { color: rgba(255,255,255,.94); }
.wd-r-titles p { color: rgba(255,255,255,.94); }
.wd-r-rounds button { color: #fff; border-color: rgba(255,255,255,.45); }
.wd-r-rounds button[aria-selected=true] { color: #0b322e; }
.wd-icon-btn { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.14); }
.wd-item { border-color: var(--rule); }
.wd-text { color: #08130f; }
.wd-item-intro, .wd-sec-h, .wd-text .alt { color: #7a5712; }
.wd-item.is-done .wd-item-t { color: #4f625b; }
.wd-pad .lbl { opacity: 1; }
.wd-pad[disabled] { background: #b9c6bf; color: #2f3f39; }
.wd-item-c, .wd-r-count { color: #394a45; }

/* بطاقات الأوراد لا تتمدد خارج عرض الشاشات الضيقة */
.wd-card > button { grid-template-columns: auto minmax(0, 1fr); }
.wd-card > button > * { min-width: 0; }
.wd-pill { white-space: normal; }
.wd-btn.ghost[disabled] { opacity: .72; }

/* ================= الجولة ٤: أندرويد — لمس أسرع، رأس القارئ، شريط المواقيت، السجل ================= */

/* رأس القارئ: لا تظليل أزرق على البانر كله عند الضغط على أزرار الخط؛ لكل زر استجابته الخاصة */
.wd-reader, .wd-reader *, .wd-app button, .wd-app a, .wd-app label { -webkit-tap-highlight-color: transparent; }
.wd-r-head { -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.wd-icon-btn { touch-action: manipulation; transition: background .15s, border-color .15s, transform .12s cubic-bezier(.2,.8,.3,1); }
.wd-icon-btn:active { background: rgba(255,255,255,.3); border-color: rgba(255,255,255,.85); transform: scale(.9); transition-duration: .05s; }
.wd-r-rounds button { touch-action: manipulation; }
.wd-r-rounds button:active { transform: scale(.95); }

/* زر العدّ: ضغطة فورية بلا ارتداد بطيء */
.wd-pad { will-change: transform; transition: transform .14s cubic-bezier(.2,.8,.3,1), box-shadow .14s ease-out, background .2s; }
.wd-pad:active, .wd-pad.press { transform: scale(.955); transition-duration: .05s; }
.wd-pad::before { transition: transform .26s var(--wd-ease); }
.wd-pad .num i.in { animation-duration: .2s; }
.wd-pad .num i.out { animation-duration: .16s; }
.wd-ripple { animation-duration: .45s; }

/* ---------- شريط المواقيت ---------- */
.wd-sky { background: linear-gradient(180deg, #fff, #fbfaf6); padding: 1rem clamp(.9rem, 2.5vw, 1.6rem) .9rem; }
.wd-now { font-weight: 600; color: var(--emerald); font-variant-numeric: tabular-nums; }
.wd-track { height: 22px; margin: 1.15rem .5rem .2rem; }
.wd-track-bar { height: 10px; inset: 6px 0 auto; border-radius: 10px; box-shadow: inset 0 1px 2px rgba(0,0,0,.28), 0 1px 0 #fff; }
.wd-day { background: rgba(7,31,28,.32); transition: width .8s var(--wd-ease); }
.wd-mwin { top: 3px; height: 16px; border-radius: 7px; }
.wd-tick { top: 8px; width: 6px; height: 6px; margin-right: -3px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px rgba(14,59,54,.6); }
.wd-tick.sun { box-shadow: 0 0 0 1.5px #b8741a; }
.wd-tick.next { top: 7px; width: 8px; height: 8px; margin-right: -4px; box-shadow: 0 0 0 2px var(--brass); }
.wd-sun { top: 3px; width: 16px; height: 16px; margin-right: -8px; z-index: 2; }
.wd-legend { margin: .75rem 0 0; padding: .5rem .8rem; border-radius: 12px; background: #f2f6f3; font-size: .9rem; color: #1d2b29; }
.wd-times { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .4rem; margin-top: .8rem; }
.wd-times li { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .5rem .15rem .4rem; border: 1px solid #dfe6e1; border-radius: 12px; background: #fff;
  transition: background .3s, border-color .3s; }
.wd-times li span { order: 1; font-size: .78rem; font-weight: 600; color: #394a45; }
.wd-times li b { order: 2; font: 700 1.12rem/1.2 var(--display); color: var(--emerald); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wd-times li b small { font: 600 .6em var(--text); margin-right: .2em; opacity: .85; }
.wd-times li i { order: 3; font-style: normal; font-size: .7rem; min-height: 1.25em; color: #7a5712; font-weight: 700; margin: 0; }
.wd-times li.past { background: #f5f7f5; border-color: #e6ebe7; }
.wd-times li.past b, .wd-times li.past span { color: #5b6d67; }
.wd-times li.cur { background: var(--emerald); border-color: var(--emerald); box-shadow: 0 8px 18px -12px rgba(14,59,54,.9); }
.wd-times li.cur span { color: rgba(255,255,255,.88); }
.wd-times li.cur b { color: #fff; }
.wd-times li.cur i { color: var(--brass-light); }
.wd-times li.next { background: #fffaf0; border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
@media (max-width: 560px) { .wd-times { grid-template-columns: repeat(3, minmax(0, 1fr)); } .wd-times li b { font-size: 1.05rem; } }
.wd-calc-d { margin: .65rem .2rem 0; }
.wd-calc-d summary { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; list-style: none; font-size: .8rem; font-weight: 600; color: #394a45; }
.wd-calc-d summary::-webkit-details-marker { display: none; }
.wd-calc-d summary::before { content: "i"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor;
  font: italic 700 .68rem/1 Georgia, serif; }
.wd-calc-d[open] summary { color: var(--emerald); }
.wd-calc-d .wd-calc { margin: .4rem 0 0; }

/* ---------- السجل: نسبة اليوم بلون دلالي (أحمر ٠٪ ← أخضر ١٠٠٪) ---------- */
.wd-pct { display: inline-block; min-width: 3.1em; padding: .1rem .5rem; border-radius: 999px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: hsl(var(--h) 72% 25%); background: hsl(var(--h) 72% 91%); box-shadow: inset 0 0 0 1px hsl(var(--h) 55% 72%); }
.wd-stat.pct b { color: hsl(var(--h) 70% 30%); }
.wd-days { list-style: none; margin: 0; padding: 0; display: none; gap: .7rem; }
.wd-dayc { position: relative; background: #fff; border: 1px solid #d3dcd5; border-inline-start: 5px solid hsl(var(--h) 62% 42%); border-radius: 14px;
  padding: .75rem .9rem .8rem; cursor: pointer; animation: wd-rise .45s var(--wd-ease) both; animation-delay: calc(var(--i) * 35ms);
  transition: transform .12s, box-shadow .2s; }
.wd-dayc:active { transform: scale(.985); }
.wd-dayc:focus-visible { outline: 3px solid var(--brass-light); outline-offset: 2px; }
.wd-dayc.pre { border-inline-start-color: #c9d3ce; }
.wd-dayc-h { display: flex; align-items: center; gap: .6rem; }
.wd-dayc-d { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.wd-dayc-d b { font: 700 1.05rem var(--display); color: var(--emerald); }
.wd-dayc-d span { font-size: .78rem; color: #394a45; }
.wd-dayc-p { font: 700 1.5rem/1 var(--display); color: hsl(var(--h) 70% 30%); font-variant-numeric: tabular-nums; min-width: 3ch; text-align: left; }
.wd-pbar { height: 7px; border-radius: 7px; background: #e6ece8; margin: .6rem 0 .55rem; overflow: hidden; }
.wd-pbar i { display: block; height: 100%; border-radius: inherit; background: hsl(var(--h) 62% 42%); transition: width .6s var(--wd-ease); }
.wd-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem; }
.wd-chips li { display: flex; align-items: center; justify-content: space-between; gap: .25rem; min-width: 0; padding: .22rem .45rem; border-radius: 8px;
  font-size: .72rem; background: #f1f4f2; color: #46564f; }
.wd-chips li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-chips li b { flex: none; font-weight: 700; }
.wd-chips li.ok { background: #dff0e7; color: #1a5e40; }
.wd-chips li.pt { background: #fbeee0; color: #7d470f; }
.wd-chips li.no { background: #f6e3e5; color: #8d2433; }
.wd-dayc-n { margin: .4rem 0 0; font-size: .74rem; color: #394a45; }
@media (max-width: 700px) {
  .wd-days { display: grid; }
  .wd-table-wrap { overflow: visible; border: 0; background: none; border-radius: 0; }
  .wd-table-wrap > .wd-table { display: none; }
}
@media (max-width: 360px) { .wd-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media print { .wd-days { display: none !important; } }

/* شريط المواقيت: نافذة المسبعات أطول وأوضح، ودائرة «الآن» أصغر */
.wd-track { height: 28px; }
.wd-track-bar { inset: 9px 0 auto; }
.wd-mwin { top: 0; height: 28px; border-radius: 8px; }
.wd-tick { top: 11px; }
.wd-tick.next { top: 10px; }
.wd-sun { top: 8px; width: 12px; height: 12px; margin-right: -6px;
  box-shadow: 0 0 0 3px rgba(217,188,122,.3), 0 0 10px 2px rgba(217,188,122,.55); }
@keyframes wd-pulse { 50% { box-shadow: 0 0 0 5px rgba(217,188,122,.14), 0 0 14px 4px rgba(217,188,122,.45); } }

/* شريط المواقيت (٥): التركيز على نافذتي المسبعات، وعلامة «الآن» واضحة */
.wd-track { height: 30px; margin: 1.2rem .3rem 2.9rem; }
.wd-track-bar { height: 12px; inset: 9px 0 auto; }
.wd-mwin { top: 0; height: 30px; border-radius: 9px; }
.wd-mwin.ok, .wd-mwin.soon { background: rgba(47,155,98,.2); box-shadow: inset 0 0 0 2px #2f9b62; }
.wd-mwin.soon { background: rgba(47,155,98,.08); box-shadow: inset 0 0 0 1.5px rgba(47,155,98,.7); }
.wd-mwin.late { background: rgba(200,58,46,.2); box-shadow: inset 0 0 0 2px #c83a2e; animation: none; }
.wd-mwin.done { background: rgba(47,155,98,.35); box-shadow: inset 0 0 0 2px #1f7a4a; }
.wd-mwin.missed { box-shadow: inset 0 0 0 1.5px rgba(200,58,46,.5); }
.wd-wlab { position: absolute; top: 36px; display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.3;
  font-size: .68rem; color: #394a45; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wd-wlab b { font-size: .76rem; font-weight: 700; color: #1f6b4a; }
.wd-wlab.late b, .wd-wlab.missed b { color: #b3261e; }
.wd-wlab.done b { color: #1f7a4a; }
.wd-tick { top: 12px; }
.wd-tick.next { top: 11px; }
.wd-sun { top: 6px; width: 18px; height: 18px; margin-right: -9px; z-index: 3; background: #fff; border: 4px solid var(--emerald);
  box-sizing: border-box; box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0,0,0,.4); animation: wd-now 2.2s ease-in-out infinite; }
@keyframes wd-now { 50% { box-shadow: 0 0 0 2px #fff, 0 0 0 7px rgba(217,188,122,.45), 0 2px 8px rgba(0,0,0,.4); } }
.wd-day { background: rgba(7,31,28,.16); }
.wd-tick.under { opacity: 0; }

/* ================= رأس القارئ (البار الأخضر): تسلسل واضح ================= */
/* ١) العنوان  ٢) وصف الوقت  ٣) أدوات الخط  ٤) الجولات بمواعيدها */
.wd-r-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .65rem;
  padding: calc(.6rem + env(safe-area-inset-top, 0px)) clamp(.75rem, 3vw, 2rem) .6rem;
  background: linear-gradient(180deg, #11433d, #0e3b36); box-shadow: inset 0 -1px 0 rgba(217,188,122,.22); }
.wd-r-head #wd-r-close { width: 40px; min-width: 40px; height: 40px; border-radius: 12px; }
.wd-r-titles { min-width: 0; }
.wd-r-titles h2 { margin: 0; font: 700 1.38rem/1.25 var(--display); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-r-titles p { margin: .1rem 0 0; font-size: .8rem; line-height: 1.4; color: rgba(255,255,255,.86); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* أداة حجم الخط: كبسولة واحدة بدل ثلاثة أزرار منفصلة */
.wd-fsz { display: flex; align-items: stretch; height: 38px; border: 1px solid rgba(255,255,255,.32); border-radius: 12px; overflow: hidden;
  background: rgba(255,255,255,.07); gap: 0; }
.wd-fsz .wd-font { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 1px; min-width: 34px; padding: 0 .3rem;
  color: #fff; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background .12s; }
.wd-fsz .wd-font + .wd-font { border-right: 1px solid rgba(255,255,255,.2); }
.wd-fsz .wd-font:active { background: rgba(255,255,255,.22); }
.wd-fsz .wd-font:focus-visible { outline: 2px solid var(--brass-light); outline-offset: -2px; }
.wd-fsz .wd-font[disabled] { opacity: .38; cursor: default; }
.wd-fsz .wd-font span { font-family: var(--display); font-weight: 700; line-height: 1; }
.wd-fsz .wd-font .lg { font-size: 1.15rem; }
.wd-fsz .wd-font .sm { font-size: .85rem; }
.wd-fsz .wd-font i { font-style: normal; font: 700 .75rem/1 -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--brass-light); }
.wd-fsz .wd-font-v { min-width: 46px; font: 600 .74rem/1 var(--text); color: rgba(255,255,255,.9); font-variant-numeric: tabular-nums; }

/* الجولات: أزرار متساوية بعرض كامل، الاسم فوق والميعاد تحته */
.wd-r-rounds { display: flex; gap: 0; padding: .5rem clamp(.75rem, 3vw, 2rem) .65rem; background: #0b322e; overflow: visible; }
.wd-r-rounds:not(:empty) { display: flex; }
.wd-r-rounds::before { content: none; }
.wd-r-rounds button { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .05rem; padding: .38rem .5rem .42rem;
  border: 0; border-radius: 11px; background: transparent; color: rgba(255,255,255,.82); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.wd-r-rounds { box-shadow: inset 0 0 0 1px rgba(255,255,255,.0); }
.wd-r-rounds button + button { margin-right: 4px; }
.wd-r-rounds button b { font: 700 .95rem/1.3 var(--text); }
.wd-r-rounds button small { font-size: .72rem; line-height: 1.3; opacity: .85; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wd-r-rounds button[aria-selected=false] { background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.wd-r-rounds button[aria-selected=true] { background: var(--brass-light); color: #0b322e; box-shadow: 0 6px 14px -8px rgba(0,0,0,.6); }
.wd-r-rounds button[aria-selected=true] small { opacity: 1; }
@media (min-width: 700px) { .wd-r-rounds button { max-width: 260px; } .wd-r-rounds { justify-content: center; } }
.wd-r-titles h2.wrap2 { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.2; }

/* رأس «الفواتح الثلاث» داخل الورد: العنوان سطر، والحالة شارة تحته */
.wd-faw-h { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .7rem; row-gap: .2rem; align-items: center; padding: .85rem 1rem; }
.wd-faw-ic { grid-row: span 2; }
.wd-faw-t { line-height: 1.35; }
.wd-faw-s { justify-self: start; padding: .08rem .6rem; border-radius: 999px; background: rgba(217,188,122,.22); color: #7a5712; font-weight: 600; font-size: .76rem; }
.wd-faw.done .wd-faw-s { background: #dff0e7; color: #1f6b4a; }

/* ================= خط القراءة: نسخ واضح ومتناسق (أندرويد خاصة) ================= */
/* نص الأذكار والقرآن بخط «نوتو نسخ» (نفس عائلة خط أندرويد العربي، وتشكيله كامل وواضح)، وكل عناصر الواجهة بخط «بلكس» */
@font-face { font-family: "Naskh"; font-weight: 400; font-display: swap; src: url("fonts/noto-naskh-arabic-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FD3D, U+FD40-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Naskh"; font-weight: 600; font-display: swap; src: url("fonts/noto-naskh-arabic-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FD3D, U+FD40-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Naskh"; font-weight: 700; font-display: swap; src: url("fonts/noto-naskh-arabic-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FD3D, U+FD40-FDFF, U+FE70-FEFF; }
.wd-app, .wd-reader, .wd-done, .wd-dialog { --display: "Naskh", "Noto Naskh Arabic", "Amiri", serif; }

/* نص الذكر */
.wd-text { font: 400 calc(1.3rem * var(--fs))/2.05 var(--display); color: #0b1714; word-spacing: .04em; padding: .45rem 1.1rem .95rem; }
.wd-text.q { font-size: calc(1.36rem * var(--fs)); line-height: 2.15; }
.wd-last { font: 600 calc(1.22rem * var(--fs))/1.95 var(--display); }

/* عناوين داخل القارئ بخط الواجهة، بتدرّج واضح */
.wd-item-h { padding: .8rem 1.1rem .15rem; }
.wd-item-t { font: 700 .98rem/1.5 var(--text); color: var(--emerald); }
.wd-item-c { font: 600 .82rem var(--text); color: #394a45; }
.wd-item-intro { font: 500 .86rem/1.6 var(--text); color: #7a5712; padding: 0 1.1rem; }
.wd-sec-h { font: 700 .98rem var(--text); color: #7a5712; }
.wd-lead { font: 400 .9rem/1.8 var(--text); color: #394a45; }

/* المربع الأصفر (الفواتح الثلاث): عنوان، شارة الحالة، ثم الشرح بمحاذاة اليمين، ثم البنود */
.wd-faw { background: #fffbf2; border-color: #e3cf9f; }
.wd-faw-t { font: 700 1.02rem/1.45 var(--text); color: var(--emerald); }
.wd-faw .wd-lead { text-align: right; margin: 0 .35rem .9rem; padding: .6rem .8rem; border-radius: 10px; background: rgba(217,188,122,.14);
  font-size: .88rem; line-height: 1.85; color: #4a3d1c; }
.wd-faw .wd-item { background: #fff; }
.wd-faw-b > div { padding: 0 .75rem .2rem; }

/* ---------- قراءة على السبحة (خارج الصفحة) ---------- */
.wd-ext { display: flex; align-items: center; justify-content: space-between; gap: .7rem; flex-wrap: wrap; margin: 0 0 1rem;
  padding: .65rem .8rem .65rem 1rem; border: 1px solid var(--rule); border-radius: 14px; background: linear-gradient(180deg, #fff, #f7f3e8);
  color: var(--emerald); font-size: .92rem; animation: wd-rise .45s var(--wd-ease) both; }
.wd-ext[hidden] { display: none; }
.wd-ext span { flex: 1 1 12rem; }
.wd-ext .wd-btn { white-space: nowrap; }
.wd-item-f { flex-wrap: wrap; }
.wd-ext1 { order: 3; flex-basis: 100%; margin: -.15rem auto 0; background: none; border: 0; padding: .35rem .6rem; cursor: pointer;
  color: var(--emerald-2); font: 500 .82rem var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brass-light);
  -webkit-tap-highlight-color: transparent; }
.wd-ext1[hidden], .wd-item.is-done .wd-ext1 { display: none; }
.wd-ext1:active { opacity: .6; }
.wd-chk { display: flex; align-items: center; gap: .5rem; margin: .8rem 0 0; font-size: .92rem; color: var(--emerald); cursor: pointer; }
.wd-chk input { width: 1.15rem; height: 1.15rem; accent-color: var(--emerald); }

/* ---------- تنبيه من لم يسجّل رقمه (دائم) ---------- */
.wd-guest { position: fixed; z-index: 900; left: 50%; bottom: calc(.8rem + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(calc(100% - 1.6rem), 34rem); display: flex; align-items: center; gap: .6rem; padding: .55rem .55rem .55rem .9rem; cursor: pointer;
  border: 1px solid #f3c2c8; border-radius: 16px; background: linear-gradient(180deg, #fff5f6, #ffe9ec); color: #8d1626; text-align: right;
  font: 500 .86rem/1.45 var(--text); box-shadow: 0 14px 30px -16px rgba(141,22,38,.55), 0 2px 6px -2px rgba(141,22,38,.2);
  animation: wd-guest-in .6s var(--wd-ease, cubic-bezier(.2,.7,.2,1)) both; -webkit-tap-highlight-color: transparent; }
.wd-guest[hidden] { display: none; }
.wd-guest-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #c8102e; box-shadow: 0 0 0 0 rgba(200,16,46,.5); animation: wd-guest-pulse 2s infinite; }
.wd-guest-t { flex: 1; min-width: 0; }
.wd-guest-t b { display: block; font-weight: 700; color: #a3132a; font-size: .9rem; }
.wd-guest-go { flex: none; background: #b3122b; color: #fff; font-weight: 700; font-size: .82rem; padding: .45rem .85rem; border-radius: 11px; transition: background .2s; }
.wd-guest:hover .wd-guest-go { background: #8d0f23; }
.wd-guest:active { transform: translateX(-50%) scale(.98); }
@keyframes wd-guest-in { from { opacity: 0; transform: translate(-50%, 120%); } }
@keyframes wd-guest-pulse { 70% { box-shadow: 0 0 0 7px rgba(200,16,46,0); } 100% { box-shadow: 0 0 0 0 rgba(200,16,46,0); } }
body.wd-is-guest { padding-bottom: 5.2rem; }
/* داخل القارئ: شريط رفيع تحت شريط التقدّم بدل البطاقة العائمة (حتى لا يغطي زر العدّ) */
.wd-guest-r { position: static; transform: none; width: auto; margin: 0; border-radius: 0; border-width: 0 0 1px; box-shadow: none; animation: none;
  padding: .35rem clamp(.8rem, 3vw, 2rem); font-size: .8rem; background: #fff1f3; }
.wd-guest-r .wd-guest-t b { display: inline; font-size: .82rem; margin-inline-end: .35rem; }
.wd-guest-r .wd-guest-go { padding: .25rem .7rem; font-size: .78rem; border-radius: 9px; }
.wd-guest-r:active { transform: none; opacity: .85; }
.wd-guest-r .wd-guest-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media print { .wd-guest { display: none !important; } }

/* مزايا التسجيل داخل نافذة التسجيل (بلوك المزايا في الصفحة حُذف: الدعوة صارت عنصرًا واحدًا) */
.wd-perks-mini { margin: .3rem 0 .6rem; display: grid; gap: .3rem; }
.wd-perks-mini li { position: relative; padding-inline-start: 1.5rem; font-size: .92rem; color: var(--ink); }
.wd-perks-mini li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 0; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: #e3f3ea; color: #2f8a63; font-size: .75rem; font-weight: 700; display: grid; place-items: center; margin-top: .25rem; }

/* ---------- الرمز السري ---------- */
.wd-pin-f input { letter-spacing: .6em; text-align: center; font: 700 1.3rem/1 -apple-system, "Segoe UI", Roboto, sans-serif; max-width: 12rem; }
.wd-pin-f small { display: block; margin-top: .3rem; font-size: .8rem; color: var(--muted); }
.wd-forgot { margin: .6rem 0 0; text-align: center; font-size: .86rem; }
.wd-forgot a { color: var(--emerald-2); }
.wd-admin { margin: .8rem 0 0; padding: .7rem .8rem; border: 1px dashed var(--brass-light); border-radius: 12px; background: #fbf6e9; }
.wd-admin p { margin: 0 0 .4rem; font-size: .86rem; color: #5c4514; }
.wd-admin-row { display: flex; gap: .4rem; }
.wd-admin-row input { flex: 1; min-width: 0; padding: .45rem .6rem; border: 1px solid var(--rule); border-radius: 10px; font: 500 1rem var(--text); }
.wd-mailrow { font-size: .9rem; background: #f3f6f4; border-radius: 10px; padding: .5rem .7rem; }
.wd-mailrow b { color: #a3132a; }
.wd-code { letter-spacing: .5em; text-align: center; font: 700 1.3rem/1 -apple-system, "Segoe UI", Roboto, sans-serif; }

/* ---------- مجانية بلا إعلانات + الخصوصية ---------- */
.wd-free { display: inline-flex; align-items: center; gap: .45rem; margin: .55rem 0 0; padding: .3rem .8rem .3rem .9rem; border-radius: 999px;
  background: rgba(217,188,122,.16); border: 1px solid rgba(217,188,122,.45); color: #f3e3bb; font-size: .84rem; line-height: 1.5; }
.wd-free svg { flex: none; width: 17px; height: 17px; fill: none; stroke: var(--brass-light); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) { .wd-free { font-size: .78rem; border-radius: 14px; text-align: right; } }
.wd-privacy { font-size: .84rem !important; color: var(--muted); background: #f3f6f4; border-radius: 10px; padding: .55rem .7rem; }

/* ---------- إحصاءات الزوار (لصاحب الموقع) ---------- */
.wd-stats-btn { width: 100%; margin: .6rem 0 0; background: var(--emerald); }
.wd-st-seg { display: flex; gap: .4rem; margin: .2rem 0 .7rem; }
.wd-st-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.wd-st-b { background: #f3f6f4; border-radius: 12px; padding: .5rem .3rem; text-align: center; }
.wd-st-b b { display: block; font: 700 1.35rem/1.2 var(--display); color: var(--emerald); }
.wd-st-b span { font-size: .72rem; color: var(--muted); }
.wd-st-bars { display: flex; align-items: flex-end; gap: 2px; height: 54px; margin: .7rem 0 .3rem; padding: 0 2px; border-bottom: 1px solid var(--rule); }
.wd-st-bars i { flex: 1; min-width: 2px; background: linear-gradient(var(--brass-light), var(--brass)); border-radius: 2px 2px 0 0; }
.wd-st-h { margin: .9rem 0 .3rem; font: 700 1rem var(--display); color: var(--emerald); }
.wd-st-t { width: 100%; border-collapse: collapse; font-size: .88rem; }
.wd-st-t td { padding: .32rem .2rem; border-bottom: 1px solid #edf1ee; }
.wd-st-t td:last-child { text-align: left; font-weight: 700; color: var(--emerald); width: 4rem; }
.wd-st-t small { color: var(--muted); }
#wd-dialog:has(.wd-st-boxes) { width: min(96vw, 560px); }
#wd-dialog:has(.wd-st-boxes) .wd-dialog-in { max-height: 85vh; overflow-y: auto; }

/* ================= الجولة ٥: تخطيط لكل جهاز (كمبيوتر/تابلت/موبايل) — وقار المصحف المذهّب ================= */
/* تُضاف فوق ما سبق ولا تعيد كتابته. ألوان: الأخضر الداكن والكريمي والذهبي فقط، والأحمر للتنبيه */
.wd-head, .wd-app, .wd-reader, .wd-dialog, .wd-done {
  --cream: #fbf7ec; --vellum: #fffdf8; --gold: #b8964f; --gold-hair: rgba(184,150,79,.34); --gold-ink: #7a5712; --frame: #e5d8b6;
  --serif: "Amiri", "Noto Naskh Arabic", serif; --wd-top: 4.6rem; --wd-max: 82.5rem; --wd-side: 22.5rem;
  --lift: 0 1px 2px rgba(14,59,54,.06), 0 10px 26px -20px rgba(14,59,54,.55);
  --lift-2: 0 2px 4px rgba(14,59,54,.06), 0 22px 44px -26px rgba(14,59,54,.6);
}
/* سطح كريمي كورق المصحف، بزخرفة هندسية خافتة لا تزاحم النص */
.wd-app { background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88'%3E%3Cg fill='none' stroke='%23b8964f' stroke-opacity='.11'%3E%3Crect x='24' y='24' width='40' height='40'/%3E%3Crect x='24' y='24' width='40' height='40' transform='rotate(45 44 44)'/%3E%3C/g%3E%3C/svg%3E");
  padding-bottom: 2.5rem; }
.wd-grid, .wd-dua, .wd-head > .wrap { max-width: var(--wd-max); }
.wd-grid { padding-top: 1.1rem; }
.wd-main, .wd-side { min-width: 0; }

/* ---------- رأس الصفحة: مضغوط، والقبة ظاهرة لا يغطيها نص ---------- */
.wd-head { padding-block: 1rem 1.35rem; border-bottom-width: 0; box-shadow: inset 0 -3px 0 #0b322e; }
.wd-head::after { content: ""; position: absolute; inset-inline: 0; bottom: 3px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(217,188,122,.75) 20%, rgba(217,188,122,.75) 80%, transparent); }
.wd-head .crumbs { margin-block-end: .1rem; }
.wd-head .crumbs a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.wd-head h1 { font: 700 clamp(1.5rem, 5.4vw, 2.5rem)/1.3 var(--serif); letter-spacing: 0; }
.wd-head h1::after { content: ""; display: block; width: 4.5rem; height: 1px; margin-top: .45rem; background: linear-gradient(90deg, transparent, var(--brass-light)); }
.wd-sub { font-size: 1rem; line-height: 1.75; }
.wd-date-k { font-size: .82rem; color: var(--brass-light); opacity: 1; }
.wd-date-v { white-space: nowrap; }
.wd-free { font-size: .86rem; color: #f6ead0; }

@media (max-width: 1099px) {
  .wd-head > .wrap { display: flex; flex-direction: column; }
  .wd-head .crumbs { order: 0; }
  .wd-title { order: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: .9rem; text-align: right; }
  .wd-title > div { display: contents; }
  .wd-logo { grid-row: 1; width: clamp(68px, 17vw, 112px); }
  .wd-head h1 { grid-row: 1; grid-column: 2; margin: 0; }
  .wd-sub, .wd-free { grid-column: 1 / -1; }
  .wd-sub { margin-top: .55rem; max-width: 40rem; }
  .wd-free { justify-self: start; margin-top: .5rem; }
  /* التاريخان: سطر لكل منهما بلا كسر ولا قصّ */
  .wd-dates { order: 2; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: .2rem 1.4rem; margin: .8rem 0 0; }
  .wd-date, .wd-greg { flex-direction: row; align-items: baseline; gap: .45rem; text-align: right; }
  .wd-date-v { font-size: 1.12rem; }
}
@media (max-width: 380px) { .wd-date-v { font-size: 1.02rem; } .wd-dates { gap: .1rem 1rem; } }
@media (max-width: 340px) { .wd-track { margin-bottom: 4rem; } }
/* موبايل أفقي: رأس أقصر حتى تقترب الأوراد */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 1099px) {
  .wd-head { padding-block: .5rem .9rem; }
  .wd-logo { width: 58px; }
  .wd-head h1 { font-size: 1.45rem; }
  .wd-head h1::after { display: none; }
  .wd-sub { margin-top: .3rem; }
  .wd-dates { margin-top: .5rem; }
}

@media (min-width: 1100px) {
  .wd-head { padding-block: .9rem 1.5rem; }
  /* الشعار والعنوان يمينًا، والتاريخ في خرطوشة ذهبية بجانبه، ويبقى يسار الرأس للقبة وحدها */
  .wd-head > .wrap { display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "crumbs crumbs crumbs" "title dates ."; align-items: center; column-gap: 2.2rem; }
  .wd-head .crumbs { grid-area: crumbs; }
  .wd-title { grid-area: title; gap: 1.4rem; }
  .wd-logo { width: 116px; }
  .wd-head h1 { font-size: clamp(2rem, 2.6vw, 2.5rem); }
  .wd-dates { grid-area: dates; display: grid; gap: .55rem; margin: 0; padding: .85rem 1.3rem; min-width: 15.5rem; border-radius: 16px;
    border: 1px solid rgba(217,188,122,.5); background: rgba(7,31,28,.42); box-shadow: inset 0 0 0 4px rgba(14,59,54,.6), inset 0 0 0 5px rgba(217,188,122,.22); }
  .wd-date, .wd-greg { align-items: flex-start; text-align: right; }
  .wd-date-v { font: 700 1.3rem/1.35 var(--serif); }
  .wd-head::before { width: min(34%, 30rem); opacity: .62; }
}

/* ---------- التبويبات ---------- */
.wd-tabs { margin-top: 0; gap: .2rem; border-bottom: 1px solid var(--frame); }
.wd-tabs [role=tab] { min-height: 48px; padding: .6rem 1.15rem; font-size: 1.06rem; color: #394a45; }
.wd-tabs [role=tab][aria-selected=true] { color: var(--emerald); }
.wd-tabs [role=tab]:focus-visible { outline: 3px solid var(--brass); outline-offset: -3px; border-radius: 10px; }
.wd-acct { min-height: 44px; padding: .45rem 1.05rem; font-size: .95rem; box-shadow: 0 6px 16px -10px rgba(14,59,54,.9); }
.wd-pane { padding-top: 1.1rem; }

/* ---------- كروت الأوراد: ورق مذهّب، ارتفاع متساوٍ، وحالة باللون والأيقونة ---------- */
.wd-card > button { background: var(--vellum); border-color: var(--frame); border-radius: 18px; padding: 1.1rem 1.15rem 1.05rem;
  box-shadow: inset 0 0 0 3px var(--vellum), inset 0 0 0 4px rgba(184,150,79,.2), var(--lift); align-content: center; }
.wd-card > button::before { background: radial-gradient(120% 90% at 100% 0, rgba(217,188,122,.16), transparent 55%); opacity: 1; }
.wd-card > button:hover { border-color: #d3bd86; box-shadow: inset 0 0 0 3px var(--vellum), inset 0 0 0 4px rgba(184,150,79,.38), var(--lift-2); }
.wd-card > button:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.wd-card-name { font: 700 1.42rem/1.35 var(--serif); }
.wd-card-meta { font-size: .9rem; color: #394a45; }
.wd-pill { font-size: .82rem; padding: .14rem .6rem; }
.wd-ring .fg { stroke: var(--gold); }
.wd-ring b { font-family: var(--text); font-size: .92rem; font-weight: 600; }
.wd-card.is-done > button { background: linear-gradient(160deg, #f1f7f3, var(--vellum) 70%); }
.wd-card.is-late { box-shadow: none; }
.wd-card.is-late > button { border-color: #d98b93; box-shadow: inset 0 0 0 3px var(--vellum), inset 0 0 0 4px rgba(200,58,46,.25), var(--lift); }
.wd-card.is-sub > button { background: linear-gradient(150deg, #fbf3df, var(--vellum) 75%); }
.wd-card.is-sub .wd-card-name::after { content: none; }

/* الحالة: أيقونة ملوّنة على حلقة التقدّم (كل المقاسات) */
.wd-ring::after { content: ""; position: absolute; inset-inline-end: -4px; bottom: -3px; width: 24px; height: 24px; border-radius: 50%;
  box-shadow: 0 0 0 2.5px var(--vellum); background: no-repeat center / 14px; display: none; }
.wd-card.is-open .wd-ring::after { display: block; background-color: #c9a24f;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E"); }
.wd-card.is-done .wd-ring::after { display: block; background-color: #2f8a63;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.wd-card.is-sub .wd-ring::after { display: block; background-color: #96712a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5h14l-3.5-3.5M20 15.5H6l3.5 3.5'/%3E%3C/svg%3E"); }
.wd-card.is-late .wd-ring::after { display: block; background-color: #b3261e;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6.5v7M12 17.6v.1'/%3E%3C/svg%3E"); }
/* الحالة نصًّا في شارة أعلى الكارت (حين يتسع العرض) */
.wd-card::after { position: absolute; z-index: 1; top: .85rem; inset-inline-end: .9rem; pointer-events: none; display: none;
  padding: .16rem .7rem; border-radius: 999px; font: 600 .82rem/1.5 var(--text); }
@media (min-width: 700px) {
  .wd-card.is-open::after { content: "مفتوح الآن"; display: block; color: #5f4510; background: #f5e9c9; box-shadow: inset 0 0 0 1px #e2cd96; }
  .wd-card.is-done::after { content: "مكتمل"; display: block; color: #1a5a3e; background: #def0e6; box-shadow: inset 0 0 0 1px #b9dcc8; }
  .wd-card.is-sub::after { content: "بدل المسبعات"; display: block; color: #5f4510; background: #f0e1bb; box-shadow: inset 0 0 0 1px #dcc485; }
  .wd-card.is-late::after { content: "يضيق الوقت"; display: block; color: #8d1626; background: #fbe6e8; box-shadow: inset 0 0 0 1px #efbcc3; }
  .wd-card > button { padding-top: 2.7rem; }
}
/* «فات وقته»: يُستنتج من شارة الجولة الفائتة (متصفح حديث)، ويبقى نص الجولة واضحًا في غيره */
@supports selector(:has(*)) {
  .wd-card:not(.is-open):not(.is-done):not(.is-sub):has(.wd-pill.miss) .wd-ring::after { display: block; background-color: #b3261e;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M8 8l8 8M16 8l-8 8'/%3E%3C/svg%3E"); }
  @media (min-width: 700px) {
    .wd-card:not(.is-open):not(.is-done):not(.is-sub):has(.wd-pill.miss)::after { content: "فات وقته"; display: block; color: #8d1626; background: #fbe6e8; box-shadow: inset 0 0 0 1px #efbcc3; }
  }
}
/* ارتفاعات متساوية في الصف، وبلا فراغ في الصف الأخير */
@media (min-width: 700px) {
  .wd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 1.1rem; }
  .wd-cards > li { display: flex; }
  .wd-card > button { height: 100%; }
  .wd-cards > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- شريط المواقيت: لوح ورقي بإطار ذهبي ---------- */
.wd-sky { margin-top: 0; background: var(--vellum); border-color: var(--frame); border-radius: 18px;
  box-shadow: inset 0 0 0 4px var(--vellum), inset 0 0 0 5px rgba(184,150,79,.24), var(--lift); }
.wd-sky::before { content: "مواقيت اليوم"; display: block; margin: -.1rem 0 .55rem; font: 700 1.2rem/1.4 var(--serif); color: var(--emerald); }
.wd-city { min-height: 44px; font-size: .95rem; }
.wd-now { font-size: .95rem; }
.wd-sync { font-size: .86rem; color: #394a45; }
.wd-wlab { font-size: .82rem; white-space: normal; }
.wd-wlab b { font-size: .82rem; }
.wd-legend { font-size: .92rem; }
.wd-link { min-height: 44px; padding: .3rem .9rem; }
.wd-times li span { font-size: .86rem; }
.wd-times li b small { font-size: .82rem; }
.wd-times li i { font-size: .82rem; }
.wd-calc-d summary { min-height: 44px; font-size: .86rem; }
.wd-calc { font-size: .86rem; }

/* ---------- تنبيه من لم يسجّل: عنصر واحد مختصر، ظاهر دائمًا ولا يغطي الفوتر ---------- */
.wd-guest:not(.wd-guest-r) { min-height: 56px; font-size: .9rem; }
.wd-guest-t b { font-size: .95rem; }
.wd-guest-go { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; padding: 0 1rem; }
@keyframes wd-guest-up { from { opacity: 0; transform: translateY(120%); } }
@media (max-width: 1099px) {
  .wd-sky { margin-top: 1.6rem; }
  /* الموبايل والتابلت: يلتصق أسفل الشاشة داخل منطقة الأوراد، ويقف قبل الدعاء والفوتر فلا يغطيهما */
  @supports (position: sticky) and (display: contents) {
    .wd-side { display: contents; }
    .wd-guest:not(.wd-guest-r) { position: sticky; z-index: 40; left: auto; bottom: calc(.7rem + env(safe-area-inset-bottom)); transform: none;
      margin: 1.2rem auto 0; animation: wd-guest-up .6s var(--wd-ease) both; }
    .wd-guest:not(.wd-guest-r):active { transform: scale(.98); }
    body.wd-is-guest { padding-bottom: 0; }
  }
}

/* ---------- الكمبيوتر: عمود الأوراد + هامش اليوم ---------- */
@media (min-width: 1100px) {
  .wd-grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--wd-side); align-items: start; gap: 0 2.4rem; padding-top: 1.4rem; }
  .wd-side { margin-top: 0; position: sticky; top: calc(var(--wd-top) + 1rem); display: flex; flex-direction: column; }
  .wd-times { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wd-sky { padding: 1.1rem 1.2rem 1rem; }
  .wd-sky-top { gap: .5rem .8rem; }
  .wd-sync { margin: 0; width: 100%; }
  /* التنبيه جزء من الهامش الملتصق، فيبقى ظاهرًا ولا يغطي شيئًا */
  .wd-guest:not(.wd-guest-r) { order: -1; position: static; transform: none; width: 100%; margin: 0 0 .9rem; animation: wd-fade .5s var(--wd-ease) both; }
  .wd-guest:not(.wd-guest-r):active { transform: scale(.98); }
  body.wd-is-guest { padding-bottom: 0; }
  .wd-sky::before { margin-bottom: .35rem; }
  .wd-track { margin: .9rem .3rem 2.7rem; }
  .wd-legend { margin-top: .5rem; padding: .4rem .7rem; }
  .wd-times { gap: .35rem; margin-top: .6rem; }
  .wd-times li { padding: .4rem .15rem .3rem; }
  .wd-dua { margin-top: 2.2rem; }
}
@media (min-width: 1100px) and (max-height: 820px) { .wd-calc-d { display: none; } }
@media (min-width: 1100px) and (max-height: 700px) { .wd-side { position: static; } }

/* ---------- القارئ: أهداف لمس ٤٤ وخطوط ≥١٣ ---------- */
.wd-r-head #wd-r-close { width: 44px; min-width: 44px; height: 44px; }
.wd-fsz { height: 46px; }
.wd-fsz .wd-font { min-width: 44px; }
.wd-fsz .wd-font i { font-size: .85rem; }
.wd-fsz .wd-font-v { min-width: 52px; font-size: .82rem; }
.wd-r-titles p { font-size: .84rem; }
.wd-r-rounds button { min-height: 44px; }
.wd-r-rounds button b { font-size: 1rem; }
.wd-r-rounds button small { font-size: .82rem; }
.wd-guest-r { min-height: 44px; font-size: .86rem; }
.wd-guest-r .wd-guest-t b { font-size: .88rem; }
.wd-guest-r .wd-guest-go { min-height: 34px; font-size: .86rem; }
.wd-r-count { font-size: .9rem; }
.wd-btn { min-height: 46px; }
.wd-btn:not(.ghost):not(.ar-wa):not(.wd-stats-btn) { background: #876322; } /* تباين النص الأبيض ≥ ٤٫٥:١ */
.wd-uparrow { width: 56px; height: 44px; margin-left: -28px; border-radius: 0 0 16px 16px; }
.wd-showtext { min-height: 44px; font-size: .9rem; }
.wd-ext1 { min-height: 44px; font-size: .88rem; }
.wd-item-c { font-size: .86rem; }
.wd-faw-h { min-height: 56px; }
/* سطح القراءة: كريمي كالورق، والعناصر بإطار ذهبي رفيع */
.wd-reader { background: var(--cream); }
.wd-r-body { background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88'%3E%3Cg fill='none' stroke='%23b8964f' stroke-opacity='.09'%3E%3Crect x='24' y='24' width='40' height='40'/%3E%3Crect x='24' y='24' width='40' height='40' transform='rotate(45 44 44)'/%3E%3C/g%3E%3C/svg%3E"); }
.wd-item { background: var(--vellum); border-color: var(--frame); box-shadow: var(--lift); }
.wd-item.is-active { border-color: #cdb06e; box-shadow: inset 0 0 0 3px var(--vellum), inset 0 0 0 4px rgba(184,150,79,.3), 0 18px 40px -28px rgba(150,113,42,.75); }
@supports (overflow: clip) { .wd-item:not(.is-done) .wd-item-f { background: linear-gradient(to bottom, rgba(255,253,248,0), var(--vellum) 34%); } }
.wd-r-foot { background: var(--vellum); border-top-color: var(--frame); }
.wd-r-progress { height: 3px; background: #e3dcc8; }

/* الكمبيوتر والتابلت العريض: عمود قراءة مريح في الوسط، والرأس والجولات والتذييل على نفس العرض */
@media (min-width: 900px) {
  .wd-reader { --rw: 47.5rem; --rpad: 1.5rem; }
  @supports (padding: max(1px, 2px)) { .wd-reader { --rpad: max(1.25rem, calc((100% - 60rem) / 2)); } }
  .wd-r-inner { max-width: var(--rw); }
  .wd-r-head, .wd-r-foot, .wd-guest-r { padding-inline: var(--rpad); }
  .wd-r-rounds { padding: .35rem var(--rpad); gap: .4rem; }
  .wd-r-rounds button { flex-direction: row; gap: .55rem; justify-content: center; padding: .3rem .9rem; max-width: 320px; }
  .wd-r-titles h2 { font-family: var(--serif); font-size: 1.55rem; }
  .wd-r-body { padding-top: 1.6rem; }
  .wd-text { padding-inline: 1.6rem; }
  .wd-item-h { padding-inline: 1.6rem; }
}

/* موبايل أفقي: الرأس والجولات في سطر واحد، والتنبيه بجانب التذييل، فيأخذ نص الذكر معظم الارتفاع */
@media (max-height: 500px) and (orientation: landscape) {
  .wd-reader:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto minmax(0, 1fr) auto; }
  .wd-r-head { grid-column: 1; grid-row: 1; padding: calc(.2rem + env(safe-area-inset-top, 0px)) .6rem .2rem; gap: .45rem; padding-inline-start: max(.6rem, env(safe-area-inset-right, 0px)); }
  .wd-r-titles h2 { font-size: 1.12rem; }
  .wd-r-titles p { margin: 0; }
  .wd-r-rounds { grid-column: 2; grid-row: 1; align-self: stretch; align-items: center; padding: .2rem .6rem; background: #0e3b36; box-shadow: inset 0 -1px 0 rgba(217,188,122,.22); }
  .wd-r-rounds button { padding: .2rem .75rem; max-width: none; }
  .wd-r-rounds button small { display: none; }
  .wd-r-rounds button b { white-space: nowrap; font-size: .92rem; }
  .wd-r-progress { grid-column: 1 / -1; grid-row: 2; }
  .wd-r-body { grid-column: 1 / -1; grid-row: 3; padding-top: .6rem; }
  .wd-r-foot { grid-column: 1; grid-row: 4; padding-block: .2rem calc(.2rem + env(safe-area-inset-bottom)); }
  .wd-guest-r { grid-column: 2; grid-row: 4; border-width: 1px 0 0; border-top-color: var(--frame); padding: .2rem .6rem; align-self: stretch; }
  .wd-guest-r .wd-guest-t { flex: none; font-size: 0; }
  .wd-guest-r .wd-guest-t b { font-size: .88rem; margin: 0; }
  .wd-guest-r[hidden] ~ .wd-r-foot { grid-column: 1 / -1; }
}
@media (max-height: 500px) and (orientation: landscape) and (max-width: 700px) { .wd-fsz .wd-font-v { display: none; } }
/* أضيق الشاشات: نص التنبيه يُختصر بنقاط بدل أن يركب على زر «سجّل» */
.wd-guest-r .wd-guest-t { min-width: 0; }
@media (max-width: 300px) { .wd-guest-r .wd-guest-t { font-size: 0; } .wd-guest-r .wd-guest-t b { font-size: .88rem; } }

/* ---------- «سجلي» والتقرير ---------- */
.wd-seg-ctl span { min-height: 44px; display: flex; align-items: center; font-size: .92rem; }
.wd-table { font-size: .92rem; }
.wd-table .d2, .wd-st, .wd-dayc-d span, .wd-dayc-n, .wd-chips li { font-size: .84rem; }
.wd-stat { background: var(--vellum); border-color: var(--frame); box-shadow: var(--lift); }
.wd-stat span { font-size: .88rem; color: #394a45; }
.wd-table-wrap { background: var(--vellum); border-color: var(--frame); }
.wd-table th, .wd-table td:first-child { background: #fbf6ea; }
.wd-table th:first-child { background: #f6efdc; }
.wd-dayc { background: var(--vellum); border-color: var(--frame); }
@media (max-width: 420px) { .wd-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 300px) { .wd-chips { grid-template-columns: 1fr; } }
.wd-faw-s { font-size: .84rem; }

/* ---------- النوافذ: لا تتجاوز ارتفاع الشاشة، وأهداف لمس ٤٤ ---------- */
.wd-dialog { max-height: calc(100vh - 1rem); max-height: calc(100dvh - 1rem); overflow: auto; background: var(--vellum);
  box-shadow: inset 0 0 0 4px var(--vellum), inset 0 0 0 5px rgba(184,150,79,.25), 0 30px 80px -20px rgba(0,0,0,.45); }
.wd-dialog h3 { font-family: var(--serif); }
.wd-field input, .wd-field select { min-height: 46px; }
.wd-pin-f small, .wd-privacy { font-size: .86rem !important; }
.wd-forgot a, .wd-forgot .ar-link { display: inline-block; padding-block: .7rem; }
.wd-perks-mini li { font-size: .95rem; }
@media (max-height: 500px) and (orientation: landscape) {
  .wd-dialog { width: min(96vw, 560px); }
  .wd-dialog-in { padding: .8rem 1.1rem .7rem; }
  .wd-perks-mini { grid-template-columns: 1fr 1fr; gap: .2rem .8rem; }
  .wd-field { margin: .5rem 0; }
}

/* وزن خط واحد أقل يُحمَّل في أول الصفحة (Plex 500 ≈ ٤٥ كيلوبايت): نص التنبيه بالوزن العادي */
.wd-guest { font-weight: 400; }

/* ---------- الأجهزة الرخيصة: الحركة بـ transform و opacity فقط، وبلا تمويه على الموبايل ---------- */
@keyframes wd-pane { from { opacity: 0; transform: translateY(10px); } }
@keyframes wd-logo-in { from { opacity: 0; transform: scale(.86) translateY(8px); } }
@media (max-width: 1099px), (hover: none) {
  .wd-logo { animation: wd-logo-in 1.1s var(--wd-ease) both; }
  .wd-dialog::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(10,30,27,.62); }
}
@media (prefers-reduced-motion: reduce) {
  .wd-card::after, .wd-guest, .wd-guest-dot, .wd-logo { animation: none !important; }
}
.wd-table .no { color: #5f6e69; }
/* الشاشات الضيقة: التنبيه سطر واحد مختصر (العنوان وزر التسجيل) حتى لا يحجب الأوراد */
@media (max-width: 400px) {
  .wd-guest:not(.wd-guest-r) { min-height: 52px; padding-block: .35rem; }
  .wd-guest:not(.wd-guest-r) .wd-guest-t { font-size: 0; line-height: 1.35; }
  .wd-guest:not(.wd-guest-r) .wd-guest-t b { font-size: .92rem; }
}

/* زر العدّ على أندرويد: بلا نقطة ذهبية عند مكان اللمس، وبلا إطار تركيز بعد اللمس؛ الاستجابة توهّج خفيف للزر كله */
.wd-ripple { display: none; }
.wd-pad:focus:not(:focus-visible) { outline: none; }
.wd-pad.press, .wd-pad:active { box-shadow: inset 0 0 0 999px rgba(255,255,255,.07), 0 4px 12px -8px rgba(14,59,54,.9); }

/* الأجهزة الضعيفة (الصفحة تضيف .lite على <html>): الحركات المتكررة مرة واحدة، والانتقالات من غير ضبابية */
.lite *, .lite *::before, .lite *::after { animation-iteration-count: 1 !important; }
.lite .wd-pane { animation-name: wd-pane-lite; }
@keyframes wd-pane-lite { from { opacity: 0; transform: translateY(10px); } }
.lite .wd-logo { animation: wd-logo-in-lite .8s var(--wd-ease) both; }
@keyframes wd-logo-in-lite { from { opacity: 0; transform: scale(.9); } }
.lite .wd-dialog::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(10,30,27,.62); }

/* سهم الصعود: يتدلّى من أسفل الشريط الأخضر بدل أعلى الشاشة، فلا يتداخل مع العنوان وأزرار حجم الخط على الشاشات الضيقة */
.wd-uparrow { background: rgba(14,59,54,.9); box-shadow: 0 6px 14px -8px rgba(0,0,0,.6); height: 34px; }
