:root { color-scheme: light; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { margin: 0; background: #f4f7fb; color: #1f2937; }
a { color: #2563eb; }
.topbar { align-items: center; background: #111827; color: #fff; display: flex; justify-content: space-between; padding: 1rem 2rem; }
.topbar a { color: #dbeafe; margin-left: 1rem; text-decoration: none; }
.container { margin: 0 auto; max-width: 1180px; padding: 2rem; }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 2rem; }
.cards article, .panel, table, .login-box { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; box-shadow: 0 10px 30px rgba(15, 23, 42, .06); padding: 1.25rem; }
.cards span { color: #64748b; display: block; font-size: .9rem; }
.cards strong { display: block; font-size: 2rem; margin-top: .5rem; }
table { border-collapse: collapse; overflow: hidden; padding: 0; width: 100%; }
th, td { border-bottom: 1px solid #e5e7eb; padding: .85rem; text-align: left; vertical-align: top; }
th { background: #f8fafc; color: #475569; font-size: .85rem; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
label { display: grid; font-weight: 600; gap: .4rem; margin-bottom: 1rem; }
input, select, textarea { border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; padding: .75rem; }
textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
button, .button { background: #2563eb; border: 0; border-radius: 10px; color: #fff; cursor: pointer; display: inline-block; font-weight: 700; padding: .75rem 1rem; text-decoration: none; }
button:hover, .button:hover { background: #1d4ed8; }
.secondary { background: #475569; }
.filters { align-items: end; display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.filters label { margin-bottom: 0; }
.badge { background: #e0f2fe; border-radius: 999px; color: #075985; display: inline-block; font-size: .85rem; padding: .25rem .65rem; }
.alert { border-radius: 12px; margin-bottom: 1rem; padding: 1rem; }
.error { background: #fee2e2; color: #991b1b; }
.success { background: #dcfce7; color: #166534; }
.help { color: #64748b; }
.website-selector { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 1rem; max-height: 260px; overflow: auto; padding: 1rem; }
.website-selector label { font-weight: 500; grid-template-columns: auto 1fr; justify-content: start; }
.login-page { align-items: center; display: flex; justify-content: center; min-height: 100vh; }
.login-box { min-width: 340px; }
.html-editor { border: 1px solid #cbd5e1; border-radius: 12px; margin-bottom: 1rem; overflow: hidden; }
.html-editor-toolbar { background: #f8fafc; border-bottom: 1px solid #e2e8f0; display: flex; flex-wrap: wrap; gap: .35rem; padding: .5rem; }
.html-editor-toolbar button { background: #e2e8f0; color: #1f2937; font-size: .9rem; padding: .45rem .65rem; }
.html-editor-toolbar button:hover { background: #cbd5e1; }
.html-editor-canvas { background: #fff; min-height: 280px; outline: none; padding: 1rem; }
.html-source { border: 0; border-radius: 0; min-height: 280px; width: 100%; }
