/* Admin panel: tidy tabs, consistent cards, forms and buttons (scoped with :has(#ag) so nothing else changes) */
#at{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px!important;margin:12px 0 6px!important;padding:0!important;overflow:visible!important}
#at .chip{width:100%;max-width:none;min-height:42px;height:auto;padding:5px 6px!important;display:flex;align-items:center;justify-content:center;border-radius:13px!important;font-size:12.5px!important;font-weight:700;white-space:normal;line-height:1.15;text-align:center;overflow:hidden;background:rgba(255,255,255,.06)!important;border:1px solid var(--stroke)!important;color:var(--muted)!important}
#at .chip.on{background:linear-gradient(135deg,var(--accent),#0a63d6)!important;border-color:transparent!important;color:#fff!important;box-shadow:0 6px 16px rgba(30,139,255,.32)}
@media (min-width:640px){#at{grid-template-columns:repeat(5,minmax(0,1fr))}}
body:has(#ag) .card{border-radius:18px;padding:16px;margin:0 0 12px}
body:has(#ag) .card h3,body:has(#ag) .card h2{font-family:var(--fd);margin:0 0 10px;font-size:16px}
body:has(#ag) .btn{min-height:44px;border-radius:13px;font-weight:800;padding:0 16px}
body:has(#ag) .btn.sm{min-height:36px;padding:0 12px;font-size:13px;border-radius:11px}
body:has(#ag) .btn.ghost{background:rgba(255,255,255,.07);border:1px solid var(--stroke);color:var(--text)}
body:has(#ag) .btn.danger,body:has(#ag) .btn.red{background:rgba(255,93,108,.16);border:1px solid rgba(255,93,108,.5);color:#ff8f9a}
body:has(#ag) .btn.block{width:100%}
body:has(#ag) .input,body:has(#ag) select.input,body:has(#ag) textarea.input{min-height:44px;border-radius:13px;background:rgba(0,0,0,.28);border:1px solid var(--stroke);padding:0 12px;width:100%}
body:has(#ag) textarea.input{padding:10px 12px;min-height:84px}
body:has(#ag) .field,body:has(#ag) label.field{display:block;margin:10px 0}
body:has(#ag) .field>span,body:has(#ag) label>span{display:block;font-size:12px;color:var(--muted);margin-bottom:4px;font-weight:700}
body:has(#ag) .muted{font-size:12.5px;line-height:1.5}
body:has(#ag) .row,body:has(#ag) .kv>div{gap:10px}
body:has(#ag) .chips .chip:not(.sub){padding:8px 14px;border-radius:12px}
body:has(#ag) table{display:block;overflow-x:auto;width:100%;border-collapse:collapse}
body:has(#ag) th,body:has(#ag) td{padding:8px 8px;white-space:nowrap;border-bottom:1px solid var(--stroke)}
body:has(#ag) input[type=checkbox]{width:22px;height:22px;accent-color:var(--accent)}
body:has(#ag) hr{border:0;border-top:1px solid var(--stroke);margin:14px 0}
body:has(#ag) .ga-sec .gx-go{margin-top:14px;padding:13px;font-size:15px}
body:has(#ag) .ga-grid{grid-template-columns:1fr 1fr}
@media (max-width:380px){body:has(#ag) .ga-grid{grid-template-columns:1fr}}
