:root {
    --app-accent: #1f5fa8;
    --app-text: #16191d;
    --app-muted: #667080;
    --app-border: #e3e6ea;
    --app-bg: #f6f7f9;
    --app-surface: #ffffff;
    --app-pad: clamp(16px, 3vw, 40px);
}

html, body { height: 100%; }
body {
    height: 100vh; overflow: hidden; display: flex; flex-direction: column;
    background: var(--app-bg); color: var(--app-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px; -webkit-font-smoothing: antialiased;
}
.app-wrap { max-width: 1500px; margin: 0 auto; padding: 0 var(--app-pad); width: 100%; }

.app-nav { flex: none; height: 56px; display: flex; align-items: center; background: var(--app-surface); border-bottom: 1px solid var(--app-border); }
.app-brand { font-weight: 650; color: var(--app-text); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.app-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--app-accent); }
.app-sep { width: 1px; height: 20px; background: var(--app-border); }
.app-link { color: var(--app-muted); text-decoration: none; font-weight: 500; padding: 4px 2px; border-bottom: 2px solid transparent; }
.app-link:hover { color: var(--app-text); }
.app-link.active { color: var(--app-text); border-bottom-color: var(--app-accent); }

.app-main { flex: 1; min-height: 0; overflow-y: auto; padding: 28px 0 40px; }
.app-footer { flex: none; height: 40px; display: flex; align-items: center; font-size: 12px; color: var(--app-muted); background: var(--app-surface); border-top: 1px solid var(--app-border); }

.page-title { font-size: 22px; font-weight: 650; margin: 0 0 4px; letter-spacing: -.01em; }
.page-sub { color: var(--app-muted); margin: 0 0 24px; max-width: 760px; }

.panel { background: var(--app-surface); border: 1px solid var(--app-border); border-radius: 8px; padding: 20px; }
.panel-title { font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--app-muted); margin: 0 0 12px; }
.form-label { font-weight: 550; font-size: 13px; }
.form-control, .form-select, .btn { border-radius: 8px; }
.btn-primary { background: var(--app-accent); border-color: var(--app-accent); }

.snippet { position: relative; }
.snippet pre {
    margin: 0; background: #0f1720; color: #dbe4ee; border-radius: 8px; padding: 14px 16px;
    font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-all;
}
.snippet .copy-btn { position: absolute; top: 8px; right: 8px; font-size: 12px; padding: 2px 10px; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 13px; margin: 0; }
.kv dt { font-weight: 550; } .kv dd { margin: 0; color: var(--app-muted); }
.kv code { color: var(--app-text); }

/* demo host page */
.host-hero {
    border-radius: 8px; padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px); color: #fff;
    background: #13294b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='200'%3E%3Cpath d='M0 160 C100 120 200 200 400 110' stroke='%23ffffff' stroke-opacity='.07' stroke-width='40' fill='none'/%3E%3C/svg%3E") right bottom / cover no-repeat;
}
.host-hero .eyebrow { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.host-hero h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 700; margin: 6px 0 0; letter-spacing: -.02em; }
.host-section { padding: 36px 0 8px; }
.host-section h2 { font-size: 22px; font-weight: 650; margin: 0 0 4px; }
.host-section p { color: var(--app-muted); margin: 0 0 22px; }

.err { text-align: center; padding: 80px 0; }
.err .code { font-size: 64px; font-weight: 700; color: var(--app-accent); line-height: 1; }
