:root {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    color: #242033;
    background: #faf9fe;
    --accent: #5f39db;
    --border: #e4dff0;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, a { touch-action: manipulation; }
a { color: #5637ab; }
button { cursor: pointer; }
button:disabled { cursor: default; background: #e9e4f2; color: #655a77; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 3px solid #a084f8;
    outline-offset: 3px;
}
.wrap { max-width: 1060px; margin: auto; padding: 24px; }
header { background: white; border-bottom: 1px solid var(--border); }
.top, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.top { justify-content: space-between; }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; color: #242033; font-weight: 750; }
.brand small { font-size: 11px; font-weight: 400; }
.mark { width: 36px; height: 36px; display: grid; place-items: center; color: white; border-radius: 10px; background: linear-gradient(135deg, #7c3aed, #4338ca); }
.intro { padding: 28px 0; max-width: 730px; }
.eyebrow { color: #5637ab; font-size: 12px; font-weight: 650; }
h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.13; letter-spacing: -.04em; margin: 14px 0; }
h2 { font-size: 22px; letter-spacing: -.025em; }
h3 { font-size: 16px; margin: 0 0 8px; }
p { color: #5a536b; line-height: 1.65; }
.notice { padding: 16px; border: 1px solid #ded2fa; background: #f2edfe; border-radius: 10px; color: #504169; line-height: 1.6; }
nav { display: flex; flex-wrap: wrap; gap: 12px; padding: 24px 0; }
nav a { padding: 10px 12px; border-radius: 8px; background: white; }
.panel { border: 1px solid var(--border); background: white; border-radius: 14px; padding: 24px; margin: 24px 0; scroll-margin-top: 20px; }
.button { border: 0; border-radius: 8px; padding: 12px 16px; min-height: 44px; color: white; background: linear-gradient(135deg, #7c3aed, #4338ca); text-decoration: none; font-weight: 650; font-size: 14px; display: inline-block; }
.secondary { border: 1px solid var(--border); color: #4f3476; background: white; }
.field { display: grid; gap: 8px; margin: 18px 0; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
input, textarea, select { padding: 12px; width: 100%; border: 1px solid #cec4df; border-radius: 8px; background: white; color: inherit; }
textarea { font-family: ui-monospace, monospace; font-size: 13px; resize: vertical; }
.actions { margin-top: 14px; }
.fields { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; }
input[type=color] { height: 48px; }
.record { padding: 18px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.record:last-child { border: 0; }
.record p { margin: 6px 0; }
.pill { display: inline-block; font-size: 12px; color: #504169; background: #f2edfe; padding: 5px 9px; border-radius: 6px; }
.pill.blocked { background: #fff0ed; color: #9b342b; }
.status { min-height: 26px; margin: 14px 0; color: #504169; line-height: 1.6; }
.muted { color: #6b627b; font-size: 12px; font-weight: 400; }
.stars { color: #5f39db; letter-spacing: .08em; }
.histogram { display: grid; gap: 6px; max-width: 250px; margin: 16px 0; font-size: 14px; }
footer { font-size: 12px; color: #6b627b; padding-bottom: 48px !important; }
@media (max-width: 640px) {
    .wrap { padding: 18px; }
    .panel { padding: 18px; }
    .fields { grid-template-columns: 1fr; gap: 0; }
    header a:last-child { font-size: 12px; }
    .brand small { display: none; }
    .actions .button { width: 100%; }
}
