/* Only the demo's presentation context and motion live here. Controls, colors,
   typography, layout and icons come from Henshu's production styles/renderers. */
html,body{margin:0;width:100%;height:100%;overflow:hidden}
[hidden]{display:none!important}
#demoRoot{width:100%;height:100%;overflow:hidden;position:relative}
/* The detached composer keeps the same renderer and production styles as Home.
   Its document is only as tall as the card, so the handoff has no app backdrop. */
html[data-demo-kind="shu"],body[data-demo-kind="shu"]{background:transparent!important}
#demoRoot[data-demo-kind="shu"]{height:auto;min-height:0}
#demoRoot[data-demo-kind="shu"]>.hh-ask{width:100%;margin:0;box-sizing:border-box}
#demoRoot[data-demo-kind="home"][data-shu-detached="true"] .hh-ask{visibility:hidden}
/* Start as a compact composer; measured result content expands it after Send. */
#demoRoot[data-demo-kind="shu"] .hh-ask{--shu-growth:0;position:relative;overflow:hidden}
#demoRoot[data-demo-kind="shu"] .hh-ask-field{min-height:46px}
#demoRoot[data-demo-kind="shu"] .hh-ask-input{font-size:15px;line-height:1.6}
#demoRoot[data-demo-kind="shu"] .shu-demo-body{height:0;overflow:hidden}
#demoRoot .shu-demo-content{position:relative;padding-top:18px}
#demoRoot .shu-demo-answer{min-height:52px;margin-bottom:18px;font-size:14px;line-height:1.65;color:var(--ink-solid);padding-top:16px;border-top:1px solid var(--border-d)}
#demoRoot .shu-demo-results{padding:12px 14px;border:1px solid var(--border-d);border-radius:12px;background:var(--bg-canvas)}
#demoRoot .shu-result-heading{font-size:14px;font-weight:600;color:var(--ink-solid);display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
#demoRoot .shu-result-heading>span{font-size:12px;font-weight:400;color:var(--muted);white-space:nowrap}
#demoRoot .shu-demo-results .ht-row{padding:12px 0;gap:4px 10px;display:grid;grid-template-columns:20px minmax(0,1fr) auto}
#demoRoot .shu-demo-results .ht-main{min-width:0;grid-row:1 / 3}.shu-demo-results .ht-check{grid-row:1 / 3}
#demoRoot .shu-demo-results .ht-title{font-size:14px;white-space:normal}
#demoRoot .shu-demo-results .ht-proj{font-size:12px;margin-top:4px}
#demoRoot .shu-demo-results .ht-stagecell{grid-column:3;grid-row:1}
#demoRoot .shu-demo-results .ht-stage{font-size:11px}
#demoRoot .shu-demo-results .ht-due{width:auto;grid-column:3;grid-row:2;font-size:12px;color:var(--muted)}
#demoRoot .shu-result-footer{display:flex;align-items:center;gap:10px;padding-top:14px;font-size:13px;color:var(--ink-solid)}
#demoRoot .shu-result-footer small{display:block;font-size:12px;color:var(--muted);margin-top:3px}
#demoRoot .shu-draft-note{font-size:12px;line-height:1.6;color:var(--muted)}
#demoRoot .shu-demo-caption{margin-top:18px;text-align:center;font-size:11px;color:var(--muted);opacity:.65}
#demoRoot .shu-result-video .rev-player{position:relative;width:100%;height:142px;min-height:0;aspect-ratio:auto;border-radius:8px;overflow:hidden}
#demoRoot .shu-result-video .rev-video{width:100%;height:100%;object-fit:cover}
#demoRoot .shu-result-video .rev-transport{display:none}
#demoRoot .shu-result-notes{margin-top:10px}
#demoRoot .shu-result-notes .rev-cm{padding:8px 0}
#demoRoot .shu-result-notes .rev-cm-text{font-size:12px;line-height:1.5}
#demoRoot .shu-result-notes .rev-cm-acts{display:none}
#demoRoot .shu-result-notes .rev-cm-head{font-size:12px}
#demoRoot .shu-is-typing:after{content:'';display:inline-block;width:2px;height:1em;background:var(--purple);vertical-align:-2px;margin-left:2px}
#demoRoot .shu-prompt-measure{position:absolute;top:0;left:0;width:100%;visibility:hidden;pointer-events:none;display:grid}
#demoRoot .shu-prompt-measure>div{grid-area:1/1;min-width:0}
#demoRoot .hh-ask[data-shu-landed="true"] .hh-ask-input:empty:before{content:none}
#demoRoot .shu-demo-cursor{position:absolute;z-index:6;width:21px;height:27px;pointer-events:none;opacity:0;filter:drop-shadow(0 2px 2px #0005)}
#demoRoot .hh-shu-perch::after{background-position:var(--shu-thinking-position,0%) 0}
#demoRoot .shu-send-ring{position:absolute;z-index:5;width:32px;height:32px;border:2px solid #a98bff;border-radius:50%;pointer-events:none;opacity:0}
@media(max-width:380px){
 #demoRoot[data-demo-kind="shu"] .hh-ask{padding:16px}
 #demoRoot .shu-demo-results{padding:12px 10px}
 #demoRoot .shu-result-heading{align-items:flex-start;flex-direction:column;gap:4px}
 #demoRoot .shu-result-heading>span{white-space:normal}
 #demoRoot .shu-demo-results .ht-row{grid-template-columns:16px minmax(0,1fr) auto;column-gap:7px}
}
#demoRoot .app,#demoRoot .main{height:100%;min-height:0}
#demoRoot .content{padding-bottom:24px;scrollbar-width:none}
#demoRoot .sidebar{height:100%;position:absolute}
#demoRoot .sidebar-banner{height:96px}
#demoRoot .sidebar-banner-fade{background:linear-gradient(transparent,var(--bg-sidebar,#0c0c0e))}
#demoRoot .sidebar-banner-glow{background:none}
#demoRoot .sidebar-banner{background:linear-gradient(135deg,var(--purple),#50428a)}
#demoRoot[data-demo-brand="sauce"] .sidebar-banner{height:120px;background:#0b0b0d url('/landing/sauce-media-banner.365d4d4baae8.png') center/cover no-repeat}
#demoRoot[data-demo-brand="sauce"] .sidebar-banner-fade{display:none}
#demoRoot[data-demo-brand="sauce"] #homeAgencyIcon img{width:100%;height:100%;object-fit:contain;border-radius:inherit}
#demoRoot[data-demo-brand="sauce"] #profileTriggerAvatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
#demoRoot[data-demo-kind="home"] .demo-home-topbar{justify-content:center;padding:0 24px}
#demoRoot .demo-workspace-context{position:absolute;z-index:10;top:16px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;white-space:nowrap;font:600 14px/1.4 var(--sans);color:var(--ink-solid,#f5f5f7);letter-spacing:.01em;pointer-events:none}
#demoRoot .demo-workspace-context svg{width:16px;height:16px;color:var(--purple-light,#b5a0ff)}
/* One continuous folder trunk. Mixed project/channel rows must only turn at
   the actual last child, not at the last anchor before a channel wrapper. */
#demoRoot[data-demo-kind="home"] .sidebar-cat-body>.sidebar-section-nav>:is(.sidebar-cat-item,.sidebar-cat-child)::after{height:100%;border-bottom:0;border-radius:0;opacity:.5;background:linear-gradient(var(--cat-color,var(--sb-tree)),var(--cat-color,var(--sb-tree))) no-repeat 0 50% / 100% 1px}
#demoRoot[data-demo-kind="home"] .sidebar-cat-body>.sidebar-section-nav>:is(.sidebar-cat-item,.sidebar-cat-child):last-child::after{height:50%;border-bottom:1px solid var(--cat-color,var(--sb-tree));border-radius:0 0 0 4px;background:none}
#demoRoot[data-demo-kind="home"] .sb-lock svg{width:8px!important;height:8px!important}
#demoRoot[data-demo-static="true"] *,#demoRoot[data-demo-static="true"] *:before,#demoRoot[data-demo-static="true"] *:after{animation:none!important;transition:none!important}
#demoRoot [data-demo-native-ai]{height:100%;position:relative}
#demoRoot [data-demo-files-view]{height:100%;position:relative}
#demoRoot [data-demo-files-table]{min-height:380px}
#demoRoot [data-demo-shu-mount]{position:absolute;right:14px;bottom:10px;z-index:8}
#demoRoot .fm-ask-pop{width:440px;max-width:calc(100vw - 48px)}
#demoRoot .fm-ask-input{min-height:74px}
#demoRoot .fm-ask-out{min-height:45px}
#demoRoot .fm-drive{height:100%;min-height:0}
#demoRoot .fm-col2{width:100%}
#demoRoot [data-demo-schedule-view]{position:absolute;inset:0;background:var(--bg-canvas);z-index:10;overflow:hidden}
#demoRoot [data-demo-schedule-panel]{height:100%;display:flex;flex-direction:column}
#demoRoot .rev-wrap.rev2{height:100%;min-height:0;margin:0;border-radius:0}
#demoRoot .card-modal{position:relative;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:22px 24px;transform:none;border:0;border-radius:0;box-shadow:none;display:flex;flex-direction:column}
#demoRoot .card-modal-title{font-size:22px}
#demoRoot .card-modal-tabs{flex-shrink:0}
#demoRoot .demo-review-content{flex:1;min-height:0}
#demoRoot .rev-player{--rev-ar:1.77778}
#demoRoot .rev-video{object-fit:cover}
#demoRoot .demo-focus{outline:2px solid var(--purple);outline-offset:4px;border-radius:8px;transition:outline-color .3s}
#demoRoot .demo-focus .rev-cm-acts{opacity:1}
#demoRoot .demo-arrive{animation:demo-arrive .5s cubic-bezier(.22,1,.36,1) both}
#demoRoot .demo-note-draw{position:absolute;left:21%;top:37%;width:26%;height:25%;border:3px solid #b6ff83;border-radius:50%;transform:rotate(-12deg);opacity:0;transition:opacity .25s}
#demoRoot[data-annotation="true"] .demo-note-draw{opacity:1;animation:demo-ink .6s cubic-bezier(.22,1,.36,1) both}
#demoRoot .demo-typing:after{content:'';display:inline-block;height:1em;width:1px;background:var(--purple);margin-left:2px;vertical-align:-1px;animation:demo-caret .8s steps(1) infinite}
body[data-playing="false"] *,body[data-playing="false"] *:before,body[data-playing="false"] *:after{animation-play-state:paused!important}
@keyframes demo-arrive{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}
@keyframes demo-caret{50%{opacity:0}}
@keyframes demo-ink{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@media(max-width:900px){
 #demoRoot .sidebar{display:none}
 #demoRoot .main{margin-left:0}
 #demoRoot .card-modal{padding:14px}
 #demoRoot .rev-wrap.rev2{display:flex;flex-direction:column;height:auto}
 #demoRoot .rev2 .rev-main{min-height:0;flex:none;width:100%}
 #demoRoot .rev2 .rev-stage{container-type:normal;padding:12px;min-height:0}
 #demoRoot .rev2 .rev-player{width:100%;max-width:100%;height:auto;aspect-ratio:16/9}
 #demoRoot .rev2 .rev-side{width:100%;height:auto;min-height:0;max-height:none;flex:1;border-left:0}
 #demoRoot .rev2 .rev-list{max-height:none}
 #demoRoot .demo-review-content,#demoRoot [data-demo-schedule-view]{overflow:auto;scrollbar-width:none}
 #demoRoot .dm-list-col{display:none}
 #demoRoot .content{padding:20px}
 #demoRoot .fm-ask-pop{width:min(440px,calc(100vw - 48px))}
 #demoRoot [data-demo-files-table]{overflow:hidden}
 #demoRoot [data-demo-shu-mount]{right:0;bottom:12px}
 #demoRoot .fm-ltable{min-width:650px}
}
@media(prefers-reduced-motion:reduce){#demoRoot *,#demoRoot *:before,#demoRoot *:after{animation:none!important;transition:none!important}}

/* A review excerpt, without the full editor's nested chrome. */
#demoRoot .shu-review-frame{position:relative;width:100%;aspect-ratio:16/8.5;border-radius:9px;overflow:hidden;background:#070709}
#demoRoot .shu-review-frame>img{width:100%;height:100%;object-fit:cover}
#demoRoot .shu-review-time{position:absolute;bottom:19px;left:12px;background:#09090bbf;padding:3px 7px;border-radius:4px;font:12px var(--mono)}
#demoRoot .shu-review-timeline{position:absolute;left:12px;right:12px;bottom:10px;height:3px;background:#ffffff50;border-radius:3px}
#demoRoot .shu-review-timeline i{display:block;width:27%;height:100%;background:var(--purple)}
#demoRoot .shu-review-timeline b{position:absolute;left:27%;top:-2px;width:7px;height:7px;border-radius:50%;background:white}
#demoRoot .shu-review-findings{display:grid;gap:12px;margin-top:16px}
#demoRoot .shu-review-findings>div{display:flex;align-items:center;gap:12px;font-size:14px;line-height:1.45}
#demoRoot .shu-review-stamp{flex-shrink:0;color:var(--purple-light);background:var(--purple-14);padding:5px 7px;border-radius:5px;font:12px var(--mono)}
#demoRoot .shu-demo-caption{display:none}
