/*
 * IQP SKIN 2026-10 — light-first reskin with a Light / Dark switch
 * (operator 2026-10-02: "we need to start in light and have buttons like pepjunkie, light and dark";
 *  rolling technology strip: "just the one in the middle stops a bit, becomes colored ... those
 *  before middle or after slowly fade away"; the floating tree emblem stays).
 *
 * Loaded AFTER the inline <style> in index.php. Every rule is scoped under body.iqp-skin so it
 * outranks the inline rules (and their media queries) without !important. Markup ids, classes
 * and handlers the chat script and the regression tests rely on are unchanged; this file only
 * restyles them. Theme is html[data-theme="light"|"dark"], set before first paint by the head
 * script and switched by assets/iqp-skin.js (.themer button).
 */

/* Self-hosted text faces (SIL OFL 1.1, licences beside the files). Without them each browser
   substituted its own fallback - Opera on Android drew a cruder mono and softer text (2026-10-03). */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 100 800;
    src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 100 800;
    src: url("fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root,
:root[data-theme="light"] {
    --bg: #f5f6fb;
    --blob-a: rgba(124, 140, 255, .22);
    --blob-b: rgba(79, 209, 255, .16);
    --blob-c: rgba(176, 108, 255, .14);
    --surface: rgba(255, 255, 255, .80);
    --surface-2: #ffffff;
    --surface-3: #f1f3fa;
    --line: rgba(20, 24, 60, .10);
    --line-strong: rgba(20, 24, 60, .18);
    --text: #12152b;
    --text-2: #4a5072;
    --text-3: #7c82a3;
    --ion: #5b6cff;
    --plasma: #9a5cff;
    --cyan: #0e9fd0;
    --ok: #12a26b;
    --warn: #d4452f;
    --shadow: 0 24px 60px -28px rgba(30, 40, 110, .35), 0 2px 6px rgba(30, 40, 110, .06);
    --side-logo: grayscale(1) brightness(0) opacity(.85);
    --active-logo: drop-shadow(0 0 .6px rgba(18, 21, 43, .9)) drop-shadow(0 0 .6px rgba(18, 21, 43, .9)) drop-shadow(0 6px 14px rgba(91, 108, 255, .35));
    color-scheme: light;
}
:root[data-theme="dark"] {
    --bg: #0a0c16;
    --blob-a: rgba(91, 108, 255, .20);
    --blob-b: rgba(19, 181, 232, .10);
    --blob-c: rgba(154, 92, 255, .16);
    --surface: rgba(22, 26, 48, .74);
    --surface-2: #151933;
    --surface-3: #1b2040;
    --line: rgba(160, 170, 255, .12);
    --line-strong: rgba(160, 170, 255, .22);
    --text: #eceefb;
    --text-2: #aab0d4;
    --text-3: #7a80a8;
    --ion: #8592ff;
    --plasma: #b07cff;
    --cyan: #4fd1ff;
    --ok: #3ad29a;
    --warn: #ff7a62;
    --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .05);
    --side-logo: grayscale(1) brightness(1.8) contrast(.85);
    --active-logo: drop-shadow(0 0 14px rgba(133, 146, 255, .6));
    color-scheme: dark;
}
:root { --mono: "JetBrains Mono", "Cascadia Mono", "Roboto Mono", Consolas, ui-monospace, monospace; --ease: cubic-bezier(.65, 0, .35, 1); }
html { overflow-x: clip; }

/* ------------------------------------------------------------------ page shell */
body.iqp-skin {
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
    transition: background .5s ease, color .5s ease;
}
.iqp-skin .iqp-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.iqp-skin .iqp-bg i {
    position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
    filter: blur(80px); animation: iqpDrift 28s ease-in-out infinite alternate;
}
.iqp-skin .iqp-bg i:nth-child(1) { background: var(--blob-a); top: -25vmax; left: -15vmax; }
.iqp-skin .iqp-bg i:nth-child(2) { background: var(--blob-b); top: 10vmax; right: -25vmax; animation-delay: -9s; }
.iqp-skin .iqp-bg i:nth-child(3) { background: var(--blob-c); bottom: -30vmax; left: 20vmax; animation-delay: -17s; }
@keyframes iqpDrift { to { transform: translate(6vmax, 4vmax) scale(1.08); } }

.iqp-skin .main-wrapper { display: block; padding: 0 0 20px; overflow: visible; z-index: 1; }
.iqp-skin .main-wrapper::before { display: none; }
.iqp-skin .container {
    background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    border: 0; box-shadow: none; border-radius: 0;
    width: min(100% - 32px, 1040px); max-width: none; margin: 0 auto; padding: 0;
}

/* ------------------------------------------------------------------ top bar */
.iqp-skin .top-nav {
    position: sticky; top: 0; z-index: 50;
    display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 6px; text-align: left;
    height: 64px; margin: 0 calc(50% - 50vw) 0; padding: 0 max(16px, calc(50vw - 520px));
    backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    border-bottom: 1px solid var(--line);
}
.iqp-skin .iqp-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--text); text-decoration: none; }
.iqp-skin .iqp-brand img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-strong); }
.iqp-skin .iqp-brand b { font-size: 16px; letter-spacing: -.01em; }
.iqp-skin .iqp-brand span { color: var(--text-3); font-weight: 500; font-size: 13px; }
.iqp-skin .nav-link {
    color: var(--text-2); font-size: 14px; font-weight: 500; text-decoration: none;
    padding: 8px 12px; border-radius: 10px; background: none;
}
.iqp-skin .nav-link:hover { background: var(--surface); color: var(--text); }
.iqp-skin .themer {
    flex: none; margin-left: 6px;
    background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text-2);
    font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
    padding: 9px 12px; border-radius: 10px; cursor: pointer;
    display: inline-flex; align-items: center; gap: 7px;
}
.iqp-skin .themer:hover { color: var(--text); border-color: var(--ion); }
.iqp-skin .themer svg { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ hero */
.iqp-skin .header-section { text-align: center; padding: 48px 0 30px; margin: 0; }
/* the emblem: a lit glass sphere, an orbit with a travelling spark, a contact shadow */
.iqp-skin .iqp-emblem { position: relative; width: 240px; height: 196px; margin: 0 auto 10px; }
.iqp-skin .em-float { position: absolute; inset: 0 0 26px; display: grid; place-items: center; animation: iqpFloat 6s ease-in-out infinite; }
.iqp-skin .em-float::before {           /* breathing halo */
    content: ""; position: absolute; width: 230px; height: 230px; border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--ion) 45%, transparent), color-mix(in srgb, var(--plasma) 22%, transparent) 42%, transparent 68%);
    filter: blur(8px); animation: iqpHalo 4.2s ease-in-out infinite; z-index: 0;
}
@keyframes iqpHalo { 50% { transform: scale(1.12); opacity: .7; } }
.iqp-skin .em-ball {
    position: relative; z-index: 2; width: 150px; height: 150px; border-radius: 50%; overflow: hidden;
    background:
        radial-gradient(circle at 50% 56%, #0b3f7d 0%, #06305f 40%, #031c3d 74%, #010a18 100%);
    box-shadow:
        inset -16px -20px 34px rgba(0, 0, 0, .62),          /* core shadow, lower right */
        inset 10px 12px 26px rgba(120, 175, 255, .28),       /* key light, upper left */
        inset 0 -4px 10px rgba(79, 209, 255, .38),           /* cyan rim light at the base */
        inset 0 0 0 1px rgba(160, 200, 255, .22),
        0 22px 40px -16px rgba(10, 30, 90, .7);
}
.iqp-skin .em-ball img {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 80%; height: auto; aspect-ratio: 439 / 410; object-fit: contain;
    margin: 0; border-radius: 0; box-shadow: none; animation: none;   /* undo the old .main-logo look */
    -webkit-mask-image: radial-gradient(closest-side, #000 66%, transparent 100%);
            mask-image: radial-gradient(closest-side, #000 66%, transparent 100%);
    filter: drop-shadow(0 0 6px rgba(150, 200, 255, .35));
}
.iqp-skin .em-ball::before {            /* broad gloss */
    content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
    background: radial-gradient(ellipse 62% 40% at 42% 14%, rgba(255, 255, 255, .26), transparent 70%);
}
.iqp-skin .em-ball::after {             /* specular hotspot */
    content: ""; position: absolute; left: 24%; top: 15%; width: 22%; height: 13%; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0));
    transform: rotate(-28deg); filter: blur(1px); pointer-events: none;
}
/* the orbit: one tilted ellipse drawn twice - the back half behind the ball, the front half over it */
.iqp-skin .em-orbit {
    position: absolute; left: 50%; top: 50%; width: 228px; height: 70px;
    margin: -35px 0 0 -114px; transform: rotate(-16deg); pointer-events: none;
}
.iqp-skin .em-orbit::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 2px;
    background: conic-gradient(from var(--spark, 0deg),
        color-mix(in srgb, var(--ion) 30%, transparent) 0 62%,
        var(--cyan) 80%, #fff 86%, var(--plasma) 92%, color-mix(in srgb, var(--ion) 30%, transparent) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    filter: drop-shadow(0 0 4px color-mix(in srgb, var(--cyan) 70%, transparent));
    animation: iqpSpark 5s linear infinite;
}
.iqp-skin .em-back { z-index: 1; clip-path: inset(0 0 50% 0); opacity: .55; }
.iqp-skin .em-front { z-index: 3; clip-path: inset(50% 0 0 0); }
@property --spark { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes iqpSpark { to { --spark: 360deg; } }
.iqp-skin .em-shadow {                  /* contact shadow: tighter and darker as the ball sinks */
    position: absolute; left: 50%; bottom: 4px; width: 110px; height: 16px; margin-left: -55px; border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--ion) 38%, rgba(10, 20, 60, .45)), transparent);
    animation: iqpShadow 6s ease-in-out infinite;
}
@keyframes iqpShadow { 50% { transform: scale(.72); opacity: .45; } }
@keyframes iqpFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

.iqp-skin .iqp-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font: 700 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ion);
    padding: 8px 14px; border-radius: 999px;
    background: color-mix(in srgb, var(--ion) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--ion) 25%, transparent);
}
.iqp-skin .iqp-kicker::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
    animation: iqpPing 2.2s ease-out infinite;
}
@keyframes iqpPing {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); }
    100% { box-shadow: 0 0 0 9px transparent; }
}
.iqp-skin .intro-text h1, .iqp-skin .intro-text h2 {
    margin: 22px auto 16px; max-width: 20ch; text-wrap: balance;
    font-size: clamp(34px, 6vw, 60px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800;
    color: var(--text); background: none; -webkit-text-fill-color: currentColor;
}
.iqp-skin .intro-text h1 em, .iqp-skin .intro-text h2 em {
    font-style: normal;
    background: linear-gradient(100deg, var(--cyan), var(--ion) 40%, var(--plasma) 80%);
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.iqp-skin .intro-text p { max-width: 640px; margin: 0 auto; color: var(--text-2); font-size: 17px; line-height: 1.55; }

/* ------------------------------------------------------------------ technology strip */
.iqp-skin .tech-showcase {
    background: none; border: 0; border-radius: 0; padding: 8px 0 6px; margin: 0 0 34px; text-align: center;
}
.iqp-skin .tech-title {
    color: var(--text-3); font: 600 11px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; margin-bottom: 18px;
}
/* before the script runs (or without it) the logos are a quiet, even row */
.iqp-skin .tech-logos { gap: 18px 26px; }
.iqp-skin .tech-logos .tech-logo { width: auto; max-width: 96px; height: 40px; filter: var(--side-logo); }
.iqp-skin .tech-logos .tech-logo:hover { filter: none; transform: none; }
/* once the strip is built the static row goes (the page's own .tech-logos{display:flex} beats [hidden]) */
.iqp-skin .tech-logos[hidden] { display: none; }

.iqp-skin .tech-strip__viewport {
    position: relative; height: 112px; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
}
.iqp-skin .tech-strip__track { position: absolute; top: 0; left: 0; height: 100%; display: flex; will-change: transform; }
.iqp-skin .tech-strip__track.is-moving { transition: transform 900ms var(--ease); }
.iqp-skin .tech-strip__item {
    flex: 0 0 150px; height: 100%; display: grid; place-items: center;
    background: none; border: 0; padding: 0; cursor: pointer;
    filter: var(--side-logo);
    transition: opacity 900ms var(--ease), transform 900ms var(--ease), filter .5s ease;
}
/* --fit: per-logo optical size correction (padded or square artwork) */
.iqp-skin .tech-strip__item img {
    max-width: calc(100px * var(--fit, 1)); max-height: calc(50px * var(--fit, 1));
    object-fit: contain; pointer-events: none; user-select: none;
}
.iqp-skin .tech-strip__item.is-active { filter: none; }
.iqp-skin .tech-strip__item.is-active img { filter: var(--active-logo); }
/* KineticON's navy wordmark vanishes on dark backgrounds (the dark theme and the always-dark
   "Panacea is thinking" card). Operator 2026-10-03: a light plate was "shit ... it damages
   everything" -> an EDGE LIGHT instead: a thin pale rim + soft blue glow traced around the
   untouched artwork. No box, no patch; on the light theme it reads as it is. */
/* every navy/dark original (real colours since 2026-10-03) gets the same edge light */
:root[data-theme="dark"] .iqp-skin .tech-strip__item img[src*="KineticON.png"],
:root[data-theme="dark"] .iqp-skin .tech-strip__item img[src*="IncreSure.png"],
:root[data-theme="dark"] .iqp-skin .tech-strip__item img[src*="ElimiVoid.png"],
:root[data-theme="dark"] .iqp-skin .tech-strip__item img[src*="Cryoviscous.png"],
:root[data-theme="dark"] .iqp-skin .tech-strip__item img[src*="Dicoias Psi.png"],
:root[data-theme="dark"] .iqp-skin .tech-strip__item img[src*="PleniDose.png"],
:root[data-theme="dark"] .iqp-skin .tech-strip__item img[src*="Syntheseract.png"],
:root[data-theme="dark"] .iqp-skin .tech-strip__item img[src*="SealoPrester.png"],
:root[data-theme="dark"] .iqp-skin .tech-strip__item img[src*="Peptidic Liquid.png"],
:root[data-theme="dark"] .iqp-skin .tech-strip__item img[src*="RF Tunnel.png"],
.iqp-skin #iqpLoadingOverlay .showcase-img[src*="KineticON.png"],
.iqp-skin #iqpLoadingOverlay .showcase-img[src*="IncreSure.png"],
.iqp-skin #iqpLoadingOverlay .showcase-img[src*="ElimiVoid.png"],
.iqp-skin #iqpLoadingOverlay .showcase-img[src*="Cryoviscous.png"],
.iqp-skin #iqpLoadingOverlay .showcase-img[src*="Dicoias Psi.png"],
.iqp-skin #iqpLoadingOverlay .showcase-img[src*="PleniDose.png"],
.iqp-skin #iqpLoadingOverlay .showcase-img[src*="Syntheseract.png"],
.iqp-skin #iqpLoadingOverlay .showcase-img[src*="SealoPrester.png"],
.iqp-skin #iqpLoadingOverlay .showcase-img[src*="Peptidic Liquid.png"],
.iqp-skin #iqpLoadingOverlay .showcase-img[src*="RF Tunnel.png"] {
    filter: drop-shadow(0 0 .8px rgba(235, 240, 255, .95)) drop-shadow(0 0 .8px rgba(235, 240, 255, .75))
            drop-shadow(0 0 10px rgba(110, 150, 255, .55));
}
.iqp-skin .tech-strip__caption { text-align: center; min-height: 74px; padding: 14px 16px 0; }
.iqp-skin .tech-strip__caption > * { transition: opacity .35s ease, transform .35s ease; }
.iqp-skin .tech-strip__caption.is-swapping > * { opacity: 0; transform: translateY(6px); }
.iqp-skin .tech-strip__name { font-size: 19px; font-weight: 750; letter-spacing: -.01em; color: var(--text); }
.iqp-skin .tech-strip__blurb { max-width: 600px; margin: 4px auto 0; font-size: 14.5px; color: var(--text-2); }

/* ------------------------------------------------------------------ chat card */
.iqp-skin .chat-section {
    background: var(--surface);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
    padding: 30px;
}
.iqp-skin .iqp-card-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.iqp-skin .greeting { font-size: 28px; letter-spacing: -.025em; line-height: 1.15; color: var(--text); margin: 0; text-align: left; }
.iqp-skin .greeting span { color: var(--ion); background: none; -webkit-text-fill-color: currentColor; }
.iqp-skin .question { color: var(--text-2); font-size: 15px; margin: 2px 0 0; text-align: left; }

.iqp-skin .user-panel {
    margin: 0 0 0 auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 6px 6px 6px 8px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--line);
}
.iqp-skin .user-info { gap: 9px; font-size: 13px; color: var(--text-2); }
.iqp-skin .user-info strong { color: var(--text); font-weight: 650; }
.iqp-skin .user-info br { display: none; }
.iqp-skin .user-info small { font-size: 13px; color: var(--text-2); }
.iqp-skin .user-info small::before { content: "· "; }
.iqp-skin .user-avatar { width: 30px; height: 30px; font-size: 13px; }
.iqp-skin .auth-buttons { gap: 6px; }
.iqp-skin .auth-btn {
    border-radius: 999px; padding: 8px 15px; font-size: 14px; font-weight: 650;
    background: transparent; color: var(--text); border: 1px solid var(--line-strong); text-decoration: none;
}
.iqp-skin .auth-btn:hover { border-color: var(--ion); color: var(--ion); background: transparent; transform: none; }
.iqp-skin .auth-buttons .auth-btn:last-child { background: var(--text); color: var(--bg); border-color: var(--text); }
.iqp-skin .auth-buttons .auth-btn:last-child:hover { box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--text) 60%, transparent); color: var(--bg); }

.iqp-skin .limit-warning {
    background: color-mix(in srgb, var(--ion) 7%, transparent);
    border: 1px solid color-mix(in srgb, var(--ion) 24%, transparent);
    color: var(--text-2); border-radius: 14px; padding: 11px 14px; font-size: 14px; margin-bottom: 16px;
}
.iqp-skin .limit-warning.critical {
    background: color-mix(in srgb, var(--warn) 8%, transparent);
    border-color: color-mix(in srgb, var(--warn) 30%, transparent); color: var(--text);
}
.iqp-skin .limit-warning-icon { font-size: 16px; }
.iqp-skin .returning-message {
    background: color-mix(in srgb, var(--ok) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent);
    color: var(--text-2); border-radius: 14px; padding: 11px 14px; margin-bottom: 16px; font-size: 14px;
}

/* the composer: question box with its tools and the send button inside one frame */
.iqp-skin .iqp-composer {
    border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line-strong);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.iqp-skin .iqp-composer:focus-within {
    border-color: var(--ion); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ion) 16%, transparent);
}
.iqp-skin .input-container { margin: 0; }
.iqp-skin textarea#userQuery {
    display: block; width: 100%; min-height: 120px; resize: vertical;
    border: 0; outline: 0; box-shadow: none; background: transparent; color: var(--text);
    font: inherit; font-size: 16px; padding: 18px 20px 8px; border-radius: 18px 18px 0 0;
}
.iqp-skin textarea#userQuery::placeholder { color: var(--text-3); }
.iqp-skin .iqp-composer-tools { display: flex; align-items: center; gap: 6px; padding: 8px 10px 10px; flex-wrap: wrap; }
.iqp-skin .upload-toggle { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; text-align: left; }
.iqp-skin .toggle-upload-btn {
    display: inline-flex; align-items: center; gap: 7px; margin: 0 !important;
    background: transparent; border: 0; color: var(--text-2);
    font: inherit; font-size: 13.5px; font-weight: 550; padding: 8px 11px; border-radius: 10px;
}
.iqp-skin .toggle-upload-btn:hover { background: color-mix(in srgb, var(--ion) 9%, transparent); color: var(--ion); transform: none; }
.iqp-skin .toggle-upload-btn svg { width: 16px; height: 16px; flex: none; }

.iqp-skin .submit-btn {
    width: auto; margin: 0 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    border: 0; cursor: pointer; color: #fff;
    font: 700 13px/1 inherit; letter-spacing: .1em; text-transform: uppercase;
    padding: 13px 20px; border-radius: 13px;
    background: linear-gradient(100deg, var(--ion), var(--plasma));
    box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--ion) 80%, transparent);
    position: relative; overflow: hidden;
}
.iqp-skin .submit-btn::before {
    content: ""; position: absolute; inset: 0; left: 0; width: auto; height: auto; border-radius: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
    transform: translateX(-100%); animation: iqpSheen 3.6s ease-in-out infinite;
}
@keyframes iqpSheen { 60%, 100% { transform: translateX(100%); } }
.iqp-skin .submit-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--ion) 90%, transparent); }
.iqp-skin .submit-btn:disabled { filter: grayscale(.7); opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.iqp-skin .submit-btn:disabled::before { display: none; }
.iqp-skin .submit-btn::after { content: "→"; font-size: 15px; letter-spacing: 0; }

/* the disclaimer as one consent row */
.iqp-skin .disclaimer {
    margin: 16px 0 0; padding: 14px 16px; border-radius: 14px;
    background: color-mix(in srgb, var(--warn) 6%, transparent);
    border: 1px solid color-mix(in srgb, var(--warn) 22%, transparent);
    font-size: 13.5px; color: var(--text-2);
}
.iqp-skin .disclaimer h3 { display: inline; font-size: 13.5px; color: var(--warn); margin: 0 4px 0 0; }
.iqp-skin .disclaimer p { display: inline; color: var(--text-2); font-size: 13.5px; line-height: 1.55; margin: 0; }
.iqp-skin .disclaimer label {
    display: flex; align-items: center; gap: 10px; margin-top: 10px;
    color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer;
}
.iqp-skin .disclaimer input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--ion); }

/* privacy as quiet trust lines at the foot of the card */
.iqp-skin .privacy-notice {
    margin: 18px 0 0; padding: 0; background: none; border: 0;
    font-size: 13px; color: var(--text-3);
}
.iqp-skin .privacy-notice h4 {
    display: inline-flex; align-items: center; gap: 7px; margin: 0 6px 0 0;
    font-size: 13px; font-weight: 650; color: var(--ok);
}
.iqp-skin .privacy-notice p { display: inline; font-size: 13px; color: var(--text-3); line-height: 1.6; }
.iqp-skin .privacy-notice strong { color: var(--text-2); }

/* uploads */
.iqp-skin .file-upload-area { margin: 14px 0 0; }
.iqp-skin .file-drop-zone {
    border: 2px dashed color-mix(in srgb, var(--ion) 35%, transparent); border-radius: 16px; padding: 30px;
    background: var(--surface-2); color: var(--text-2);
}
.iqp-skin .file-drop-zone:hover,
.iqp-skin .file-drop-zone.drag-over { border-color: var(--ion); background: color-mix(in srgb, var(--ion) 6%, var(--surface-2)); }
.iqp-skin .file-drop-zone strong { color: var(--text); }
.iqp-skin .file-item { background: var(--surface-3); color: var(--text); border: 1px solid var(--line); }
.iqp-skin #fileCounter { background: color-mix(in srgb, var(--ion) 8%, transparent); color: var(--ion) !important; }

/* "what I'm doing for you" steps */
.iqp-skin .panacea-status { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; color: var(--text-2); margin: 0 0 16px; }
.iqp-skin .panacea-status h4 { color: var(--text); }
.iqp-skin .status-step { color: var(--text-3); }
.iqp-skin .status-step.active { color: var(--ion); }
.iqp-skin .status-step.complete { color: var(--ok); }

.iqp-skin .entertainment { background: color-mix(in srgb, var(--ion) 6%, transparent); border-radius: 16px; }
.iqp-skin .entertainment h3 { color: var(--ion); }
.iqp-skin .facts { color: var(--text-2); }
.iqp-skin .progress-bar { background: var(--surface-3); }
.iqp-skin .progress-fill { background: linear-gradient(90deg, var(--ion), var(--plasma)); }

/* ------------------------------------------------------------------ the answer */
.iqp-skin .response-container {
    margin-top: 22px; padding: 26px; border-radius: 18px;
    background: var(--surface-2); border: 1px solid var(--line);
}
.iqp-skin .response-container h3 { color: var(--ion); font-size: 20px; }
.iqp-skin .response-content { color: var(--text); line-height: 1.75; }
.iqp-skin .response-content .iqp-md-h { color: var(--text); }
.iqp-skin .response-content h3.iqp-md-h { color: var(--ion); }
.iqp-skin .response-content h4.iqp-md-h { color: color-mix(in srgb, var(--ion) 75%, var(--text)); }
.iqp-skin .response-content h5.iqp-md-h,
.iqp-skin .response-content h6.iqp-md-h { color: var(--text-2); }
.iqp-skin .response-content strong { color: var(--text); }
.iqp-skin .response-content em { color: var(--text-2); }
.iqp-skin .response-content code.iqp-md-code { background: var(--surface-3); color: var(--ion); }
.iqp-skin .response-content hr.iqp-md-hr { border-top-color: var(--line-strong); }
.iqp-skin .response-content table.iqp-md-table { background: var(--surface-2); border: 1px solid var(--line); }
.iqp-skin .response-content table.iqp-md-table th,
.iqp-skin .response-content table.iqp-md-table td { border-bottom-color: var(--line); }
.iqp-skin .response-content table.iqp-md-table th { background: color-mix(in srgb, var(--ion) 9%, transparent); color: var(--ion); }
.iqp-skin .response-content a { color: var(--ion); }
.iqp-skin .response-content blockquote { border-left: 3px solid var(--line-strong); margin: 10px 0; padding: 4px 0 4px 14px; color: var(--text-2); }

.iqp-skin .peptourbillon-cart-section { background: color-mix(in srgb, var(--ion) 5%, transparent); border: 1px solid var(--line); }
.iqp-skin .peptourbillon-cart-btn { background: var(--surface-2); border: 1px solid var(--line-strong); text-decoration: none; }
.iqp-skin .peptourbillon-cart-btn:hover { border-color: var(--ion); background: var(--surface-2); box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--ion) 70%, transparent); }
.iqp-skin .peptourbillon-cart-btn .product-name { color: var(--text); }
.iqp-skin .peptourbillon-cart-btn .product-price { color: var(--ok); }
.iqp-skin .peptourbillon-cart-btn .cta-text { color: var(--ion); }
.iqp-skin .peptourbillon-cart-btn .new-tab-hint { color: var(--text-3); }

.iqp-skin .response-action-btn { background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text-2); }
.iqp-skin .response-action-btn:hover { background: var(--surface-3); color: var(--text); }
.iqp-skin .feedback-btn.positive:hover { border-color: var(--ok); color: var(--ok); }
.iqp-skin .feedback-btn.negative:hover { border-color: var(--warn); color: var(--warn); }
.iqp-skin .error-message { background: color-mix(in srgb, var(--warn) 8%, transparent); border-color: color-mix(in srgb, var(--warn) 30%, transparent); color: var(--warn); }

.iqp-skin .email-collection { background: var(--surface-3); border: 1px solid var(--line); }
.iqp-skin .email-collection input { background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text); }
.iqp-skin .email-collection button { background: linear-gradient(100deg, var(--ion), var(--plasma)); }

/* ------------------------------------------------------------------ history */
.iqp-skin .conversation-history { background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; margin-top: 18px; }
.iqp-skin .conversation-header { border-bottom-color: var(--line); }
.iqp-skin .conversation-header h3 { color: var(--text); }
.iqp-skin .clear-history-btn { background: transparent; border: 1px solid var(--line-strong); color: var(--text-2); border-radius: 999px; }
.iqp-skin .clear-history-btn:hover { border-color: var(--warn); color: var(--warn); background: transparent; }
.iqp-skin .message-block { border-color: var(--line); }
.iqp-skin .user-message { background: color-mix(in srgb, var(--ion) 8%, transparent); border-left-color: var(--ion); color: var(--text); }
.iqp-skin .ai-message { background: var(--surface-3); border-left-color: var(--plasma); color: var(--text); }
.iqp-skin .user-message .message-label { color: var(--ion); }
.iqp-skin .ai-message .message-label { color: var(--plasma); }
.iqp-skin .message-content { color: var(--text); }
.iqp-skin .message-timestamp { color: var(--text-3); }

/* ------------------------------------------------------------------ login / register */
.iqp-skin .auth-modal { background: color-mix(in srgb, #05070f 55%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.iqp-skin .auth-modal-content {
    background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
    border-radius: 22px; box-shadow: var(--shadow); padding: 36px 30px 30px;
}
.iqp-skin .auth-close { color: var(--text-3); }
.iqp-skin .auth-close:hover { color: var(--text); }
.iqp-skin .auth-tabs { background: var(--surface-3); padding: 4px; border-radius: 12px; gap: 4px; margin-bottom: 22px; }
.iqp-skin .auth-tab { background: transparent; border: 0; color: var(--text-2); border-radius: 9px; font-weight: 650; }
.iqp-skin .auth-tab.active { background: var(--surface-2); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.iqp-skin .auth-form input {
    background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text); border-radius: 12px;
}
.iqp-skin .auth-form input:focus { outline: 0; border-color: var(--ion); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ion) 16%, transparent); }
.iqp-skin .auth-form button { background: linear-gradient(100deg, var(--ion), var(--plasma)); color: #fff; border-radius: 12px; }

/* ------------------------------------------------------------------ footer badge */
.iqp-skin .security-badge {
    position: static; justify-content: center; margin: 22px 0 18px;
    color: var(--text-3); font-size: 12.5px; background: none; border: 0;
}
.iqp-skin .security-badge svg { fill: var(--ok); }

/* ------------------------------------------------------------------ entrance */
.iqp-skin .iqp-rise { animation: iqpRise .9s var(--ease) both; }
.iqp-skin .iqp-rise.d1 { animation-delay: .08s; }
.iqp-skin .iqp-rise.d2 { animation-delay: .18s; }
.iqp-skin .iqp-rise.d3 { animation-delay: .3s; }
@keyframes iqpRise { from { opacity: 0; transform: translateY(16px); } }

/* ------------------------------------------------------------------ phones */
/* phones: the disclaimer tick box sits ABOVE the question box - the send button stays locked
   until it is ticked, and on a phone the box below the composer was off-screen while typing
   (operator 2026-10-03). Desktop keeps the approved order. */
@media (max-width: 768px) {
    .iqp-skin .chat-section { display: flex; flex-direction: column; }
    .iqp-skin .chat-section > .iqp-card-head { order: -3; }
    .iqp-skin .chat-section > .limit-warning,
    .iqp-skin .chat-section > .returning-message { order: -2; }
    .iqp-skin .chat-section > .disclaimer { order: -1; margin: 0 0 16px; }
}
@media (max-width: 640px) {
    .iqp-skin .iqp-brand span,
    .iqp-skin .top-nav .nav-link.iqp-hide-sm { display: none; }
    .iqp-skin .header-section { padding: 32px 0 22px; }
    .iqp-skin .iqp-emblem { transform: scale(.8); margin: -18px auto 0; }
    .iqp-skin .intro-text p { font-size: 15.5px; }
    .iqp-skin .tech-strip__viewport { height: 88px; }
    .iqp-skin .tech-strip__item { flex-basis: 104px; }
    .iqp-skin .tech-strip__item img { max-width: calc(76px * var(--fit, 1)); max-height: calc(40px * var(--fit, 1)); }
    .iqp-skin .chat-section { padding: 20px 16px; }
    .iqp-skin .greeting { font-size: 23px; }
    .iqp-skin .top-nav { margin-bottom: 0; }
    .iqp-skin .user-panel { margin-left: 0; width: 100%; flex-direction: row; justify-content: space-between; text-align: left; border-radius: 18px; padding: 8px; }
    .iqp-skin .limit-warning, .iqp-skin .toggle-upload-btn { text-align: left; }
    .iqp-skin .submit-btn { width: 100%; margin-top: 4px; }
    .iqp-skin .response-container { padding: 18px 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .iqp-skin *, .iqp-skin *::before, .iqp-skin *::after { animation: none !important; }
}

/* the account avatar is ALWAYS a circle (operator 2026-10-03: oval on phones, light theme). The old phone
   rules stack .user-panel / .user-info and let flex squeeze the 30 px box sideways. Locked here. */
.iqp-skin .user-avatar {
    flex: 0 0 30px; width: 30px; height: 30px; min-width: 30px; min-height: 30px; max-width: 30px; max-height: 30px;
    aspect-ratio: 1 / 1; border-radius: 50%; padding: 0; box-sizing: border-box;
    background-size: cover; background-position: center; object-fit: cover;
}
