:root {
  --olive: #3d6b45;
  --teal: #2f7a7a;
  --gold: #c9a227;
  --coral: #c45c3e;
  --sky: #4a7fb5;
  --ink: #1c2430;
  --muted: #5b6573;
  --paper: #f4f1e8;
  --card: #ffffff;
  --line: rgba(28, 36, 48, 0.12);
  --shadow: 0 22px 48px -28px rgba(28, 36, 48, 0.5);
  --radius: 1.25rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  line-height: 1.7;
}
.public-shell {
  background:
    radial-gradient(1100px 520px at 100% -8%, rgba(61, 107, 69, 0.18), transparent 55%),
    radial-gradient(800px 460px at -8% 12%, rgba(201, 162, 39, 0.2), transparent 50%),
    radial-gradient(700px 420px at 80% 110%, rgba(47, 122, 122, 0.14), transparent 55%),
    var(--paper);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.55);
  box-shadow: var(--shadow);
}
.header-row, .nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-row { min-height: 4.6rem; }
.brand { display: flex; align-items: center; gap: .75rem; font-weight: 800; font-size: 1.15rem; color: var(--olive); min-width: 0; }
.brand-logo-wrap {
  display: inline-flex; align-items: center; background: #fff; padding: .35rem .55rem;
  border-radius: 1rem; box-shadow: 0 8px 20px -16px rgba(0,0,0,.4);
}
.brand-logo-wrap img { height: 42px; width: auto; max-width: 180px; object-fit: contain; }
.brand-mark {
  width: 2.5rem; height: 2.5rem; border-radius: 1rem;
  display: grid; place-items: center; color: #fff; font-weight: 900;
  background: linear-gradient(135deg, var(--olive), var(--teal));
}
.primary-nav, .cat-nav { display: flex; gap: .55rem; flex-wrap: wrap; }
.primary-nav a, .cat-nav a, .chip {
  border-radius: 999px; padding: .4rem .9rem; background: #fff;
  border: 1px solid var(--line); font-weight: 700; font-size: .92rem;
}
.primary-nav a:hover, .cat-nav a:hover, .btn:hover { transform: translateY(-1px); }
.cat-bar { border-top: 1px solid rgba(61,107,69,.12); padding: .75rem 0 1rem; }
.btn {
  display: inline-flex; align-items: center; gap: .4rem; border: 0; cursor: pointer;
  border-radius: 999px; padding: .7rem 1.15rem; font-weight: 800; font-family: inherit;
  appearance: none; -webkit-appearance: none;
  -webkit-text-fill-color: currentColor; color: var(--ink);
}
.btn-primary { color: #fff; -webkit-text-fill-color: #fff; background: linear-gradient(270deg, var(--olive), var(--teal)); box-shadow: 0 10px 24px -12px var(--olive); }
.btn-ghost { color: var(--ink); -webkit-text-fill-color: var(--ink); background: #fff; border: 1px solid var(--line); }
.hero, .card, .panel {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem;
}
.hero {
  margin: 1.5rem 0; padding: 1.7rem;
  display: grid; gap: 1.4rem;
  background:
    radial-gradient(420px 180px at 0% 0%, rgba(61,107,69,.16), transparent 60%),
    radial-gradient(360px 160px at 100% 20%, rgba(201,162,39,.18), transparent 55%),
    rgba(255,255,255,.7);
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.2fr .9fr; align-items: center; }
}
.hero h1 { margin: .2rem 0 .6rem; font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.3; }
.hero-chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.hero-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.hero-tile {
  min-height: 5.2rem; border-radius: 1.1rem; padding: .9rem 1rem;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  font-weight: 800; color: #fff;
  box-shadow: var(--shadow); transition: transform .2s ease;
}
.hero-tile .icon { width: 1.4rem; height: 1.4rem; }
.hero-tile:hover { transform: translateY(-3px); }
.tone-olive { background: linear-gradient(135deg, #3d6b45, #2f7a7a); }
.tone-teal { background: linear-gradient(135deg, #2f7a7a, #4a7fb5); }
.tone-gold { background: linear-gradient(135deg, #c9a227, #c45c3e); }
.tone-coral { background: linear-gradient(135deg, #c45c3e, #9b3d4a); }
.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.thumb { aspect-ratio: 16/10; object-fit: cover; border-radius: .9rem; background: #dfe7e3; width: 100%; }
.thumb-empty { display: grid; place-items: center; color: var(--muted); font-weight: 700; background: linear-gradient(135deg, rgba(61,107,69,.12), rgba(201,162,39,.12)); }
.meta { color: var(--muted); font-size: .86rem; }
.tag { display: inline-flex; align-items: center; border-radius: 999px; padding: .15rem .65rem; font-size: .78rem; font-weight: 800; }
.tag-gold { background: rgba(201,162,39,.18); color: #7a5d10; }
.tag-coral { background: rgba(196,92,62,.16); color: var(--coral); }
.tag-olive { background: rgba(61,107,69,.14); color: var(--olive); }
.tag-ghost { background: rgba(255,255,255,.2); color: #fff; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.6rem 0 .9rem; }
.section-title h2 { margin: 0; }
.article { max-width: 760px; margin: 1.5rem auto 3rem; }
.article-hero { margin: 1rem 0 1.2rem; border-radius: 1.2rem; }
.article-featured-wrap {
  margin: 1rem 0 1.2rem;
  background: linear-gradient(135deg, rgba(61,107,69,.1), rgba(201,162,39,.1));
  border-radius: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.article-featured {
  width: 100%;
  height: auto;
  max-height: min(85vh, 920px);
  object-fit: contain;
  object-position: center;
  display: block;
}
.article-excerpt { font-size: 1.08rem; color: var(--muted); }
.article-body { font-size: 1.05rem; }
.article-body p { margin: 0 0 1rem; }
.article-body img { border-radius: .9rem; margin: 1rem 0; }
.footer {
  margin-top: 3rem; color: #fff;
  background: linear-gradient(180deg, #2a4a32, #1b2f24);
}
.footer-accent { height: 6px; background: linear-gradient(270deg, var(--gold), var(--teal), var(--coral)); }
.footer .container { padding: 2.2rem 0 1.4rem; display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.footer a { color: rgba(255,255,255,.86); }
.village-pin { color: var(--gold); font-weight: 700; }
.credit { grid-column: 1/-1; opacity: .75; font-size: .85rem; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem; }
.form { display: grid; gap: .8rem; }
label { font-weight: 800; font-size: .92rem; }
input, textarea, select {
  width: 100%; border: 1px solid var(--line); border-radius: .8rem; padding: .7rem .85rem;
  font: inherit; background: #fff;
}
textarea { min-height: 180px; }
.alert { padding: .75rem 1rem; border-radius: .8rem; font-weight: 700; overflow: visible; word-break: break-word; }
.alert-error { background: #fde8e4; color: #8a2d1a; }
.alert-ok { background: #e7f5ea; color: #215c32; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.login-card { width: min(420px, 100%); }
.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: #f3f4f6; }
.admin-backdrop { display: none; }
.admin-side { background: #1e2c24; color: #fff; padding: 1.2rem; display: flex; flex-direction: column; min-height: 100vh; }
.admin-side-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; margin-bottom: 1.1rem; }
.admin-nav { display: flex; flex-direction: column; gap: .15rem; }
.admin-side a { display: flex; align-items: center; gap: .5rem; color: #fff; padding: .65rem .75rem; border-radius: .7rem; }
.admin-side a:hover, .admin-side a.active { background: rgba(255,255,255,.12); }
.admin-main { padding: 1.2rem; min-width: 0; }
.admin-top-start { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.admin-top-start h1 { margin: 0; font-size: clamp(1.05rem, 2.6vw, 1.6rem); line-height: 1.3; }
.admin-menu-open, .admin-menu-close { display: none; }
.admin-logout { margin-top: auto; padding-top: 1rem; }
.admin-logout-btn { width: 100%; justify-content: center; color: #fff; background: transparent; border-color: rgba(255,255,255,.25); }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 1rem; overflow: hidden; }
.table th, .table td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: right; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.stat { padding: 1rem; border-radius: 1rem; background: #fff; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 1.6rem; }
.empty { padding: 2rem; text-align: center; color: var(--muted); }
.form-row { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; }
.form-row label { font-weight: 700; display: flex; gap: .4rem; align-items: center; }
.check input { width: auto; }
.pager { display: flex; gap: .5rem; justify-content: center; margin: 1.5rem 0; }
.pager a, .pager span { padding: .35rem .8rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.icon { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.18em; overflow: visible; max-width: none; }
.thumb-empty { gap: .4rem; }
.primary-nav a, .footer a, .section-title h2, .section-title h1, .section-title a, .tag, .mobile-nav a, .mobile-label, .village-pin, .meta-line, .login-field {
  display: inline-flex; align-items: center; gap: .4rem;
}
.header-actions { display: flex; align-items: center; gap: .45rem; }
.btn-icon { min-width: 2.6rem; min-height: 2.6rem; padding: .45rem .8rem; justify-content: center; }
.btn-icon .icon, .header-actions .icon { width: 1.3rem; height: 1.3rem; }
.btn-sm { padding: .35rem .7rem; font-size: .82rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.search-bar { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; }
.search-bar input, .mobile-search input { flex: 1; width: auto; border: 0; box-shadow: none; padding: .4rem 0; }
.mobile-toggle { display: none; }
.mobile-drawer {
  display: none; margin: 0 0 1rem; padding: 1rem; border-radius: 1rem;
  background: #fff; box-shadow: var(--shadow);
}
.mobile-drawer[hidden] { display: none !important; }
.mobile-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.mobile-search { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: .9rem; background: #f7f8fa; }
.mobile-nav { display: grid; gap: .35rem; margin-bottom: .8rem; }
.mobile-nav a { padding: .55rem .7rem; border-radius: .7rem; background: #f6f7f9; font-weight: 800; }
.mobile-label { font-weight: 800; margin: .4rem 0; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: 1rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.table-wrap .table { background: transparent; box-shadow: none; }
.table-caption, .table-heading { margin: 0 0 .6rem; font-size: 1.05rem; display: flex; align-items: center; gap: .4rem; }
.meta.meta-line { display: flex; flex-wrap: wrap; gap: .35rem .75rem; align-items: center; }
.table-edit input, .table-edit select { min-width: 7rem; padding: .45rem .55rem; }
.table-actions { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
.table-actions form { margin: 0; display: flex; flex: 1 1 calc(50% - .35rem); min-width: 7.2rem; }
.table-new-row { background: #f7faf7; }
.table-thumb { width: 56px; height: 40px; object-fit: cover; border-radius: .4rem; display: block; }
.table-forms { display: none; }
.toolbar-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; background: #fff; padding: .7rem; border-radius: 1rem; box-shadow: var(--shadow); }
.toolbar-form input[type="file"] { width: auto; }
.login-field { width: 100%; }
.login-field input { flex: 1; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.admin-user { white-space: nowrap; }
.toolbar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.muted { color: var(--muted); }
.news-card { overflow: hidden; background: #fff; border-radius: 1.4rem; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.8); }
.news-card h3 { margin: .2rem 0 .35rem; font-size: 1.05rem; }
.news-card-body { padding: .9rem 1rem 1.1rem; }
.news-card-featured { position: relative; min-height: 22rem; }
.news-card-featured img, .news-card-featured .thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 1.4rem; }
.news-card-featured-overlay {
  position: relative; z-index: 1; min-height: 22rem; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.2rem; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.2) 55%, transparent);
  border-radius: 1.4rem;
}
.news-card-featured h3 { font-size: clamp(1.2rem, 2.4vw, 1.9rem); }
.news-card-badges { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .5rem; }
.featured-grid { display: grid; gap: 1rem; }
@media (min-width: 960px) {
  .featured-grid:has(.featured-side) { grid-template-columns: 1.4fr .8fr; }
}
.featured-side { display: grid; gap: 1rem; }
.breaking-bar {
  background: linear-gradient(270deg, #c45c3e, #b42318 55%, #c2410c);
  color: #fff; box-shadow: 0 12px 32px -18px #c45c3e;
}
.breaking-inner {
  display: flex; align-items: center; gap: .7rem; min-height: 3.15rem;
  overflow: hidden; padding-block: .4rem;
}
.breaking-track {
  flex: 1; min-width: 0; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(to left, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to left, transparent, #000 8%, #000 92%, transparent);
}
.breaking-ticker {
  display: inline-flex; align-items: center; gap: 1.35rem; width: max-content;
  white-space: nowrap; animation: ticker 24s linear infinite;
}
.breaking-item { display: inline-flex; align-items: center; gap: .55rem; }
.breaking-mark {
  flex: none; display: inline-flex; align-items: center;
  background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px; padding: .1rem .48rem; color: #fff;
  font-size: .72rem; font-weight: 900; line-height: 1.2;
}
.breaking-ticker a { color: #fff; font-weight: 700; padding-inline: .15rem; }
.breaking-track:hover .breaking-ticker { animation-play-state: paused; }
.top-banner { background: linear-gradient(270deg, rgba(201,162,39,.16), rgba(47,122,122,.12)); padding: .6rem 0; }
.top-banner img { max-height: 160px; width: 100%; object-fit: contain; background: rgba(255,255,255,.4); border-radius: 1rem; }
.promo-banners { padding: .8rem 0 0; }
.promo-grid { display: grid; gap: .8rem; }
.promo-grid-2 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .promo-grid-2 { grid-template-columns: 1fr 1fr; } }
.promo-banner img { width: 100%; max-height: 160px; object-fit: cover; border-radius: 1.3rem; box-shadow: var(--shadow); }
.article-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .7rem; margin: 1.2rem 0; }
.gallery-thumb { padding: 0; border: 0; background: none; cursor: pointer; }
.gallery-thumb img { width: 100%; height: 120px; object-fit: cover; border-radius: .8rem; }
.gallery-dialog { border: 0; border-radius: 1rem; padding: 1rem; max-width: min(960px, 94vw); background: #111; }
.gallery-dialog img { max-height: 80vh; width: auto; max-width: 100%; height: auto; object-fit: contain; margin: 0 auto; display: block; }
.gallery-dialog-nav { display: flex; justify-content: space-between; gap: .6rem; margin-top: .8rem; }
.gallery-dialog-nav button { border: 0; border-radius: 999px; padding: .5rem 1rem; font: inherit; font-weight: 800; cursor: pointer; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; }
.media-grid img { height: 110px; width: 100%; object-fit: cover; border-radius: .7rem; }
.side-brand { font-weight: 900; margin: 0 0 1.2rem; display: flex; align-items: center; gap: .5rem; min-width: 0; }
.admin-side-head .side-brand { margin: 0; flex: 1; }
.side-brand span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.side-logo { height: 32px; width: auto; max-width: 90px; object-fit: contain; background: #fff; border-radius: .5rem; padding: .15rem; }
.tiny-note { font-size: .82rem; color: var(--muted); font-weight: 600; }
.fieldset { border: 1px dashed var(--line); border-radius: 1rem; padding: 1rem; display: block; overflow: visible; }
.fieldset > legend { padding: 0 .4rem; font-weight: 800; }
.fieldset > *:not(legend) { margin-top: .7rem; }
.preview-img { max-height: 80px; width: auto; border-radius: .7rem; background: #fff; padding: .25rem; }
.preview-img-sm { max-height: 40px; }
.preview-wide { max-height: 110px; width: 100%; object-fit: contain; }
.gallery-keep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; }
.gallery-keep { display: grid; gap: .3rem; font-size: .8rem; }
.gallery-keep img { height: 80px; width: 100%; object-fit: cover; border-radius: .6rem; }
.gallery-keep input { width: auto; }
.sticky-save { position: sticky; bottom: 12px; background: rgba(255,255,255,.92); padding: .7rem; border-radius: 1rem; box-shadow: var(--shadow); }
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.copy-share.copied { color: var(--olive); }
.home-split { margin-top: 1.5rem; }
.split-card { margin-bottom: .8rem; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}
@media (prefers-reduced-motion: reduce) {
  .breaking-ticker { animation: none; }
}
.dash-hero {
  position: relative; overflow: hidden; border-radius: 1.6rem;
  padding: 1.5rem 1.6rem; margin-bottom: 1.15rem;
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(201,162,39,.22), transparent 60%),
    radial-gradient(360px 160px at 0% 100%, rgba(47,122,122,.18), transparent 55%),
    #fff;
  box-shadow: var(--shadow);
}
.dash-kicker { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; color: var(--olive); margin: 0 0 .45rem; }
.dash-hero h2 { margin: 0 0 .4rem; font-size: clamp(1.25rem, 2.4vw, 1.8rem); line-height: 1.35; }
.dash-hero p { margin: 0; color: var(--muted); }
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .9rem; margin-bottom: 1.15rem; }
.dash-stat {
  display: grid; gap: .35rem; padding: 1.1rem 1.15rem; border-radius: 1.25rem;
  color: #fff; min-height: 8rem; box-shadow: var(--shadow); transition: transform .2s ease;
}
.dash-stat:hover { transform: translateY(-3px); }
.dash-stat-icon { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; background: rgba(255,255,255,.18); border-radius: .8rem; }
.dash-stat-icon .icon { width: 1.2rem; height: 1.2rem; }
.dash-stat-label { font-weight: 700; opacity: .95; font-size: .9rem; }
.dash-stat strong { font-size: 2rem; line-height: 1; }
.dash-grid { display: grid; gap: 1rem; grid-template-columns: 1.05fr .95fr; }
@media (max-width: 960px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-panel { background: #fff; border-radius: 1.4rem; padding: 1.15rem 1.2rem 1.3rem; box-shadow: var(--shadow); }
.dash-panel h2 { margin: 0; font-size: 1.08rem; }
.dash-panel-head { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: 1rem; }
.dash-chip { width: 2.2rem; height: 2.2rem; border-radius: .8rem; display: grid; place-items: center; color: #fff; flex: none; }
.dash-bars, .dash-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.dash-bars li { display: grid; grid-template-columns: 7.2rem 1fr 2.4rem; gap: .55rem; align-items: center; }
.dash-rank li { display: grid; grid-template-columns: 1.8rem 1fr 2.6rem; gap: .55rem; align-items: center; }
.dash-bar-label { font-size: .78rem; color: var(--muted); }
.dash-bar-track { height: .55rem; background: #eef2ef; border-radius: 999px; overflow: hidden; display: block; }
.dash-bar-track.slim { height: .4rem; margin-top: .35rem; }
.dash-bar-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(270deg, var(--olive), var(--teal)); }
.dash-bar-value { font-weight: 800; font-size: .85rem; }
.dash-rank-n {
  width: 1.6rem; height: 1.6rem; border-radius: 50%; background: rgba(61,107,69,.12);
  color: var(--olive); display: grid; place-items: center; font-weight: 800; font-size: .78rem;
}
.dash-rank-body a { font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 800px) {
  .primary-nav, .cat-bar { display: none; }
  .mobile-toggle { display: inline-flex; }
  .mobile-drawer:not([hidden]) { display: block; }
  .btn-label { display: none; }
  .news-card-featured, .news-card-featured-overlay { min-height: 16rem; }
  .breaking-inner { gap: .55rem; }
  .breaking-track { min-width: 0; }
  .breaking-ticker { gap: 1rem; }
  .breaking-item { gap: .38rem; }
  .breaking-ticker a { font-size: .82rem; font-weight: 700; }
  .breaking-mark { font-size: .58rem; padding: .06rem .36rem; }
}
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .admin-menu-open, .admin-menu-close { display: inline-flex; color: var(--ink); background: #fff; }
  .admin-menu-close { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); }
  .admin-backdrop {
    display: none; position: fixed; inset: 0; background: rgba(16, 24, 20, .55);
    z-index: 80; border: 0; padding: 0; margin: 0;
  }
  body.admin-nav-open .admin-backdrop { display: block; }
  body.admin-nav-open { overflow: hidden; }
  .admin-side {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto;
    width: min(18.5rem, 88vw); z-index: 90; min-height: 0;
    transform: translateX(110%); transition: transform .22s ease;
    box-shadow: none; overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  body.admin-nav-open .admin-side {
    transform: translateX(0);
    box-shadow: -18px 0 40px -18px rgba(0,0,0,.45);
  }
  .admin-top {
    position: sticky; top: 0; z-index: 30;
    margin: -1.2rem -1.2rem 1rem; padding: .85rem 1rem;
    background: rgba(243,244,246,.94); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .admin-main { padding: 1rem .85rem 1.4rem; }
  .admin-user { font-size: .82rem; white-space: normal; text-align: left; }
  .table-wrap { overflow: visible; background: transparent; box-shadow: none; }
  .table thead { display: none; }
  .table, .table tbody { display: block; width: 100%; }
  .table tr {
    display: block; background: #fff; border-radius: 1rem;
    box-shadow: var(--shadow); padding: .85rem 1rem; margin-bottom: .8rem;
  }
  .table td {
    display: grid; grid-template-columns: minmax(5.4rem, 34%) 1fr; gap: .45rem;
    align-items: start; padding: .45rem 0; border: 0;
    border-bottom: 1px dashed var(--line); text-align: right; word-break: break-word;
  }
  .table td:last-child { border-bottom: 0; padding-bottom: 0; }
  .table td::before {
    content: attr(data-label); font-weight: 800; color: var(--muted); font-size: .8rem; line-height: 1.5;
  }
  .table td.cell-title {
    font-weight: 800; grid-template-columns: 1fr;
    border-bottom: 1px solid var(--line); padding-bottom: .7rem; font-size: 1.02rem;
  }
  .table td.cell-title::before { display: none; }
  .table td.cell-actions, .table td:not([data-label]) { grid-template-columns: 1fr; }
  .table td.cell-actions::before { margin-bottom: .15rem; }
  .table td.cell-media { align-items: center; }
  .table-thumb { width: 88px; height: 64px; }
  .table-actions { width: 100%; }
  .table-actions .btn, .table-actions button, .table td.cell-actions > .btn {
    flex: 1 1 calc(50% - .35rem); justify-content: center; min-height: 2.7rem;
    min-width: 7.2rem; white-space: nowrap; overflow: visible; font-size: 16px;
    border-radius: .8rem; -webkit-appearance: none; appearance: none;
  }
  .table-actions form .btn, .table-actions form button { width: 100%; flex: 1 1 auto; }
  .table-edit input, .table-edit select { min-width: 0; width: 100%; font-size: 16px; }
  .table tr.table-new-row { border: 2px dashed rgba(61,107,69,.35); background: #f7faf7; }
  .table tr.table-new-row::before {
    content: "إضافة جديد"; display: block; font-weight: 800; color: var(--olive); margin-bottom: .45rem;
  }
  .toolbar { gap: .55rem; }
  .toolbar .btn { width: 100%; justify-content: center; }
  .toolbar-form { flex-direction: column; align-items: stretch; }
  .toolbar-form input, .toolbar-form input[type="file"] { width: 100%; }
  .form-actions { align-items: stretch; }
  .form-actions .btn {
    flex: 1 1 calc(50% - .4rem);
    justify-content: center;
    min-height: 2.7rem;
    white-space: normal;
    overflow: visible;
    line-height: 1.25;
    text-align: center;
  }
  .sticky-save { bottom: max(8px, env(safe-area-inset-bottom, 0px)); overflow: visible; }
  .table { overflow: visible; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .dash-stat { min-height: 6.4rem; padding: .9rem; }
  .dash-stat strong { font-size: 1.45rem; }
  .dash-bars li { grid-template-columns: 1fr auto; }
  .dash-bar-track { grid-column: 1 / -1; }
  .dash-hero { padding: 1.1rem; }
  input, textarea, select { font-size: 16px; }
  .login-wrap { padding: 1rem; }
}
@media (min-width: 801px) {
  .mobile-drawer { display: none !important; }
}
