/*
 * QC Webworks public surfaces — 2026 design system
 *
 * The public/auth pages are intentionally scoped to body.qcw-public so this
 * layer can be loaded beside the portal without leaking into the application.
 */

@font-face {
    font-family: "Outfit";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("/public/fonts/outfit-latin-variable.woff2") format("woff2");
}

@font-face {
    font-family: "Work Sans";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("/public/fonts/work-sans-latin-variable.woff2") format("woff2");
}

:root {
    --qcw-type-2xs: 11px;
    --qcw-type-xs: 12px;
    --qcw-type-sm: 13px;
    --qcw-type-ui: 14px;
    --qcw-type-body: 16px;
    --qcw-type-lg: 18px;
    --qcw-type-xl: 20px;
    --qcw-type-2xl: 24px;
    --qcw-type-display: 28px;
    --qcw-purple: #8a2be2;
    --qcw-purple-bright: #a855f7;
    --qcw-purple-strong: #6d1dba;
    --qcw-purple-soft: #b57aff;
    --qcw-purple-deep: #45107f;
    --qcw-purple-tint: #f1eaff;
    --qcw-lime: #c6fb2f;
    --qcw-lime-bright: #dcff6b;
    --qcw-lime-deep: #93c400;
    --qcw-lime-ink: #12200a;
    --qcw-bg: #0a0611;
    --qcw-ink-1: #0c0717;
    --qcw-ink-2: #150b28;
    --qcw-ink-3: #1d1138;
    --qcw-paper: #f6f4fb;
    --qcw-white: #fff;
    --qcw-on-dark: #f5f1fc;
    --qcw-on-dark-muted: rgba(245, 241, 252, .7);
    --qcw-on-dark-faint: rgba(245, 241, 252, .48);
    --qcw-line: rgba(20, 10, 40, .13);
    --qcw-dline: rgba(255, 255, 255, .12);
    --qcw-dline-soft: rgba(255, 255, 255, .07);
    --qcw-display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --qcw-font: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --qcw-mono: ui-monospace, "Cascadia Code", "Source Code Pro", "JetBrains Mono", Consolas, monospace;
    --qcw-ease: cubic-bezier(.16, 1, .3, 1);
    --qcw-shadow-lg: 0 30px 80px rgba(0, 0, 0, .34);
    --qcw-shadow-purple: 0 16px 40px rgba(109, 29, 186, .3);
    --qcw-shadow-lime: 0 14px 34px rgba(147, 196, 0, .3);
    --qcw-radius-sm: 6px;
    --qcw-radius: 10px;
    --qcw-radius-lg: 18px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    background: var(--qcw-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.qcw-public {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    color: var(--qcw-on-dark);
    background: var(--qcw-bg);
    font-family: var(--qcw-font);
    line-height: 1.62;
}

body.qcw-public::before {
    position: fixed;
    z-index: 0;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: .42;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, #000, transparent 82%);
}

body.qcw-public a { color: inherit; }
body.qcw-public img, body.qcw-public svg { max-width: 100%; }
body.qcw-public :focus-visible { outline: 3px solid var(--qcw-lime); outline-offset: 3px; }

.qcw-eyebrow,
.qcw-kicker,
.qcw-label,
.qcw-mono {
    font-family: var(--qcw-mono);
    font-size: var(--qcw-type-2xs);
    font-weight: 700;
    letter-spacing: .11em;
    line-height: 1.3;
    text-transform: uppercase;
}

.qcw-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    padding: 9px 14px;
    color: var(--qcw-on-dark);
    border: 1px solid var(--qcw-dline);
    border-radius: 999px;
    background: rgba(255,255,255,.045);
}

.qcw-eyebrow::before {
    width: 8px;
    height: 8px;
    content: "";
    border-radius: 50%;
    background: var(--qcw-lime);
    box-shadow: 0 0 0 6px rgba(198,251,47,.12);
}

.brand { color: var(--qcw-on-dark); }
.brand-mark {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid rgba(198,251,47,.24);
    border-radius: var(--qcw-radius);
    background: linear-gradient(135deg, var(--qcw-purple-bright), var(--qcw-purple-strong));
    box-shadow: var(--qcw-shadow-purple);
}
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand-copy strong { color: var(--qcw-on-dark); font-family: var(--qcw-display); font-weight: 800; }
.brand-copy span { color: var(--qcw-on-dark-muted); }

.link-btn, .solid-btn, .oauth-btn, button {
    min-height: 44px;
    border-radius: var(--qcw-radius-sm);
    font-family: var(--qcw-display);
    font-weight: 800;
    letter-spacing: .01em;
    transition: transform 220ms var(--qcw-ease), border-color 220ms var(--qcw-ease), box-shadow 220ms var(--qcw-ease), background 220ms var(--qcw-ease);
}

.link-btn, .solid-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    text-decoration: none;
}

.link-btn {
    color: var(--qcw-on-dark);
    border: 1px solid var(--qcw-dline);
    background: rgba(255,255,255,.035);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
}

.solid-btn, button {
    color: var(--qcw-lime-ink);
    border: 0;
    background: linear-gradient(135deg, var(--qcw-lime-bright), var(--qcw-lime));
    box-shadow: var(--qcw-shadow-lime);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
    cursor: pointer;
}

.link-btn:hover, .solid-btn:hover, button:hover { transform: translateY(-2px); }
.link-btn:hover { border-color: rgba(198,251,47,.45); }
.solid-btn:hover, button:hover { background: var(--qcw-lime-bright); }

/* Home */
body.qcw-home .page {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto 1fr auto;
    max-width: 1480px;
    min-height: 100vh;
    margin: 0 auto;
}
body.qcw-home .topbar,
body.qcw-home .footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 20px 24px;
}
body.qcw-home .brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
body.qcw-home .brand-mark { width: 42px; height: 42px; }
body.qcw-home .brand-copy strong { display: block; font-size: var(--qcw-type-body); letter-spacing: -.02em; }
body.qcw-home .brand-copy span { display: block; margin-top: 2px; font-size: var(--qcw-type-2xs); }
body.qcw-home .top-actions,
body.qcw-home .hero-actions,
body.qcw-home .footer-links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
body.qcw-home .hero {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(360px, .84fr);
    align-items: center;
    gap: 28px;
    padding: 8px 24px 28px;
}
body.qcw-home .hero-copy { display: flex; flex-direction: column; justify-content: center; max-width: 560px; padding: 24px 8px 12px 4px; }
body.qcw-home h1 { max-width: 600px; margin: 18px 0 16px; color: var(--qcw-on-dark); font-family: var(--qcw-display); font-size: clamp(2.7rem, 5vw, 4.4rem); font-weight: 850; line-height: .94; letter-spacing: -.055em; }
body.qcw-home .lead { max-width: 540px; margin: 0; color: var(--qcw-on-dark-muted); font-size: var(--qcw-type-body); line-height: 1.72; }
body.qcw-home .microproof { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 28px; }
body.qcw-home .microproof div { padding-top: 18px; border-top: 1px solid var(--qcw-dline); }
body.qcw-home .microproof strong { display: block; margin-bottom: 6px; color: var(--qcw-lime); font-family: var(--qcw-display); font-size: var(--qcw-type-2xl); letter-spacing: -.04em; }
body.qcw-home .microproof span { display: block; color: var(--qcw-on-dark-muted); font-size: var(--qcw-type-2xs); line-height: 1.55; }
body.qcw-home .compliance-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 28px; }
body.qcw-home .compliance-card { padding: 14px 15px; border: 1px solid var(--qcw-dline-soft); border-radius: var(--qcw-radius); background: rgba(255,255,255,.035); }
body.qcw-home .compliance-card strong { display: block; margin-bottom: 7px; color: var(--qcw-lime); font-family: var(--qcw-mono); font-size: var(--qcw-type-2xs); letter-spacing: .08em; text-transform: uppercase; }
body.qcw-home .compliance-card p { margin: 0; color: var(--qcw-on-dark-muted); font-size: var(--qcw-type-2xs); line-height: 1.62; }
body.qcw-home .compliance-card a { color: var(--qcw-lime-bright); text-decoration: underline; text-underline-offset: 3px; }
body.qcw-home .visual { display: flex; align-items: center; justify-content: flex-end; min-height: 620px; border-left: 1px solid var(--qcw-dline-soft); }
body.qcw-home .visual-plane { position: relative; width: min(100%, 600px); min-height: 620px; height: 100%; overflow: hidden; border: 1px solid rgba(198,251,47,.2); border-radius: var(--qcw-radius-lg); background: radial-gradient(circle at 76% 18%, rgba(168,85,247,.3), transparent 24%), radial-gradient(circle at 70% 80%, rgba(198,251,47,.12), transparent 22%), linear-gradient(145deg, var(--qcw-ink-3), var(--qcw-ink-1)); box-shadow: var(--qcw-shadow-lg); clip-path: polygon(12% 0, 100% 0, 100% 100%, 20% 100%, 0 76%, 5% 18%); }
body.qcw-home .visual-plane::before { position: absolute; inset: 0; content: ""; pointer-events: none; opacity: .44; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(135deg, #000, transparent 75%); }
body.qcw-home .screen { position: absolute; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: var(--qcw-radius-lg); background: rgba(246,244,251,.97); box-shadow: 0 26px 40px rgba(0,0,0,.22); }
body.qcw-home .screen-analytics { top: 78px; left: 72px; width: 258px; padding: 16px 16px 18px; animation: qcw-float-a 8s ease-in-out infinite; }
body.qcw-home .screen-profile { top: 108px; right: 62px; width: 254px; padding: 14px; animation: qcw-float-b 9s ease-in-out infinite; }
body.qcw-home .screen-command { right: 66px; bottom: 74px; width: 308px; padding: 16px; animation: qcw-float-c 10s ease-in-out infinite; }
body.qcw-home .screen-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; color: #201332; font-size: var(--qcw-type-xs); font-weight: 800; }
body.qcw-home .screen-header .live { color: var(--qcw-purple-strong); font-family: var(--qcw-mono); font-size: var(--qcw-type-2xs); text-transform: uppercase; }
body.qcw-home .dots { display: flex; gap: 6px; }
body.qcw-home .dots span { width: 8px; height: 8px; border-radius: 50%; background: #cbb9df; }
body.qcw-home .metric-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 12px; }
body.qcw-home .metric { padding: 10px; border: 1px solid rgba(69,16,127,.1); border-radius: var(--qcw-radius-sm); background: var(--qcw-purple-tint); }
body.qcw-home .metric strong { display: block; margin-bottom: 6px; color: #171020; font-size: var(--qcw-type-xl); line-height: 1; letter-spacing: -.05em; }
body.qcw-home .metric span, body.qcw-home .action-tile, body.qcw-home .status, body.qcw-home .pill { font-size: var(--qcw-type-2xs); font-weight: 800; }
body.qcw-home .metric span { color: #6a6380; font-family: var(--qcw-mono); letter-spacing: .08em; text-transform: uppercase; }
body.qcw-home .chart { position: relative; height: 76px; overflow: hidden; border-radius: var(--qcw-radius); background: linear-gradient(180deg, rgba(138,43,226,.16), transparent 80%), linear-gradient(180deg, #fbf9ff, #eee8fa); }
body.qcw-home .chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
body.qcw-home .chart .line-purple { stroke: var(--qcw-purple); }
body.qcw-home .chart .line-lime { stroke: var(--qcw-lime-deep); }
body.qcw-home .toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; padding: 4px; border-radius: var(--qcw-radius-sm); background: #eee8fa; }
body.qcw-home .toggle span { display: flex; align-items: center; justify-content: center; min-height: 26px; border-radius: 5px; color: #6a6380; font-size: var(--qcw-type-2xs); font-weight: 800; }
body.qcw-home .toggle span.active { color: var(--qcw-lime-ink); background: var(--qcw-lime); }
body.qcw-home .profile-name, body.qcw-home .command-title { color: #150a26; font-family: var(--qcw-display); letter-spacing: -.05em; }
body.qcw-home .profile-name { margin: 10px 0 7px; font-size: var(--qcw-type-display); line-height: 1; }
body.qcw-home .profile-copy, body.qcw-home .command-sub { color: #6a6380; font-size: var(--qcw-type-xs); line-height: 1.55; }
body.qcw-home .profile-copy { margin-bottom: 10px; }
body.qcw-home .tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; color: var(--qcw-lime-ink); border-radius: 999px; background: var(--qcw-lime); font-family: var(--qcw-mono); font-size: var(--qcw-type-2xs); font-weight: 800; text-transform: uppercase; }
body.qcw-home .actions-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 14px 0; }
body.qcw-home .action-tile { padding: 10px 8px; color: #6a6380; border: 1px solid rgba(69,16,127,.1); border-radius: var(--qcw-radius-sm); background: #f6f4fb; text-align: center; line-height: 1.35; }
body.qcw-home .contact-row { display: grid; gap: 8px; padding-top: 8px; color: #6a6380; border-top: 1px solid rgba(69,16,127,.1); font-size: var(--qcw-type-2xs); }
body.qcw-home .command-title { margin-bottom: 8px; font-size: var(--qcw-type-2xl); line-height: 1.05; }
body.qcw-home .command-sub { margin-bottom: 14px; }
body.qcw-home .feed { display: grid; gap: 8px; margin-bottom: 12px; }
body.qcw-home .feed-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 10px 12px; color: #25202d; border: 1px solid rgba(69,16,127,.1); border-radius: var(--qcw-radius-sm); background: #f6f4fb; font-size: var(--qcw-type-2xs); font-weight: 700; }
body.qcw-home .feed-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--qcw-purple); box-shadow: 0 0 0 7px rgba(138,43,226,.12); }
body.qcw-home .feed-dot--lime { background: var(--qcw-lime-deep); box-shadow: 0 0 0 7px rgba(147,196,0,.12); }
body.qcw-home .feed-dot--amber { background: #c9911a; box-shadow: 0 0 0 7px rgba(201,145,26,.12); }
body.qcw-home .pill { display: inline-flex; align-items: center; justify-content: center; min-height: 22px; padding: 0 8px; color: var(--qcw-purple-strong); border-radius: 999px; background: var(--qcw-purple-tint); }
body.qcw-home .pill--lime { color: var(--qcw-lime-ink); background: #e9f8b8; }
body.qcw-home .pill--amber { color: #75500b; background: #fff0cf; }
body.qcw-home .cta-inline { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; color: #6a6380; border-top: 1px solid rgba(69,16,127,.1); font-size: var(--qcw-type-2xs); }
body.qcw-home .cta-inline a { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 12px; color: var(--qcw-lime-ink); border-radius: var(--qcw-radius-sm); background: var(--qcw-lime); font-weight: 800; text-decoration: none; }
body.qcw-home .footer { color: var(--qcw-on-dark-faint); font-size: var(--qcw-type-2xs); }
body.qcw-home .footer a { text-decoration: none; }

/* Registration */
body.qcw-register .page { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(340px,390px) minmax(0,1fr); min-height: 100vh; max-width: 1480px; margin: 0 auto; }
body.qcw-register .panel-left { display: flex; flex-direction: column; padding: 22px; border-right: 1px solid var(--qcw-dline-soft); background: rgba(10,6,17,.82); }
body.qcw-register .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; text-decoration: none; }
body.qcw-register .brand-mark { width: 40px; height: 40px; }
body.qcw-register .brand-copy strong { display: block; font-size: var(--qcw-type-body); letter-spacing: -.02em; }
body.qcw-register .brand-copy span { display: block; margin-top: 3px; font-size: var(--qcw-type-2xs); }
body.qcw-register .switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 20px; padding: 4px; border: 1px solid var(--qcw-dline-soft); border-radius: var(--qcw-radius); background: rgba(255,255,255,.035); }
body.qcw-register .switch a { display: flex; align-items: center; justify-content: center; min-height: 40px; color: var(--qcw-on-dark-muted); border-radius: var(--qcw-radius-sm); font-size: var(--qcw-type-sm); font-weight: 800; text-decoration: none; }
body.qcw-register .switch a.active { color: var(--qcw-lime-ink); background: var(--qcw-lime); }
body.qcw-register .oauth-stack { display: grid; gap: 10px; margin-bottom: 20px; }
body.qcw-register .oauth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 14px; color: var(--qcw-on-dark); border: 1px solid var(--qcw-dline); background: rgba(255,255,255,.035); font-size: var(--qcw-type-xs); text-decoration: none; }
body.qcw-register .oauth-btn:hover { border-color: rgba(198,251,47,.45); transform: translateY(-2px); }
body.qcw-register .oauth-btn.disabled { cursor: not-allowed; opacity: .45; }
body.qcw-register .divider { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; color: var(--qcw-on-dark-faint); font-family: var(--qcw-mono); font-size: var(--qcw-type-2xs); letter-spacing: .05em; text-align: center; text-transform: uppercase; }
body.qcw-register .divider::before, body.qcw-register .divider::after { flex: 1; height: 1px; content: ""; background: var(--qcw-dline-soft); }
body.qcw-register .panel-left h1 { margin: 0 0 8px; color: var(--qcw-on-dark); font-family: var(--qcw-display); font-size: var(--qcw-type-display); font-weight: 850; letter-spacing: -.05em; }
body.qcw-register .sub { margin: 0 0 18px; color: var(--qcw-on-dark-muted); font-size: var(--qcw-type-xs); line-height: 1.65; }
body.qcw-register .error { margin-bottom: 16px; padding: 12px 14px; color: #ffd6da; border: 1px solid rgba(255,120,149,.3); border-radius: var(--qcw-radius-sm); background: rgba(255,120,149,.1); font-size: var(--qcw-type-xs); line-height: 1.55; }
body.qcw-register .error ul { margin: 0; padding-left: 18px; }
body.qcw-register label { display: block; margin-bottom: 6px; color: var(--qcw-lime); font-family: var(--qcw-mono); font-size: var(--qcw-type-2xs); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
body.qcw-register .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
body.qcw-register input { width: 100%; min-height: 44px; margin-bottom: 14px; padding: 0 14px; color: var(--qcw-on-dark); border: 1px solid var(--qcw-dline); border-radius: var(--qcw-radius-sm); outline: 0; background: var(--qcw-ink-1); font: inherit; font-size: var(--qcw-type-sm); transition: border-color 220ms var(--qcw-ease), box-shadow 220ms var(--qcw-ease); }
body.qcw-register input::placeholder { color: var(--qcw-on-dark-faint); }
body.qcw-register input:focus { border-color: var(--qcw-lime); box-shadow: 0 0 0 3px rgba(198,251,47,.13); }
body.qcw-register .hint { margin: -4px 0 14px; color: var(--qcw-on-dark-faint); font-family: var(--qcw-mono); font-size: var(--qcw-type-2xs); }
body.qcw-register button { width: 100%; }
body.qcw-register .meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; color: var(--qcw-on-dark-muted); font-size: var(--qcw-type-2xs); }
body.qcw-register .meta a, body.qcw-register .notice a, body.qcw-register .footer a { color: var(--qcw-lime-bright); text-decoration: underline; text-underline-offset: 3px; }
body.qcw-register .notice { margin-top: 14px; padding: 12px 13px; color: var(--qcw-on-dark-muted); border: 1px solid var(--qcw-dline-soft); border-radius: var(--qcw-radius-sm); background: rgba(255,255,255,.035); font-size: var(--qcw-type-2xs); line-height: 1.7; }
body.qcw-register .footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 18px; color: var(--qcw-on-dark-faint); font-family: var(--qcw-mono); font-size: var(--qcw-type-2xs); }
body.qcw-register .panel-right { display: flex; align-items: center; justify-content: center; padding: 26px 28px; }
body.qcw-register .stage { position: relative; width: min(100%,760px); min-height: 600px; overflow: hidden; border: 1px solid rgba(198,251,47,.22); border-radius: var(--qcw-radius-lg); background: radial-gradient(circle at 75% 18%, rgba(168,85,247,.3), transparent 23%), radial-gradient(circle at 68% 78%, rgba(198,251,47,.12), transparent 25%), linear-gradient(145deg, var(--qcw-ink-3), var(--qcw-ink-1)); box-shadow: var(--qcw-shadow-lg); clip-path: polygon(12% 0,100% 0,100% 100%,24% 100%,0 72%,4% 18%); }
body.qcw-register .stage::before { position: absolute; inset: 0; content: ""; pointer-events: none; opacity: .4; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(135deg, #000, transparent 75%); }
body.qcw-register .window { position: absolute; border: 1px solid rgba(255,255,255,.13); border-radius: var(--qcw-radius); background: rgba(21,11,40,.9); box-shadow: 0 26px 44px rgba(0,0,0,.25); }
body.qcw-register .window-mini { top: 74px; left: 54px; width: 188px; padding: 14px; animation: qcw-float-a 8s ease-in-out infinite; }
body.qcw-register .window-main { top: 70px; right: 58px; width: 252px; padding: 16px; animation: qcw-float-b 9s ease-in-out infinite; }
body.qcw-register .window-flow { right: 58px; bottom: 58px; left: 72px; padding: 18px; animation: qcw-float-c 10s ease-in-out infinite; }
body.qcw-register .window-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: var(--qcw-on-dark); font-family: var(--qcw-mono); font-size: var(--qcw-type-2xs); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
body.qcw-register .window-head .ready { color: var(--qcw-lime); }
body.qcw-register .mini-stat, body.qcw-register .stack-row, body.qcw-register .flow-step { border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.045); }
body.qcw-register .mini-stat { margin-bottom: 8px; padding: 12px; border-radius: var(--qcw-radius-sm); }
body.qcw-register .mini-stat strong, body.qcw-register .workspace-title, body.qcw-register .flow-title { color: var(--qcw-on-dark); font-family: var(--qcw-display); letter-spacing: -.05em; }
body.qcw-register .mini-stat strong { display: block; margin-bottom: 4px; color: var(--qcw-lime); font-size: var(--qcw-type-2xl); }
body.qcw-register .mini-stat span, body.qcw-register .workspace-chip, body.qcw-register .status, body.qcw-register .flow-step strong { font-family: var(--qcw-mono); font-size: var(--qcw-type-2xs); font-weight: 700; }
body.qcw-register .mini-stat span, body.qcw-register .flow-step strong { color: var(--qcw-on-dark-muted); letter-spacing: .07em; text-transform: uppercase; }
body.qcw-register .workspace-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; color: var(--qcw-lime-ink); border-radius: 999px; background: var(--qcw-lime); }
body.qcw-register .workspace-title { margin: 8px 0 6px; font-size: var(--qcw-type-display); }
body.qcw-register .workspace-copy, body.qcw-register .flow-copy { color: var(--qcw-on-dark-muted); line-height: 1.65; }
body.qcw-register .workspace-copy { margin-bottom: 14px; font-size: var(--qcw-type-2xs); }
body.qcw-register .stack { display: grid; gap: 8px; }
body.qcw-register .stack-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; color: var(--qcw-on-dark-muted); border-radius: var(--qcw-radius-sm); font-size: var(--qcw-type-2xs); font-weight: 700; }
body.qcw-register .status { display: inline-flex; align-items: center; justify-content: center; min-height: 22px; padding: 0 9px; border-radius: 999px; }
body.qcw-register .status.ready { color: var(--qcw-lime-ink); background: var(--qcw-lime); }
body.qcw-register .status.live { color: var(--qcw-lime-ink); background: #dff69a; }
body.qcw-register .status.next { color: #4c3406; background: #f5d77f; }
body.qcw-register .flow-title { margin: 0 0 8px; font-size: var(--qcw-type-display); line-height: 1; }
body.qcw-register .flow-copy { max-width: 480px; margin-bottom: 14px; font-size: var(--qcw-type-xs); }
body.qcw-register .flow-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
body.qcw-register .flow-step { padding: 12px; border-radius: var(--qcw-radius-sm); }
body.qcw-register .flow-step span { display: block; color: var(--qcw-on-dark); font-size: var(--qcw-type-2xs); line-height: 1.55; font-weight: 700; }

/* Legal */
body.qcw-legal { background: radial-gradient(circle at 12% 8%, rgba(138,43,226,.22), transparent 28%), var(--qcw-bg); }
body.qcw-legal .legal-page { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; padding: 24px 30px 80px; color: #322b40; border-right: 1px solid rgba(21,10,38,.08); border-left: 1px solid rgba(21,10,38,.08); background: var(--qcw-paper); box-shadow: 0 0 100px rgba(0,0,0,.22); }
body.qcw-legal .legal-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 48px; padding-bottom: 16px; border-bottom: 1px solid var(--qcw-line); }
body.qcw-legal .legal-nav a { padding: 7px 10px; color: #6a6380; border-radius: var(--qcw-radius-sm); font-family: var(--qcw-mono); font-size: var(--qcw-type-2xs); font-weight: 700; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
body.qcw-legal .legal-nav a:hover, body.qcw-legal .legal-nav a.active { color: var(--qcw-purple-strong); background: var(--qcw-purple-tint); }
body.qcw-legal .legal-nav .legal-brand { margin-right: auto; padding-left: 0; color: #150a26; font-family: var(--qcw-display); font-size: var(--qcw-type-body); font-weight: 850; letter-spacing: -.03em; text-transform: none; }
body.qcw-legal .legal-nav .legal-back { color: var(--qcw-purple-strong); }
body.qcw-legal .legal-page h1, body.qcw-legal .legal-page h2, body.qcw-legal .legal-page h3 { color: #150a26; font-family: var(--qcw-display); font-weight: 850; letter-spacing: -.035em; }
body.qcw-legal .legal-page h1 { margin-bottom: 8px; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: .98; }
body.qcw-legal .legal-page h2 { margin: 44px 0 12px; padding-top: 18px; border-top: 1px solid var(--qcw-line); color: var(--qcw-purple-strong); font-size: var(--qcw-type-2xl); line-height: 1.1; }
body.qcw-legal .legal-page h3 { margin: 26px 0 8px; color: #322b40; font-size: var(--qcw-type-body); }
body.qcw-legal .legal-page .effective { margin-bottom: 40px; color: #6a6380; font-family: var(--qcw-mono); font-size: var(--qcw-type-2xs); letter-spacing: .08em; text-transform: uppercase; }
body.qcw-legal .legal-page p, body.qcw-legal .legal-page li { color: #4a4358; font-size: var(--qcw-type-ui); line-height: 1.75; }
body.qcw-legal .legal-page ul { margin: 12px 0; padding-left: 22px; }
body.qcw-legal .legal-page li { margin-bottom: 7px; }
body.qcw-legal .legal-page li::marker { color: var(--qcw-purple); }
body.qcw-legal .legal-page a:not(.legal-nav a) { color: var(--qcw-purple-strong); text-decoration: underline; text-decoration-color: rgba(109,29,186,.35); text-underline-offset: 3px; }
body.qcw-legal .legal-page strong { color: #24133b; }

/* Status */
body.qcw-status { background: radial-gradient(circle at 16% 12%, rgba(138,43,226,.2), transparent 30%), radial-gradient(circle at 86% 8%, rgba(198,251,47,.07), transparent 24%), var(--qcw-bg); }
body.qcw-status .wrap { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 40px 20px; }
body.qcw-status .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; text-decoration: none; }
body.qcw-status .brand img { width: 40px; height: 40px; border-radius: var(--qcw-radius-sm); object-fit: cover; }
body.qcw-status .brand h1 { margin: 0; color: var(--qcw-on-dark); font-family: var(--qcw-display); font-size: var(--qcw-type-xl); font-weight: 850; letter-spacing: -.04em; }
body.qcw-status .brand .sub { color: var(--qcw-on-dark-faint); font-family: var(--qcw-mono); font-size: var(--qcw-type-2xs); letter-spacing: .06em; text-transform: uppercase; }
body.qcw-status .banner { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; padding: 18px 22px; border: 1px solid; border-radius: var(--qcw-radius); font-size: var(--qcw-type-ui); font-weight: 800; }
body.qcw-status .banner.ok { color: var(--qcw-lime); border-color: rgba(198,251,47,.28); background: rgba(198,251,47,.08); }
body.qcw-status .banner.down { color: #ff9ab0; border-color: rgba(255,120,149,.3); background: rgba(255,120,149,.08); }
body.qcw-status .banner.unknown { color: var(--qcw-on-dark-muted); border-color: var(--qcw-dline); background: rgba(255,255,255,.035); }
body.qcw-status .dot { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; background: var(--qcw-on-dark-faint); }
body.qcw-status .dot.ok { background: var(--qcw-lime); box-shadow: 0 0 12px rgba(198,251,47,.6); }
body.qcw-status .dot.down { background: #ff7895; box-shadow: 0 0 12px rgba(255,120,149,.6); animation: qcw-pulse 1.4s infinite; }
body.qcw-status .site { margin-bottom: 14px; padding: 20px 22px; border: 1px solid var(--qcw-dline); border-radius: var(--qcw-radius); background: rgba(21,11,40,.82); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
body.qcw-status .site-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
body.qcw-status .site-head .name { color: var(--qcw-on-dark); font-size: var(--qcw-type-ui); font-weight: 800; }
body.qcw-status .site-head .state { margin-left: auto; font-family: var(--qcw-mono); font-size: var(--qcw-type-2xs); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
body.qcw-status .state.up { color: var(--qcw-lime); }
body.qcw-status .state.down { color: #ff9ab0; }
body.qcw-status .state.unknown { color: var(--qcw-on-dark-faint); }
body.qcw-status .bars { display: flex; align-items: flex-end; gap: 2px; height: 34px; margin-bottom: 12px; }
body.qcw-status .bar { flex: 1; min-height: 6px; height: 6%; border-radius: 2px 2px 0 0; background: rgba(198,251,47,.65); }
body.qcw-status .bar--height-20 { height: 20%; }
body.qcw-status .bar--height-25 { height: 25%; }
body.qcw-status .bar--height-30 { height: 30%; }
body.qcw-status .bar--height-35 { height: 35%; }
body.qcw-status .bar--height-40 { height: 40%; }
body.qcw-status .bar--height-45 { height: 45%; }
body.qcw-status .bar--height-50 { height: 50%; }
body.qcw-status .bar--height-55 { height: 55%; }
body.qcw-status .bar--height-60 { height: 60%; }
body.qcw-status .bar--height-65 { height: 65%; }
body.qcw-status .bar--height-70 { height: 70%; }
body.qcw-status .bar--height-75 { height: 75%; }
body.qcw-status .bar--height-80 { height: 80%; }
body.qcw-status .bar--height-85 { height: 85%; }
body.qcw-status .bar--height-90 { height: 90%; }
body.qcw-status .bar--height-95 { height: 95%; }
body.qcw-status .bar--height-100 { height: 100%; }
body.qcw-status .bar.down { min-height: 100%; height: 100%; background: #ff7895; }
body.qcw-status .bar:hover { opacity: .75; }
body.qcw-status .stats { display: flex; gap: 22px; flex-wrap: wrap; color: var(--qcw-on-dark-muted); font-family: var(--qcw-mono); font-size: var(--qcw-type-2xs); }
body.qcw-status .stats strong { color: var(--qcw-on-dark); font-weight: 700; }
body.qcw-status .empty { padding: 60px 0; color: var(--qcw-on-dark-faint); font-size: var(--qcw-type-ui); text-align: center; }
body.qcw-status .incident { margin-bottom: 14px; padding: 16px 22px; border: 1px solid; border-radius: var(--qcw-radius); }
body.qcw-status .incident--outage { color: #ff9ab0; border-color: rgba(255,120,149,.3); background: rgba(255,120,149,.08); }
body.qcw-status .incident--maintenance { color: #f5d77f; border-color: rgba(245,215,127,.3); background: rgba(245,215,127,.08); }
body.qcw-status .incident--info { color: var(--qcw-purple-soft); border-color: rgba(181,122,255,.3); background: rgba(138,43,226,.1); }
body.qcw-status .incident-head { display: flex; align-items: center; gap: 10px; font-size: var(--qcw-type-sm); font-weight: 800; }
body.qcw-status .incident-date { margin-left: auto; color: var(--qcw-on-dark-faint); font-family: var(--qcw-mono); font-size: var(--qcw-type-2xs); font-weight: 400; white-space: nowrap; }
body.qcw-status .incident-message { margin-top: 6px; color: var(--qcw-on-dark-muted); font-size: var(--qcw-type-xs); line-height: 1.6; }
body.qcw-status .past-incidents { margin-top: 30px; }
body.qcw-status .past-incidents-title { margin-bottom: 10px; color: var(--qcw-on-dark-faint); font-family: var(--qcw-mono); font-size: var(--qcw-type-2xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
body.qcw-status .past-incident { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--qcw-dline-soft); font-size: var(--qcw-type-xs); }
body.qcw-status .past-incident-title { flex: 1; overflow: hidden; color: var(--qcw-on-dark-muted); text-decoration: line-through; text-overflow: ellipsis; white-space: nowrap; }
body.qcw-status .past-incident-meta { color: var(--qcw-on-dark-faint); font-family: var(--qcw-mono); font-size: var(--qcw-type-2xs); white-space: nowrap; }
body.qcw-status .foot { margin-top: 34px; color: var(--qcw-on-dark-faint); font-family: var(--qcw-mono); font-size: var(--qcw-type-2xs); text-align: center; }

@keyframes qcw-float-a { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes qcw-float-b { 0%,100% { transform: translateY(0); } 50% { transform: translateY(12px); } }
@keyframes qcw-float-c { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes qcw-pulse { 50% { opacity: .45; } }

@media (max-width: 1220px) {
    body.qcw-home .hero { grid-template-columns: 1fr; gap: 22px; }
    body.qcw-home .hero-copy { max-width: none; }
    body.qcw-home .visual { min-height: 560px; border-left: 0; justify-content: center; }
    body.qcw-home .visual-plane { width: min(100%, 560px); min-height: 560px; }
    body.qcw-register .page { grid-template-columns: 1fr; }
    body.qcw-register .panel-right { padding-top: 0; }
    body.qcw-register .stage { width: min(100%,680px); min-height: 520px; }
}

@media (max-width: 820px) {
    body.qcw-home .topbar, body.qcw-home .hero, body.qcw-home .footer { padding-right: 18px; padding-left: 18px; }
    body.qcw-home h1 { font-size: var(--qcw-type-display); }
    body.qcw-home .microproof, body.qcw-home .compliance-strip { grid-template-columns: 1fr; }
    body.qcw-home .visual { min-height: 460px; }
    body.qcw-home .visual-plane { min-height: 460px; clip-path: none; border-radius: var(--qcw-radius-lg); }
    body.qcw-home .screen-analytics { top: 42px; left: 18px; width: 220px; }
    body.qcw-home .screen-profile { top: 82px; right: 18px; width: 204px; }
    body.qcw-home .screen-command { right: 18px; bottom: 22px; left: 18px; width: auto; }
    body.qcw-register .panel-left { padding: 20px 18px; }
    body.qcw-register .panel-right { padding: 10px 18px 24px; }
    body.qcw-register .field-grid, body.qcw-register .flow-grid { grid-template-columns: 1fr; }
    body.qcw-register .stage { min-height: 500px; clip-path: none; border-radius: var(--qcw-radius-lg); }
    body.qcw-register .window-mini { top: 24px; left: 16px; width: 176px; }
    body.qcw-register .window-main { top: 28px; right: 16px; width: 210px; }
    body.qcw-register .window-flow { right: 16px; bottom: 20px; left: 16px; }
    body.qcw-legal .legal-page { padding: 20px 22px 60px; }
    body.qcw-legal .legal-nav { gap: 4px; margin-bottom: 36px; }
    body.qcw-legal .legal-nav .legal-brand { width: 100%; margin-right: 0; }
    body.qcw-status .wrap { padding: 28px 16px; }
}

@media (max-width: 560px) {
    body.qcw-home .top-actions, body.qcw-home .hero-actions { width: 100%; }
    body.qcw-home .top-actions a, body.qcw-home .hero-actions a { flex: 1 1 100%; }
    body.qcw-home .screen-profile, body.qcw-register .window-main { display: none; }
    body.qcw-home .screen-analytics { right: 18px; width: auto; }
    body.qcw-status .incident-head { align-items: flex-start; flex-wrap: wrap; }
    body.qcw-status .incident-date { width: 100%; margin-left: 0; }
    body.qcw-status .past-incident { align-items: flex-start; }
    body.qcw-status .past-incident-meta { white-space: normal; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
    body.qcw-public, body.qcw-public * { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Bootstrap fallback */
.bootstrap-error-page{min-height:100vh;margin:0;padding:40px;display:grid;place-items:start center;background:#f8fafc;color:#1f2937;font-family:system-ui,sans-serif;line-height:1.5}
.bootstrap-error-card{width:min(720px,100%);margin-top:8vh;padding:24px;border:1px solid #e5e7eb;border-radius:16px;background:#fff;box-shadow:0 20px 50px rgba(15,23,42,.08)}
.bootstrap-error-title{margin-top:0}.bootstrap-error-code{background:#f3f4f6;padding:2px 6px;border-radius:6px}

/* Public pages keep the same viewport and overflow contract as the portal. */
html, body { min-width: 0; overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
img, svg, video, input, select, textarea, button { max-width: 100%; }
@media (max-width: 760px) {
    body.qcw-public .topbar, body.qcw-public .hero, body.qcw-public .footer,
    body.qcw-register .topbar, body.qcw-legal .legal-page, body.qcw-status .wrap { min-width: 0; }
    body.qcw-home .hero, body.qcw-home .microproof, body.qcw-home .compliance-strip,
    body.qcw-register .field-grid, body.qcw-register .flow-grid { grid-template-columns: 1fr; }
    body.qcw-home .hero-copy, body.qcw-home .visual, body.qcw-register .panel-left,
    body.qcw-register .panel-right, body.qcw-legal .legal-page, body.qcw-status .wrap { max-width: 100%; min-width: 0; }
}
