:root{
  --bg:#f4f5fb;--panel:#ffffff;--line:#e6e8f0;--line2:#d5d9e6;--txt:#1a1f33;--mut:#5c6578;
  --brand:#3f46d9;--brand-soft:#eceeff;--accent:#0f8f7c;--accent-soft:#e7f8f4;--spark:#f59e0b;--ok:#087a55;--danger:#b4233f;
  --ink:#121526;--ink-muted:#9ca3af;
  --ease:cubic-bezier(.16,1,.3,1);--touch:44px;
  --pad:clamp(16px,3vw,24px);
  --sb-size:6px;
  --sb-thumb:color-mix(in oklch, var(--txt) 34%, transparent);
  --sb-thumb-hover:color-mix(in oklch, var(--txt) 52%, transparent);
  --sb-track:color-mix(in oklch, var(--txt) 7%, transparent);
}
*{
  box-sizing:border-box;
  scrollbar-width:thin;
  scrollbar-color:var(--sb-thumb) var(--sb-track);
}
html{-webkit-text-size-adjust:100%}
*::-webkit-scrollbar{width:var(--sb-size);height:var(--sb-size)}
*::-webkit-scrollbar-track{background:var(--sb-track);border-radius:999px}
*::-webkit-scrollbar-thumb{
  background:var(--sb-thumb);border-radius:999px;
  border:1px solid transparent;background-clip:padding-box
}
*::-webkit-scrollbar-thumb:hover{background:var(--sb-thumb-hover)}
*::-webkit-scrollbar-button{display:none;width:0;height:0}
*::-webkit-scrollbar-corner{background:transparent}
body{
  margin:0;min-height:100dvh;display:flex;flex-direction:column;
  font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  background:var(--bg);color:var(--txt);font-size:15px;line-height:1.55;
  padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);
}
button,input,textarea,select{font:inherit}
button{min-height:var(--touch);cursor:pointer;border:1px solid var(--line2);background:var(--panel);color:var(--txt);padding:8px 14px;border-radius:10px;font-weight:650;transition:border-color .15s var(--ease),background .15s var(--ease),color .15s var(--ease)}
button:hover{border-color:var(--brand);color:var(--brand)}
button.primary{background:var(--brand);border-color:var(--brand);color:#fff}
button.primary:hover{color:#fff;filter:brightness(1.06)}
button.wide{width:100%}
button.ghost{background:var(--panel);text-decoration:none;color:var(--txt);display:inline-flex;align-items:center;justify-content:center}
button:disabled{opacity:.5;cursor:not-allowed;pointer-events:none}
input,textarea,select{width:100%;min-height:var(--touch);border:1px solid var(--line2);border-radius:10px;padding:10px 12px;background:#fff;color:var(--txt)}
input:focus,textarea:focus,select:focus,button:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
input[type=checkbox],input[type=radio]{
  -webkit-appearance:none;appearance:none;
  width:16px;height:16px;min-width:16px;min-height:16px;
  margin:0;padding:0;flex:none;display:inline-grid;place-items:center;
  border:1.5px solid var(--line2);background:#fff;color:var(--brand);
  vertical-align:middle;cursor:pointer;aspect-ratio:1;box-sizing:border-box
}
input[type=checkbox]{border-radius:4px}
input[type=radio]{border-radius:50%}
input[type=checkbox]:checked{
  background-color:var(--brand);border-color:var(--brand);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.3 6.4 11.2 12.5 4.8'/%3E%3C/svg%3E");
  background-size:12px 12px;background-position:center;background-repeat:no-repeat
}
input[type=radio]:checked{border-color:var(--brand);background:#fff}
input[type=radio]:checked::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--brand)}
label input[type=checkbox],label input[type=radio]{margin-top:0}
label{display:block;margin:12px 0 0;font-size:13px;color:var(--mut);font-weight:600}
label input,label textarea,label select{margin-top:6px;font-weight:400;color:var(--txt)}
.hide,[hidden]{display:none!important}
.hint{color:var(--mut);font-size:13px;margin:8px 0 0;font-weight:400}
.hint .auth-risk{color:var(--danger);font-weight:650}
.hint.warn{color:var(--danger)}
.label{margin:16px 0 8px;font-size:13px;color:var(--mut);font-weight:650}

.top{
  display:grid;grid-template-columns:max-content minmax(0,1fr) max-content;
  align-items:center;gap:12px 20px;
  padding:12px var(--pad);padding-top:max(12px,env(safe-area-inset-top));
  background:var(--panel);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20;overflow:visible
}
.brand{display:inline-flex;gap:12px;align-items:center;color:inherit;text-decoration:none;font-weight:760;overflow:visible}
.brand-mark{width:37px;height:37px;border-radius:9px;display:block;flex:none;transform-origin:center;transition:transform .28s var(--ease),filter .28s var(--ease)}
.brand:hover .brand-mark{transform:rotate(-8deg) scale(1.08);filter:drop-shadow(0 4px 10px rgba(20,184,166,.28))}
.brand-lockup{display:flex;flex-direction:column;justify-content:center;gap:4px;min-width:0;line-height:1}
.brand-text{
  font-size:18px;font-weight:790;letter-spacing:-.045em;line-height:1.05;
  color:var(--brand);white-space:nowrap
}
.brand-text b{font-weight:800;color:var(--ink);letter-spacing:-.05em}
.brand-tag{
  display:inline-flex;align-items:center;gap:6px;
  font-family:"PingFang SC","Hiragino Sans GB","Noto Sans SC","Microsoft YaHei UI","Microsoft YaHei",sans-serif;
  font-size:12px;font-weight:650;letter-spacing:.18em;
  color:var(--mut);line-height:1;white-space:nowrap
}
.brand-tag::before,.brand-tag::after{
  content:"";width:6px;height:6px;flex:none;
  background:var(--spark);
  clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);
  box-shadow:0 0 8px rgba(245,158,11,.55)
}
.brand-tag span{color:var(--accent);font-weight:800;letter-spacing:.2em}
.pill{
  position:relative;display:inline-flex;align-items:center;flex-shrink:0;
  font-size:11px;background:var(--brand-soft);color:var(--brand);
  padding:2px 8px;border-radius:999px;font-weight:700;overflow:visible;line-height:1.3
}
.pill-boom{
  position:relative;display:inline-block;margin-left:.05em;
  color:#c2410c;font-weight:800;letter-spacing:.02em;
  text-shadow:0 0 10px rgba(251,191,36,.55)
}
.pill-boom .ch{
  display:inline-block;
  animation:pill-ch-boom 2.6s var(--ease) 3 forwards
}
.pill-boom .ch:nth-child(1){--n:0;--dx:-14px;--dy:-16px;--r:-22deg}
.pill-boom .ch:nth-child(2){--n:1;--dx:8px;--dy:-18px;--r:16deg}
.pill-boom .ch:nth-child(3){--n:2;--dx:-10px;--dy:12px;--r:-12deg}
.pill-boom .ch:nth-child(4){--n:3;--dx:16px;--dy:-8px;--r:20deg}
.pill-boom .ch:nth-child(5){--n:4;--dx:4px;--dy:16px;--r:-8deg}
.pill-boom .ch:nth-child(6){--n:5;--dx:-16px;--dy:6px;--r:14deg}
.pill-boom .ch:nth-child(8){--n:7;--dx:-8px;--dy:-14px;--r:12deg}
.pill-boom .ch{animation-delay:calc(var(--n)*45ms)}
@keyframes pill-ch-boom{
  0%,52%,100%{transform:none;filter:none}
  10%{transform:translate(var(--dx),var(--dy)) scale(1.75) rotate(var(--r));filter:brightness(1.35)}
  20%{transform:translate(calc(var(--dx)*1.35),calc(var(--dy)*1.35)) scale(1.15) rotate(var(--r))}
  32%{transform:none}
}
.pill-sparks{position:absolute;left:50%;top:50%;width:0;height:0;pointer-events:none}
.pill-sparks i{
  position:absolute;left:0;top:0;width:5px;height:5px;margin:-2px;border-radius:50%;
  background:#fbbf24;box-shadow:0 0 6px #fb923c;
  animation:pill-spark 2.6s var(--ease) 3 forwards
}
.pill-sparks i:nth-child(1){--a:-80deg;--d:16px;animation-delay:0s}
.pill-sparks i:nth-child(2){--a:-35deg;--d:20px;animation-delay:.05s}
.pill-sparks i:nth-child(3){--a:10deg;--d:18px;animation-delay:.1s}
.pill-sparks i:nth-child(4){--a:55deg;--d:22px;animation-delay:.04s}
.pill-sparks i:nth-child(5){--a:110deg;--d:16px;animation-delay:.12s}
.pill-sparks i:nth-child(6){--a:165deg;--d:19px;animation-delay:.07s}
.pill-sparks i:nth-child(7){--a:-130deg;--d:21px;animation-delay:.15s}
.pill-sparks i:nth-child(8){--a:210deg;--d:15px;animation-delay:.09s}
@keyframes pill-spark{
  0%,58%,100%{transform:rotate(var(--a)) translate(0) scale(.2);opacity:0}
  8%{opacity:1}
  22%{transform:rotate(var(--a)) translate(var(--d)) scale(1.15);opacity:1}
  38%{transform:rotate(var(--a)) translate(calc(var(--d)*1.45)) scale(.15);opacity:0}
}
@media (prefers-reduced-motion:reduce){
  .pill-boom .ch,.pill-sparks i{animation:none}
  .pill-sparks{display:none}
  .brand-mark,.brand:hover .brand-mark{transform:none;filter:none;transition:none}
}
.top-mid{min-width:0;display:flex;align-items:center;justify-content:center}
.top-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.top-actions a.ghost{
  min-height:var(--touch);padding:8px 14px;border:1px solid var(--line2);border-radius:10px;
  text-decoration:none;background:var(--panel);color:var(--txt);
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-weight:650;cursor:pointer;
  transition:border-color .15s var(--ease),background .15s var(--ease),color .15s var(--ease)
}
.top-actions a.ghost:hover{border-color:var(--brand);color:var(--brand)}
.top-actions a.ghost:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.btn-brand-visual{
  border:1px solid #e09a12;
  color:#7a3e00;
  background:linear-gradient(180deg,#fffdf6,#fff6d9);
}
.btn-brand-visual:hover{filter:brightness(1.03);color:#5c2e00}
.btn-brand-visual:focus-visible{outline:2px solid #e09a12;outline-offset:2px}
.inbox-wrap{position:relative}
.inbox-btn{position:relative}
.inbox-dot{position:absolute;top:4px;right:4px;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:#c81e1e;color:#fff;font-size:10px;font-style:normal;font-weight:760;line-height:16px;text-align:center;pointer-events:none}
.inbox-pop{position:absolute;right:0;top:calc(100% + 8px);z-index:40;width:min(380px,92vw);max-height:min(70vh,520px);display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--line2);border-radius:12px;box-shadow:0 12px 40px rgba(31,36,55,.14)}
.inbox-pop.hide{display:none}
.inbox-pop-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line)}
.inbox-pop-acts{display:flex;gap:8px}
.inbox-pop-acts .link{border:0;background:transparent;color:var(--brand);min-height:auto;padding:0;font-weight:650}
.inbox-list{overflow:auto;padding:8px}
.inbox-item{padding:10px 10px 12px;border-radius:10px;border:1px solid transparent}
.inbox-item + .inbox-item{border-top:1px solid var(--line);border-radius:0}
.inbox-item.unread{background:var(--brand-soft)}
.inbox-item-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.inbox-item h3{margin:0 0 4px;font-size:14px;flex:1}
.inbox-del{flex:none;border:0;background:transparent;color:var(--mut);min-height:auto;padding:0;font-size:12px;font-weight:650}
.inbox-del:hover{color:var(--danger, #b4233f)}
.inbox-item .when{font-size:12px;color:var(--mut);margin-bottom:8px}
.inbox-item .body{font-size:13px;line-height:1.55;white-space:pre-wrap;word-break:break-word}
.inbox-item img{display:block;max-width:100%;border-radius:8px;margin:8px 0}
.inbox-item .inbox-link{display:inline-flex;margin-top:8px;color:var(--brand);font-weight:650;text-decoration:none}
.inbox-empty{padding:28px 12px;text-align:center;color:var(--mut);font-size:13px}
.bal{font-size:13px;font-weight:700;background:var(--brand-soft);color:var(--brand);padding:8px 12px;border-radius:999px}
.top-sys{
  justify-self:center;max-width:100%;min-width:0;margin:0;
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 12px 6px 10px;border-radius:999px;
  border:1px solid transparent;background:transparent;
  font-size:13px;font-weight:650;line-height:1.35;color:var(--mut)
}
.top-sys:not(.on){visibility:hidden;padding:0;border:0}
.top-sys-ico{flex:none;display:block}
.top-sys-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.top-sys.ok{
  color:var(--ok);background:#e8f7f1;
  border-color:color-mix(in srgb, var(--ok) 28%, #fff)
}
.top-sys.err{
  color:var(--danger);background:#fff0f3;
  border-color:color-mix(in srgb, var(--danger) 28%, #fff)
}
.top-sys.err .top-sys-text{white-space:normal}
.top-sys.info{
  color:var(--brand);background:var(--brand-soft);
  border-color:color-mix(in srgb, var(--brand) 22%, #fff)
}

.wrap{width:min(1180px,100%);margin:0 auto;padding:var(--pad);padding-bottom:max(40px,env(safe-area-inset-bottom));flex:1}
body.studio-work .top,
body.studio-work .wrap{
  padding-left:max(var(--pad), env(safe-area-inset-left));
  padding-right:max(var(--pad), env(safe-area-inset-right));
}
body.studio-work .wrap{
  width:100%;
  max-width:none;
  padding-top:12px;
}
body.studio-work .steps{width:100%;margin:0 0 16px}

.auth{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);
  grid-template-areas:
    "head form"
    "points form"
    "visual form";
  gap:12px clamp(20px,4vw,48px);
  align-items:start;
}
.promo-banner{
  display:block;
  margin:16px 0 4px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#eef0f8;
  box-shadow:0 10px 28px rgba(26,31,51,.06);
  line-height:0
}
.promo-banner img{display:block;width:100%;height:auto}
.demo-sec{
  background:var(--panel);border:1px solid var(--line);border-radius:16px;
  padding:clamp(16px,2.5vw,22px);margin:12px 0 8px
}
.demo-frame{
  position:relative;width:100%;aspect-ratio:16/9;
  border-radius:12px;overflow:hidden;background:#111;margin-top:10px
}
.demo-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.auth-head{grid-area:head}
.highlights{grid-area:points;margin:16px 0 0;padding:0;list-style:none;display:grid;gap:12px;max-width:38em}
.auth-visual{grid-area:visual}
.auth-form{
  grid-area:form;position:sticky;top:76px;z-index:25;
  scroll-margin-top:76px;
  background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:clamp(20px,3vw,28px);box-shadow:0 18px 48px rgba(26,31,51,.07)
}
.auth-form h2{margin:0 0 4px;font-size:20px}
#row-referral input{width:100%}
#referral-hint{margin:6px 0 0}
#row-channel select{width:100%}
#row-channel input{width:100%;margin-top:8px}
.kicker{margin:0 0 8px;font-size:13px;letter-spacing:.08em;color:var(--brand);font-weight:750}
.auth-head h1{
  margin:0 0 12px;
  font-family:"Songti SC","STSong","Noto Serif SC","Source Han Serif SC","Palatino Linotype","Palatino",serif;
  font-weight:700;
  font-size:clamp(32px,5.4vw,54px);
  line-height:1.14;
  letter-spacing:.04em;
  color:#16141c;
  text-wrap:balance
}
.ttl-ai{
  display:inline-block;
  position:relative;
  margin:0 .04em;
  padding:0 .04em .06em;
  font-family:Palatino,"Palatino Linotype","Iowan Old Style","Times New Roman",serif;
  font-style:italic;
  font-weight:700;
  font-size:1.12em;
  letter-spacing:.14em;
  line-height:1;
  color:var(--brand);
  transform:translateY(-.07em) rotate(-5deg);
  transform-origin:50% 70%
}
.ttl-ai::after{
  content:"";
  position:absolute;
  left:6%;
  right:4%;
  bottom:.04em;
  height:.08em;
  background:var(--brand);
  border-radius:1px;
  transform:rotate(-8deg);
  opacity:.9
}
.lede{margin:0;font-size:16px;color:var(--mut);max-width:38em;line-height:1.7}
.highlights li{position:relative;padding-left:18px;color:var(--txt);font-size:14px;font-weight:400}
.highlights li::before{content:"";position:absolute;left:0;top:.7em;width:8px;height:8px;border-radius:50%;background:var(--brand)}
.highlights strong{display:block;font-size:14px;font-weight:700;letter-spacing:-.02em;margin:0 0 4px}
.highlights p{margin:0;color:var(--mut);font-size:13px;line-height:1.65;font-weight:400}
.hero{margin:8px 0 16px;border-radius:18px;overflow:hidden;border:1px solid var(--line);background:#dfe3ee;box-shadow:0 18px 40px rgba(26,31,51,.08)}
.hero img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.hero-reel{position:relative;aspect-ratio:16/9;outline:none}
.hero-reel-view{position:absolute;inset:0}
.hero-reel-view img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  opacity:0;transform:scale(1.02);
  transition:opacity .55s var(--ease),transform .9s var(--ease);
  pointer-events:none
}
.hero-reel-view img.is-on{opacity:1;transform:scale(1);z-index:1}
.hero-reel-idx{
  position:absolute;z-index:2;left:12px;bottom:12px;margin:0;
  padding:4px 8px;border-radius:999px;
  background:rgba(18,21,38,.48);color:#fff;font-size:11px;font-weight:700;
  letter-spacing:.04em;tabular-nums
}
.hero-reel-nav{
  position:absolute;z-index:3;top:50%;transform:translateY(-50%);
  width:40px;min-height:40px;height:40px;padding:0;border:0;border-radius:50%;
  background:rgba(255,255,255,.94);color:var(--ink);
  box-shadow:0 8px 20px rgba(18,21,38,.14);
  display:grid;place-items:center;opacity:0;
  transition:opacity .2s var(--ease),background .15s var(--ease)
}
.hero-reel-nav.is-prev{left:10px}
.hero-reel-nav.is-next{right:10px}
.hero-reel-nav:hover{background:#fff;color:var(--brand);border-color:transparent}
.hero-reel:hover .hero-reel-nav,
.hero-reel:focus-within .hero-reel-nav{opacity:1}
.hero-reel-dots{
  position:absolute;z-index:3;left:50%;bottom:12px;transform:translateX(-50%);
  display:flex;gap:6px;margin:0;padding:7px 8px;border-radius:999px;
  background:rgba(18,21,38,.42)
}
.hero-reel-dots button{
  width:22px;min-height:4px;height:4px;padding:0;border:0;border-radius:999px;
  background:rgba(255,255,255,.34);overflow:hidden
}
.hero-reel-dots button:hover{background:rgba(255,255,255,.55)}
.hero-reel-fill{
  display:block;height:100%;width:0;background:#fff;
  transform-origin:left center
}
.hero-reel-dots button.is-on .hero-reel-fill{
  width:100%;
  animation:hero-reel-fill 3s linear forwards
}
.hero-reel.is-paused .hero-reel-fill{animation-play-state:paused}
@keyframes hero-reel-fill{from{width:0}to{width:100%}}
@media(hover:none){
  .hero-reel-nav{opacity:1}
}
.pitch{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.pitch li{display:grid;grid-template-columns:44px 1fr;gap:12px;align-items:start;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:14px}
.pitch-ico{width:44px;height:44px;border-radius:12px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;margin-top:1px}
.pitch-ico svg{width:22px;height:22px;display:block}
.pitch strong{display:block;font-size:15px;letter-spacing:-.02em}
.pitch p{margin:6px 0 0;font-size:13px;color:var(--mut);font-weight:400;line-height:1.65}
.photo-credit{margin:0;padding:8px 10px;font-size:11px;color:var(--mut);background:rgba(255,255,255,.86)}
.photo-credit a{color:inherit}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.chips li{background:var(--bg);border:1px solid var(--line);border-radius:999px;padding:8px 12px;font-size:13px;font-weight:650}
.chips li:nth-child(1){background:#eef2ff;border-color:#c7d2fe;color:#3730a3}
.chips li:nth-child(2){background:var(--accent-soft);border-color:#99e6d6;color:#0f766e}
.chips li:nth-child(3){background:#fff7ed;border-color:#fdba74;color:#c2410c}
.chips li:nth-child(4){background:#f5f3ff;border-color:#ddd6fe;color:#6d28d9}
.billing-box{margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.fine{margin-top:12px;color:var(--mut);font-size:13px;max-width:40em}
.fine summary{cursor:pointer;font-weight:650}
.fine-list{margin:8px 0 0;padding-left:1.15em;color:var(--mut);font-size:13px;line-height:1.55}
.fine-list li{margin:4px 0}
.fine-list .q-zoom-link{
  display:inline;margin-left:6px;padding:0;border:0;background:none;min-height:0;
  font:inherit;font-weight:650;color:var(--accent);text-decoration:underline;border-radius:0
}
.fine-list .q-zoom-link:hover{color:#0b6b5c;border:0}

.faq-sec{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:clamp(16px,2.5vw,22px);margin-top:8px}
.eyebrow{margin:0 0 6px;color:var(--brand);font-size:13px;font-weight:700}
.faq-sec h2{margin:0 0 8px;font-size:22px;letter-spacing:-.03em}
.faq-item{border-bottom:1px solid var(--line);padding:0}
.faq-item:last-child{border-bottom:0}
.faq-item summary{
  cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;
  min-height:var(--touch);padding:12px 0;font-weight:650
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";color:var(--brand);font-size:18px;line-height:1;flex-shrink:0}
.faq-item[open] summary::after{content:"−"}
.faq-item p{margin:0 0 16px;padding-right:28px;color:var(--mut);font-size:13px;line-height:1.7}
.faq-item .faq-qr{display:block;width:180px;height:auto;margin:0 0 16px;border:1px solid var(--line);border-radius:12px;background:#fff}

.ent-banner{
  background:var(--panel);border:1px solid var(--line);border-radius:16px;
  padding:clamp(10px,1.6vw,16px);margin:0 0 16px;overflow:hidden
}
.ent-banner img{display:block;width:100%;height:auto;border-radius:10px;background:#fff}
.sample-sec{
  background:var(--panel);border:1px solid var(--line);border-radius:16px;
  padding:clamp(16px,2.5vw,22px);margin:0 0 16px
}
.sample-sec h2{margin:0 0 6px;font-size:22px;letter-spacing:-.03em}
.sample-lead{margin:0 0 14px}
.hot-tpls{
  background:var(--panel);border:1px solid var(--line);border-radius:16px;
  padding:clamp(16px,2.5vw,22px) 0;margin:0 0 16px;overflow:hidden
}
.hot-tpls .eyebrow{padding:0 clamp(16px,2.5vw,22px);margin:0 0 12px}
.hot-tpls-mask{
  overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 32px,#000 calc(100% - 32px),transparent);
  mask-image:linear-gradient(90deg,transparent,#000 32px,#000 calc(100% - 32px),transparent)
}
.hot-tpls-track{
  display:flex;width:max-content;
  animation:hot-tpls-move 56s linear infinite;
  will-change:transform
}
.hot-tpls:hover .hot-tpls-track{animation-play-state:paused}
.hot-tpls-set{display:flex;gap:10px;padding-right:10px;flex:none}
.hot-tpls-set figure{
  margin:0;flex:none;width:168px;border-radius:10px;overflow:hidden;
  border:1px solid var(--line);background:#eceef5;
  box-shadow:0 8px 18px rgba(26,31,51,.07)
}
.hot-tpls-set img{
  display:block;width:168px;height:94px;object-fit:cover;pointer-events:none;user-select:none
}
@keyframes hot-tpls-move{
  from{transform:translate3d(0,0,0)}
  to{transform:translate3d(-50%,0,0)}
}
@media(max-width:640px){
  .hot-tpls-set figure,.hot-tpls-set img{width:132px}
  .hot-tpls-set img{height:74px}
}
.sample-tabs{display:none;gap:8px;margin:0 0 12px}
.sample-tabs button.on{background:var(--brand-soft);border-color:var(--brand);color:var(--brand)}
.sample-ws{
  display:grid;grid-template-columns:148px minmax(0,1fr);gap:12px;align-items:stretch
}
.sample-thumbs-col{
  position:relative;min-width:0;min-height:0;
  background:#eceef5;border:1px solid var(--line);border-radius:12px
}
.sample-thumbs{
  position:absolute;inset:0;
  display:flex;flex-direction:column;gap:8px;align-content:flex-start;
  overflow:auto;overscroll-behavior:contain;padding:8px 6px 8px 8px
}
.sample-thumbs .thumb{
  position:relative;display:block;width:100%;box-sizing:border-box;
  flex:0 0 auto;align-self:stretch;
  margin:0;padding:5px;min-height:0!important;height:auto!important;
  overflow:hidden;line-height:0;text-align:left;background:#fff
}
.sample-thumbs .thumb img{
  display:block;width:100%;height:auto;max-height:none;
  aspect-ratio:16/9;object-fit:cover;object-position:center;
  border-radius:4px;background:#111;pointer-events:none
}
.sample-thumbs .thumb .thumb-no{
  position:absolute;top:8px;left:8px;z-index:1;min-width:20px;padding:2px 6px;border-radius:6px;
  font-size:11px;font-weight:800;line-height:1.2;color:var(--mut);background:rgba(255,255,255,.92)
}
.sample-thumbs .thumb.on{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand);background:var(--brand-soft)}
.sample-thumbs .thumb.on .thumb-no{color:var(--brand)}
.sample-stage{
  position:relative;min-width:0;background:#eceef5;border:1px solid var(--line);
  border-radius:12px;padding:10px;display:flex;align-items:center;justify-content:center
}
.sample-shot{position:relative;width:100%;aspect-ratio:16/9;border-radius:8px;overflow:hidden;background:#111;line-height:0}
.sample-shot img{width:100%;height:100%;object-fit:contain;object-position:center}
.sample-idx{
  position:absolute;top:10px;right:10px;z-index:1;margin:0;padding:4px 8px;border-radius:8px;
  font-size:12px;font-weight:800;letter-spacing:.04em;color:var(--txt);
  background:rgba(255,255,255,.92);box-shadow:0 1px 4px rgba(18,24,48,.12)
}
.sample-empty{
  position:absolute;inset:0;margin:0;display:grid;place-items:center;
  color:var(--mut);font-size:14px;font-weight:650
}
.sample-stage.is-ready .sample-empty{display:none}

.site-float-bar{
  position:fixed;right:0;top:50%;z-index:880;display:flex;flex-direction:column;width:4.25rem;
  transform:translateY(-50%);border-radius:12px 0 0 12px;background:#fff;
  box-shadow:-4px 0 24px rgba(28,32,51,.12);border:1px solid var(--line);border-right:none
}
body.studio-work .site-float-bar{display:none!important}
.site-float-item{position:relative;border-bottom:1px solid color-mix(in srgb, var(--line) 80%, white)}
.site-float-item:last-child{border-bottom:none}
.site-float-trigger{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.35rem;
  width:100%;min-height:4.6rem;padding:.65rem .35rem;border:none;background:transparent;
  cursor:pointer;color:var(--mut);transition:color .18s var(--ease),background .18s var(--ease)
}
.site-float-trigger:hover,
.site-float-item.is-open .site-float-trigger,
.site-float-item:focus-within .site-float-trigger{color:var(--brand);background:var(--brand-soft)}
.site-float-trigger:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
.site-float-icon{display:flex;width:1.65rem;height:1.65rem}
.site-float-icon svg{width:100%;height:100%}
.site-float-label{font-size:.68rem;line-height:1.25;text-align:center;font-weight:600}
.site-float-panel{
  position:absolute;right:calc(100% + 10px);top:50%;z-index:1;width:11.5rem;
  padding:.85rem .85rem .75rem;transform:translateY(-50%);border-radius:12px;background:#fff;
  border:1px solid var(--line);box-shadow:0 12px 32px rgba(28,32,51,.14);text-align:center;
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .18s var(--ease),visibility .18s var(--ease)
}
.site-float-panel img{display:block;width:8.5rem;height:8.5rem;margin:0 auto;object-fit:contain;border-radius:8px}
.site-float-panel-title{margin:.55rem 0 0;font-size:.82rem;font-weight:700;color:var(--txt)}
.site-float-panel-hint{margin:.25rem 0 0;font-size:.72rem;line-height:1.45;color:var(--mut)}
.site-float-panel--phone{width:10.5rem;padding-top:1rem;padding-bottom:1rem}
.site-float-phone{display:inline-block;margin-top:.35rem;font-size:1.05rem;font-weight:800;letter-spacing:.02em;color:var(--brand);text-decoration:none}
.site-float-phone:hover{text-decoration:underline}
.site-float-item.is-open .site-float-panel{opacity:1;visibility:visible;pointer-events:auto}
@media (hover:hover) and (pointer:fine){
  .site-float-item:hover .site-float-panel{opacity:1;visibility:visible;pointer-events:auto}
}
@media (max-width:1100px){
  body:not(.studio-work){
    padding-bottom:calc(4.6rem + env(safe-area-inset-bottom));
  }
  .site-float-bar{
    top:auto;right:0;left:0;bottom:0;width:100%;max-width:none;transform:none;flex-direction:row;
    border-radius:14px 14px 0 0;border:1px solid var(--line);border-bottom:none;
    box-shadow:0 -8px 28px rgba(28,32,51,.12);
    padding-bottom:env(safe-area-inset-bottom)
  }
  .site-float-item{flex:1;border-bottom:none;border-right:1px solid color-mix(in srgb, var(--line) 80%, white)}
  .site-float-item:last-child{border-right:none}
  .site-float-trigger{min-height:var(--touch);height:4.25rem;padding:.45rem .35rem;gap:.2rem}
  .site-float-panel{
    right:50%;left:auto;top:auto;bottom:calc(100% + 8px);width:min(12rem,calc(100vw - 2rem));
    transform:translateX(50%)
  }
  .site-float-item.is-open .site-float-panel,
  .site-float-item:focus-within .site-float-panel,
  .site-float-item:hover .site-float-panel{transform:translateX(50%)}
  .site-float-panel img{width:7.5rem;height:7.5rem}
  body:not(.studio-work) .site-footer{padding-bottom:calc(1.2rem + 4.6rem + env(safe-area-inset-bottom))}
}

.sidebar-ad{
  position:fixed;right:calc(4.25rem + 10px);top:50%;z-index:870;width:148px;
  transform:translateY(-50%);
}
body.studio-work .sidebar-ad{right:14px}
.sidebar-ad.hide{display:none!important}
.sidebar-ad-card{
  display:block;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:12px;
  box-shadow:0 8px 28px rgba(31,36,55,.14);color:var(--txt);text-decoration:none
}
.sidebar-ad-visual{position:relative;display:block;overflow:hidden;height:92px}
.sidebar-ad-card img{display:block;width:100%;height:92px;object-fit:cover;background:#eef1f8}
.sidebar-ad-wave{
  position:absolute;inset:0;pointer-events:none;
  background:
    linear-gradient(115deg,transparent 0 38%,rgba(255,255,255,.0) 42%,rgba(255,255,255,.55) 50%,rgba(255,255,255,.0) 58%,transparent 62% 100%),
    radial-gradient(120% 70% at 10% 110%,rgba(255,255,255,.28),transparent 55%);
  mix-blend-mode:soft-light;
  transform:translateX(-130%) skewX(-18deg);
  animation:sidebar-ad-wave 3.6s ease-in-out 2s infinite
}
.sidebar-ad-card span:last-child{
  display:block;padding:.55rem .6rem .65rem;font-size:.78rem;font-weight:700;line-height:1.35
}
@keyframes sidebar-ad-wave{
  0%{transform:translateX(-130%) skewX(-18deg);opacity:0}
  8%{opacity:1}
  42%{transform:translateX(130%) skewX(-18deg);opacity:.95}
  50%,100%{transform:translateX(130%) skewX(-18deg);opacity:0}
}
@media (prefers-reduced-motion:reduce){
  .sidebar-ad-wave{animation:none;display:none}
}
@media (max-width:1100px){
  .sidebar-ad{display:none!important}
}

.page-promo{min-height:100vh;background:var(--bg,#f4f6fb)}
.promo-wrap{max-width:760px;margin:0 auto;padding:28px var(--pad,20px) 64px}
.promo-article{
  background:#fff;border:1px solid var(--line,#dfe2ec);border-radius:14px;padding:28px 28px 36px;
  box-shadow:0 1px 2px rgba(31,36,55,.04),0 12px 32px rgba(31,36,55,.06)
}
.promo-article h1{margin:0 0 18px;font-size:1.55rem;line-height:1.3}
.promo-body{font-size:.95rem;line-height:1.75;color:var(--txt,#1f2437)}
.promo-body p{margin:0 0 .85em}
.promo-body img{max-width:100%;height:auto;border-radius:8px}
.promo-body a{color:var(--brand,#3f46d9)}
.promo-body ul,.promo-body ol{margin:0 0 .85em;padding-left:1.3em}

.site-footer{
  margin-top:auto;border-top:1px solid var(--line);
  background:var(--ink);color:var(--ink-muted);padding:20px var(--pad);font-size:.84rem
}
.footer-inner{max-width:1180px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.footer-legal{margin:0;display:flex;flex-wrap:wrap;gap:8px 14px}
.footer-legal a,.footer-links a,.linkish{color:#c9cedb;text-decoration:none}
.footer-legal a:hover,.footer-links a:hover,.linkish:hover{color:#fff;border:0}
.linkish{border:0;background:none;padding:0;min-height:auto;font-weight:500;cursor:pointer;color:#c9cedb}
.footer-links{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:center}
.footer-meta{opacity:.55;font-size:.8rem}
.cookie-dialog{border:1px solid var(--line);border-radius:14px;padding:20px 22px;max-width:min(420px,92vw);background:var(--panel)}
.cookie-dialog::backdrop{background:rgba(18,21,38,.45)}
.cookie-dialog h3{margin:0 0 8px;font-size:16px}
.auth-tabs{display:flex;gap:8px;margin:0 0 16px}
.auth-tabs button{flex:1}
.auth-tabs button.on{background:var(--brand-soft);border-color:var(--brand);color:var(--brand)}
.auth-links{display:flex;justify-content:space-between;gap:12px;margin:10px 0 0}
button.link{min-height:auto;padding:0;border:0;background:none;color:var(--brand);font-weight:650;font-size:13px}
button.link:hover{border:0;filter:none;text-decoration:underline}
.chk a{color:var(--brand)}
.field-split{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:6px}

.card{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:clamp(16px,2.5vw,22px);margin:0 0 16px}
.card h2{margin:0;font-size:18px}
.card-head{display:flex;justify-content:space-between;gap:12px;align-items:baseline;flex-wrap:wrap;margin-bottom:12px}
.row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:14px}
.spec-pane .page-acts{flex-wrap:nowrap;gap:8px}
.spec-pane .page-acts button{
  flex:1 1 0;min-width:0;padding-left:8px;padding-right:8px;gap:6px
}
.spec-pane .page-acts #btn-play{
  flex:0 0 40px;width:40px;height:40px;min-height:40px;padding:0;border-radius:10px
}
.spec-pane .page-acts button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
button.danger{color:var(--danger);border-color:color-mix(in srgb, var(--danger) 38%, var(--line2))}
button.danger:hover{border-color:var(--danger);color:var(--danger);background:color-mix(in srgb, var(--danger) 8%, #fff)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.create-form{padding:14px 16px 16px;contain:layout}
.create-form h2{margin:0 0 10px;font-size:16px}
.create-basics{
  display:grid;
  grid-template-columns:minmax(0,1.7fr) minmax(120px,.72fr) minmax(120px,.72fr) 5.75rem;
  gap:10px 12px;align-items:end
}
.create-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.create-field label,.create-form .create-field label{
  margin:0;font-size:12px;font-weight:700;color:var(--mut);letter-spacing:.02em
}
.create-form .create-basics label{margin:0}
.create-form input:not([type=checkbox]):not([type=radio]),
.create-form textarea{
  min-height:36px;padding:6px 10px;border-radius:8px
}
.create-form .label{margin:10px 0 6px}
.create-form .hint{margin:4px 0 0}
.create-pages input,#create-box #pages{width:100%;max-width:none}
.create-compose{
  display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  gap:12px 24px;margin-top:14px;align-items:start
}
.create-compose>.struct-field:first-child{justify-self:start}
.create-compose>.density-field{justify-self:end}
.create-form .density-field{margin-top:0}
.create-form .notes-field{margin-top:8px}
.create-form .notes-grid{gap:12px;grid-template-columns:minmax(0,1fr) minmax(200px,calc(50% - 370px))}
.create-form .notes-box{margin-top:4px}
.create-form .notes-box textarea{min-height:88px;padding-top:36px}
.create-form .notes-help-hint{top:6px;right:36px;min-height:24px;line-height:24px;padding:0 8px}
.create-form .notes-file-rules{margin:6px 0 0;line-height:1.5}
.create-form .struct-label{margin:0 0 6px}
.create-form .struct-chips{gap:6px}
.create-form .struct-chip{min-height:32px;padding:4px 10px}
.create-form .struct-opt{min-height:32px}
.create-form .struct-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}
.create-form .struct-opts{
  display:flex;flex-direction:column;align-items:center;gap:2px;margin:0;min-width:0;justify-self:center
}
.create-form .struct-opts-spacer{min-height:1.15em}
.create-form .density-chips .struct-chip{
  display:inline-flex;flex-direction:column;align-items:flex-start;gap:1px;
  min-height:44px;padding:6px 12px;border-radius:12px;line-height:1.25
}
.create-form .density-chips .struct-chip span{font-size:11px;font-weight:500;color:var(--mut)}
.create-form .density-chips .struct-chip.on span{color:color-mix(in srgb, var(--brand) 72%, var(--mut))}
.pages-struct{align-items:start}
.pages-struct>label{margin:0}
.struct-field{min-width:0}
.struct-label{margin:0 0 8px}
.struct-chips{display:flex;flex-wrap:wrap;gap:8px}
.struct-chip{
  min-height:36px;padding:6px 12px;border-radius:999px;border:1px solid var(--line2);
  background:#fff;color:var(--txt);font-weight:650;font-size:13px
}
.struct-chip.on{border-color:var(--brand);background:var(--brand-soft, #eceeff);color:var(--brand)}
.struct-chip.locked{cursor:default;opacity:.92}
.struct-chip:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.struct-opt{
  display:inline-flex;align-items:center;gap:6px;min-height:36px;
  font-size:13px;font-weight:650;color:var(--txt);cursor:pointer;user-select:none
}
.struct-opt input{width:15px;height:15px;accent-color:var(--brand);margin:0}
.struct-opt-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 14px}
.struct-opt-hint{margin:0;font-size:12px;font-weight:500;color:var(--mut);line-height:1.4;text-align:center;user-select:none}
.density-field{margin-top:12px}
.density-hint{margin:6px 0 0}
.tpl-cats{
  display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px
}
.tpl-cat{
  min-height:36px;padding:6px 12px;border-radius:999px;border:1px solid var(--line2);
  background:#fff;color:var(--txt);font-weight:650;font-size:13px
}
.tpl-cat.on{border-color:var(--brand);background:var(--brand-soft, #eceeff);color:var(--brand)}
.tpl-cat[data-cat="enrollment"].on{border-color:#ea580c;background:#fff4e5;color:#c2410c}
.tpl-cat:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.tpl-current{
  margin:0 0 12px;padding:10px;border-radius:12px;
  background:var(--brand-soft, #eceeff);
  box-shadow:inset 3px 0 0 var(--brand)
}
.tpl-current-label{margin:0 0 8px;font-size:12px;font-weight:800;color:var(--brand)}
.tpl-current .tpl{max-width:168px}
.tpl-tag{
  display:inline-block;margin:4px 0 0;padding:1px 6px;border-radius:999px;
  background:#f4f5fb;color:var(--mut);font-size:10px;font-weight:700;line-height:1.4
}
.tpl.enrollment-tpl .tpl-tag{background:#fff4e5;color:#c2410c}
.tpls{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.tpl{border:1px solid var(--line2);border-radius:10px;padding:0;overflow:hidden;cursor:pointer;background:#fff;transition:border-color .15s var(--ease),box-shadow .15s var(--ease)}
.tpl:hover,.tpl.on{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand)}
.tpl.on{background:var(--brand-soft)}
.tpl-preview{position:relative;aspect-ratio:16/9;background:#e8ebf3;overflow:hidden}
.tpl-preview img{display:block;width:100%;height:100%;object-fit:cover;background:#e8ebf3;-webkit-backface-visibility:hidden}
.tpl-zoom-btn{
  position:absolute;top:8px;right:8px;z-index:2;
  width:32px;height:32px;min-height:32px;padding:0;border:0;border-radius:10px;
  display:grid;place-items:center;
  background:rgba(18,21,38,.82);color:#fff;
  opacity:0;transform:translateY(-4px);
  transition:opacity .16s var(--ease),transform .16s var(--ease),background .15s var(--ease)
}
.tpl:hover .tpl-zoom-btn,.tpl:focus-within .tpl-zoom-btn{opacity:1;transform:none}
.tpl-zoom-btn:hover{background:#121526;color:#fff;border:0}
.tpl-zoom-btn:focus-visible{opacity:1;transform:none;outline:2px solid #fff;outline-offset:2px}
.tpl .meta{padding:6px 8px 8px}
.tpl strong{display:block;font-size:12px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tpl .hint{margin-top:2px;line-height:1.3;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tpl-more{
  display:flex;align-items:center;justify-content:center;gap:6px;width:100%;
  margin:10px 0 0;min-height:40px;border-radius:10px;border-style:dashed;color:var(--mut)
}
.tpl-more svg{display:block;transition:transform .16s var(--ease)}
.tpl-more:hover{color:var(--brand)}
.tpl-more:hover svg{transform:translateY(2px)}
.tpl-zoom{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;background:rgba(18,21,38,.45);padding:24px}
.tpl-zoom.hide{display:none!important}
.tpl-zoom-card{
  position:relative;width:min(920px,94vw);max-height:min(92dvh,880px);
  display:flex;flex-direction:column;
  background:#fff;border-radius:18px;box-shadow:0 28px 70px rgba(18,21,38,.22);overflow:hidden
}
.tpl-zoom-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
  padding:18px 20px 12px
}
.tpl-zoom-head-text{min-width:0}
.tpl-zoom-head h3{margin:0;font-size:18px;letter-spacing:-.02em;color:var(--ink);line-height:1.3}
.tpl-zoom-meta{margin:6px 0 0;font-size:13px;color:var(--mut);line-height:1.45}
.tpl-zoom-tags{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 0}
.tpl-zoom-tags span{
  padding:3px 8px;border-radius:999px;background:#f4f5fb;color:var(--mut);
  font-size:12px;font-weight:650
}
.tpl-zoom-x{
  flex:none;width:36px;height:36px;min-height:36px;padding:0;border:0;border-radius:10px;
  background:#f4f5fb;color:var(--mut);font-size:22px;line-height:1
}
.tpl-zoom-x:hover{background:#eceef5;color:var(--ink);border:0}
.tpl-zoom-body{padding:0 20px;min-height:0}
.tpl-zoom-card img{display:block;width:100%;height:auto;max-height:min(58dvh,520px);object-fit:contain;background:#f4f5fb;border-radius:12px}
.tpl-zoom-foot{
  display:flex;justify-content:flex-end;gap:8px;
  padding:16px 20px 18px
}
.tpl-zoom-foot .primary.on{opacity:1}
.q-zoom{z-index:70;padding:1cm;align-items:stretch;justify-content:stretch}
.q-zoom-card{
  width:100%;height:100%;max-height:none;
  display:flex;flex-direction:column
}
.q-zoom-stage{
  flex:1;min-height:0;
  display:grid;grid-template-columns:48px minmax(0,1fr) 48px;
  align-items:center;gap:8px;padding:0 12px
}
.q-zoom-stage figure{
  margin:0;min-width:0;min-height:0;height:100%;
  display:flex;flex-direction:column
}
.q-zoom-card .q-zoom-stage img{
  flex:1 1 auto;width:100%;height:100%;max-height:none;
  object-fit:contain;background:#f4f5fb;border-radius:12px
}
.q-zoom-cap{
  margin:10px 0 0;text-align:center;font-size:14px;font-weight:650;color:var(--ink);line-height:1.45
}
.q-zoom-cap span{margin-left:8px;font-size:13px;font-weight:500;color:var(--mut)}
.q-zoom-nav{
  width:48px;height:48px;min-height:48px;padding:0;border-radius:999px;
  font-size:28px;line-height:1;color:var(--ink);background:#f4f5fb;border:0
}
.q-zoom-nav:hover{background:#eceef5;color:var(--ink);border:0}
.q-zoom-dots{display:flex;gap:8px;margin-right:auto}
.q-zoom-dots button{
  min-height:32px;padding:0 12px;border-radius:999px;font-size:13px;font-weight:700
}
.q-zoom-dots button.on{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}
.file{position:relative;display:flex;align-items:center;gap:10px;min-height:var(--touch);border:1px dashed var(--line2);border-radius:10px;padding:8px 12px;cursor:pointer;margin-top:6px;color:var(--mut);font-weight:400;overflow:hidden}
.file input{position:absolute;inset:0;opacity:0;width:100%;height:100%;min-height:0;cursor:pointer;padding:0;border:0}
#refname{white-space:normal;line-height:1.45}
.ref-hint{margin:6px 0 0}
.ref-callout{
  margin:16px 0 0;padding:12px 14px 14px;border-radius:12px;
  background:linear-gradient(180deg,#f4f5ff 0%,#eceeff 100%);
  box-shadow:inset 3px 0 0 var(--brand),0 0 0 1px color-mix(in srgb, var(--brand) 18%, var(--line))
}
.ref-callout-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 6px}
.ref-callout-title{font-size:15px;font-weight:800;color:var(--txt);letter-spacing:.01em}
.ref-tag{
  display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;
  background:#fff;color:var(--brand);font-size:11px;font-weight:800;line-height:1.3
}
.ref-callout-note{margin:0 0 10px;font-size:13px;font-weight:750;color:var(--brand);line-height:1.45}
.ref-callout .file{margin-top:0;background:#fff}
.ref-lib{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px;margin:0 0 8px}
.ref-lib:empty{display:none}
.ref-lib-item{
  position:relative;padding:0;border:1px solid var(--line2);border-radius:10px;overflow:hidden;
  background:#fff;min-height:0
}
.ref-lib-item.on{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand)}
.ref-lib-item img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:#e8ebf3}
.ref-lib-item span{display:block;padding:4px 6px;font-size:11px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ref-lib-meta{margin:0 0 8px}
.ac-tpl-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.ac-tpl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:10px}
.ac-tpl-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
.ac-tpl-card img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:#e8ebf3}
.ac-tpl-card .ac-tpl-name{margin:0;padding:8px 10px 0;font-size:12px;color:var(--txt);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ac-tpl-card .row{margin:8px 10px 10px}
.brand-lock{
  margin:0;padding:12px 14px 14px;border-radius:12px;
  border:1px solid var(--line);background:#fff
}
.brand-lock .hint{margin:0 0 10px}
.brand-logo-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.brand-logo-preview{
  width:88px;height:52px;object-fit:contain;border-radius:8px;border:1px solid var(--line);
  background-color:#9aa3b5;
  background-image:
    linear-gradient(45deg,#c5cad6 25%,transparent 25%),
    linear-gradient(-45deg,#c5cad6 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,#c5cad6 75%),
    linear-gradient(-45deg,transparent 75%,#c5cad6 75%);
  background-size:10px 10px;
  background-position:0 0,0 5px,5px -5px,-5px 0
}
.brand-logo-preview.hide{display:none}
.brand-colors{display:flex;flex-direction:column;gap:8px;margin:10px 0}
.brand-color-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.brand-color-row input[type=color]{width:36px;height:28px;padding:0;border:0;background:transparent}
.brand-color-row input[type=text]{width:110px;min-height:32px}
.brand-roles{display:flex;flex-wrap:wrap;gap:8px 14px;margin:8px 0}
.brand-roles label{display:inline-flex;align-items:center;gap:6px;margin:0;font-weight:600;font-size:13px}
.brand-lock input[type=checkbox],
.brand-lock input[type=radio]{
  width:14px;height:14px;min-width:14px;min-height:14px;
  margin:0;padding:0;border:0;border-radius:0;background:transparent;
  accent-color:var(--brand);flex:none
}
.brand-lock select{min-height:36px}
.brand-apply-wrap{
  display:flex;align-items:center;gap:8px;margin:12px 0 4px;
  font-size:14px;font-weight:650;color:var(--txt)
}
.brand-apply-wrap input{width:16px;height:16px;min-height:16px;margin:0;accent-color:var(--brand)}
.chk{display:flex;gap:8px;align-items:center;font-weight:400;color:var(--txt);margin-top:12px}
.chk input{width:18px;height:18px;min-height:18px}
.style-prompt{width:100%;margin:14px 0 4px}
.gen-mode{display:flex;flex-wrap:wrap;gap:10px 28px;align-items:center;justify-content:center}
.gen-mode label{position:relative;display:inline-flex;align-items:center;gap:6px;margin:0;font-size:14px;font-weight:650;color:var(--txt);cursor:pointer}
.gen-mode input{width:16px;height:16px;min-height:16px;margin:0;accent-color:var(--brand)}
.gen-mode label::after{
  content:attr(data-tip);
  position:absolute;left:50%;top:calc(100% + 8px);z-index:8;
  width:max-content;max-width:220px;padding:7px 10px;
  transform:translateX(-50%);
  border-radius:8px;background:#1d2438;color:#fff;
  font-size:12px;font-weight:400;line-height:1.45;text-align:center;
  box-shadow:0 8px 20px rgba(18,24,48,.18);
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .12s ease
}
.gen-mode label:focus-within::after{opacity:1;visibility:visible}
.style-prompt-toggle{display:inline-block;margin:0;padding:0;font-size:14px}
.style-prompt-box{position:relative;margin-top:8px}
.style-prompt-box textarea{width:100%;min-height:110px;resize:vertical;padding:12px 36px 12px 12px;box-sizing:border-box}
.style-prompt-help{
  position:absolute;top:8px;right:8px;z-index:2;
  width:26px;height:26px;min-height:26px;padding:0;border-radius:50%;
  border:1px solid var(--line2);background:#fff;color:var(--mut);
  font-size:14px;font-weight:800;line-height:1
}
.style-prompt-help:hover{color:var(--brand);border-color:var(--brand)}
.style-prompt-pop{
  position:absolute;top:40px;right:0;z-index:5;width:min(100%,360px);
  padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff;
  box-shadow:0 10px 24px rgba(18,24,48,.14)
}
.style-prompt-pop p{margin:0 0 8px;font-size:13px;color:var(--txt);line-height:1.5;font-weight:400}
.notes-field{margin-top:12px}
.notes-field > label{margin-top:0}
.notes-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,calc(50% - 370px));gap:16px}
.notes-grid .notes-input-col > label{margin-top:0}
.notes-file-box{min-width:0}
.notes-file-box .label{margin:0 0 6px}
.notes-file-box .file{
  margin-top:0;
  min-height:52px;
  background:var(--accent-soft);
  border:1px dashed color-mix(in srgb, var(--accent) 42%, var(--line2));
  color:#0f766e;font-weight:650
}
.notes-file-box .file:hover{
  background:#d8f4ee;
  border-color:var(--accent);
  color:#0b6b5c
}
.notes-file-box .hint{margin:8px 0 0;font-size:12px;color:var(--mut)}
.notes-file-box .hint.err{color:var(--danger)}
.notes-file-rules{margin:8px 0 0;padding-left:18px;list-style:disc;font-size:12px;color:var(--mut);line-height:1.7}
.notes-file-rules .mut{color:var(--mut)}
@media(max-width:1080px){.notes-file-rules li:last-child{display:list-item}}
.notes-file-box input{font-size:12px}
@media(max-width:1080px){
  .notes-grid,.create-form .notes-grid{grid-template-columns:1fr}
}
.notes-box{margin-top:6px}
.notes-box textarea{min-height:120px;padding-top:44px}
.notes-help-actions{
  position:absolute;top:8px;right:8px;z-index:2;
  display:flex;align-items:center;gap:8px;max-width:calc(100% - 16px)
}
.notes-help-hint{
  min-height:26px;padding:0 10px;border-radius:999px;
  border:1px solid var(--brand);background:var(--brand-soft);color:var(--brand);
  font-size:12px;font-weight:700;line-height:26px;white-space:nowrap
}
.notes-help-short{display:none}
.notes-help-hint:hover{filter:brightness(1.02)}
.notes-box .style-prompt-help{position:static;top:auto;right:auto}
.notes-help-pop{width:min(100%,520px);max-height:min(72vh,480px);overflow:auto}
.notes-demo-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  grid-template-rows:repeat(5,auto);
  grid-auto-flow:column;
  gap:6px
}
.notes-demo-grid button{justify-content:center;text-align:center}
.style-presets{display:flex;flex-direction:column;gap:6px}
.style-presets button{
  justify-content:flex-start;text-align:left;min-height:auto;padding:8px 10px;
  font-weight:650;font-size:13px
}
.create-cta{display:flex;flex-direction:column;align-items:center;margin-top:16px}
.create-cta .chk{margin-top:0}
.create-cta .row{justify-content:center;margin-top:12px}
.gen-cost{margin:0;text-align:center;font-weight:600;color:var(--txt)}
.gen-cost.err{color:var(--danger)}
.open-bar{margin:0 0 12px}
.sys-bar{
  display:flex;align-items:center;gap:12px;
  margin:0 0 8px;padding:0;border:0;background:transparent
}
.sys-bar .link{
  flex-shrink:0;margin:0;padding:0;min-height:0;height:auto;line-height:1;
  display:inline-flex;align-items:center;gap:6px
}
.sys-bar .link .i{display:block;margin:0}
.sys-bar .link span{display:block;line-height:1}
.deck-crumb{
  display:flex;align-items:center;gap:5px;min-width:0;max-width:min(48vw,520px);
  margin:0;font-size:13px;font-weight:680;color:var(--txt);line-height:1.2
}
.deck-crumb .crumb-ico{flex:none;display:block;color:var(--mut)}
.deck-crumb .crumb-folder{color:#f5c518}
.deck-crumb .crumb-file{overflow:visible;filter:drop-shadow(0 1px 1px rgba(63,70,217,.22))}
.deck-crumb .crumb-list,.deck-crumb .crumb-sep{flex:none}
.deck-crumb .crumb-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.notice-bar{
  flex:1;min-width:0;overflow:hidden;position:relative;
  display:flex;align-items:center;gap:8px;
  border:1px solid color-mix(in srgb, var(--brand) 20%, #fff);border-radius:999px;
  padding:6px 12px;background:var(--brand-soft);
  font-size:13px;font-weight:650;color:var(--brand);white-space:nowrap
}
.notice-bar.hide{display:none}
.notice-ico{flex:none;display:block;color:var(--brand)}
.notice-track{display:inline-flex;align-items:center;white-space:nowrap;will-change:transform;transform:translateX(var(--notice-start,0px))}
.notice-track.rolling{animation:noticeScroll linear infinite;animation-duration:var(--notice-dur,48s)}
.notice-item{flex:none}
.notice-gap{flex:none;width:var(--notice-gap-w,1200px)}
.notice-bar:hover .notice-track{animation-play-state:paused}
@keyframes noticeScroll{0%{transform:translateX(var(--notice-start,0px))}100%{transform:translateX(var(--notice-end,-1200px))}}
@media(prefers-reduced-motion:reduce){.notice-track{animation:none}}
.image-capacity{
  margin-left:auto;display:flex;align-items:center;gap:6px;flex:none;min-width:338px;
  min-height:28px;padding:2px 8px 2px 9px;border:1px solid #dfe2ec;border-radius:9px;
  background:linear-gradient(180deg,#fff,#f7f8fc);box-shadow:inset 0 1px 0 #fff,0 2px 7px rgba(31,36,55,.06);
  color:var(--txt);font-size:11px;font-weight:680;white-space:nowrap
}
.image-capacity-name{color:var(--mut);font-weight:760}
.image-capacity-paid{color:#c62828;font-weight:760}
.image-capacity-tank{
  display:block;flex:0 0 154px;width:154px;min-width:154px;height:16px;
  filter:drop-shadow(0 1px 1.5px rgba(31,36,55,.09))
}
.image-capacity-count{min-width:24px;color:var(--brand);font-variant-numeric:tabular-nums}
.image-capacity-idle,.image-capacity-queue{color:var(--mut);font-variant-numeric:tabular-nums}
.image-capacity.is-full .image-capacity-count{color:#b4233f}
.image-capacity.is-loading{opacity:.72}
.image-capacity.is-unavailable .image-capacity-tank,
.image-capacity.is-unavailable .image-capacity-idle,
.image-capacity.is-unavailable .image-capacity-queue{display:none}
.image-capacity.is-unavailable .image-capacity-count{min-width:auto;color:var(--mut)}
@media(max-width:720px){
  .sys-bar{gap:8px}
  .image-capacity{min-width:0;padding-inline:7px}
  .image-capacity-tank{width:154px}
  .image-capacity-idle{display:none}
}
@media(max-width:480px){
  .image-capacity-name{display:none}
  .image-capacity-paid{display:inline}
  .image-capacity-tank{width:154px}
}
#deck-list-box.need-pick{
  box-shadow:0 0 0 2px var(--brand);
  animation:deckNeedPick .45s ease 2
}
@keyframes deckNeedPick{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-3px)}
}
.deck-list{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.deck-item{
  display:flex;flex-direction:column;min-width:0;
  border:1px solid var(--line);border-radius:12px;padding:10px;background:#fff;
  transition:border-color .18s var(--ease),box-shadow .18s var(--ease),transform .18s var(--ease)
}
.deck-item:hover{border-color:#c7caf5;box-shadow:0 8px 20px rgba(31,36,55,.08);transform:translateY(-1px)}
.deck-open{
  display:block;min-width:0;min-height:0;padding:0;border:0;
  background:transparent;text-align:left;cursor:pointer;font-weight:inherit
}
.deck-open:hover .meta strong{color:var(--brand)}
.deck-cover-wrap{
  position:relative;display:block;width:100%;aspect-ratio:16/9;flex-shrink:0;
  overflow:hidden;border-radius:8px;background:#eef1f6
}
.deck-cover{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;background:#eef1f6}
.deck-cover.ph{background:linear-gradient(180deg,#eef1f6,#e4e8f2)}
.deck-item .meta{padding-top:10px}
.deck-item .meta strong{
  display:-webkit-box;min-height:2.8em;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  font-size:14px;line-height:1.4;overflow-wrap:anywhere
}
.deck-item .meta .hint{margin-top:5px;line-height:1.45}
.deck-item .acts{
  display:flex;gap:4px;justify-content:flex-end;margin-top:auto;padding-top:8px
}
.deck-icon-btn{
  display:grid;place-items:center;width:32px;height:32px;min-height:32px;padding:0;
  border:0;border-radius:8px;background:transparent;color:var(--mut);cursor:pointer
}
.deck-icon-btn:hover{background:var(--brand-soft);color:var(--brand)}
.deck-icon-btn.del:hover{background:#fef2f2;color:#dc2626}
.deck-icon-btn .i{width:16px;height:16px}
.style-edit{margin-top:14px}
.style-edit label{display:block;font-size:13px;font-weight:600;color:#1f2a44;margin:0 0 6px}
.style-edit input,.style-edit textarea{width:100%;box-sizing:border-box}
#page-style-edit{
  min-height:4.6em;height:4.6em;resize:vertical;font-size:13px;line-height:1.4
}
.style-edit .hint{margin:6px 0 0}
.ol-all{display:flex;align-items:center;gap:6px;margin:0;font-size:13px;color:var(--mut);font-weight:600;cursor:pointer}
.ol-all input{margin:0;width:16px;height:16px;accent-color:var(--brand)}
.ol-list{display:flex;flex-direction:column;gap:8px}
.ol-page{border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}
.ol-page.open{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand)}
.ol-page.picked{border-color:#c7caf5}
.ol-row{display:flex;align-items:stretch}
.ol-pick-wrap{
  display:grid;place-items:center;padding:0 4px 0 12px;cursor:pointer;margin:0
}
.ol-pick-wrap input{width:16px;height:16px;margin:0;accent-color:var(--brand)}
.ol-head{
  display:flex;align-items:center;gap:10px;flex:1;min-width:0;min-height:var(--touch);
  padding:10px 14px 10px 8px;border:0;background:transparent;cursor:pointer;text-align:left;font-weight:650
}
.ol-head:hover{color:var(--brand)}
.ol-no{flex-shrink:0;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-size:12px;background:var(--brand-soft);color:var(--brand)}
.ol-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ol-role{
  flex-shrink:0;margin-left:auto;padding:3px 8px;border-radius:999px;
  font-size:11px;font-weight:700;line-height:1.2;
  background:var(--bg);border:1px solid var(--line);color:var(--mut)
}
.ol-role[data-role="cover"]{background:#eef2ff;border-color:#c7d2fe;color:#3730a3}
.ol-role[data-role="toc"]{background:#ecfeff;border-color:#a5f3fc;color:#0e7490}
.ol-role[data-role="content"]{background:var(--brand-soft);border-color:#c7caf5;color:var(--brand)}
.ol-role[data-role="summary"]{background:#fef3c7;border-color:#fcd34d;color:#92400e}
.ol-del{
  flex-shrink:0;display:grid;place-items:center;width:32px;height:32px;margin-left:4px;
  border:0;border-radius:8px;background:transparent;color:var(--mut);cursor:pointer
}
.ol-del:hover{color:#dc2626;background:#fef2f2}
.ol-page.open .ol-title{white-space:normal}
.ol-body{display:none;padding:0 14px 14px}
.ol-page.open .ol-body{display:block}
.ol-md{min-height:220px;font-family:ui-monospace,Consolas,"Microsoft YaHei",monospace;font-size:13px;line-height:1.6}
.export-acts{margin:0;flex-wrap:wrap}
.status-bar .export-acts{margin-top:0}

#work{display:flex;flex-direction:column}
#open-bar,#sys-bar{order:0}
#work .steps{order:1}
#deck-list-box{order:2}
#flow-shell{order:3}
#home-flow{order:3}
#import-box,#skin-box{order:3}
#create-box{order:4}
#outline-box{order:10}
#ws-tabs{order:11}
#preview-box{order:12}
#work .status-bar{order:20}
#work[data-step="3"] #ws-tabs,#work[data-step="4"] #ws-tabs{order:8}
#work[data-step="3"] #preview-box,#work[data-step="4"] #preview-box{order:9}

.steps{
  --arrow:18px;
  --step-h:52px;
  --step-idle:#e2e7f3;
  --step-done:#d7f3ec;
  --step-lock:#e2e7f3;
  display:flex;flex-wrap:nowrap;align-items:stretch;
  height:var(--step-h);margin:0 0 16px;padding:0;border:0;list-style:none
}
.steps li{
  --clip:polygon(0 0,calc(100% - var(--arrow)) 0,100% 50%,calc(100% - var(--arrow)) 100%,0 100%,var(--arrow) 50%);
  display:flex;align-items:stretch;flex:1 1 0%;min-width:0;
  position:relative;z-index:1;height:var(--step-h);margin:0;padding:0;border:0;background:none
}
.steps li:nth-child(1){z-index:4;--clip:polygon(0 0,calc(100% - var(--arrow)) 0,100% 50%,calc(100% - var(--arrow)) 100%,0 100%)}
.steps li:nth-child(2){z-index:3}
.steps li:nth-child(3){z-index:2}
.steps li:nth-child(4){z-index:1}
.steps li:last-child{--clip:polygon(0 0,100% 0,100% 100%,0 100%,var(--arrow) 50%)}
.steps li.on{z-index:6}
.steps li::before{
  content:"";position:absolute;inset:0;
  left:calc(var(--arrow) / -2);width:calc(100% + var(--arrow));
  clip-path:var(--clip);background:var(--step-idle);pointer-events:none;
  transition:background .2s var(--ease)
}
.steps li:first-child::before{left:0;width:calc(100% + var(--arrow) / 2)}
.steps li:last-child::before{width:calc(100% + var(--arrow) / 2)}
.steps li.done::before{background:var(--step-done)}
.steps li.on::before{background:var(--brand)}
.steps li.locked::before{background:var(--step-lock)}
.step-fill{
  position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:8px;
  flex:1;min-height:0;height:var(--step-h);width:100%;margin:0;border:0;border-radius:0;cursor:pointer;
  padding:0 22px 0 14px;line-height:1;box-sizing:border-box;
  background:transparent;color:#5c6578;font-weight:650;font-size:15px;
  transition:color .2s var(--ease)
}
.steps li.done .step-fill{color:var(--accent)}
.steps li.on .step-fill{color:#fff;font-weight:700}
.steps li.locked .step-fill{color:#6b7386;cursor:not-allowed}
.steps li:not(.locked):not(.on) .step-fill:hover{color:var(--brand)}
.steps li.on .step-fill:hover{color:#fff;background:transparent}
.step-fill:focus-visible{outline:2px solid var(--brand);outline-offset:-4px}
.steps li:first-child .step-fill{padding-left:16px}
.steps li:not(:first-child) .step-fill{padding-left:24px}
.step-n{
  width:22px;height:22px;border-radius:50%;flex-shrink:0;
  display:grid;place-items:center;font-size:12px;font-weight:750;line-height:1;
  background:#fff;color:#5c6578;border:1px solid #d8dce8
}
.steps li.done .step-n{background:var(--accent);color:#fff;border-color:transparent}
.steps li.on .step-n{background:#fff;color:var(--brand);border-color:transparent}
.steps li.locked .step-n{background:#f7f8fd;color:#6b7386;border-color:#c5cad8}
.step-t{letter-spacing:.01em;text-align:center;line-height:1;white-space:nowrap}
@media (prefers-reduced-motion:reduce){
  .steps li::before,.step-fill{transition:none}
}

.ws-tabs{display:none;gap:8px;margin:0 0 12px}
.ws-tabs button.on{background:var(--brand-soft);border-color:var(--brand);color:var(--brand)}
.workspace{
  display:grid;
  grid-template-columns:200px minmax(0,1fr) minmax(280px,340px);
  grid-template-rows:minmax(0,1fr) auto;
  grid-template-areas:
    "thumbs stage spec"
    "thumbs notes export";
  gap:12px;align-items:stretch;min-height:0
}
#work[data-step="4"] .workspace,
#work[data-step="4"] .workspace.editor-on{
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:minmax(0,1fr);
  grid-template-areas:"editor"
}
#work[data-step="4"] .spec-pane,
#work[data-step="4"] .stage-notes,
#work[data-step="4"] #ws-tabs{display:none!important}
#work[data-step="4"] .workspace #thumbs,
#work[data-step="4"] .workspace .stage-main,
#work[data-step="4"] .workspace .export-bar{display:none!important}
.ppt-editor{
  grid-area:editor;width:100%;height:100%;min-height:0;border:0;border-radius:12px;background:#f4f5fb
}
.ppt-editor.warming{
  position:fixed;left:0;top:0;width:100vw;height:100vh;opacity:0;pointer-events:none;z-index:-1
}
#thumbs{
  grid-area:thumbs;
  display:flex;flex-direction:column;gap:10px;align-content:flex-start;
  min-height:0;height:100%;overflow:auto;
  overscroll-behavior:contain;padding:2px 4px 4px 0
}
/* 卡片高度=图片高度+边距；禁止被侧栏 flex 拉高 */
#thumbs .thumb-wrap{
  position:relative;flex:0 0 auto;align-self:stretch;width:100%
}
#thumbs .thumb-pick{
  position:absolute;top:8px;right:8px;z-index:3;
  display:flex;align-items:center;justify-content:center;
  width:22px;height:22px;margin:0;border-radius:6px;
  background:rgba(255,255,255,.94);box-shadow:0 1px 4px rgba(18,24,48,.16)
}
#thumbs .thumb-pick input{
  width:15px;height:15px;margin:0;accent-color:var(--brand);cursor:pointer
}
#thumbs button.thumb{
  position:relative;display:block;width:100%;box-sizing:border-box;
  margin:0;padding:6px;min-height:0!important;height:auto!important;
  overflow:hidden;line-height:0;text-align:left;background:#fff
}
#thumbs button.thumb .thumb-img{
  display:block;width:100%;height:auto;max-width:100%;max-height:none;
  border-radius:4px;background:#111;pointer-events:none
}
#thumbs button.thumb .thumb-ph{
  display:block;width:100%;height:auto;aspect-ratio:16/9;
  border-radius:4px;pointer-events:none;
  background:
    linear-gradient(90deg,transparent 40%,rgba(255,255,255,.45) 50%,transparent 60%),
    linear-gradient(180deg,#eef1f6,#e4e8f2);
  background-size:200% 100%,100% 100%;
  animation:thumb-shine 1.6s ease-in-out infinite
}
@keyframes thumb-shine{0%{background-position:100% 0,0 0}100%{background-position:-100% 0,0 0}}
#thumbs button.thumb .thumb-no{
  position:absolute;top:10px;left:10px;z-index:2;
  min-width:20px;padding:2px 6px;border-radius:6px;
  font-size:11px;font-weight:800;line-height:1.2;text-align:center;
  color:var(--mut);background:rgba(255,255,255,.92);
  box-shadow:0 1px 3px rgba(18,24,48,.12)
}
#thumbs button.thumb .thumb-badge{
  position:absolute;left:12px;bottom:12px;z-index:2;
  display:inline-flex;align-items:center;gap:4px;padding:2px 6px;border-radius:999px;
  font-size:10px;font-weight:700;line-height:1.2;background:rgba(255,255,255,.92);color:var(--mut);
  box-shadow:0 1px 4px rgba(18,24,48,.12)
}
#thumbs button.thumb .thumb-badge .i{width:12px;height:12px}
#thumbs button.thumb.on{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand);background:var(--brand-soft)}
#thumbs button.thumb.on .thumb-no{color:var(--brand)}
#thumbs button.thumb.failed{border-color:#f0b4c0}
#thumbs button.thumb.busy .thumb-badge{color:var(--brand)}
.stage-main{
  grid-area:stage;
  position:relative;min-width:0;min-height:0;height:100%;
  display:flex;align-items:center;justify-content:center;
  background:#eceef5;border:1px solid var(--line);border-radius:12px;padding:10px;overflow:hidden
}
.stage-main.cmp{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.stage-main.cmp .slide-shot{
  width:100%!important;height:auto!important;aspect-ratio:16/9
}
.stage-main.cmp #preview-cmp{
  display:block;width:100%;height:auto;aspect-ratio:16/9
}
.slide-shot{
  position:relative;flex:0 0 auto;line-height:0;
  max-width:100%;max-height:100%;border-radius:8px;overflow:hidden
}
.export-hint{
  position:absolute;left:12px;right:12px;bottom:10px;z-index:3;
  margin:0;text-align:center;pointer-events:none;
  color:#087a55;font-size:12px;font-weight:750
}
.edit-hotspots{position:absolute;inset:0;z-index:2}
.edit-hs{
  position:absolute;border-radius:4px;border:1.5px solid transparent;background:transparent;
  transition:border-color .12s ease,background .12s ease,box-shadow .12s ease
}
.edit-hs:hover,.edit-hs.is-on{
  border-color:#4db7ff;background:rgba(77,183,255,.14);
  box-shadow:0 0 0 1px rgba(255,255,255,.55) inset,0 2px 10px rgba(30,120,200,.18);z-index:2
}
.edit-hs-img:hover,.edit-hs-img.is-on{
  border-color:#12a36a;background:rgba(18,160,110,.12);
  box-shadow:0 0 0 1px rgba(255,255,255,.45) inset
}
.stage-empty{
  position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;
  padding:28px 36px;text-align:center;color:var(--mut);font-size:14px;font-weight:650;line-height:1.65;
  background:linear-gradient(180deg,#eef1f6,#e4e8f2);border-radius:12px
}
.stage-empty.err{color:var(--danger)}
.stage-empty.busy{color:var(--brand)}
.stage-retry{
  position:absolute;inset:10px;z-index:6;margin:0;border:0;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(48,36,72,.52);color:#fff;font-size:16px;font-weight:750;letter-spacing:.02em;
  cursor:pointer
}
.stage-retry.hide{display:none}
.stage-retry:hover{background:rgba(48,36,72,.64)}
.stage-retry:disabled{cursor:wait;opacity:.85}
/* 中间预览：框尺寸固定占满舞台，与源图像素无关，统一 16:9 contain */
#preview,#preview-cmp{
  width:100%;height:100%;max-width:100%;max-height:100%;
  object-fit:contain;object-position:center;border-radius:8px;background:#111
}
.slide-shot #preview{width:100%;height:100%;object-fit:fill}
#page-meta{flex-shrink:0;margin:8px 0 0}
.spec-pane{
  grid-area:spec;
  display:flex;flex-direction:column;
  background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:14px;
  min-height:0;height:100%;overflow:auto;overscroll-behavior:contain
}
.spec-pane h3{margin:16px 0 8px;font-size:14px}
.spec-pane h3:first-child{margin-top:0}
.ol-md{min-height:120px;font-family:ui-monospace,Consolas,"Microsoft YaHei",monospace;font-size:13px;line-height:1.6}
#spec-md{
  height:7.5rem;min-height:7.5rem;margin-top:0;resize:none;overflow:auto;
  field-sizing:fixed;transition:height .18s var(--ease),min-height .18s var(--ease)
}
#spec-md:read-only{opacity:.55;cursor:not-allowed}
#spec-md:focus,#spec-md:focus-visible{
  height:22.5rem;min-height:22.5rem
}

body.studio-edit{overflow:hidden;height:100dvh}
body.studio-edit .site-footer{display:none}
body.studio-edit .wrap{
  flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column;
  padding-top:12px;padding-bottom:8px
}
body.studio-edit #work{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column}
body.studio-edit #work .steps{flex-shrink:0;margin-bottom:10px}
body.studio-edit #preview-box{flex:1;min-height:0;overflow:hidden;grid-template-rows:minmax(0,1fr) auto}
body.studio-edit #work .status-bar{flex-shrink:0;margin-top:8px}
.editor-dl-bar{display:none}
@media (max-width:720px){
  body.studio-edit .top{padding:8px var(--pad)}
  body.studio-edit #work[data-step="4"] .steps{--step-h:40px;margin-bottom:6px}
  body.studio-edit #work[data-step="4"] .editor-dl-bar:not(.hide){
    display:flex;flex-shrink:0;margin:0 0 8px
  }
  body.studio-edit #work[data-step="4"] .editor-dl-bar button{flex:1;min-height:44px}
}
.rev{display:flex;align-items:center;gap:8px;border:1px solid var(--line2);border-radius:8px;padding:4px 8px;margin:4px 0;font-size:12px}
.rev.on{border-color:var(--brand);background:var(--brand-soft)}
.rev-meta{flex:1;min-width:0;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rev .row{margin:0;flex-wrap:nowrap;flex-shrink:0;gap:4px}
.rev .row button{min-height:28px;padding:2px 8px;font-size:12px;border-radius:8px;gap:4px}
.rev .row button.on{border-color:var(--brand);color:var(--brand);background:var(--brand-soft)}
.rev .row button .i{width:14px;height:14px}

.workspace > .export-bar{
  grid-area:export;
  display:flex;align-items:flex-start;align-content:flex-start;justify-content:flex-start;gap:8px;flex-wrap:wrap;
  margin:0;min-height:var(--touch);height:auto;
  padding:0 2px
}
.workspace > .export-bar .export-acts{
  margin:0;width:100%;display:flex;flex-direction:row;flex-wrap:nowrap;gap:8px;align-items:center
}
.workspace > .export-bar .pack-dl{
  flex:1 1 0;min-width:0;display:flex;position:relative
}
.workspace > .export-bar .export-acts > button,
.workspace > .export-bar .export-acts > a,
.workspace > .export-bar .pack-dl > button{
  flex:1 1 0;min-width:0;width:100%;justify-content:center;padding-left:8px;padding-right:8px
}
#btn-export{
  border:2px solid var(--brand);
  color:var(--brand);
  box-shadow:0 0 0 2px color-mix(in srgb, var(--brand) 22%, transparent)
}
#btn-export:hover:not(:disabled){
  background:var(--brand-soft);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--brand) 32%, transparent)
}
#btn-export.is-locked{
  opacity:.5;
  cursor:pointer;
}
@keyframes export-nudge{
  0%,100%{
    background:#fff;
    color:var(--brand);
    box-shadow:0 0 0 2px color-mix(in srgb, var(--brand) 22%, transparent)
  }
  50%{
    background:var(--brand);
    color:#fff;
    box-shadow:0 0 0 8px color-mix(in srgb, var(--brand) 38%, transparent)
  }
}
#btn-export.nudge:not(:disabled){
  animation:export-nudge 1.05s ease-in-out infinite
}
#btn-export.nudge:not(:disabled) .i{stroke:currentColor}
@media (prefers-reduced-motion:reduce){
  #btn-export.nudge:not(:disabled){
    animation:none;
    background:var(--brand);
    color:#fff;
    box-shadow:0 0 0 6px color-mix(in srgb, var(--brand) 32%, transparent)
  }
}
.flow-shell{
  background:var(--panel);border:1px solid var(--line);border-radius:16px;
  margin:0 0 16px;overflow:hidden
}
.flow-shell .card{border:0;border-radius:0;padding:0;margin:0;background:transparent;box-shadow:none}
.flow-stage{padding:clamp(16px,2.5vw,22px)}
.home-flow{
  display:none;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;margin:0;background:#f6f7fb;border-bottom:1px solid var(--line)
}
.flow-shell.is-home .home-flow{display:grid}
.home-flow button{
  position:relative;overflow:visible;
  min-height:58px;margin:0;padding:10px 16px 12px;
  border:0;border-radius:0;background:transparent;color:var(--txt);
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;
  box-shadow:inset 0 -2px 0 transparent
}
.home-flow button:hover{border-color:transparent;color:var(--ink);background:#eef0f7}
.home-flow button.on{
  background:var(--panel);color:var(--ink);
  box-shadow:inset 0 -2px 0 var(--brand)
}
.home-flow button.on:hover{color:var(--ink);background:var(--panel)}
.home-flow button:focus-visible{outline-offset:-3px;z-index:1}
.flow-tab-k{font-size:14px;font-weight:760;letter-spacing:-.02em;line-height:1.2;color:inherit}
.home-flow button.on .flow-tab-k{color:var(--brand)}
.flow-tab-d{font-size:12px;font-weight:550;color:var(--mut);line-height:1.3}
.flow-tab-new{
  position:absolute;top:8px;right:10px;
  padding:2px 6px;border-radius:999px;
  background:var(--brand-soft);color:var(--brand);
  font-size:10px;font-weight:780;letter-spacing:.04em;line-height:1.2
}
.import-split{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:10px}
.import-split .file{flex:1 1 220px;margin-top:0}
.import-or{flex:none;font-weight:750;color:var(--danger)}
.export-cost{margin:0 0 8px;width:100%}
.workspace > .export-bar{flex-wrap:wrap}
body.studio-convert .convert-ai-only{display:none!important}
body.studio-convert #revs,body.studio-convert .spec-pane h3{display:none!important}
body.studio-convert .spec-pane{align-self:start;height:auto;overflow:visible}
body.studio-skin .convert-ai-only{display:none!important}
body.studio-skin #btn-regen{display:inline-flex!important}
body.studio-skin #btn-page-del{display:none!important}
body.studio-skin #revs,body.studio-skin .spec-pane h3{display:none!important}
body.studio-skin .spec-pane{align-self:start;height:auto;max-height:100%;overflow:hidden}
body.studio-skin .stage-notes{max-height:96px}
body.studio-skin .workspace{
  grid-template-areas:
    "thumbs stage spec"
    "thumbs notes export"
}
.skin-summary{margin:12px 0;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--card-2,rgba(0,0,0,.03))}
.skin-summary ul{margin:8px 0 0;padding-left:1.2em}
.skin-summary .warn-list{color:var(--warn,#b45309)}
.status-bar{display:flex;justify-content:flex-end;align-items:center;gap:12px;flex-wrap:wrap;margin-top:8px}
.pack-dl{position:relative;flex-shrink:0}
.pack-menu{
  position:absolute;left:0;bottom:calc(100% + 6px);z-index:24;
  min-width:148px;padding:6px;display:flex;flex-direction:column;gap:4px;
  background:var(--panel);border:1px solid var(--line);border-radius:12px;
  box-shadow:0 10px 28px rgba(18,24,48,.14)
}
.pack-menu button{width:100%;justify-content:flex-start;text-align:left;min-height:40px}

#modal{position:fixed;inset:0;z-index:40;display:flex;align-items:flex-end;justify-content:center}
#modal:not(.hide){display:flex}
#auth-modal{position:fixed;inset:0;z-index:46;display:none;align-items:flex-end;justify-content:center}
#auth-modal:not(.hide){display:flex}
#auth-modal .auth-form{
  position:relative;z-index:1;top:auto;width:min(420px,100%);margin:0;
  max-height:min(92dvh,760px);overflow:auto;border-radius:16px 16px 0 0
}
#auth-modal .auth-close{position:absolute;top:12px;right:12px}
.scrim{position:absolute;inset:0;background:rgba(18,21,38,.45)}
.sheet{position:relative;background:var(--panel);width:min(420px,100%);border-radius:16px 16px 0 0;padding:20px 20px max(20px,env(safe-area-inset-bottom));}
.pay-sheet{width:min(440px,100%);padding:28px 24px max(24px,env(safe-area-inset-bottom))}
#modal .pay-sheet{width:min(720px,100%)}
#modal .pay-lead,#modal .pack-cap{white-space:nowrap}
#modal .pay-sheet-acts{flex-wrap:nowrap}
.pay-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
#brand-center .pay-head > div{min-width:0;flex:1}
.pay-kicker{margin:0 0 4px;font-size:11px;font-weight:750;letter-spacing:.08em;text-transform:uppercase;color:var(--brand)}
.pay-sheet h3{margin:0;font-size:22px;letter-spacing:-.03em;color:var(--ink)}
.pay-bal{margin:2px 0 0;font-size:12px;font-weight:700;color:var(--brand);background:var(--brand-soft);padding:6px 10px;border-radius:999px;white-space:nowrap}
.pay-lead{margin:10px 0 0;font-size:14px;line-height:1.5;color:var(--mut)}
.pay-facts{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0 0;padding:0;list-style:none}
.pay-facts li{margin:0;padding:5px 10px;border:1px solid var(--line);border-radius:999px;font-size:12px;font-weight:650;color:var(--txt);background:#f7f8fc}
.packs{display:flex;flex-direction:column;gap:8px;margin:16px 0 0}
.packs button{width:100%;text-align:left;display:grid;grid-template-columns:auto 1fr;grid-template-areas:"yuan pts" "yuan cap";column-gap:14px;row-gap:2px;align-items:center;padding:14px 16px;min-height:72px;border-radius:14px}
.packs button.on{border-color:var(--brand);background:var(--brand-soft);color:var(--ink)}
.packs button.on:hover{color:var(--ink)}
.pack-yuan{grid-area:yuan;font-size:22px;font-weight:780;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--ink)}
.pack-pts{grid-area:pts;font-size:15px;font-weight:750}
.pack-gift{margin-left:8px;font-size:12px;font-weight:650;color:var(--brand)}
.pack-q{margin-left:8px;font-size:12px;font-weight:650;color:var(--accent)}
.packs button.on .pack-gift{color:var(--brand)}
.pack-cap{grid-area:cap;font-size:12px;font-weight:550;color:var(--mut);line-height:1.45}
.qr{text-align:center;margin:14px 0 4px;min-height:0}
.qr:not(:empty){min-height:220px}
.qr img{width:min(200px,62vw);height:auto;border-radius:12px;border:1px solid var(--line)}
.qr .hint{margin-top:8px}
.pay-sheet-acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:16px}
.pay-sheet-acts button{margin:0}
#invoice-modal{position:fixed;inset:0;z-index:45;display:flex;align-items:flex-end;justify-content:center}
#invoice-modal:not(.hide){display:flex}
.invoice-sheet{text-align:left}
.invoice-qr{margin-top:12px}
.invoice-qr img{width:min(220px,70vw);height:auto}
#account-center,#brand-center{position:fixed;inset:0;z-index:41;display:flex;align-items:flex-end;justify-content:center}
#account-center:not(.hide),#brand-center:not(.hide){display:flex}
.ac-sheet{width:min(560px,100%);height:min(88dvh,620px);max-height:min(88dvh,620px);display:flex;flex-direction:column}
.ac-close{min-width:var(--touch);padding:8px}
.ac-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0 0;padding-top:12px;overflow:visible}
.ac-tabs button{min-height:36px;padding:6px 12px;font-size:13px;position:relative}
.ac-tabs button.on{border-color:var(--brand);background:var(--brand-soft);color:var(--brand)}
.ac-tab-ref{overflow:visible}
.ac-ref-badge{
  position:absolute;top:-11px;right:-6px;z-index:2;pointer-events:none;
  white-space:nowrap;font-size:10px;line-height:1.2;padding:2px 6px;border-radius:999px;
  background:#fff7ed;color:#c2410c;font-weight:800;
  box-shadow:0 0 0 1px rgba(251,146,60,.5),0 4px 10px rgba(194,65,12,.12)
}
.ac-ref-badge .pill-boom{margin-left:0}
.ac-ref-badge .pill-boom .ch,
.ac-ref-badge .pill-sparks i{animation-iteration-count:infinite}
.ac-body{margin-top:14px;flex:1;min-height:0;overflow:auto}
.ac-table{width:100%;border-collapse:collapse;font-size:13px}
.ac-table th,.ac-table td{text-align:left;padding:8px 6px;border-bottom:1px solid var(--line);vertical-align:top}
.ac-table th{color:var(--mut);font-weight:650}
.ac-ref-row{display:flex;gap:8px;align-items:stretch}
.ac-ref-row input{flex:1;min-width:0;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:13px}
.ac-ref-url{margin:8px 0 0;font-size:12px;color:var(--mut);word-break:break-all}
.ac-form label{display:block;margin:0 0 10px}
.ac-form input{width:100%}
#toast{position:fixed;right:16px;bottom:max(16px,env(safe-area-inset-bottom));z-index:50}
.toast{background:#1a1f33;color:#fff;padding:10px 14px 10px 16px;border-radius:10px;margin-top:8px;max-width:min(360px,90vw);box-shadow:0 10px 28px rgba(18,21,38,.18);border-left:4px solid var(--spark);animation:toast-in .32s var(--ease)}
.toast.err{background:var(--danger);border-left-color:#fecdd3}
@keyframes toast-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.toast{animation:none}}

@media(min-width:721px){
  #modal,#account-center,#brand-center,#invoice-modal,#auth-modal{align-items:center}
  .sheet{border-radius:16px}
  .pay-sheet{border-radius:20px;box-shadow:0 24px 64px rgba(18,21,38,.18)}
  #auth-modal .auth-form{border-radius:16px;box-shadow:0 24px 64px rgba(18,21,38,.18)}
}
@media(max-width:1023px){
  .top{grid-template-columns:1fr auto}
  .top-mid{grid-column:1/-1;justify-self:stretch}
  .top-sys{grid-column:auto;justify-self:stretch}
  .top-sys-text{white-space:normal}
  .auth{
    grid-template-columns:minmax(0,1fr) minmax(260px,.9fr);
    grid-template-areas:
      "promo promo"
      "head form"
      "points form"
      "visual visual";
    min-height:0;gap:16px
  }
  .auth-form{position:relative;z-index:900}
  .grid2,.workspace{grid-template-columns:1fr;grid-template-rows:auto;grid-template-areas:none}
  .create-basics{grid-template-columns:1fr 1fr}
  .create-topic{grid-column:1/-1;max-width:none}
  .create-pages{grid-column:1/-1;max-width:5.75rem}
  .create-compose{grid-template-columns:1fr}
  .create-compose>.struct-field:first-child,
  .create-compose>.density-field{justify-self:stretch}
  .create-form .pages-struct{grid-template-columns:1fr}
  .create-form .notes-grid{grid-template-columns:1fr}
  .ws-tabs{display:flex}
  .workspace #thumbs,.workspace .stage-main,.workspace .stage-notes,.workspace .spec-pane,.workspace .export-bar{grid-area:auto}
  .workspace[data-panel="thumbs"] #thumbs{display:flex}
  .workspace[data-panel="thumbs"] .stage-main,
  .workspace[data-panel="thumbs"] .stage-notes,
  .workspace[data-panel="thumbs"] .spec-pane,
  .workspace[data-panel="thumbs"] .export-bar{display:none}
  .workspace[data-panel="stage"] #thumbs,
  .workspace[data-panel="stage"] .spec-pane,
  .workspace[data-panel="stage"] .export-bar{display:none}
  #work[data-step="4"] .workspace[data-panel="stage"] .export-bar{display:none!important}
  .workspace[data-panel="spec"] #thumbs,
  .workspace[data-panel="spec"] .stage-main,
  .workspace[data-panel="spec"] .stage-notes{display:none}
  .field-split{grid-template-columns:1fr}
  .tpls{grid-template-columns:repeat(4,minmax(0,1fr))}
  .hero img,.hero-reel{aspect-ratio:16/9}
  .steps{--arrow:16px;--step-h:52px}
  .step-fill{gap:8px;font-size:15px;padding:0 18px 0 12px}
  .step-n{width:26px;height:26px;font-size:14px}
  .deck-list{grid-template-columns:repeat(3,minmax(0,1fr))}
  .home-flow button{padding:10px 12px}
  .sample-ws{grid-template-columns:128px minmax(0,1fr)}
}
@media(max-width:640px){
  .auth{
    grid-template-columns:1fr;
    grid-template-areas:
      "promo"
      "head"
      "form"
      "points"
      "visual"
  }
  .auth-head h1{font-size:clamp(28px,8vw,36px);letter-spacing:.02em}
  .lede{font-size:15px;max-width:none}
  .highlights{margin-top:4px}
  .brand-lockup{max-width:48vw}
  .brand-text{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .brand-text{font-size:16px}
  .brand-tag{font-size:11px;letter-spacing:.14em}
  .pill{display:inline-flex;font-size:10px;padding:2px 6px;max-width:46vw}
  .bal{max-width:38vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .top-actions{gap:6px}
  .top-actions button span,.top-actions a.ghost span{display:none}
  .top-actions button.has-ico,.top-actions a.ghost.has-ico{width:var(--touch);padding:0;gap:0}
  .create-basics{grid-template-columns:1fr}
  .create-topic{max-width:none}
  .create-pages{max-width:none}
  .create-compose{grid-template-columns:1fr}
  .create-compose>.struct-field:first-child,
  .create-compose>.density-field{justify-self:stretch}
  .create-form{padding:12px}
  .create-form .pages-struct{grid-template-columns:1fr}
  .create-form input:not([type=checkbox]):not([type=radio]),
  .create-form textarea{min-height:44px}
  .create-form .struct-chip,.create-form .struct-opt{min-height:44px}
  .create-form .notes-box textarea,.notes-box textarea{padding-top:12px;min-height:132px}
  .notes-help-actions{position:static;max-width:none;margin:0 0 2px}
  .notes-help-hint{min-height:44px;line-height:1.2;padding:10px 12px}
  .notes-help-long{display:none}
  .notes-help-short{display:inline}
  .notes-help-pop{position:fixed;left:12px;right:12px;top:auto;bottom:max(12px,env(safe-area-inset-bottom));width:auto;max-height:min(62dvh,420px)}
  .notes-demo-grid{grid-template-columns:1fr;grid-auto-flow:row;grid-template-rows:none}
  .tpl-cats{
    flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;
    margin:0 -4px 10px;padding:0 4px 6px;scrollbar-width:thin
  }
  .tpl-cat{flex:none}
  .tpl-current .tpl{max-width:none}
  .tpls{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ref-lib{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ac-sheet{width:100%;height:100dvh;max-height:100dvh;border-radius:0}
  .ac-tabs{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:4px}
  .ac-tabs button{flex:none;min-height:44px}
  .ac-tpl-toolbar{flex-direction:column;align-items:stretch}
  .flow-stage{padding:14px 12px 16px}
  .deck-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .steps{--arrow:10px;--step-h:48px}
  .step-t{display:none}
  .step-fill{padding:0 10px;font-size:14px}
  .steps li:first-child .step-fill,
  .steps li:not(:first-child) .step-fill{padding-left:10px;padding-right:10px}
  .deck-open{grid-template-columns:1fr}
  .deck-cover{width:100%}
  .home-flow{grid-template-columns:repeat(3,minmax(0,1fr))}
  .home-flow button{width:auto;min-height:48px;padding:8px 6px;align-items:center}
  .home-flow .flow-tab-k{font-size:13px;white-space:nowrap}
  .flow-tab-d{display:none}
  .flow-tab-new{top:6px;right:6px}
  .sample-tabs{display:flex;flex-wrap:wrap}
  .sample-ws{grid-template-columns:1fr;min-height:0}
  .sample-thumbs-col{min-height:0}
  .sample-thumbs{position:relative;inset:auto;max-height:none;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;padding:8px}
  .sample-thumbs .thumb{flex:0 0 112px}
  .sample-ws[data-panel="stage"] .sample-thumbs-col{display:none}
  .sample-ws[data-panel="thumbs"] .sample-stage{display:none}
  .sample-ws[data-panel="thumbs"] .sample-thumbs{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));flex-wrap:wrap;overflow:visible
  }
  .sample-ws[data-panel="thumbs"] .sample-thumbs .thumb{flex:none}
  .import-split{flex-direction:column;align-items:stretch}
  .import-or{text-align:center}
  .gen-mode{flex-direction:column;align-items:stretch;gap:8px}
  .gen-mode label{min-height:var(--touch);padding:8px 4px}
  input,textarea,select,button{font-size:16px}
  label{font-size:14px}
  #toast{left:16px;right:16px;bottom:max(16px,env(safe-area-inset-bottom))}
  .toast{max-width:none}
  .play-chrome{padding:10px 16px max(10px,env(safe-area-inset-bottom))}
  .tpl-zoom{padding:12px;align-items:flex-end}
  .tpl-zoom-card{width:100%;border-radius:16px 16px 0 0}
  .tpl-zoom-card img{max-height:42dvh}
  .q-zoom{padding:1cm;align-items:stretch}
  .q-zoom-card{width:100%;height:100%;border-radius:16px}
  .q-zoom-card .q-zoom-stage img{max-height:none}
  #modal .pay-lead,#modal .pack-cap{white-space:normal}
  #modal .pay-sheet-acts{flex-wrap:wrap}
  .pitch li{grid-template-columns:40px 1fr;padding:12px}
}
@media(max-width:640px) and (orientation:landscape){
  .promo-banner{display:none}
  .hero{display:none}
  .auth{min-height:0;gap:12px}
  .top{padding-top:max(8px,env(safe-area-inset-top))}
}
@media(hover:hover) and (pointer:fine){
  .gen-mode label:hover::after{opacity:1;visibility:visible}
}
@media(hover:none){
  .tpl-zoom-btn{opacity:1;transform:none}
  .gen-mode label::after{content:none}
}
@media print{
  .top-actions,.site-footer,.auth-form,.promo-banner,.demo-sec,.hot-tpls,.home-flow,
  .ws-tabs,#modal,#auth-modal,#toast,.play-overlay{display:none!important}
  body{background:#fff}
  .wrap{max-width:none;padding:0}
}
@media(prefers-reduced-motion:reduce){
  *{transition:none!important}
  .flow-tab-new{animation:none}
  .hot-tpls-track{animation:none}
  .hot-tpls-mask{overflow-x:auto;-webkit-mask-image:none;mask-image:none}
}


/* icon buttons */
.i{width:16px;height:16px;display:block;flex-shrink:0}
button .i,a.ghost .i,a.primary .i{margin:0}
button.has-ico,a.has-ico{
  display:inline-flex;align-items:center;justify-content:center;gap:8px
}
button.has-ico .i,a.has-ico .i{opacity:.92}
button.primary.has-ico .i{opacity:1}
button.link.has-ico{gap:6px}
button.icon-only{padding:0;width:var(--touch);height:var(--touch);min-height:var(--touch);display:inline-flex;align-items:center;justify-content:center}
.stage-notes{
  grid-area:notes;
  margin:0;border:1px solid var(--line);border-radius:12px;background:#fff;
  min-height:0;height:100%;max-height:none;display:flex;flex-direction:column;overflow:hidden
}
.stage-notes-label{
  margin:0;padding:4px 10px 0;font-size:11px;font-weight:750;color:var(--mut);letter-spacing:.04em
}
.stage-notes-body{
  margin:0;padding:2px 10px 6px;font-size:12px;line-height:1.45;color:var(--txt);
  overflow:auto;white-space:pre-wrap;word-break:break-word;flex:1;min-height:0
}
.stage-notes-body:empty::before{content:"本页暂无备注";color:var(--mut)}
/* fullscreen play */
.play-overlay{
  position:fixed;inset:0;z-index:80;background:#000;display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  padding:0;width:100vw;height:100vh;height:100dvh
}
.play-overlay:fullscreen,
.play-overlay:-webkit-full-screen{
  width:100%;height:100%;background:#000
}
.play-overlay.hide{display:none!important}
.play-stage{
  flex:1;min-height:0;width:100%;display:flex;align-items:center;justify-content:center;
  cursor:pointer;padding:0
}
.play-stage img{
  max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;
  border-radius:0;box-shadow:none;background:#000
}
.play-empty{
  color:#9aa3b5;font-size:16px;font-weight:650;text-align:center;padding:24px;max-width:28rem
}
.play-chrome{
  flex-shrink:0;width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:10px 16px;background:rgba(0,0,0,.72);border-top:1px solid rgba(255,255,255,.08);color:#e8ecf5
}
.play-chrome .hint{color:#9aa3b5;margin:0}
.play-chrome button{background:transparent;border-color:rgba(255,255,255,.2);color:#e8ecf5}
.play-chrome button:hover{border-color:#fff;color:#fff}
body.studio-playing{overflow:hidden}
