/* Home demonstration layout SSOT — one persistent screen, three compact
 * value-selection cards, no scrolling/pin-to-step coupling. Shared by Market and
 * the Canvas feature tour; native editor is never cloned or detached.
 * Brand: Steel Blue #61758A / background #EDF3FF / border #D9E2EC. */
#home-view #lh-market.lh-market-live{padding:74px 0 92px!important;background:transparent}
#home-view #lh-market.lh-market-live.lh-market-pin-ready{padding:74px 0 92px!important}
#home-view #lh-canvas.lh-canvas-feature{padding:80px 0 105px!important}
#home-view .lh-market-live .lh-pin-shell{
  box-sizing:border-box;width:min(1240px,calc(100% - 64px));
  height:auto!important;min-height:0!important;display:block;
  margin-inline:auto;isolation:isolate;
}
#home-view .lh-market-live .lh-pin-content{
  box-sizing:border-box;width:100%;display:flex;flex-direction:column;
  align-items:center;gap:16px;padding:0;
}
#home-view .lh-market-live .lh-head{margin:0 auto 15px}
#home-view .lh-market-live .lh-pin-cards{
  width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px;align-items:stretch;margin:0;
}
#home-view .lh-market-live .lh-pin-card{
  box-sizing:border-box;position:relative;isolation:isolate;min-width:0;
  width:100%;height:124px!important;min-height:0!important;
  display:flex;flex-direction:column;overflow:hidden;
  margin:0;padding:0;background:#fff;color:#1f2933;
  border:1px solid #d9e2ec;border-radius:17px;
  box-shadow:none;cursor:default;
  transition:border-color .25s,box-shadow .25s;
}
#home-view .lh-market-live .lh-pin-card.is-active{
  background:#fff;border-color:#61758a;
  box-shadow:0 9px 22px rgba(48,73,102,.10);
}
#home-view .lh-market-live .lh-pin-card::before{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:0;
  background:#61758a;transform:translate3d(-102%,0,0);
  transition:transform .44s cubic-bezier(.2,.8,.2,1);
}
#home-view .lh-market-live .lh-pin-card.is-active::before{transform:translate3d(0,0,0)}
#home-view .lh-market-live .lh-market-card-toggle{
  box-sizing:border-box;position:relative;z-index:1;width:100%;
  flex:1;min-height:0!important;height:100%;padding:15px 17px;
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:7px;
  appearance:none;border:0;background:transparent;color:inherit;
  text-align:left;cursor:pointer;font:inherit;
}
#home-view .lh-market-live .lh-market-card-toggle:hover{background:rgba(217,226,236,.16)}
#home-view .lh-market-live .lh-market-card-toggle:focus-visible{
  outline:3px solid #adc4d8;outline-offset:-4px;border-radius:15px;
}
#home-view .lh-market-live .lh-pin-card-title{
  font:780 clamp(14px,1.3vw,18px)/1.35 SUIT,system-ui,sans-serif;
  letter-spacing:-.045em;color:#1f2933;white-space:normal;
}
#home-view .lh-market-live .lh-pin-card.is-active .lh-pin-card-title,
#home-view .lh-market-live .lh-pin-card.is-active .lh-pin-card-detail{color:#fff}
#home-view .lh-market-live .lh-pin-card-detail{
  font:550 12px/1.38 SUIT,system-ui,sans-serif;
  letter-spacing:-.02em;color:#61758a;text-wrap:pretty;
}
#home-view .lh-market-live .lh-market-unified-stage,
#home-view .lh-market-live .lh-canvas-unified-stage{
  position:relative;box-sizing:border-box;width:100%;height:clamp(360px,47vw,560px);
  border:1px solid #d9e2ec;border-radius:18px;
  overflow:hidden;isolation:isolate;background:#fff;
  box-shadow:0 20px 60px rgba(32,52,80,.10);
}
#home-view .lh-market-live .lh-market-unified-stage .lh-market-card-scene,
#home-view .lh-market-live .lh-canvas-unified-stage .lh-market-card-scene{
  position:absolute;inset:0;box-sizing:border-box;z-index:0;
  display:block;min-width:0;min-height:0;
  width:100%;height:100%;margin:0!important;padding:0;
  border:0;border-radius:0;overflow:hidden;
  opacity:0;visibility:hidden;pointer-events:none;
  background:#fff;transition:none;
}
#home-view .lh-market-live .lh-market-unified-stage .lh-market-card-scene.is-active,
#home-view .lh-market-live .lh-canvas-unified-stage .lh-market-card-scene.is-active{
  z-index:1;opacity:1;visibility:visible;pointer-events:auto;
}
#home-view .lh-market-live .lh-market-real-viewport{
  position:relative;width:100%;height:100%;overflow:hidden;
  contain:paint;background:#fff;
}
#home-view .lh-market-live .lh-market-real-frame{
  position:absolute;top:0;left:0;display:block;
  box-sizing:border-box;width:1280px;height:1000px;
  border:0;transform-origin:top left;pointer-events:none;background:#fff;
}
#home-view .lh-market-live .lh-market-scene-cursor{
  position:absolute;top:0;left:0;width:19px;height:25px;opacity:0;
  pointer-events:none;z-index:3;transform-origin:2px 2px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='25' viewBox='0 0 19 25'%3E%3Cpath d='M2 1v20l4.8-4.9 3.5 7.5 3.6-2-3.8-7h7.2Z' fill='white' stroke='%231f2933' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  filter:drop-shadow(1px 2px 1px #1f293344);
}
#home-view .lh-market-live .lh-market-scene-pulse{
  position:absolute;top:0;left:0;width:33px;height:33px;
  margin:-16px 0 0 -16px;z-index:2;opacity:0;pointer-events:none;
  border:2px solid #61758a;border-radius:50%;box-shadow:0 0 0 5px #61758a22;
}
#home-view .lh-market-live .lh-market-tour-toolbar{
  box-sizing:border-box;width:100%;min-height:32px;display:flex;
  align-items:center;gap:15px;color:#61758a;
  font:750 12px/1.4 SUIT,system-ui,sans-serif;
}
#home-view .lh-market-live .lh-market-tour-counter{
  min-width:52px;white-space:nowrap;letter-spacing:.06em;
}
#home-view .lh-market-live .lh-market-tour-progress{
  box-sizing:border-box;flex:1;height:4px;border-radius:20px;
  overflow:hidden;background:#d9e2ec;
}
#home-view .lh-market-live .lh-market-tour-progress-fill{
  display:block;height:100%;width:33.333%;border-radius:20px;
  background:#61758a;transition:width .28s ease;
}
#home-view .lh-market-live .lh-market-tour-controls{display:flex;align-items:center;gap:5px}
#home-view .lh-market-live .lh-market-tour-control{
  appearance:none;border:1px solid #d9e2ec;border-radius:9px;
  background:#fff;color:#526d88;font:700 11px SUIT,system-ui,sans-serif;
  padding:8px 11px;cursor:pointer;white-space:nowrap;
}
#home-view .lh-market-live .lh-market-tour-control:hover{background:#e3eaf5}
#home-view .lh-market-live .lh-market-tour-control:focus-visible{outline:2px solid #61758a;outline-offset:2px}
#home-view .lh-market-live .lh-section-link{margin:4px auto 0}
@media(max-width:899px){
  #home-view #lh-canvas.lh-canvas-feature{padding:55px 0 75px!important}

  #home-view .lh-market-live .lh-pin-shell{width:calc(100% - 26px)}
  #home-view .lh-market-live .lh-pin-cards{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px;
  }
  #home-view .lh-market-live .lh-pin-card{height:120px!important;border-radius:13px}
  #home-view .lh-market-live .lh-market-card-toggle{padding:12px}
  #home-view .lh-market-live .lh-pin-card-title{font-size:12px}
  #home-view .lh-market-live .lh-pin-card-detail{font-size:10px}
  #home-view .lh-market-live .lh-market-unified-stage,
  #home-view .lh-market-live .lh-canvas-unified-stage{height:clamp(260px,61vw,450px);border-radius:12px}
  #home-view .lh-market-live .lh-pin-content{gap:11px}
  #home-view .lh-market-live .lh-market-tour-control{padding:7px 9px}
}
@media(max-width:580px){
  #home-view .lh-market-live .lh-pin-cards{grid-template-columns:1fr!important;gap:7px}
  #home-view .lh-market-live .lh-pin-card{height:80px!important}
  #home-view .lh-market-live .lh-pin-card-title{font-size:13px}
  #home-view .lh-market-live .lh-pin-card-detail{font-size:10px}
  #home-view .lh-market-live .lh-market-tour-toolbar{gap:8px}
  #home-view .lh-market-live .lh-market-tour-progress{max-width:none}
  #home-view .lh-market-live .lh-market-tour-controls{gap:3px}
  #home-view .lh-market-live .lh-market-tour-control{font-size:10px;padding:7px}
}
@media(prefers-reduced-motion:reduce){
  #home-view .lh-market-live .lh-pin-card::before,
  #home-view .lh-market-live .lh-market-tour-progress-fill{transition:none}
}
/* 02 — in-card confirmation bubble (demonstration, never a real charge). */
#home-view .lh-market-live .lh-market-purchase-bubble{
  box-sizing:border-box;position:absolute;z-index:5;left:50%;top:28%;
  min-width:210px;width:max-content;max-width:90%;
  padding:15px 22px;border-radius:16px;
  background:#61758a;color:#fff;
  font-size:21px;font-weight:800;text-align:center;letter-spacing:-.04em;
  box-shadow:0 16px 40px rgba(39,61,85,.21);pointer-events:none;
  opacity:0;transform:translate3d(-50%,15px,0) scale(.95);
  transition:opacity .34s ease,transform .4s cubic-bezier(.2,.75,.2,1);
}
#home-view .lh-market-live .lh-market-purchase-bubble.is-visible{
  opacity:1;transform:translate3d(-50%,0,0) scale(1);
}
/* 03: the genuine /mypage purchased-library renderer runs in one
   credentialless read-only iframe. Only scale/crop it; do not restyle or
   rebuild its marketplace cards in the homepage. */
#home-view .lh-market-live .lh-market-purchase-viewport{
  box-sizing:border-box;position:relative;width:100%;height:100%;overflow:hidden;
  background:#fff;contain:paint;
}
#home-view .lh-market-live .lh-market-purchase-frame{
  position:absolute;left:50%;top:50%;width:1280px;height:700px;
  box-sizing:border-box;display:block;border:0;background:#fff;
  transform:translate(-50%,-50%) scale(var(--demo-scale,.52));
  transform-origin:center center;pointer-events:none;
}
#home-view .lh-market-live .lh-market-purchase-cursor{
  z-index:6;opacity:0;position:absolute;top:0;left:0;
}
#home-view .lh-market-live .lh-market-purchase-click{
  z-index:5;opacity:0;
}
#home-view .lh-market-live .lh-market-purchase-loading{
  position:absolute;inset:0;z-index:7;display:grid;place-items:center;
  background:#f6f9fd;
}
#home-view .lh-market-live .lh-market-purchase-loading[hidden]{display:none!important}

/* STEP 04: the original pinned Rust/egui editor, inside an isolated
 * credentialless iframe. No imitation Canvas chrome, screenshot or video. */
#home-view .lh-market-live .lh-market-native-demo{
  box-sizing:border-box;position:relative;display:block;width:100%;height:100%;
  overflow:hidden;min-height:0;background:#edf3ff;
}
#home-view .lh-market-live .lh-market-native-surface{
  position:relative;width:100%;height:100%;overflow:hidden;contain:paint;
  background:#edf3ff;
}
#home-view .lh-market-live .lh-market-native-camera{
  position:absolute;left:50%;top:50%;width:2048px;height:1028px;
  transform:translate(-50%,-50%) scale(.25);transform-origin:50% 50%;
  opacity:0;pointer-events:none;
}
#home-view .lh-market-live .lh-market-native-camera.is-playing{will-change:transform}
#home-view .lh-market-live .lh-market-native-surface.is-ready .lh-market-native-camera{
  opacity:1;
}
#home-view .lh-market-live .lh-market-native-frame{
  position:absolute;inset:0;box-sizing:border-box;width:2048px;height:1028px;
  display:block;border:0;background:#fff;pointer-events:none;
}
#home-view .lh-market-live .lh-market-native-cursor{
  position:absolute;left:0;top:0;z-index:4;opacity:0;
}
#home-view .lh-market-live .lh-market-native-click{
  z-index:3;will-change:opacity,transform;transform-origin:50% 50%;
}
#home-view .lh-market-live .lh-market-native-status{
  box-sizing:border-box;position:absolute;inset:0;z-index:5;
  display:grid;place-items:center;background:#f6f9fd;color:#61758a;
}
#home-view .lh-market-live .lh-market-native-loading-panel{
  display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:23px;width:min(280px,90%);text-align:center;
}
#home-view .lh-market-live .lh-market-native-loading-logo{
  display:block;max-width:165px;width:64%;height:auto;
}
#home-view .lh-market-live .lh-market-native-loading-ring{
  display:block;width:32px;height:32px;box-sizing:border-box;
  border:3px solid #d9e2ec;border-top-color:#61758a;border-radius:50%;
  animation:lh-native-spin .85s linear infinite;
}
#home-view .lh-market-live .lh-market-native-loading-phase{
  font:650 13px/1.4 SUIT,system-ui,sans-serif;color:#61758a;
  letter-spacing:-.015em;
}
#home-view .lh-market-live .lh-market-native-status.is-failed
  .lh-market-native-loading-ring{animation:none;border-color:#b8c4d1}
#home-view .lh-market-live .lh-market-native-status[hidden]{display:none!important}
@keyframes lh-native-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){
  #home-view .lh-market-live .lh-market-native-loading-ring{animation-duration:2.4s}
}
@media(prefers-reduced-motion:reduce){
  #home-view .lh-market-live .lh-market-native-camera.is-playing{will-change:auto}
}

/* MARKET 03: actual purchase-library UI -> original captured Canvas frame. */
#home-view .lh-market-live .lh-market-native-demo{display:none!important}
#home-view .lh-market-live .lh-market-canvas-capture-panel{
  position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:12px;box-sizing:border-box;
  background:#edf3ff;padding:20px;opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .45s ease,visibility .45s;
}
#home-view .lh-market-live .lh-market-canvas-capture{
  display:block;width:min(100%,1000px);max-height:calc(100% - 76px);
  object-fit:contain;border-radius:8px;border:1px solid #d9e2ec;
  box-shadow:0 14px 35px #1f29331e;
}
#home-view .lh-market-live .lh-market-capture-label,
#home-view .lh-market-live .lh-market-capture-footer{
  font:750 clamp(12px,1.45vw,18px)/1.3 SUIT,system-ui,sans-serif;
  color:#526b85;
}
#home-view .lh-market-live .lh-market-card-scene.is-showing-canvas .lh-market-canvas-capture-panel{
  opacity:1;visibility:visible;
}
#home-view .lh-market-live .lh-market-card-scene.is-showing-canvas .lh-market-purchase-viewport{
  opacity:0;pointer-events:none;
}
@media(prefers-reduced-motion:reduce){
  #home-view .lh-market-live .lh-market-canvas-capture-panel{transition:none}
}

/* Per-card value proposition, kept separate from the three compact selectors. */
#home-view .lh-market-live .lh-home-demo-description{
  margin:0;min-height:3.1em;max-width:min(980px,100%);
  text-align:center;white-space:pre-line;
  font:650 clamp(12px,1.2vw,15px)/1.55 SUIT,system-ui,sans-serif;
  color:#52677d;letter-spacing:-.025em;
}
@media(max-width:580px){
  #home-view .lh-market-live .lh-home-demo-description{
    font-size:12px;min-height:0;padding:0 6px;
  }
}

/* Locrian generated screen UI font-size uplift; do not edit. */
@media screen {
@media(max-width:899px){#home-view .lh-market-live .lh-pin-card-title{font-size:calc(12px + 2pt)}}
@media(max-width:899px){#home-view .lh-market-live .lh-pin-card-detail{font-size:calc(10px + 2pt)}}
@media(max-width:580px){#home-view .lh-market-live .lh-pin-card-title{font-size:calc(13px + 2pt)}}
@media(max-width:580px){#home-view .lh-market-live .lh-pin-card-detail{font-size:calc(10px + 2pt)}}
@media(max-width:580px){#home-view .lh-market-live .lh-market-tour-control{font-size:calc(10px + 2pt)}}
#home-view .lh-market-live .lh-market-purchase-bubble{font-size:calc(21px + 2pt)}
#home-view .lh-market-live .lh-market-purchase-bubble{font-weight:750}
@media(max-width:580px){#home-view .lh-market-live .lh-home-demo-description{font-size:calc(12px + 2pt)}}
}
