:root { --bg:#f6f7fb; --card:#fff; --text:#1f2937; --muted:#6b7280; --line:#e5e7eb; --primary:#2563eb; --danger:#b91c1c; --ok:#15803d; --warn:#b45309; }
* { box-sizing:border-box; }
body { margin:0; font-family:Arial, Helvetica, sans-serif; background:var(--bg); color:var(--text); line-height:1.45; }
a { color:var(--primary); }
.wrap { max-width:1180px; margin:32px auto; padding:0 18px; }
.narrow { max-width:760px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:18px; box-shadow:0 1px 2px rgba(0,0,0,.04); margin-bottom:18px; }
h1,h2,h3 { line-height:1.15; }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:14px; }
.link-item h3 { margin:0 0 4px; font-size:18px; }
.link-item p { margin:8px 0 0; color:var(--muted); }
.meta { color:var(--muted); font-size:13px; word-break:break-all; }
.button, button { display:inline-block; border:0; background:var(--primary); color:#fff; padding:9px 12px; border-radius:8px; text-decoration:none; cursor:pointer; font-weight:700; }
.button.secondary, button.secondary { background:#374151; }
.button.danger, button.danger { background:var(--danger); }
.button.light { background:#e5e7eb; color:#111827; }
form.inline { display:inline; }
input, textarea, select { width:100%; padding:9px 10px; border:1px solid var(--line); border-radius:8px; font:inherit; background:#fff; }
textarea { min-height:88px; }
label { display:block; margin:10px 0 5px; font-weight:700; }
table { width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden; }
th, td { text-align:left; padding:10px; border-bottom:1px solid var(--line); vertical-align:top; }
th { background:#f3f4f6; font-size:13px; }
tr:last-child td { border-bottom:0; }
.badge { display:inline-block; padding:3px 8px; border-radius:999px; font-size:12px; font-weight:700; background:#e5e7eb; color:#374151; }
.badge.ok { background:#dcfce7; color:var(--ok); }
.badge.error { background:#fee2e2; color:var(--danger); }
.badge.warn { background:#fef3c7; color:var(--warn); }
.alert { border-radius:10px; padding:12px 14px; margin:12px 0; }
.alert.ok { background:#dcfce7; color:#14532d; }
.alert.error { background:#fee2e2; color:#7f1d1d; }
.topbar { display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content:space-between; margin-bottom:18px; }
.actions { display:flex; gap:6px; flex-wrap:wrap; }
.small { font-size:13px; color:var(--muted); }
