:root{--gre-bg:#f7f8fc;--gre-card:#fff;--gre-ink:#111827;--gre-muted:#64748b;--gre-line:#e5e7eb;--gre-brand:#2748ff;--gre-brand2:#7c3aed;--gre-green:#059669;--gre-warm:#fff7ed;--gre-shadow:0 18px 55px rgba(15,23,42,.08);--gre-radius:24px}
*{box-sizing:border-box}.gre-body{margin:0;background:var(--gre-bg);color:var(--gre-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;line-height:1.7}.gre-body a{color:#2547d9}.gre-nav{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.9);backdrop-filter:blur(14px);border-bottom:1px solid var(--gre-line)}.gre-nav__inner{max-width:1180px;margin:auto;padding:12px 22px;display:flex;align-items:center;justify-content:space-between;gap:18px}.gre-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#0f172a;font-weight:950;letter-spacing:-.02em}.gre-brand__mark{width:34px;height:34px;border-radius:11px;background:linear-gradient(135deg,var(--gre-brand),var(--gre-brand2));box-shadow:0 10px 25px rgba(39,72,255,.22)}.gre-nav__links{display:flex;gap:14px;flex-wrap:wrap}.gre-nav__links a{text-decoration:none;color:#334155;font-weight:750;font-size:.92rem}.gre-nav__links a:hover{color:var(--gre-brand)}.gre-wrap{max-width:1180px;margin:0 auto;padding:0 22px}.gre-hero{padding:72px 0 38px;background:radial-gradient(circle at 10% 0%,#e0e7ff,transparent 28%),radial-gradient(circle at 90% 5%,#f3e8ff,transparent 26%),linear-gradient(180deg,#fff,var(--gre-bg))}.gre-kicker{display:inline-flex;align-items:center;gap:8px;border:1px solid #c7d2fe;background:#eef2ff;color:#3730a3;border-radius:999px;padding:7px 12px;font-size:.78rem;font-weight:950;text-transform:uppercase;letter-spacing:.08em}.gre-hero h1{font-size:clamp(2.25rem,5vw,5.2rem);line-height:.96;letter-spacing:-.065em;margin:.34em 0 .24em;color:#07111f}.gre-lead{font-size:1.15rem;max-width:880px;color:#475569}.gre-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.gre-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 18px;border-radius:14px;background:#fff;border:1px solid #d8deef;text-decoration:none;color:#111827;font-weight:900;box-shadow:0 10px 24px rgba(15,23,42,.06);cursor:pointer}.gre-btn.primary{background:#111827;color:#fff;border-color:#111827}.gre-btn.blue{background:linear-gradient(135deg,var(--gre-brand),var(--gre-brand2));border-color:transparent;color:#fff}.gre-section{padding:54px 0}.gre-section h2{font-size:clamp(1.55rem,3vw,2.45rem);line-height:1.08;letter-spacing:-.04em;margin:0 0 12px}.gre-intro{color:var(--gre-muted);max-width:820px;margin:0 0 24px}.gre-grid{display:grid;gap:18px}.gre-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.gre-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.gre-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.gre-card{background:var(--gre-card);border:1px solid var(--gre-line);border-radius:var(--gre-radius);padding:24px;box-shadow:var(--gre-shadow)}.gre-card h3{font-size:1.12rem;line-height:1.25;margin:0 0 9px}.gre-card p{color:#526173;margin:.35rem 0}.gre-card.small{padding:18px;border-radius:20px}.gre-tags{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.gre-tag{display:inline-flex;border-radius:999px;background:#f1f5f9;border:1px solid #e2e8f0;color:#334155;padding:5px 9px;font-size:.8rem;font-weight:800}.gre-table{width:100%;border-collapse:separate;border-spacing:0;overflow:hidden;border:1px solid var(--gre-line);border-radius:18px;background:#fff;margin:18px 0}.gre-table th,.gre-table td{padding:13px 14px;text-align:left;border-bottom:1px solid var(--gre-line);vertical-align:top}.gre-table th{background:#f8fafc;font-weight:950}.gre-table tr:last-child td{border-bottom:none}.gre-callout{border:1px solid #bfdbfe;background:#eff6ff;border-radius:22px;padding:22px;margin:18px 0}.gre-warning{border-color:#fed7aa;background:#fff7ed}.gre-proof{background:#0f172a;color:#f8fafc;border-radius:24px;padding:26px;margin:22px 0}.gre-proof p,.gre-proof li{color:#dbeafe}.gre-proof a{color:#c7d2fe}.gre-list{display:grid;gap:10px;padding:0;margin:18px 0;list-style:none}.gre-list li{border:1px solid var(--gre-line);background:#fff;border-radius:16px;padding:12px 14px}.gre-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:24px;align-items:start}.gre-sidebar{position:sticky;top:78px}.gre-breadcrumb{font-size:.9rem;color:var(--gre-muted);padding:14px 0}.gre-breadcrumb a{text-decoration:none;color:#475569}.gre-tool{background:#fff;border:1px solid var(--gre-line);border-radius:26px;padding:24px;box-shadow:var(--gre-shadow)}.gre-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.gre-field{display:grid;gap:6px}.gre-field label{font-weight:900;font-size:.9rem}.gre-field input,.gre-field select,.gre-field textarea{width:100%;border:1px solid #d1d5db;border-radius:14px;padding:12px 13px;font:inherit;background:#fff}.gre-field input[type=range]{padding:0}.gre-result{margin-top:18px;border:1px solid #c7d2fe;background:#eef2ff;border-radius:20px;padding:18px}.gre-score{font-size:2.4rem;line-height:1;font-weight:950;letter-spacing:-.04em;color:#1e1b4b}.gre-meter{height:12px;background:#e2e8f0;border-radius:999px;overflow:hidden;margin:12px 0}.gre-meter span{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--gre-brand),var(--gre-green));border-radius:999px;transition:width .25s ease}.gre-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.gre-checks label{border:1px solid var(--gre-line);border-radius:14px;padding:10px;background:#fff;display:flex;gap:8px;align-items:flex-start}.gre-definition{font-size:1.08rem;background:#fff;border-left:5px solid var(--gre-brand);border-radius:18px;padding:20px;border-top:1px solid var(--gre-line);border-right:1px solid var(--gre-line);border-bottom:1px solid var(--gre-line)}.gre-footer{margin-top:56px;background:#0b1020;color:#cbd5e1;padding:40px 0}.gre-footer a{color:#e0e7ff}.gre-home-cta{background:#101827;color:#fff;border-bottom:1px solid rgba(255,255,255,.12)}.gre-home-cta a{color:#fff}.gre-home-cta__inner{max-width:1140px;margin:auto;padding:12px 24px;display:flex;gap:14px;align-items:center;justify-content:space-between}.gre-home-cta__inner p{margin:0;line-height:1.45}.gre-home-cta__btn{white-space:nowrap;border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:8px 12px;text-decoration:none;font-weight:900;background:rgba(255,255,255,.08)}.gre-mini{font-size:.88rem;color:var(--gre-muted)}.gre-entity-map{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.gre-entity-map a{display:block;text-decoration:none;background:#fff;border:1px solid var(--gre-line);border-radius:16px;padding:12px;font-weight:850;color:#0f172a}.gre-entity-map a span{display:block;font-weight:600;color:#64748b;font-size:.82rem;margin-top:2px}.gre-output-lines{white-space:pre-line}.gre-lang-switch{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.gre-lang-switch a{font-size:.86rem;border:1px solid var(--gre-line);border-radius:999px;background:#fff;padding:7px 10px;text-decoration:none;color:#334155;font-weight:850}@media(max-width:900px){.gre-grid.two,.gre-grid.three,.gre-grid.four,.gre-layout,.gre-form-grid,.gre-checks,.gre-entity-map{grid-template-columns:1fr}.gre-sidebar{position:static}.gre-home-cta__inner{display:block}.gre-home-cta__btn{display:inline-flex;margin-top:8px}.gre-nav__inner{align-items:flex-start;flex-direction:column}.gre-hero{padding-top:48px}}

.gre-result-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.gre-mini-btn{border:1px solid #cbd5e1;background:#fff;border-radius:999px;padding:8px 11px;font-weight:850;color:#1e293b;cursor:pointer}.gre-mini-btn:hover{border-color:#2748ff;color:#2748ff}@media print{.gre-nav,.gre-footer,.gre-actions,.gre-sidebar,.gre-home-cta,.gre-result-actions{display:none!important}.gre-body{background:#fff}.gre-card,.gre-tool,.gre-result{box-shadow:none}.gre-hero{padding:20px 0;background:#fff}}


/* === Reference Engine V2 : outils métiers commerciaux === */
.gre-tool-suite{display:grid;gap:18px}
.gre-tool-kpi{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}
.gre-kpi-box{border:1px solid var(--gre-line);border-radius:18px;background:#fff;padding:16px;box-shadow:0 10px 28px rgba(15,23,42,.06)}
.gre-kpi-box strong{display:block;font-size:1.45rem;color:#1d4ed8;line-height:1}
.gre-kpi-box span{font-size:.84rem;color:var(--gre-muted)}
.gre-textarea{min-height:120px;resize:vertical}
.gre-output-lines{white-space:pre-line}
.gre-risk-list{display:grid;gap:8px;margin:12px 0;padding:0;list-style:none}
.gre-risk-list li{padding:10px 12px;border-radius:12px;background:#fff7ed;border:1px solid #fed7aa;color:#7c2d12}
.gre-playbook{background:linear-gradient(180deg,#f8fbff,#fff);border:1px solid #bfdbfe;border-radius:20px;padding:18px;margin-top:14px}
.gre-playbook h4{margin:.2rem 0 .5rem}
.gre-sem-box{background:#0f172a;color:#fff;border-radius:24px;padding:26px;box-shadow:var(--gre-shadow)}
.gre-sem-box p,.gre-sem-box li{color:#dbeafe}
.gre-sem-box a{color:#fff;text-decoration:underline}
.gre-query-grid{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.gre-query{display:inline-flex;border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;border-radius:999px;padding:8px 12px;font-weight:800;font-size:.82rem}
.gre-matrix{overflow:auto;border-radius:18px;border:1px solid var(--gre-line);background:#fff}
.gre-matrix table{width:100%;border-collapse:collapse}
.gre-matrix th,.gre-matrix td{padding:12px;border-bottom:1px solid var(--gre-line);vertical-align:top}
.gre-matrix th{background:#f8fafc;text-align:left;color:#0f172a}
.gre-action-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.gre-mini-btn{appearance:none;border:1px solid #bfdbfe;background:#fff;color:#1d4ed8;border-radius:12px;padding:9px 12px;font-weight:900;cursor:pointer}
.gre-mini-btn:hover{background:#eff6ff;text-decoration:none}
.gre-result pre{background:#0f172a;color:#e5edff;border-radius:14px;padding:14px;overflow:auto;white-space:pre-wrap}
.gre-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.gre-check{display:flex;gap:8px;align-items:flex-start;border:1px solid var(--gre-line);background:#fff;border-radius:14px;padding:12px}
.gre-check input{margin-top:.35rem}
.gre-persona-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.gre-persona-tabs button{border:1px solid var(--gre-line);background:#fff;border-radius:999px;padding:8px 12px;font-weight:800;cursor:pointer}
@media(max-width:900px){.gre-tool-kpi{grid-template-columns:1fr 1fr}.gre-check-grid{grid-template-columns:1fr}}
@media(max-width:620px){.gre-tool-kpi{grid-template-columns:1fr}}


/* === V3 product layer === */
.gre-product-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:20px}.gre-product-strip a{border:1px solid var(--gre-line);border-radius:18px;background:#fff;padding:18px;text-decoration:none;color:#0f172a;box-shadow:0 10px 28px rgba(15,23,42,.06)}.gre-product-strip strong{display:block;font-size:1.05rem}.gre-trust-badge{display:inline-flex;border:1px solid #bbf7d0;background:#f0fdf4;color:#166534;border-radius:999px;padding:7px 11px;font-weight:900;font-size:.82rem}.gre-dashboard{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.gre-dashboard-card{background:#fff;border:1px solid var(--gre-line);border-radius:20px;padding:18px;box-shadow:0 12px 30px rgba(15,23,42,.06)}.gre-dashboard-card strong{font-size:1.8rem;display:block;color:#1d4ed8}@media(max-width:900px){.gre-product-strip,.gre-dashboard{grid-template-columns:1fr 1fr}}@media(max-width:620px){.gre-product-strip,.gre-dashboard{grid-template-columns:1fr}}



/* === Geniuspace V4 Product Layer: DÉCLIC OS, workflows, scorecards, SEM pages === */
.v4-wrap{max-width:1180px;margin:0 auto;padding:0 22px}
.v4-section{padding:34px 0}
.v4-kicker{display:inline-flex;gap:8px;align-items:center;padding:7px 12px;border-radius:999px;background:rgba(37,99,235,.08);border:1px solid rgba(37,99,235,.18);color:#1d4ed8;font-weight:900;font-size:.78rem;text-transform:uppercase;letter-spacing:.06em}
.v4-grid{display:grid;gap:18px}
.v4-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.v4-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.v4-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.v4-grid.five{grid-template-columns:repeat(5,minmax(0,1fr))}
.v4-card{background:#fff;border:1px solid rgba(15,23,42,.10);border-radius:22px;padding:24px;box-shadow:0 16px 40px rgba(15,23,42,.06);color:#0f172a;text-decoration:none}
.v4-card:hover{transform:translateY(-2px);box-shadow:0 20px 50px rgba(15,23,42,.10);text-decoration:none}
.v4-card h2,.v4-card h3{margin-top:0;letter-spacing:-.03em;color:#0f172a}
.v4-card p,.v4-muted{color:#475569}
.v4-panel{background:linear-gradient(135deg,#f8fafc,#eff6ff);border:1px solid rgba(37,99,235,.14);border-radius:26px;padding:30px;margin:22px 0;box-shadow:0 20px 60px rgba(30,64,175,.07)}
.v4-dark{background:linear-gradient(135deg,#0f172a,#1e293b);color:#fff;border-color:rgba(255,255,255,.12)}
.v4-dark h2,.v4-dark h3,.v4-dark strong{color:#fff}.v4-dark p,.v4-dark li{color:#dbeafe}
.v4-form{display:grid;gap:18px;margin-top:18px}
.v4-form .row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.v4-field label{display:block;font-weight:850;color:#0f172a;margin-bottom:8px}
.v4-dark .v4-field label{color:#fff}
.v4-field input,.v4-field select,.v4-field textarea{width:100%;border:1px solid rgba(15,23,42,.16);border-radius:14px;padding:12px 14px;background:#fff;color:#0f172a;font:inherit}
.v4-field textarea{min-height:120px;resize:vertical}
.v4-range{accent-color:#2563eb}
.v4-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.v4-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:14px;padding:12px 16px;background:#2563eb;color:#fff;font-weight:900;text-decoration:none;cursor:pointer}
.v4-btn.secondary{background:#fff;color:#0f172a;border:1px solid rgba(15,23,42,.14)}
.v4-btn.soft{background:#eff6ff;color:#1d4ed8}
.v4-output{background:#fff;border:1px solid rgba(15,23,42,.12);border-radius:18px;padding:18px;margin-top:16px;white-space:pre-wrap;color:#0f172a}
.v4-score{display:flex;align-items:center;gap:16px;margin:14px 0}
.v4-score__num{width:92px;height:92px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#2563eb var(--score,0%),#e2e8f0 0);font-size:1.6rem;font-weight:950;color:#0f172a}
.v4-score__num span{background:#fff;border-radius:50%;width:72px;height:72px;display:grid;place-items:center}
.v4-list{display:grid;gap:10px;margin:16px 0;padding:0;list-style:none}
.v4-list li{background:#f8fafc;border:1px solid rgba(15,23,42,.08);border-radius:14px;padding:12px 14px;color:#334155}
.v4-pillbar{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.v4-pill{border:1px solid rgba(37,99,235,.18);background:#eff6ff;color:#1d4ed8;border-radius:999px;padding:6px 10px;font-size:.82rem;font-weight:850}
.v4-table{width:100%;border-collapse:separate;border-spacing:0;margin:18px 0;border:1px solid rgba(15,23,42,.10);border-radius:18px;overflow:hidden;background:#fff}
.v4-table th,.v4-table td{padding:13px 14px;text-align:left;border-bottom:1px solid rgba(15,23,42,.08);vertical-align:top}
.v4-table th{background:#f8fafc;color:#0f172a;font-size:.88rem}.v4-table tr:last-child td{border-bottom:0}
.v4-cta{border-radius:24px;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;padding:28px;margin:26px 0}.v4-cta h2{color:#fff;margin-top:0}.v4-cta p{color:#eef2ff}
.v4-step{display:grid;grid-template-columns:44px 1fr;gap:14px;align-items:start}.v4-step b{width:44px;height:44px;border-radius:50%;background:#2563eb;color:#fff;display:grid;place-items:center}
.v4-roadmap{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.v4-roadmap .phase{background:#fff;border:1px solid rgba(15,23,42,.10);border-radius:18px;padding:18px}
.v4-mini-dashboard{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.v4-metric{border-radius:18px;background:#fff;border:1px solid rgba(15,23,42,.10);padding:18px}.v4-metric strong{display:block;font-size:1.6rem;color:#1d4ed8}
@media(max-width:900px){.v4-grid.two,.v4-grid.three,.v4-grid.four,.v4-form .row,.v4-roadmap,.v4-mini-dashboard{grid-template-columns:1fr}.v4-wrap{padding:0 16px}}

.proofcraft-kpis .v4-card h3{font-size:1.55rem;margin-bottom:8px;color:#1d4ed8}
.proofcraft-kpis .v4-card{min-height:190px}
@media(max-width:1100px){.v4-grid.five{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.v4-grid.five{grid-template-columns:1fr}}

/* === GeniusEngine v7 interactive modules === */
.v7-score-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
.v7-score-grid>div,.v7-hero-score{background:#fff;border:1px solid rgba(15,23,42,.10);border-radius:20px;padding:18px;box-shadow:0 12px 30px rgba(15,23,42,.06)}
.v7-score-grid strong,.v7-hero-score strong{display:block;font-size:clamp(1.65rem,4vw,2.8rem);line-height:1;color:#1d4ed8;letter-spacing:-.05em}
.v7-score-grid span,.v7-hero-score span{display:block;color:#64748b;font-size:.88rem;font-weight:800;margin-top:5px}
.v7-bars{display:grid;gap:10px;margin:16px 0}.v7-bar{display:grid;gap:6px}.v7-bar>div{display:flex;justify-content:space-between;gap:12px;color:#0f172a}.v7-bar span{color:#64748b;font-weight:850}.v7-bar i{display:block;height:11px;border-radius:999px;background:#e2e8f0;overflow:hidden}.v7-bar b{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#2563eb,#7c3aed)}
.v7-next{border:1px solid #bfdbfe;background:#eff6ff;border-radius:18px;padding:16px;margin:16px 0}.v7-next p{margin:.35rem 0 0;color:#1e3a8a}.v7-next strong{color:#1e40af}
.v4-output blockquote{border-left:4px solid #2563eb;background:#f8fafc;margin:14px 0;padding:12px 14px;border-radius:12px;color:#1f2937}.v4-output code{background:#e2e8f0;border-radius:7px;padding:2px 6px}.v4-output pre{background:#0f172a;color:#e5edff;border-radius:14px;padding:14px;overflow:auto;white-space:pre-wrap}
@media(max-width:800px){.v7-score-grid{grid-template-columns:1fr}}


/* === Reference Engine v10 styles === */
.ref-module-grid .v4-card{position:relative;overflow:hidden}.ref-module-grid .v4-card:before{content:"";position:absolute;inset:0 0 auto 0;height:4px;background:linear-gradient(90deg,#2563eb,#7c3aed,#f59e0b)}
.ref-card .v4-kicker{margin-bottom:10px}.ref-card p:last-child{margin-bottom:0}.ref-code-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.ref-endpoint{background:#0f172a;color:#e5edff;border-radius:16px;padding:14px;overflow:auto}.ref-endpoint code{color:#bfdbfe}.ref-status-low{color:#166534}.ref-status-medium{color:#92400e}.ref-status-high{color:#991b1b}.v4-output table code,.v4-table code{font-size:.86em}.v4-output blockquote{font-size:1.05rem;line-height:1.55}.v4-output pre{max-height:420px}@media(max-width:900px){.ref-code-grid{grid-template-columns:1fr}.ref-module-grid{grid-template-columns:1fr!important}}


/* === Tools Intelligence Layer v11 === */
.ti-tool{border:1px solid rgba(37,99,235,.18);box-shadow:0 20px 50px rgba(15,23,42,.08)}
.ti-form .row,.ti-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ti-wide{grid-column:1/-1}.ti-form textarea,.ti-form input,.ti-form select{width:100%}.ti-output{margin-top:18px;padding:18px;border-radius:18px;background:#f8fafc;border:1px solid #e2e8f0;overflow:auto}.ti-output pre{white-space:pre-wrap;background:#0f172a;color:#e2e8f0;border-radius:14px;padding:16px;margin-top:14px}.ti-score{display:inline-flex;align-items:baseline;gap:10px;border-radius:20px;padding:14px 18px;background:#e0f2fe;margin:8px 0 16px}.ti-score strong{font-size:44px;line-height:1}.ti-score.good{background:#dcfce7}.ti-score.mid{background:#fef9c3}.ti-score.bad{background:#fee2e2}.ti-bars{display:grid;gap:10px;margin:12px 0}.ti-bar{position:relative;background:white;border:1px solid #e2e8f0;border-radius:14px;padding:10px 12px;overflow:hidden}.ti-bar i{position:absolute;left:0;bottom:0;height:4px;background:linear-gradient(90deg,#2563eb,#22c55e)}.ti-bar span{position:relative;z-index:1}.ti-bar b{float:right;position:relative;z-index:1}.ti-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}.ti-kpis div{background:white;border:1px solid #e2e8f0;border-radius:16px;padding:14px}.ti-kpis b{display:block;font-size:24px}.ti-next{background:#fff7ed;border:1px solid #fed7aa;border-radius:16px;padding:16px;margin:14px 0}@media(max-width:760px){.ti-form,.ti-kpis{grid-template-columns:1fr}.ti-score strong{font-size:34px}}


/* === Geniuspace v12 engineering layer === */
.v12-panel{border:1px solid rgba(124,58,237,.22);box-shadow:0 24px 70px rgba(30,64,175,.10)}
.v12-form{margin-top:18px}.v12-form .ti-wide{grid-column:1/-1}
.v12-output{margin-top:18px;padding:18px;border-radius:20px;background:#f8fafc;border:1px solid #dbeafe;color:#0f172a;overflow:auto}.v12-output pre{white-space:pre-wrap;background:#0f172a;color:#e2e8f0;border-radius:16px;padding:16px;line-height:1.5;max-height:520px;overflow:auto}.v12-score{display:inline-flex;align-items:center;gap:12px;border-radius:22px;padding:12px 16px;margin:8px 0 16px;background:#e0f2fe}.v12-score strong{font-size:46px;line-height:1;letter-spacing:-.06em}.v12-score.good{background:#dcfce7}.v12-score.mid{background:#fef9c3}.v12-score.bad{background:#fee2e2}.v12-bars{display:grid;gap:10px;margin:14px 0}.v12-bar{position:relative;border:1px solid #e2e8f0;background:#fff;border-radius:14px;padding:10px 12px;overflow:hidden}.v12-bar span,.v12-bar b{position:relative;z-index:1}.v12-bar b{float:right}.v12-bar i{position:absolute;left:0;bottom:0;height:5px;background:linear-gradient(90deg,#2563eb,#7c3aed,#22c55e);border-radius:999px}.v12-next{background:#eef2ff;border:1px solid #c7d2fe;border-radius:16px;padding:16px;margin:14px 0}.v12-next p{margin:.4rem 0 0;color:#312e81}
@media(max-width:820px){.v12-form{grid-template-columns:1fr}.v12-score strong{font-size:36px}}

/* Patch 2026-05-02: do not show empty result panels as fake buttons. */
.gre-result:empty,.v4-output:empty,.v12-output:empty,[data-ti-output]:empty,[data-ref-output]:empty{display:none}


/* Patch Reference Engine tools: real action buttons + no fake empty output panel. */
.gre-tool-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 4px;align-items:center}
.gre-result[hidden],.gre-result--empty{display:none!important}
.gre-result:empty,.gre-result:not([data-ready]):empty{display:none!important}
.v4-output:empty,.v12-output:empty,[data-ti-output]:empty,[data-ref-output]:empty{display:none!important}
