#tabs.admin-module-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,160px),190px));justify-content:start;gap:16px;margin:18px 0 22px}
#tabs .admin-module-card{width:100%;max-width:190px;aspect-ratio:1/1;height:auto;min-height:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:12px;padding:clamp(14px,2vw,20px);background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:18px;text-align:right;box-shadow:0 8px 22px #21145b12,0 2px 5px #21145b08;white-space:normal;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease,background .2s ease}
#tabs .admin-module-card:hover{transform:translateY(-5px);border-color:#c9bfea;box-shadow:0 18px 34px #21145b20,0 5px 12px #21145b10;background:#fdfcff}
#tabs .admin-module-card[aria-pressed="true"]{border-color:var(--brand);background:linear-gradient(135deg,#f5f2ff,#fff);box-shadow:0 0 0 2px #21145b12,0 10px 25px #21145b10}
.admin-module-icon{width:50px;height:50px;display:grid;place-items:center;border-radius:15px;background:#f2effb;color:var(--brand);font-family:var(--font-ar);font-size:23px;font-weight:800}
.admin-module-card[aria-pressed="true"] .admin-module-icon{background:var(--brand);color:#fff}
.admin-module-copy{min-width:0;display:grid;gap:6px}.admin-module-copy strong{font-size:14px;line-height:1.6;color:var(--brand)}.admin-module-copy small{font-size:11px;line-height:1.55;color:var(--muted);font-weight:500}
.admin-module-card>span:last-child{align-self:flex-end;color:#9992b0;font-size:20px;transition:transform .2s,color .2s}.admin-module-card:hover>span:last-child{transform:translateX(-4px);color:var(--brand)}
.admin-shortcuts{position:static;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,145px),190px));justify-content:start;align-items:stretch;gap:10px;overflow:visible;margin:4px 0 20px;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;scrollbar-width:auto}
.admin-shortcuts a{width:100%;max-width:190px;min-height:78px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:7px;padding:12px 15px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--brand);box-shadow:0 5px 18px #21145b0a;text-decoration:none;font-size:12px;font-weight:800;transition:transform .18s,border-color .18s,box-shadow .18s}
.admin-shortcuts a::before{content:'◈';display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:#f2effb;color:var(--brand);font-size:16px}
.admin-shortcuts a:nth-child(2)::before{content:'▦'}.admin-shortcuts a:nth-child(3)::before{content:'⌂'}.admin-shortcuts a:nth-child(4)::before{content:'↗'}.admin-shortcuts a:nth-child(5)::before{content:'▤'}
.admin-shortcuts a:hover{transform:translateY(-2px);border-color:#c9bfea;background:#fff;box-shadow:0 12px 24px #21145b14}
body.site-admin-mode #admin-shortcuts{grid-template-columns:repeat(auto-fill,minmax(min(100%,155px),180px));gap:14px}
body.site-admin-mode #admin-shortcuts a{width:100%;max-width:180px;min-height:0;aspect-ratio:1/1;justify-content:space-between;padding:17px;border-radius:17px;box-shadow:0 8px 22px #21145b12,0 2px 5px #21145b08}
body.site-admin-mode #admin-shortcuts a::before{width:46px;height:46px;border-radius:14px;font-size:21px}
body.site-admin-mode #admin-shortcuts a:hover{transform:translateY(-5px);box-shadow:0 18px 34px #21145b20,0 5px 12px #21145b10}
body.site-admin-mode #admin-shortcuts a:focus-visible{outline:3px solid #8f7bd0;outline-offset:3px}
@media(max-width:640px){#tabs.admin-module-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,140px),1fr));gap:10px}#tabs .admin-module-card{max-width:none;padding:12px;gap:8px;border-radius:15px}.admin-module-icon{width:40px;height:40px;font-size:19px}.admin-module-copy strong{font-size:12px}.admin-module-copy small{font-size:9px}.admin-shortcuts{grid-template-columns:repeat(auto-fill,minmax(min(100%,135px),1fr));gap:8px}.admin-shortcuts a{max-width:none;min-height:72px;padding:10px;font-size:11px}body.site-admin-mode #admin-shortcuts{grid-template-columns:repeat(auto-fill,minmax(min(100%,135px),1fr));gap:9px}body.site-admin-mode #admin-shortcuts a{max-width:none;min-height:0;padding:13px;border-radius:15px}body.site-admin-mode #admin-shortcuts a::before{width:40px;height:40px;font-size:19px}}
@media(prefers-reduced-motion:reduce){#tabs .admin-module-card,.admin-shortcuts a{transition:none}#tabs .admin-module-card:hover,.admin-shortcuts a:hover{transform:none}}

.admin-page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:10px 0 18px;padding:20px 22px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(120deg,#fff,#f7f4ff);box-shadow:var(--shadow)}
.admin-page-heading>a{flex:0 0 auto;text-decoration:none;font-weight:800}
.admin-page-heading h1{margin:4px 0;font-size:clamp(22px,3vw,32px)}
.admin-page-heading p{margin:4px 0 0}
@media(max-width:600px){.admin-page-heading{align-items:flex-start;flex-direction:column;padding:16px}.admin-page-heading>a{order:2}}
