:root {
    --bg: #f2f3f6;
    --surface: #fff;
    --sunken: #f6f7f9;
    --line: #dcdfe5;
    --text: #1c2028;
    --muted: #626a77;
    --ocean: #036b91;
    --ocean-deep: #075985;
    --ocean-soft: #edf8fc;
    --shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 14px rgba(16,24,40,.04);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--text); font: 15px/1.65 'Raleway', 'Segoe UI', system-ui, sans-serif; }
a { color: var(--ocean); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; letter-spacing: -.035em; }
h1 { font-size: clamp(30px, 4.2vw, 54px); }
h2 { font-size: clamp(23px, 2.4vw, 30px); }
h3 { font-size: 26px; }
p { margin: 0 0 18px; }
:focus-visible { outline: 3px solid #0d91be; outline-offset: 4px; }
.skip-link { position: absolute; top: -80px; left: 12px; padding: 12px; background: white; z-index: 10; }
.skip-link:focus { top: 8px; }
.header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1280px; min-height: 82px; margin: auto; padding: 10px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; flex-shrink: 0; }
.brand img { width: 292px; height: 64px; }
nav { display: flex; gap: 24px; align-items: center; font-weight: 600; font-size: 14px; }
nav a:not(.button) { color: var(--muted); }
nav a[aria-current] { color: var(--ocean); }
nav form { margin: 0; }
.header nav > a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; }
.header .text-button { min-height: 44px; padding: 8px 10px; border-radius: 6px; }
.header .text-button:hover { background: var(--ocean-soft); text-decoration: none; }
.text-button { border: 0; background: transparent; padding: 0; color: var(--ocean); font-weight: 600; }
.text-button:hover { text-decoration: underline; }
.main { width: min(1216px, 100%); margin: 0 auto; padding: 0 32px 64px; flex: 1; }
.hero { text-align: center; padding: 76px 12px 64px; }
.eyebrow { display: block; color: var(--ocean); font-size: 11px; letter-spacing: .16em; font-weight: 800; margin-bottom: 18px; }
.hero h1 { line-height: 1.13; margin-bottom: 22px; font-weight: 750; }
.hero h1 span { color: var(--ocean); }
.hero > p { color: var(--muted); font-size: 17px; line-height: 1.8; margin-bottom: 28px; }
.button-row { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 21px; min-height: 44px; background: var(--ocean); color: white; border: 1px solid var(--ocean); border-radius: 6px; font-size: 14px; font-weight: 650; text-align: center; line-height: 1.5; }
.button:hover { background: var(--ocean-deep); border-color: var(--ocean-deep); color: white; text-decoration: none; }
.button.secondary { background: white; color: var(--text); border-color: var(--line); }
.button.secondary:hover { border-color: var(--ocean); color: var(--ocean); }
.button.small { padding: 8px 16px; min-height: 38px; }
.button.full { width: 100%; }
.button.danger { color: #b42318; border-color: #e8bcb8; background: #fff5f4; }
.button.danger:hover { background: #ffe4e0; }
.hero-note { margin-top: 22px; color: var(--muted); font-size: 12px; display: flex; justify-content: center; gap: 8px; align-items: center; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ocean); }
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 24px; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading h2 { margin: 0; }
.section-heading > p { color: var(--muted); font-size: 13px; margin: 0 0 4px; }
.site-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.site-card { border: 1px solid var(--line); border-top: 3px solid var(--ocean); border-radius: 6px; box-shadow: var(--shadow); background: white; padding: 28px; display: flex; flex-direction: column; min-width: 0; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.site-icon { width: 48px; height: 48px; background: var(--ocean-soft); color: var(--ocean); border-radius: 10px; display: grid; place-items: center; }
.site-icon svg { width: 27px; height: 27px; }
.site-category { font-size: 10px; color: var(--muted); letter-spacing: .11em; font-weight: 700; }
.site-card h3 { margin-bottom: 3px; }
.site-domain { color: var(--ocean); font-size: 12px; margin-bottom: 20px; overflow-wrap: anywhere; }
.description { color: var(--muted); font-size: 14px; flex: 1; }
.features { list-style: none; padding: 0; margin: 0 0 26px; font-size: 13px; }
.features li { margin-bottom: 8px; }
.features span { color: var(--ocean); margin-right: 6px; }
.visit { width: 100%; justify-content: space-between; }
.link-banner { background: white; border: 1px solid var(--line); border-left: 3px solid var(--ocean); border-radius: 6px; padding: 32px 36px; display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 32px; }
.link-banner .eyebrow { margin-bottom: 10px; }
.link-banner h2 { font-size: 24px; margin-bottom: 10px; }
.link-banner p { color: var(--muted); font-size: 14px; margin: 0; }
.link-banner .button { flex-shrink: 0; }
.how-it-works { margin-top: 55px; }
.how-it-works > h2 { font-size: 22px; margin-bottom: 28px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.steps > div { border-top: 1px solid var(--line); padding-top: 20px; }
.steps span { color: var(--ocean); font-size: 12px; font-weight: 700; }
.steps h3 { font-size: 16px; letter-spacing: -.01em; margin: 8px 0; }
.steps p { color: var(--muted); font-size: 13px; }
.footer { border-top: 1px solid var(--line); padding: 30px max(32px, calc((100vw - 1152px) / 2)); background: white; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { font-weight: 750; letter-spacing: .02em; }
.footer-brand span { font-weight: 400; }
.footer p { font-size: 11px; color: var(--muted); margin: 4px 0 0; }
.footer-links { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; font-size: 12px; }
.footer-links a { color: var(--muted); }
.footer .copyright { width: 100%; }
.notice { padding: 14px 18px; border: 1px solid var(--line); border-radius: 6px; margin: 24px 0; font-size: 14px; background: white; }
.notice.error { color: #a32020; border-color: #e8bcb8; background: #fff5f4; }
.notice.success { color: #17652e; border-color: #badcc5; background: #f0faf3; }
.notice.info { color: var(--ocean-deep); background: var(--ocean-soft); border-color: #bedde9; }
.form-panel { max-width: 480px; margin: 52px auto 20px; padding: 32px; border: 1px solid var(--line); border-top: 3px solid var(--ocean); border-radius: 6px; background: white; box-shadow: var(--shadow); }
.form-panel h1 { font-size: 29px; }
.form-panel .eyebrow { margin-bottom: 12px; }
.back-link { display: block; margin-bottom: 28px; font-size: 12px; }
.muted { color: var(--muted); }
label { display: block; font-size: 13px; font-weight: 650; margin: 0 0 18px; }
input:not([type=hidden]):not([type=checkbox]) { display: block; width: 100%; border: 1px solid #cbd0d8; border-radius: 5px; padding: 11px 12px; color: var(--text); background: white; margin-top: 6px; min-width: 0; }
input:focus { border-color: var(--ocean); }
label small { display: block; font-weight: 400; color: var(--muted); margin-top: 4px; font-size: 11px; }
.checkbox { display: flex; gap: 10px; font-weight: 400; align-items: start; }
.checkbox input { margin-top: 5px; accent-color: var(--ocean); flex-shrink: 0; }
.form-meta { margin: -6px 0 22px; font-size: 12px; text-align: right; }
.form-foot { margin: 22px 0 0; font-size: 13px; text-align: center; color: var(--muted); }
.cancel-form { text-align: center; margin-top: 20px; font-size: 13px; }
.identity { padding: 14px 18px; margin-bottom: 16px; background: var(--sunken); border: 1px solid var(--line); border-radius: 6px; overflow-wrap: anywhere; }
.identity span, .identity strong, .identity small { display: block; }
.identity span, .identity small { color: var(--muted); font-size: 12px; }
.identity strong { font-size: 18px; }
.account-heading { padding-top: 48px; }
.account-heading h1 { font-size: 34px; }
.account-heading p { color: var(--muted); }
.account-grid .site-card h2 { font-size: 23px; }
.account-grid .site-card > p { font-size: 14px; overflow-wrap: anywhere; }
.account-grid .site-card > .button { margin-top: auto; }
.badge { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 20px; padding: 4px 10px; background: var(--sunken); }
.badge.connected { background: #f0faf3; border-color: #badcc5; color: #17652e; }
.unlink { margin-top: 22px; font-size: 13px; }
.unlink summary { color: #a32020; }
.unlink form { padding-top: 16px; }
.small-text { font-size: 12px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 32px; align-items: start; }
.password-choice { margin-top: 32px; }
.password-alignment { margin-top: 18px; }
.password-alignment summary { color: var(--ocean); font-weight: 600; }
.password-alignment > p { margin-top: 16px; }
.password-sites { padding-left: 24px; }
.password-sites li { margin-bottom: 12px; }
.panel { background: white; padding: 28px; border: 1px solid var(--line); border-radius: 6px; }
.panel h2 { font-size: 22px; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.admin-stats strong { display: block; font-size: 30px; color: var(--ocean); }
.admin-stats span { font-size: 13px; color: var(--muted); }
.admin-section { margin-top: 32px; }
.admin-readiness { padding-left: 20px; }
.admin-readiness li { margin-bottom: 12px; }
.admin-search { display: flex; align-items: end; gap: 16px; flex-wrap: wrap; }
.admin-search label { flex: 1; min-width: 180px; margin: 0; }
.admin-users { display: grid; gap: 18px; }
.admin-user-heading { display: flex; align-items: start; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.admin-user-heading h3 { font-size: 20px; overflow-wrap: anywhere; }
.admin-user p { overflow-wrap: anywhere; }
.admin-control { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.admin-control summary { color: var(--ocean); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.admin-control form { max-width: 520px; padding-top: 16px; }
.admin-control textarea { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 5px; font: inherit; resize: vertical; }
.admin-links-title { margin-top: 22px; }
.admin-pagination { margin-top: 18px; }
.admin-audit { padding-left: 24px; }
.admin-audit li { padding: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; font-size: 13px; }
.admin-audit p { margin-bottom: 4px; }
dl { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; font-size: 14px; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.prose { max-width: 720px; }
.prose h2 { font-size: 20px; margin-top: 26px; }
.link-frame-wrap { background: white; border: 1px solid var(--line); border-top: 3px solid var(--ocean); border-radius: 6px; overflow: hidden; }
.link-frame-wrap iframe { display: block; width: 100%; height: 680px; border: 0; background: white; }
.frame-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 16px; }
.embedded .header, .embedded .footer, .embedded .skip-link { display: none; }
.embedded .main { padding: 0 16px 24px; }
.embedded .form-panel { margin-top: 24px; }
@media (max-width: 1000px) {
    .site-card { padding: 22px; }
    .site-grid { gap: 16px; }
    .section-heading { display: block; }
    .section-heading > p { margin-top: 12px; }
    .header-inner { gap: 12px; }
    nav { gap: 15px; }
    .brand img { width: 255px; height: auto; }
}
@media (max-width: 760px) {
    .header-inner { flex-wrap: wrap; justify-content: center; padding: 8px 20px 16px; }
    nav { justify-content: center; flex-wrap: wrap; gap: 20px; }
    .main { padding: 0 20px 40px; }
    .hero { padding: 44px 0; }
    .hero > p { font-size: 15px; }
    .desktop-break { display: none; }
    .site-grid, .settings-grid, .steps, .admin-stats { grid-template-columns: 1fr; }
    .site-card { padding: 26px; }
    .steps { gap: 18px; }
    .link-banner { flex-direction: column; align-items: start; padding: 26px; }
    .link-banner .button { width: 100%; }
    .how-it-works { margin-top: 36px; }
    .footer { padding: 26px 20px; gap: 20px; }
    .footer-links { margin-left: 0; }
    .form-panel { margin-top: 32px; padding: 25px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
