@font-face { font-family: 'TD'; src: url('../assets/fonts/thmanyah-display-black.woff2') format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'TT'; src: url('../assets/fonts/thmanyah-text-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'TT'; src: url('../assets/fonts/thmanyah-text-medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'TT'; src: url('../assets/fonts/thmanyah-text-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'CG'; src: url('../assets/fonts/cormorant-garamond-600-latin.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root { --bg: #0f0507; --panel: #1a0b0e; --panel2: #221013; --line: rgba(255, 220, 214, .09); --line2: rgba(255, 220, 214, .16);
  --text: #f6ebea; --muted: #c4a9a8; --dim: #8f7473; --crimson: #8f1820; --red: #e8484f; --gold: #e6c88f; --acc: #e8484f; --ok: #5fd39a; }
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body { margin: 0; min-height: 100vh; font-family: 'TT', system-ui, sans-serif; color: var(--text); font-size: 15.5px; line-height: 1.6;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(143, 24, 32, .35), transparent 60%), var(--bg); }
a { color: inherit; } button, input, select { font: inherit; color: inherit; }
.ic { width: 20px; height: 20px; flex: none; } .ic.big { width: 44px; height: 44px; color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* الشريط العلوي */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px clamp(14px, 3vw, 28px);
  background: rgba(15, 5, 7, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 34px; } .brand span { display: grid; line-height: 1.2; } .brand b { font-family: 'TD'; font-size: 18px; } .brand small { color: var(--muted); font-size: 12px; }
.top-link { color: var(--muted); text-decoration: none; font-size: 14px; } .top-link:hover { color: var(--text); }

/* أزرار */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 0; border-radius: 12px; cursor: pointer; text-decoration: none; font-weight: 500;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line2); transition: background .2s, transform .2s; }
.btn:hover { background: rgba(255, 255, 255, .1); } .btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(180deg, #b0202b, var(--crimson)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 10px 24px -12px rgba(232, 72, 79, .8); color: #fff; }
.btn.ghost { background: transparent; } .btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; } .btn .ic { width: 18px; height: 18px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: 13px; background: rgba(255, 255, 255, .07); }
.chip .ic { width: 14px; height: 14px; }
.role-upload { background: rgba(230, 200, 143, .16); color: var(--gold); } .role-view { background: rgba(95, 211, 154, .14); color: var(--ok); } .role-admin { background: rgba(232, 72, 79, .18); color: #ff9aa0; }

/* صفحات عامة */
.center { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 24px 16px; }
.card { width: min(440px, 100%); padding: 32px 28px; border-radius: 24px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line2), 0 40px 80px -40px rgba(0, 0, 0, .8); text-align: center; display: grid; gap: 12px; justify-items: center; }
.card h1 { margin: 0; font-family: 'TD'; font-weight: 900; font-size: 30px; } .card p { margin: 0; color: var(--muted); }
.form label, .up label { display: grid; gap: 6px; width: 100%; text-align: start; font-size: 14px; color: var(--muted); }
input, select { width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 0; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px var(--line2); color: var(--text); }
.otp { text-align: center; letter-spacing: .4em; font-size: 24px; }
.err { min-height: 1.2em; margin: 0; color: #ff8a8f; font-size: 14px; }
.muted { color: var(--muted); }
.land-logo { height: 90px; } .land-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.loading { min-height: 60vh; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); } .loading .ic { width: 42px; height: 42px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* المساحة */
.space { padding-bottom: 60px; }
.sp-hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.sp-cover { position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 300px at 80% 0%, color-mix(in srgb, var(--acc) 35%, transparent), transparent 70%), linear-gradient(180deg, #24090e, var(--bg)); }
.sp-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .35; mask-image: linear-gradient(180deg, #000 30%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); }
.sp-head { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); flex-wrap: wrap; padding: clamp(22px, 4vw, 44px) clamp(16px, 4vw, 40px); max-width: 1280px; margin: auto; }
.sp-logo { height: clamp(72px, 10vw, 110px); width: auto; max-width: 44%; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .5)); }
.sp-id { flex: 1; min-width: 220px; } .sp-id h1 { margin: 0; font-family: 'TD'; font-weight: 900; font-size: clamp(28px, 4vw, 44px); line-height: 1.15; }
.sp-id p { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
.sp-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; max-width: 1280px; margin: 24px auto 0; padding: 0 clamp(16px, 4vw, 40px); }
.sp-nav { position: sticky; top: 76px; align-self: start; display: grid; gap: 4px; }
.sp-nav > button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 0 14px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; text-align: start; color: var(--muted); }
.sp-nav > button span { flex: 1; } .sp-nav > button em { font-style: normal; font-size: 13px; color: var(--dim); }
.sp-nav > button em.ok { color: var(--ok); }
.sp-nav > button:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.sp-nav > button[aria-current="true"] { background: color-mix(in srgb, var(--acc) 16%, transparent); color: #fff; box-shadow: inset 3px 0 0 var(--acc); }
.tpl { margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .03); font-size: 14px; }
.tpl summary { cursor: pointer; display: flex; align-items: center; gap: 8px; color: var(--gold); }
.tpl a { display: flex; justify-content: space-between; gap: 6px; padding: 7px 0; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); } .tpl a:hover { color: var(--text); }
.tpl a .ic { width: 15px; height: 15px; }

.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.sec-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-family: 'TD'; font-weight: 900; font-size: 26px; } .sec-head h2 .ic { width: 26px; height: 26px; color: var(--acc); }
.sec-head p { margin: 4px 0 0; color: var(--muted); }
.search { display: flex; align-items: center; gap: 8px; min-width: min(320px, 100%); padding: 0 12px; border-radius: 12px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px var(--line2); }
.search input { background: none; box-shadow: none; padding: 0; } .search .ic { color: var(--dim); }

/* بطاقات النماذج المطلوبة */
.reqs { display: grid; gap: 10px; }
.req { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.req-st { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); color: var(--dim); }
.req.has .req-st { background: rgba(95, 211, 154, .15); color: var(--ok); }
.req-tx b { display: block; font-weight: 700; } .req-tx p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.req-tx small { display: inline-block; margin-top: 4px; font-size: 12.5px; color: #ff9aa0; } .req.has .req-tx small { color: var(--ok); } .req.opt:not(.has) .req-tx small { color: var(--dim); }
.req-act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.req-files { grid-column: 1 / -1; display: grid; gap: 6px; padding-top: 10px; border-top: 1px dashed var(--line2); }

.rows { display: grid; gap: 6px; } .sub { margin: 24px 0 10px; font-size: 16px; color: var(--muted); }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); cursor: pointer; }
.row:hover { background: rgba(255, 255, 255, .06); } .row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; } .row small { color: var(--dim); font-size: 12.5px; white-space: nowrap; }
.dl { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; } .dl:hover { background: rgba(255, 255, 255, .08); color: var(--text); }

/* الوسائط */
.albums { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.album { min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; color: var(--muted); }
.album em { font-style: normal; font-size: 12.5px; color: var(--dim); margin-inline-start: 4px; } .album.on { background: color-mix(in srgb, var(--acc) 22%, transparent); color: #fff; box-shadow: inset 0 0 0 1px var(--acc); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.tile { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line2), 0 16px 30px -18px rgba(0, 0, 0, .9); }
.th { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: #160709; }
.th img, .th video { width: 100%; height: 100%; object-fit: cover; display: block; }
.th .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; } .th .play .ic { width: 38px; height: 38px; filter: drop-shadow(0 2px 8px #000); fill: rgba(255, 255, 255, .85); }
.ext { font-family: 'CG'; font-weight: 600; font-size: 24px; letter-spacing: .08em; color: var(--gold); }
.tile figcaption { padding: 8px 10px 10px; display: grid; } .tile b { font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tile small { color: var(--dim); font-size: 12px; }
.tile-act { position: absolute; top: 8px; inset-inline-start: 8px; display: flex; gap: 6px; opacity: 0; transition: opacity .2s; }
.tile:hover .tile-act, .tile:focus-within .tile-act { opacity: 1; }
.tile-act button { width: 32px; height: 32px; border: 0; border-radius: 9px; display: grid; place-items: center; background: rgba(10, 3, 5, .8); color: #fff; cursor: pointer; } .tile-act .ic { width: 16px; height: 16px; }
.drop-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.drop-card { display: grid; justify-items: center; gap: 6px; padding: 26px 16px; border: 1.5px dashed var(--line2); border-radius: 18px; background: rgba(255, 255, 255, .02); cursor: pointer; text-align: center; }
.drop-card:hover { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 8%, transparent); }
.drop-card .ic { width: 30px; height: 30px; color: var(--acc); } .drop-card span { color: var(--dim); font-size: 13px; }
.empty { display: grid; justify-items: center; gap: 6px; padding: 48px 16px; border-radius: 18px; border: 1.5px dashed var(--line); color: var(--dim); text-align: center; } .empty .ic { width: 36px; height: 36px; }

/* النوافذ */
dialog { border: 0; padding: 0; color: var(--text); background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(5, 1, 2, .78); backdrop-filter: blur(4px); }
.up { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); overflow: auto; display: grid; gap: 14px; padding: 22px; border-radius: 22px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line2), 0 40px 80px -30px #000; }
.up-h { display: flex; justify-content: space-between; align-items: center; } .up-h h2 { margin: 0; display: flex; gap: 8px; align-items: center; font-family: 'TD'; font-size: 22px; }
.up-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drop { display: grid !important; justify-items: center; gap: 4px; padding: 30px 16px; border: 1.5px dashed var(--line2); border-radius: 16px; cursor: pointer; text-align: center !important; color: var(--text) !important; }
.drop .ic { width: 34px; height: 34px; color: var(--acc); } .drop span { color: var(--dim); font-size: 13px; } .drop input { display: none; } .drop.over { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 10%, transparent); }
.up-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.up-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); font-size: 14px; }
.up-list b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; } .up-list small { color: var(--muted); }
.bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; } .bar i { display: block; height: 100%; width: 5%; background: var(--gold); transition: width .4s; }
.up-list li.ok small { color: var(--ok); } .up-list li.ok .bar i { background: var(--ok); } .up-list li.bad small { color: #ff8a8f; } .up-list li.bad .bar i { background: #ff8a8f; }
.up-note { margin: 0; display: flex; gap: 6px; align-items: center; color: var(--dim); font-size: 13px; } .up-note .ic { width: 15px; height: 15px; }
.lb-x { width: 40px; height: 40px; border: 0; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); cursor: pointer; color: var(--text); }
.lb { width: 100vw; height: 100vh; }
.lb[open] { display: grid; grid-template-rows: auto 1fr; background: rgba(8, 2, 4, .96); }
.lb-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.lb-top b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; } .lb-top small { color: var(--dim); flex: 1; }
.lb-stage { display: grid; place-items: center; padding: 16px; min-height: 0; } .lb-stage img, .lb-stage video { max-width: 100%; max-height: calc(100vh - 110px); border-radius: 10px; }
.lb-stage iframe { width: min(1000px, 100%); height: calc(100vh - 110px); border: 0; border-radius: 10px; background: #fff; }
.lb-nav { position: fixed; top: 50%; width: 48px; height: 48px; margin-top: -24px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; }
.lb-nav.prev { right: 14px; } .lb-nav.next { left: 14px; } .lb-nav.next .ic { transform: scaleX(-1); }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 100; padding: 10px 18px; border-radius: 12px; background: #1f2a22; color: #d9ffe9; box-shadow: 0 16px 30px -12px #000; animation: tin .3s; }
.toast.bad { background: #3a1216; color: #ffd1d4; } @keyframes tin { from { opacity: 0; transform: translate(-50%, 10px); } }

/* الإدارة */
.wrap { max-width: 1280px; margin: auto; padding: clamp(22px, 4vw, 44px) clamp(16px, 4vw, 40px); }
.ad-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.ad-head h1 { margin: 2px 0 4px; font-family: 'TD'; font-weight: 900; font-size: clamp(30px, 4vw, 44px); } .ad-head p { margin: 0; color: var(--muted); }
.eyebrow { color: var(--gold); font-size: 14px; } .ad-btns { display: flex; gap: 8px; }
.spaces { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.sp-card { display: grid; gap: 6px; padding: 18px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: transform .2s; }
.sp-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line2); } .sp-card.arch { opacity: .55; }
.sp-card-logo { height: 92px; display: grid; place-items: center; border-radius: 12px; background: #140709; } .sp-card-logo img { max-height: 72px; max-width: 90%; } .sp-card-logo .ic { width: 36px; height: 36px; color: var(--dim); }
.sp-card b { font-size: 17px; } .sp-card small { color: var(--dim); }
.ad-bar { max-width: 1280px; margin: 20px auto 0; padding: 0 clamp(16px, 4vw, 40px); display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; }
.ad-links { padding: 16px 18px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.ad-links h3 { margin: 0 0 10px; display: flex; gap: 8px; align-items: center; font-size: 17px; }
.ad-links ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.ad-links li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--line); } .ad-links li small { color: var(--dim); flex: 1; }
.ad-new { display: grid; grid-template-columns: minmax(0, 1fr) 140px auto auto; gap: 8px; }
.new-link { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(230, 200, 143, .08); box-shadow: inset 0 0 0 1px rgba(230, 200, 143, .3); display: grid; gap: 8px; }
.new-link p { margin: 0; font-size: 14px; } .new-link code { display: block; overflow-wrap: anywhere; font-size: 13px; color: var(--gold); }
.ad-ops { display: grid; gap: 8px; }

@media (max-width: 860px) {
  .sp-body { grid-template-columns: 1fr; margin-top: 14px; }
  .sp-nav { position: sticky; top: 58px; z-index: 5; display: flex; overflow-x: auto; gap: 6px; padding: 8px 0; background: var(--bg); scrollbar-width: none; }
  .sp-nav > button { flex: none; width: auto; min-height: 40px; border-radius: 999px; background: rgba(255, 255, 255, .05); }
  .sp-nav > button[aria-current="true"] { box-shadow: inset 0 0 0 1px var(--acc); }
  .tpl { flex: none; margin: 0; padding: 0 12px; display: flex; align-items: center; } .tpl[open] { display: block; position: absolute; inset-inline: 0; top: 100%; background: var(--panel); }
  .ad-bar, .ad-new { grid-template-columns: 1fr; } .up-row { grid-template-columns: 1fr; }
  .req { grid-template-columns: auto 1fr; } .req-act { grid-column: 1 / -1; justify-content: flex-start; }
  .row { grid-template-columns: auto minmax(0, 1fr) auto auto; } .row small { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.btn.danger { color: #ff8a8f; } .btn.danger:hover { background: rgba(232, 72, 79, .14); }
.ad-f { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }

/* ===== الرئيسية: مجلدات المبادرات مثل Drive، بستايل أصيل الجراحي ===== */
body { background: radial-gradient(1100px 520px at 85% -8%, rgba(143, 24, 32, .42), transparent 60%), radial-gradient(800px 420px at 5% 110%, rgba(90, 12, 22, .35), transparent 60%), var(--bg); }
.drive { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.folder-card { position: relative; display: grid; grid-template-rows: 128px auto; overflow: hidden; border-radius: 18px; text-decoration: none; isolation: isolate;
  background: linear-gradient(160deg, #2a0c11, #160608 70%); box-shadow: inset 0 0 0 1px var(--line), 0 18px 34px -22px rgba(0, 0, 0, .9); transition: transform .25s, box-shadow .25s; }
.folder-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--acc), transparent); opacity: .7; }
.folder-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 45%, transparent), 0 24px 40px -22px color-mix(in srgb, var(--acc) 55%, #000); }
.fc-art { display: grid; place-items: center; padding: 14px; background: radial-gradient(260px 120px at 50% 0%, color-mix(in srgb, var(--acc) 22%, transparent), transparent 70%); }
.fc-art img { max-width: 92%; max-height: 98px; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .5)); }
.fc-tx { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: center; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.fc-tx .ic { grid-row: span 2; color: var(--gold); width: 22px; height: 22px; }
.fc-tx b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fc-tx small { color: var(--dim); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-card em { position: absolute; top: 10px; inset-inline-start: 10px; font-style: normal; font-size: 12px; padding: 2px 9px; border-radius: 999px; background: rgba(10, 3, 5, .7); color: var(--gold); }
.ad-head .search { min-width: min(320px, 100%); }
.eyebrow { letter-spacing: .02em; }
@media (max-width: 560px) { .drive { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .folder-card { grid-template-rows: 96px auto; } .fc-art img { max-height: 70px; } }

/* ===== الرئيسية مقسّمة بأقسام الخطة السنوية، كلها في صفحة واحدة ===== */
.prog-jump { position: sticky; top: 58px; z-index: 6; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: -6px 0 22px; padding: 8px 0; background: linear-gradient(var(--bg) 70%, transparent); }
.prog-jump a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px; color: var(--text, #f6ecea);
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 40%, transparent); }
.prog-jump a:hover { background: color-mix(in srgb, var(--acc) 14%, transparent); }
.prog-jump i { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc); }
.prog-jump small { font-weight: 400; color: var(--dim); }
.prog { scroll-margin-top: 120px; margin-bottom: 44px; }
.prog-h { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 0 0 14px; margin-bottom: 18px; border-bottom: 1px solid color-mix(in srgb, var(--acc) 35%, transparent); }
.prog-no { font: 600 14px/1 ui-monospace, monospace; color: var(--acc); width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--acc) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 40%, transparent); }
.prog-h h2 { margin: 0; font-family: 'TD'; font-weight: 900; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; }
.prog-h small { color: color-mix(in srgb, var(--acc) 70%, #fff); font-size: 13px; }
.prog-n { color: var(--dim); font-size: 13px; white-space: nowrap; }
.grp + .grp { margin-top: 22px; }
.grp-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; font-size: 17px; font-weight: 700; }
.grp-h i { align-self: center; width: 4px; height: 18px; border-radius: 4px; background: var(--acc); box-shadow: 0 0 10px var(--acc); }
.grp-h small { color: var(--dim); font-weight: 400; font-size: 12.5px; }
@media (max-width: 560px) { .prog-h { grid-template-columns: auto 1fr; } .prog-n { grid-column: 2; } }
.grp + .grp { margin-top: 0; }
.grps { display: grid; gap: 26px; }
@media (min-width: 1100px) {
  .grps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 14px; grid-auto-flow: dense; }
  .grp { grid-column: span min(var(--n), 4); }
  .grp .drive { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
}

/* مساحة الملفات ومشاركة المجلدات */
.sp-body.scoped { grid-template-columns: minmax(0, 1fr); max-width: 1020px; }
.role-contribute { background: #2b2420; color: var(--gold); }
.library-actions, .library-trail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 0 16px; }
.library-trail { color: var(--muted); font-size: 14px; }
.library-trail button::after { content: '/'; margin-inline-start: 8px; color: var(--dim); }
.library-trail [aria-current] { color: var(--text); }
.library-folders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(175px, 100%), 1fr));
  gap: 8px;
  margin-block: 0 18px;
}
.library-folder {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--line2);
  border-radius: 11px;
  background: var(--panel);
  text-align: start;
  cursor: pointer;
}
.library-folder:hover { background: var(--panel2); }
.library-folder .ic { color: var(--gold); }
.library-folder span { overflow-wrap: anywhere; }
.file-preview {
  padding: 0;
  overflow: hidden;
  border: 0;
  background: none;
  color: var(--text);
  text-align: start;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.file-preview:hover { text-decoration: underline; text-underline-offset: 3px; }
.row { grid-template-columns: auto minmax(0, 1fr) repeat(4, auto); }
.up .form-error { margin: 0; color: #ff9aa0; font-size: 14px; }
.form-error:empty, .share-output:empty { display: none; }
.share-output { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.share-output label { flex: 1 1 240px; min-width: 0; }
.up button:disabled { opacity: .55; cursor: wait; }
.up [hidden] { display: none; }

@media (max-width: 680px) {
  .row { grid-template-columns: auto minmax(0, 1fr) repeat(3, auto); gap: 6px; padding-inline: 8px; }
  .library-actions .btn, .library-trail .btn { min-height: 42px; }
}
@media (hover: none) {
  .tile .tile-act { opacity: 1; }
}
