:root { font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #172033; background: #f5f7fa; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
.topbar { min-height: 64px; padding: 0 max(24px, calc((100vw - 1200px) / 2)); display: flex; align-items: center; gap: 24px; background: #fff; border-bottom: 1px solid #e4e8ef; }
.brand { font-weight: 750; letter-spacing: -.02em; margin-right: auto; }
.user-email, .muted { color: #667085; }
.container { max-width: 1200px; margin: 0 auto; padding: 40px 24px; }
h1 { font-size: 2rem; letter-spacing: -.035em; margin: 0 0 12px; }
h2 { margin-top: 0; }
.eyebrow { color: #667085; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.empty-state, .panel { background: #fff; border: 1px solid #e4e8ef; border-radius: 12px; padding: 32px; box-shadow: 0 1px 2px #1018280d; }
.empty-state { margin-top: 28px; text-align: center; }
.auth-shell { min-height: calc(100vh - 144px); display: grid; place-items: center; }
.panel { width: min(100%, 420px); display: grid; gap: 10px; }
.panel label { font-size: .875rem; font-weight: 650; margin-top: 6px; }
input { width: 100%; padding: 11px 12px; border: 1px solid #cfd6e2; border-radius: 8px; font: inherit; }
button { border: 0; border-radius: 8px; padding: 11px 16px; color: #fff; background: #2457d6; font: inherit; font-weight: 700; cursor: pointer; }
.panel button { margin-top: 12px; }
.link-button { color: #344054; background: transparent; padding: 6px; }
.validation { color: #b42318; font-size: .875rem; }
.page-heading, .form-actions, .actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.button { display: inline-block; border-radius: 8px; padding: 11px 16px; color: #fff; background: #2457d6; font-weight: 700; }
.button.secondary { color: #344054; background: #fff; border: 1px solid #cfd6e2; }
.filters { display: grid; grid-template-columns: 1fr 160px auto; gap: 10px; margin: 24px 0; }
select, textarea { padding: 11px 12px; border: 1px solid #cfd6e2; border-radius: 8px; font: inherit; background: #fff; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid #e4e8ef; border-radius: 12px; }
table { width: 100%; border-collapse: collapse; } th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #eef1f5; } th { color: #667085; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.strong-link { font-weight: 700; } .truncate { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { padding: 4px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700; } .badge.active { color: #067647; background: #ecfdf3; } .badge.inactive { color: #475467; background: #f2f4f7; }
.actions { justify-content: flex-end; } .actions form { margin: 0; }
.notice { margin: 16px 0; padding: 12px 14px; border-radius: 8px; color: #175cd3; background: #eff8ff; }
.form-panel { width: min(100%, 720px); margin-top: 24px; } .form-panel textarea { width: 100%; resize: vertical; }
.checkbox { display: flex !important; align-items: center; gap: 8px; } .checkbox input { width: auto; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 20px; margin-top: 24px; }.detail-panel, .danger-zone { width: auto; align-content: start; }
.qr-panel { width: auto; text-align: center; }.qr-panel img { width: min(100%, 320px); aspect-ratio: 1; }.download-actions { display: flex; justify-content: center; gap: 10px; }.download-actions a { padding: 8px 12px; border: 1px solid #cfd6e2; border-radius: 8px; font-weight: 700; }
dl { display: grid; grid-template-columns: 120px 1fr; gap: 12px; } dt { color: #667085; } dd { margin: 0; overflow-wrap: anywhere; }.public-url { display: block; padding: 12px; border-radius: 8px; background: #f5f7fa; overflow-wrap: anywhere; }.danger { background: #b42318; }
nav { display: flex; gap: 18px; }
.admin-panel { width: auto; margin-top: 20px; }
.copy-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }.copy-row .public-url { min-width: 0; }.toast { position: fixed; right: 20px; bottom: 20px; padding: 12px 16px; border-radius: 8px; color: #fff; background: #172033; box-shadow: 0 8px 24px #10182833; }.toast[hidden] { display: none; }
.stats-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }.stats-grid > div { display: grid; gap: 6px; padding: 18px; border: 1px solid #e4e8ef; border-radius: 10px; background: #fff; }.stats-grid span { color: #667085; font-size: .8rem; }.stats-grid strong { font-size: 1.6rem; }.dashboard-stats { margin-top: 24px; }.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }.dashboard-grid .panel { width: auto; }.simple-list { list-style: none; padding: 0; margin: 0; }.simple-list li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid #eef1f5; }.simple-list li:last-child { border: 0; } td small { display: block; color: #667085; margin-top: 4px; }
@media (max-width: 650px) { .container { padding: 28px 16px; } .topbar { padding: 0 16px; gap: 12px; } .user-email, nav { display: none; } }
@media (max-width: 750px) { .filters, .detail-grid { grid-template-columns: 1fr; } .page-heading { align-items: flex-start; } }
@media (max-width: 750px) { .stats-grid { grid-template-columns: 1fr 1fr; } .dashboard-grid { grid-template-columns: 1fr; } }
