/* BOKLYFT editorial polish R3 — static/isolated design preview.
   Reduce generic AI decoration. Editorial storytelling, legible surfaces,
   accessible actions. No changes to production or product semantics.
*/

/* Navigation: deliberately opaque enough to read across a photo or dark app.
   Force readable ink on a light navigation surface, even when .is-night is set
   by the scroll controller, but preserve the actual selected dark theme. */
html:not([data-bl-theme="dark"]) header .header-shell.bl-cn,
html:not([data-bl-theme="dark"]) header .header-shell.bl-cn.is-night {
  color:#0a1832!important;
  background:rgba(251,250,247,.96)!important;
  border-color:rgba(255,255,255,.96)!important;
  box-shadow:0 10px 38px rgba(7,18,38,.19),inset 0 1px 0 rgba(255,255,255,.95);
}
html:not([data-bl-theme="dark"]) header .header-shell.bl-cn :is(.header-word,.bl-cn-toggle,.bl-cn-toggle-label),
html:not([data-bl-theme="dark"]) header .header-shell.bl-cn.is-night :is(.header-word,.bl-cn-toggle,.bl-cn-toggle-label) {
  color:#0a1832!important;
}
html[data-bl-theme="dark"] header .header-shell.bl-cn,
html[data-bl-theme="dark"] header .header-shell.bl-cn.is-night{
  background:rgba(9,22,43,.96)!important;color:#f6f8ff!important;
  border-color:rgba(255,255,255,.22)!important;
}
html[data-bl-theme="dark"] header .header-shell.bl-cn :is(.header-word,.bl-cn-toggle,.bl-cn-toggle-label){
  color:#f6f8ff!important;
}
header .header-shell.bl-cn .header-brand{white-space:nowrap}
header .header-shell.bl-cn .header-word{opacity:1!important;text-shadow:none}
header .header-shell.bl-cn .bl-cn-panel{
  background:#f8f7f4!important;
  color:#091831!important;
  border:1px solid rgba(8,20,45,.12)!important;
  box-shadow:0 22px 62px rgba(5,14,32,.24),inset 0 1px 0 #fff!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  overflow:visible;z-index:90;
}
html[data-bl-theme="dark"] header .header-shell.bl-cn .bl-cn-panel{
  background:#101d32!important;
  color:#f5f7ff!important;
  border-color:rgba(255,255,255,.19)!important;
}
.bl-cn-card{
  border-radius:15px;border:1px solid rgba(9,25,48,.10);
  background:#f4f2ed;min-height:178px;
  box-shadow:none; padding:21px 19px;
}
.bl-cn-card--blue{background:#edf1fb}
.bl-cn-card--navy{background:#12243d;border-color:#12243d}
.bl-cn-card--warm{background:#eeeae2}
.bl-cn-card-title{font-size:clamp(19px,2vw,24px);line-height:1.11}
.bl-cn-card-desc{font-size:12px;line-height:1.6}
.bl-cn-card-links a{
  text-decoration:none;text-underline-offset:3px;min-height:34px;
}
header .header-shell.bl-cn .bl-cn-toggle{
  min-width:89px;
  border-color:rgba(9,25,48,.13);
  background:rgba(255,255,255,.46);
}
html[data-bl-theme="dark"] header .header-shell.bl-cn .bl-cn-toggle{
  background:rgba(255,255,255,.07);
  border-color:rgba(255,255,255,.24);
}
.bl-cn-tools{
  border-top:1px solid rgba(8,20,45,.15);
  padding:11px 8px 3px;min-height:57px;
}
html[data-bl-theme="dark"] .bl-cn-tools{border-color:rgba(255,255,255,.14)}
.bl-cn-tools button,.bl-cn-tools a{font-weight:650}
.bl-cn-tools .header-login:hover,.bl-cn-tools .lang:hover{
  background:rgba(53,91,255,.12)!important;
}
html:not([data-bl-theme="dark"]) .bl-cn-tools .header-login,
html:not([data-bl-theme="dark"]) .bl-cn-tools .lang{
  color:#0c1d3b!important;
}
/* Glass is used on the navigation BAR only: content cards stay readable. */
html[data-bl-theme="glass"] header .header-shell.bl-cn,
html[data-bl-theme="glass"] header .header-shell.bl-cn.is-night{
  background:rgba(248,248,246,.88)!important;
  -webkit-backdrop-filter:blur(20px) saturate(1.18)!important;
  backdrop-filter:blur(20px) saturate(1.18)!important;
}

/* Give the story a genuinely useful END rather than a permanent label and counter. */
.chaos-stage .bl-chaos-story,.chaos-stage .bl-chaos-orbit{display:none!important}
.chaos-stage::before{
  background:radial-gradient(ellipse 42% 43% at 50% 50%,rgba(53,91,255,.065),transparent 78%);
}
.chaos-stage .collector{
  background:#fff;box-shadow:0 18px 45px rgba(8,20,45,.12);
}
.chaos-stage .collector::before{
  content:'';position:absolute;inset:-11px;border:1px solid rgba(53,91,255,.15);
  border-radius:38px;pointer-events:none;
}
.chaos-stage .interrupt{border-color:rgba(8,20,45,.09);border-radius:17px;box-shadow:0 14px 35px rgba(8,20,45,.09)}
.bl-story-finale{
  position:absolute;z-index:12;bottom:83px;left:50%;
  width:min(640px,calc(100% - 42px));
  padding:18px 22px 14px;
  border-radius:15px;
  background:rgba(250,249,245,.96);
  border:1px solid rgba(8,20,45,.13);
  box-shadow:0 18px 46px rgba(7,18,38,.13);
  color:#0d1b35;text-align:center;
  opacity:0;transform:translate(-50%,14px);pointer-events:none;
  transition:opacity .45s cubic-bezier(.22,1,.36,1),transform .55s cubic-bezier(.22,1,.36,1);
}
.chaos-stage.bl-story-complete .bl-story-finale{opacity:1;transform:translate(-50%,0)}
.bl-story-finale-overline{
  display:block;color:#355bff;font:750 10px/1.2 Inter,system-ui,sans-serif;
  letter-spacing:.09em;margin-bottom:7px;
}
.bl-story-finale-headline{
  display:block;font-family:var(--display-serif);font-size:clamp(26px,3.5vw,40px);
  line-height:1.05;letter-spacing:-.04em;font-weight:560;
}
.bl-story-finale-subline{
  margin:8px auto 0;color:#485670;
  max-width:530px;font:500 12px/1.6 Inter,system-ui,sans-serif;
}
.chaos-stage.bl-story-complete .sort-row{opacity:1}
.chaos-stage .sort-row{
  display:flex;justify-content:center;align-items:center;gap:0;
  padding:0 8px;flex-wrap:wrap;border-radius:12px;
}
.chaos-stage .sort-row span{
  background:transparent!important;border:0!important;
  color:#22324e;box-shadow:none!important;
  border-radius:0!important;padding:8px 12px;font-size:11px;font-weight:650;
  border-right:1px solid rgba(8,20,45,.14)!important;
}
.chaos-stage .sort-row span:last-child{border-right:0!important}
.chaos-stage.bl-story-complete .collector{box-shadow:0 18px 45px rgba(8,20,45,.14)}

/* Chat should plainly state the local scripted status; never fake thinking trace. */
#demo .chat-brand{min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:3px 10px}
#demo .chat-brand .bl-demo-brand-context{
  flex-basis:100%;font-size:10px;font-weight:500;line-height:1.3;color:#64718a;
}
#demo .chat-monogram{
  align-self:center;font-family:var(--display-serif);font-size:19px;
  background:#355bff;color:#fff;border:0;border-radius:12px;width:33px;height:33px;
}
.typing-indicator.bl-answer-progress{min-width:184px;max-width:95%;min-height:42px;gap:9px}
.typing-indicator.bl-answer-progress .bl-answer-glyph{
  flex:0 0 18px!important;width:18px!important;min-width:18px!important;height:20px!important;
  display:inline-grid!important;place-items:center;background:transparent!important;
  color:#355bff!important;transform-origin:center;
}
.typing-indicator.bl-answer-progress .bl-answer-label{
  width:auto!important;min-width:max-content!important;height:auto!important;
  flex:0 0 auto!important;
  display:inline-block!important;overflow:visible!important;
  white-space:nowrap!important;
  padding:0 3px 0 1px!important;
  font:650 12px/1.4 Inter,system-ui,sans-serif!important;
  color:#243955!important;-webkit-text-fill-color:#243955!important;
  letter-spacing:0!important;
  background:none!important;
  animation:none!important;transform:none!important;opacity:1!important;
}
/* Center the original submit button icon geometrically. No changes to submit handlers. */
:is(.demo-shell,.boklyft-chat-window) .chat-input button[type="submit"]{
  position:absolute!important;right:5px!important;top:50%!important;
  translate:0 -50%!important;transform:none!important;
  width:42px!important;height:42px!important;min-width:42px!important;
  display:grid!important;place-items:center!important;
  padding:0!important;margin:0!important;border-radius:50%!important;
  line-height:0!important;font-size:0!important;
}
:is(.demo-shell,.boklyft-chat-window) .chat-input button[type="submit"]::before{
  content:''!important;display:block!important;
  position:static!important;float:none!important;
  width:19px!important;height:19px!important;min-width:19px!important;
  flex:none!important;margin:0!important;
  background-size:19px 19px!important;background-position:center!important;
  transform:translate(-.5px,.5px)!important;
}
:is(.demo-shell,.boklyft-chat-window) .chat-input button[type="submit"]:focus-visible{
  outline:2px solid #355bff!important;outline-offset:3px!important;
}

/* Partner experience: show specific value & allow visitors to experiment. */
.partner-section{background:#08152a}
.partner-section:before{display:none}
.partner-intro{margin-bottom:28px}
.partner-intro p{color:#ccd5e2;line-height:1.65}
.bl-partner-steps{
  position:relative;z-index:2;
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;margin-bottom:32px;border-top:1px solid rgba(255,255,255,.18);
  border-bottom:1px solid rgba(255,255,255,.18);
}
.bl-partner-step{display:flex;flex-direction:column;justify-content:center;padding:26px 24px;min-width:0;gap:8px}
.bl-partner-step+ .bl-partner-step{border-left:1px solid rgba(255,255,255,.16)}
.bl-partner-step strong{font:620 20px/1.27 Inter,ui-sans-serif,system-ui,sans-serif;letter-spacing:-.015em;color:#fff;text-wrap:balance}
.bl-partner-step>span:last-child{color:#d3deed;font:450 14px/1.56 Inter,ui-sans-serif,system-ui,sans-serif;margin-top:0;max-width:34ch}
.partner-console{
  padding:24px;background:#12243d;border:1px solid rgba(255,255,255,.17);
  border-radius:25px;box-shadow:0 26px 76px rgba(0,0,0,.23);
}
.partner-console .console-top{
  padding:2px 2px 16px;margin-bottom:12px;border-bottom:1px solid rgba(255,255,255,.12);
}
.partner-console .partner-brand{font-size:16px;font-weight:680}
.partner-console .console-top small{color:#c7d2e2}
.partner-console .demo-disclaimer{color:#c3cedf;margin:0 0 14px;font-size:11px}
.bl-partner-console-helper{
  display:flex;align-items:center;justify-content:space-between;gap:13px;flex-wrap:wrap;
  padding:8px 2px 14px;margin-bottom:4px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.bl-partner-console-helper>span:first-child{
  color:#d1d9e6;font:530 12px/1.5 Inter,system-ui,sans-serif;
}
.bl-hold-reset{
  --bl-hold-p:0;
  position:relative;isolation:isolate;min-height:42px;min-width:162px;
  display:inline-grid;place-items:center;overflow:hidden;
  padding:10px 17px;border:1px solid rgba(255,255,255,.4);
  border-radius:12px;background:#1c3354;color:#f6f9ff;
  font:650 12px/1.2 Inter,system-ui,sans-serif;cursor:pointer;
  touch-action:manipulation;user-select:none;
}
.bl-hold-reset-fill{
  position:absolute;inset:0;z-index:-1;background:#355bff;
  transform:scaleX(0);transform-origin:left center;
}
.bl-hold-reset.bl-holding .bl-hold-reset-fill{transform:scaleX(1);transition:transform 2s linear}
.bl-hold-reset.bl-hold-done .bl-hold-reset-fill{transform:scaleX(1);transition:none}
.bl-hold-reset:not(.bl-holding):not(.bl-hold-done) .bl-hold-reset-fill{transition:transform .2s ease-out}
.bl-hold-reset:focus-visible{outline:2px solid #a3b5ff;outline-offset:3px}
.partner-console .console-grid{gap:14px;align-items:stretch}
.partner-console .queue{gap:10px}
.partner-console .queue-card{
  background:#fcfcfa;border:1px solid rgba(15,31,56,.08);
  box-shadow:0 3px 12px rgba(3,15,32,.06);border-radius:17px;
  padding:20px 21px;
}
.partner-console .queue-card b{font-weight:675;letter-spacing:-.017em}
.partner-console .queue-card .pill{
  min-width:71px;text-align:center;
  border-radius:9px;border:1px solid rgba(140,102,44,.20);
  background:#f8efe0;color:#78521d;font-weight:700;font-size:11px;
}
.partner-console .queue-card .pill.state-approved{background:#e6f5ed;color:#246b4b;border-color:#c8e4d4}
.partner-console .queue-card .pill.state-rejected{background:#faeeed;color:#913f39;border-color:#ebd0cc}
.partner-console .queue-actions{margin-top:2px}
.partner-console .queue-actions button{
  min-height:42px;border-radius:10px;font-weight:700;cursor:pointer;
  border:1px solid rgba(8,20,45,.10);
}
.partner-console .queue-actions .approve{background:#226f53;color:#fff}
.partner-console .queue-actions .reject{background:#f8eeec;color:#8d3d36}
.partner-console .queue-actions button:focus-visible{outline:2px solid #355bff;outline-offset:3px}
.partner-console .command{
  background:#1a304e;border:1px solid rgba(255,255,255,.09);
  color:#fff;border-radius:17px;padding:23px 20px;
}
.partner-console .command-stat{border-bottom-color:rgba(255,255,255,.11)}
.partner-console .evening-list{border-top-color:rgba(255,255,255,.1)}
.partner-console .evening-list small{color:#d2dae5}
/* Strengthen small controls: avoid pale, generic pills. */
#demo .quick button,.boklyft-chat-window .quick button{
  background:#fff;color:#182b4c;border:1px solid #cad3e0;
  padding:10px 15px;border-radius:11px;
  font-size:12px;font-weight:680;min-height:39px;
}
#demo .quick button:not(:disabled):hover,.boklyft-chat-window .quick button:not(:disabled):hover{
  background:#edf2fb;border-color:#92aaf3;
}
@media(max-width:980px){
  .bl-partner-steps{grid-template-columns:1fr}
  .bl-partner-step{padding:19px 8px}
  .bl-partner-step+.bl-partner-step{border-left:0;border-top:1px solid rgba(255,255,255,.13)}
}
@media(max-width:690px){
  header .header-shell.bl-cn .bl-cn-toggle{min-width:44px;padding:0}
  header .header-shell.bl-cn .bl-cn-panel{max-height:calc(100dvh - 100px);overflow:auto}
  .bl-cn-card{min-height:0;border-radius:13px;padding:13px 15px}
  .bl-cn-card-title{font-size:20px}
  .bl-cn-tools{flex-wrap:wrap}
  .bl-story-finale{
    bottom:87px;padding:13px 14px 10px;width:calc(100% - 24px);
  }
  .bl-story-finale-headline{font-size:26px}
  .bl-story-finale-subline{font-size:10px;margin-top:5px}
  .chaos-stage .sort-row{bottom:17px;left:8px;right:8px;gap:0}
  .chaos-stage .sort-row span{font-size:9px;padding:6px 5px}
  .partner-console{padding:14px}
  .partner-console .console-grid{grid-template-columns:1fr}
  .partner-console .queue-card{padding:15px}
  .partner-console .command{padding:16px}
  .bl-hold-reset{min-height:44px}
}
@media(prefers-reduced-motion:reduce){
  .bl-story-finale{transition:none;transform:translate(-50%,0)}
  .bl-hold-reset-fill{transition:none!important}
}
@media(prefers-reduced-transparency:reduce){
  html[data-bl-theme="glass"] header .header-shell.bl-cn,
  html[data-bl-theme="glass"] header .header-shell.bl-cn.is-night{
    background:#f8f7f3!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  }
}

/* R3 editorial scroll conclusion: outside the sticky panel, genuinely readable.
   No ornamental progress counter or generic floating AI badge. */
.problem .bl-story-result{
  position:relative!important;inset:auto!important;left:auto!important;bottom:auto!important;
  display:grid;gap:6px;align-content:center;justify-items:start;
  width:min(100%,850px)!important;min-height:226px;
  margin:42px 0 clamp(28px,5vw,76px)!important;
  padding:31px 0 26px!important;
  border:0!important;border-top:1px solid rgba(8,20,45,.22)!important;
  border-radius:0!important;
  background:transparent!important;box-shadow:none!important;
  color:#0b1a35;text-align:start!important;
  opacity:0;transform:translate3d(0,26px,0)!important;
  transition:transform .75s cubic-bezier(.22,1,.36,1),opacity .75s cubic-bezier(.22,1,.36,1);
  pointer-events:auto;
}
.problem .bl-story-result.bl-result-visible{
  opacity:1;transform:translate3d(0,0,0)!important;
}
.problem .bl-story-result .bl-story-finale-overline{
  color:#3651ac;font-size:11px;margin:0 0 6px;
}
.problem .bl-story-result .bl-story-finale-headline{
  font-size:clamp(42px,5.1vw,74px);
  font-weight:520;letter-spacing:-.055em;line-height:1.03;
}
.problem .bl-story-result .bl-story-finale-subline{
  margin:10px 0 0!important;
  max-width:630px;font-size:clamp(14px,1.25vw,17px);
  color:#43516a;line-height:1.55;
}
html[data-bl-theme="dark"] .problem .bl-story-result{color:#f6f8ff}
html[data-bl-theme="dark"] .problem .bl-story-result .bl-story-finale-subline{color:#b9c4d6}
@media(max-width:690px){
  .problem .bl-story-result{margin:26px 0 36px!important;min-height:188px;padding:22px 0!important}
  .problem .bl-story-result .bl-story-finale-headline{font-size:clamp(35px,9vw,47px)}
  .problem .bl-story-result .bl-story-finale-subline{font-size:14px}
}
@media(prefers-reduced-motion:reduce){
  .problem .bl-story-result{opacity:1!important;transform:none!important;transition:none!important}
}

/* Editorial type hierarchy — decluttered storefront, not a new brand or typeface.
   All fonts are existing local/system fallbacks. Existing hero and logo untouched. */
.partner-section .partner-intro .h2{
  font-family:var(--display-serif);
  font-weight:500;
  font-size:clamp(39px,4.4vw,69px);
  line-height:1.06;
  letter-spacing:-.023em;
  text-wrap:balance;
}
.problem .bl-story-result .bl-story-finale-headline{
  font-family:var(--display-serif);
  font-weight:500;
  letter-spacing:-.018em;
  line-height:1.10;
  font-size:clamp(38px,4.65vw,68px);
  text-wrap:balance;
}
.problem .bl-story-result .bl-story-finale-subline{
  color:#33445e;
  line-height:1.62;
  max-width:61ch;
}
.bl-cn-card-title{
  font-family:var(--display-serif);
  letter-spacing:-.014em;
  line-height:1.18;
  font-weight:520;
  text-wrap:balance;
}
/* Remove redundant uppercase product stamps; real headings remain. */
.language-eyebrow,
.bl-chat-welcome .bl-welcome-eyebrow {display:none!important}
/* The previous ghost-text-on-hover added decoration without explaining the product. */
.founder-story h2.bl-echo-title::after{content:none!important}
@media(max-width:690px){
  .partner-section .partner-intro .h2{font-size:clamp(34px,9vw,46px);line-height:1.09}
  .problem .bl-story-result .bl-story-finale-headline{
    font-size:clamp(36px,9vw,47px);
    letter-spacing:-.018em;
  }
  .bl-partner-step strong{font-size:18px}
  .bl-partner-step>span:last-child{font-size:13px}
}
@media(prefers-reduced-motion:reduce){
  .problem .bl-story-result .bl-story-finale-headline,
  .partner-section .partner-intro .h2{scroll-behavior:auto}
}
