/* /khalwati-public-assets/v16/design-r16.css */
/* Khalwati R16 | additive polish only; keep original palette, layout and Arabic typefaces. */
:root { --kh-r16-tap:44px; }
.site-header .nav-links a,
.site-header [aria-label="قائمة الهاتف"] a,
.footer-links a { min-height:var(--kh-r16-tap); align-items:center; }
.site-header .nav-links a { display:inline-flex; font-size:max(13.5px,.86rem); line-height:1.45; }
:where(.home-refined,.library-page-ui3,.audio-page) .book-card h3,
.book-card h3 { font-size:clamp(15px,1.8vw,17px); line-height:1.6; overflow-wrap:break-word; }
.book-card .cat, .book-card .open { font-size:max(13px,.85rem); line-height:1.45; }
.books-grid .book-card .book-cover-wrap img,
.book-card .book-cover-wrap img { object-fit:contain; max-width:100%; }
.home-refined .community-home .community-card { min-height:var(--kh-r16-tap); }
.home-refined .community-home .community-card strong {font-size:clamp(14px,1.8vw,16px);line-height:1.5;}
.audio-page .audio-hero p {font-size:clamp(15px,1.8vw,17px);line-height:1.75;}
.audio-page button, .audio-page .audio-toolbar a, .audio-page .audio-toolbar button { min-height:var(--kh-r16-tap); }
:where(.home-refined,.library-page-ui3,.audio-page) :is(a,button,input,select):focus-visible,
.site-header a:focus-visible, .book-card:focus-visible,
.app button:focus-visible, .reader-drawer button:focus-visible {
  outline:3px solid #ad8530; outline-offset:3px;
}
.kh-r16-sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
@media (max-width:680px) {
  .home-refined .community-home .community-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .home-refined .community-home .community-card { padding:13px 10px; }
  .home-refined .community-home .community-card strong {font-size:15px;}
  .home-refined .books-grid .book-card h3,
  .library-page-ui3 .books-grid .book-card h3 {font-size:15px;line-height:1.55;}
  .book-card .cat,.book-card .open {font-size:13.5px;}
  .audio-page button {font-size:14px;}
  .app .topbar button,.app .topbar a {min-height:var(--kh-r16-tap);}
  .app .toolbar { overflow-x:auto; overflow-y:hidden; flex-wrap:nowrap; scrollbar-width:thin; padding-bottom:max(6px,env(safe-area-inset-bottom)); }
  .app .toolbar > * {flex-shrink:0;}
  .app .toolbar .tool-button,.app .toolbar .zoom-value,
  .app .toolbar .page-control input {min-height:var(--kh-r16-tap);}
  .app .toolbar #previousButton span,.app .toolbar #nextButton span {font-size:14px;}
  .reader-drawer .panel-action,.reader-drawer .panel-tab {min-height:var(--kh-r16-tap);font-size:14px;}
}
@media (prefers-reduced-motion:reduce) {
  .book-card,.community-card {transition-duration:.01ms!important;animation-duration:.01ms!important;}
}

/* /khalwati-public-assets/v17/design-r17.css */
/* Khalwati R17 | additive layout polish. Same palette, same Tajawal typeface, same components. */
:root{--kh17-green:#07583d;--kh17-deep:#073f34;--kh17-gold:#c99a37;--kh17-line:#e6d6ae;--kh17-paper:#fffdf8;--kh17-cream:#fbf6e9;--kh17-muted:#6e746e;--kh17-tap:44px}

/* 1) Library category filters: 440px-tall 2-column grid on phones -> one swipeable row. */
@media (max-width:680px){
  html body :is(.library-tools.kh-filters-only,.library-tools) .filters{
    display:flex!important;flex-wrap:nowrap!important;grid-template-columns:none!important;
    overflow-x:auto!important;overflow-y:hidden!important;max-width:100%;contain:inline-size;gap:8px!important;padding:2px 2px 10px!important;margin-inline:-4px;
    scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:none;
    mask-image:linear-gradient(to left,#000 88%,transparent);-webkit-mask-image:linear-gradient(to left,#000 88%,transparent);
  }
  html body :is(.library-tools.kh-filters-only,.library-tools) .filters::-webkit-scrollbar{display:none}
  html body :is(.library-tools.kh-filters-only,.library-tools) .filters>.filter{
    flex:0 0 auto!important;width:auto!important;min-height:var(--kh17-tap);scroll-snap-align:start;
    display:inline-flex!important;flex-direction:row!important;align-items:center;gap:8px;padding:0 14px!important;border-radius:999px!important;white-space:nowrap;
  }
  html body :is(.library-tools.kh-filters-only,.library-tools) .filters .kh-filter-label{font-size:14px}
  html body :is(.library-tools.kh-filters-only,.library-tools) .filters .kh-filter-count{font-size:12.5px}
}

/* 2) Book page: comfortable tap targets on breadcrumb links. */
.crumbs a{display:inline-block;padding:10px 2px;margin:-10px 0}
.crumbs{line-height:2}

/* 3) Book page: related books (server-rendered by library-book.php R17). */
.kh17-related{margin-top:28px;padding-top:22px;border-top:1px solid var(--kh17-line)}
.kh17-related-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px;margin:0 0 14px}
.kh17-related-head h2{margin:0;font-size:clamp(18px,2.2vw,22px);color:var(--kh17-deep);line-height:1.5}
.kh17-related-head a{color:var(--kh17-green);font-weight:800;text-decoration:none;white-space:nowrap;min-height:var(--kh17-tap);display:inline-flex;align-items:center}
.kh17-related-head a:hover{text-decoration:underline}
.kh17-related-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}
.kh17-related-grid a{display:flex;flex-direction:column;height:100%;text-decoration:none;color:var(--kh17-deep);background:var(--kh17-paper);border:1px solid var(--kh17-line);border-radius:18px;padding:10px;transition:transform .15s ease,box-shadow .15s ease}
.kh17-related-grid a:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(7,63,52,.10)}
.kh17-related-grid a:focus-visible{outline:3px solid #ad8530;outline-offset:3px}
.kh17-related-cover{display:block;aspect-ratio:3/4;border-radius:12px;background:#f4ecd9;overflow:hidden}
.kh17-related-cover img{display:block;width:100%;height:100%;object-fit:contain}
.kh17-related-title{display:block;margin-top:10px;font-weight:800;font-size:15px;line-height:1.6;overflow-wrap:anywhere}
.kh17-related-meta{display:block;margin-top:2px;font-size:13px;color:var(--kh17-muted)}
@media (max-width:600px){
  .kh17-related-grid{display:flex;overflow-x:auto;scroll-snap-type:x proximity;gap:12px;padding-bottom:8px;scrollbar-width:thin}
  .kh17-related-grid li{flex:0 0 42%;scroll-snap-align:start}
}
@media (prefers-reduced-motion:reduce){.kh17-related-grid a{transition:none}}

/* 4) Desktop book page: keep the card from floating in empty space on wide screens. */
@media (min-width:1100px){
  .book-detail .detail-grid{align-items:start}
  .book-detail .detail-cover{position:sticky;top:96px}
}

/* 5) Small-text floor on phones (kickers, notes, footer). */
@media (max-width:680px){
  .app-simple-kicker,.app-simple-note,.kh-sawati-eyebrow,.footer-copy{font-size:13px!important}
}

/* /khalwati-public-assets/v23/shell-r23.css */
/* Khalwati R23 — one header + one footer for every public page. Same palette, Tajawal everywhere. */
@font-face{font-family:'Tajawal';font-style:normal;font-weight:500;font-display:swap;src:url('/khalwati-public-assets/v23/tajawal-arabic-500-normal.woff2') format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200E,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:'Tajawal';font-style:normal;font-weight:700;font-display:swap;src:url('/khalwati-public-assets/v23/tajawal-arabic-700-normal.woff2') format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200E,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:'Tajawal';font-style:normal;font-weight:800;font-display:swap;src:url('/khalwati-public-assets/v23/tajawal-arabic-800-normal.woff2') format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200E,U+FB50-FDFF,U+FE70-FEFC}

:root{
  --kh23-green:#07583d;--kh23-deep:#073f34;--kh23-gold:#c99a37;--kh23-gold-soft:rgba(201,154,55,.28);
  --kh23-paper:#fffdf8;--kh23-cream:#fbf6e9;--kh23-ink:#23302b;--kh23-muted:#6b7069;
  --kh23-font:'Tajawal',system-ui,-apple-system,'Segoe UI',Tahoma,sans-serif;--kh23-max:1200px;--kh23-h:64px;
}
html body{font-family:var(--kh23-font)}

/* The old drawers/menus belong to the replaced headers. */
html body #drawer,html body .drawer-backdrop{display:none!important}

/* ---------- header ---------- */
html body .kh23-header{
  position:sticky;top:0;z-index:80;margin:0;padding:env(safe-area-inset-top) 0 0;
  background:rgba(251,246,233,.92);-webkit-backdrop-filter:saturate(1.2) blur(14px);backdrop-filter:saturate(1.2) blur(14px);
  border-bottom:1px solid var(--kh23-gold-soft);font-family:var(--kh23-font);direction:rtl;
}
html body .kh23-bar{
  box-sizing:border-box;max-width:var(--kh23-max);height:var(--kh23-h);margin:0 auto;padding:0 16px;
  display:flex;align-items:center;gap:12px;
}
html body .kh23-brand{display:inline-flex;align-items:center;gap:10px;color:var(--kh23-deep);text-decoration:none;flex:0 1 auto;min-width:0}
html body .kh23-brand img{width:40px;height:40px;border-radius:50%;flex:0 0 40px;box-shadow:0 0 0 1px var(--kh23-gold-soft)}
html body .kh23-brand span{font-weight:800;font-size:17px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

html body .kh23-nav{display:flex;align-items:center;gap:2px;margin-inline-start:auto;flex-wrap:nowrap}
html body .kh23-nav a,html body .kh23-panel a{
  position:relative;display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 12px;border-radius:10px;
  color:var(--kh23-ink);text-decoration:none;font-weight:500;font-size:15px;white-space:nowrap;
  transition:background-color .15s ease,color .15s ease;
}
html body .kh23-nav a:hover{background:rgba(7,88,61,.07);color:var(--kh23-green)}
html body .kh23-nav a[aria-current="page"]{color:var(--kh23-green);font-weight:700}
html body .kh23-nav a[aria-current="page"]::after{content:"";position:absolute;inset-inline:12px;bottom:4px;height:2px;border-radius:2px;background:var(--kh23-gold)}
html body .kh23-live i{width:8px;height:8px;border-radius:50%;background:#c63b2f;box-shadow:0 0 0 0 rgba(198,59,47,.5);animation:kh23-pulse 2.2s infinite}
@keyframes kh23-pulse{0%{box-shadow:0 0 0 0 rgba(198,59,47,.45)}70%{box-shadow:0 0 0 7px rgba(198,59,47,0)}100%{box-shadow:0 0 0 0 rgba(198,59,47,0)}}

/* R25: "مشايخ الطريقة" — gold pill next to the account button */
html body .kh23-sheikhs{
  flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;height:42px;padding:0 14px;border-radius:999px;text-decoration:none;
  background:linear-gradient(180deg,#f6dfa3,#d9ae4f);color:#3d2b05;font-weight:800;font-size:14.5px;white-space:nowrap;
  border:1px solid #c99a37;box-shadow:0 4px 12px rgba(201,154,55,.28);
}
html body .kh23-sheikhs svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html body .kh23-sheikhs:hover{filter:brightness(1.04)}
html body .kh23-sheikhs[aria-current="page"]{background:var(--kh23-green);color:#fff;border-color:var(--kh23-green);box-shadow:none}
html body .kh23-panel a.kh23-gold{background:linear-gradient(180deg,#f6dfa3,#e3bd66);color:#3d2b05;font-weight:700}
html body .kh23-account,html body .kh23-menu>summary{
  flex:0 0 auto;display:inline-grid;place-items:center;width:42px;height:42px;border-radius:12px;
  border:1px solid var(--kh23-gold-soft);background:var(--kh23-paper);color:var(--kh23-green);cursor:pointer;
}
html body .kh23-account:hover,html body .kh23-menu>summary:hover{border-color:var(--kh23-gold)}
html body .kh23-account[aria-current="page"]{background:var(--kh23-green);color:#fff;border-color:var(--kh23-green)}
html body .kh23-account svg,html body .kh23-menu>summary svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}

html body .kh23-menu{position:static;display:none}
html body .kh23-menu>summary{list-style:none}
html body .kh23-menu>summary::-webkit-details-marker{display:none}
html body .kh23-menu[open]>summary{background:var(--kh23-green);color:#fff;border-color:var(--kh23-green)}
html body .kh23-panel{
  position:absolute;inset-inline:0;top:100%;box-sizing:border-box;padding:10px 16px 16px;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;
  background:var(--kh23-paper);border-bottom:1px solid var(--kh23-gold-soft);box-shadow:0 18px 30px rgba(7,63,52,.12);
}
html body .kh23-panel a{min-height:46px;background:var(--kh23-cream);font-size:16px;justify-content:flex-start}
html body .kh23-panel a[aria-current="page"]{background:var(--kh23-green);color:#fff;font-weight:700}
html body .kh23-panel a.kh23-sub{background:transparent;border:1px solid var(--kh23-gold-soft)}

:where(html body) a.kh23-brand:focus-visible,html body .kh23-header a:focus-visible,html body .kh23-menu>summary:focus-visible,html body .kh23-footer a:focus-visible{outline:2px solid var(--kh23-gold);outline-offset:2px}

/* tablets/phones: short brand + account + menu */
@media (max-width:1020px){
  html body .kh23-nav{display:none}
  html body .kh23-sheikhs{margin-inline-start:auto}
  html body .kh23-menu{display:block}
}
@media (max-width:1180px) and (min-width:1021px){html body .kh23-nav a{padding:0 9px;font-size:14.5px}}
@media (max-width:560px){html body .kh23-sheikhs{width:42px;padding:0;justify-content:center}html body .kh23-sheikhs span{display:none}}
@media (max-width:440px){
  html body .kh23-bar{gap:8px;padding:0 12px}
  html body .kh23-brand{gap:8px}
  html body .kh23-brand img{width:36px;height:36px;flex-basis:36px}
  html body .kh23-brand span{font-size:14.5px}
  html body .kh23-account,html body .kh23-menu>summary,html body .kh23-sheikhs{width:40px;height:40px}
}
@media (max-width:380px){
  html body .kh23-brand span{font-size:15px}
  html body .kh23-panel{grid-template-columns:1fr}
}

/* ---------- footer ---------- */
html body .kh23-footer{
  margin:48px 0 0;padding:0 0 env(safe-area-inset-bottom);background:var(--kh23-deep);color:#e9efe9;
  font-family:var(--kh23-font);direction:rtl;border-top:3px solid var(--kh23-gold);
}
html body .kh23-foot{
  box-sizing:border-box;max-width:var(--kh23-max);margin:0 auto;padding:22px 16px;
  display:flex;align-items:center;gap:12px 24px;flex-wrap:wrap;
}
html body .kh23-footer .kh23-brand{color:#fff}
html body .kh23-footer .kh23-brand img{width:32px;height:32px;flex-basis:32px;box-shadow:none}
html body .kh23-footer .kh23-brand span{font-size:15px}
html body .kh23-foot-links{display:flex;flex-wrap:wrap;gap:4px 18px;margin-inline-start:auto}
html body .kh23-foot-links a{color:#e9efe9;text-decoration:none;font-size:14px;min-height:36px;display:inline-flex;align-items:center}
html body .kh23-foot-links a:hover,html body .kh23-foot-links a[aria-current="page"]{color:#f1d38f}
html body .kh23-copy{color:rgba(233,239,233,.7);font-size:13px}
@media (max-width:700px){
  html body .kh23-foot{flex-direction:column;text-align:center;gap:8px;padding:20px 16px}
  html body .kh23-foot-links{margin:0;justify-content:center}
}

/* old footers that some page scripts still create are hidden; the new one is the only footer */
html body .site-footer,html body .v9-footer{display:none!important}

@media (prefers-reduced-motion:reduce){html body .kh23-live i{animation:none}}
@media print{html body .kh23-header,html body .kh23-footer{display:none}}

/* R25: sheikh cards on the entry page open their biography */
html body .v9-sheikh-card{position:relative;cursor:pointer}
html body .kh25-sk-link{position:absolute;inset:0;z-index:2;border-radius:inherit}
html body .kh25-sk-link:focus-visible{outline:2px solid var(--kh23-gold);outline-offset:3px}
html body .v9-sheikh-card:hover{transform:translateY(-2px);transition:transform .18s ease}

/* R28: text for search engines and screen readers only (keeps the design as it is) */
html body .kh28-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* R31: home — "سند الطريقة" banner (under the app banner) */
@font-face{font-family:'Amiri';font-style:normal;font-weight:700;font-display:swap;src:url('/khalwati-public-assets/v25/amiri-arabic-700-normal.woff2') format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+FB50-FDFF,U+FE70-FEFC}
html body .kh31-sanad{padding:0 0 30px}
html body .kh31-card{position:relative;overflow:hidden;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:22px 30px;
  padding:28px 30px;border-radius:26px;text-decoration:none;color:#3d2b05;
  background:radial-gradient(120% 140% at 0% 0%,#fff7dc 0%,#f6e3ae 45%,#e4c172 100%);border:1px solid #c99a37;box-shadow:0 12px 30px rgba(120,84,10,.12)}
html body .kh31-card::before{content:"";position:absolute;inset:0;z-index:-1;opacity:.18;background-image:radial-gradient(circle at 1px 1px,#9a7420 1px,transparent 1.6px);background-size:20px 20px}
html body .kh31-card:hover{box-shadow:0 16px 36px rgba(120,84,10,.2)}
html body .kh31-card:focus-visible{outline:3px solid #07583d;outline-offset:3px}
html body .kh31-copy{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;text-align:right}
html body .kh31-kicker{font-weight:800;font-size:.9rem;color:#8a6116}
html body .kh31-title{font-family:'Amiri',serif;font-weight:700;font-size:clamp(1.55rem,2.8vw,2.15rem);line-height:1.35;color:#073f34}
html body .kh31-text{color:#4b3a12;line-height:1.75;font-size:1rem;max-width:520px}
html body .kh31-btn{margin-top:8px;display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:0 22px;border-radius:999px;background:#07583d;color:#fff;font-weight:800;box-shadow:0 6px 16px rgba(7,63,52,.25)}
html body .kh31-card:hover .kh31-btn{background:#073f34}
html body .kh31-chain{position:relative;width:max-content;max-width:100%;display:flex;align-items:center;gap:8px;direction:rtl}
html body .kh31-chain::before{content:"";position:absolute;inset-inline:18px;top:50%;height:3px;margin-top:-1.5px;background:#a87a22;border-radius:2px;z-index:0}
html body .kh31-b,html body .kh31-p,html body .kh31-dots{position:relative;z-index:1}
html body .kh31-b{display:grid;place-items:center;border-radius:50%;font-family:'Amiri',serif;font-weight:700;line-height:1;box-shadow:0 0 0 3px #fff7dc,0 0 0 5px #c99a37}
html body .kh31-pro{width:64px;height:64px;background:radial-gradient(circle at 50% 40%,#0b6a4c,#073f34 70%);color:#f1d38f;font-size:34px}
html body .kh31-ali{width:50px;height:50px;background:radial-gradient(circle at 50% 40%,#f6dfa3,#c99a37 75%);color:#073f34;font-size:19px}
html body .kh31-dots{display:flex;gap:5px;padding:0 2px}
html body .kh31-dots i{width:9px;height:9px;border-radius:50%;background:#fff7dc;box-shadow:0 0 0 2px #a87a22}
html body .kh31-p{width:54px;height:54px;border-radius:50%;object-fit:cover;background:#073f34;box-shadow:0 0 0 3px #fff7dc,0 0 0 5px #c99a37}
@media (max-width:1100px){html body .kh31-p{width:46px;height:46px}html body .kh31-chain{gap:6px}}
@media (max-width:900px){
  html body .kh31-card{grid-template-columns:1fr;padding:22px}
  html body .kh31-chain{justify-content:flex-start;flex-wrap:nowrap}
}
@media (max-width:560px){
  html body .kh31-card{padding:18px 16px;gap:16px;border-radius:20px}
  html body .kh31-text{font-size:.94rem}
  html body .kh31-pro{width:46px;height:46px;font-size:25px}
  html body .kh31-ali{width:38px;height:38px;font-size:15px}
  html body .kh31-dots{gap:3px}html body .kh31-dots i{width:6px;height:6px}
  html body .kh31-dots i:nth-child(n+3){display:none}
  html body .kh31-p{width:34px;height:34px;box-shadow:0 0 0 2px #fff7dc,0 0 0 3.5px #c99a37}
  html body .kh31-chain{gap:5px}
  html body .kh31-btn{min-height:44px;padding:0 18px}
}
@media (max-width:420px){html body .kh31-p{width:30px;height:30px}html body .kh31-pro{width:42px;height:42px;font-size:23px}html body .kh31-ali{width:34px;height:34px;font-size:14px}html body .kh31-chain{gap:4px}}
@media (max-width:360px){html body .kh31-p{width:26px;height:26px}html body .kh31-pro{width:38px;height:38px;font-size:21px}html body .kh31-dots{display:none}}

/* R31: home service cards — 5 cards, سند الطريقة first */
html body .community-home .community-grid.community-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}
html body .community-card.kh31-sanad-card .channel-icon{background:#fbf0d2;color:#8a6116}
html body .community-card.kh31-sanad-card{border-color:#e4c172}
@media (max-width:1100px){html body .community-home .community-grid.community-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media (max-width:640px){
  html body .community-home .community-grid.community-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html body .community-home .community-grid .kh31-sanad-card{grid-column:1/-1}
}

/* R33: «قصيدة البردة» card in the library (uses the «سواطع» card look) */
html body .library-shell .kh33-burda{margin-top:14px}
html body .library-shell .kh33-burda a.kh-sawati-view-toggle{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
html body .library-shell .kh33-burda h2 a{color:inherit;text-decoration:none}
html body .library-shell .kh33-burda h2 a:hover{text-decoration:underline;text-underline-offset:6px}
html body .library-shell .kh33-burda .kh-sawati-cover{display:block}

/* R34: home — library sections as tiles, short preview, "show all" in place */
html body .kh34-cats{margin:6px 0 22px}
html body .kh34-head{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 14px;margin-bottom:14px}
html body .kh34-title{margin:0;font-size:clamp(1.25rem,2.2vw,1.55rem);color:#073f34}
html body .kh34-sub{margin:0;color:#6b7069;font-size:.92rem}
html body .kh34-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
html body .kh34-tile{position:relative;overflow:hidden;display:flex;align-items:center;gap:12px;min-height:84px;padding:14px 16px;border-radius:18px;
  border:1px solid #e6d6ae;background:linear-gradient(160deg,#fffdf8 0%,#fbf3df 100%);color:#073f34;text-align:right;cursor:pointer;
  font:inherit;box-shadow:0 4px 14px rgba(120,84,10,.06);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
html body .kh34-tile::after{content:"";position:absolute;inset-inline-start:-30px;bottom:-30px;width:90px;height:90px;border-radius:50%;
  background:radial-gradient(circle,rgba(201,154,55,.18),transparent 70%);pointer-events:none}
html body .kh34-tile:hover{transform:translateY(-3px);border-color:#c99a37;box-shadow:0 12px 26px rgba(120,84,10,.14)}
html body .kh34-tile:focus-visible{outline:3px solid #c99a37;outline-offset:3px}
html body .kh34-ico{flex:none;display:grid;place-items:center;width:50px;height:50px;border-radius:15px;
  background:radial-gradient(circle at 35% 30%,#0e6b4f,#073f34 75%);color:#f1d38f;box-shadow:inset 0 0 0 1.5px rgba(241,211,143,.45),0 6px 14px rgba(7,63,52,.22)}
html body .kh34-ico svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
html body .kh34-tx{display:flex;flex-direction:column;gap:3px;min-width:0}
html body .kh34-tx strong{font-size:1.02rem;line-height:1.35;font-weight:800}
html body .kh34-tx small{font-size:.84rem;color:#8a6116;font-weight:700}
html body .kh34-tile.kh34-all{background:linear-gradient(150deg,#0b5a45,#073f34);border-color:#c99a37;color:#fff}
html body .kh34-tile.kh34-all .kh34-ico{background:linear-gradient(180deg,#f6dfa3,#d9ae4f);color:#3d2b05}
html body .kh34-tile.kh34-all small{color:#f1d38f}
html body .kh34-pv-head{display:none;margin:4px 0 12px}
html body .kh34-pv-title{margin:0;font-size:1.1rem;color:#073f34}
html body .kh34-more{display:flex;justify-content:center;margin:20px 0 6px}
html body .kh34-more-btn{min-height:50px;padding:0 28px;border-radius:999px;border:1px solid #c99a37;background:linear-gradient(180deg,#f6dfa3,#d9ae4f);
  color:#3d2b05;font:inherit;font-weight:800;font-size:1rem;cursor:pointer;box-shadow:0 6px 16px rgba(120,84,10,.18)}
html body .kh34-more-btn:hover{filter:brightness(1.04)}
html.kh34-collapsed body .library-shell .kh-library-search,
html.kh34-collapsed body .library-shell .library-tools,
html.kh34-collapsed body .library-shell #kh-library-pref,
html.kh34-collapsed body .library-shell #kh-category-status{display:none!important}
html.kh34-collapsed body .library-shell .books-grid>.book-card:nth-child(n+9){display:none!important}
html.kh34-collapsed body .kh34-pv-head{display:block}
@media (max-width:1100px){html body .kh34-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:640px){
  html body .kh34-tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  html body .kh34-tile{flex-direction:column;justify-content:flex-start;text-align:center;min-height:104px;padding:12px 6px 10px;gap:7px;border-radius:15px}
  html body .kh34-ico{width:42px;height:42px;border-radius:13px}
  html body .kh34-ico svg{width:23px;height:23px}
  html body .kh34-tx{align-items:center}
  html body .kh34-tx strong{font-size:.84rem;line-height:1.3}
  html body .kh34-tx small{font-size:.74rem}
  html.kh34-collapsed body .library-shell .books-grid>.book-card:nth-child(n+7){display:none!important}
}
@media (prefers-reduced-motion:reduce){html body .kh34-tile{transition:none}}
html body a.kh34-tile{text-decoration:none}
html body .kh34-tile.kh34-burda{border-color:#c99a37;background:linear-gradient(160deg,#fff7dc 0%,#f3dfa8 100%)}

/* R35: compact home — slim «سند الطريقة» strip, slim «البردة» row, library sections as small chips */
html body .kh31-sanad{padding:0 0 22px}
html body .kh31-card{gap:10px 22px;padding:16px 24px;border-radius:20px}
html body .kh31-copy{gap:2px}
html body .kh31-kicker{font-size:.8rem}
html body .kh31-title{font-size:clamp(1.2rem,2vw,1.5rem);line-height:1.4}
html body .kh31-btn{margin-top:6px;min-height:36px;padding:0 16px;font-size:.9rem;box-shadow:none}
html body .kh31-pro{width:48px;height:48px;font-size:26px}
html body .kh31-ali{width:38px;height:38px;font-size:15px}
html body .kh31-p{width:40px;height:40px}
html body .kh31-chain{gap:6px}
@media (max-width:900px){
  html body .kh31-card{grid-template-columns:minmax(0,1fr) auto;padding:12px 14px;gap:8px 10px;border-radius:16px}
  html body .kh31-kicker{display:none}
  html body .kh31-copy{grid-column:1;grid-row:1;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;width:100%}
  html body .kh31-title{font-size:1.12rem;line-height:1.35}
  html body .kh31-btn{margin:0;flex:none;min-height:32px;padding:0 12px;font-size:.8rem}
  html body .kh31-chain{grid-column:1/-1;grid-row:2;justify-self:center}
  html body .kh31-pro{width:34px;height:34px;font-size:19px}
  html body .kh31-ali{width:28px;height:28px;font-size:11px}
  html body .kh31-p{width:28px;height:28px;box-shadow:0 0 0 2px #fff7dc,0 0 0 3px #c99a37}
  html body .kh31-dots i{width:5px;height:5px}
}

html body .library-shell .kh33-burda{margin-top:10px}
html body .library-shell .kh33-burda .kh-sawati-feature-top{display:flex!important;flex-direction:row!important;align-items:center!important;gap:14px!important;padding:10px 16px!important;min-height:0!important}
html body .library-shell .kh33-burda .kh-sawati-cover{flex:none;width:52px!important;max-width:52px!important;margin:0!important}
html body .library-shell .kh33-burda .kh-sawati-cover img{width:52px!important;height:auto!important;border-radius:6px}
html body .library-shell .kh33-burda .kh-sawati-feature-copy{flex:1;min-width:0;text-align:right;gap:0!important}
html body .library-shell .kh33-burda .kh-sawati-eyebrow{font-size:.74rem!important;margin:0!important}
html body .library-shell .kh33-burda h2{font-size:1.3rem!important;margin:0!important;line-height:1.5!important}
html body .library-shell .kh33-burda p{font-size:.8rem!important;margin:0!important}
html body .library-shell .kh33-burda a.kh33-burda-go{flex:none;width:auto!important;min-height:36px!important;padding:0 14px!important;font-size:.85rem!important;margin:0!important;border-radius:999px!important}
@media (max-width:560px){
  html body .library-shell .kh33-burda .kh-sawati-feature-top{gap:10px!important;padding:8px 12px!important}
  html body .library-shell .kh33-burda .kh-sawati-cover,html body .library-shell .kh33-burda .kh-sawati-cover img{width:42px!important;max-width:42px!important}
  html body .library-shell .kh33-burda h2{font-size:1.12rem!important}
  html body .library-shell .kh33-burda p{display:none}
  html body .library-shell .kh33-burda a.kh33-burda-go{min-height:32px!important;padding:0 12px!important;font-size:.78rem!important}
}

html body .kh34-cats{margin:14px 0 16px}
html body .kh34-head{margin-bottom:10px}
html body .kh34-title{font-size:1.15rem}
html body .kh34-sub{font-size:.82rem}
html body .kh34-tiles{display:flex!important;flex-wrap:wrap;gap:8px;grid-template-columns:none}
html body .kh34-tile,html body .kh34-tile.kh34-all{flex:none;flex-direction:row!important;align-items:center;gap:7px!important;min-height:38px!important;padding:4px 6px 4px 12px!important;border-radius:999px!important;text-align:right!important;box-shadow:none}
html body .kh34-tile::after{display:none}
html body .kh34-tile:hover{transform:none;box-shadow:0 4px 12px rgba(120,84,10,.12)}
html body .kh34-ico{width:28px!important;height:28px!important;border-radius:50%!important}
html body .kh34-ico svg{width:16px!important;height:16px!important}
html body .kh34-tx{flex-direction:row!important;align-items:center!important;gap:6px!important}
html body .kh34-tx strong{font-size:.88rem!important;white-space:nowrap;line-height:1.2}
html body .kh34-tx small{font-size:.72rem!important;white-space:nowrap;padding:1px 7px;border-radius:999px;background:#fbf0d2}
html body .kh34-tile.kh34-all small{background:rgba(241,211,143,.18)}
@media (max-width:760px){
  html body .kh34-tiles{display:grid!important;grid-auto-flow:column;grid-template-rows:repeat(2,auto);grid-auto-columns:max-content;overflow-x:auto;scrollbar-width:none;
    margin-inline:0;max-width:100%;padding:2px 0 6px;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 24px)}
  html body .kh34-tiles::-webkit-scrollbar{display:none}
  html body .kh34-tile,html body .kh34-tile.kh34-all{min-height:36px!important}
}

/* ===== R41: premium green header + cleaner home blocks (iPhone + desktop) ===== */
html body .kh23-header{background:linear-gradient(180deg,#0a4d3c 0%,#073f34 100%)!important;border-bottom:0!important;box-shadow:0 1px 0 rgba(201,154,55,.55),0 6px 18px rgba(7,63,52,.18)}
html body .kh23-header::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:.07;background-image:radial-gradient(circle at 1px 1px,#f1d38f 1px,transparent 1.5px);background-size:18px 18px}
html body .kh23-bar{position:relative;z-index:1}
html body .kh23-brand{color:#fff}
html body .kh23-brand img{width:42px;height:42px;flex-basis:42px;box-shadow:0 0 0 2px rgba(241,211,143,.55),0 3px 10px rgba(0,0,0,.25)}
html body .kh23-brand span{color:#fff;font-size:18px;letter-spacing:.1px}
html body .kh23-nav a{color:#e9f2ec;font-weight:700}
html body .kh23-nav a:hover{background:rgba(255,255,255,.09);color:#fff}
html body .kh23-nav a[aria-current="page"]{color:#f1d38f}
html body .kh23-nav a[aria-current="page"]::after{background:#f1d38f}
html body .kh23-nav .kh23-live i{box-shadow:0 0 0 3px rgba(255,90,90,.18)}
html body .kh23-account,html body .kh23-menu>summary{background:rgba(255,255,255,.07);border-color:rgba(241,211,143,.35);color:#f6e7c1}
html body .kh23-account:hover,html body .kh23-menu>summary:hover{background:rgba(255,255,255,.14);border-color:#f1d38f}
html body .kh23-menu[open]>summary,html body .kh23-account[aria-current="page"]{background:#f1d38f;color:#073f34;border-color:#f1d38f}
html body .kh23-sheikhs{box-shadow:0 4px 14px rgba(0,0,0,.22)}
html body .kh23-sheikhs[aria-current="page"]{background:#f1d38f;color:#073f34;border-color:#f1d38f}
html body .kh23-panel{border-top:1px solid rgba(201,154,55,.4)}
@media (max-width:1020px){
  html body .kh23-bar{height:60px}
  html body .kh23-brand img{width:38px;height:38px;flex-basis:38px}
  html body .kh23-brand span{font-size:15.5px}
}
@media (max-width:420px){html body .kh23-brand span{font-size:14.5px}html body .kh23-bar{gap:7px}}
@media (max-width:360px){html body .kh23-brand span{display:none}}

/* app card: tighter on phones, buttons side by side, picture with soft frame */
html body .app-simple .app-simple-image img{border-radius:18px}
@media (max-width:760px){
  html body .app-simple-card{padding:18px 16px!important;gap:16px!important;border-radius:22px!important}
  html body .app-simple-title-row{gap:12px!important}
  html body .app-simple-logo{width:52px!important;height:52px!important}
  html body .app-simple h2{font-size:clamp(1.35rem,6vw,1.7rem)!important;line-height:1.3!important}
  html body .app-simple-copy>p{font-size:.95rem!important;line-height:1.8!important;margin:8px 0 0!important}
  html body .app-simple-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin-top:14px!important}
  html body .app-simple-actions>a{min-height:46px!important;padding:0 10px!important;font-size:.95rem!important;width:auto!important;justify-content:center!important}
  html body .app-simple-note{display:none!important}
  html body .app-simple-image{border-radius:16px!important;overflow:hidden}
}

/* services: neat icon tiles (5 in a row on phones too) */
html body .community-home .community-grid.community-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important}
html body .community-home .community-card{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:10px!important;min-height:112px!important;padding:16px 8px!important;text-align:center!important;border-radius:18px!important;position:relative}
html body .community-home .community-card .channel-icon{width:52px!important;height:52px!important;border-radius:16px!important;margin:0!important}
html body .community-home .community-card .channel-icon svg{width:26px!important;height:26px!important}
html body .community-home .community-card strong{font-size:.98rem!important;line-height:1.3!important;white-space:normal!important}
html body .community-home .community-card .channel-arrow{display:none!important}
html body .community-home .community-card:hover{transform:translateY(-2px)}
html body .community-home .community-grid .kh31-sanad-card{grid-column:auto!important}
@media (max-width:760px){
  html body .community-home .community-grid.community-grid{gap:8px!important}
  html body.home-refined .community-home .community-grid .community-card,html body .community-home .community-grid .community-card{min-height:88px!important;padding:12px 2px 10px!important;gap:7px!important;border-radius:16px!important}
  html body .community-home .community-card .channel-icon{width:44px!important;height:44px!important;border-radius:14px!important}
  html body .community-home .community-card .channel-icon svg{width:22px!important;height:22px!important}
  html body.home-refined .community-home .community-grid .community-card strong,html body .community-home .community-grid .community-card strong{font-size:11.5px!important;font-weight:800!important;line-height:1.35!important;word-break:keep-all!important;overflow-wrap:normal!important;width:100%!important}
}

/* library collections: both as slim rows */
html body .library-shell .kh-sawati-feature:not(.kh33-burda) .kh-sawati-feature-top{display:flex!important;flex-direction:row!important;align-items:center!important;gap:16px!important;padding:14px 18px!important;min-height:0!important}
html body .library-shell .kh-sawati-feature:not(.kh33-burda) .kh-sawati-cover{flex:none;width:78px!important;max-width:78px!important;margin:0!important}
html body .library-shell .kh-sawati-feature:not(.kh33-burda) .kh-sawati-cover img{width:78px!important;height:auto!important}
html body .library-shell .kh-sawati-feature:not(.kh33-burda) .kh-sawati-feature-copy{flex:1;min-width:0;text-align:right}
html body .library-shell .kh-sawati-feature:not(.kh33-burda) h2{font-size:clamp(1.15rem,2.2vw,1.6rem)!important;margin:2px 0!important}
html body .library-shell .kh-sawati-feature:not(.kh33-burda) .kh-sawati-view-toggle{flex:none;width:auto!important;min-height:42px!important;padding:0 18px!important;border-radius:999px!important;margin:0!important;font-size:.9rem!important}
@media (max-width:560px){
  html body .library-shell .kh-sawati-feature:not(.kh33-burda) .kh-sawati-feature-top{display:grid!important;grid-template-columns:62px minmax(0,1fr)!important;gap:8px 12px!important;padding:12px!important}
  html body .library-shell .kh-sawati-feature:not(.kh33-burda) .kh-sawati-cover,html body .library-shell .kh-sawati-feature:not(.kh33-burda) .kh-sawati-cover img{width:62px!important;max-width:62px!important}
  html body .library-shell .kh-sawati-feature:not(.kh33-burda) h2{font-size:1.12rem!important}
  html body .library-shell .kh-sawati-feature:not(.kh33-burda) p{font-size:.78rem!important}
  html body .library-shell .kh-sawati-feature:not(.kh33-burda) .kh-sawati-view-toggle{grid-column:1/-1;min-height:38px!important;width:100%!important;font-size:.85rem!important}
}
/* R41b: desktop services as small pills in one centered row */
@media (min-width:761px){
  html body .community-home .community-grid.community-grid{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:10px!important}
  html body.home-refined .community-home .community-grid .community-card,html body .community-home .community-grid .community-card{flex:0 0 auto!important;flex-direction:row!important;min-height:0!important;height:52px!important;padding:0 18px 0 8px!important;gap:10px!important;border-radius:999px!important;width:auto!important}
  html body .community-home .community-grid .community-card .channel-icon{width:36px!important;height:36px!important;border-radius:50%!important}
  html body .community-home .community-grid .community-card .channel-icon svg{width:19px!important;height:19px!important}
  html body.home-refined .community-home .community-grid .community-card strong,html body .community-home .community-grid .community-card strong{font-size:15px!important;white-space:nowrap!important}
}
/* R43: «سند الطريقة» lives in its own strip above, so not again here; centered, smaller icons */
html body .community-home .community-grid .kh31-sanad-card{display:none!important}
html body .community-home .community-home-head{text-align:center!important}
html body .community-home .community-grid.community-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
html body .community-home .community-grid .community-card{justify-content:center!important;text-align:center!important}
html body .community-home .community-grid .community-card .channel-icon{width:30px!important;height:30px!important}
html body .community-home .community-grid .community-card .channel-icon svg{width:16px!important;height:16px!important}
@media (min-width:761px){
  html body.home-refined .community-home .community-grid .community-card,html body .community-home .community-grid .community-card{height:46px!important;padding:0 16px 0 8px!important;gap:8px!important}
}
@media (max-width:760px){
  html body.home-refined .community-home .community-grid .community-card,html body .community-home .community-grid .community-card{min-height:76px!important}
  html body .community-home .community-grid .community-card .channel-icon{width:34px!important;height:34px!important;border-radius:12px!important}
  html body .community-home .community-grid .community-card .channel-icon svg{width:18px!important;height:18px!important}
}
/* R44: services = one elegant text bar (no icons, no boxes) */
html body .community-home .community-grid.community-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;max-width:760px;margin:0 auto!important;padding:4px!important;border-radius:999px!important;background:#fffdf8!important;border:1px solid rgba(201,154,55,.45)!important;box-shadow:0 6px 18px rgba(120,84,10,.08)!important}
html body.home-refined .community-home .community-grid .community-card,html body .community-home .community-grid .community-card{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;height:46px!important;min-height:0!important;padding:0 8px!important;margin:0!important;border:0!important;border-radius:999px!important;background:transparent!important;box-shadow:none!important;transform:none!important;position:relative!important}
html body .community-home .community-grid .community-card .channel-icon,html body .community-home .community-grid .community-card .channel-arrow{display:none!important}
html body.home-refined .community-home .community-grid .community-card strong,html body .community-home .community-grid .community-card strong{font-size:15px!important;font-weight:800!important;color:#073f34!important;white-space:nowrap!important;width:auto!important;line-height:1.2!important}
html body .community-home .community-grid .community-card:hover{background:#07583d!important}
html body .community-home .community-grid .community-card:hover strong{color:#fff!important}
html body .community-home .community-grid .community-card+.community-card::before{content:"";position:absolute;inset-inline-end:100%;top:13px;bottom:13px;width:1px;background:rgba(201,154,55,.45)}
html body .community-home .community-grid .kh31-sanad-card+.community-card::before{display:none}
@media (max-width:520px){
  html body .community-home .community-grid.community-grid{border-radius:22px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:4px!important}
  html body.home-refined .community-home .community-grid .community-card,html body .community-home .community-grid .community-card{height:44px!important;border-radius:18px!important}
  html body.home-refined .community-home .community-grid .community-card strong,html body .community-home .community-grid .community-card strong{font-size:14px!important}
  html body .community-home .community-grid .community-card+.community-card::before{display:none}
}
html body.home-refined .community-home .community-grid a.community-card.kh31-sanad-card,html body .community-home .community-grid a.community-card.kh31-sanad-card{display:none!important}
/* R45: small icons back in the services bar */
html body .community-home .community-grid .community-card .channel-icon{display:inline-grid!important;place-items:center!important;width:26px!important;height:26px!important;min-width:26px!important;border-radius:50%!important;margin:0 0 0 7px!important;padding:0!important;flex:none!important}
html body .community-home .community-grid .community-card .channel-icon svg{width:14px!important;height:14px!important}
html body .community-home .community-grid .community-card:hover .channel-icon{background:rgba(255,255,255,.18)!important;color:#fff!important}
@media (max-width:520px){html body .community-home .community-grid .community-card .channel-icon{width:24px!important;height:24px!important;min-width:24px!important}}

/* R45: the two collections (سواطع + البردة) as twin cards: side by side on desktop, matching slim rows on phones */
html body .library-shell .kh-sawati-feature.kh-sawati-feature{position:relative;box-sizing:border-box;border-radius:20px!important;overflow:hidden;background:linear-gradient(135deg,#fffdf8 0%,#f7efd9 100%)!important;border:1px solid rgba(201,154,55,.45)!important;box-shadow:0 8px 22px rgba(120,84,10,.08)!important}
html body .library-shell .kh-sawati-feature.kh-sawati-feature::before{content:"";position:absolute;inset-block:0;inset-inline-start:0;width:5px;background:linear-gradient(180deg,#d9ae4f,#07583d)}
html body .library-shell .kh-sawati-feature.kh-sawati-feature .kh-sawati-feature-top{display:grid!important;grid-template-columns:76px minmax(0,1fr) auto!important;align-items:center!important;gap:6px 16px!important;padding:16px 20px 16px 18px!important;min-height:0!important}
html body .library-shell .kh-sawati-feature.kh-sawati-feature .kh-sawati-cover{grid-row:1;width:76px!important;max-width:76px!important;margin:0!important;border-radius:8px;overflow:hidden;box-shadow:0 6px 14px rgba(7,63,52,.25)}
html body .library-shell .kh-sawati-feature.kh-sawati-feature .kh-sawati-cover img{display:block;width:76px!important;height:auto!important;border-radius:0!important}
html body .library-shell .kh-sawati-feature.kh-sawati-feature .kh-sawati-feature-copy{min-width:0;text-align:right;display:flex;flex-direction:column;gap:3px!important}
html body .library-shell .kh-sawati-feature.kh-sawati-feature .kh-sawati-eyebrow{font-size:.78rem!important;color:#8a6116!important;font-weight:800;margin:0!important}
html body .library-shell .kh-sawati-feature.kh-sawati-feature h2{font-size:clamp(1.15rem,1.9vw,1.45rem)!important;line-height:1.4!important;margin:0!important;color:#073f34!important}
html body .library-shell .kh-sawati-feature.kh-sawati-feature p{display:block!important;font-size:.82rem!important;margin:0!important;color:#6b7069!important}
html body .library-shell .kh-sawati-feature.kh-sawati-feature .kh-sawati-view-toggle,html body .library-shell .kh-sawati-feature.kh-sawati-feature a.kh33-burda-go{grid-column:auto!important;width:auto!important;min-height:40px!important;height:40px;padding:0 16px!important;border-radius:999px!important;margin:0!important;font-size:.88rem!important;white-space:nowrap;box-shadow:0 4px 12px rgba(7,88,61,.22)!important}
@media (min-width:900px){
  html body .library-shell .kh-sawati-feature.kh-sawati-feature{display:inline-block!important;vertical-align:top;width:calc(50% - 9px)!important;margin:14px 0 0!important}
  html body .library-shell .kh-sawati-feature.kh-sawati-feature+.kh33-burda{margin-inline-start:14px!important}
  html body .library-shell .kh-sawati-feature.kh-sawati-feature:has(.kh-sawati-collection-body:not([hidden])){display:block!important;width:100%!important}
  html body .library-shell .kh-sawati-feature.kh-sawati-feature .kh-sawati-feature-top{grid-template-columns:76px minmax(0,1fr)!important;min-height:150px!important}
  html body .library-shell .kh-sawati-feature.kh-sawati-feature .kh-sawati-view-toggle,html body .library-shell .kh-sawati-feature.kh-sawati-feature a.kh33-burda-go{grid-column:2!important;justify-self:start!important}
  html body .library-shell .kh-sawati-feature.kh-sawati-feature .kh-sawati-cover{grid-row:1 / span 2}
}
@media (max-width:560px){
  html body .library-shell .kh-sawati-feature.kh-sawati-feature .kh-sawati-feature-top{grid-template-columns:56px minmax(0,1fr)!important;gap:6px 12px!important;padding:12px 14px 12px 12px!important}
  html body .library-shell .kh-sawati-feature.kh-sawati-feature .kh-sawati-cover,html body .library-shell .kh-sawati-feature.kh-sawati-feature .kh-sawati-cover img{width:56px!important;max-width:56px!important}
  html body .library-shell .kh-sawati-feature.kh-sawati-feature .kh-sawati-cover{grid-row:1 / span 2}
  html body .library-shell .kh-sawati-feature.kh-sawati-feature h2{font-size:1.08rem!important}
  html body .library-shell .kh-sawati-feature.kh-sawati-feature p{display:none!important}
  html body .library-shell .kh-sawati-feature.kh-sawati-feature .kh-sawati-view-toggle,html body .library-shell .kh-sawati-feature.kh-sawati-feature a.kh33-burda-go{grid-column:2!important;justify-self:start!important;height:34px;min-height:34px!important;font-size:.8rem!important;padding:0 14px!important}
}
html body.home-refined .community-home .community-grid .community-card,html body .community-home .community-grid .community-card{direction:rtl!important}html body .community-home .community-grid .community-card .channel-icon{margin:0 0 0 8px!important}
html body .community-home .community-grid .community-card .channel-icon{order:-1!important}html body .community-home .community-grid .community-card strong{order:1!important}
/* R46: home banner «الخلوتية الرملية» */
html body .kh46-banner{padding:18px 0 4px}
html body .kh46-banner-link{display:block;border-radius:20px;overflow:hidden;border:1px solid rgba(201,154,55,.55);box-shadow:0 10px 26px rgba(7,63,52,.18);background:#073f34;aspect-ratio:1400/467}
html body .kh46-banner-link img{display:block;width:100%;height:100%;object-fit:cover}
@media (max-width:760px){html body .kh46-banner{padding:12px 0 0}html body .kh46-banner-link{border-radius:14px}}
@media (min-width:761px){html body .kh46-banner-link{aspect-ratio:4/1}html body .kh46-banner-link img{object-position:50% 50%}}
/* R47: slimmer banner + compact app card */
html body .kh46-banner-link{aspect-ratio:auto!important;height:clamp(120px,15vw,180px)}
html body .kh46-banner-link img{height:100%!important;object-fit:cover!important;object-position:50% 52%!important}
@media (max-width:760px){html body .kh46-banner-link{height:96px}html body .kh46-banner{padding:10px 0 0}}

html body .app-simple .app-simple-card{padding:18px 22px!important;gap:22px!important;align-items:center!important;min-height:0!important}
html body .app-simple .app-simple-note{display:none!important}
html body .app-simple .app-simple-logo{width:48px!important;height:48px!important}
html body .app-simple h2{font-size:clamp(1.25rem,2vw,1.6rem)!important;line-height:1.3!important;margin:0!important}
html body .app-simple .app-simple-copy>p{font-size:.95rem!important;line-height:1.7!important;margin:8px 0 0!important}
html body .app-simple .app-simple-actions{margin-top:14px!important}
html body .app-simple .app-simple-actions>a{min-height:44px!important}
@media (min-width:761px){
  html body .app-simple .app-simple-card{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,400px)!important}
  html body .app-simple .app-simple-image{display:block!important;height:190px!important;border-radius:16px!important;overflow:hidden!important}
  html body .app-simple .app-simple-image img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:50% 40%!important;border-radius:16px!important}
}
@media (max-width:760px){
  html body .app-simple .app-simple-card{padding:14px!important;gap:0!important;border-radius:18px!important}
  html body .app-simple .app-simple-image{display:none!important}
  html body .app-simple .app-simple-kicker{display:none!important}
  html body .app-simple .app-simple-logo{width:42px!important;height:42px!important}
  html body .app-simple h2{font-size:1.2rem!important}
  html body .app-simple .app-simple-copy>p{font-size:.85rem!important;line-height:1.6!important;margin:6px 0 0!important}
  html body .app-simple .app-simple-actions{margin-top:10px!important;gap:8px!important}
  html body .app-simple .app-simple-actions>a{min-height:40px!important;font-size:.88rem!important}
}
@media (min-width:761px){html body .app-simple .container .app-simple-card.app-simple-card{grid-template-columns:minmax(0,1fr) minmax(0,420px)!important}html body .app-simple .app-simple-image{max-width:420px!important;width:100%!important;justify-self:end}}
@media (min-width:761px){html body .app-simple .app-simple-copy{max-width:none!important;width:100%!important}html body .app-simple .app-simple-actions{max-width:440px}}
@media (min-width:761px){html body .app-simple .container .app-simple-card.app-simple-card{grid-template-columns:minmax(0,420px) minmax(0,1fr)!important}html body .app-simple .app-simple-image{justify-self:stretch!important;max-width:none!important}}
@media (min-width:761px){html body .app-simple .app-simple-image{height:205px!important}}
/* R48: app + sanad as one row of two twin cards (desktop and phone) */
html body .kh47-duo{box-sizing:border-box;max-width:1232px;margin:14px auto 0;padding:0 16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:stretch}
html body .kh47-duo>section{margin:0!important;padding:0!important;min-width:0}
html body .kh47-duo>section>.container{max-width:none!important;width:auto!important;padding:0!important;margin:0!important;height:100%}
/* app half */
html body .kh47-duo .app-simple .container .app-simple-card.app-simple-card{display:flex!important;flex-direction:column!important;justify-content:center!important;height:100%;box-sizing:border-box;padding:16px 18px!important;gap:0!important;border-radius:20px!important;min-height:0!important}
html body .kh47-duo .app-simple .app-simple-image,html body .kh47-duo .app-simple .app-simple-note{display:none!important}
html body .kh47-duo .app-simple .app-simple-copy{width:100%!important;max-width:none!important}
html body .kh47-duo .app-simple .app-simple-title-row{gap:10px!important;align-items:center!important}
html body .kh47-duo .app-simple .app-simple-logo{width:44px!important;height:44px!important}
html body .kh47-duo .app-simple .app-simple-kicker{font-size:.75rem!important}
html body .kh47-duo .app-simple h2{font-size:clamp(1.05rem,1.7vw,1.35rem)!important;line-height:1.3!important}
html body .kh47-duo .app-simple .app-simple-copy>p{font-size:.85rem!important;line-height:1.6!important;margin:6px 0 0!important}
html body .kh47-duo .app-simple .app-simple-actions{display:flex!important;flex-wrap:wrap;gap:8px!important;margin-top:12px!important;max-width:none!important}
html body .kh47-duo .app-simple .app-simple-actions>a{flex:1 1 0;min-height:40px!important;height:40px;padding:0 12px!important;font-size:.88rem!important;white-space:nowrap}
/* sanad half */
html body .kh47-duo .kh31-sanad .kh31-card{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:10px!important;height:100%;box-sizing:border-box;padding:16px 18px!important;border-radius:20px!important}
html body .kh47-duo .kh31-sanad .kh31-copy{flex-direction:column!important;align-items:flex-start!important;gap:2px!important;width:100%}
html body .kh47-duo .kh31-sanad .kh31-kicker{display:block!important;font-size:.75rem!important}
html body .kh47-duo .kh31-sanad .kh31-title{font-size:clamp(1.05rem,1.7vw,1.35rem)!important}
html body .kh47-duo .kh31-sanad .kh31-btn{order:3;margin-top:8px!important;min-height:40px!important;height:40px;padding:0 16px!important;font-size:.88rem!important}
html body .kh47-duo .kh31-sanad .kh31-chain{align-self:flex-start;max-width:100%;overflow:hidden}
html body .kh47-duo .kh31-sanad .kh31-pro{width:40px!important;height:40px!important;font-size:21px!important}
html body .kh47-duo .kh31-sanad .kh31-ali{width:32px!important;height:32px!important;font-size:12px!important}
html body .kh47-duo .kh31-sanad .kh31-p{width:32px!important;height:32px!important}
/* phones: still one row, two compact cards */
@media (max-width:760px){
  html body .kh47-duo{gap:8px;padding:0 10px;margin-top:10px}
  html body .kh47-duo .app-simple .container .app-simple-card.app-simple-card,html body .kh47-duo .kh31-sanad .kh31-card{padding:12px 10px!important;border-radius:16px!important}
  html body .kh47-duo .app-simple .app-simple-title-row{flex-direction:column!important;align-items:flex-start!important;gap:6px!important}
  html body .kh47-duo .app-simple .app-simple-logo{width:34px!important;height:34px!important}
  html body .kh47-duo .app-simple .app-simple-kicker,html body .kh47-duo .kh31-sanad .kh31-kicker,html body .kh47-duo .app-simple .app-simple-copy>p{display:none!important}
  html body .kh47-duo .app-simple h2,html body .kh47-duo .kh31-sanad .kh31-title{font-size:.98rem!important;line-height:1.35!important}
  html body .kh47-duo .app-simple .app-simple-actions{flex-direction:column!important;gap:6px!important;margin-top:10px!important}
  html body .kh47-duo .app-simple .app-simple-actions>a{flex:none;width:100%!important;height:34px;min-height:34px!important;font-size:.78rem!important;padding:0 8px!important}
  html body .kh47-duo .app-simple .app-simple-actions>a svg{width:15px!important;height:15px!important}
  html body .kh47-duo .kh31-sanad .kh31-card{gap:8px!important}
  html body .kh47-duo .kh31-sanad .kh31-chain{gap:3px!important}
  html body .kh47-duo .kh31-sanad .kh31-pro{width:30px!important;height:30px!important;font-size:16px!important}
  html body .kh47-duo .kh31-sanad .kh31-ali{width:24px!important;height:24px!important;font-size:9px!important}
  html body .kh47-duo .kh31-sanad .kh31-dots{display:none!important}
  html body .kh47-duo .kh31-sanad .kh31-p{width:24px!important;height:24px!important;box-shadow:0 0 0 1.5px #fff7dc,0 0 0 2.5px #c99a37!important}
  html body .kh47-duo .kh31-sanad .kh31-p:nth-of-type(n+4){display:none!important}
  html body .kh47-duo .kh31-sanad .kh31-btn{width:100%;justify-content:center;height:34px;min-height:34px!important;font-size:.78rem!important;padding:0 8px!important;margin-top:4px!important}
}
html body .kh47-duo{max-width:1212px;margin-bottom:18px}
html body .kh47-duo .kh31-sanad .kh31-copy{display:contents!important}
html body .kh47-duo .kh31-sanad .kh31-kicker{order:1}html body .kh47-duo .kh31-sanad .kh31-title{order:2}
html body .kh47-duo .kh31-sanad .kh31-chain{order:3}html body .kh47-duo .kh31-sanad .kh31-btn{order:4;margin-top:4px!important}
@media (max-width:760px){html body .kh47-duo{margin-bottom:6px}}
/* R49: light banner */
html body .kh46-banner-link{background:#fbf6e9!important;border-color:rgba(201,154,55,.6)!important;box-shadow:0 8px 22px rgba(120,84,10,.12)!important}
html body .kh46-banner-link img{object-position:50% 47%!important}

