:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #21162a;
  background: #f8effb;
  --ink: #21162a;
  --muted: #74627c;
  --surface: rgba(255, 253, 255, .94);
  --border: #e5cdea;
  --lavender: #f3e3f8;
  --violet: #70008f;
  --violet-dark: #560070;
  --magenta: #b400ca;
  --pink: #f5d2ee;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 10% 5%, #efd6fa 0, transparent 31%), radial-gradient(circle at 92% 94%, #f8cfe9 0, transparent 28%), linear-gradient(135deg, #fcf7fd, #f0e2f7); }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 56px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px max(16px, calc((100% - 1180px) / 2)); background: linear-gradient(110deg, var(--violet-dark), var(--violet) 56%, #9700ac); color: white; }
h1, h2, p { margin-top: 0; } h1 { margin-bottom: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); } h2 { margin-bottom: 18px; font-size: 1.2rem; }
.eyebrow { margin-bottom: 8px; color: var(--magenta); font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
.topbar .eyebrow { color: #ffd5f5; }
.card, .stat, .auth-card { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: 0 12px 32px rgba(92, 24, 107, .10); }
.card { margin-bottom: 20px; padding: 24px; } .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat { padding: 18px; } .stat span { display: block; color: var(--muted); font-size: .84rem; } .stat strong { display: block; margin-top: 8px; color: var(--violet-dark); font-size: 1.8rem; }
label { display: grid; grid-template-rows: 20px 22px 48px; gap: 7px; color: #493951; font-size: .86rem; font-weight: 700; } label .field-hint { min-height: 22px; } input { width: 100%; height: 48px; border: 1px solid #d9b9e0; border-radius: 9px; padding: 11px 12px; color: var(--ink); background: #fff; font: inherit; } input::placeholder { color: #a28aab; } input:focus { outline: 3px solid rgba(180, 0, 202, .17); border-color: var(--magenta); }
button { border: 0; border-radius: 9px; padding: 11px 15px; color: white; background: linear-gradient(105deg, var(--violet), var(--magenta)); box-shadow: 0 5px 12px rgba(112, 0, 143, .18); font: inherit; font-weight: 800; cursor: pointer; } button:hover { filter: brightness(1.06); } button.secondary { color: #5b216c; background: #f0dff5; box-shadow: none; } button.danger { background: #b62665; box-shadow: none; }
.add-form { display: grid; grid-template-columns: 1fr 1.4fr auto; align-items: start; gap: 14px; } .add-form button { align-self: end; } .actions { display: flex; flex-wrap: wrap; gap: 7px; } .actions button { padding: 8px 10px; font-size: .78rem; }
.table-wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; min-width: 780px; } th, td { padding: 13px 10px; border-bottom: 1px solid #eddcf0; text-align: left; vertical-align: middle; } th { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; } .sort-link { color: inherit; text-decoration: none; } .sort-link:hover, .sort-link.active { color: var(--magenta); } .sort-link span { display: inline-block; min-width: 1em; margin-left: 4px; font-size: .9rem; }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; } .muted { color: var(--muted); font-size: .86rem; font-weight: 400; } .ip { padding: 8px 10px; border-radius: 8px; color: #7a167f; background: #fae0f4; font-size: .78rem; } .download-button { display: inline-block; border-radius: 9px; padding: 8px 10px; color: #5b216c; background: #f0dff5; font-size: .78rem; font-weight: 800; text-decoration: none; }
.notice { margin-bottom: 16px; border-radius: 10px; padding: 12px 14px; } .notice.error { color: #8c2351; background: #fde6f0; } .notice.success { color: #671276; background: #f4ddf6; }
.success-card { border-color: #dea5e4; } code, pre { display: block; overflow-wrap: anywhere; white-space: pre-wrap; border-radius: 8px; padding: 12px; color: #4c1b5d; background: #f4e4f7; font-size: 1rem; }
.auth-page { display: grid; place-items: center; padding: 16px; } .auth-card { width: min(420px, 100%); padding: 32px; } .stack { display: grid; gap: 16px; } .auth-card button { width: 100%; margin-top: 4px; }
@media (max-width: 760px) { .topbar { align-items: start; padding: 22px 16px; } .stats-grid { grid-template-columns: repeat(2, 1fr); } .add-form { grid-template-columns: 1fr; } .section-heading { display: block; } .ip { display: inline-block; margin-top: 10px; } }
