:root{
  --ui-bg:#050505;--ui-sidebar:#08090b;--ui-panel:#0b0c0e;--ui-panel-2:#111216;
  --ui-line:#282a30;--ui-line-strong:#3a3d44;--ui-text:#f4f4f5;--ui-muted:#a6a8b0;--ui-dim:#858994;
  --ui-radius-sm:9px;--ui-radius-md:12px;--ui-radius-lg:18px;
  --ui-shadow:0 18px 55px rgba(0,0,0,.18);
  --focus-ring:0 0 0 3px rgba(17,17,17,.12);

  --bg:#fff;--surface:#fff;--soft:#f7f7f6;--soft-2:#f1f1ef;--ink:#0b0b0b;--muted:#666661;--quiet:#90908a;
  --line:#e6e6e2;--line-strong:#cfcfca;--black:#0b0b0b;--white:#fff;
  --r-sm:10px;--r-md:16px;--r-lg:26px;--shadow:0 18px 55px rgba(0,0,0,.07);
  --shell:1180px;--ease:cubic-bezier(.22,1,.36,1);--text:var(--ink);--border:var(--line);--text-tertiary:var(--quiet);--surface-soft:var(--soft)
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input,textarea{font:inherit}::selection{background:#111;color:#fff}.shell{width:min(calc(100% - 48px),var(--shell));margin-inline:auto}
.site-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.86);border-bottom:1px solid transparent;backdrop-filter:blur(18px);transition:.25s ease}.site-header.is-scrolled{border-color:var(--line)}.site-nav{height:72px;display:flex;align-items:center;justify-content:space-between}.wordmark{font-weight:700;font-size:18px;letter-spacing:-.04em}.site-links{display:flex;align-items:center;gap:24px;color:var(--muted);font-size:14px}.site-links>a:not(.btn){transition:color .18s}.site-links>a:not(.btn):hover{color:var(--ink)}
.btn{min-height:44px;padding:0 18px;border:1px solid var(--line-strong);border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:10px;background:#fff;color:var(--ink);font-weight:600;font-size:14px;cursor:pointer;transition:transform .2s var(--ease),box-shadow .2s,border-color .2s,background .2s}.btn:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(0,0,0,.08)}.btn-primary{background:var(--black);border-color:var(--black);color:#fff}.btn-primary:hover{background:#242424}.btn-secondary{background:#fff}.btn-large{min-height:50px;padding:0 22px}.btn-nav{min-height:40px;padding-inline:16px}.btn-block{width:100%}
.flash-container{padding-top:16px}.flash{padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--soft);font-size:14px}.flash-error,.flash.error{border-color:#e9caca;background:#fff7f7;color:#742424}.flash-success,.flash.success{border-color:#cfe0d1;background:#f6faf6;color:#234d2a}
.hero-eyebrow,.section-kicker,.dashboard-kicker,.composer-label,.result-kicker,.result-block-label,.auth-card-head>span{font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--quiet)}
.landing-hero{padding:128px 0 112px;min-height:720px;display:flex;flex-direction:column;justify-content:center}.landing-hero h1,.pricing-hero h1{margin:20px 0 24px;max-width:980px;font-size:clamp(58px,7.5vw,104px);line-height:.92;letter-spacing:-.075em;font-weight:650}.hero-lead{max-width:720px;margin:0;color:var(--muted);font-size:clamp(18px,2vw,24px);line-height:1.55;letter-spacing:-.02em}.hero-actions{margin-top:34px;display:flex;gap:10px;flex-wrap:wrap}.hero-proof{margin-top:44px;padding-top:20px;border-top:1px solid var(--line);display:flex;gap:28px;flex-wrap:wrap;color:var(--quiet);font-size:12px}
.section-pad{padding:110px 0}.product-statement{border-top:1px solid var(--line)}.statement-grid{margin-top:28px;display:grid;grid-template-columns:1.2fr .8fr;gap:80px}.statement-grid h2,.memory-panel h2,.final-cta h2{margin:0;font-size:clamp(36px,4.6vw,64px);line-height:1.02;letter-spacing:-.055em;font-weight:600}.statement-grid p,.memory-panel p{margin:6px 0 0;color:var(--muted);font-size:18px;line-height:1.7}
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.feature-card{min-height:330px;padding:28px;border:1px solid var(--line);border-radius:var(--r-lg);display:flex;flex-direction:column;transition:transform .3s var(--ease),box-shadow .3s,border-color .3s}.feature-card:hover{transform:translateY(-5px);box-shadow:var(--shadow);border-color:var(--line-strong)}.feature-index{color:var(--quiet);font-size:12px}.feature-card h3{margin:auto 0 14px;font-size:25px;letter-spacing:-.04em}.feature-card p{margin:0;color:var(--muted);line-height:1.65}
.memory-panel{padding:64px;border-radius:32px;background:var(--black);color:#fff}.memory-panel .section-kicker{color:#888}.memory-panel h2{max-width:780px;margin-top:22px;color:#fff}.memory-panel p{max-width:760px;color:#b8b8b4}.text-link{display:inline-flex;gap:10px;margin-top:28px;font-weight:600}.text-link span{transition:transform .2s}.text-link:hover span{transform:translateX(4px)}
.how-section{border-top:1px solid var(--line)}.steps{margin-top:38px;border-top:1px solid var(--line)}.step{display:grid;grid-template-columns:80px 1fr;gap:20px;padding:32px 0;border-bottom:1px solid var(--line)}.step>span{color:var(--quiet);font-size:13px}.step h3{margin:0 0 8px;font-size:22px;letter-spacing:-.03em}.step p{margin:0;color:var(--muted);font-size:16px;line-height:1.6}.final-cta{margin-bottom:110px;padding:60px;border:1px solid var(--line);border-radius:32px;display:flex;align-items:flex-end;justify-content:space-between;gap:48px}.final-cta h2{max-width:760px;margin-top:20px}
.pricing-hero{padding:110px 0 80px}.pricing-hero p{max-width:620px;color:var(--muted);font-size:20px}.pricing-wrap{padding-bottom:120px}.pricing-grid{max-width:1000px;margin-inline:auto;display:grid;grid-template-columns:1fr 1fr;gap:18px}.pricing-card{min-height:560px;padding:42px;border:1px solid var(--line);border-radius:28px;display:flex;flex-direction:column;background:#fff;transition:transform .35s var(--ease),box-shadow .35s,border-color .35s}.pricing-card:hover{transform:translateY(-6px);box-shadow:var(--shadow);border-color:var(--line-strong)}.pricing-card-pro{border-color:#777}.plan-top{min-height:110px}.plan-name{font-size:18px;font-weight:700}.plan-top p{max-width:390px;color:var(--muted);line-height:1.6}.plan-price{margin:34px 0 24px;font-size:68px;line-height:1;letter-spacing:-.065em;font-weight:650}.plan-price span{font-size:15px;color:var(--quiet);letter-spacing:0;font-weight:500}.plan-rule{height:1px;background:var(--line)}.pricing-card ul{margin:28px 0 40px;padding:0;list-style:none}.pricing-card li{padding:14px 0;border-bottom:1px solid var(--line);color:var(--muted)}.pricing-card .btn,.pricing-card form,.plan-current{margin-top:auto}.plan-current{display:block;padding:14px;text-align:center;border:1px solid var(--line);border-radius:12px;font-weight:600}.pricing-note{max-width:1000px;margin:24px auto 0;padding:28px;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 2fr;gap:50px}.pricing-note p{margin:0;color:var(--muted);line-height:1.65}
.auth-page{min-height:calc(100vh - 72px);padding-top:90px;padding-bottom:110px;display:grid;grid-template-columns:1.05fr .7fr;gap:110px;align-items:center}.auth-copy-panel h1{margin:20px 0 24px;font-size:clamp(48px,6vw,78px);line-height:.98;letter-spacing:-.065em}.auth-copy-panel p{max-width:620px;color:var(--muted);font-size:18px;line-height:1.7}.auth-card{padding:36px;border:1px solid var(--line);border-radius:24px}.auth-card-head h2{margin:14px 0 8px;font-size:30px;letter-spacing:-.04em}.auth-card-head p{margin:0 0 28px;color:var(--muted)}.field{display:grid;gap:8px;margin-bottom:18px}.field label{font-size:13px;font-weight:600}.field input,.decision-form textarea{width:100%;border:1px solid var(--line-strong);border-radius:12px;background:#fff;color:var(--ink);outline:none;transition:border-color .18s,box-shadow .18s}.field input{height:50px;padding:0 14px}.field input:focus,.decision-form textarea:focus{border-color:#222;box-shadow:0 0 0 3px rgba(0,0,0,.06)}.auth-switch{margin:22px 0 0;text-align:center;color:var(--muted);font-size:13px}.auth-switch a{color:var(--ink);font-weight:600}
.site-footer{border-top:1px solid var(--line);padding:34px 0}.footer-inner{display:flex;justify-content:space-between;gap:30px;color:var(--quiet);font-size:12px}.footer-inner>div{display:flex;gap:12px}.footer-inner strong{color:var(--ink)}.footer-inner p{margin:0}
/* Dashboard: preserves every original Jinja field and result section, only replaces presentation. */
.dashboard-body{background:#fff;color:var(--ink)}.dashboard-nav{height:68px;padding:0 28px;position:sticky;top:0;z-index:100;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:rgba(255,255,255,.9);backdrop-filter:blur(18px)}.dashboard-nav .brand{display:flex;align-items:center;gap:10px}.brand-mark{width:40px;height:40px;border:1px solid #222;border-radius:11px;display:grid;place-items:center;font-weight:700}.brand-name{display:flex;flex-direction:column}.brand-name strong{font-size:15px}.brand-name small{margin-top:2px;color:var(--quiet);font-size:8px;letter-spacing:.14em}.dashboard-nav-right{display:flex;align-items:center;gap:10px}.usage{margin-right:12px;color:var(--quiet);font-size:12px;text-transform:uppercase;letter-spacing:.06em}.dashboard-shell{width:min(calc(100% - 48px),1240px);margin:auto;padding:94px 0 120px}.dashboard-intro{max-width:920px;margin-bottom:58px}.dashboard-intro h1{margin:20px 0 24px;font-size:clamp(58px,7vw,96px);line-height:.94;letter-spacing:-.07em;font-weight:650}.dashboard-intro h1 span{display:block;color:#858581}.dashboard-intro p{max-width:820px;margin:0;color:var(--muted);font-size:19px;line-height:1.65}.decision-composer{padding:36px;border:1px solid var(--line);border-radius:26px;background:#fff}.composer-header{display:flex;justify-content:space-between;gap:24px;margin-bottom:24px}.composer-header h2{margin:10px 0 0;font-size:28px;letter-spacing:-.04em}.composer-usage{color:var(--quiet);font-size:12px}.input-guidance{padding:14px 0 22px;color:var(--muted);font-size:14px;line-height:1.6}.decision-form textarea{min-height:210px;padding:20px;font-size:17px;line-height:1.6;resize:vertical}.decision-form-bottom{margin-top:16px;display:flex;align-items:center;justify-content:space-between;gap:20px}.decision-form-bottom>div{color:var(--quiet);font-size:12px}.decision-submit{border:0}
.dashboard-flash{margin-bottom:18px;padding:14px 16px;border:1px solid #ecc;background:#fff7f7;border-radius:12px;color:#762727}.decision-result{margin-top:78px}.result-topline{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;padding-bottom:24px;border-bottom:1px solid var(--line)}.result-topline h2{margin:10px 0 0;font-size:34px;letter-spacing:-.045em}.result-status{padding:8px 12px;border:1px solid var(--line-strong);border-radius:999px;font-size:11px;font-weight:700;letter-spacing:.06em}.dashboard-score-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}.dashboard-score-grid>div,.dashboard-score-grid article{min-height:150px;padding:22px;border:1px solid var(--line);border-radius:18px}.dashboard-score-grid span{color:var(--quiet);font-size:10px;font-weight:700;letter-spacing:.12em}.dashboard-score-grid strong,.dashboard-score-grid h3{display:block;margin-top:24px;font-size:36px;letter-spacing:-.05em}.result-block,.result-primary,.next-action-dashboard{margin-top:14px;padding:30px;border:1px solid var(--line);border-radius:20px}.result-primary{background:var(--black);color:#fff;border-color:var(--black)}.result-primary .result-block-label{color:#888}.result-primary h2,.result-primary p{color:#fff}.result-block h2,.result-primary h2{margin:14px 0 0;font-size:28px;line-height:1.35;letter-spacing:-.035em}.result-two-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}.result-list{margin-top:18px}.result-list p{margin:0;padding:13px 0;border-bottom:1px solid var(--line);color:var(--muted);line-height:1.6}.result-list p:last-child{border-bottom:0}.result-primary .result-list p{border-color:#292929;color:#d4d4d0}.critical-assumption{padding:18px 0;border-bottom:1px solid var(--line)}.critical-assumption:last-child{border-bottom:0}.critical-assumption>strong{font-size:17px}.critical-metrics{margin-top:12px;display:flex;gap:24px;color:var(--quiet);font-size:12px}.experiment-dashboard{margin-top:18px;display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.experiment-dashboard>div{padding:18px;background:var(--soft);border-radius:14px}.experiment-dashboard span{color:var(--quiet);font-size:10px;font-weight:700;letter-spacing:.1em}.experiment-dashboard p{margin:8px 0 0;color:var(--muted);line-height:1.55}.next-action-dashboard{background:var(--black);color:#fff;padding:38px}.next-action-dashboard>span{color:#888;font-size:10px;font-weight:700;letter-spacing:.14em}.next-action-dashboard h2{margin:16px 0 0;color:#fff;font-size:clamp(28px,4vw,46px);line-height:1.15;letter-spacing:-.045em}.new-analysis{margin-top:24px;display:flex;justify-content:flex-end}
[data-reveal]{opacity:0;transform:translateY(18px);transition:opacity .7s var(--ease),transform .7s var(--ease)}[data-reveal].is-visible{opacity:1;transform:none}[data-reveal-delay="1"]{transition-delay:.08s}[data-reveal-delay="2"]{transition-delay:.16s}
@media(max-width:900px){.statement-grid,.auth-page{grid-template-columns:1fr;gap:46px}.feature-grid{grid-template-columns:1fr}.pricing-grid{grid-template-columns:1fr}.dashboard-score-grid{grid-template-columns:repeat(2,1fr)}.result-two-columns{grid-template-columns:1fr}.final-cta{align-items:flex-start;flex-direction:column}.pricing-note{grid-template-columns:1fr;gap:12px}.auth-page{padding-top:60px}.memory-panel,.final-cta{padding:36px}}
@media(max-width:620px){.shell,.dashboard-shell{width:min(calc(100% - 28px),var(--shell))}.site-nav{height:64px}.site-links{gap:12px;font-size:12px}.site-links>a:not(.btn):nth-child(2){display:none}.landing-hero{padding:86px 0 74px;min-height:auto}.landing-hero h1,.pricing-hero h1{font-size:clamp(48px,16vw,68px)}.section-pad{padding:76px 0}.hero-proof{gap:12px 20px}.dashboard-nav{padding:0 14px}.dashboard-nav .brand-name small,.usage{display:none}.dashboard-nav-right{gap:6px}.dashboard-nav-right .button{padding:0 10px}.dashboard-shell{padding-top:60px}.dashboard-intro h1{font-size:52px}.decision-composer{padding:22px}.composer-header,.decision-form-bottom,.result-topline{align-items:flex-start;flex-direction:column}.decision-submit{width:100%}.dashboard-score-grid{grid-template-columns:1fr 1fr}.experiment-dashboard{grid-template-columns:1fr}.pricing-card{padding:28px;min-height:500px}.pricing-hero{padding-top:72px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}[data-reveal]{opacity:1;transform:none}}

/* =========================================================
   MOTION SYSTEM — restrained, visible, consistent
   ========================================================= */
@keyframes sapiensNavIn{from{opacity:0;transform:translateY(-12px)}to{opacity:1;transform:none}}
@keyframes sapiensHeroIn{from{opacity:0;transform:translateY(28px);filter:blur(5px)}to{opacity:1;transform:none;filter:blur(0)}}
@keyframes sapiensPriceIn{0%{opacity:0;transform:translateY(12px) scale(.97)}100%{opacity:1;transform:none}}
.site-header,.dashboard-nav{animation:sapiensNavIn .65s var(--ease) both}
.landing-hero .hero-eyebrow,.pricing-hero .hero-eyebrow{animation:sapiensHeroIn .7s var(--ease) .05s both}
.landing-hero h1,.pricing-hero h1{animation:sapiensHeroIn .85s var(--ease) .12s both}
.landing-hero .hero-lead,.pricing-hero>p{animation:sapiensHeroIn .85s var(--ease) .22s both}
.landing-hero .hero-actions{animation:sapiensHeroIn .85s var(--ease) .32s both}
[data-reveal]{opacity:0;transform:translateY(34px) scale(.985);filter:blur(3px);transition:opacity .9s var(--ease),transform .9s var(--ease),filter .9s var(--ease)}
[data-reveal].is-visible{opacity:1;transform:none;filter:blur(0)}
[data-reveal-delay="1"]{transition-delay:.12s}[data-reveal-delay="2"]{transition-delay:.24s}[data-reveal-delay="3"]{transition-delay:.36s}
.feature-card,.pricing-card,.step{will-change:transform;transform-origin:center bottom}
.feature-card:hover,.step:hover{transform:translateY(-5px);border-color:var(--line-strong);box-shadow:0 16px 44px rgba(0,0,0,.06)}
.pricing-card:hover{transform:translateY(-9px) scale(1.012);box-shadow:0 24px 70px rgba(0,0,0,.10)}
.pricing-card.is-visible .plan-price{animation:sapiensPriceIn .75s var(--ease) .28s both}
.btn span,.text-link span{display:inline-block;transition:transform .22s var(--ease)}
.btn:hover span,.text-link:hover span{transform:translateX(4px)}

/* Pricing: three-plan system */
.pricing-grid-three{grid-template-columns:repeat(3,minmax(0,1fr));max-width:1180px}
.pricing-grid-three .pricing-card{min-height:610px;padding:36px}
.plan-badge{align-self:flex-start;margin-bottom:18px;padding:7px 10px;border:1px solid var(--ink);border-radius:999px;font-size:9px;font-weight:700;letter-spacing:.14em}
.plan-price .currency{font-size:.52em;vertical-align:top;position:relative;top:.12em;margin-right:2px;color:inherit;font-weight:650}
.pricing-card button:disabled{cursor:not-allowed;opacity:.48;transform:none;box-shadow:none}
.pricing-card-business{background:var(--soft)}

@media(max-width:980px){.pricing-grid-three{grid-template-columns:1fr}.pricing-grid-three .pricing-card{min-height:auto}}
@media(prefers-reduced-motion:reduce){.site-header,.dashboard-nav,.landing-hero .hero-eyebrow,.pricing-hero .hero-eyebrow,.landing-hero h1,.pricing-hero h1,.landing-hero .hero-lead,.pricing-hero>p,.landing-hero .hero-actions,.pricing-card.is-visible .plan-price{animation:none!important}}
@media(min-width:981px) and (prefers-reduced-motion:no-preference){.pricing-card:hover{transform:translateY(-9px) scale(1.012) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg))}}

/* ===== SAPIENS V4 — EDITORIAL INTELLIGENCE LAYER ===== */
.manifesto-hero{min-height:calc(100vh - 74px);display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:8vw;align-items:center;padding-top:80px;padding-bottom:100px}.manifesto-main{max-width:1050px}.manifesto-hero h1{font-size:clamp(4.4rem,8.4vw,9rem);line-height:.86;letter-spacing:-.075em;margin:26px 0 38px;max-width:1100px}.hero-eyebrow{letter-spacing:.18em;font-size:.72rem;font-weight:700;display:flex;align-items:center;gap:10px}.signal-dot{width:6px;height:6px;border-radius:50%;background:currentColor;display:inline-block;animation:signalPulse 2.2s ease-in-out infinite}.manifesto-belief{font-size:clamp(1.3rem,2vw,1.75rem);line-height:1.45;max-width:820px;color:var(--text);margin-bottom:28px}.manifesto-copy{max-width:850px;font-size:1.08rem;line-height:1.75}.clarity-rail{align-self:center;display:grid;gap:18px;font-size:.67rem;letter-spacing:.18em}.clarity-rail span{color:var(--text-tertiary);font-weight:700}.clarity-rail strong{font-size:.78rem;letter-spacing:.12em}.clarity-rail i{height:1px;background:var(--border);display:block}.thesis-section,.reasoning-system,.principles-section{border-top:1px solid var(--border)}.editorial-grid{display:grid;grid-template-columns:1.05fr .8fr;gap:9vw;align-items:start}.editorial-grid h2{font-size:clamp(3rem,5.5vw,6.4rem);line-height:.94;letter-spacing:-.065em;margin:0}.editorial-copy p,.premium-panel p{font-size:1.08rem;line-height:1.75}.reasoning-grid{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--border);border-left:1px solid var(--border);margin-top:44px}.reasoning-card{min-height:300px;padding:34px;border-right:1px solid var(--border);border-bottom:1px solid var(--border);transition:transform .45s var(--ease),background .45s var(--ease),box-shadow .45s var(--ease)}.reasoning-card:hover{transform:translateY(-7px);background:var(--surface-soft);box-shadow:0 28px 70px rgba(0,0,0,.07)}.reasoning-card>span,.principles-list span{font-size:.7rem;letter-spacing:.15em;color:var(--text-tertiary)}.reasoning-card h3{font-size:1.55rem;margin:80px 0 14px}.premium-panel{padding:clamp(36px,6vw,82px);border:1px solid var(--border);border-radius:28px;overflow:hidden;position:relative}.premium-panel:after{content:"";position:absolute;width:260px;height:260px;border:1px solid var(--border);border-radius:50%;right:-100px;top:-100px;opacity:.6}.principles-list{margin-top:40px;border-top:1px solid var(--border)}.principles-list>div{display:grid;grid-template-columns:80px 1fr 1fr;gap:28px;align-items:center;padding:34px 0;border-bottom:1px solid var(--border);transition:padding .35s var(--ease)}.principles-list>div:hover{padding-left:12px}.principles-list h3{font-size:1.45rem;margin:0}.principles-list p{margin:0}.pricing-card{overflow:hidden}.pricing-card:before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(120deg,transparent 20%,rgba(255,255,255,.5) 50%,transparent 80%);transform:translateX(-120%);transition:transform .9s var(--ease)}.pricing-card:hover:before{transform:translateX(120%)}.pricing-card-business .btn[disabled]{cursor:not-allowed;opacity:.62}.btn{position:relative;overflow:hidden}.btn span{display:inline-block;transition:transform .3s var(--ease)}.btn:hover span{transform:translateX(4px)}@keyframes signalPulse{0%,100%{opacity:.35;transform:scale(.75)}50%{opacity:1;transform:scale(1.25)}}@media(max-width:900px){.manifesto-hero{grid-template-columns:1fr}.clarity-rail{display:none}.editorial-grid{grid-template-columns:1fr;gap:32px}.reasoning-grid{grid-template-columns:1fr 1fr}.principles-list>div{grid-template-columns:50px 1fr}.principles-list p{grid-column:2}}@media(max-width:620px){.manifesto-hero h1{font-size:clamp(3.5rem,18vw,5.3rem)}.reasoning-grid{grid-template-columns:1fr}.reasoning-card{min-height:240px}.reasoning-card h3{margin-top:55px}}


/* =========================================================
   DECISION SUBMIT — LOADING STATE
   ========================================================= */

.decision-submit {
    min-width: 190px;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition:
        transform .22s var(--ease),
        opacity .22s ease,
        background .22s ease,
        color .22s ease;
}

.decision-submit:not(:disabled):active {
    transform: scale(.975);
}

.decision-submit.is-loading {
    cursor: wait;
    opacity: .88;
    transform: none;
}

.decision-submit.is-loading:hover {
    transform: none;
}

.decision-spinner {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sapiensDecisionSpin .75s linear infinite;
}

.decision-loading-label {
    animation: sapiensDecisionPulse 1.35s ease-in-out infinite;
}

@keyframes sapiensDecisionSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes sapiensDecisionPulse {
    0%, 100% {
        opacity: .62;
    }

    50% {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .decision-spinner {
        animation-duration: 1.5s;
    }

    .decision-loading-label {
        animation: none;
    }
}

/* FIX — ANALYSIS LOADING SPINNER */

.decision-submit.is-loading::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: middle;
    animation: sapiensButtonSpin .7s linear infinite;
}

@keyframes sapiensButtonSpin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   PRO CONTINUITY — FUNCTIONAL EXTENSION
   ========================================================= */

.pro-workspace,
.decision-premium-tools {
    margin-top: 32px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 28px;
    background: rgba(255,255,255,.025);
    padding: clamp(24px,4vw,42px);
}

.pro-workspace-head,
.pro-history-head,
.premium-tools-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.pro-workspace-head h2,
.premium-tools-head h2 {
    margin: 8px 0 10px;
}

.pro-workspace-head p {
    max-width: 680px;
    margin: 0;
}

.pro-tool-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 16px;
    margin-top: 30px;
}

.pro-tool-card,
.pro-history-card {
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 22px;
    background: rgba(255,255,255,.025);
    padding: 22px;
}

.pro-tool-card h3,
.pro-history-card h3 {
    margin: 8px 0;
    font-size: 18px;
}

.pro-tool-card p {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.6;
}

.pro-tool-label {
    display: block;
    font-size: 11px;
    letter-spacing: .12em;
    font-weight: 700;
    opacity: .55;
}

.pro-context-input {
    width: 100%;
    min-height: 118px;
    resize: vertical;
    margin-bottom: 12px;
    background: rgba(255,255,255,.035);
    color: inherit;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 15px;
    font: inherit;
    line-height: 1.55;
}

.pro-context-input:focus {
    outline: none;
    border-color: rgba(255,255,255,.32);
}

.pro-list {
    display: grid;
    gap: 9px;
}

.pro-list-item,
.pro-history-item,
.similar-decision-item {
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 15px;
    padding: 14px;
    background: rgba(255,255,255,.02);
}

.pro-template-button {
    width: 100%;
    text-align: left;
    cursor: pointer;
    color: inherit;
    font: inherit;
}

.pro-template-button strong,
.pro-history-item strong,
.similar-decision-item strong {
    display: block;
    margin-bottom: 5px;
}

.pro-template-button small,
.pro-history-item small,
.similar-decision-item small {
    opacity: .55;
    line-height: 1.5;
}

.pro-history-card {
    margin-top: 16px;
}

.pro-history-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.pro-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.pro-history-copy {
    min-width: 0;
}

.pro-history-copy p {
    margin: 4px 0 0;
    font-size: 13px;
    opacity: .62;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pro-history-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.pro-mini-button {
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    padding: 8px 12px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    transition: transform .2s ease, background .2s ease;
}

.pro-mini-button:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.06);
}

.pro-feedback,
.pro-muted {
    font-size: 12px;
    opacity: .55;
}

.pro-feedback {
    margin-top: 10px;
    min-height: 18px;
}

.premium-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.stress-test-result,
.similar-decisions-panel {
    margin-top: 22px;
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 22px;
}

.stress-test-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
}

.stress-test-box {
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 16px;
    padding: 17px;
}

.stress-test-box h3 {
    margin: 0 0 10px;
    font-size: 15px;
}

.stress-test-box ul {
    margin: 0;
    padding-left: 18px;
}

.stress-test-box li {
    margin: 7px 0;
    line-height: 1.5;
}

#similar-decisions {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

@media (max-width: 980px) {
    .pro-tool-grid {
        grid-template-columns: 1fr;
    }

    .stress-test-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .pro-workspace-head,
    .pro-history-item,
    .premium-tools-head {
        flex-direction: column;
        align-items: stretch;
    }

    .pro-history-actions {
        flex-wrap: wrap;
    }
}

/* =========================================================
   CLOSED LOOP — PRO / BUSINESS
   ========================================================= */

.closed-loop-workspace {
    margin-top: 32px;
    padding: clamp(24px,4vw,42px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 28px;
    background: rgba(255,255,255,.025);
}

.closed-loop-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 28px;
}

.closed-loop-head h2 {
    margin: 8px 0 10px;
}

.closed-loop-head p {
    max-width: 680px;
    margin: 0;
}

.continuity-setting {
    display: grid;
    gap: 7px;
    min-width: 150px;
}

.continuity-setting label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    opacity: .55;
}

.continuity-setting select {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(255,255,255,.04);
    color: inherit;
    font: inherit;
}

.closed-loop-grid {
    display: grid;
    grid-template-columns:
        repeat(2,minmax(0,1fr));
    gap: 16px;
    margin-top: 30px;
}

.closed-loop-card {
    min-width: 0;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 22px;
    background: rgba(255,255,255,.025);
}

.closed-loop-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.closed-loop-card h3 {
    margin: 8px 0 16px;
    font-size: 18px;
}

.closed-loop-count {
    min-width: 34px;
    min-height: 34px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    font-size: 12px;
}

.closed-loop-list {
    display: grid;
    gap: 10px;
}

.agenda-item,
.review-item,
.retrospective-item {
    padding: 14px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 15px;
    background: rgba(255,255,255,.02);
}

.agenda-item strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.agenda-origin,
.agenda-assumption {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.5;
    opacity: .52;
}

.agenda-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.outcome-panel {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.outcome-panel-title {
    font-size: 11px;
    opacity: .62;
}

.outcome-options {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.outcome-button {
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    padding: 8px 11px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 11px;
}

.outcome-button:hover {
    background: rgba(255,255,255,.06);
}

.confidence-number {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 12px;
}

.confidence-number strong {
    font-size: clamp(34px,5vw,54px);
    letter-spacing: -.05em;
}

.confidence-number span {
    max-width: 120px;
    font-size: 11px;
    line-height: 1.4;
    opacity: .5;
}

.confidence-chart {
    width: 100%;
    height: 130px;
    margin-top: 16px;
    overflow: visible;
}

.confidence-chart polyline {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.confidence-chart circle {
    fill: currentColor;
}

.review-stat {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 13px;
}

.review-stat span:last-child {
    font-weight: 650;
}

.retrospective-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

@media (max-width: 900px) {

    .closed-loop-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 680px) {

    .closed-loop-head {
        flex-direction: column;
    }

    .continuity-setting {
        width: 100%;
    }

}

/* =========================================================
   BUSINESS CONTINUITY
   ========================================================= */

.business-workspace {
    margin-top: 32px;
    padding: clamp(24px,4vw,42px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 28px;
    background: rgba(255,255,255,.025);
}

.business-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 28px;
}

.business-head h2 {
    margin: 8px 0 10px;
}

.business-head p {
    max-width: 680px;
    margin: 0;
}

.business-workspace-switcher {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.business-workspace-switcher select {
    min-width: 190px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    color: inherit;
    padding: 10px 12px;
    font: inherit;
}

.business-empty {
    margin-top: 24px;
    padding: 18px;
    border: 1px dashed rgba(255,255,255,.12);
    border-radius: 16px;
    opacity: .6;
}

.business-grid {
    display: grid;
    grid-template-columns:
        repeat(2,minmax(0,1fr));
    gap: 16px;
    margin-top: 30px;
}

.business-card,
.business-wide-card {
    padding: 22px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 22px;
    background: rgba(255,255,255,.025);
}

.business-wide-card {
    margin-top: 16px;
}

.business-card h3,
.business-wide-card h3 {
    margin: 8px 0 16px;
    font-size: 18px;
}

.business-list {
    display: grid;
    gap: 10px;
}

.business-list-item {
    padding: 14px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 15px;
    background: rgba(255,255,255,.02);
}

.business-list-item strong {
    display: block;
    margin-bottom: 5px;
}

.business-meta {
    font-size: 11px;
    line-height: 1.5;
    opacity: .55;
}

.business-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.business-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

@media (max-width: 900px) {

    .business-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 680px) {

    .business-head {
        flex-direction: column;
    }

    .business-workspace-switcher {
        width: 100%;
    }

    .business-workspace-switcher select {
        flex: 1;
    }

    .business-row {
        align-items: stretch;
        flex-direction: column;
    }

}

/* =========================================================
   BUSINESS OPERATIVE CONTROLS
   ========================================================= */

.business-inline-form,
.business-review-form {
    display: grid;
    gap: 9px;
    margin-bottom: 16px;
}

.business-inline-form {
    grid-template-columns:
        minmax(0,1fr)
        auto
        auto;
}

.business-inline-form input,
.business-inline-form select,
.business-review-form select,
.business-review-form textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    background: rgba(255,255,255,.035);
    color: inherit;
    padding: 10px 12px;
    font: inherit;
}

.business-review-form textarea {
    min-height: 82px;
    resize: vertical;
}

.business-member-role {
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;
    background: transparent;
    color: inherit;
    padding: 6px 9px;
    font-size: 11px;
}

.business-assignee-select {
    min-width: 145px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    background: transparent;
    color: inherit;
    padding: 7px 9px;
    font-size: 11px;
}

.business-review-response {
    width: 100%;
    min-height: 65px;
    margin-top: 10px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
    color: inherit;
    padding: 10px;
    font: inherit;
    resize: vertical;
}

.business-decision-workspace {
    margin-top: 14px;
    display: grid;
    gap: 7px;
}

.business-decision-workspace label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    opacity: .52;
}

.business-decision-workspace select {
    width: 100%;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    background: rgba(255,255,255,.035);
    color: inherit;
    padding: 10px 12px;
    font: inherit;
}

@media (max-width: 680px) {

    .business-inline-form {
        grid-template-columns: 1fr;
    }

}

.pre-stress-option {
    display:flex;
    gap:10px;
    align-items:flex-start;
    margin:12px 0;
    padding:12px 14px;
    border:1px solid rgba(255,255,255,.1);
    border-radius:14px;
    background:rgba(255,255,255,.025);
    font-size:12px;
    cursor:pointer;
}

.pre-stress-option input {
    width:16px;
    height:16px;
    margin:1px 0 0;
}

.notification-item {
    padding:14px;
    border:1px solid rgba(255,255,255,.09);
    border-radius:15px;
    background:rgba(255,255,255,.02);
}

.notification-item strong {
    display:block;
    margin-bottom:5px;
}

.notification-item span {
    font-size:11px;
    opacity:.55;
}


/* =========================================================
   2026 PRE-DEMO UI — VISUAL ONLY
   Sidebar shell + responsive Decision History
   ========================================================= */

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

.dashboard-body {
    background: #f7f8fa;
}

.dashboard-nav {
    position: fixed;
    inset: 0 auto 0 0;
    width: 252px;
    height: 100vh;
    padding: 24px 18px 20px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 28px;
    border: 0;
    border-right: 1px solid #272a30;
    background: #1f2227;
    color: #f7f7f5;
    backdrop-filter: none;
    overflow-y: auto;
}

.dashboard-nav .brand {
    width: 100%;
    gap: 12px;
    color: #fff;
}

.dashboard-nav .brand-mark {
    width: 36px;
    height: 36px;
    border-color: #4a4f58;
    border-radius: 10px;
    background: #2b2f35;
}

.dashboard-nav .brand-name strong {
    color: #fff;
    font-size: 14px;
    letter-spacing: .12em;
}

.dashboard-nav .brand-name small {
    color: #8f96a3;
    font-size: 7px;
}

.dashboard-side-links {
    display: grid;
    gap: 6px;
}

.dashboard-side-link {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 9px;
    color: #aeb4be;
    font-size: 13px;
    font-weight: 500;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.dashboard-side-link:hover {
    background: #2a2e34;
    color: #fff;
    transform: translateX(2px);
}

.dashboard-side-link.is-active {
    background: #30343a;
    color: #fff;
}

.dashboard-side-icon {
    width: 18px;
    flex: 0 0 18px;
    text-align: center;
    font-size: 15px;
}

.dashboard-nav-right {
    width: 100%;
    margin-top: auto;
    display: grid;
    gap: 8px;
}

.dashboard-nav-right .usage {
    margin: 0 0 4px;
    padding: 0 9px;
    color: #838a95;
    font-size: 10px;
}

.dashboard-nav-right .button {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: #393e46;
    color: #d5d9df;
    background: transparent;
}

.dashboard-nav-right .button:hover {
    background: #2b2f35;
    color: #fff;
}

.dashboard-shell {
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0 0 0 252px;
    padding: 54px clamp(28px, 4vw, 66px) 120px;
}

.dashboard-shell > *,
.pro-workspace,
.pro-tool-grid,
.pro-history-card,
.pro-history-list,
.pro-history-item,
.pro-history-copy,
.history-card-main,
.history-card-copy {
    min-width: 0;
    max-width: 100%;
}

.dashboard-intro {
    margin-bottom: 42px;
}

.dashboard-intro h1 {
    font-size: clamp(48px, 6vw, 78px);
}

.pro-workspace,
.decision-premium-tools,
.closed-loop-workspace,
.business-workspace {
    border-color: #e6e8eb;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .02);
}

.pro-tool-card,
.pro-history-card {
    border-color: #e4e7eb;
    background: #fff;
}

.history-console {
    margin-top: 18px;
    padding: 24px;
    border: 1px solid #e1e4e8;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.history-console-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.history-console-head h3 {
    margin: 6px 0 4px;
    color: #15171a;
    font-size: 21px;
    letter-spacing: -.025em;
}

.history-console-subtitle {
    margin: 0;
    max-width: 540px;
    color: #737982;
    font-size: 13px;
    line-height: 1.55;
}

.history-summary {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

.history-summary-item {
    min-width: 78px;
    padding: 10px 12px;
    border: 1px solid #e6e8eb;
    border-radius: 11px;
    background: #fafbfc;
    text-align: center;
}

.history-summary-item strong {
    display: block;
    color: #191b1e;
    font-size: 17px;
    line-height: 1.15;
}

.history-summary-item span {
    display: block;
    margin-top: 3px;
    color: #9aa0aa;
    font-size: 9px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.history-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}

.history-search {
    height: 40px;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid #dfe2e6;
    border-radius: 9px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.history-search:focus-within {
    border-color: #afb5bf;
    box-shadow: 0 0 0 3px rgba(31, 34, 39, .06);
}

.history-search-icon {
    color: #9298a1;
    font-size: 18px;
}

.history-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #202226;
    background: transparent;
    font-size: 13px;
}

.history-filter {
    height: 40px;
    min-width: 148px;
    max-width: 190px;
    padding: 0 30px 0 11px;
    border: 1px solid #dfe2e6;
    border-radius: 9px;
    color: #4b515b;
    background: #fff;
    font: inherit;
    font-size: 12px;
}

.history-console .pro-history-list {
    margin-top: 14px;
    display: grid;
    gap: 8px;
}

.history-console .pro-history-item {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px 18px;
    padding: 15px 16px;
    border: 1px solid #e5e7ea;
    border-radius: 11px;
    background: #fff;
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.history-console .pro-history-item:hover {
    border-color: #cfd3d9;
    box-shadow: 0 7px 22px rgba(17, 24, 39, .045);
    transform: translateY(-1px);
}

.history-card-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    overflow: hidden;
}

.history-card-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    margin-top: 1px;
    border-radius: 50%;
    background: #eef0f3;
    color: #626975;
    font-size: 12px;
    font-weight: 700;
}

.history-card-icon.is-supported,
.history-status.is-supported {
    background: #eaf7ef;
    color: #2d7b4d;
}

.history-card-icon.is-conditional,
.history-status.is-conditional {
    background: #fff6e7;
    color: #9a6a1b;
}

.history-card-icon.is-review,
.history-status.is-review {
    background: #fff0ed;
    color: #a55443;
}

.history-card-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.history-card-title-row strong {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #202226;
    font-size: 13px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-status {
    flex: 0 0 auto;
    max-width: 150px;
    padding: 3px 7px;
    border-radius: 999px;
    overflow: hidden;
    color: #69717d;
    background: #f0f1f3;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.4;
    text-overflow: ellipsis;
    text-transform: capitalize;
    white-space: nowrap;
}

.history-card-copy p {
    display: -webkit-box;
    max-width: 100%;
    margin: 4px 0 6px;
    overflow: hidden;
    color: #747b85;
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.history-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
    color: #9ba1aa;
    font-size: 10px;
    line-height: 1.4;
}

.history-meta-dot {
    color: #d0d4d9;
}

.history-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    flex: 0 0 auto;
}

.history-console .pro-mini-button {
    padding: 7px 9px;
    border-color: #dfe2e6;
    border-radius: 8px;
    color: #565d68;
    background: #fff;
    font-size: 10px;
    white-space: nowrap;
}

.history-console .pro-mini-button:hover {
    border-color: #c8ccd2;
    background: #f6f7f8;
}

.history-details {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    padding: 15px 0 1px 40px;
    border-top: 1px solid #eceef1;
    animation: historyReveal .18s ease both;
}

.history-details-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.history-details-grid > div {
    min-width: 0;
    padding: 10px;
    border-radius: 8px;
    background: #f7f8fa;
}

.history-details-grid span,
.history-details-section > span {
    display: block;
    color: #9aa0a8;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.history-details-grid strong {
    display: block;
    margin-top: 4px;
    overflow-wrap: anywhere;
    color: #353a42;
    font-size: 11px;
}

.history-details-section {
    margin-top: 12px;
}

.history-details-section p {
    max-width: 100%;
    margin: 4px 0 0;
    color: #5c636d;
    font-size: 12px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.history-console-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 10px;
    color: #a0a5ad;
    font-size: 10px;
}

.history-empty {
    display: grid;
    gap: 4px;
    padding: 28px 18px;
    border: 1px dashed #d9dde2;
    border-radius: 10px;
    color: #9096a0;
    text-align: center;
}

.history-empty strong {
    color: #5e6570;
    font-size: 13px;
}

.history-empty span {
    font-size: 11px;
}

@keyframes historyReveal {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
    .dashboard-nav {
        position: sticky;
        inset: auto;
        top: 0;
        width: 100%;
        height: 64px;
        padding: 0 16px;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        border-right: 0;
        border-bottom: 1px solid #2e3238;
        overflow: visible;
    }

    .dashboard-side-links {
        display: none;
    }

    .dashboard-nav-right {
        width: auto;
        margin: 0 0 0 auto;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .dashboard-nav-right .usage {
        display: none;
    }

    .dashboard-nav-right .button {
        width: auto;
        min-height: 36px;
        padding-inline: 10px;
    }

    .dashboard-shell {
        width: min(calc(100% - 32px), 1240px);
        margin: 0 auto;
        padding: 54px 0 100px;
    }

    .history-console-head {
        flex-direction: column;
        gap: 16px;
    }

    .history-summary {
        width: 100%;
    }

    .history-summary-item {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 720px) {
    .history-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .history-filter {
        width: 100%;
        max-width: none;
    }

    .history-console .pro-history-item {
        grid-template-columns: minmax(0, 1fr);
    }

    .history-card-actions {
        justify-content: flex-start;
        padding-left: 40px;
        flex-wrap: wrap;
    }

    .history-details {
        padding-left: 40px;
    }

    .history-details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .dashboard-nav .brand-name small {
        display: none;
    }

    .dashboard-nav-right .button:first-of-type {
        display: none;
    }

    .dashboard-shell {
        width: min(calc(100% - 24px), 1240px);
    }

    .history-console {
        padding: 17px;
    }

    .history-summary {
        gap: 5px;
    }

    .history-summary-item {
        padding: 8px 5px;
    }

    .history-card-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .history-card-title-row strong {
        white-space: normal;
    }

    .history-card-actions,
    .history-details {
        padding-left: 0;
    }

    .history-details-grid {
        grid-template-columns: 1fr;
    }
}


/* === SAPIENS MOCKUP UNIFIED DASHBOARD V3 === */

:root {
    --mock-bg: #f6f7f9;
    --mock-card: #ffffff;
    --mock-text: #111318;
    --mock-muted: #727781;
    --mock-line: #e2e5ea;

    --mock-dark: #0c1016;
    --mock-dark2: #171c24;

    --mock-purple: #6957e8;
    --mock-purple-soft: #f0edff;

    --mock-green: #1f7a43;
    --mock-green-soft: #e9f7ec;

    --mock-orange: #b56b00;
    --mock-orange-soft: #fff2d9;
}


/* =========================================
   GLOBAL / OVERFLOW FIX
   ========================================= */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.dashboard-body {
    margin: 0 !important;
    background: var(--mock-bg) !important;
    color: var(--mock-text) !important;
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;
}

.dashboard-body * {
    box-sizing: border-box;
}


/* =========================================
   SIDEBAR
   ========================================= */

.mock-sidebar {
    position: fixed;
    inset: 0 auto 0 0;

    width: 288px;

    z-index: 100;

    display: flex;
    flex-direction: column;

    padding: 22px 18px;

    background:
        linear-gradient(
            180deg,
            #0b0f15 0%,
            #0e141d 100%
        );

    color: #ffffff;

    border-right:
        1px solid #202632;
}


.mock-brand {
    display: flex;
    align-items: center;
    gap: 14px;

    padding-bottom: 34px;

    color: #ffffff;
    text-decoration: none;
}


.mock-brand-mark {
    width: 48px;
    height: 48px;

    border:
        1px solid #39414e;

    border-radius: 14px;

    display: grid;
    place-items: center;

    font-size: 24px;
    font-weight: 700;
}


.mock-brand-copy {
    display: grid;
    gap: 3px;
}


.mock-brand-copy strong {
    font-size: 20px;
}


.mock-brand-copy small {
    font-size: 9px;
    letter-spacing: .14em;

    color: #8d96a5;
}


.mock-nav {
    display: grid;
    gap: 8px;
}


.mock-nav-item {
    display: flex;
    align-items: center;

    gap: 14px;

    padding: 14px;

    border-radius: 12px;

    color: #e4e8ef;

    text-decoration: none;

    font-size: 15px;
    font-weight: 500;
}


.mock-nav-item:hover {
    background: #151b24;
}


.mock-nav-item.is-active {
    background: #1d2430;
    color: #ffffff;
}


.mock-nav-icon {
    width: 20px;

    text-align: center;

    color: #a9b2c0;

    font-size: 20px;
}


.mock-user-area {
    margin-top: auto;

    padding-top: 20px;

    border-top:
        1px solid #252c36;
}


.mock-user-row {
    display: flex;
    align-items: center;

    gap: 12px;

    padding:
        0 8px 16px;
}


.mock-avatar {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    display: grid;
    place-items: center;

    background: #272e39;

    font-size: 18px;
    font-weight: 700;
}


.mock-user-copy {
    display: grid;
    gap: 2px;
}


.mock-user-copy strong {
    font-size: 16px;
}


.mock-user-copy small {
    color: #a4adbb;

    font-size: 13px;
}


.mock-logout {
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    border:
        1px solid #2b3340;

    border-radius: 10px;

    color: #ffffff;

    text-decoration: none;
}


.mock-logout:hover {
    background: #171e28;
}


/* =========================================
   MAIN CONTENT
   ========================================= */

.dashboard-shell {
    width: auto !important;
    max-width: none !important;

    margin: 0 !important;
    margin-left: 288px !important;

    padding:
        38px 54px 90px !important;

    overflow: hidden !important;
}


.dashboard-intro {
    max-width: 1150px !important;

    margin:
        0 auto 28px !important;

    padding: 0 !important;
}


.dashboard-kicker,
.composer-label,
.pro-tool-label {
    color: #7d828a !important;

    font-size: 11px !important;
    font-weight: 700 !important;

    letter-spacing: .13em !important;
}


.dashboard-intro h1 {
    max-width: none !important;

    margin:
        18px 0 22px !important;

    font-size:
        clamp(
            54px,
            5.7vw,
            86px
        ) !important;

    line-height: .94 !important;

    letter-spacing:
        -.065em !important;

    font-weight: 650 !important;

    color: #050608 !important;
}


.dashboard-intro h1 span {
    color: #8d8e8b !important;
}


.dashboard-intro p {
    max-width: 900px !important;

    margin: 0 !important;

    color: #565d66 !important;

    font-size: 20px !important;

    line-height: 1.55 !important;
}


/* =========================================
   ALL DASHBOARD CARDS
   ========================================= */

.pro-workspace,
.closed-loop-workspace,
.business-workspace,
.decision-composer,
.decision-premium-tools {

    max-width: 1150px !important;

    margin:
        20px auto 0 !important;

    padding: 28px !important;

    border:
        1px solid var(--mock-line) !important;

    border-radius:
        20px !important;

    background:
        var(--mock-card) !important;

    color:
        var(--mock-text) !important;

    box-shadow:
        0 4px 18px
        rgba(17,24,39,.025) !important;

    overflow: hidden !important;
}


.pro-workspace-head,
.closed-loop-head,
.business-head,
.premium-tools-head {
    gap: 30px !important;
}


.pro-workspace-head h2,
.closed-loop-head h2,
.business-head h2,
.premium-tools-head h2 {

    margin:
        6px 0 7px !important;

    font-size:
        23px !important;

    letter-spacing:
        -.025em !important;
}


.pro-workspace-head p,
.closed-loop-head p,
.business-head p {

    color:
        #555d67 !important;

    font-size:
        14px !important;

    line-height:
        1.55 !important;
}


/* =========================================
   REFRESH + STRESS TEST
   ========================================= */

.pro-workspace-head .button,
.pro-refresh {

    border: 0 !important;

    background:
        #0c1118 !important;

    color:
        #ffffff !important;

    border-radius:
        9px !important;

    padding:
        12px 18px !important;

    box-shadow:
        none !important;
}


.pre-stress-option {

    margin-left:
        auto !important;

    display:
        flex !important;

    align-items:
        flex-start !important;

    gap:
        10px !important;

    max-width:
        235px !important;

    font-size:
        13px !important;

    line-height:
        1.35 !important;

    color:
        #20242b !important;
}


.pre-stress-option input {

    width:
        18px;

    height:
        18px;

    accent-color:
        #111827;
}


/* =========================================
   MEMORY CARDS
   ========================================= */

.pro-tool-grid {

    grid-template-columns:
        repeat(
            3,
            minmax(0,1fr)
        ) !important;

    gap:
        16px !important;

    margin-top:
        26px !important;
}


.pro-tool-card,
.closed-loop-card,
.business-card,
.business-wide-card,
.stress-test-box,
.similar-decision-item {

    position:
        relative !important;

    border:
        1px solid
        var(--mock-line) !important;

    border-radius:
        15px !important;

    background:
        #ffffff !important;

    color:
        var(--mock-text) !important;

    box-shadow:
        none !important;
}


.pro-tool-card {

    padding:
        22px
        22px
        20px
        68px !important;

    min-height:
        196px !important;
}


.pro-tool-card::before {

    position:
        absolute;

    left:
        20px;

    top:
        20px;

    width:
        38px;

    height:
        38px;

    border-radius:
        50%;

    display:
        grid;

    place-items:
        center;

    background:
        var(--mock-purple-soft);

    color:
        var(--mock-purple);

    font-size:
        19px;

    font-weight:
        700;
}


.pro-tool-card:nth-child(1)::before {
    content: "▤";
}

.pro-tool-card:nth-child(2)::before {
    content: "⊞";
}

.pro-tool-card:nth-child(3)::before {
    content: "↗";
}


.pro-tool-card h3 {

    font-size:
        17px !important;

    margin:
        7px 0 8px !important;
}


.pro-tool-card p {

    color:
        #626871 !important;

    font-size:
        13px !important;
}


.pro-context-input {

    background:
        #fafbfc !important;

    color:
        #222222 !important;

    border:
        1px solid #dfe3e8 !important;

    border-radius:
        10px !important;

    min-height:
        76px !important;
}


.button,
.pro-action,
.pro-mini-button,
.outcome-button {

    border:
        1px solid
        #d6dae0 !important;

    background:
        #ffffff !important;

    color:
        #16191e !important;

    border-radius:
        8px !important;

    box-shadow:
        none !important;
}


.pro-list-item {

    border:
        0 !important;

    background:
        transparent !important;

    padding:
        8px 0 !important;

    border-radius:
        0 !important;
}


.pro-template-button strong {

    font-size:
        14px !important;
}


.pro-template-button small {

    color:
        #81858c !important;

    opacity:
        1 !important;
}


/* =========================================
   DECISION HISTORY
   ========================================= */

.history-redesign {

    margin-top:
        18px !important;

    padding:
        18px
        20px
        12px !important;

    border:
        1px solid
        var(--mock-line) !important;

    border-radius:
        16px !important;

    background:
        #ffffff !important;
}


.history-headline {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

    padding-bottom:
        14px;

    border-bottom:
        1px solid #edf0f3;
}


.history-title-wrap {

    display:
        flex;

    align-items:
        center;

    gap:
        12px;
}


.history-clock {

    width:
        30px;

    height:
        30px;

    border:
        1.5px solid #3d4652;

    border-radius:
        50%;

    display:
        grid;

    place-items:
        center;

    font-size:
        16px;
}


.history-title-wrap h3 {

    margin:
        5px 0 0 !important;

    font-size:
        18px !important;
}


.history-controls {

    display:
        flex;

    gap:
        10px;

    align-items:
        center;
}


.history-search {

    width:
        250px;

    height:
        38px;

    display:
        flex;

    align-items:
        center;

    gap:
        8px;

    padding:
        0 12px;

    border:
        1px solid #dfe3e8;

    border-radius:
        9px;

    background:
        #ffffff;
}


.history-search input {

    width:
        100%;

    min-width:
        0;

    border:
        0;

    outline:
        0;

    background:
        transparent;

    font:
        inherit;

    color:
        #222222;
}


.history-filter {

    height:
        38px;

    min-width:
        165px;

    padding:
        0 12px;

    border:
        1px solid #dfe3e8;

    border-radius:
        9px;

    background:
        #ffffff;

    color:
        #333333;
}


.pro-history-list {

    display:
        block !important;

    margin-top:
        0 !important;

    min-width:
        0 !important;

    max-width:
        100% !important;
}


.history-row {

    display:
        grid;

    grid-template-columns:
        minmax(0,2.3fr)
        155px
        120px
        100px
        150px;

    align-items:
        center;

    gap:
        14px;

    min-width:
        0;

    padding:
        11px 4px;

    border-bottom:
        1px solid #edf0f3;

    background:
        #ffffff;
}


.history-row-main {

    display:
        flex;

    align-items:
        center;

    gap:
        12px;

    min-width:
        0;
}


.history-row-icon {

    width:
        38px;

    height:
        38px;

    flex:
        0 0 38px;

    border-radius:
        50%;

    display:
        grid;

    place-items:
        center;

    background:
        var(--mock-purple-soft);

    color:
        var(--mock-purple);

    font-weight:
        800;
}


.history-row-copy {

    min-width:
        0;

    display:
        grid;

    gap:
        3px;
}


.history-row-copy strong {

    min-width:
        0;

    overflow:
        hidden;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;

    font-size:
        13px;
}


.history-row-copy small,
.history-date small,
.history-confidence small {

    color:
        #7d838c;

    font-size:
        10px;
}


.history-date,
.history-confidence {

    display:
        grid;

    gap:
        2px;

    font-size:
        12px;
}


.history-status {

    justify-self:
        start;

    padding:
        6px 10px;

    border-radius:
        7px;

    font-size:
        10px;

    font-weight:
        650;
}


.history-status.completed {

    color:
        var(--mock-green);

    background:
        var(--mock-green-soft);
}


.history-status.pending {

    color:
        var(--mock-orange);

    background:
        var(--mock-orange-soft);
}


.history-actions {

    display:
        flex;

    justify-content:
        flex-end;

    gap:
        8px;
}


.history-open,
.history-icon-button {

    height:
        34px;

    border:
        1px solid #d7dce2;

    border-radius:
        7px;

    background:
        #ffffff;

    color:
        #20242a;

    text-decoration:
        none;

    display:
        grid;

    place-items:
        center;

    font:
        inherit;

    cursor:
        pointer;
}


.history-open {

    padding:
        0 14px;

    font-size:
        12px;
}


.history-icon-button {

    width:
        34px;

    font-size:
        16px;
}


.history-details {

    grid-column:
        1 / -1;

    margin:
        2px 50px 6px;

    padding:
        14px 16px;

    border-radius:
        10px;

    background:
        #f7f8fa;

    color:
        #505761;

    font-size:
        12px;

    line-height:
        1.55;

    overflow-wrap:
        anywhere;
}


.history-details p {
    margin: 0;
}


.history-details div {

    display:
        grid;

    gap:
        4px;

    margin-top:
        10px;
}


.history-details span {

    font-size:
        10px;

    text-transform:
        uppercase;

    letter-spacing:
        .1em;

    color:
        #8a9098;
}


.history-details strong {
    color: #252a31;
}


.history-empty {

    padding:
        30px;

    text-align:
        center;

    color:
        #858b94;
}


.history-pagination-row {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    padding-top:
        12px;

    color:
        #727983;

    font-size:
        11px;
}


.history-pages {

    display:
        flex;

    gap:
        6px;
}


.history-pages button {

    width:
        30px;

    height:
        30px;

    border:
        1px solid #e0e4e9;

    border-radius:
        7px;

    background:
        #ffffff;
}


.history-pages button.active {

    background:
        #111827;

    color:
        #ffffff;
}


/* =========================================
   CLOSED LOOP
   ========================================= */

.closed-loop-workspace {
    padding:
        28px !important;
}


.continuity-setting label {

    color:
        #7d828a !important;

    opacity:
        1 !important;
}


.continuity-setting select {

    border:
        1px solid #dfe3e8 !important;

    background:
        #ffffff !important;

    color:
        #222222 !important;

    border-radius:
        9px !important;
}


.closed-loop-grid {

    grid-template-columns:
        1.25fr
        .75fr !important;

    gap:
        16px !important;
}


.closed-loop-card {
    padding:
        22px !important;
}


.closed-loop-card h3 {
    font-size:
        17px !important;
}


.closed-loop-count {

    border:
        1px solid #e0e4e9 !important;

    background:
        #f8f9fa !important;
}


.agenda-item,
.review-item,
.retrospective-item {

    border:
        1px solid #e6e9ed !important;

    background:
        #fafbfc !important;

    color:
        #222222 !important;

    border-radius:
        10px !important;
}


.agenda-origin,
.agenda-assumption {

    color:
        #747a83 !important;

    opacity:
        1 !important;
}


.outcome-panel {
    border-color:
        #e8ebef !important;
}


.outcome-button {
    font-size:
        11px !important;
}


.confidence-number strong {

    font-size:
        58px !important;

    color:
        #090b0e !important;
}


.confidence-number span {

    color:
        #7e848d !important;

    opacity:
        1 !important;
}


.confidence-chart {
    color:
        #5e54d8 !important;
}


.review-stat {
    color:
        #4e545d !important;
}


/* =========================================
   BUSINESS CARDS
   ========================================= */

.business-workspace-switcher select {

    border:
        1px solid #dfe3e8 !important;

    background:
        #ffffff !important;

    color:
        #222222 !important;
}


.business-list-item {

    border:
        1px solid #e6e9ed !important;

    background:
        #fafbfc !important;

    color:
        #222222 !important;
}


.business-meta {

    color:
        #777d86 !important;

    opacity:
        1 !important;
}


/* =========================================
   ABSOLUTE OVERFLOW SAFETY
   ========================================= */

.decision-composer textarea,
.decision-form textarea {

    max-width:
        100% !important;

    min-width:
        0 !important;

    box-sizing:
        border-box !important;
}


.dashboard-shell > * {

    min-width:
        0 !important;

    max-width:
        1150px !important;
}


.pro-workspace *,
.closed-loop-workspace *,
.business-workspace *,
.decision-composer * {

    max-width:
        100%;
}


.pro-history-copy p,
.agenda-item,
.business-list-item,
.review-item,
.retrospective-item {

    overflow-wrap:
        anywhere;

    word-break:
        break-word;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1100px) {

    .mock-sidebar {
        width:
            240px;
    }


    .dashboard-shell {

        margin-left:
            240px !important;

        padding:
            32px
            28px
            70px !important;
    }


    .history-row {

        grid-template-columns:
            minmax(0,2fr)
            130px
            105px
            90px
            125px;
    }


    .history-search {
        width:
            210px;
    }


    .pro-tool-card {
        padding-left:
            22px !important;
    }


    .pro-tool-card::before {

        position:
            static;

        margin-bottom:
            10px;
    }
}


@media (max-width: 900px) {

    .mock-sidebar {

        position:
            relative;

        width:
            100%;

        height:
            auto;

        padding:
            16px;
    }


    .mock-brand {
        padding-bottom:
            12px;
    }


    .mock-nav {

        grid-template-columns:
            repeat(
                4,
                minmax(0,1fr)
            );
    }


    .mock-nav-item {

        justify-content:
            center;

        padding:
            10px 6px;

        font-size:
            12px;
    }


    .mock-nav-icon {
        display:
            none;
    }


    .mock-user-area {
        display:
            none;
    }


    .dashboard-shell {

        margin-left:
            0 !important;

        padding:
            26px
            18px
            60px !important;
    }


    .pro-tool-grid,
    .closed-loop-grid {

        grid-template-columns:
            1fr !important;
    }


    .history-headline {

        align-items:
            stretch;

        flex-direction:
            column;
    }


    .history-controls {
        width:
            100%;
    }


    .history-search {
        width:
            100%;
    }


    .history-row {

        grid-template-columns:
            minmax(0,1fr)
            120px
            95px;
    }


    .history-confidence {
        display:
            none;
    }


    .history-actions {
        grid-column:
            3;
    }


    .history-status {
        grid-column:
            2;
    }


    .history-details {
        margin:
            4px 0;
    }


    .dashboard-intro h1 {

        font-size:
            clamp(
                48px,
                12vw,
                74px
            ) !important;
    }
}


@media (max-width: 620px) {

    .mock-nav {

        grid-template-columns:
            1fr 1fr;
    }


    .dashboard-shell {

        padding:
            22px
            12px
            50px !important;
    }


    .dashboard-intro p {

        font-size:
            17px !important;
    }


    .pro-workspace,
    .closed-loop-workspace,
    .business-workspace,
    .decision-composer {

        padding:
            20px !important;

        border-radius:
            15px !important;
    }


    .pro-workspace-head,
    .closed-loop-head {

        flex-direction:
            column !important;
    }


    .pre-stress-option {

        margin-left:
            0 !important;
    }


    .history-controls {

        flex-direction:
            column;
    }


    .history-filter {
        width:
            100%;
    }


    .history-row {

        grid-template-columns:
            minmax(0,1fr)
            98px;

        padding:
            12px 0;
    }


    .history-row-main {
        grid-column:
            1;
    }


    .history-date {

        grid-column:
            2;

        grid-row:
            1;
    }


    .history-status {

        grid-column:
            1;

        grid-row:
            2;

        margin-left:
            50px;
    }


    .history-actions {

        grid-column:
            2;

        grid-row:
            2;
    }


    .history-row-copy strong {
        white-space:
            normal;
    }


    .history-pagination-row {

        gap:
            12px;

        flex-direction:
            column;

        align-items:
            flex-start;
    }
}




/* CONTINUUM PROJECT JOURNEY FINAL UX */

.continuum-journey {
    max-width: 900px;
    margin: 0 auto 70px;
    padding: 32px 22px 10px;
}

.journey-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 64px;
}

.journey-kicker,
.journey-label {
    display: block;
    margin-bottom: 11px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    color: #8a8f98;
}

.journey-header h2 {
    margin: 0;
    color: #0b0d10;
    font-size: 32px;
    line-height: 1.15;
}

.journey-project-select {
    width: 250px;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #181b20;
    border-radius: 14px;
    background: #0b0d10;
    color: #ffffff;
    font: inherit;
    outline: none;
}

.journey-screen {
    max-width: 700px;
}

.journey-stage {
    display: inline-block;
    margin-bottom: 28px;
    padding: 7px 11px;
    border: 1px solid #dedfe2;
    border-radius: 999px;
    color: #656b74;
    font-size: 12px;
    font-weight: 650;
}

.journey-main-message {
    margin-bottom: 44px;
}

.journey-main-message h3 {
    max-width: 680px;
    margin: 0;
    color: #0b0d10;
    font-size: 32px;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.journey-state {
    max-width: 660px;
    padding-top: 30px;
    border-top: 1px solid #e5e6e8;
}

.journey-copy {
    max-width: 610px;
    margin: 0 0 26px;
    color: #60656d;
    font-size: 17px;
    line-height: 1.65;
}

.journey-action {
    max-width: 620px;
    margin: 0 0 28px;
    color: #17191d;
    font-size: 21px;
    font-weight: 520;
    line-height: 1.55;
}

.journey-question-label {
    display: block;
    margin-bottom: 12px;
    color: #17191d;
    font-size: 18px;
    font-weight: 650;
}

.journey-inputs {
    margin-bottom: 6px;
}

.journey-input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 12px;
    padding: 15px 16px;
    border: 1px solid #d8dade;
    border-radius: 12px;
    background: #ffffff;
    color: #101216;
    font: inherit;
    outline: none;
    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.journey-input:focus {
    border-color: #777d86;
    box-shadow: 0 0 0 3px rgba(15,17,20,.05);
}

.journey-textarea {
    min-height: 125px;
    resize: vertical;
    line-height: 1.55;
}

.journey-main-button {
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 11px;
    background: #0b0d10;
    color: #ffffff;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    transition:
        opacity .15s ease,
        transform .1s ease;
}

.journey-main-button:hover {
    opacity: .84;
}

.journey-main-button:active {
    transform: translateY(1px);
}

.journey-main-button:disabled {
    cursor: wait;
    opacity: .55;
}

.journey-feedback {
    min-height: 19px;
    margin: 12px 0 0;
    color: #70757d;
    font-size: 13px;
}

.journey-transition h3 {
    margin: 0 0 26px;
    color: #0b0d10;
    font-size: 26px;
}

@media (max-width: 760px) {

    .continuum-journey {
        padding: 24px 4px;
    }

    .journey-header {
        flex-direction: column;
        margin-bottom: 44px;
    }

    .journey-project-select {
        width: 100%;
    }

    .journey-main-message h3 {
        font-size: 27px;
    }
}

/* PROJECT JOURNEY CONTROL FIXES */
.journey-project-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.journey-secondary-button {
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #d8dade;
    border-radius: 14px;
    background: #ffffff;
    color: #101216;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.journey-secondary-button:hover {
    background: #f4f5f6;
}

.history-outcome p {
    margin: 6px 0 0;
    line-height: 1.45;
}

@media (max-width: 760px) {
    .journey-project-controls {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
}

/* =========================================================
   CONTINUUM DARK SYSTEM UI — GLOBAL FINAL THEME
   UI only. No application logic changes.
========================================================= */
:root {
    --c-bg: #050505;
    --c-sidebar: #08090b;
    --c-surface: #0b0b0c;
    --c-surface-2: #101012;
    --c-surface-3: #151518;
    --c-border: #26262b;
    --c-border-soft: #1b1b1f;
    --c-text: #f5f5f5;
    --c-text-2: #c9c9ce;
    --c-muted: #85858d;
    --c-dim: #62626a;
}

html, body {
    background: var(--c-bg) !important;
    color: var(--c-text) !important;
}

body, input, textarea, select, button {
    color-scheme: dark;
}

.mock-dashboard,
.mock-main,
.dashboard-shell,
.dashboard-main,
.page-shell,
main {
    background: var(--c-bg) !important;
    color: var(--c-text) !important;
}

.mock-sidebar {
    background: var(--c-sidebar) !important;
    border-right: 1px solid var(--c-border-soft) !important;
}

.mock-brand-name,
.mock-user-name,
.mock-nav-item,
.mock-sidebar strong {
    color: var(--c-text) !important;
}

.mock-brand-subtitle,
.mock-user-plan,
.mock-nav-icon {
    color: var(--c-muted) !important;
}

.mock-nav-item {
    border: 1px solid transparent !important;
    background: transparent !important;
}

.mock-nav-item:hover,
.mock-nav-item.active,
.mock-nav-item:first-child {
    background: var(--c-surface-3) !important;
    border-color: var(--c-border) !important;
}

.mock-logout {
    color: var(--c-text-2) !important;
    border-color: var(--c-border) !important;
    background: transparent !important;
}

.mock-logout:hover { background: var(--c-surface-2) !important; }

/* Shared typography */
.composer-label,
.pro-tool-label,
.journey-kicker,
.journey-label,
.closed-loop-workspace label,
.history-redesign .pro-tool-label {
    color: var(--c-muted) !important;
}

h1, h2, h3, h4,
.pro-workspace h2,
.pro-workspace h3,
.closed-loop-workspace h2,
.closed-loop-workspace h3,
.history-redesign h3,
.continuum-journey h2,
.continuum-journey h3 {
    color: var(--c-text) !important;
}

p,
.pro-workspace-head p,
.closed-loop-head p,
.pro-tool-card p,
.journey-copy,
.pro-muted,
.history-meta,
.history-review-state {
    color: var(--c-text-2) !important;
}

/* Remove white dashboard slabs */
.pro-workspace,
.closed-loop-workspace,
.composer-card,
.analysis-card,
.result-card,
.dashboard-card {
    background: transparent !important;
    border-color: var(--c-border-soft) !important;
    box-shadow: none !important;
}

.pro-workspace,
.closed-loop-workspace {
    border-top: 1px solid var(--c-border-soft) !important;
    border-radius: 0 !important;
    padding-top: 52px !important;
}

/* Memory */
.pro-workspace-head {
    border-bottom: 1px solid var(--c-border-soft) !important;
    padding-bottom: 28px !important;
    margin-bottom: 28px !important;
}

.pro-tool-grid {
    gap: 14px !important;
}

.pro-tool-card,
.pro-history-card,
.closed-loop-card {
    background: var(--c-surface) !important;
    border: 1px solid var(--c-border) !important;
    box-shadow: none !important;
}

.pro-tool-card:hover,
.closed-loop-card:hover {
    background: var(--c-surface-2) !important;
    border-color: #34343a !important;
}

.pro-context-input,
.history-search,
.history-filter,
#retrospective-days,
input,
textarea,
select {
    background: var(--c-surface-2) !important;
    color: var(--c-text) !important;
    border-color: var(--c-border) !important;
}

input::placeholder,
textarea::placeholder { color: #73737c !important; }

.pro-list,
.pro-list strong,
.pro-list b { color: var(--c-text) !important; }
.pro-list small,
.pro-list span { color: var(--c-text-2); }

/* Buttons — monochrome hierarchy */
.button,
.pro-action,
.journey-main-button {
    border-radius: 10px !important;
    box-shadow: none !important;
}

.button-primary,
.journey-main-button {
    background: var(--c-text) !important;
    color: #080808 !important;
    border: 1px solid var(--c-text) !important;
}

.button-secondary,
.pro-action,
.pro-refresh,
.journey-secondary-button {
    background: transparent !important;
    color: var(--c-text) !important;
    border: 1px solid #3a3a40 !important;
}

.button:hover,
.pro-action:hover,
.pro-refresh:hover,
.journey-secondary-button:hover {
    background: var(--c-surface-3) !important;
}

/* History — calmer, denser rows */
.history-redesign {
    margin-top: 18px !important;
    padding: 26px !important;
}

.history-headline {
    border-bottom: 1px solid var(--c-border-soft) !important;
    padding-bottom: 20px !important;
}

.pro-history-list > * {
    border-color: var(--c-border-soft) !important;
}

.history-item,
.history-row,
.pro-history-row {
    background: transparent !important;
    border-color: var(--c-border-soft) !important;
}

.history-item:hover,
.history-row:hover,
.pro-history-row:hover {
    background: var(--c-surface-2) !important;
}

.history-item strong,
.history-row strong,
.pro-history-row strong,
.history-title { color: var(--c-text) !important; }

.history-item button,
.history-row button,
.history-redesign button {
    background: transparent !important;
    color: var(--c-text-2) !important;
    border-color: var(--c-border) !important;
}

.history-item button:hover,
.history-row button:hover,
.history-redesign button:hover {
    color: var(--c-text) !important;
    background: var(--c-surface-3) !important;
}

/* De-emphasize bright semantic pills */
.status-completed,
.history-status,
.badge,
.pill,
[class*="status-"] {
    background: #151517 !important;
    color: #d6d6da !important;
    border-color: #2c2c31 !important;
}

/* Closed loop: attention first */
.closed-loop-head {
    border-bottom: 1px solid var(--c-border-soft) !important;
    padding-bottom: 26px !important;
}

.closed-loop-grid {
    gap: 14px !important;
}

.agenda-card {
    grid-column: 1 / -1 !important;
    min-height: 220px !important;
}

.closed-loop-count {
    background: var(--c-surface-2) !important;
    border: 1px solid var(--c-border) !important;
    color: var(--c-text) !important;
}

.closed-loop-list > * {
    border-color: var(--c-border-soft) !important;
    background: transparent !important;
}

.confidence-number strong {
    color: var(--c-text) !important;
}

.confidence-number span,
#confidence-meta { color: var(--c-muted) !important; }

.confidence-chart line,
.confidence-chart polyline,
.confidence-chart path {
    stroke: #d7d7dc !important;
}

.confidence-chart circle { fill: #f0f0f2 !important; }

/* Journey */
.continuum-journey {
    color: var(--c-text) !important;
}

.journey-project-select,
.journey-input {
    background: var(--c-surface) !important;
    color: var(--c-text) !important;
    border-color: var(--c-border) !important;
}

.journey-stage {
    background: transparent !important;
    color: var(--c-text-2) !important;
    border-color: var(--c-border) !important;
}

.journey-main-message,
.journey-state {
    border-color: var(--c-border-soft) !important;
}

/* Decision composer and results */
.decision-form textarea,
.decision-form input,
.decision-form select {
    background: var(--c-surface) !important;
    color: var(--c-text) !important;
    border-color: var(--c-border) !important;
}

.result-section,
.analysis-section,
.phase-card,
.result-panel {
    background: var(--c-surface) !important;
    border-color: var(--c-border) !important;
    color: var(--c-text) !important;
}

/* Scrollbars */
* { scrollbar-color: #35353b #0a0a0b; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0a0b; }
::-webkit-scrollbar-thumb { background: #35353b; border-radius: 999px; border: 2px solid #0a0a0b; }

@media (max-width: 900px) {
    .pro-tool-grid,
    .closed-loop-grid { grid-template-columns: 1fr !important; }
    .agenda-card { grid-column: auto !important; }
}


/* =========================================================
   CONTINUUM SIDEBAR REFINEMENT
========================================================= */

.mock-sidebar {
    width: 248px !important;
    padding: 18px 14px !important;
}

.dashboard-shell {
    margin-left: 248px !important;
}

.mock-brand {
    gap: 11px !important;
    padding: 2px 8px 24px !important;
}

.mock-brand-mark {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    font-size: 21px !important;
}

.mock-brand-copy strong {
    font-size: 17px !important;
    line-height: 1.15 !important;
}

.mock-brand-copy small {
    margin-top: 2px !important;
    font-size: 8px !important;
    letter-spacing: .16em !important;
    color: #9b9ba3 !important;
}

.mock-nav {
    gap: 4px !important;
}

.mock-nav-item {
    min-height: 42px !important;
    padding: 9px 11px !important;
    gap: 11px !important;

    border-radius: 10px !important;

    font-size: 13.5px !important;
    font-weight: 500 !important;
    letter-spacing: -.01em !important;
}

.mock-nav-item:hover,
.mock-nav-item.active,
.mock-nav-item.is-active,
.mock-nav-item:first-child {
    background: #111114 !important;
    border-color: #29292e !important;
}

.mock-nav-icon {
    width: 18px !important;
    height: 18px !important;

    display: grid !important;
    place-items: center !important;

    flex: 0 0 18px !important;

    color: #a8a8af !important;
}

.mock-nav-icon svg {
    width: 17px !important;
    height: 17px !important;

    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.6 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.mock-nav-item:hover .mock-nav-icon,
.mock-nav-item.is-active .mock-nav-icon,
.mock-nav-item:first-child .mock-nav-icon {
    color: #f1f1f3 !important;
}

.mock-user-area {
    padding-top: 16px !important;
}

.mock-user-row {
    gap: 10px !important;
    padding: 0 7px 13px !important;
}

.mock-avatar {
    width: 36px !important;
    height: 36px !important;
    font-size: 15px !important;
}

.mock-user-copy strong {
    font-size: 14px !important;
}

.mock-user-copy small {
    margin-top: 1px !important;
    font-size: 11px !important;
    color: #a7a7ae !important;
}

.mock-logout {
    height: 42px !important;

    justify-content: flex-start !important;

    padding: 0 11px !important;
    gap: 10px !important;

    border-radius: 10px !important;

    font-size: 13px !important;
    font-weight: 500 !important;
}

.mock-logout-icon {
    width: 18px;
    height: 18px;

    display: grid;
    place-items: center;

    color: #a8a8af;
}

.mock-logout-icon svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   SELECT — BETTER CHEVRON POSITION
========================================================= */

.journey-project-select {
    appearance: none !important;
    -webkit-appearance: none !important;

    padding:
        0 44px
        0 16px !important;

    background-color: #0b0b0d !important;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23c6c6cc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") !important;

    background-repeat: no-repeat !important;
    background-position:
        right 16px
        center !important;
    background-size: 14px 14px !important;
}


/* Slightly more compact sidebar on smaller desktop widths */

@media (max-width: 1180px) {

    .mock-sidebar {
        width: 226px !important;
    }

    .dashboard-shell {
        margin-left: 226px !important;
    }

    .mock-nav-item {
        font-size: 13px !important;
    }
}

/* =========================================================
   DECISION ENGINE HERO — FINAL DARK FIX
========================================================= */

.dashboard-intro {
    background: transparent !important;
}

.dashboard-intro .composer-label,
.dashboard-intro .dashboard-kicker {
    color: #a4a4ab !important;
}

.dashboard-intro h1,
.dashboard-intro h1 *,
.dashboard-intro h1 span,
.dashboard-intro h1 strong,
.dashboard-intro h1 em {
    color: #f5f5f5 !important;
    -webkit-text-fill-color: #f5f5f5 !important;
    opacity: 1 !important;
}

.dashboard-intro h1 span:last-child {
    color: #b5b5ba !important;
    -webkit-text-fill-color: #b5b5ba !important;
}

.dashboard-intro p,
.dashboard-intro .dashboard-subtitle,
.dashboard-intro .intro-copy {
    color: #c7c7cc !important;
    -webkit-text-fill-color: #c7c7cc !important;
    opacity: 1 !important;
}



/* CONTINUUM MEMORY + CLOSED LOOP V2 */

.pro-workspace {
    border-color: #202024 !important;
    background: #070708 !important;
}

.memory-head-v2 {
    align-items: center !important;
    padding-bottom: 22px !important;
    border-bottom: 1px solid #1f1f23 !important;
}

.memory-head-copy {
    max-width: 760px;
}

.memory-head-v2 h2 {
    margin: 7px 0 8px !important;
    color: #f7f7f8 !important;
    font-size: clamp(27px, 3vw, 38px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.035em !important;
}

.memory-head-v2 p {
    margin: 0 !important;
    max-width: 700px !important;
    color: #c2c2c8 !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
}

.memory-refresh {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid #2d2d33;
    border-radius: 10px;
    background: #0d0d10;
    color: #e9e9ec;
    font: inherit;
    font-size: 12.5px;
    font-weight: 550;
    cursor: pointer;
}

.memory-refresh:hover {
    background: #151518;
    border-color: #3a3a40;
}

.memory-refresh svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.memory-control-row {
    padding: 14px 0 2px;
}

.memory-toggle {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    max-width: 520px;
    cursor: pointer;
}

.memory-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.memory-toggle-ui {
    position: relative;
    width: 34px;
    height: 20px;
    flex: 0 0 34px;
    border: 1px solid #3b3b42;
    border-radius: 999px;
    background: #111114;
    transition: background .15s ease, border-color .15s ease;
}

.memory-toggle-ui::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #8e8e96;
    transition: transform .15s ease, background .15s ease;
}

.memory-toggle input:checked + .memory-toggle-ui {
    background: #f0f0f2;
    border-color: #f0f0f2;
}

.memory-toggle input:checked + .memory-toggle-ui::after {
    transform: translateX(14px);
    background: #070708;
}

.memory-toggle-copy {
    display: grid;
    gap: 2px;
}

.memory-toggle-copy strong {
    color: #ececef !important;
    font-size: 12.5px;
    font-weight: 600;
}

.memory-toggle-copy small {
    color: #9898a0 !important;
    font-size: 11.5px;
    line-height: 1.4;
}

.closed-loop-layout-v2 {
    padding: clamp(28px,4vw,46px) !important;
    border: 1px solid #202024 !important;
    border-radius: 24px !important;
    background: #070708 !important;
}

.closed-loop-layout-v2 .closed-loop-head {
    padding-bottom: 24px;
    border-bottom: 1px solid #1f1f23;
}

.closed-loop-layout-v2 .closed-loop-head h2 {
    margin: 7px 0 8px !important;
    color: #f7f7f8 !important;
    font-size: clamp(27px, 3vw, 38px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.035em !important;
}

.closed-loop-layout-v2 .closed-loop-head p {
    margin: 0 !important;
    max-width: 720px !important;
    color: #c2c2c8 !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
}

.closed-loop-focus {
    margin-top: 24px;
}

.closed-loop-layout-v2 .closed-loop-card {
    border: 1px solid #242429 !important;
    border-radius: 16px !important;
    background: #0b0b0d !important;
    box-shadow: none !important;
}

.agenda-card-v2 {
    min-height: 190px;
    padding: 24px !important;
}

.agenda-card-v2 .closed-loop-card-head {
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid #1e1e22;
}

.agenda-card-v2 h3,
.weekly-card h3,
.retrospective-card-v2 h3 {
    margin: 6px 0 0 !important;
    color: #f3f3f5 !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
}

.closed-loop-count {
    min-width: 32px !important;
    min-height: 32px !important;
    border: 1px solid #34343a !important;
    background: #111114 !important;
    color: #d8d8dc !important;
}

.closed-loop-secondary-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 14px;
    margin-top: 14px;
}

.learning-card,
.weekly-card {
    min-height: 220px;
    padding: 22px !important;
}

.confidence-number {
    margin-top: 14px !important;
    gap: 12px !important;
}

.confidence-number strong {
    color: #f6f6f7 !important;
    font-size: clamp(40px,5vw,60px) !important;
    font-weight: 620 !important;
}

.confidence-number span {
    color: #aaaab1 !important;
    opacity: 1 !important;
}

.confidence-chart {
    height: 92px !important;
    margin-top: 18px !important;
    color: #c5c5ca !important;
}

.confidence-chart polyline {
    stroke: currentColor !important;
    stroke-width: 1.5 !important;
}

.confidence-chart circle {
    fill: currentColor !important;
}

#confidence-meta {
    margin-top: 8px;
    color: #9999a1 !important;
    font-size: 11.5px !important;
}

.weekly-card .closed-loop-list {
    margin-top: 20px;
}

.review-stat {
    padding: 10px 0;
    border-bottom: 1px solid #1d1d21;
    color: #bdbdc3 !important;
}

.review-stat:last-child {
    border-bottom: 0;
}

.review-stat span:last-child {
    color: #f0f0f2 !important;
}

.retrospective-card-v2 {
    margin-top: 14px;
    padding: 24px !important;
}

.retrospective-head-v2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #1f1f23;
}

.retrospective-head-v2 p {
    max-width: 620px;
    margin: 8px 0 0;
    color: #aaaab1 !important;
    font-size: 13px;
    line-height: 1.55;
}

.continuity-setting-v2 {
    min-width: 138px !important;
}

.continuity-setting-v2 label {
    color: #92929a !important;
    opacity: 1 !important;
}

.continuity-setting-v2 select {
    min-height: 38px;
    padding: 0 38px 0 12px !important;
    border: 1px solid #303036 !important;
    border-radius: 9px !important;
    background-color: #0d0d10 !important;
    color: #eeeeef !important;
    font-size: 12px !important;
}

.retrospective-content-v2 {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 32px;
    padding-top: 22px;
}

.closed-loop-layout-v2 .closed-loop-list {
    margin-top: 12px;
}

.closed-loop-layout-v2 .pro-muted {
    color: #9999a1 !important;
}

.agenda-item,
.review-item,
.retrospective-item {
    border-color: #25252a !important;
    border-radius: 11px !important;
    background: #0f0f11 !important;
}

.agenda-item strong {
    color: #efeff1 !important;
}

.agenda-origin,
.agenda-assumption {
    color: #9d9da5 !important;
    opacity: 1 !important;
}

@media (max-width: 900px) {
    .closed-loop-secondary-grid,
    .retrospective-content-v2 {
        grid-template-columns: 1fr;
    }

    .retrospective-head-v2 {
        flex-direction: column;
    }

    .continuity-setting-v2 {
        width: 100%;
    }
}

/* CONTINUUM PRIVACY / CONSENT */
.footer-legal{display:flex;align-items:center;gap:14px;color:var(--quiet);font-size:12px}.footer-legal a:hover{color:var(--ink)}
.consent-row{display:grid;grid-template-columns:18px 1fr;gap:10px;align-items:start;margin:16px 0;color:var(--muted);font-size:12px;line-height:1.5}
.consent-row input{margin-top:2px}.consent-row a{text-decoration:underline;text-underline-offset:2px;color:var(--ink)}.consent-optional{padding-top:14px;border-top:1px solid var(--line)}
.legal-page{max-width:840px;padding-top:96px;padding-bottom:120px}.legal-page h1{margin:18px 0 10px;font-size:clamp(46px,6vw,72px);line-height:1;letter-spacing:-.055em}.legal-meta{margin:0 0 48px;color:var(--quiet);font-size:12px}.legal-page h2{margin:38px 0 10px;font-size:21px;letter-spacing:-.025em}.legal-page p{margin:0;color:var(--muted);font-size:15px;line-height:1.75}.legal-page a{text-decoration:underline;text-underline-offset:2px;color:var(--ink)}


/* CONTINUUM AUTH READABILITY FIX */
.auth-page .auth-card{
    background:#070708;
    color:#f4f4f5;
    border-color:#34343a;
}
.auth-page .auth-card-head>span{
    color:#9a9aa3;
}
.auth-page .auth-card-head h2{
    color:#f7f7f8;
}
.auth-page .auth-card-head p{
    color:#b7b7be;
}
.auth-page .field label{
    color:#ececef;
}
.auth-page .field input{
    background:#111113 !important;
    color:#f5f5f6 !important;
    border-color:#38383e !important;
    caret-color:#fff;
}
.auth-page .field input:focus{
    border-color:#686870 !important;
    box-shadow:0 0 0 3px rgba(255,255,255,.07) !important;
}
.auth-page .field input::placeholder{
    color:#777780;
    opacity:1;
}
.auth-page .btn-primary{
    background:#f4f4f5 !important;
    color:#080808 !important;
    border-color:#f4f4f5 !important;
}
.auth-page .btn-primary:hover{
    background:#ffffff !important;
}
.auth-page .auth-switch{
    color:#c5c5cb !important;
}
.auth-page .auth-switch a{
    color:#ffffff !important;
    text-decoration:underline;
    text-underline-offset:3px;
}
.auth-page .consent-row{
    color:#c1c1c7 !important;
}
.auth-page .consent-row a{
    color:#ffffff !important;
}


/* CONTINUUM HOME REASONING HOVER FIX */
.reasoning-system .reasoning-card{
    background:transparent;
    color:inherit;
}
.reasoning-system .reasoning-card:hover{
    background:#0b0c0e !important;
    color:#f4f4f5 !important;
    border-color:#34373d !important;
    box-shadow:0 18px 42px rgba(0,0,0,.22) !important;
}
.reasoning-system .reasoning-card:hover h3{
    color:#f4f4f5 !important;
}
.reasoning-system .reasoning-card:hover p{
    color:#b8bbc2 !important;
}
.reasoning-system .reasoning-card:hover>span{
    color:#8f949e !important;
}


/* CONTINUUM ACCOUNT PRIVACY */
.account-privacy-page{max-width:860px}
.account-security-card{margin-top:22px;padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.account-security-card h2{margin:0 0 10px;font-size:20px}
.account-security-card p{margin:0 0 18px}
.account-danger-zone{border-color:#d8c4c4}
.account-security-state{margin-top:12px!important;color:var(--muted)}
