:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: #1f2937; background: #f7f8fa; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #f7f8fa; }
.center-page { display: grid; place-items: center; padding: 24px; }
.container { width: min(1120px, calc(100% - 32px)); margin: 32px auto; }
.panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 24px; margin-bottom: 18px; box-shadow: 0 2px 8px rgba(15,23,42,.04); }
.narrow { width: min(100%, 460px); }
h1, h2 { margin: 0 0 10px; color: #111827; }
h1 { font-size: 24px; } h2 { font-size: 18px; }
.muted { color: #6b7280; margin: 0 0 18px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.link { color: #2563eb; text-decoration: none; padding-top: 8px; }
label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0; }
input { width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid #d1d5db; border-radius: 6px; font: inherit; background: #fff; }
input:focus { border-color: #2563eb; outline: 2px solid rgba(37,99,235,.15); }
button { border: 0; border-radius: 6px; padding: 11px 18px; background: #2563eb; color: #fff; font: inherit; cursor: pointer; }
button:hover { background: #1d4ed8; }
details { margin: 18px 0; border-top: 1px solid #e5e7eb; padding-top: 14px; }
summary { cursor: pointer; color: #4b5563; font-size: 14px; }
.alert, .success { padding: 11px 13px; border-radius: 6px; margin-bottom: 16px; }
.alert { color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; }
.success { color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; }
.inline-form { display: flex; gap: 10px; align-items: end; }
.inline-form input { flex: 1; margin: 0; }
.stats { margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 18px 22px; display: inline-flex; gap: 18px; align-items: center; }
.stat span { color: #6b7280; } .stat strong { font-size: 28px; color: #111827; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #eef0f3; vertical-align: top; }
th { color: #6b7280; font-weight: 600; white-space: nowrap; }
.target-cell { max-width: 260px; word-break: break-all; }
@media (max-width: 640px) { .container { width: min(100% - 20px, 1120px); margin: 18px auto; } .panel { padding: 18px; } .topbar { display: block; } .inline-form { display: block; } .inline-form button { margin-top: 10px; width: 100%; } }
