:root { color-scheme: light; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: #15243a; background: #f0f4fa; font-size: 16px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: #215bd0; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #80a7ff; outline-offset: 3px; }
.topbar { min-height: 80px; padding: 20px max(24px, calc((100vw - 1160px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fff; border-bottom: 1px solid #dce4ef; }
.brand { font-size: 28px; font-weight: 800; letter-spacing: -.8px; color: #15243a; }
.brand:hover { text-decoration: none; }
.brand span { color: #265fd5; }
.brand small { font-size: 16px; color: #6a7a8e; font-weight: 500; letter-spacing: 0; }
.account { display: flex; gap: 20px; align-items: center; font-size: 14px; }
.account span { max-width: 220px; overflow-wrap: anywhere; }
.text-button { border: 0; padding: 6px 0; background: transparent; color: #215bd0; }
main { max-width: 1160px; margin: 0 auto; padding: 36px 24px 64px; }
h1 { font-size: clamp(28px, 3vw, 36px); line-height: 1.18; letter-spacing: -.8px; margin: 0 0 24px; }
h2 { font-size: 20px; line-height: 1.3; margin: 0 0 18px; letter-spacing: -.2px; }
p { line-height: 1.6; margin: 0 0 20px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; color: #547095; margin-bottom: 14px; }
.panel { padding: 28px; border: 1px solid #dce4ef; background: #fff; border-radius: 18px; box-shadow: 0 4px 18px #16304e05; }
.welcome { max-width: 680px; margin: 24px auto 0; padding: 40px; border-top: 4px solid #265fd5; }
.welcome h1 { max-width: 560px; }
.welcome > p:not(.eyebrow) { color: #52657d; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border: 1px solid #265fd5; border-radius: 10px; background: #265fd5; color: #fff; font-weight: 650; font-size: 15px; line-height: 1.4; text-align: center; text-decoration: none; }
.button:hover { background: #164dbb; text-decoration: none; }
.button.secondary { background: #fff; color: #265fd5; border-color: #c4d3eb; }
.button.secondary:hover { background: #edf3ff; }
.button.compact { min-height: 40px; padding: 9px 14px; }
.welcome > .button { margin: 8px 0 18px; }
.hint { font-size: 14px; line-height: 1.6; color: #60738b; margin: 8px 0 18px; }
.welcome-steps { margin: 28px 0 0; padding: 26px 0 0; border-top: 1px solid #e3eaf3; list-style: none; counter-reset: steps; display: grid; gap: 20px; }
.welcome-steps li { counter-increment: steps; display: grid; grid-template-columns: 32px 1fr; gap: 4px 12px; }
.welcome-steps li::before { content: counter(steps); grid-row: span 2; width: 30px; height: 30px; border-radius: 9px; background: #edf3ff; color: #265fd5; font-size: 14px; display: grid; place-items: center; font-weight: 700; }
.welcome-steps strong { font-size: 15px; }
.welcome-steps span { color: #60738b; font-size: 14px; line-height: 1.5; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.toolbar h1 { margin: 0; }
.toolbar .eyebrow { margin-bottom: 10px; }
.back { display: inline-block; font-size: 14px; margin-bottom: 12px; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.editor-grid > .panel:only-child { grid-column: 1 / -1; max-width: 780px; width: 100%; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; min-width: 0; }
label { display: block; font-size: 14px; font-weight: 650; margin-bottom: 9px; }
input:not([type=checkbox]), select, textarea { display: block; width: 100%; border: 1px solid #c5d1e1; border-radius: 9px; background: #fff; padding: 12px 13px; min-height: 46px; color: #15243a; }
input::placeholder { color: #7789a0; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: #265fd5; flex: 0 0 auto; }
.checks { display: flex; flex-wrap: wrap; gap: 24px; }
.checks label, .check-line { display: flex; align-items: center; gap: 8px; font-weight: 500; line-height: 1.5; }
hr { border: 0; border-top: 1px solid #e3eaf3; margin: 26px 0; }
.form-actions { display: flex; align-items: center; gap: 22px; margin-top: 28px; }
.alert { border: 1px solid transparent; border-radius: 12px; padding: 16px 20px; margin: 0 0 24px; font-size: 15px; line-height: 1.5; }
.alert.error { background: #fff0f0; color: #9a2938; border-color: #f0ced5; }
.alert.success { background: #eaf7f1; color: #21674b; border-color: #bedfce; }
.alert.warning { background: #fff5df; color: #805416; border-color: #ead5a8; }
.provider-fieldset { min-width: 0; padding: 0; border: 0; margin: 0 0 24px; }
.provider-fieldset legend { font-size: 15px; font-weight: 650; padding: 0; }
.provider-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.provider-card { display: flex; align-items: center; gap: 10px; border: 1px solid #c5d1e1; border-radius: 10px; padding: 12px; margin: 0; cursor: pointer; }
.provider-card:has(input:checked) { border-color: #265fd5; background: #f0f5ff; }
.provider-card span { min-width: 0; }
.provider-card strong, .provider-card small { display: block; }
.provider-card small { margin-top: 4px; font-size: 12px; font-weight: 400; color: #60738b; }
.provider-preview { display: flex; flex-wrap: wrap; gap: 8px; }
.provider-sample { display: inline-flex; align-items: center; padding: 9px 12px; border-radius: 8px; font-size: 13px; background: #265fd5; color: #fff; }
.provider-sample.pending { background: #edf0f5; color: #60738b; }
.duration-field { display: grid; grid-template-columns: minmax(100px, 160px) minmax(0, 1fr); align-items: center; gap: 16px; }
.duration-field output { font-size: 15px; color: #38516f; line-height: 1.5; }
.site-providers { color: #52657d; font-size: 13px; margin: 5px 0 0; }
@media (max-width: 420px) { .provider-grid { grid-template-columns: minmax(0, 1fr); } .duration-field { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.proof-panel { margin-bottom: 24px; border-left: 4px solid #dd9d29; }
.record { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px 20px; font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
code { font: 14px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.record code { padding: 4px 8px; background: #f0f4fa; border-radius: 6px; }
.integration .code { font: 13px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; background: #f4f7fc; resize: vertical; min-height: 176px; margin-bottom: 16px; }
dl { margin: 0 0 20px; }
dt { font-size: 14px; color: #60738b; margin-bottom: 5px; }
dd { margin: 0 0 16px; font-size: 15px; overflow-wrap: anywhere; }
.empty-state { padding: 54px 24px; text-align: center; }
.empty-state p { color: #60738b; }
.site-symbol { margin: 0 auto 18px; width: 56px; height: 56px; background: #edf3ff; color: #265fd5; border: 1px solid #d8e5ff; border-radius: 15px; display: grid; place-items: center; font-size: 28px; }
.site-list { padding: 0 24px; }
.site-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 150px auto; align-items: center; gap: 22px; padding: 24px 0; }
.site-row + .site-row { border-top: 1px solid #e3eaf3; }
.site-row h2 { font-size: 18px; margin-bottom: 7px; overflow-wrap: anywhere; }
.site-domain { margin: 0; color: #60738b; font-size: 14px; overflow-wrap: anywhere; }
.mode { font-size: 14px; color: #60738b; }
.badge { display: inline-flex; width: fit-content; padding: 6px 10px; border-radius: 7px; font-size: 13px; line-height: 1.4; font-weight: 600; }
.badge.pending { background: #fff2d8; color: #87581c; }
.badge.active { background: #e7f5ee; color: #21674b; }
.badge.disabled { background: #edf0f5; color: #52657d; }
.auth-panel, .error-page { max-width: 560px; margin: 32px auto; }
.auth-panel form .button { margin-top: 16px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 20px; color: #fff; background: #15243a; border-radius: 10px; font-size: 14px; display: none; }
.toast.visible { display: block; }
@media (max-width: 850px) { .editor-grid { grid-template-columns: minmax(0, 1fr); } .site-row { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; } .site-row .mode { grid-row: 2; } }
@media (max-width: 560px) { .topbar { min-height: 68px; padding: 16px 20px; } .account { gap: 12px; } .account span { max-width: 120px; } main { padding: 24px 16px 40px; } .panel, .welcome { padding: 24px 20px; border-radius: 14px; } .welcome { margin-top: 12px; } .toolbar { align-items: flex-start; flex-direction: column; } .form-grid { grid-template-columns: 1fr; gap: 0; } .record { grid-template-columns: minmax(0, 1fr); gap: 6px; } .record code { margin-bottom: 10px; } .checks { flex-direction: column; gap: 8px; } .integration .code { font-size: 14px; } .site-list { padding: 0 20px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
