:root { --bg:#f6f7fb; --card:#fff; --text:#172033; --muted:#667085; --border:#e4e7ec; --primary:#2563eb; --danger:#dc2626; }
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; background:var(--bg); color:var(--text); }
.topbar { height:64px; display:flex; align-items:center; justify-content:space-between; padding:0 24px; background:#fff; border-bottom:1px solid var(--border); position:sticky; top:0; z-index:2; }
.brand { color:var(--text); font-weight:800; text-decoration:none; font-size:20px; }
.container { max-width:1280px; margin:28px auto; padding:0 20px; }
.card { background:var(--card); border:1px solid var(--border); border-radius:18px; padding:24px; box-shadow:0 8px 24px rgba(16,24,40,.04); }
.narrow { max-width:520px; margin:80px auto; }
.center { text-align:center; }
h1 { margin:0 0 8px; font-size:30px; }
h2 { margin:16px 0; }
.muted { color:var(--muted); }
.small { font-size:12px; }
.hint { font-size:14px; color:var(--muted); margin-top:24px; }
.notice { padding:14px 16px; background:#eff6ff; border:1px solid #bfdbfe; border-radius:12px; margin:16px 0; }
.form { display:flex; flex-direction:column; gap:10px; max-width:420px; margin-top:18px; }
.form.compact { flex-direction:row; max-width:560px; }
input { height:42px; border:1px solid var(--border); border-radius:10px; padding:0 12px; font-size:15px; }
button, .button { border:0; background:var(--primary); color:#fff; border-radius:10px; padding:10px 16px; font-weight:700; cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; min-height:40px; }
.button.secondary { background:#111827; }
.button.ghost { background:#eef2ff; color:#1e40af; }
.linkbtn { background:transparent; color:var(--primary); padding:0; min-height:auto; }
.inline { display:inline; }
.login-widget { margin-top:24px; min-height:44px; }
.grid { display:grid; grid-template-columns: repeat(4, minmax(120px,1fr)); gap:14px; }
.limit-card { border:1px solid var(--border); border-radius:14px; padding:16px; }
.limit-title { color:var(--muted); font-weight:700; }
.limit-main { font-size:28px; font-weight:800; margin:8px 0; }
.actions-row { margin:22px 0; }
.page-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; margin-bottom:18px; }
.search { display:flex; gap:10px; margin:18px 0; }
.search input { flex:1; }
.table-wrap { overflow:auto; border:1px solid var(--border); border-radius:14px; }
table { width:100%; border-collapse:collapse; background:#fff; }
th, td { padding:14px; border-bottom:1px solid var(--border); text-align:left; vertical-align:middle; }
th { background:#f9fafb; color:#475467; font-size:13px; text-transform:uppercase; letter-spacing:.02em; }
tr:last-child td { border-bottom:0; }
.quota-cell { display:flex; align-items:center; gap:8px; }
.quota-cell form { margin:0; }
.quota-number { min-width:44px; text-align:center; font-weight:800; }
.mini { width:32px; height:32px; min-height:32px; border-radius:8px; padding:0; font-size:18px; }
.danger { background:var(--danger); }
.empty { text-align:center; color:var(--muted); padding:28px; }
code { background:#f2f4f7; padding:2px 6px; border-radius:6px; }
details { margin-top:16px; }
summary { cursor:pointer; color:var(--primary); font-weight:700; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(120px,1fr)); } .page-head { flex-direction:column; } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } .search { flex-direction:column; } .topbar { padding:0 14px; } .card { padding:16px; } }
