:root{
  --primary:#1687ff;
  --primary-dark:#075ab5;
  --secondary:#20c7d8;
  --background:#f6f9fc;
  --surface:#ffffff;
  --text:#10233a;
  --muted:#64748b;
  --border:#dbe7f1;
  --success:#16a34a;
  --warning:#f59e0b;
  --danger:#dc2626;
  --shadow:0 18px 44px rgba(15,52,86,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  background:
    radial-gradient(circle at 24% 18%,rgba(32,199,216,.18),transparent 32%),
    radial-gradient(circle at 78% 12%,rgba(30,144,255,.16),transparent 34%),
    radial-gradient(circle,rgba(25,112,190,.24) 0 1.5px,transparent 2px),
    radial-gradient(circle,rgba(32,199,216,.18) 0 1.1px,transparent 1.8px),
    linear-gradient(115deg,#e9fcff 0%,#f6fbff 44%,#e5f2ff 100%);
  background-size:auto,auto,34px 34px,55px 55px,auto;
  background-position:center,center,0 0,18px 22px,center;
  overflow-x:hidden;
}
#networkBg{position:fixed;inset:0;width:100vw;height:100vh;z-index:0;pointer-events:none}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
a{text-decoration:none;color:inherit}
h1,h2,p{margin:0}
img,video{max-width:100%}
.page-shell{min-height:100vh;position:relative;z-index:1}
.site-header{
  position:sticky;
  top:12px;
  z-index:20;
  width:min(1500px,calc(100vw - 48px));
  min-height:78px;
  margin:12px auto 0;
  padding:12px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,253,255,.94)),
    radial-gradient(circle at 18% 0%,rgba(32,199,216,.22),transparent 34%),
    radial-gradient(circle at 84% 12%,rgba(22,135,255,.18),transparent 30%);
  border:1px solid rgba(160,210,244,.96);
  border-radius:18px;
  box-shadow:0 18px 46px rgba(15,52,86,.13),0 0 0 4px rgba(255,255,255,.42),0 0 34px rgba(32,199,216,.12);
  backdrop-filter:blur(20px);
  overflow:visible;
}
.site-header::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:18px;
  pointer-events:none;
  background:
    linear-gradient(90deg,transparent 0 14%,rgba(32,199,216,.22) 14% 14.3%,transparent 14.3% 46%,rgba(22,135,255,.18) 46% 46.2%,transparent 46.2% 100%),
    radial-gradient(circle,rgba(22,135,255,.22) 0 1px,transparent 1.5px);
  background-size:100% 100%,32px 32px;
  opacity:.44;
}
.site-header::after{
  content:"";
  position:absolute;
  left:18px;
  right:18px;
  bottom:-1px;
  height:3px;
  border-radius:999px;
  background:linear-gradient(90deg,transparent,var(--secondary),var(--primary),transparent);
  opacity:.78;
}
.brand{position:relative;z-index:1;display:flex;align-items:center;gap:10px;min-width:190px;max-width:260px;isolation:isolate}
.brand img{width:48px;height:48px;border-radius:13px;object-fit:contain;background:transparent;box-shadow:0 12px 25px rgba(22,135,255,.23),0 0 0 4px rgba(237,248,255,.92);transition:transform .24s ease,filter .24s ease,box-shadow .24s ease}
.brand:hover img{transform:translateY(-2px) rotate(-2deg) scale(1.035);filter:saturate(1.08);box-shadow:0 16px 32px rgba(22,135,255,.3),0 0 0 4px rgba(225,248,255,.98),0 0 22px rgba(32,199,216,.2)}
.brand-name{position:relative;display:inline-flex;align-items:baseline;padding:0 0 5px;font-size:1.18rem;font-weight:950;letter-spacing:-.055em;line-height:1;white-space:nowrap}
.brand-name::after{content:"";position:absolute;left:31%;right:0;bottom:0;height:2px;border-radius:99px;background:linear-gradient(90deg,rgba(32,199,216,0),#20c7d8 20%,#1687ff 58%,#7c3aed 88%,rgba(124,58,237,0));transform-origin:left center;transition:transform .25s ease,opacity .25s ease;opacity:.72}
.brand:hover .brand-name::after{transform:scaleX(1.12);opacity:1}
.brand-gen{color:#102b46;letter-spacing:-.045em;text-shadow:0 1px 0 rgba(255,255,255,.9)}
.brand-aidol{background:linear-gradient(105deg,#20c7d8 0%,#1687ff 38%,#5b63ee 68%,#7c3aed 100%);background-size:220% auto;-webkit-background-clip:text;background-clip:text;color:transparent;letter-spacing:-.06em;filter:drop-shadow(0 5px 10px rgba(22,135,255,.12));animation:brandSpectrum 5.5s ease-in-out infinite}
.brand-dot{display:none}
@keyframes brandSpectrum{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
.mobile-nav-toggle{display:none;min-height:40px;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--primary-dark);font-weight:800;padding:0 12px}
.nav-actions{position:relative;z-index:1;display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:nowrap;font-weight:850;color:#25445f;min-width:0}
.nav-actions>a:not(.create-pill):not(.credit-pill){min-height:40px;display:inline-flex;align-items:center;border:1px solid transparent;border-radius:10px;padding:0 11px;font-size:.82rem;white-space:nowrap}
.nav-actions>a:hover,.nav-actions>a.active{border-color:#cae4f8;background:#edf7ff;color:var(--primary-dark);box-shadow:0 8px 18px rgba(22,135,255,.08)}
.nav-actions>a.nav-product-link{border-color:#d8c9ff;background:#f7f2ff;color:#5931b5}
.nav-actions>a.nav-product-link:hover{border-color:#b99af6;background:#efe7ff;color:#45228f}
.header-navigation{position:relative;z-index:1;display:grid;flex:1;gap:7px;min-width:0}
.ecosystem-nav{display:flex;align-items:center;justify-content:flex-end;gap:5px;min-width:0}
.ecosystem-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:0 10px;border:1px solid transparent;border-radius:8px;color:#557086;font-size:.68rem;font-weight:850;white-space:nowrap;transition:background .18s ease,border-color .18s ease,color .18s ease}
.ecosystem-nav a:hover{border-color:#c9e4f5;background:#f2f9ff;color:#0e68a9}
.ecosystem-nav a[aria-current="page"]{border-color:#8ed8f3;background:linear-gradient(135deg,#e6fbff,#edf5ff);color:#0875bd;box-shadow:inset 0 -2px #20b9d5}
.ecosystem-nav .ecosystem-guide-link{margin-left:6px;border-color:#d9e1eb;background:#fff;color:#304f68}
.nav-actions{padding-top:7px;border-top:1px solid rgba(174,211,236,.68)}
.studio-nav-label{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:6px;background:#102f4a;color:#fff;font-size:.58rem;font-weight:950;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.task-menu{position:relative;z-index:30}
.task-menu-btn{min-height:40px;display:inline-flex;align-items:center;gap:7px;border:1px solid transparent;border-radius:10px;background:transparent;color:#25445f;padding:0 11px;font-size:.82rem;font-weight:900;white-space:nowrap}
.task-menu-btn::after{content:"";width:6px;height:6px;margin-left:1px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;opacity:.58;transform:rotate(45deg) translateY(-2px);transition:transform .18s ease}
.task-menu-btn[aria-expanded="true"]::after{transform:rotate(225deg) translate(-1px,-1px)}
.task-menu-btn small{color:var(--muted);font-size:.62rem;font-weight:850}
.task-menu-btn:hover,.task-menu-btn.active,.task-menu-btn[aria-expanded="true"]{border-color:#cae4f8;background:#edf7ff;color:var(--primary-dark);box-shadow:0 8px 18px rgba(22,135,255,.08)}
.task-menu-dropdown{position:absolute;top:calc(100% + 10px);left:0;width:min(560px,calc(100vw - 32px));min-width:0;display:grid;gap:12px;overflow:hidden;border:1px solid #b9dff4;border-radius:19px;background:radial-gradient(circle at 98% 2%,rgba(119,91,231,.13),transparent 27%),radial-gradient(circle at 0% 0%,rgba(32,199,216,.13),transparent 30%),linear-gradient(145deg,rgba(255,255,255,.985),rgba(246,251,255,.98));padding:13px;box-shadow:0 24px 54px rgba(14,55,94,.2),0 0 0 5px rgba(255,255,255,.48),inset 0 1px rgba(255,255,255,.96);transform-origin:top left;animation:taskMenuReveal .18s cubic-bezier(.2,.9,.3,1) both}
.task-menu-dropdown[hidden]{display:none!important}
@keyframes taskMenuReveal{from{opacity:0;transform:translateY(-7px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
.task-menu-popover-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:1px 3px 0}.task-menu-popover-head>div{display:grid;gap:4px;min-width:0}.task-menu-popover-eyebrow{display:flex;align-items:center;gap:6px;color:#5b82a0;font-size:.55rem;font-weight:950;letter-spacing:.12em;line-height:1.2}.task-menu-popover-eyebrow i{display:block;width:7px;height:7px;border-radius:50%;background:linear-gradient(145deg,#28c5df,#238afe);box-shadow:0 0 0 4px rgba(35,151,223,.11)}.task-menu-popover-head strong{color:#1d465f;font-size:.9rem;font-weight:950;letter-spacing:-.028em;line-height:1.25}.task-menu-popover-count{flex:0 0 auto;border:1px solid #cce7f4;border-radius:999px;background:rgba(255,255,255,.77);color:#49809e;padding:5px 8px;font-size:.55rem;font-weight:900;box-shadow:0 3px 8px rgba(30,112,165,.05)}
.task-menu-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.task-menu-dropdown .task-menu-card{--task-ink:#206fba;--task-soft:#ebf7ff;--task-line:#c9e7f6;--task-glow:rgba(44,167,225,.13);position:relative;isolation:isolate;display:grid;grid-template-columns:45px minmax(0,1fr) 16px;align-items:center;gap:10px;min-height:112px;border:1px solid var(--task-line);border-radius:14px;background:linear-gradient(145deg,#fff 0%,var(--task-soft) 170%);color:#24445e;overflow:hidden;padding:12px;text-align:left;font-weight:850;box-shadow:0 5px 13px rgba(24,92,134,.045);transition:transform .19s ease,border-color .19s ease,box-shadow .19s ease,filter .19s ease}.task-menu-dropdown .task-menu-card::before{content:"";position:absolute;z-index:-1;right:-35px;bottom:-40px;width:126px;height:126px;border-radius:50%;background:var(--task-glow);box-shadow:0 0 0 24px color-mix(in srgb,var(--task-glow),transparent 58%)}.task-menu-dropdown .task-menu-card::after{content:"";position:absolute;z-index:-1;top:-40px;right:34px;width:78px;height:78px;border:1px solid color-mix(in srgb,var(--task-ink),transparent 82%);border-radius:50%}.task-menu-dropdown .task-menu-card:hover,.task-menu-dropdown .task-menu-card:focus-visible{border-color:color-mix(in srgb,var(--task-ink),white 35%);background:linear-gradient(145deg,#fff 0%,var(--task-soft) 138%);color:#24445e;outline:0;box-shadow:0 13px 25px rgba(20,91,141,.13);transform:translateY(-3px)}.task-menu-card-art{display:grid;position:relative;z-index:1;width:44px;height:44px;place-items:center;border:1px solid color-mix(in srgb,var(--task-ink),white 66%);border-radius:13px;background:color-mix(in srgb,var(--task-soft),white 34%);color:var(--task-ink);box-shadow:inset 0 1px rgba(255,255,255,.92),0 6px 12px rgba(30,112,165,.08)}.task-menu-card-art svg{width:29px;height:29px}.task-menu-card-copy{display:grid;gap:3px;min-width:0;position:relative;z-index:1}.task-menu-card-kicker{overflow:hidden;color:var(--task-ink);font-size:.48rem;font-weight:950;letter-spacing:.09em;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.task-menu-card-copy strong{color:#24455f;font-size:.73rem;font-weight:950;letter-spacing:-.02em;line-height:1.24}.task-menu-card-copy small{display:-webkit-box;overflow:hidden;color:#748b9c;font-size:.57rem;font-weight:720;line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:2}.task-menu-card-arrow{display:grid;position:relative;z-index:1;width:16px;height:16px;place-items:center;border-radius:6px;color:var(--task-ink);font-size:.85rem;font-weight:950;line-height:1;transition:transform .18s ease}.task-menu-card:hover .task-menu-card-arrow,.task-menu-card:focus-visible .task-menu-card-arrow{transform:translateX(2px)}
.task-menu-dropdown .task-menu-card-featured{--task-ink:#fff;--task-soft:rgba(255,255,255,.18);--task-line:transparent;--task-glow:rgba(255,255,255,.15);grid-column:1/-1;grid-template-columns:59px minmax(0,1fr) 20px;min-height:124px;border:0;background:radial-gradient(circle at 92% 9%,rgba(255,255,255,.24),transparent 27%),linear-gradient(125deg,#1ac9d9 0%,#1687ff 54%,#675de3 100%);color:#fff;padding:15px;box-shadow:0 13px 27px rgba(22,130,222,.27)}.task-menu-dropdown .task-menu-card-featured::before{right:-38px;bottom:-51px;width:173px;height:173px;background:rgba(255,255,255,.13);box-shadow:0 0 0 28px rgba(255,255,255,.045)}.task-menu-dropdown .task-menu-card-featured::after{top:-58px;right:82px;width:154px;height:154px;border-color:rgba(255,255,255,.19)}.task-menu-dropdown .task-menu-card-featured:hover,.task-menu-dropdown .task-menu-card-featured:focus-visible{border:0;background:radial-gradient(circle at 92% 9%,rgba(255,255,255,.29),transparent 27%),linear-gradient(125deg,#19bfd5 0%,#117cf3 54%,#6253df 100%);color:#fff;box-shadow:0 18px 32px rgba(22,123,218,.34);transform:translateY(-3px)}.task-menu-card-featured .task-menu-card-art{width:57px;height:57px;border-color:rgba(255,255,255,.3);background:rgba(255,255,255,.18);color:#fff;box-shadow:inset 0 1px rgba(255,255,255,.37),0 8px 17px rgba(5,82,175,.17)}.task-menu-card-featured .task-menu-card-art svg{width:37px;height:37px}.task-menu-card-featured .task-menu-card-kicker{color:rgba(255,255,255,.76)}.task-menu-card-featured .task-menu-card-copy strong{color:#fff;font-size:.9rem}.task-menu-card-featured .task-menu-card-copy small{color:rgba(255,255,255,.83);font-size:.62rem}.task-menu-card-featured .task-menu-card-arrow{color:#fff;font-size:1.05rem}
.task-menu-card-studio{--task-ink:#5c58ce!important;--task-soft:#f2f1ff!important;--task-line:#dcd9ff!important;--task-glow:rgba(109,95,223,.14)!important}.task-menu-card-voice{--task-ink:#8653cb!important;--task-soft:#f8f0ff!important;--task-line:#ead8fb!important;--task-glow:rgba(154,95,217,.14)!important}.task-menu-card-lipsync{--task-ink:#14866b!important;--task-soft:#effcf7!important;--task-line:#cdeee1!important;--task-glow:rgba(33,179,132,.14)!important}.task-menu-card-video{--task-ink:#237ecb!important;--task-soft:#eef7ff!important;--task-line:#d1e8f9!important;--task-glow:rgba(40,151,224,.14)!important}.task-menu-card-image{--task-ink:#d36a39!important;--task-soft:#fff5ef!important;--task-line:#ffdfcf!important;--task-glow:rgba(234,116,60,.14)!important}
@media(max-width:760px){.task-menu{width:100%}.task-menu-btn{width:100%;justify-content:flex-start}.task-menu-dropdown{width:100%;max-height:calc(100vh - 118px);overflow-y:auto}.task-menu-card-grid{gap:8px}.task-menu-popover-count{display:none}}
@media(max-width:620px){.task-menu-dropdown{gap:10px;padding:11px;border-radius:16px}.task-menu-card-grid{grid-template-columns:1fr}.task-menu-dropdown .task-menu-card-featured{grid-column:auto}.task-menu-dropdown .task-menu-card{min-height:94px}.task-menu-dropdown .task-menu-card-featured{min-height:111px}.task-menu-card-copy small{-webkit-line-clamp:1}.task-menu-card-featured .task-menu-card-copy small{-webkit-line-clamp:2}.task-menu-popover-head strong{font-size:.84rem}}
@media(prefers-reduced-motion:reduce){.task-menu-dropdown{animation:none}.task-menu-dropdown .task-menu-card,.task-menu-card-arrow,.task-menu-btn::after{transition:none}}
.credit-pill,.create-pill,.logout-btn,.account-menu-btn{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  border-radius:10px;
  padding:0 13px;
  border:1px solid var(--border);
  background:#f1f8ff;
  color:var(--primary-dark);
  font-weight:900;
}
.credit-pill{max-width:170px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-color:#b8dbf6;background:#fff;font-size:.86rem;box-shadow:inset 0 0 0 1px rgba(22,135,255,.04)}
.payment-open-btn{cursor:pointer}.payment-open-btn small{font-size:.62rem;color:#0f6ec4;font-weight:950}
#coinBalance{display:inline-block;max-width:84px;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}
.coin-source{display:none!important}
.beta-badge{display:inline-flex;align-items:center;min-height:20px;margin-left:5px;padding:0 7px;border-radius:999px;background:#fff0c2;color:#8a5a00;font-size:.64rem;font-weight:950}
.create-pill,.logout-btn{border:0;background:linear-gradient(135deg,var(--secondary),var(--primary));color:#fff;box-shadow:0 12px 26px rgba(22,135,255,.24)}
.account-menu{position:relative;z-index:1}
.account-menu-btn{position:relative;min-width:176px;justify-content:space-between;text-align:left;background:linear-gradient(135deg,#f7fcff 0%,#eef5ff 52%,#f7f2ff 100%);color:var(--text);padding-left:49px;border-color:#bddcf7;box-shadow:0 7px 18px rgba(22,135,255,.1),inset 0 1px 0 rgba(255,255,255,.95);overflow:hidden}
.account-menu-btn::before{content:"AI";position:absolute;left:10px;top:50%;display:grid;place-items:center;width:29px;height:29px;border-radius:9px;background:linear-gradient(135deg,#22c7d9,#1687ff 62%,#6f58df);color:#fff;font-size:.65rem;font-weight:950;letter-spacing:.03em;transform:translateY(-50%);box-shadow:0 6px 13px rgba(22,135,255,.22)}
.account-menu-btn::after{content:"";position:absolute;right:-18px;bottom:-23px;width:70px;height:70px;border-radius:50%;background:rgba(113,88,223,.1)}
.account-menu-btn:hover,.account-menu-btn[aria-expanded="true"]{border-color:#8ec9f4;background:linear-gradient(135deg,#f1fbff,#e9f3ff 55%,#f4eeff);box-shadow:0 10px 23px rgba(22,135,255,.16),inset 0 1px 0 rgba(255,255,255,.98)}
.account-menu-btn span,.account-menu-btn small{position:relative;z-index:1}.account-menu-btn span{font-weight:900}
.account-email{display:block;max-width:92px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#57718a;font-size:.62rem}.account-email::before{content:"•";margin-right:3px;color:#18b77c;font-size:.85rem;line-height:0}
.account-dropdown{position:absolute;top:calc(100% + 10px);right:0;width:min(500px,calc(100vw - 32px));z-index:30}
.auth-card,.account-logged{border:1px solid #c5e1f7;border-radius:15px;background:linear-gradient(145deg,#fff 0%,#f8fcff 67%,#f6f3ff 100%);box-shadow:0 20px 48px rgba(15,52,86,.16),inset 0 1px 0 rgba(255,255,255,.98);padding:20px}
.login-copy{display:flex;gap:12px;align-items:flex-start;margin-bottom:14px}
.login-copy h2{font-size:1rem;font-weight:900}.login-copy p{margin-top:5px;color:var(--muted);font-size:.82rem;line-height:1.45}
.avatar-mini{width:42px;height:42px;display:grid;place-items:center;border-radius:10px;background:var(--primary);color:#fff;font-weight:900}
.auth-links{display:flex;justify-content:space-between;gap:10px;margin-top:13px;padding:10px 12px;border-radius:10px;background:rgba(234,246,255,.72);color:var(--muted);font-size:.82rem;font-weight:800}
.auth-links a,.auth-links button{color:var(--primary-dark);font:inherit;font-weight:900}
.auth-links button{border:0;background:transparent;padding:0;cursor:pointer;text-align:right}
.auth-links button:hover,.auth-links button:focus-visible{color:#075a9e;text-decoration:underline;outline:0}
.register-form{display:grid;grid-template-columns:1fr 1fr;gap:13px;align-items:end}
.register-form label{display:grid;min-width:0;gap:6px;color:#34516a;font-size:.76rem;font-weight:850;line-height:1.25}
.register-form .primary-btn{grid-column:1/-1;min-height:46px;width:100%;justify-content:center}
.optional-label{color:#7892a2;font-size:.68rem;font-weight:750}
.field-hint{display:block;color:#7892a2;font-size:.66rem;font-weight:700;line-height:1.35}
.account-logged{display:grid;gap:8px}.account-logged strong{overflow-wrap:anywhere}.account-logged span{color:var(--muted);font-size:.82rem}.account-logged .logout-btn{width:max-content}
.account-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:4px 0}.account-stats div{border:1px solid var(--border);border-radius:10px;background:#f7fbff;padding:10px}.account-stats small{display:block;color:var(--muted);font-size:.72rem;font-weight:850}.account-stats strong{display:block;margin-top:4px;color:var(--primary-dark);font-size:1.05rem}.account-link{min-height:36px;display:grid;place-items:center;border-radius:8px;background:#edf7ff;color:var(--primary-dark);font-weight:900;font-size:.82rem}
.account-payment-link{width:100%;border:1px solid #9ed2f6;background:linear-gradient(135deg,#eaf8ff,#f4f1ff);cursor:pointer}
.workspace{width:min(1500px,calc(100vw - 48px));margin:24px auto 64px}
.eyebrow{display:inline-flex;align-items:center;width:max-content;min-height:30px;border:1px solid #bfe2fb;border-radius:999px;background:#edf8ff;color:var(--primary-dark);padding:0 12px;font-size:.75rem;font-weight:900}
.public-hero{
  position:relative;
  min-height:min(680px,calc(100vh - 116px));
  display:grid;
  grid-template-columns:minmax(250px,390px) minmax(620px,820px);
  gap:34px;
  align-items:start;
  justify-content:center;
  padding:84px 0 32px;
  overflow:hidden;
}
.public-hero::before{
  content:"";
  position:absolute;
  inset:8px -20px 18px 28%;
  z-index:-1;
  border-radius:24px;
  background:
    radial-gradient(circle at 26% 18%,rgba(31,199,214,.2),transparent 28%),
    radial-gradient(circle at 72% 68%,rgba(22,135,255,.16),transparent 30%),
    linear-gradient(135deg,rgba(255,255,255,.42),rgba(239,248,255,.76));
  border:1px solid rgba(191,226,251,.62);
}
.public-hero-copy{max-width:390px;padding-top:18px}
.public-hero-copy h1,.dashboard-hero h1,.section-heading h1{margin-top:14px;font-size:clamp(2.1rem,4vw,4.2rem);line-height:1.02;font-weight:900;letter-spacing:0}
.public-hero-copy h1{font-size:clamp(1.9rem,2.75vw,3.05rem);line-height:1.07}
.public-hero-copy p,.dashboard-hero p,.section-heading p{max-width:760px;margin-top:14px;color:#34516a;line-height:1.6}
.public-hero-copy p{max-width:360px;font-size:.88rem;line-height:1.5}
.hero-actions,.dashboard-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
.primary-link,.secondary-link,.primary-btn,.secondary-submit,.refresh-btn{
  min-height:44px;
  border-radius:8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 16px;
  font-weight:900;
}
button.primary-link,button.secondary-link{border:0}
.primary-link,.primary-btn{border:0;background:var(--primary);color:#fff}
.secondary-link,.secondary-submit,.refresh-btn{border:1px solid var(--border);background:#fff;color:var(--primary-dark)}
.hero-assistant{min-width:0;scroll-margin-top:96px}
.public-hero .assistant-model-shell{
  position:relative;
  grid-template-columns:minmax(210px,260px) minmax(0,1fr);
  gap:12px;
  max-width:820px;
  margin-inline:auto;
  border:1px solid rgba(166,213,246,.92);
  border-radius:16px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.96),rgba(243,250,255,.9)),
    radial-gradient(circle at 18% 18%,rgba(31,199,214,.14),transparent 28%);
  box-shadow:0 22px 70px rgba(27,111,178,.16);
  padding:12px;
  overflow:hidden;
}
.public-hero .assistant-model-shell::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg,transparent 0 11%,rgba(22,135,255,.08) 11% 11.2%,transparent 11.2% 100%),
    linear-gradient(0deg,transparent 0 16%,rgba(31,199,214,.07) 16% 16.2%,transparent 16.2% 100%);
  background-size:64px 64px;
  opacity:.7;
}
.public-hero .assistant-model-stage,.public-hero .assistant-chat-panel{
  position:relative;
  z-index:1;
  height:clamp(360px,44vh,460px);
  border-color:#cfe5f5;
  box-shadow:0 12px 34px rgba(27,111,178,.08);
}
.public-hero .assistant-chat-panel{background:rgba(255,255,255,.94)}
.public-hero .assistant-model-stage{background:linear-gradient(180deg,#e9f7ff,#f7fcff)}
.public-hero .assistant-model-stage video{filter:drop-shadow(0 18px 30px rgba(27,111,178,.12))}
.gpu-core-card{
  overflow:hidden;
  margin:10px 0 24px;
  border:1px solid var(--border);
  border-radius:12px;
  background:rgba(255,255,255,.9);
  box-shadow:var(--shadow);
}
.gpu-head{height:74px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 18px;border-bottom:1px solid var(--border)}
.gpu-head h2{font-size:1.18rem;font-weight:900}.gpu-head p{margin-top:5px;color:var(--muted);font-size:.78rem}
.load-card{width:170px;border:1px solid #bfe2fb;border-radius:10px;background:#f8fcff;padding:10px}.load-card strong{display:flex;justify-content:space-between;font-size:.78rem}.load-card i,.gpu-node i{display:block;height:5px;border-radius:99px;background:linear-gradient(90deg,#1fc7d6,#228cff,#ffbd24);margin-top:8px}
.gpu-map{position:relative;height:330px;background:rgba(255,255,255,.42)}
.gpu-lines{position:absolute;inset:0;width:100%;height:100%}.gpu-lines path{fill:none;stroke:#72bdff;stroke-width:2.2;filter:drop-shadow(0 0 7px rgba(32,199,216,.38))}.gpu-lines .line{stroke-dasharray:16 28 72 120;stroke-linecap:round;animation:flowLine 1.25s linear infinite}.line-b,.line-d{animation-delay:.18s}.line-e{animation-delay:.34s}.line-f{animation-delay:.48s}.line-g{animation-delay:.62s}
.core-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-35%);width:180px;height:132px;border:1px solid #9be9f0;border-radius:22px;background:radial-gradient(circle at 50% 45%,rgba(255,255,255,.94),rgba(141,241,249,.5) 42%,rgba(33,143,255,.16));box-shadow:0 0 80px rgba(36,201,215,.32), inset 0 0 28px rgba(255,255,255,.8);display:grid;place-items:center;overflow:hidden}
.core-ring{position:absolute;inset:10px;border:1px solid rgba(32,199,216,.58);border-radius:20px;animation:corePulse 1.7s ease-in-out infinite}.ring-two{inset:25px;border-color:rgba(30,144,255,.48);animation-delay:.55s}.core-scan{position:absolute;left:-30%;top:0;width:42%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.62),transparent);transform:skewX(-15deg);animation:coreScan 1.55s linear infinite}
.core-chip{position:relative;width:124px;height:82px;border:8px solid #dff4ff;border-radius:18px;background:#fff;display:grid;place-items:center;align-content:center;box-shadow:0 12px 35px rgba(30,144,255,.15),0 0 24px rgba(32,199,216,.28);animation:coreFloat 2.4s ease-in-out infinite}.core-chip strong{color:var(--primary-dark);font-size:1.14rem}.core-chip small{color:var(--muted);font-size:.58rem;font-weight:900;letter-spacing:.12em}
.gpu-counts{position:absolute;top:15px;left:50%;transform:translateX(-50%);display:flex;gap:8px}.gpu-counts div{width:56px;height:48px;border:1px solid #bee2fb;border-radius:9px;background:#fff;display:grid;place-items:center;align-content:center;box-shadow:0 10px 28px rgba(27,111,178,.08)}.gpu-counts strong{color:var(--primary);font-size:1rem}.gpu-counts span{font-size:.55rem;font-weight:900;color:var(--muted)}
.gpu-node{position:absolute;width:164px;min-height:70px;border:1px solid #c5e4fa;border-radius:10px;background:#fff;padding:12px;box-shadow:0 14px 34px rgba(27,111,178,.08);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;cursor:pointer}.gpu-node:hover,.gpu-node:focus-visible{transform:translateY(-3px);border-color:#21bff1;box-shadow:0 18px 42px rgba(30,144,255,.18),0 0 0 4px rgba(32,199,216,.1);outline:0}.gpu-node strong{display:block;font-size:.82rem}.gpu-node span{display:block;margin-top:7px;color:var(--muted);font-size:.7rem;line-height:1.3}.gpu-node i{width:86%}
.node-left-top{left:18px;top:24px}.node-left-bottom{left:18px;bottom:24px}.node-clone{left:226px;bottom:24px}.node-right-top{right:18px;top:24px}.node-right-bottom{right:18px;bottom:24px}.node-bottom{left:50%;bottom:14px;transform:translateX(-50%)}.node-mid-left{left:226px;top:116px}.node-mid-right{right:226px;top:116px}
.aidol-journey{
  position:relative;
  container-type:inline-size;
  overflow:hidden;
  max-width:1450px;
  margin:0 auto 24px;
  padding:26px;
  border:1px solid var(--border);
  border-radius:12px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.96),rgba(247,252,255,.94)),
    radial-gradient(circle at 15% 30%,rgba(32,199,216,.12),transparent 28%),
    radial-gradient(circle at 86% 78%,rgba(236,72,153,.08),transparent 26%);
  box-shadow:var(--shadow);
}
.aidol-journey::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg,transparent 0 7%,rgba(22,135,255,.12) 7% 7.15%,transparent 7.15% 100%),
    radial-gradient(circle,rgba(22,135,255,.13) 0 1px,transparent 1.8px);
  background-size:100% 100%,34px 34px;
  opacity:.58;
}
.journey-head{position:relative;z-index:1;display:grid;justify-items:center;text-align:center;margin:0 auto 20px}
.journey-head h2{margin-top:12px;font-size:clamp(2rem,3.4vw,3.55rem);line-height:1.04;font-weight:950;letter-spacing:0;color:#10233a}
.journey-head h2 span{color:var(--primary)}
.journey-head p{max-width:780px;margin-top:12px;color:#34516a;line-height:1.58;font-weight:650}
.journey-map{
  position:relative;
  z-index:1;
  min-height:520px;
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:56px;
  align-items:center;
}
.journey-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.journey-lines path{fill:none;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 7px rgba(22,135,255,.22))}
.journey-trunk{stroke:#69c6f3;stroke-width:2.4;stroke-dasharray:20 20;animation:journeyFlow 1.45s linear infinite}
.journey-line{stroke-width:2.6;stroke-dasharray:8 18 58 90;animation:journeyFlow 1.35s linear infinite}
.journey-line.active{stroke-width:3.6;filter:drop-shadow(0 0 12px currentColor)}
.journey-line-blue,.dot-blue{stroke:#1687ff;fill:#1687ff}.journey-line-violet,.dot-violet{stroke:#7c3aed;fill:#7c3aed}.journey-line-green,.dot-green{stroke:#16a34a;fill:#16a34a}.journey-line-orange,.dot-orange{stroke:#f59e0b;fill:#f59e0b}.journey-line-rose,.dot-rose{stroke:#ec4899;fill:#ec4899}
.journey-split{fill:#fff;stroke:#20c7d8;stroke-width:3;filter:drop-shadow(0 0 10px rgba(32,199,216,.5))}
.journey-dot{filter:drop-shadow(0 0 7px currentColor)}
.journey-source-card,.journey-card{
  position:relative;
  border:1px solid #d5e6f3;
  border-radius:16px;
  background:#fff;
  box-shadow:0 14px 34px rgba(15,52,86,.075);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.aidol-journey .journey-source-card,.aidol-journey .journey-branch-row,.aidol-journey .journey-benefits{opacity:0;transform:translateY(16px)}
.aidol-journey.is-visible .journey-source-card,.aidol-journey.is-visible .journey-branch-row,.aidol-journey.is-visible .journey-benefits{opacity:1;transform:translateY(0);transition:opacity .45s ease,transform .45s ease}
.aidol-journey.is-visible .journey-branch-row:nth-child(1){transition-delay:.12s}.aidol-journey.is-visible .journey-branch-row:nth-child(2){transition-delay:.24s}.aidol-journey.is-visible .journey-branch-row:nth-child(3){transition-delay:.36s}.aidol-journey.is-visible .journey-branch-row:nth-child(4){transition-delay:.48s}.aidol-journey.is-visible .journey-benefits{transition-delay:.62s}
.journey-source-card:hover,.journey-card:hover{transform:translateY(-4px);border-color:#a9d8f8;box-shadow:0 22px 48px rgba(22,135,255,.14)}
.journey-source-card{width:260px;min-height:422px;padding:16px;display:grid;align-content:start;gap:13px}
.journey-source-card::after{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius:16px;
  pointer-events:none;
  box-shadow:0 0 34px rgba(32,199,216,.18),inset 0 0 20px rgba(32,199,216,.08);
}
.journey-source-badge,.journey-icon,.journey-live-badge{display:inline-grid;place-items:center;width:max-content;min-height:28px;border-radius:999px;padding:0 10px;font-size:.68rem;font-weight:950;letter-spacing:.04em}
.journey-source-badge{background:#e8fbff;color:#08768d;border:1px solid #b8edf5}
.journey-source-media{position:relative;overflow:hidden;border-radius:12px;border:1px solid #cce2f2;background:#eaf6ff}
.journey-source-media img{display:block;width:100%;aspect-ratio:4/5;object-fit:cover}
.journey-source-media i{position:absolute;left:-45%;top:0;width:34%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.58),transparent);transform:skewX(-14deg);animation:journeyScan 2.1s linear infinite}
.journey-source-copy h3,.journey-card h3{font-size:1.12rem;font-weight:950;letter-spacing:0}
.journey-source-copy p,.journey-card p{margin-top:7px;color:#4b647c;font-size:.82rem;line-height:1.42;font-weight:650}
.journey-source-copy a,.journey-card a{display:inline-flex;align-items:center;justify-content:center;min-height:34px;margin-top:12px;padding:0 12px;border-radius:8px;border:1px solid #bfdcf1;background:#f2f9ff;color:var(--primary-dark);font-size:.76rem;font-weight:950}
.journey-branches{position:relative;display:grid;gap:12px;min-width:0}
.journey-branch-row{position:relative;display:grid;grid-template-columns:minmax(420px,520px) minmax(0,1fr);gap:18px;align-items:center;min-height:118px}
.journey-branch-row:not(.has-next)::after{content:"";display:block}
.journey-card{min-height:118px;padding:14px 14px 14px 16px;display:grid;grid-template-columns:minmax(0,1fr) 132px;gap:14px;align-items:center}
.journey-card-copy{min-width:0}.journey-card-copy small{display:block;margin:7px 0 3px;color:#6b8195;font-size:.68rem;font-weight:950}
.journey-icon{border:1px solid #cfe3f2;background:#f7fbff;color:#24445e}
.journey-card-blue{--journey-color:#1687ff}.journey-card-violet{--journey-color:#7c3aed}.journey-card-green{--journey-color:#16a34a}.journey-card-orange{--journey-color:#f59e0b}.journey-card-rose{--journey-color:#ec4899}
.journey-card::before{content:"";position:absolute;left:-1px;top:16px;bottom:16px;width:4px;border-radius:99px;background:var(--journey-color,#1687ff);box-shadow:0 0 14px rgba(22,135,255,.22)}
.journey-card-violet::before{box-shadow:0 0 14px rgba(124,58,237,.2)}.journey-card-green::before{box-shadow:0 0 14px rgba(22,163,74,.2)}.journey-card-orange::before{box-shadow:0 0 14px rgba(245,158,11,.2)}.journey-card-rose::before{box-shadow:0 0 14px rgba(236,72,153,.2)}
.journey-card:hover .journey-icon,.journey-card:hover .journey-live-badge{background:var(--journey-color,#1687ff);border-color:var(--journey-color,#1687ff);color:#fff}
.journey-preview{position:relative;height:90px;border:1px solid #d7e7f2;border-radius:10px;background:#edf7ff;overflow:hidden}
.journey-preview img,.journey-preview video{display:block;width:100%;height:100%;object-fit:cover}
.journey-preview::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent,rgba(16,35,58,.22));pointer-events:none}
.journey-preview{cursor:pointer}.journey-preview:focus-visible{outline:3px solid rgba(22,135,255,.28);outline-offset:3px}
.journey-play{position:absolute;left:50%;top:50%;width:34px;height:34px;border-radius:50%;transform:translate(-50%,-50%);background:rgba(255,255,255,.92);box-shadow:0 8px 20px rgba(15,52,86,.22)}
.journey-play::before{content:"";position:absolute;left:13px;top:10px;border-left:11px solid var(--primary);border-top:7px solid transparent;border-bottom:7px solid transparent}
.journey-card:hover .journey-play{transform:translate(-50%,-50%) scale(1.08)}
.journey-live-card{grid-template-columns:minmax(0,1fr) 118px}
.journey-live-badge{background:#fff1f6;color:#be185d;border:1px solid #ffc4dc}
.live-preview{background:#fff1f6}.journey-viewers,.journey-comment{position:absolute;z-index:1;left:8px;border-radius:999px;background:rgba(16,35,58,.78);color:#fff;font-size:.58rem;font-weight:950;padding:4px 7px}.journey-viewers{top:7px}.journey-comment{right:8px;left:auto;bottom:7px;max-width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.journey-benefits{position:relative;z-index:1;margin-top:18px;border:1px solid #d5e6f3;border-radius:14px;background:rgba(255,255,255,.9);padding:14px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center}
.journey-benefit-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.journey-benefit-list article{border:1px solid #e3eef6;border-radius:10px;background:#fbfdff;padding:12px}.journey-benefit-list strong{display:block;font-size:.86rem;font-weight:950}.journey-benefit-list span{display:block;margin-top:5px;color:#58718a;font-size:.76rem;line-height:1.38;font-weight:650}
.journey-benefit-cta{display:grid;justify-items:end;gap:6px}.journey-benefit-cta small{color:var(--muted);font-size:.72rem;font-weight:850;text-align:right}
.modal-open{overflow:hidden}.journey-video-modal{position:fixed;inset:0;z-index:100;display:none;place-items:center;padding:24px}.journey-video-modal.open{display:grid}.journey-video-backdrop{position:absolute;inset:0;background:rgba(5,15,28,.74);backdrop-filter:blur(8px)}.journey-video-dialog{position:relative;z-index:1;width:min(1040px,calc(100vw - 36px));display:grid;gap:12px;border:1px solid rgba(128,200,255,.35);border-radius:14px;background:#071522;padding:14px;box-shadow:0 28px 90px rgba(0,0,0,.42)}.journey-video-modal.portrait .journey-video-dialog{width:min(460px,calc(100vw - 36px))}.journey-video-title{color:#fff;font-size:1rem;font-weight:950}.journey-video-large{width:100%;max-height:78vh;border-radius:10px;background:#000;object-fit:contain}.journey-video-modal.portrait .journey-video-large{max-height:82vh}.journey-video-close{position:absolute;right:14px;top:12px;z-index:2;min-height:34px;border:1px solid rgba(255,255,255,.2);border-radius:8px;background:rgba(255,255,255,.12);color:#fff;padding:0 12px;font-weight:900}
.dashboard-view,.aidol-view,.creator-view,.video-builder-view,.livestream-view,.history-view,.work-panel,.api-panel{
  border:1px solid var(--border);
  border-radius:12px;
  background:rgba(255,255,255,.96);
  box-shadow:var(--shadow);
}
.assistant-model-shell{display:grid;grid-template-columns:minmax(290px,380px) minmax(0,1fr);gap:14px}
.assistant-model-stage,.assistant-chat-panel{border:1px solid var(--border);border-radius:10px;background:#fff;overflow:hidden}
.assistant-model-stage{position:relative;display:grid;place-items:center;height:clamp(420px,56vh,620px);background:#eaf6ff;padding:10px}
.assistant-model-stage .assistant-video{position:absolute;inset:10px;width:calc(100% - 20px);height:calc(100% - 20px);object-fit:contain;background:#eaf6ff;opacity:0;visibility:hidden;pointer-events:none}
.assistant-model-stage .assistant-video.is-active{opacity:1;visibility:visible}
.assistant-model-stage .assistant-video-response{z-index:1}
.assistant-model-stage .assistant-overlay{z-index:2}
.assistant-overlay{position:absolute;inset:auto 12px 12px 12px;display:flex;justify-content:space-between;gap:10px;pointer-events:none}
.assistant-badge{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border-radius:999px;background:rgba(16,35,58,.78);color:#fff;font-size:.72rem;font-weight:900}
.pulse{width:8px;height:8px;border-radius:50%;background:#2dff9a}
.assistant-caption{max-width:50%;padding:8px 10px;border-radius:8px;background:rgba(255,255,255,.9);color:#34516a;font-size:.72rem;font-weight:800;text-align:right}
.assistant-chat-panel{display:flex;flex-direction:column;gap:10px;padding:14px;height:clamp(420px,56vh,620px)}
.assistant-chat-log{display:grid;align-content:start;gap:10px;min-height:0;flex:1;overflow:auto}
.assistant-chat-empty{align-self:center;margin:auto;max-width:290px;color:#71889c;font-size:.8rem;font-weight:750;line-height:1.55;text-align:center}
.chat-line{border-radius:10px;padding:11px 12px;font-size:.84rem;font-weight:800;line-height:1.35}
.chat-line.user{background:#edf7ff;color:var(--primary-dark)}.chat-line.bot{background:var(--primary);color:#fff}
.chat-line.thinking{display:inline-flex;width:max-content;max-width:100%;align-items:center;gap:8px;background:#eef4f8;color:#536f84}
.chat-line.thinking::after{content:"";width:26px;height:6px;background:radial-gradient(circle,#5c8199 2px,transparent 2.5px) 0 50%/9px 6px repeat-x;animation:assistantThinking .9s linear infinite}
.assistant-chat-form{display:grid;grid-template-columns:minmax(0,1fr) 72px;gap:8px}.assistant-chat-form input{height:42px}.assistant-chat-form button{position:relative;display:grid;place-items:center;border:0;border-radius:8px;background:var(--text);color:#fff;font-weight:900;transition:transform .15s ease,filter .15s ease,opacity .15s ease}.assistant-chat-form button:hover:not(:disabled){filter:brightness(1.12)}.assistant-chat-form button:active:not(:disabled){transform:scale(.96)}.assistant-chat-form button:disabled{cursor:wait;opacity:.72}.assistant-chat-form.is-busy button span{visibility:hidden}.assistant-chat-form button i{display:none;position:absolute;width:17px;height:17px;border:2px solid rgba(255,255,255,.42);border-top-color:#fff;border-radius:50%;animation:assistantSpin .7s linear infinite}.assistant-chat-form.is-busy button i{display:block}
.assistant-model-shell.is-thinking .pulse{background:#ffbd24;animation:assistantPulse .8s ease-in-out infinite}.assistant-model-shell.is-speaking .pulse{background:#2dff9a;box-shadow:0 0 0 5px rgba(45,255,154,.16)}
@keyframes assistantSpin{to{transform:rotate(360deg)}}
@keyframes assistantThinking{to{background-position:9px 50%}}
@keyframes assistantPulse{50%{opacity:.45;transform:scale(.76)}}
.cta-row{display:grid;gap:8px}.cta-row a{min-height:38px;display:grid;place-items:center;border-radius:8px;background:#edf7ff;color:var(--primary-dark);font-size:.8rem;font-weight:900}.cta-row a:first-child{background:var(--primary);color:#fff}
.dashboard-view,.aidol-view,.creator-view,.video-builder-view,.livestream-view,.history-view,.simple-page,.api-panel{padding:22px}
.dashboard-hero,.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:18px}
.section-heading.compact{margin-bottom:8px}
.dashboard-hero h1 span{color:var(--primary-dark)}
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.metric-card{border:1px solid var(--border);border-radius:10px;background:#fff;padding:16px;display:grid;gap:6px}
.metric-card small{color:var(--muted);font-weight:800}.metric-card strong{font-size:2rem;color:var(--primary-dark);font-weight:900}.metric-card span{color:var(--muted);font-size:.8rem;line-height:1.35}
.dashboard-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:14px}.span-wide{grid-row:span 2}
.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}.panel-head h2,.work-panel h2{font-size:1.1rem;font-weight:900}.panel-head p{margin-top:5px;color:var(--muted);font-size:.84rem;line-height:1.45}.panel-head a{color:var(--primary-dark);font-weight:900;font-size:.84rem}
.recent-aidol-grid,.aidol-library{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.compact-list{display:grid;gap:10px}.compact-row{border:1px solid var(--border);border-radius:10px;padding:12px;background:#fbfdff;display:flex;align-items:center;justify-content:space-between;gap:10px}.compact-row strong{font-size:.9rem}.compact-row span,.compact-row small{color:var(--muted);font-size:.78rem}
.filter-bar{display:grid;grid-template-columns:minmax(240px,1.2fr) repeat(3,minmax(160px,.7fr));gap:12px;margin-bottom:16px}
label{display:grid;gap:8px;color:var(--text);font-size:.82rem;font-weight:850}
input,select,textarea{width:100%;border:1px solid #c9dceb;border-radius:8px;background:#fff;color:var(--text);padding:11px 12px;outline:none;min-height:42px}
textarea{resize:vertical;min-height:104px;line-height:1.45}
input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(22,135,255,.12)}
.login-form,.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:end}.login-form{grid-template-columns:1fr 1fr;gap:13px}.login-form label{min-width:0}.login-form .primary-btn{grid-column:1/-1;min-height:46px;width:100%;justify-content:center}.span-2{grid-column:1/-1}
.notice{margin-top:14px;border:1px solid var(--border);border-radius:10px;background:#f3f9ff;color:#34516a;padding:12px}.notice.error{border-color:#fecaca;background:#fff1f2;color:#b91c1c}.notice.success{border-color:#bbf7d0;background:#f0fdf4;color:#166534}
.workspace-notice{margin:12px 0 0;font-weight:800;line-height:1.45}
.wizard-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:14px;overflow:auto;padding-bottom:2px}
.wizard-steps button{min-height:48px;border:1px solid var(--border);border-radius:8px;background:#fff;color:#34516a;font-weight:900;display:flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;padding:0 10px}
.wizard-steps button span{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#edf7ff;color:var(--primary-dark);font-size:.78rem}
.wizard-steps button.active{background:var(--primary);border-color:var(--primary);color:#fff}.wizard-steps button.active span{background:#fff;color:var(--primary-dark)}
.wizard-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,320px);gap:16px;align-items:start}
.wizard-main{min-width:0}.wizard-card{border:1px solid var(--border);border-radius:12px;background:#fff;padding:18px}.wizard-card[hidden]{display:none!important}.step-hint{margin-bottom:12px;color:var(--muted);font-weight:800}.step-title h2{font-size:1.32rem;font-weight:900}.step-title p{margin-top:7px;color:var(--muted);line-height:1.5}
.tasks-view{padding:22px;scroll-margin-top:118px}
.task-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.task-tabs button{min-height:44px;border:1px solid var(--border);border-radius:10px;background:#fff;color:#34516a;padding:0 14px;font-weight:900}
.task-tabs button.active{background:var(--primary);border-color:var(--primary);color:#fff}
.task-panels{margin-top:14px}
.task-panel{min-width:0}
.task-panel[hidden]{display:none!important}
.tts-workbench{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:14px;align-items:start}
.tts-composer,.tts-panel,.tts-summary,.voice-clone-drawer,.soon-card{border:1px solid var(--border);border-radius:12px;background:#fff}
.tts-composer,.tts-panel{padding:16px;display:grid;gap:12px}
.task-side-panel{align-content:start}.task-side-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:4px;border:1px solid #dbe7f1;border-radius:10px;background:#f4f8fc}.task-side-tabs button{min-height:36px;border:0;border-radius:8px;background:transparent;color:#5d7184;font-size:.78rem;font-weight:900}.task-side-tabs button:hover{background:#fff;color:var(--primary-dark)}.task-side-tabs button.active{background:#fff;color:var(--primary-dark);box-shadow:0 3px 10px rgba(34,82,120,.12)}.task-history-count{display:inline-grid;min-width:18px;height:18px;place-items:center;margin-left:3px;border-radius:999px;background:#e6f3ff;color:var(--primary-dark);font-size:.64rem}.task-side-view{display:grid;gap:12px;min-width:0}.task-history-panel{align-content:start}.task-history-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.task-history-head strong{display:block;font-size:.94rem;font-weight:950}.task-history-head span{display:block;margin-top:4px;color:var(--muted);font-size:.74rem;line-height:1.35;font-weight:750}.task-history-refresh{width:34px;height:34px;flex:0 0 34px;border:1px solid #cfe0ee;border-radius:9px;background:#f7fbff;color:var(--primary-dark);font-size:1rem;font-weight:950}.task-history-refresh:hover{border-color:#9bcff2;background:#eaf6ff}.task-history-list{display:grid;gap:8px;max-height:590px;overflow:auto;padding-right:2px}.task-history-card{display:grid;gap:9px;border:1px solid #dce8f1;border-radius:11px;background:#fbfdff;padding:11px;cursor:pointer;outline:0}.task-history-card:hover,.task-history-card:focus-visible,.task-history-card.selected{border-color:#8dc7ef;background:#f2f9ff;box-shadow:0 0 0 2px rgba(22,135,255,.08)}.task-history-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.task-history-card-top strong{display:block;color:#24445e;font-size:.82rem;font-weight:950;line-height:1.32;overflow-wrap:anywhere}.task-history-card-top span:not(.status){display:block;margin-top:4px;color:var(--muted);font-size:.7rem;font-weight:750;line-height:1.32}.task-history-card .status{flex:0 0 auto}.task-history-error{border-radius:7px;background:#fff1f2;color:#b42336;padding:7px 8px;font-size:.71rem;font-weight:800;line-height:1.35;overflow-wrap:anywhere}.task-history-audio{width:100%;height:32px}.task-history-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.task-history-actions a,.task-history-actions button{min-height:30px;border:1px solid #cfe0ee;border-radius:7px;background:#fff;color:var(--primary-dark);padding:0 9px;font-size:.7rem;font-weight:900}.task-history-actions a{display:inline-flex;align-items:center}.task-history-actions button{background:#eef8ff}.task-soon-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:14px;align-items:start}.task-history-standalone{border:1px solid var(--border);border-radius:12px;background:#fff;padding:16px}
.task-history-card.is-creating{border-color:#8dc7ef;background:linear-gradient(120deg,#f1f9ff 0%,#fbfdff 47%,#eef8ff 100%);background-size:220% 100%;box-shadow:0 0 0 2px rgba(22,135,255,.08);animation:taskHistoryShimmer 1.8s ease-in-out infinite}.task-history-card.is-creating .status{position:relative;overflow:hidden}.task-history-card.is-creating .status::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 28%,rgba(255,255,255,.42) 50%,transparent 72%);transform:translateX(-120%);animation:taskStatusSweep 1.3s ease-in-out infinite}.task-history-progress{display:flex;align-items:center;gap:8px;border-radius:8px;background:#eaf6ff;color:#0d5f9d;padding:8px 9px;font-size:.71rem;font-weight:850;line-height:1.35}.task-history-progress i{width:14px;height:14px;flex:0 0 14px;border:2px solid rgba(13,95,157,.24);border-top-color:#1687ff;border-radius:50%;animation:taskHistorySpin .76s linear infinite}.task-history-progress span{min-width:0}

/* Unified image + video canvas ------------------------------------------------
   This follows the visual language of Google Flow: the canvas is the product,
   while the generator only appears when a creator explicitly opens it. */
.task-media-flow{position:relative;min-width:0;padding-bottom:112px}.task-media-stepper{display:flex;align-items:center;justify-content:center;gap:11px;margin:2px 0 14px}.task-media-stepper>div{display:grid;grid-template-columns:29px minmax(0,1fr);align-items:center;gap:8px;min-width:184px;padding:7px 10px;border:1px solid #dceaf2;border-radius:12px;background:#fff;color:#71899a;box-shadow:0 5px 14px rgba(29,86,118,.04)}.task-media-stepper b{display:grid;width:29px;height:29px;place-items:center;border-radius:9px;background:#eef4f8;color:#7890a0;font-size:.72rem}.task-media-stepper span{display:grid;gap:1px}.task-media-stepper strong{font-size:.68rem;font-weight:950;line-height:1.2}.task-media-stepper small{font-size:.55rem;font-weight:760;line-height:1.25}.task-media-stepper>i{color:#95b4c5;font-size:1rem;font-style:normal}.task-media-stepper .is-ready{border-color:#bde6d0;background:linear-gradient(135deg,#fff,#f4fff8);color:#34725a}.task-media-stepper .is-ready b{background:#d9f5e5;color:#15804a}.task-media-stepper .is-active{border-color:#85caee;background:linear-gradient(135deg,#fafeff,#edf9ff);color:#176a9c;box-shadow:0 7px 18px rgba(16,126,187,.1)}.task-media-stepper .is-active b{background:linear-gradient(145deg,#3db8f3,#1779d0);color:#fff}.task-media-layout{display:grid;grid-template-columns:206px minmax(0,1fr) 258px;gap:13px;align-items:start;min-height:590px}.task-media-library,.task-media-canvas,.task-media-job-rail{border:1px solid #d5e5ee;border-radius:16px;background:#fff;box-shadow:0 10px 26px rgba(20,72,104,.06)}.task-media-library{display:grid;align-content:start;overflow:hidden}.task-media-library-brand{display:flex;align-items:center;gap:9px;border-bottom:1px solid #e1edf3;background:radial-gradient(circle at 90% 6%,rgba(90,110,226,.16),transparent 40%),linear-gradient(140deg,#f1fbff,#fff);padding:13px}.task-media-library-brand>span{display:grid;width:29px;height:29px;place-items:center;border-radius:10px;background:linear-gradient(145deg,#394c9c,#6366cb);box-shadow:0 5px 11px rgba(62,79,165,.23);color:#fff;font-size:.83rem}.task-media-library-brand>div{display:grid;gap:2px}.task-media-library-brand small,.task-media-canvas-head span,.task-media-job-rail-head span{color:#2680b6;font-size:.54rem;font-weight:950;letter-spacing:.11em}.task-media-library-brand strong{color:#274b61;font-size:.73rem;font-weight:950}.task-media-library-action{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:8px;width:calc(100% - 18px);margin:9px 9px 0;border:1px solid transparent;border-radius:10px;background:transparent;color:#486d82;padding:8px;text-align:left;transition:background .16s ease,border-color .16s ease,transform .16s ease}.task-media-library-action:hover{border-color:#cce5f2;background:#f3fbff;transform:translateX(1px)}.task-media-library-action.active{border-color:#bfe0f1;background:linear-gradient(125deg,#eaf8ff,#f8fcff);color:#176998}.task-media-library-action i{display:grid;width:28px;height:28px;place-items:center;border-radius:8px;background:#e9f4fa;color:#39779e;font-size:1rem;font-style:normal;font-weight:900}.task-media-library-action.active i{background:linear-gradient(145deg,#28acec,#287cdc);color:#fff}.task-media-library-action span{display:grid;gap:2px}.task-media-library-action strong{font-size:.64rem;font-weight:950}.task-media-library-action small{color:#7893a3;font-size:.52rem;font-weight:720;line-height:1.25}.task-media-library-section{display:grid;gap:8px;margin:12px 9px 0;border-top:1px solid #e8f0f4;padding-top:12px}.task-media-library-head{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:0 2px}.task-media-library-head span{color:#7897a8;font-size:.52rem;font-weight:950;letter-spacing:.09em}.task-media-library-head button,.task-media-job-rail-head button{display:grid;width:25px;height:25px;place-items:center;border:1px solid #d9e8f0;border-radius:8px;background:#fbfdff;color:#37769c;font-size:.89rem;font-weight:950}.task-media-library-head button:hover,.task-media-job-rail-head button:hover{border-color:#9fcfe7;background:#ecf8ff}.task-media-source-list{display:grid;gap:6px;max-height:268px;overflow:auto;padding:1px}.task-media-source-card{display:grid;grid-template-columns:35px minmax(0,1fr);align-items:center;gap:7px;width:100%;border:1px solid #e1ecf2;border-radius:9px;background:#fbfdff;color:#36596f;padding:5px;text-align:left;transition:background .16s ease,border-color .16s ease,transform .16s ease}.task-media-source-card:hover,.task-media-source-card.is-selected{border-color:#86c8eb;background:#eef9ff;transform:translateY(-1px)}.task-media-source-thumb{display:grid;width:35px;height:35px;overflow:hidden;place-items:center;border-radius:7px;background:linear-gradient(145deg,#e1f1f9,#dce6ff);color:#4f80a0;font-size:.65rem;font-weight:950}.task-media-source-thumb img{width:100%;height:100%;object-fit:cover}.task-media-source-card span{display:grid;min-width:0;gap:2px}.task-media-source-card strong{overflow:hidden;color:#385b70;font-size:.58rem;font-weight:900;text-overflow:ellipsis;white-space:nowrap}.task-media-source-card small{overflow:hidden;color:#829aaa;font-size:.5rem;font-weight:720;text-overflow:ellipsis;white-space:nowrap}.task-media-source-empty{border:1px dashed #d4e4ed;border-radius:9px;background:#fbfdff;color:#7f98a8;padding:10px 8px;font-size:.56rem;font-weight:760;line-height:1.45;text-align:center}.task-media-library-note{margin:12px 9px 11px;border-radius:9px;background:#f5f9fc;color:#7893a3;padding:9px;font-size:.54rem;font-weight:720;line-height:1.45}.task-media-library-note b{color:#2376a5}.task-media-library-note em{color:#3477a0;font-style:normal;font-weight:950}.task-media-canvas{min-height:590px;overflow:hidden;background:radial-gradient(circle at 89% 0%,rgba(76,157,225,.11),transparent 26%),linear-gradient(150deg,#fff,#fbfdff)}.task-media-canvas-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;border-bottom:1px solid #e1edf3;padding:17px 18px 14px}.task-media-canvas-head>div:first-child{display:grid;gap:3px}.task-media-canvas-head h2{color:#21485f;font-size:1.06rem;font-weight:950;line-height:1.2}.task-media-canvas-head p{max-width:510px;color:#7691a1;font-size:.66rem;font-weight:720;line-height:1.45}.task-media-head-actions{display:flex;flex:0 0 auto;align-items:center;gap:7px}.task-media-outline-btn,.task-media-primary-btn{min-height:34px;border-radius:9px;padding:0 10px;font-size:.61rem;font-weight:950;white-space:nowrap}.task-media-outline-btn{border:1px solid #c8e0ed;background:#fff;color:#26749d}.task-media-outline-btn:hover{border-color:#75bee5;background:#eef9ff}.task-media-primary-btn{border:1px solid #1a86d3;background:linear-gradient(145deg,#33b7f1,#2179d9);box-shadow:0 6px 12px rgba(24,127,208,.18);color:#fff}.task-media-primary-btn:hover{filter:brightness(1.06);transform:translateY(-1px)}.task-media-flow-note{display:flex;align-items:flex-start;gap:8px;margin:12px 14px 0;border:1px solid #d8e9f2;border-radius:10px;background:linear-gradient(100deg,#f1fbff,#f9fcff);color:#5d7f92;padding:9px 10px;font-size:.61rem;font-weight:740;line-height:1.4}.task-media-flow-note i{display:grid;flex:0 0 auto;width:20px;height:20px;place-items:center;border-radius:7px;background:#d8f2ff;color:#1b81b7;font-size:.66rem;font-style:normal}.task-media-flow-note strong{color:#28749e}.task-media-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(184px,1fr));align-content:start;gap:12px;min-height:427px;padding:15px}.task-media-result-card{position:relative;display:grid;overflow:hidden;border:1px solid #dce9f0;border-radius:13px;background:#fff;box-shadow:0 5px 14px rgba(17,70,100,.05);transition:transform .17s ease,border-color .17s ease,box-shadow .17s ease}.task-media-result-card:hover{border-color:#8ac9ea;box-shadow:0 12px 24px rgba(20,112,161,.12);transform:translateY(-2px)}.task-media-result-card.is-active{border-color:#7ec3eb;background:linear-gradient(145deg,#f7fcff,#fff)}.task-media-result-card.is-failed{border-color:#efc2ca;background:#fffafb}.task-media-result-media{position:relative;display:grid;min-height:156px;overflow:hidden;place-items:center;border:0;background:linear-gradient(135deg,#eaf5fa,#e8ecff);color:#50809d;cursor:pointer}.task-media-result-media>img,.task-media-result-media>video{width:100%;height:100%;min-height:156px;object-fit:cover}.task-media-result-media video{background:#153043}.task-media-result-media .task-media-play{position:absolute;z-index:2;display:grid;width:35px;height:35px;place-items:center;border:1px solid rgba(255,255,255,.8);border-radius:50%;background:rgba(16,42,60,.68);box-shadow:0 5px 14px rgba(1,19,33,.18);color:#fff;font-size:.86rem;pointer-events:none}.task-media-result-media .task-media-image-mark{display:grid;width:40px;height:40px;place-items:center;border:1px solid rgba(255,255,255,.72);border-radius:12px;background:rgba(255,255,255,.65);font-size:1rem}.task-media-result-media .task-media-media-caption{position:absolute;right:7px;bottom:7px;border-radius:999px;background:rgba(10,42,61,.68);color:#f9fdff;padding:4px 7px;font-size:.48rem;font-weight:950;letter-spacing:.06em}.task-media-pending-media{background:linear-gradient(110deg,#e9f5fb,#f8fcff,#e7f4fb);background-size:220% 100%;animation:taskMediaShimmer 1.8s ease-in-out infinite}.task-media-pending-media i{width:30px;height:30px;border:3px solid rgba(30,133,197,.18);border-top-color:#238bd0;border-radius:50%;animation:taskHistorySpin .8s linear infinite}.task-media-card-copy{display:grid;gap:7px;padding:10px}.task-media-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:7px}.task-media-card-top>div{display:grid;min-width:0;gap:3px}.task-media-card-top strong{overflow:hidden;color:#254b61;font-size:.68rem;font-weight:950;line-height:1.28;text-overflow:ellipsis;white-space:nowrap}.task-media-card-top small{color:#819aaa;font-size:.54rem;font-weight:760}.task-media-stage-pill,.task-media-status-pill{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:999px;padding:4px 6px;font-size:.49rem;font-weight:950;letter-spacing:.045em;white-space:nowrap}.task-media-stage-pill{background:#ecf6fc;color:#33759b}.task-media-status-pill.done{background:#e6f8ec;color:#19864a}.task-media-status-pill.queued,.task-media-status-pill.processing,.task-media-status-pill.running{background:#e9f5ff;color:#1675b3}.task-media-status-pill.failed,.task-media-status-pill.error,.task-media-status-pill.timeout{background:#fff0f2;color:#bd4154}.task-media-card-progress{display:grid;gap:5px}.task-media-card-progress span{height:5px;overflow:hidden;border-radius:999px;background:#e8f1f6}.task-media-card-progress span::after{content:"";display:block;width:52%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2bb8ef,#3b76da);animation:taskMediaProgress 1.5s ease-in-out infinite}.task-media-card-progress small{color:#36799e;font-size:.53rem;font-weight:800}.task-media-card-error{border-radius:7px;background:#fff0f2;color:#b84557;padding:6px 7px;font-size:.54rem;font-weight:800;line-height:1.35}.task-media-card-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding-top:1px}.task-media-card-actions button,.task-media-card-actions a{display:inline-flex;align-items:center;min-height:27px;border:1px solid #cfe2ed;border-radius:7px;background:#f7fcff;color:#2675a0;padding:0 7px;font-size:.53rem;font-weight:950}.task-media-card-actions button:hover,.task-media-card-actions a:hover{border-color:#7dc3e8;background:#eaf8ff}.task-media-card-actions .task-media-use-video{background:#eaf6ff;color:#1673b0}.task-media-empty{grid-column:1/-1;display:grid;justify-items:center;align-content:center;min-height:360px;border:1px dashed #c9e1ed;border-radius:14px;background:radial-gradient(circle at 50% 20%,rgba(101,160,231,.12),transparent 40%),#fbfdff;color:#6d899b;padding:24px;text-align:center}.task-media-empty>span{display:grid;width:48px;height:48px;place-items:center;margin-bottom:8px;border-radius:15px;background:linear-gradient(145deg,#e0f6ff,#e8eaff);color:#4487b5;font-size:1.2rem}.task-media-empty strong{color:#2a5169;font-size:.87rem;font-weight:950}.task-media-empty p{max-width:340px;margin:7px 0 12px;font-size:.64rem;font-weight:720;line-height:1.45}.task-media-empty .primary-btn{min-height:34px;font-size:.62rem}.task-media-job-rail{display:grid;align-content:start;overflow:hidden}.task-media-job-rail-head{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #e4edf2;background:linear-gradient(135deg,#f5fbff,#fff);padding:13px}.task-media-job-rail-head>div{display:grid;gap:2px}.task-media-job-rail-head strong{color:#284d63;font-size:.78rem;font-weight:950}.task-media-job-rail>p{margin:10px 12px 8px;color:#7993a2;font-size:.56rem;font-weight:720;line-height:1.42}.task-media-job-list{display:grid;gap:7px;max-height:431px;overflow:auto;padding:0 10px 10px}.task-media-job-item{display:grid;gap:6px;border:1px solid #e0ebf1;border-radius:10px;background:#fbfdff;padding:8px}.task-media-job-item.is-active{border-color:#b6dff2;background:linear-gradient(120deg,#f1faff,#fbfdff)}.task-media-job-item.is-failed{border-color:#f0c8ce;background:#fff9fa}.task-media-job-item-top{display:flex;align-items:flex-start;justify-content:space-between;gap:6px}.task-media-job-item-top>div{display:grid;min-width:0;gap:2px}.task-media-job-item strong{overflow:hidden;color:#385b70;font-size:.61rem;font-weight:950;text-overflow:ellipsis;white-space:nowrap}.task-media-job-item small{color:#8299a8;font-size:.5rem;font-weight:760}.task-media-job-item-foot{display:flex;align-items:center;justify-content:space-between;gap:6px;color:#738f9f;font-size:.5rem;font-weight:760}.task-media-job-item-foot button{border:0;background:transparent;color:#2878a5;padding:0;font-size:.52rem;font-weight:950}.task-media-job-empty{border:1px dashed #d6e5ed;border-radius:9px;background:#fcfeff;color:#849aaa;padding:13px 8px;font-size:.56rem;font-weight:760;line-height:1.4;text-align:center}.task-media-history-link{display:flex;align-items:center;justify-content:space-between;gap:7px;width:calc(100% - 20px);min-height:35px;margin:0 10px 11px;border:1px solid #d4e6f0;border-radius:9px;background:#fff;color:#34779d;padding:0 9px;font-size:.59rem;font-weight:950}.task-media-history-link:hover{border-color:#80c4e7;background:#f0faff}.task-media-floating-composer{position:fixed;z-index:9100;bottom:20px;left:50%;width:min(580px,calc(100vw - 42px));transform:translateX(-50%)}.task-media-floating-shell{display:flex;align-items:center;gap:7px;overflow:hidden;border:1px solid rgba(139,205,237,.46);border-radius:17px;background:radial-gradient(circle at 88% 0%,rgba(74,144,231,.22),transparent 44%),linear-gradient(145deg,#102d3e,#0b1d29);box-shadow:0 20px 48px rgba(5,25,42,.3),0 0 0 1px rgba(9,53,75,.24);padding:9px}.task-media-floating-copy{display:grid;min-width:0;gap:2px;margin-right:auto;padding:1px 5px}.task-media-floating-copy span{color:#84d4f8;font-size:.49rem;font-weight:950;letter-spacing:.1em}.task-media-floating-copy strong{overflow:hidden;color:#f3fbff;font-size:.71rem;font-weight:950;text-overflow:ellipsis;white-space:nowrap}.task-media-floating-copy small{overflow:hidden;color:#9db8c8;font-size:.53rem;font-weight:720;text-overflow:ellipsis;white-space:nowrap}.task-media-float-tool{display:grid;flex:0 0 auto;width:32px;height:32px;place-items:center;border:1px solid transparent;border-radius:10px;background:transparent;color:#d6e8f1;font-size:.95rem;font-weight:900}.task-media-float-tool:hover{background:rgba(255,255,255,.11);color:#fff;transform:translateY(-1px)}.task-media-float-submit{display:grid;flex:0 0 auto;width:34px;height:34px;place-items:center;border:0;border-radius:50%;background:linear-gradient(145deg,#52c9ff,#287fe4);box-shadow:0 7px 18px rgba(29,134,224,.35);color:#fff;font-size:1.22rem;font-weight:900}.task-media-float-submit:hover{filter:brightness(1.08);transform:translateX(2px)}.task-media-dialog{width:min(640px,calc(100vw - 28px));max-height:calc(100vh - 36px);border:0;border-radius:18px;background:transparent;padding:0;box-shadow:0 25px 75px rgba(5,27,43,.36)}.task-media-dialog::backdrop,.task-media-preview-dialog::backdrop{background:rgba(10,29,43,.5);backdrop-filter:blur(5px)}.task-media-dialog-shell{overflow:auto;max-height:calc(100vh - 36px);border:1px solid #c7e3f1;border-radius:18px;background:#fff}.task-media-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid #dcebf2;padding:17px}.task-media-dialog-head.image{background:radial-gradient(circle at 92% 0%,rgba(78,113,225,.18),transparent 42%),linear-gradient(145deg,#f0fbff,#fff)}.task-media-dialog-head.video{background:radial-gradient(circle at 92% 0%,rgba(86,161,236,.19),transparent 42%),linear-gradient(145deg,#effaff,#fff)}.task-media-dialog-head>div{display:grid;gap:3px}.task-media-dialog-head span{color:#277cae;font-size:.54rem;font-weight:950;letter-spacing:.09em}.task-media-dialog-head h2{color:#21485f;font-size:1.08rem;font-weight:950}.task-media-dialog-head p{max-width:490px;color:#728d9d;font-size:.64rem;font-weight:720;line-height:1.42}.task-media-dialog-head>button,.task-media-preview-shell header>button{display:grid;flex:0 0 auto;width:31px;height:31px;place-items:center;border:1px solid #cfe1eb;border-radius:9px;background:#fff;color:#4b7289;font-size:1.2rem;line-height:1}.task-media-dialog-head>button:hover,.task-media-preview-shell header>button:hover{border-color:#83c6e7;background:#edf9ff;color:#176e9f}.task-media-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px}.task-media-form label{display:grid;gap:6px;color:#45697e;font-size:.65rem;font-weight:900}.task-media-form .task-media-full{grid-column:1/-1}.task-media-form input,.task-media-form select,.task-media-form textarea{width:100%;border:1px solid #cfe0e9;border-radius:9px;background:#fcfeff;color:#284d62;padding:8px 9px;font:inherit;font-size:.68rem;font-weight:720;outline:0}.task-media-form input:focus,.task-media-form select:focus,.task-media-form textarea:focus{border-color:#65b6e2;box-shadow:0 0 0 3px rgba(34,148,221,.11)}.task-media-form textarea{min-height:112px;line-height:1.45;resize:vertical}.task-media-form .field-note{color:#829aa9;font-size:.55rem;font-weight:720;line-height:1.4}.task-media-form footer{display:flex;grid-column:1/-1;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #e2edf2;margin:2px -16px -16px;padding:12px 16px}.task-media-form footer>div:first-child{display:grid;gap:2px;min-width:0}.task-media-form footer span{color:#2780b6;font-size:.5rem;font-weight:950;letter-spacing:.08em}.task-media-form footer strong{color:#55768a;font-size:.57rem;font-weight:800;line-height:1.3}.task-media-form footer>div:last-child{display:flex;flex:0 0 auto;gap:7px}.task-media-form footer .secondary-submit,.task-media-form footer .primary-btn{min-height:34px;padding:0 10px;font-size:.61rem}.task-media-preview-dialog{width:min(960px,calc(100vw - 30px));max-height:calc(100vh - 30px);border:0;border-radius:17px;background:transparent;padding:0;box-shadow:0 26px 76px rgba(4,22,35,.42)}.task-media-preview-shell{display:grid;overflow:hidden;max-height:calc(100vh - 30px);border:1px solid rgba(177,221,242,.7);border-radius:17px;background:#0d202d}.task-media-preview-shell header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid rgba(220,243,255,.15);background:linear-gradient(110deg,#142e3e,#102430);padding:12px 14px}.task-media-preview-shell header>div{display:grid;gap:2px}.task-media-preview-shell header span{color:#88d2f5;font-size:.52rem;font-weight:950;letter-spacing:.1em}.task-media-preview-shell header h2{overflow:hidden;max-width:760px;color:#f0f9ff;font-size:.86rem;font-weight:950;text-overflow:ellipsis;white-space:nowrap}.task-media-preview-shell header>button{border-color:rgba(207,235,249,.24);background:rgba(255,255,255,.1);color:#fff}.task-media-preview-body{display:grid;min-height:280px;max-height:calc(100vh - 116px);place-items:center;overflow:auto;background:#081721;padding:14px}.task-media-preview-body img,.task-media-preview-body video{display:block;max-width:100%;max-height:calc(100vh - 145px);border-radius:7px;box-shadow:0 8px 30px rgba(0,0,0,.26)}.task-media-preview-body video{width:auto;background:#000}@keyframes taskMediaShimmer{0%,100%{background-position:100% 0}50%{background-position:0 0}}@keyframes taskMediaProgress{0%,100%{transform:translateX(-55%)}50%{transform:translateX(110%)}}
@media(max-width:1120px){.task-media-layout{grid-template-columns:184px minmax(0,1fr) 226px}.task-media-stepper>div{min-width:155px}.task-media-canvas-head{align-items:flex-start;flex-direction:column}.task-media-head-actions{width:100%}.task-media-outline-btn,.task-media-primary-btn{flex:1}.task-media-results{grid-template-columns:repeat(auto-fill,minmax(164px,1fr))}}
@media(max-width:850px){.task-media-flow{padding-bottom:98px}.task-media-stepper{align-items:stretch;gap:5px}.task-media-stepper>div{grid-template-columns:25px minmax(0,1fr);min-width:0;flex:1;padding:7px}.task-media-stepper b{width:25px;height:25px;border-radius:8px}.task-media-stepper strong{font-size:.58rem}.task-media-stepper small{display:none}.task-media-stepper>i{display:none}.task-media-layout{grid-template-columns:1fr;min-height:0}.task-media-library{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;padding:9px;gap:7px}.task-media-library-brand{grid-column:1/-1;border:0;border-radius:10px;padding:9px}.task-media-library-action{width:100%;margin:0}.task-media-library-section{grid-column:1/-1;margin:2px 0 0;padding-top:9px}.task-media-source-list{grid-template-columns:repeat(auto-fill,minmax(155px,1fr));max-height:160px}.task-media-library-note{display:none}.task-media-canvas{min-height:460px}.task-media-results{min-height:286px}.task-media-job-list{max-height:240px}.task-media-floating-composer{bottom:12px;width:calc(100vw - 24px)}.task-media-form{grid-template-columns:1fr}.task-media-form footer{align-items:flex-start;flex-direction:column}.task-media-form footer>div:last-child{width:100%}.task-media-form footer button{flex:1}.task-media-preview-dialog{width:calc(100vw - 18px)}}
@media(max-width:520px){.task-media-stepper{justify-content:stretch}.task-media-stepper>div{display:block;text-align:center}.task-media-stepper b{margin:0 auto 3px}.task-media-stepper strong{font-size:.52rem}.task-media-canvas-head{padding:14px}.task-media-canvas-head h2{font-size:.93rem}.task-media-canvas-head p{font-size:.59rem}.task-media-flow-note{margin:10px 10px 0;font-size:.56rem}.task-media-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px}.task-media-result-media,.task-media-result-media>img,.task-media-result-media>video{min-height:125px}.task-media-card-copy{padding:8px}.task-media-card-top strong{font-size:.6rem}.task-media-floating-copy small{display:none}.task-media-floating-copy strong{font-size:.65rem}.task-media-dialog{width:calc(100vw - 16px)}.task-media-dialog-shell{max-height:calc(100vh - 16px)}.task-media-dialog-head{padding:13px}.task-media-dialog-head h2{font-size:.94rem}.task-media-form{gap:9px;padding:12px}.task-media-form footer{margin:2px -12px -12px;padding:10px 12px}.task-media-preview-shell header h2{max-width:245px}}

/* Google Flow prompt dock v2: one idea, then choose Image or Video inside
   the composer.  Creation type is no longer a pair of separate screens. */
.task-media-head-actions{align-self:flex-start}.task-media-utility-btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:33px;border:1px solid #cce2ed;border-radius:9px;background:#fff;color:#36779d;padding:0 10px;font-size:.6rem;font-weight:950}.task-media-utility-btn:hover{border-color:#7fc5e8;background:#eef9ff}.task-media-floating-composer{width:min(720px,calc(100vw - 42px))}.task-media-floating-shell{display:grid;gap:0;overflow:hidden;border-radius:18px;padding:0}.task-media-prompt-input{display:block;min-width:0;padding:12px 14px 3px}.task-media-prompt-input textarea{display:block;width:100%;min-height:42px;max-height:108px;border:0;background:transparent;color:#f5fbff;padding:0;font-family:inherit;font-size:.78rem;font-weight:720;line-height:1.45;outline:0;resize:none}.task-media-prompt-input textarea::placeholder{color:#98b1c0}.task-media-reference-chip{display:flex;align-items:center;gap:6px;min-width:0;margin:0 12px 3px;border:1px solid rgba(111,207,244,.32);border-radius:9px;background:rgba(94,190,230,.13);color:#dff6ff;padding:5px 7px}.task-media-reference-chip[hidden]{display:none!important}.task-media-reference-chip>span{display:grid;flex:0 0 auto;width:19px;height:19px;place-items:center;border-radius:6px;background:rgba(126,221,255,.2);color:#c5f2ff;font-size:.63rem}.task-media-reference-chip strong{overflow:hidden;margin-right:auto;font-size:.57rem;font-weight:850;text-overflow:ellipsis;white-space:nowrap}.task-media-reference-chip button{display:grid;flex:0 0 auto;width:21px;height:21px;place-items:center;border:0;border-radius:6px;background:transparent;color:#d6f1fc;font-size:1rem;line-height:1}.task-media-reference-chip button:hover{background:rgba(255,255,255,.12);color:#fff}.task-media-prompt-actions{display:flex;align-items:center;gap:6px;min-height:43px;padding:3px 8px 9px}.task-media-reference-btn,.task-media-settings-btn{display:grid;flex:0 0 auto;width:31px;height:31px;place-items:center;border:1px solid transparent;border-radius:10px;background:transparent;color:#cee1ea;font-size:1rem;font-weight:900;line-height:1}.task-media-reference-btn{font-size:1.37rem;font-weight:450}.task-media-reference-btn:hover,.task-media-settings-btn:hover{background:rgba(255,255,255,.12);color:#fff;transform:translateY(-1px)}.task-media-mode-btn{display:inline-flex;align-items:center;gap:5px;min-height:31px;border:1px solid transparent;border-radius:9px;background:transparent;color:#b8d0dc;padding:0 9px;font-size:.61rem;font-weight:900}.task-media-mode-btn i{font-style:normal;font-size:.78rem}.task-media-mode-btn:hover{background:rgba(255,255,255,.08);color:#fff}.task-media-mode-btn.active{border-color:rgba(130,211,249,.46);background:rgba(78,174,227,.2);box-shadow:0 0 0 1px rgba(92,181,236,.08) inset;color:#fff}.task-media-float-submit{margin-left:auto}.task-media-prompt-summary{display:grid;gap:4px;border:1px solid #d9eaf2;border-radius:9px;background:#f7fbfd;padding:9px 10px}.task-media-prompt-summary span{color:#3181b0;font-size:.51rem;font-weight:950;letter-spacing:.09em}.task-media-prompt-summary strong{display:-webkit-box;overflow:hidden;color:#52758a;font-size:.61rem;font-weight:780;line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:2}.task-media-library{padding-top:0}.task-media-library-section{margin-top:12px}.task-media-library-note{margin-top:11px}
/* Settings is a small non-blocking panel that rises from the Flow dock. */
.task-media-dialog[open]{position:fixed;z-index:9250;inset:auto;left:50%;bottom:94px;width:min(490px,calc(100vw - 38px));max-height:min(570px,calc(100vh - 148px));margin:0;border:0;border-radius:16px;background:transparent;padding:0;box-shadow:0 21px 54px rgba(5,28,45,.32);transform:translateX(-50%);animation:taskMediaSettingsUp .17s ease-out}.task-media-dialog::backdrop{background:transparent}.task-media-dialog-shell{max-height:min(570px,calc(100vh - 148px));border-color:#b9ddeb;border-radius:16px;box-shadow:none}.task-media-dialog-head{padding:13px 14px 11px}.task-media-dialog-head h2{font-size:.93rem}.task-media-dialog-head p{font-size:.58rem}.task-media-form{gap:10px;padding:12px}.task-media-form footer{margin:2px -12px -12px;padding:10px 12px}.task-media-form footer .primary-btn{min-width:60px}.task-media-dialog::after{content:"";position:absolute;left:50%;bottom:-8px;width:16px;height:16px;border-right:1px solid #b9ddeb;border-bottom:1px solid #b9ddeb;background:#fff;transform:translateX(-50%) rotate(45deg)}.task-media-dialog-shell{position:relative;z-index:1}@keyframes taskMediaSettingsUp{from{opacity:0;transform:translate(-50%,9px) scale(.985)}to{opacity:1;transform:translate(-50%,0) scale(1)}}
.task-media-pending-media>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.task-media-preview-pending-shade{position:absolute;z-index:1;inset:0;background:linear-gradient(145deg,rgba(6,28,43,.22),rgba(7,32,50,.6))}.task-media-pending-media>i{position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%)}.task-media-pending-media .task-media-media-caption{z-index:3}
.task-media-video-model-quick{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"label control" "note note";align-items:center;gap:4px 9px;border-top:1px solid rgba(157,218,245,.17);background:linear-gradient(90deg,rgba(51,145,198,.12),rgba(17,43,59,.08));padding:8px 10px 10px}.task-media-video-model-quick[hidden]{display:none!important}.task-media-video-model-quick>span{grid-area:label;color:#90d9f8;font-size:.5rem;font-weight:950;letter-spacing:.095em;white-space:nowrap}.task-media-video-model-quick select{grid-area:control;min-width:0;height:29px;border:1px solid rgba(139,215,247,.38);border-radius:8px;background:rgba(4,22,34,.52);color:#eefaff;padding:0 8px;font:inherit;font-size:.6rem;font-weight:850;outline:0}.task-media-video-model-quick select:focus{border-color:#72d4fb;box-shadow:0 0 0 3px rgba(92,201,246,.16)}.task-media-video-model-quick small{grid-area:note;overflow:hidden;color:#a9cbd9;font-size:.53rem;font-weight:720;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.task-media-floating-shell.is-dragover{border-color:#77d9ff;box-shadow:0 0 0 3px rgba(103,210,255,.22),0 22px 54px rgba(5,25,42,.38)}.task-media-floating-shell.is-dragover .task-media-prompt-input{background:linear-gradient(90deg,rgba(83,189,235,.14),transparent)}
.task-media-canvas{position:relative}.task-media-canvas.is-dragover-storage::after{content:"Thả ảnh để lưu vào kho Flow";position:absolute;z-index:12;inset:12px;display:grid;place-items:center;border:2px dashed #36afe7;border-radius:13px;background:rgba(232,249,255,.93);box-shadow:inset 0 0 0 5px rgba(116,207,246,.15);color:#1977a9;font-size:.8rem;font-weight:950;letter-spacing:.02em;pointer-events:none}.task-media-pagination{display:flex;align-items:center;justify-content:center;gap:8px;min-height:45px;border-top:1px solid #e1edf3;background:linear-gradient(180deg,#fcfeff,#f6fbfe);padding:7px 12px}.task-media-pagination[hidden]{display:none!important}.task-media-page-nav,.task-media-page-number{display:grid;min-width:28px;height:28px;place-items:center;border:1px solid #cfe3ee;border-radius:8px;background:#fff;color:#367ca2;padding:0 7px;font-size:.6rem;font-weight:950}.task-media-page-nav:hover:not(:disabled),.task-media-page-number:hover:not(:disabled){border-color:#73c5ea;background:#eaf8ff;color:#176f9f}.task-media-page-nav:disabled,.task-media-page-number:disabled{cursor:default;opacity:.46}.task-media-page-number.active{border-color:#238fde;background:linear-gradient(145deg,#3bb9ee,#277bdd);box-shadow:0 4px 10px rgba(35,130,205,.18);color:#fff}.task-media-page-numbers{display:flex;align-items:center;gap:4px}.task-media-page-ellipsis{display:grid;min-width:18px;height:28px;place-items:center;color:#829cac;font-size:.72rem;font-weight:900}.task-media-pagination-summary{order:-1;margin-right:auto;color:#6d8b9d;font-size:.56rem;font-weight:850;white-space:nowrap}
.task-media-results.is-empty{display:block;background:linear-gradient(90deg,rgba(230,243,250,.45) 1px,transparent 1px),linear-gradient(rgba(230,243,250,.45) 1px,transparent 1px);background-size:22px 22px;opacity:.58}
@media(max-width:850px){.task-media-floating-composer{width:calc(100vw - 24px);bottom:12px}.task-media-prompt-input{padding:10px 12px 1px}.task-media-prompt-input textarea{min-height:38px;font-size:.72rem}.task-media-prompt-actions{padding:3px 7px 8px}.task-media-video-model-quick{padding:7px 9px 9px}.task-media-pagination{justify-content:space-between;gap:5px;padding:7px 9px}.task-media-pagination-summary{display:none}.task-media-page-numbers{gap:3px}.task-media-page-nav,.task-media-page-number{min-width:27px;padding:0 6px}.task-media-utility-btn span{display:none}}
@media(max-width:520px){.task-media-floating-shell{border-radius:16px}.task-media-prompt-input textarea{min-height:35px;font-size:.67rem}.task-media-mode-btn{padding:0 7px;font-size:.56rem}.task-media-reference-btn,.task-media-settings-btn{width:29px;height:29px}.task-media-float-submit{width:32px;height:32px}.task-media-prompt-actions{gap:3px}.task-media-head-actions{width:auto}.task-media-utility-btn{width:32px;padding:0;font-size:.8rem}}
.tts-head{display:grid;gap:4px}.tts-head strong{font-size:1rem;font-weight:900}.tts-head span{color:var(--muted);font-size:.8rem;line-height:1.4}
.lipsync-model-picker{display:grid;gap:10px;padding:12px;border:1px solid rgba(34,119,188,.2);border-radius:13px;background:linear-gradient(145deg,#fafdff,#eef8ff)}.lipsync-model-picker-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.lipsync-model-picker-head>div{display:grid;gap:3px}.lipsync-model-picker-head span{color:#2c75aa;font-size:.63rem;font-weight:950;letter-spacing:.09em}.lipsync-model-picker-head strong{font-size:.89rem;font-weight:950;color:#163d5b}.lipsync-model-picker-head small{max-width:200px;color:#55728a;font-size:.69rem;font-weight:800;line-height:1.35;text-align:right}.lipsync-model-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.lipsync-model-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;min-height:76px;padding:10px;border:1px solid #c9deec;border-radius:10px;background:#fff;color:#173f5d;text-align:left;box-shadow:0 2px 8px rgba(20,70,106,.04);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease}.lipsync-model-card:hover{transform:translateY(-1px);border-color:#70b4e6;box-shadow:0 8px 18px rgba(27,101,158,.1)}.lipsync-model-card:focus-visible{outline:3px solid rgba(36,141,226,.28);outline-offset:2px}.lipsync-model-card.is-selected{border-color:#1687ff;background:linear-gradient(135deg,#f3faff,#e6f5ff);box-shadow:0 0 0 2px rgba(22,135,255,.1)}.lipsync-model-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#e8f5ff;color:#0d6eae;font-size:1rem;font-weight:950}.lipsync-model-copy{display:grid;gap:3px;min-width:0}.lipsync-model-copy strong{font-size:.79rem;font-weight:950}.lipsync-model-copy small{color:#627a8e;font-size:.69rem;font-weight:750;line-height:1.32}.lipsync-model-check{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#1687ff;color:#fff;font-size:.7rem;font-weight:950;opacity:0;transform:scale(.65);transition:opacity .16s ease,transform .16s ease}.lipsync-model-card.is-selected .lipsync-model-check{opacity:1;transform:scale(1)}.lipsync-model-badge{align-self:start;border:1px solid #e5b41d;border-radius:999px;background:#fff8da;color:#936800;padding:3px 6px;font-size:.58rem;font-weight:950;letter-spacing:.03em;white-space:nowrap}.lipsync-model-card.is-private .lipsync-model-icon{background:#f1ebff;color:#7548c4}.lipsync-model-card.is-locked{border-style:dashed;background:#fbfcfd}.lipsync-model-card.is-locked .lipsync-model-icon{background:#edf0f3;color:#6c7884}.lipsync-model-card.is-locked .lipsync-model-badge{border-color:#d6dce2;background:#f3f5f7;color:#5b6570}.lipsync-model-card.is-loading{cursor:wait;opacity:.78}.lipsync-model-card.is-loading .lipsync-model-icon{animation:lipsync-model-pulse 1.2s ease-in-out infinite}@keyframes lipsync-model-pulse{0%,100%{opacity:.5;transform:scale(.94)}50%{opacity:1;transform:scale(1)}}
@media(max-width:560px){.lipsync-model-picker-head{align-items:flex-start;flex-direction:column}.lipsync-model-picker-head small{max-width:none;text-align:left}.lipsync-model-options{grid-template-columns:1fr}.lipsync-model-card{min-height:66px}}
.tts-title,.tts-script{display:grid;gap:8px}
.tts-cta-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}
.tts-cost{display:grid;gap:4px;border:1px solid #dbe7f1;border-radius:10px;background:#f8fbff;padding:12px}.tts-cost span{color:var(--muted);font-size:.72rem;font-weight:850}.tts-cost strong{color:var(--primary-dark);font-size:1.1rem;font-weight:950}.tts-cost small{color:var(--muted);font-size:.76rem;line-height:1.35}
.tts-summary{margin-top:14px;display:grid;gap:4px;padding:14px 16px}.tts-summary strong{font-size:.9rem;font-weight:900}.tts-summary span{color:var(--muted);font-size:.8rem;line-height:1.45}
.task-soon{margin-top:14px}
.soon-card{padding:18px;display:grid;gap:8px;max-width:560px}.soon-card strong{font-size:1.02rem;font-weight:950}.soon-card span{color:var(--muted);font-size:.84rem;line-height:1.45}
.task-soon .primary-btn{width:max-content}
.login-required-hint{margin:-2px 0 12px;border:1px solid #fecaca;border-radius:10px;background:#fff7f7;color:#8a1f1f;padding:12px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;align-items:center}.login-required-hint strong{font-weight:950}.login-required-hint span{color:#9f3a3a;font-size:.82rem;font-weight:800}.login-required-hint button{grid-row:1/3;grid-column:2;border:0;border-radius:8px;background:var(--primary);color:#fff;min-height:38px;padding:0 12px;font-weight:900}
.mode-switch,.preset-row,.script-tools{display:flex;flex-wrap:wrap;gap:8px}.mode-switch button,.preset-row span,.script-tools button{min-height:36px;border:1px solid var(--border);border-radius:999px;background:#f8fbff;color:#31506b;padding:0 12px;font-weight:850;font-size:.82rem}.mode-switch button.active{background:#edf7ff;color:var(--primary-dark);border-color:#bfe2fb}
.mode-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mode-choice-card{min-height:116px;border:1px solid #c9dceb;border-radius:12px;background:#fbfdff;color:var(--text);padding:18px;text-align:left;display:grid;align-content:center;gap:8px}.mode-choice-card strong{font-size:1rem;font-weight:950}.mode-choice-card span{color:var(--muted);font-size:.82rem;line-height:1.45;font-weight:750}.mode-choice-card.active{border-color:var(--primary);background:#eef7ff;box-shadow:0 0 0 3px rgba(22,135,255,.1)}
.motion-mode-shared{display:grid;grid-template-columns:1fr 1fr;gap:12px}.motion-mode-shared .helper-note{grid-column:1/-1}.motion-mode-panel{display:grid;gap:12px}.compact-motion-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.upload-field.attention{border:1px solid #bfe2fb;border-radius:10px;background:#f0f8ff;padding:10px}
.upload-field.attention input{border-color:var(--primary);box-shadow:0 0 0 3px rgba(22,135,255,.1)}
.field-note{display:block;color:var(--muted);font-size:.76rem;line-height:1.38;font-weight:750}
.form-actions{display:flex;flex-wrap:wrap;gap:10px}.form-actions .primary-btn,.form-actions .secondary-submit{flex:1 1 210px}
.motion-stack{display:grid;gap:10px}.motion-stack-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.motion-stack-head strong{font-size:.95rem}.motion-batch-tools{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.motion-batch-tools label{display:grid;gap:4px;color:var(--muted);font-size:.75rem;font-weight:850}.motion-batch-tools input[type="number"]{width:96px;min-height:38px;border:1px solid var(--border);border-radius:8px;background:#fff;padding:0 10px;color:var(--text);font-weight:900}.motion-prompt-item{display:grid;grid-template-columns:minmax(180px,.45fr) minmax(0,1fr) auto;gap:10px;align-items:end;border:1px solid var(--border);border-radius:10px;background:#fbfdff;padding:12px}.motion-prompt-item textarea{min-height:92px}.remove-motion-btn{min-height:42px;border:1px solid #fecaca;border-radius:8px;background:#fff1f2;color:#b91c1c;font-weight:900;padding:0 12px}
.voice-clone-drawer{margin-top:14px;border:1px solid var(--border);border-radius:10px;background:#fbfdff;padding:12px}.voice-clone-drawer summary{cursor:pointer;color:var(--primary-dark);font-weight:900}
.voice-speed-control{display:grid;gap:12px;padding:14px 16px;border:1px solid var(--border);border-radius:14px;background:#fbfaf6}
.voice-speed-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.voice-speed-head span{color:#171714;font-size:.88rem;font-weight:900;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:4px;text-decoration-thickness:1px}
.voice-speed-control input[type="range"]{width:100%;height:10px;margin:0;appearance:none;border:0;border-radius:999px;background:linear-gradient(90deg,#111 0%,#111 var(--speed-progress,50%),#dedbd4 var(--speed-progress,50%),#dedbd4 100%);outline:none}
.voice-speed-control input[type="range"]::-webkit-slider-thumb{appearance:none;width:22px;height:22px;border:2px solid #111;border-radius:50%;background:#fff;box-shadow:0 2px 8px rgba(17,17,17,.16);cursor:pointer}
.voice-speed-control input[type="range"]::-moz-range-thumb{width:18px;height:18px;border:2px solid #111;border-radius:50%;background:#fff;box-shadow:0 2px 8px rgba(17,17,17,.16);cursor:pointer}
.voice-speed-scale{display:flex;justify-content:space-between;gap:12px;color:#716c63;font-size:.76rem;font-weight:850}
.option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.option-grid label,.consent-line{display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:8px;background:#fbfdff;padding:10px;font-weight:800}.option-grid input,.consent-line input{width:auto;min-height:auto}
.cost-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 12px;border:1px solid #bfe2fb;border-radius:10px;background:#f0f8ff;padding:12px;color:#34516a}.cost-row strong{color:var(--primary-dark);font-size:1rem;text-align:right}.cost-row small{grid-column:1/-1;color:var(--muted);font-size:.76rem;font-weight:750;line-height:1.35}
.voice-library-panel{margin:16px 0;border:1px solid var(--border);border-radius:10px;background:#fbfdff;padding:14px}.voice-library-head{display:grid;gap:4px}.voice-library-head strong{font-size:.95rem}.voice-library-head span{color:var(--muted);font-size:.8rem}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.voice-picker{display:grid;grid-template-columns:minmax(0,1fr) 108px;gap:8px;align-items:stretch}.voice-picker-trigger{display:grid;align-content:center;gap:4px;min-height:42px;width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:#fff;text-align:left;color:var(--text);box-shadow:0 1px 0 rgba(255,255,255,.75) inset}.voice-picker-trigger strong{font-size:.9rem;font-weight:950}.voice-picker-trigger small{color:var(--muted);font-size:.74rem;font-weight:850}.voice-picker-trigger:focus-visible,.voice-preview-btn:focus-visible,.voice-choice-card:focus-visible,.voice-picker-close:focus-visible,.voice-picker-tabs button:focus-visible,.voice-choice-preview:focus-visible,.voice-choice-favorite:focus-visible{outline:3px solid rgba(76,201,240,.22);outline-offset:2px}
.voice-preview-btn{height:42px;border:1px solid var(--border);border-radius:8px;background:#edf7ff;color:var(--primary-dark);font-weight:900}
.voice-picker-modal{position:fixed;inset:0;z-index:140;display:grid;place-items:center;padding:20px}
.voice-picker-modal[hidden]{display:none}
.voice-picker-backdrop{position:absolute;inset:0;background:rgba(5,15,28,.7);backdrop-filter:blur(8px)}
.voice-picker-dialog{position:relative;z-index:1;width:min(1140px,calc(100vw - 28px));height:calc(100vh - 72px);max-height:860px;display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid rgba(128,200,255,.32);border-radius:16px;background:#07111d;box-shadow:0 32px 110px rgba(0,0,0,.44);overflow:hidden}
.payment-modal{position:fixed;inset:0;z-index:160;display:grid;place-items:center;padding:20px}.payment-modal[hidden]{display:none}.payment-modal-backdrop{position:absolute;inset:0;background:rgba(5,15,28,.72);backdrop-filter:blur(8px)}.payment-dialog{position:relative;z-index:1;width:min(980px,calc(100vw - 28px));max-height:calc(100vh - 52px);display:flex;flex-direction:column;gap:16px;padding:22px;border:1px solid rgba(128,200,255,.38);border-radius:18px;background:linear-gradient(145deg,#071521,#0b1d2e);box-shadow:0 34px 110px rgba(0,0,0,.5);overflow:hidden}.payment-dialog-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;color:#fff}.payment-kicker{display:inline-flex;padding:5px 9px;border:1px solid rgba(92,203,255,.42);border-radius:999px;color:#7ed5ff;font-size:.66rem;font-weight:950;letter-spacing:.08em}.payment-dialog h2{margin-top:8px;font-size:1.42rem;font-weight:950}.payment-dialog-head p{max-width:640px;margin-top:6px;color:#aec9df;font-size:.84rem;line-height:1.45}.payment-close{min-height:36px;border:1px solid rgba(189,226,248,.32);border-radius:9px;background:rgba(255,255,255,.08);color:#fff;padding:0 12px;font-weight:900;cursor:pointer}.payment-wallet-summary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 16px;border:1px solid rgba(93,202,255,.24);border-radius:13px;background:linear-gradient(100deg,rgba(16,135,255,.18),rgba(124,58,237,.16))}.payment-wallet-summary span{display:block;color:#b7d4e7;font-size:.76rem;font-weight:850}.payment-wallet-summary strong{display:block;margin-top:3px;color:#fff;font-size:1.7rem;font-weight:950;letter-spacing:-.04em}.payment-wallet-summary small{max-width:340px;color:#d7eaff;font-size:.78rem;line-height:1.45;font-weight:750}.payment-mode-tabs{display:flex;gap:8px;padding:4px;border:1px solid rgba(115,205,255,.22);border-radius:12px;background:rgba(0,0,0,.16)}.payment-mode-tabs button{flex:1;min-height:42px;border:1px solid transparent;border-radius:8px;background:transparent;color:#bcd9ea;font-size:.82rem;font-weight:900;cursor:pointer}.payment-mode-tabs button:hover{background:rgba(55,167,243,.14);color:#effaff}.payment-mode-tabs button[aria-selected="true"]{border-color:#52caff;background:linear-gradient(135deg,#126db7,#194ea7);box-shadow:0 0 20px rgba(59,191,255,.22);color:#fff}.payment-package-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;overflow:auto;padding:2px 4px 8px}.payment-package-group{grid-column:1/-1;display:grid;gap:9px}.payment-group-title{color:#bce1f5;font-size:.83rem;font-weight:950;letter-spacing:.02em}.payment-package-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.payment-package-card{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:10px;min-height:192px;padding:14px;border:1px solid rgba(154,207,238,.22);border-radius:13px;background:rgba(255,255,255,.055);color:#fff;text-align:left;transition:transform .18s ease,border-color .18s ease,background .18s ease;cursor:pointer}.payment-package-card:hover,.payment-package-card:focus-visible{transform:translateY(-2px);border-color:#50c7ff;background:rgba(28,144,255,.16);outline:0}.payment-package-card.highlight{border-color:#8d72ff;background:linear-gradient(145deg,rgba(70,91,255,.25),rgba(124,58,237,.18))}.payment-package-card[disabled]{opacity:.58;cursor:wait;transform:none}.payment-package-card strong{font-size:.93rem;font-weight:950;line-height:1.35}.payment-package-card p{min-height:34px;margin:0;color:#b9d1e2;font-size:.75rem;line-height:1.42}.payment-package-price{margin-top:auto;color:#fff;font-size:1.1rem;font-weight:950}.payment-package-benefit{color:#81e1ff;font-size:.72rem;font-weight:900}.payment-package-cta{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#dcefff;font-size:.72rem;font-weight:900}.payment-package-cta b{color:#fff}.payment-loading{grid-column:1/-1;min-height:170px;display:grid;place-items:center;align-content:center;gap:10px;color:#c2d9e8;font-size:.84rem;font-weight:800}.payment-loading i{width:28px;height:28px;border:3px solid rgba(151,220,255,.25);border-top-color:#73d4ff;border-radius:50%;animation:previewSpin .8s linear infinite}.payment-dialog-foot{padding-top:10px;border-top:1px solid rgba(180,217,238,.18);color:#8fb3cb;font-size:.72rem;line-height:1.4}.payment-notice{margin:0}.aidol-delete-character{border-color:#fecaca!important;background:#fff5f5!important;color:#b91c1c!important}
.voice-picker-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;color:#fff}
.voice-picker-top strong{display:block;font-size:1rem;font-weight:950}
.voice-picker-top span{display:block;margin-top:5px;color:rgba(233,238,247,.68);font-size:.82rem;font-weight:700}
.voice-picker-close{min-height:34px;border:1px solid rgba(255,255,255,.2);border-radius:8px;background:rgba(255,255,255,.1);color:#fff;padding:0 12px;font-weight:900}
.voice-picker-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.voice-picker-toolbar input{min-height:42px;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:rgba(255,255,255,.92);color:#10243a}
.voice-picker-tabs{display:flex;flex-wrap:wrap;gap:8px}
.voice-picker-tabs button{min-height:42px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(255,255,255,.08);color:#eaf3ff;padding:0 14px;font-weight:900}
.voice-picker-tabs button.active{background:#4cc9f0;border-color:#4cc9f0;color:#05202f}
.voice-picker-filters{display:grid;grid-template-columns:repeat(6,minmax(112px,1fr));gap:8px;align-items:end}.voice-picker-filters label{display:grid;gap:4px;color:rgba(233,238,247,.76);font-size:.66rem;font-weight:900}.voice-picker-filters select{min-height:34px;border:1px solid rgba(255,255,255,.14);border-radius:8px;background:#fff;color:#10243a;font-size:.72rem;font-weight:800}.voice-picker-reset{min-height:34px;border:1px solid rgba(255,255,255,.18);border-radius:8px;background:rgba(255,255,255,.1);color:#fff;font-weight:900}
.voice-picker-preview-panel{display:grid;grid-template-columns:minmax(180px,1fr) minmax(280px,420px);gap:12px;align-items:center;padding:8px 10px;border:1px solid rgba(76,201,240,.32);border-radius:10px;background:rgba(76,201,240,.09);color:#eaf7ff}.voice-picker-preview-panel span{font-size:.76rem;font-weight:850;line-height:1.35}.voice-picker-preview-panel[data-state="error"]{border-color:rgba(248,113,113,.56);background:rgba(248,113,113,.12);color:#ffe3e3}.voice-picker-preview-panel[data-state="loading"]{border-color:rgba(250,204,21,.46);background:rgba(250,204,21,.09);color:#fff2b8}.voice-picker-preview-panel audio{width:100%;height:32px}
.voice-picker-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;overflow-y:scroll;overflow-x:hidden;padding-right:10px;min-height:0;flex:1 1 auto;max-height:100%;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:auto;scrollbar-color:#4cc9f0 rgba(255,255,255,.08)}
.voice-picker-grid::-webkit-scrollbar{width:10px}.voice-picker-grid::-webkit-scrollbar-track{background:rgba(255,255,255,.08);border-radius:999px}.voice-picker-grid::-webkit-scrollbar-thumb{background:#4cc9f0;border-radius:999px;border:2px solid #07111d}
.voice-choice-card{display:grid;gap:8px;padding:10px 9px 9px;border:1px solid rgba(148,163,184,.18);border-radius:8px;background:rgba(255,255,255,.96);text-align:left;color:#10243a;cursor:pointer;min-height:118px;align-content:start}
.voice-choice-card:hover{border-color:rgba(76,201,240,.45);box-shadow:0 10px 24px rgba(5,15,28,.12);transform:translateY(-1px)}
.voice-choice-card.active{border-color:#4cc9f0;box-shadow:0 0 0 3px rgba(76,201,240,.16)}
.voice-choice-top{display:flex;align-items:center;gap:8px;min-width:0}.voice-choice-top strong{font-size:.76rem;font-weight:950;line-height:1.12;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.voice-choice-avatar{display:grid;place-items:center;width:30px;height:30px;overflow:hidden;border-radius:50%;background:#15120f;color:#d7ff36;font-size:.56rem;font-weight:950;flex:0 0 auto}.voice-choice-avatar img{width:100%;height:100%;object-fit:cover}.voice-choice-name{display:grid;gap:3px;min-width:0}.voice-choice-source{display:inline-flex;align-items:center;width:max-content;max-width:100%;padding:2px 6px;border-radius:999px;background:#f3f0e8;color:#675f51;font-size:.56rem;font-weight:900;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.voice-choice-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;align-items:center;margin-top:auto}.voice-choice-actions button{min-height:30px;border-radius:999px;padding:0 7px;font-size:.62rem;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1}.voice-choice-select{border:0;background:#eef9ff;color:#0b6ea8}.voice-choice-favorite,.voice-choice-preview{border:1px solid #ddd8cb;background:#f6f3eb;color:#6d695f}.voice-choice-preview{border-color:#cfe5f8;background:#edf7ff;color:#0b5aa6}.voice-choice-favorite.active{border-color:#111;background:#111;color:#d7ff36}
.voice-picker-empty{display:grid;place-items:center;padding:26px;border:1px dashed rgba(255,255,255,.16);border-radius:12px;color:rgba(233,238,247,.7);font-weight:800}
.voice-picker-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;color:rgba(233,238,247,.74);font-size:.8rem;font-weight:800}.voice-picker-footer-actions{display:flex;gap:8px;align-items:center}.voice-picker-load-more{min-height:38px;border:1px solid rgba(76,201,240,.54);border-radius:9px;background:rgba(76,201,240,.14);color:#e9fbff;padding:0 12px;font-size:.74rem;font-weight:900}.voice-picker-load-more:disabled{opacity:.52;cursor:not-allowed}
.voice-picker-footer .secondary-submit{min-height:38px}
.voice-clone-manager{display:grid;gap:12px;flex:0 0 auto;padding:13px;border:1px solid rgba(151,220,255,.34);border-radius:12px;background:linear-gradient(135deg,rgba(27,85,138,.52),rgba(89,47,146,.38));color:#ecf8ff;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}.voice-clone-manager[hidden]{display:none!important}.voice-clone-manager.is-at-limit{border-color:rgba(250,204,21,.62);background:linear-gradient(135deg,rgba(116,78,12,.43),rgba(100,58,11,.32))}.voice-clone-manager-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.voice-clone-manager-head>div{display:grid;gap:3px;min-width:0}.voice-clone-manager-kicker{color:#7edcff;font-size:.62rem;font-weight:950;letter-spacing:.1em}.voice-clone-manager-head strong{font-size:.94rem;font-weight:950}.voice-clone-manager-head small{max-width:740px;color:#c9e1ef;font-size:.72rem;font-weight:750;line-height:1.42}.voice-clone-manager-head b{display:inline-flex;align-items:center;justify-content:center;min-width:86px;min-height:30px;padding:0 10px;border:1px solid rgba(151,220,255,.42);border-radius:999px;background:rgba(5,21,37,.4);color:#dff7ff;font-size:.72rem;font-weight:950;white-space:nowrap}.voice-clone-manager-head b[data-state="limit"]{border-color:rgba(250,204,21,.7);background:rgba(105,72,9,.52);color:#fff1ab}.voice-clone-form{display:grid;grid-template-columns:minmax(160px,.8fr) minmax(260px,1.2fr);gap:9px 10px}.voice-clone-form label{display:grid;gap:5px;color:#dceefa;font-size:.7rem;font-weight:900}.voice-clone-form input[type="text"],.voice-clone-form input:not([type]){min-height:38px;border:1px solid rgba(178,224,247,.38);border-radius:8px;background:rgba(255,255,255,.96);color:#132b42;padding:0 10px;font-size:.78rem;font-weight:750}.voice-clone-form input[type="file"]{min-height:38px;border:1px dashed rgba(182,228,249,.5);border-radius:8px;background:rgba(4,20,36,.38);color:#eefaff;padding:6px 8px;font-size:.7rem;font-weight:750}.voice-clone-form input:disabled,.voice-clone-form button:disabled{opacity:.55;cursor:not-allowed}.voice-clone-file-hint{grid-column:1/-1;margin:0;color:#c4dce9;font-size:.69rem;font-weight:750;line-height:1.38}.voice-clone-consent{grid-column:1/-1;display:flex!important;align-items:flex-start;gap:8px;cursor:pointer;line-height:1.38}.voice-clone-consent input{width:15px;height:15px;margin:1px 0 0;accent-color:#53c9f4}.voice-clone-submit-row{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:2px}.voice-clone-submit-row>span{color:#d0e7f5;font-size:.7rem;font-weight:800}.voice-clone-submit-row strong{color:#fff}.voice-clone-submit{min-height:36px;border:1px solid #87e3ff;border-radius:9px;background:linear-gradient(135deg,#56d5f6,#3379ed);color:#062235;padding:0 14px;font-size:.74rem;font-weight:950}.voice-clone-manager-notice{margin:0;padding:8px 10px;border:1px solid rgba(151,220,255,.3);border-radius:8px;background:rgba(5,21,37,.28);color:#dcf5ff;font-size:.72rem;font-weight:800;line-height:1.38}.voice-clone-manager-notice[data-state="success"]{border-color:rgba(74,222,128,.48);background:rgba(22,163,74,.14);color:#d8ffe4}.voice-clone-manager-notice[data-state="error"]{border-color:rgba(248,113,113,.54);background:rgba(185,28,28,.16);color:#ffe4e4}.voice-clone-manager-notice[data-state="loading"]{border-color:rgba(250,204,21,.48);background:rgba(161,98,7,.16);color:#fff4be}.voice-clone-manager-notice[data-state="limit"]{border-color:rgba(250,204,21,.56);background:rgba(161,98,7,.16);color:#fff3bc}.voice-choice-actions.has-delete{grid-template-columns:repeat(4,minmax(0,1fr))}.voice-choice-delete{border:1px solid #fecaca;background:#fff1f2;color:#be123c}.voice-choice-delete:disabled{opacity:.62;cursor:wait}
.wizard-preview{position:sticky;top:106px;border:1px solid var(--border);border-radius:12px;background:#fff;padding:12px;box-shadow:var(--shadow)}
.wizard-preview h2{font-size:1rem;font-weight:900}.preview-box{display:grid;place-items:center;margin-top:10px;min-height:176px;border:1px solid var(--border);border-radius:10px;background:#f0f8ff;overflow:hidden}.preview-box img,.preview-box video{width:100%;max-height:220px;object-fit:contain}.preview-box audio{width:92%;margin:16px}
.preview-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.preview-actions a,.preview-actions button{min-height:34px;border:1px solid var(--border);border-radius:8px;background:#f1f8ff;color:var(--primary-dark);padding:0 10px;font-size:.72rem;font-weight:900}.preview-actions .primary,.preview-actions button.primary{border:0;background:var(--primary);color:#fff}.preview-actions .secondary-link{min-height:34px;padding:0 10px}
.preview-loader{position:relative;width:82px;height:82px;margin:0 auto 12px;display:grid;place-items:center}.preview-loader i,.preview-loader span{position:absolute;border-radius:50%}.preview-loader i{inset:0;border:4px solid rgba(22,135,255,.14);border-top-color:var(--primary);border-right-color:var(--secondary);animation:previewSpin .9s linear infinite}.preview-loader span{width:28px;height:28px;background:radial-gradient(circle,#fff 0 36%,var(--secondary) 38% 58%,var(--primary) 60%);box-shadow:0 0 24px rgba(22,135,255,.32);animation:previewPulse 1.2s ease-in-out infinite}.preview-box .empty-state strong{display:block;margin-top:4px}.preview-box .empty-state span{display:block;margin-top:6px;line-height:1.4}
.preview-status{display:grid;gap:6px;margin:10px 0 0}.preview-status div{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #eef3f7;padding-bottom:6px}.preview-status dt{color:var(--muted);font-weight:800;font-size:.78rem}.preview-status dd{margin:0;text-align:right;font-weight:900;font-size:.78rem}
.video-builder-grid{display:grid;grid-template-columns:minmax(260px,.65fr) minmax(0,1fr) minmax(260px,.65fr);gap:14px}.work-panel{padding:16px}.selected-aidol-summary,.export-summary{display:grid;gap:10px;margin:14px 0}.export-summary span{border:1px solid var(--border);border-radius:8px;background:#fbfdff;padding:10px;color:#34516a;font-weight:800;font-size:.86rem}
.livestream-workspace{display:grid;gap:16px}.livestream-brain-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,.38fr);gap:14px;align-items:start}.livestream-brain-form{display:grid;gap:14px}.livestream-aidol-panel{position:sticky;top:106px}.livestream-event-shell{display:grid;gap:14px}.step-pill{display:inline-flex;align-items:center;min-height:25px;padding:0 9px;border-radius:999px;background:#eaf5ff;color:#0b67a3;font-size:.69rem;font-weight:950}.livestream-event-tabs{display:flex;flex-wrap:wrap;gap:8px;border-bottom:1px solid var(--border);padding-bottom:12px}.livestream-event-tabs button{min-height:38px;border:1px solid var(--border);border-radius:9px;background:#f6fbff;color:#34516a;padding:0 13px;font-weight:900}.livestream-event-tabs button.active{border-color:var(--primary);background:var(--primary);color:#fff}.livestream-event-layout{display:grid;grid-template-columns:minmax(320px,.88fr) minmax(400px,1.12fr);gap:14px;align-items:start}.livestream-event-form,.livestream-task-panel{display:grid;gap:13px;padding:14px;border:1px solid var(--border);border-radius:12px;background:#fbfdff}.livestream-event-form h3,.livestream-task-panel h3{margin:0;font-size:1rem}.livestream-event-form .panel-head p,.livestream-task-head p{margin:4px 0 0;color:var(--muted);font-size:.77rem;font-weight:750;line-height:1.4}.livestream-batch-input{max-width:190px}.livestream-batch-input input{max-width:90px}.livestream-batch-input small{display:block;margin-top:4px;color:var(--muted);font-size:.7rem;font-weight:800}.livestream-task-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.livestream-task-actions,.livestream-inline-actions{display:flex;flex-wrap:wrap;gap:7px}.livestream-task-actions button,.livestream-inline-actions button{min-height:32px;border:1px solid var(--border);border-radius:8px;background:#f1f8ff;color:var(--primary-dark);padding:0 9px;font-size:.71rem;font-weight:900}.livestream-task-list{display:grid;gap:9px;max-height:540px;overflow:auto;padding-right:3px}.livestream-task-card{display:grid;grid-template-columns:auto minmax(0,1fr);gap:9px;align-items:start;padding:10px;border:1px solid var(--border);border-radius:10px;background:#fff}.livestream-task-card.selected{border-color:#1b8df2;box-shadow:0 0 0 2px rgba(22,135,255,.09)}.livestream-task-card input[type="checkbox"]{width:17px;height:17px;margin-top:5px;accent-color:var(--primary)}.livestream-task-body{display:grid;gap:7px;min-width:0}.livestream-task-top{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}.livestream-task-top strong{font-size:.8rem}.livestream-task-top span{border-radius:999px;padding:3px 7px;background:#edf7ff;color:#0b67a3;font-size:.62rem;font-weight:950;white-space:nowrap}.livestream-task-top span.queued,.livestream-task-top span.processing{background:#e8f1ff;color:#165fc0}.livestream-task-top span.done{background:#e8f8ef;color:#19733d}.livestream-task-top span.failed{background:#fff0f1;color:#b4232f}.livestream-task-card textarea{min-height:110px;resize:vertical;font-size:.78rem;line-height:1.45;background:#fbfdff}.livestream-task-foot{display:flex;justify-content:space-between;gap:8px;align-items:center;color:var(--muted);font-size:.67rem;font-weight:800}.livestream-task-foot button{border:0;background:transparent;color:#b4232f;font-size:.7rem;font-weight:900}.livestream-batch-lipsync-panel{display:grid;gap:14px}.livestream-lipsync-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.livestream-voice-card,.livestream-motion-folder,.livestream-cost-card{display:grid;gap:7px;align-content:start;padding:13px;border:1px solid var(--border);border-radius:11px;background:#fbfdff}.livestream-voice-card>span,.livestream-cost-card span{color:var(--muted);font-size:.71rem;font-weight:900}.livestream-voice-card strong,.livestream-cost-card strong{font-size:1rem;color:#163d5b}.livestream-voice-card small,.livestream-motion-folder small,.livestream-cost-card small{color:var(--muted);font-size:.72rem;font-weight:750;line-height:1.4}.livestream-motion-folder{font-weight:900;color:#34516a;font-size:.8rem}.livestream-motion-folder input{font-weight:700}.livestream-batch-actions{margin-top:0}.livestream-view .form-actions{margin-top:2px}.livestream-view .selected-aidol-summary{margin-bottom:14px}
.livestream-voice-card audio{width:100%;height:34px}
.livestream-workspace{gap:18px}.livestream-command-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;position:sticky;top:76px;z-index:8;padding:7px;border:1px solid #cfe3f2;border-radius:14px;background:rgba(248,252,255,.94);box-shadow:0 12px 30px rgba(18,83,126,.08);backdrop-filter:blur(14px)}.livestream-command-nav button{min-height:48px;display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid transparent;border-radius:10px;background:transparent;color:#547087;font-size:.81rem;font-weight:950}.livestream-command-nav button span{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#dcebf5;color:#3f637f;font-size:.62rem}.livestream-command-nav button:hover{background:#f0f8ff;color:#075f9c}.livestream-command-nav button.active{border-color:#1487f4;background:linear-gradient(135deg,#0f8cff,#276cf2);color:#fff;box-shadow:0 8px 18px rgba(22,116,235,.22)}.livestream-command-nav button.active span{background:rgba(255,255,255,.22);color:#fff}.livestream-workspace-panel{min-width:0}.livestream-brain-command{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(240px,.7fr) minmax(0,1.3fr);gap:22px;align-items:center;overflow:hidden;border:1px solid #156ca7;border-radius:18px;background:linear-gradient(128deg,#04182c 0%,#082f52 49%,#0a5a83 100%);padding:20px 26px;box-shadow:0 18px 45px rgba(5,50,82,.2)}.livestream-brain-command::before{content:\"\";position:absolute;z-index:-1;inset:0;background:radial-gradient(circle at 72% 20%,rgba(52,210,255,.22),transparent 31%),radial-gradient(circle at 13% 110%,rgba(45,105,255,.23),transparent 38%)}.brain-neural-stage{position:relative;display:grid;place-items:center;min-height:196px;overflow:hidden;border:1px solid rgba(147,226,255,.26);border-radius:14px;background:radial-gradient(circle at 50% 50%,rgba(35,208,255,.16),rgba(3,25,47,.3) 46%,rgba(2,14,30,.86) 100%)}.brain-neural-grid{position:absolute;inset:0;opacity:.4;background-image:linear-gradient(rgba(72,211,255,.17) 1px,transparent 1px),linear-gradient(90deg,rgba(72,211,255,.17) 1px,transparent 1px);background-size:18px 18px;mask-image:radial-gradient(circle,#000 5%,transparent 73%);animation:brainGridDrift 9s linear infinite}.brain-core{position:relative;width:64px;height:64px;border:2px solid rgba(196,248,255,.9);border-radius:50%;background:radial-gradient(circle at 38% 34%,#fff 0 4%,#93edff 7%,#168df5 34%,#072956 69%,#05172f 71%);box-shadow:0 0 0 10px rgba(79,214,255,.06),0 0 34px rgba(56,206,255,.85),inset 0 0 20px rgba(255,255,255,.38);animation:brainCorePulse 2.4s ease-in-out infinite}.brain-orbit{position:absolute;width:144px;height:144px;border:1px solid rgba(115,225,255,.42);border-radius:50%;animation:brainOrbit 7s linear infinite}.brain-orbit::after{content:\"\";position:absolute;width:8px;height:8px;border-radius:50%;background:#b3f5ff;box-shadow:0 0 15px #45dfff;top:8px;left:24px}.brain-orbit.orbit-two{width:184px;height:102px;border-color:rgba(79,126,255,.52);transform:rotate(-32deg);animation-direction:reverse;animation-duration:9s}.brain-orbit.orbit-two::after{background:#9db8ff;box-shadow:0 0 14px #5e87ff;left:auto;right:21px;top:23px}.brain-node{position:absolute;width:7px;height:7px;border-radius:50%;background:#4cdaff;box-shadow:0 0 13px #60dfff;animation:brainNodeFlash 2s ease-in-out infinite}.brain-node::after{content:\"\";position:absolute;width:39px;height:1px;left:4px;top:3px;background:linear-gradient(90deg,rgba(86,222,255,.7),transparent);transform-origin:left}.node-one{top:35px;left:50px}.node-two{right:38px;top:53px;animation-delay:.4s}.node-two::after{transform:rotate(132deg)}.node-three{bottom:36px;left:64px;animation-delay:.8s}.node-three::after{transform:rotate(-36deg)}.node-four{bottom:35px;right:54px;animation-delay:1.2s}.node-four::after{transform:rotate(216deg)}.brain-stage-copy{position:absolute;bottom:13px;left:16px;display:grid;gap:2px;color:#e6faff}.brain-stage-copy b{font-size:.69rem;letter-spacing:.17em}.brain-stage-copy small{color:#83dfff;font-size:.55rem;font-weight:900;letter-spacing:.12em}.brain-command-copy{color:#eefbff}.brain-command-copy .step-pill{background:rgba(116,220,255,.16);color:#b8efff}.brain-command-copy h2{margin:7px 0;color:#fff;font-size:1.45rem;letter-spacing:-.03em}.brain-command-copy p{max-width:790px;margin:0;color:#c4e8fa;font-size:.84rem;line-height:1.6;font-weight:680}.brain-signal-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.brain-signal-list span{border:1px solid rgba(147,227,255,.22);border-radius:999px;background:rgba(8,25,48,.3);color:#ccf3ff;padding:6px 9px;font-size:.68rem;font-weight:900}.livestream-event-workspace{display:grid;gap:14px}.livestream-event-command-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;border:1px solid #d4e4f0;border-radius:15px;background:linear-gradient(115deg,#fff 0%,#f4fbff 100%);padding:18px 20px}.livestream-event-command-head h2{margin:6px 0 3px;color:#143c59;font-size:1.22rem;letter-spacing:-.025em}.livestream-event-command-head p{max-width:760px;margin:0;color:#61798d;font-size:.79rem;line-height:1.48;font-weight:700}.livestream-event-stat{display:grid;flex:0 0 auto;min-width:110px;gap:1px;border:1px solid #cae5f6;border-radius:12px;background:#eaf7ff;padding:10px 13px;text-align:right}.livestream-event-stat strong{color:#0875c9;font-size:1.35rem;line-height:1;font-weight:950}.livestream-event-stat span{color:#527189;font-size:.67rem;font-weight:850}.livestream-script-rail{display:grid;grid-template-columns:190px minmax(0,1fr);gap:13px;align-items:center;border:1px solid #dbe8f2;border-radius:14px;background:#fff;padding:11px 13px}.livestream-script-rail-copy{display:grid;gap:3px}.livestream-script-rail-copy span{color:#193f5c;font-size:.79rem;font-weight:950}.livestream-script-rail-copy small{color:#7890a2;font-size:.66rem;line-height:1.32;font-weight:750}.livestream-script-tabs{display:flex;align-items:stretch;gap:7px;min-width:0;overflow-x:auto;padding-bottom:2px}.livestream-script-tabs button{display:grid;grid-template-columns:auto minmax(64px,1fr);gap:0 7px;align-items:center;min-width:135px;border:1px solid #d5e4ef;border-radius:9px;background:#f8fbfd;color:#48677d;padding:8px 10px;text-align:left;font-size:.72rem;font-weight:900}.livestream-script-tabs button>span{grid-row:1/3;display:grid;place-items:center;width:22px;height:22px;border-radius:6px;background:#ddebF5;color:#58758b;font-size:.65rem}.livestream-script-tabs button small{color:#7b94a6;font-size:.61rem;font-weight:800}.livestream-script-tabs button.active{border-color:#0d89f4;background:linear-gradient(135deg,#e9f7ff,#f7fcff);color:#0871bf;box-shadow:0 0 0 2px rgba(19,136,245,.1)}.livestream-script-tabs button.active>span{background:#1489ee;color:#fff}.livestream-add-script{display:inline-flex!important;grid-template-columns:none!important;place-items:center;min-width:132px!important;border-style:dashed!important;background:#f5fbff!important;color:#0c78c7!important}.livestream-pipeline-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border:1px solid #d7e4ed;border-radius:12px;background:#fff;overflow:hidden}.livestream-pipeline-tabs button{position:relative;min-height:52px;border:0;border-right:1px solid #e2edf4;background:#fff;color:#60798d;font-size:.75rem;font-weight:950}.livestream-pipeline-tabs button:last-child{border-right:0}.livestream-pipeline-tabs button i{display:inline-grid;place-items:center;width:19px;height:19px;margin-right:5px;border-radius:50%;background:#e0edf5;color:#5f7b90;font-size:.6rem;font-style:normal}.livestream-pipeline-tabs button small{display:inline-grid;place-items:center;min-width:17px;height:17px;margin-left:4px;border-radius:999px;background:#e9f6ff;color:#0d78bd;font-size:.6rem}.livestream-pipeline-tabs button.active{background:linear-gradient(180deg,#f0f9ff,#e2f4ff);color:#056bad;box-shadow:inset 0 -3px 0 #138bf3}.livestream-pipeline-tabs button.active i{background:#138bf3;color:#fff}.livestream-pipeline-panel{border:1px solid #d6e5ef;border-radius:14px;background:#fff;padding:18px}.livestream-pipeline-panel[hidden]{display:none}.livestream-script-form{display:grid;gap:15px}.livestream-script-form-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-end}.livestream-script-form-head h3,.livestream-content-panel-head h3{margin:0;color:#163d59;font-size:1rem}.livestream-script-form-head p,.livestream-content-panel-head p{margin:4px 0 0;color:#6d8597;font-size:.75rem;line-height:1.42;font-weight:720}.livestream-script-form-head label{display:grid;gap:5px;min-width:min(100%,260px);color:#567287;font-size:.69rem;font-weight:900}.livestream-script-form-head input{min-height:36px}.livestream-source-mode{display:grid;grid-template-columns:1fr 1fr;gap:10px}.livestream-source-mode button{display:grid;gap:5px;min-height:92px;border:1px solid #d1e1ed;border-radius:12px;background:#fbfdff;color:#406078;padding:13px;text-align:left}.livestream-source-mode button strong{color:#1e4967;font-size:.84rem}.livestream-source-mode button span{color:#768e9e;font-size:.72rem;line-height:1.4;font-weight:720}.livestream-source-mode button.active{border-color:#0c89f3;background:linear-gradient(135deg,#e5f6ff,#fafdff);box-shadow:0 0 0 3px rgba(16,138,246,.09)}.livestream-source-mode button.active strong{color:#0872bd}.livestream-source-panel{border:1px solid #e0ebf2;border-radius:12px;background:#fcfeff;padding:14px}.livestream-source-panel[hidden]{display:none}.livestream-manual-panel label{display:grid;gap:7px;color:#36556b;font-size:.78rem;font-weight:950}.livestream-manual-panel textarea{min-height:230px;resize:vertical;line-height:1.48}.livestream-manual-panel small{color:#748b9b;font-size:.69rem;line-height:1.42;font-weight:730}.livestream-content-panel-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:14px}.livestream-content-list{display:grid;gap:10px;max-height:680px;overflow:auto;padding-right:3px}.livestream-content-card{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;border:1px solid #d9e6ef;border-radius:12px;background:#fff;padding:11px;transition:.16s ease}.livestream-content-card.selected{border-color:#23a0f7;background:linear-gradient(110deg,#f3fbff,#fff);box-shadow:0 0 0 2px rgba(20,143,244,.08)}.livestream-content-check input{width:18px;height:18px;margin-top:5px;accent-color:#1687f5}.livestream-content-body{display:grid;gap:8px;min-width:0}.livestream-content-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.livestream-content-top strong{display:block;color:#23445e;font-size:.81rem}.livestream-content-top small{display:block;margin-top:3px;color:#8aa0af;font-size:.64rem;font-weight:800}.livestream-content-statuses{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:5px}.livestream-content-statuses span{border-radius:999px;background:#f0f5f8;color:#637b8d;padding:3px 7px;font-size:.6rem;font-weight:950;white-space:nowrap}.livestream-content-statuses span.queued,.livestream-content-statuses span.processing{background:#eaf3ff;color:#1668bd}.livestream-content-statuses span.done{background:#e7f8ec;color:#18713d}.livestream-content-statuses span.failed{background:#fff0f1;color:#b32338}.livestream-content-card textarea{min-height:108px;resize:vertical;border-color:#e0eaf1;background:#fbfdff;font-size:.77rem;line-height:1.46}.livestream-content-foot{display:flex;justify-content:space-between;gap:10px;align-items:center;color:#728a9a;font-size:.64rem;font-weight:780;line-height:1.35}.livestream-content-foot span{overflow-wrap:anywhere}.livestream-content-foot button{flex:0 0 auto;border:0;background:transparent;color:#bd2e42;font-size:.68rem;font-weight:950}.livestream-content-empty{min-height:180px;border:1px dashed #cbdde9;border-radius:12px;background:#fafdff}.livestream-stage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.livestream-stage-card{display:grid;gap:8px;align-content:start;border:1px solid #d8e7f0;border-radius:13px;background:linear-gradient(145deg,#fbfdff,#f3faff);padding:15px}.livestream-stage-card>span{color:#668399;font-size:.68rem;font-weight:950;text-transform:uppercase;letter-spacing:.035em}.livestream-stage-card>strong{color:#153f5e;font-size:1rem}.livestream-stage-card>small{color:#70899c;font-size:.73rem;line-height:1.45;font-weight:720}.livestream-stage-voice{border-color:#9bd5fb;background:radial-gradient(circle at 90% 0,rgba(51,199,255,.18),transparent 42%),linear-gradient(145deg,#fafeff,#eef9ff)}.livestream-stage-card audio{width:100%;height:34px}.livestream-motion-choice input{width:100%;color:#537087;font-size:.72rem}.livestream-motion-choice .livestream-motion-folder{padding:10px;border:1px dashed #a8cde5;border-radius:9px;background:#fff}.livestream-cost-line{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:3px;border-top:1px solid #dceaf2;padding-top:9px;color:#57748a;font-size:.7rem;font-weight:850}.livestream-cost-line b{color:#0875c9;font-size:.86rem}.livestream-event-notice{margin-top:12px}
@keyframes brainGridDrift{to{background-position:36px 36px}}@keyframes brainCorePulse{50%{transform:scale(1.1);box-shadow:0 0 0 17px rgba(79,214,255,.04),0 0 42px rgba(56,206,255,.96),inset 0 0 22px rgba(255,255,255,.48)}}@keyframes brainOrbit{to{transform:rotate(360deg)}}@keyframes brainNodeFlash{50%{transform:scale(1.7);background:#e8fdff;box-shadow:0 0 22px #8cecff}}
@media(max-width:900px){.livestream-command-nav{position:static}.livestream-brain-command{grid-template-columns:1fr;padding:18px}.brain-neural-stage{min-height:170px}.livestream-script-rail{grid-template-columns:1fr}.livestream-event-command-head,.livestream-script-form-head,.livestream-content-panel-head{align-items:stretch;flex-direction:column}.livestream-event-stat{text-align:left;width:max-content}.livestream-script-form-head label{min-width:0}.livestream-stage-grid{grid-template-columns:1fr}}
@media(max-width:620px){.livestream-view{padding:14px}.livestream-command-nav{grid-template-columns:1fr}.livestream-command-nav button{justify-content:flex-start;padding:0 13px}.livestream-pipeline-tabs{grid-template-columns:1fr 1fr}.livestream-pipeline-tabs button:nth-child(2){border-right:0}.livestream-pipeline-tabs button:nth-child(-n+2){border-bottom:1px solid #e2edf4}.livestream-source-mode{grid-template-columns:1fr}.livestream-pipeline-panel{padding:13px}.livestream-content-top,.livestream-content-foot{flex-direction:column}.livestream-content-statuses{justify-content:flex-start}.livestream-inline-actions{gap:5px}.livestream-inline-actions button{font-size:.66rem}}
.empty-state{display:grid;place-items:center;text-align:center;color:var(--muted);padding:22px;gap:6px}.empty-state strong{font-weight:900;color:#34516a}.empty-state span{font-size:.84rem;line-height:1.45}
.aidol-card{border:1px solid var(--border);border-radius:12px;background:#fff;padding:14px;display:grid;gap:12px;box-shadow:0 10px 28px rgba(15,52,86,.05);min-height:100%}
.aidol-card-head{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}.aidol-card-title{display:grid;gap:4px}.aidol-card-title strong{font-size:1rem}.aidol-card-title small,.aidol-card-meta{color:var(--muted);font-size:.75rem;font-weight:800;line-height:1.35}
.aidol-thumb{width:100%;aspect-ratio:4/3;border-radius:10px;overflow:hidden;background:#eff7ff;border:1px solid var(--border)}.aidol-thumb img,.aidol-thumb video{display:block;width:100%;height:100%;object-fit:cover}
.aidol-card-stats,.aidol-card-actions,.aidol-card-foot{display:flex;flex-wrap:wrap;gap:8px}.aidol-id-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 10px;border:1px solid #bfdbfe;border-radius:8px;background:#eff6ff;color:#1e3a8a;font-size:.72rem;font-weight:850}.aidol-id-row code,.aidol-motion-id{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#172554;font-size:.68rem;word-break:break-all}.aidol-id-row button,.aidol-mini-actions button{min-height:27px;border:1px solid #93c5fd;border-radius:7px;background:#fff;color:#1d4ed8;padding:0 8px;font-size:.67rem;font-weight:900}.aidol-child-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.aidol-mini-card{border:1px solid var(--border);border-radius:8px;background:#fbfdff;padding:10px;display:grid;gap:5px}.aidol-mini-card strong{font-size:.78rem}.aidol-mini-card small,.aidol-mini-card span,.aidol-motion-pending{color:var(--muted);font-size:.68rem;font-weight:800;line-height:1.3}.aidol-motion-card-head{display:flex;justify-content:space-between;gap:6px;align-items:flex-start}.aidol-motion-card-head .status{font-size:.58rem;padding:3px 5px}.aidol-motion-preview{width:100%;aspect-ratio:9/16;max-height:180px;object-fit:cover;border-radius:7px;background:#0f172a}.aidol-mini-actions{display:flex;flex-wrap:wrap;gap:5px}.aidol-mini-actions button:last-child{border-color:#fecaca;background:#fff1f2;color:#b91c1c}
.motion-upload-meta{display:block;margin-top:7px;padding:8px 10px;border:1px dashed #93c5fd;border-radius:8px;background:#eff6ff;color:#1e3a8a;font-size:.75rem;font-weight:800}
.wizard-motion-library{display:grid;gap:12px;margin-top:4px;padding:14px;border:1px solid #cfe3f5;border-radius:12px;background:linear-gradient(135deg,#f8fbff,#f0f7ff)}
.wizard-motion-library-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}.wizard-motion-library-head>div{display:grid;gap:4px}.wizard-motion-library-head strong{font-size:.95rem}.wizard-motion-library-head small{color:var(--muted);font-size:.75rem;font-weight:750}.wizard-motion-library-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.wizard-motion-library-list .aidol-mini-card{background:#fff}.wizard-motion-library-list .aidol-motion-preview{max-height:140px}
.aidol-pill{display:inline-flex;align-items:center;min-height:28px;padding:0 9px;border-radius:999px;background:#f1f8ff;color:var(--primary-dark);font-size:.72rem;font-weight:900;border:1px solid #cfe5f8}
.aidol-card-actions button,.aidol-clone-actions button,.aidol-clone-row button{min-height:32px;border:1px solid var(--border);border-radius:8px;background:#f1f8ff;color:var(--primary-dark);padding:0 9px;font-size:.72rem;font-weight:900}.aidol-card-actions button.primary{border:0;background:var(--primary);color:#fff}.aidol-card-foot a{color:var(--primary-dark);font-size:.78rem;font-weight:900}
.aidol-clone-list{display:grid;gap:8px}.aidol-clone-row{display:flex;justify-content:space-between;gap:8px;align-items:center;border:1px solid var(--border);border-radius:10px;padding:10px 12px;background:#fff}.aidol-clone-row small{display:block;color:var(--muted);font-size:.72rem;margin-top:3px}.aidol-clone-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.jobs-list{display:grid;gap:10px;max-height:520px;overflow:auto}.jobs-list-large{max-height:none}.job-card{display:grid;grid-template-columns:1fr auto;gap:8px;width:100%;text-align:left;border:1px solid var(--border);background:#fff;border-radius:10px;padding:12px}.job-card.selected{border-color:var(--primary);box-shadow:0 0 0 2px rgba(22,135,255,.08)}.job-title{font-weight:900}.job-meta{color:var(--muted);font-size:.82rem;margin-top:4px;overflow-wrap:anywhere}.download-link{display:inline-block;margin-top:8px;color:var(--primary-dark);font-weight:900}.job-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.job-actions button{border:1px solid var(--border);border-radius:999px;background:#f1f8ff;color:var(--primary-dark);padding:7px 10px;font-size:.72rem;font-weight:900}.job-actions button.primary{border:0;background:var(--primary);color:#fff}.debug-text{display:none}.error-text{color:var(--danger);font-weight:800}.history-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;padding-top:14px;border-top:1px solid var(--border)}.history-pagination span{color:var(--muted);font-size:.8rem;font-weight:850}.history-pagination .refresh-btn:disabled{cursor:wait;opacity:.65}
.selection-hint{margin:-6px 0 12px;color:var(--muted);font-weight:800}
.history-page-nav,.history-page-numbers{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.history-page-nav{justify-content:flex-end}.history-page-step,.history-page-number{min-width:36px;height:36px;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--primary-dark);padding:0 10px;font-size:.75rem;font-weight:900}.history-page-number{padding:0}.history-page-number.active{border-color:var(--primary);background:var(--primary);color:#fff;box-shadow:0 5px 12px rgba(22,135,255,.2)}.history-page-step:disabled,.history-page-number:disabled{cursor:not-allowed;opacity:.45}.history-page-number.active:disabled{cursor:default;opacity:1}.history-page-ellipsis{display:grid;min-width:26px;height:36px;place-items:center;color:var(--muted);font-weight:900}
@media(max-width:760px){.history-pagination{align-items:stretch;flex-direction:column}.history-page-nav{display:grid;grid-template-columns:1fr 1fr}.history-page-numbers{grid-column:1/-1;grid-row:1;justify-content:center;width:100%}.history-page-step{width:100%}.history-page-step:first-child{grid-column:1;grid-row:2}.history-page-step:last-child{grid-column:2;grid-row:2}}

/* Public Tun Coin ledger -------------------------------------------------- */
.history-ledger-tabs{display:inline-flex;align-items:center;gap:3px;margin-bottom:16px;border:1px solid #cddde7;border-radius:8px;background:#edf4f8;padding:3px}.history-ledger-tab{min-height:38px;border:0;border-radius:6px;background:transparent;color:#668093;padding:0 17px;font-size:.73rem;font-weight:950}.history-ledger-tab:hover{background:#f8fbfd;color:#255e7c}.history-ledger-tab.active{background:#fff;color:#126fa6;box-shadow:0 3px 10px rgba(33,83,116,.12)}.history-ledger-tab:focus-visible{outline:2px solid #1687ff;outline-offset:2px}.history-tab-panel{display:grid;gap:13px}.history-tab-panel[hidden]{display:none}.history-panel-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;border-bottom:1px solid #dce8ef;padding:0 1px 13px}.history-panel-toolbar>div:first-child{display:grid;gap:3px}.history-panel-toolbar>div:first-child strong{color:#244e68;font-size:.91rem;font-weight:950}.history-panel-toolbar>div:first-child span{color:#708b9c;font-size:.7rem;font-weight:720;line-height:1.4}.coin-history-toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}.coin-history-current-balance{display:inline-flex;min-height:37px;align-items:center;gap:5px;border:1px solid #cfe1ea;border-radius:7px;background:#f8fbfd;color:#718999;padding:0 11px;font-size:.67rem;font-weight:800;white-space:nowrap}.coin-history-current-balance strong{color:#146c96;font-size:.79rem;font-weight:950}.coin-history-list{min-height:220px}.coin-history-table-wrap{overflow:auto;border:1px solid #d8e7f0;border-radius:8px;background:#fff;box-shadow:0 12px 28px rgba(30,84,119,.06)}.coin-history-table{width:100%;min-width:760px;border-collapse:separate;border-spacing:0;text-align:left}.coin-history-table thead th{border-bottom:1px solid #d5e6f0;background:#f5faff;color:#54758a;padding:12px 14px;font-size:.62rem;font-weight:950;letter-spacing:.075em;text-transform:uppercase;white-space:nowrap}.coin-history-table tbody td{border-bottom:1px solid #e6eff4;padding:13px 14px;color:#607d90;font-size:.7rem;font-weight:750;vertical-align:middle}.coin-history-table tbody tr:last-child td{border-bottom:0}.coin-history-row{background:#fff}.coin-history-row:hover{background:#f9fcfe}.coin-history-row.is-refund{background:linear-gradient(90deg,rgba(43,153,98,.055),#fff 30%)}.coin-history-row.is-hold{background:linear-gradient(90deg,rgba(220,148,34,.055),#fff 30%)}.coin-history-task{display:block;max-width:480px;color:#244f68;font-size:.74rem;font-weight:950;line-height:1.4}.coin-history-amount{display:inline-flex;min-width:108px;justify-content:flex-end;border-radius:6px;padding:6px 8px;font-size:.72rem;font-weight:950;white-space:nowrap}.coin-history-amount.is-debit{background:#fff1f2;color:#c23b4a}.coin-history-amount.is-credit{background:#eef9f3;color:#19824f}.coin-history-amount.is-refund{background:#e9f8f0;color:#157747}.coin-history-amount.is-hold{background:#fff6e8;color:#a8650b}.coin-history-balance{color:#335f77;font-size:.73rem;font-weight:950;white-space:nowrap}.coin-history-table time{white-space:nowrap}
@media(max-width:760px){.history-ledger-tabs{display:grid;grid-template-columns:1fr 1fr;width:100%}.history-ledger-tab{width:100%;padding:0 8px}.history-panel-toolbar{align-items:stretch;flex-direction:column}.history-panel-toolbar>.refresh-btn{align-self:flex-start}.coin-history-toolbar-actions{align-items:stretch;justify-content:stretch;flex-direction:column}.coin-history-current-balance{justify-content:space-between}.coin-history-toolbar-actions .refresh-btn{width:100%}.coin-history-table-wrap{overflow:visible;border:0;background:transparent;box-shadow:none}.coin-history-table{display:block;min-width:0}.coin-history-table thead{display:none}.coin-history-table tbody{display:grid;gap:8px}.coin-history-table tbody tr{display:grid;gap:0;overflow:hidden;border:1px solid #d8e7f0;border-radius:8px;background:#fff}.coin-history-table tbody td{display:grid;grid-template-columns:minmax(105px,.72fr) minmax(0,1.28fr);align-items:center;gap:10px;border-bottom:1px solid #e7eff4;padding:10px 11px;text-align:right}.coin-history-table tbody td::before{content:attr(data-label);color:#7892a2;font-size:.59rem;font-weight:900;text-align:left;text-transform:uppercase}.coin-history-table tbody td:last-child{border-bottom:0}.coin-history-task{max-width:none;text-align:right}.coin-history-amount{justify-self:end;min-width:0}.coin-history-table time,.coin-history-balance{white-space:normal}.coin-history-row.is-refund,.coin-history-row.is-hold{background:#fff}}
.status{align-self:start;border-radius:999px;padding:6px 10px;background:#94a3b8;color:#fff;font-size:.68rem;font-weight:900}.status.done{background:var(--success)}.status.processing,.status.running{background:var(--primary)}.status.queued{background:#94a3b8}.status.failed{background:var(--danger)}

/* Livestream: chọn AIDOL trước, sau đó mới cấu hình bộ não và sự kiện. */
.livestream-view{position:relative;overflow:hidden;background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(244,250,255,.98) 58%,rgba(249,247,255,.98));isolation:isolate}
.livestream-view::before{content:"";position:absolute;z-index:-1;inset:0;background-image:linear-gradient(rgba(24,137,245,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(24,137,245,.035) 1px,transparent 1px);background-size:34px 34px;mask-image:linear-gradient(to bottom,#000 0,transparent 53%);pointer-events:none}
.live-setup-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.23fr) minmax(330px,.77fr);gap:28px;isolation:isolate;overflow:hidden;margin:-2px -2px 22px;border:1px solid rgba(100,194,255,.36);border-radius:22px;background:linear-gradient(119deg,#06172e 0%,#092d5d 44%,#30317d 100%);padding:30px;box-shadow:0 22px 54px rgba(20,55,119,.21)}
.live-setup-hero::before,.live-setup-hero::after{content:"";position:absolute;z-index:-1;border-radius:50%;pointer-events:none}.live-setup-hero::before{width:430px;height:430px;right:-150px;top:-210px;border:1px solid rgba(121,218,255,.26);box-shadow:0 0 0 38px rgba(66,159,255,.04),0 0 0 76px rgba(87,112,255,.04)}.live-setup-hero::after{width:530px;height:250px;left:-150px;bottom:-198px;background:radial-gradient(ellipse,rgba(0,217,255,.23),transparent 67%)}
.live-setup-hero-copy{position:relative;z-index:1;display:grid;align-content:center;justify-items:start;min-height:220px}.live-setup-kicker{display:inline-flex;align-items:center;gap:7px;color:#9de8ff;font-size:.64rem;font-weight:950;letter-spacing:.13em}.live-setup-kicker i{width:8px;height:8px;border-radius:50%;background:#52f4b3;box-shadow:0 0 0 4px rgba(82,244,179,.12),0 0 16px #52f4b3;animation:liveSetupSignal 1.7s ease-in-out infinite}.live-setup-hero .eyebrow{margin-top:13px;color:#8dbdf7}.live-setup-hero h1{max-width:620px;margin:5px 0 8px;color:#f7fcff;font-size:clamp(2.15rem,4vw,3.5rem);letter-spacing:-.057em;line-height:.98}.live-setup-hero h1 span{color:#77e5ff;text-shadow:0 0 28px rgba(119,229,255,.26)}.live-setup-hero p{max-width:670px;margin:0;color:#c6d9f4;font-size:.9rem;font-weight:650;line-height:1.58}.live-setup-flow{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:22px;color:#dff7ff}.live-setup-flow span{display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(144,214,255,.22);border-radius:999px;background:rgba(5,23,52,.36);padding:7px 10px;font-size:.65rem;font-weight:850;backdrop-filter:blur(9px)}.live-setup-flow b{color:#74e3ff;font-size:.61rem}.live-setup-flow>i{color:#79b9f8;font-style:normal;font-weight:950}
.live-setup-orbit{position:absolute;z-index:-1;border:1px solid rgba(101,215,255,.18);border-radius:50%;pointer-events:none}.live-setup-orbit-one{right:19%;top:-143px;width:400px;height:400px;transform:rotate(26deg)}.live-setup-orbit-two{right:5%;bottom:-215px;width:480px;height:260px;transform:rotate(-25deg)}
.live-setup-downloads{position:relative;z-index:1;display:grid;align-content:center;gap:9px}.live-setup-downloads-head{display:flex;justify-content:space-between;gap:12px;align-items:baseline;padding:0 3px;color:#fff}.live-setup-downloads-head span{font-size:.77rem;font-weight:950;letter-spacing:.025em}.live-setup-downloads-head small{color:#a8c8ee;font-size:.61rem;font-weight:750;text-align:right}.live-download-card{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:11px;align-items:center;min-height:74px;border:1px solid rgba(152,216,255,.25);border-radius:14px;background:linear-gradient(118deg,rgba(255,255,255,.13),rgba(166,200,255,.055));padding:10px 12px;color:#fff;box-shadow:0 12px 28px rgba(2,13,43,.14);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;backdrop-filter:blur(12px)}.live-download-live{grid-template-columns:64px minmax(0,1fr) auto}.live-download-card:hover{transform:translateY(-3px);border-color:rgba(154,236,255,.7);background:linear-gradient(118deg,rgba(255,255,255,.2),rgba(99,182,255,.15));box-shadow:0 16px 32px rgba(2,13,43,.25),0 0 0 3px rgba(77,207,255,.09)}.live-download-icon{display:grid;place-items:center;width:40px;height:40px;border:1px solid rgba(203,244,255,.31);border-radius:11px;background:linear-gradient(135deg,rgba(86,231,255,.34),rgba(85,120,255,.24));color:#e9fcff}.live-download-brand-icon{width:64px;background:linear-gradient(135deg,rgba(239,251,255,.96),rgba(168,229,255,.82));box-shadow:inset 0 0 0 1px rgba(255,255,255,.55),0 6px 16px rgba(0,25,72,.16)}.live-download-brand-icon img{display:block;width:55px;height:30px;object-fit:contain;filter:drop-shadow(0 2px 3px rgba(18,55,180,.17))}.live-download-autopin .live-download-icon{background:linear-gradient(135deg,rgba(168,115,255,.38),rgba(72,183,255,.24));color:#f1eaff}.live-download-icon svg{width:22px;height:22px}.live-download-card>span:nth-child(2){display:grid;gap:3px;min-width:0}.live-download-card b{font-size:.79rem}.live-download-card small{overflow:hidden;color:#bdd3f0;font-size:.63rem;font-weight:650;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.live-download-card em{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:rgba(255,255,255,.11);color:#c5efff;font-size:.82rem;font-style:normal;transition:transform .18s ease,background .18s ease}.live-download-card:hover em{transform:translate(2px,-2px);background:rgba(138,229,255,.22)}.live-setup-character-link{justify-self:end;margin-top:3px;color:#9ccef6;font-size:.67rem;font-weight:850;transition:color .16s ease}.live-setup-character-link span{margin-left:3px;font-size:.85rem}.live-setup-character-link:hover{color:#e2f8ff}
.live-setup-console-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;margin-top:1px;padding:0 3px}.live-setup-console-head>div{display:grid;gap:2px}.live-setup-console-head span{color:#1687df;font-size:.61rem;font-weight:950;letter-spacing:.105em}.live-setup-console-head strong{color:#1b405d;font-size:.96rem}.live-setup-console-head small{color:#68849a;font-size:.67rem;font-weight:750}.livestream-workspace{position:relative}
.livestream-command-nav{border-color:#b9dff8;background:linear-gradient(115deg,rgba(255,255,255,.94),rgba(235,247,255,.96));box-shadow:0 16px 38px rgba(20,96,152,.12)}.livestream-command-nav button{position:relative;overflow:hidden;transition:transform .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease}.livestream-command-nav button::after{content:"";position:absolute;inset:auto 15px 0;height:2px;border-radius:2px;background:#56cfff;transform:scaleX(0);transition:transform .18s ease}.livestream-command-nav button:hover{transform:translateY(-1px);background:linear-gradient(135deg,#eaf8ff,#f9fcff);box-shadow:0 7px 15px rgba(24,138,243,.1)}.livestream-command-nav button:hover::after{transform:scaleX(1)}.livestream-command-nav button.active::after{background:rgba(255,255,255,.85);transform:scaleX(1)}.livestream-command-nav button.active{background:linear-gradient(135deg,#088ff3,#3159e8 76%,#824be9);box-shadow:0 10px 22px rgba(45,93,232,.28)}
.livestream-aidol-command{border-color:#b3def6;background:radial-gradient(circle at 100% 0,rgba(49,216,255,.25),transparent 36%),linear-gradient(130deg,#fbfeff,#e9f7ff);transition:transform .18s ease,box-shadow .18s ease}.livestream-aidol-command:hover{transform:translateY(-2px);box-shadow:0 19px 38px rgba(15,92,142,.13)}.livestream-publish-card{position:relative;overflow:hidden;border-color:#b8dcf7;background:linear-gradient(118deg,#f9fdff,#edf8ff)}.livestream-publish-card::after{content:"";position:absolute;right:-40px;bottom:-62px;width:190px;height:190px;border:1px solid rgba(29,159,244,.15);border-radius:50%;box-shadow:0 0 0 26px rgba(29,159,244,.04);pointer-events:none}.livestream-publish-card .panel-head,.livestream-publish-card .form-actions,.livestream-publish-card .notice{position:relative;z-index:1}
.live-download-live{grid-template-columns:44px minmax(0,1fr) auto}.live-download-product-icon{width:44px;height:44px;overflow:hidden;background:linear-gradient(135deg,rgba(6,21,47,.88),rgba(21,80,140,.74));box-shadow:inset 0 0 0 1px rgba(255,255,255,.13),0 6px 16px rgba(0,18,54,.24)}.live-download-product-icon img{display:block;width:100%;height:100%;object-fit:cover}.live-download-autopin .live-download-product-icon{background:#110a23}
@keyframes liveSetupSignal{50%{transform:scale(.72);opacity:.55;box-shadow:0 0 0 7px rgba(82,244,179,0),0 0 20px #52f4b3}}
@media(max-width:980px){.live-setup-hero{grid-template-columns:1fr;gap:18px}.live-setup-hero-copy{min-height:0}.live-setup-downloads{max-width:620px;width:100%}}
@media(max-width:620px){.live-setup-hero{margin:0 -2px 18px;padding:20px 17px;border-radius:17px}.live-setup-hero h1{font-size:2.25rem}.live-setup-flow{gap:6px}.live-setup-flow>i{display:none}.live-setup-flow span{font-size:.59rem;padding:6px 8px}.live-setup-downloads-head{align-items:flex-start;flex-direction:column;gap:3px}.live-setup-downloads-head small{text-align:left}.live-download-card{min-height:69px}.live-download-card small{white-space:normal}.live-setup-console-head{align-items:flex-start;flex-direction:column;gap:4px}.live-setup-console-head small{padding-left:1px}.livestream-command-nav{top:70px}}

/* AIDOL Live Saler Cloud preview: visible before the authenticated Cloud gateway is ready. */
.live-cloud-preview-card{position:relative;display:grid;gap:13px;overflow:hidden;border:1px solid rgba(104,220,255,.48);border-radius:16px;background:linear-gradient(135deg,rgba(24,196,236,.19),rgba(109,85,255,.25) 58%,rgba(9,19,64,.42));padding:15px 15px 14px;color:#f6fcff;box-shadow:0 14px 34px rgba(1,12,45,.23),inset 0 1px 0 rgba(255,255,255,.13);backdrop-filter:blur(14px)}
.live-cloud-preview-card::before{content:"";position:absolute;right:-48px;top:-62px;width:150px;height:150px;border:1px solid rgba(145,237,255,.28);border-radius:50%;box-shadow:0 0 0 20px rgba(54,206,255,.06),0 0 0 42px rgba(118,103,255,.05);pointer-events:none}
.live-cloud-preview-topline{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:8px}.live-cloud-preview-icon{display:grid;place-items:center;width:28px;height:28px;border:1px solid rgba(186,239,255,.42);border-radius:9px;background:linear-gradient(135deg,rgba(116,239,255,.38),rgba(107,101,255,.4));color:#dffbff;font-size:1rem;box-shadow:0 4px 14px rgba(24,190,255,.22)}.live-cloud-preview-status{display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(139,240,203,.3);border-radius:999px;background:rgba(10,70,69,.28);padding:5px 8px;color:#b5ffdf;font-size:.57rem;font-weight:900;letter-spacing:.055em;text-transform:uppercase}.live-cloud-preview-status i{width:6px;height:6px;border-radius:50%;background:#63f2b2;box-shadow:0 0 0 3px rgba(99,242,178,.13),0 0 12px rgba(99,242,178,.75);animation:liveSetupSignal 1.7s ease-in-out infinite}.live-cloud-preview-copy{position:relative;z-index:1;display:grid;gap:5px}.live-cloud-preview-kicker{color:#99edff;font-size:.57rem;font-weight:950;letter-spacing:.14em}.live-cloud-preview-copy h2{margin:0;color:#fff;font-size:1.07rem;line-height:1.12;letter-spacing:-.02em}.live-cloud-preview-copy p{margin:0;color:#cee2fa;font-size:.66rem;font-weight:650;line-height:1.43}.live-cloud-preview-benefits{display:grid;gap:5px;margin:5px 0 0;padding:0;list-style:none}.live-cloud-preview-benefits li{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:baseline;gap:6px;color:#bcd3ef;font-size:.59rem;line-height:1.25}.live-cloud-preview-benefits b{color:#e8fbff;font-size:.6rem}.live-cloud-preview-benefits span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.live-cloud-preview-btn{position:relative;z-index:1;width:100%;border:1px solid rgba(160,220,255,.24);border-radius:10px;background:rgba(5,22,54,.42);padding:9px 10px;color:#aac8e6;font-size:.65rem;font-weight:850;cursor:not-allowed;opacity:.88}.live-cloud-preview-btn:disabled{pointer-events:none}
@media(max-width:620px){.live-cloud-preview-card{padding:14px 13px}.live-cloud-preview-copy h2{font-size:1rem}.live-cloud-preview-copy p{font-size:.65rem}.live-cloud-preview-benefits li{grid-template-columns:1fr;gap:1px}.live-cloud-preview-benefits span{white-space:normal}.live-cloud-preview-btn{font-size:.63rem}}
.livestream-command-nav{grid-template-columns:repeat(4,minmax(0,1fr))}
.livestream-command-nav button.locked,.livestream-command-nav button:disabled{cursor:not-allowed;opacity:.52}
.livestream-command-nav button:disabled{pointer-events:none}
.livestream-aidol-command{display:grid;gap:18px;grid-template-columns:minmax(0,1fr) auto;align-items:center;border:1px solid #c7e4f6;border-radius:18px;padding:22px;background:radial-gradient(circle at 100% 0,rgba(57,185,255,.2),transparent 36%),linear-gradient(130deg,#fafdff,#edf8ff);box-shadow:0 14px 35px rgba(15,92,142,.08)}
.livestream-aidol-command .step-pill{width:max-content}
.livestream-aidol-command h2{margin:8px 0 5px;color:#143d5a;font-size:1.35rem;letter-spacing:-.025em}
.livestream-aidol-command p{max-width:720px;margin:0;color:#5c788e;font-size:.82rem;font-weight:700;line-height:1.5}
.livestream-aidol-command-note{display:grid;gap:4px;max-width:255px;border:1px solid #a9dafa;border-radius:12px;background:rgba(255,255,255,.82);padding:12px 13px;color:#37708f}
.livestream-aidol-command-note strong{color:#0876c8;font-size:.8rem}
.livestream-aidol-command-note span{font-size:.69rem;font-weight:750;line-height:1.4}
.livestream-aidol-picker{display:grid;gap:13px}
.livestream-aidol-picker-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-end}
.livestream-aidol-picker-head>div{display:grid;gap:3px;min-width:0}
.livestream-aidol-picker-head strong{color:#1a425e;font-size:.9rem}
.livestream-aidol-picker-head span{color:#6d899c;font-size:.72rem;font-weight:750;line-height:1.4;text-align:left}
.livestream-aidol-choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:12px}
.livestream-aidol-choice{display:grid;grid-template-columns:78px minmax(0,1fr);gap:11px;align-items:center;width:100%;min-height:105px;border:1px solid #d3e4ef;border-radius:13px;background:#fff;padding:11px;text-align:left;color:#31546b;box-shadow:0 7px 18px rgba(17,67,102,.045);transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.livestream-aidol-choice:hover{border-color:#55aeed;box-shadow:0 10px 24px rgba(17,104,165,.12);transform:translateY(-1px)}
.livestream-aidol-choice.selected{border-color:#108af3;background:linear-gradient(135deg,#ecf8ff,#fff);box-shadow:0 0 0 3px rgba(16,138,243,.12)}
.livestream-aidol-choice-media{display:grid;place-items:center;width:78px;height:78px;overflow:hidden;border:1px solid #d6e8f2;border-radius:10px;background:#edf8ff;color:#4381a6;font-size:1.45rem;font-weight:950}
.livestream-aidol-choice-media img{width:100%;height:100%;object-fit:cover}
.livestream-aidol-choice-copy{display:grid;gap:4px;min-width:0}
.livestream-aidol-choice-copy strong{overflow:hidden;color:#1d4a69;font-size:.82rem;text-overflow:ellipsis;white-space:nowrap}
.livestream-aidol-choice-copy span{color:#6a879a;font-size:.68rem;font-weight:750;line-height:1.35}
.livestream-aidol-choice-copy b{color:#0877c9;font-size:.67rem}
.livestream-aidol-choice>button{grid-column:1/-1;justify-self:start}
@media(max-width:900px){.livestream-aidol-command{grid-template-columns:1fr}.livestream-aidol-command-note{max-width:none}.livestream-aidol-picker-head{align-items:flex-start;flex-direction:column}.livestream-aidol-picker-head span{text-align:left}}
@media(max-width:620px){.livestream-command-nav{grid-template-columns:1fr}.livestream-aidol-command{padding:17px}.livestream-aidol-choice-grid{grid-template-columns:1fr}.livestream-aidol-choice{grid-template-columns:68px minmax(0,1fr);min-height:94px}.livestream-aidol-choice-media{width:68px;height:68px}}
.api-panel-head p{margin-top:8px;color:var(--muted)}.api-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:14px}.api-card{border:1px solid var(--border);border-radius:10px;background:#fbfdff;padding:14px;display:grid;gap:8px}.api-card strong{font-size:.92rem}.api-card code{display:block;padding:10px 12px;border-radius:8px;background:var(--text);color:#d7ecff;overflow:auto;font-size:.76rem}
.coin-balance-card{border:1px solid var(--border);border-radius:12px;background:#fbfdff;padding:18px;display:grid;gap:6px;width:min(360px,100%)}.coin-balance-card small{color:var(--muted);font-weight:800}.coin-balance-card strong{font-size:2.3rem;color:var(--primary-dark)}
.api-beta-page{padding:22px}.api-beta-form{margin-top:14px}.api-beta-form textarea{min-height:150px}
.hidden,[hidden]{display:none!important}
@keyframes flowLine{to{stroke-dashoffset:-384}}
@keyframes journeyFlow{to{stroke-dashoffset:-220}}
@keyframes journeyScan{to{left:122%}}
@keyframes corePulse{0%,100%{transform:scale(.96);opacity:.42}50%{transform:scale(1.08);opacity:.92}}
@keyframes coreScan{to{left:118%}}
@keyframes coreFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@keyframes previewSpin{to{transform:rotate(360deg)}}
@keyframes previewPulse{0%,100%{transform:scale(.86);opacity:.74}50%{transform:scale(1.08);opacity:1}}
@keyframes taskHistorySpin{to{transform:rotate(360deg)}}
@keyframes taskHistoryShimmer{0%,100%{background-position:100% 0}50%{background-position:0 0}}
@keyframes taskStatusSweep{to{transform:translateX(120%)}}
@container (max-width: 1120px){
  .journey-head h2{font-size:clamp(2rem,5cqw,3rem)}.journey-head p{font-size:.88rem}
  .journey-map{grid-template-columns:240px minmax(0,1fr);gap:34px;min-height:0;align-items:start}.journey-lines{display:none}
  .journey-source-card{width:240px;min-height:408px}.journey-branches{padding-left:24px}
  .journey-branches::before{content:"";position:absolute;left:6px;top:8px;bottom:8px;width:2px;border-radius:999px;background:linear-gradient(#1687ff,#7c3aed,#16a34a,#f59e0b,#ec4899);opacity:.34}
  .journey-branch-row{grid-template-columns:minmax(0,1fr);gap:10px;min-height:0}
  .journey-branch-row::before{content:"";position:absolute;left:-18px;top:58px;width:18px;height:2px;background:#9ccff4}
  .journey-branch-row.has-next{grid-template-columns:minmax(0,1fr)}
  .journey-branch-row.has-next .journey-live-card{margin-left:34px}
  .journey-branch-row.has-next .journey-live-card::after{content:"";position:absolute;left:-34px;top:50%;width:34px;height:2px;background:#f4a0c2;box-shadow:0 0 10px rgba(236,72,153,.22)}
  .journey-card{min-height:112px;grid-template-columns:minmax(0,1fr) 150px}.journey-preview{height:86px}
  .journey-benefits{grid-template-columns:1fr}.journey-benefit-cta{justify-items:start}.journey-benefit-cta small{text-align:left}
}
@container (max-width: 760px){
  .journey-head{justify-items:start;text-align:left}.journey-head h2{font-size:2rem}.journey-map{display:block}.journey-source-card{width:100%;min-height:0;margin-bottom:14px;grid-template-columns:112px minmax(0,1fr);align-items:center}.journey-source-badge{position:absolute;left:14px;top:14px;z-index:1}.journey-source-media img{aspect-ratio:1/1}.journey-branches{position:relative;padding-left:18px}.journey-branches::before{left:6px}.journey-branch-row,.journey-branch-row.has-next{position:relative;display:grid;grid-template-columns:1fr;gap:10px;margin-bottom:10px}.journey-branch-row.has-next .journey-live-card{margin-left:0}.journey-branch-row.has-next .journey-live-card::after{display:none}.journey-card,.journey-live-card{grid-template-columns:minmax(0,1fr);height:auto;min-height:0;padding:14px}.journey-preview{height:156px;order:-1}.journey-benefit-list{grid-template-columns:1fr}.journey-benefits{padding:12px}.journey-benefit-cta .primary-link{width:100%}
}
@media(max-width:1380px){
  .aidol-journey{padding:22px 18px}.journey-head h2{font-size:clamp(2rem,3vw,3rem)}.journey-head p{font-size:.88rem}
  .journey-map{grid-template-columns:240px minmax(0,1fr);gap:34px;min-height:0;align-items:start}.journey-lines{display:none}
  .journey-source-card{width:240px;min-height:408px}.journey-branches{padding-left:24px}
  .journey-branches::before{content:"";position:absolute;left:6px;top:8px;bottom:8px;width:2px;border-radius:999px;background:linear-gradient(#1687ff,#7c3aed,#16a34a,#f59e0b,#ec4899);opacity:.34}
  .journey-branch-row{grid-template-columns:minmax(0,1fr);gap:10px;min-height:0}
  .journey-branch-row::before{content:"";position:absolute;left:-18px;top:58px;width:18px;height:2px;background:#9ccff4}
  .journey-branch-row.has-next{grid-template-columns:minmax(0,1fr)}
  .journey-branch-row.has-next .journey-live-card{margin-left:34px}
  .journey-branch-row.has-next .journey-live-card::after{content:"";position:absolute;left:-34px;top:50%;width:34px;height:2px;background:#f4a0c2;box-shadow:0 0 10px rgba(236,72,153,.22)}
  .journey-card{min-height:112px;grid-template-columns:minmax(0,1fr) 150px}.journey-preview{height:86px}
  .journey-benefits{grid-template-columns:1fr}.journey-benefit-cta{justify-items:start}.journey-benefit-cta small{text-align:left}
}
@media(max-width:1180px){
  .site-header,.workspace{width:min(100vw - 28px,1500px)}.site-header{align-items:center}.mobile-nav-toggle{position:relative;z-index:1;display:inline-flex;align-items:center}.nav-actions{display:none;position:absolute;left:0;right:0;top:calc(100% + 8px);padding:12px;border:1px solid var(--border);border-radius:12px;background:rgba(255,255,255,.98);box-shadow:var(--shadow);justify-content:flex-start;flex-wrap:wrap}.nav-actions.open{display:flex}.brand{min-width:0}.metric-grid,.api-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.public-hero,.assistant-model-shell,.dashboard-grid,.wizard-layout,.video-builder-grid,.livestream-grid,.livestream-brain-grid,.livestream-event-layout,.livestream-lipsync-grid{grid-template-columns:1fr}.livestream-aidol-panel{position:static}.wizard-preview{position:static}.span-wide{grid-row:auto}.filter-bar{grid-template-columns:1fr 1fr}.assistant-model-stage,.assistant-chat-panel{height:auto}.assistant-model-stage{min-height:420px}.gpu-map{height:430px}.node-clone{left:18px;bottom:110px}.node-mid-left{left:214px;top:116px}.node-mid-right{right:214px;top:116px}.aidol-journey{padding:20px}.journey-map{grid-template-columns:220px minmax(0,1fr);gap:28px;min-height:auto}.journey-source-card{width:220px}.journey-lines{display:none}.journey-branches{gap:12px}.journey-branch-row{grid-template-columns:1fr;gap:12px;min-height:0}.journey-card{height:auto;min-height:126px;grid-template-columns:minmax(0,1fr) 118px}.journey-benefits{grid-template-columns:1fr}.journey-benefit-cta{justify-items:start}.journey-benefit-cta small{text-align:left}
  .public-hero{min-height:auto;padding-top:24px;justify-content:stretch}.public-hero::before{inset:18% -14px 0 -14px}.public-hero-copy{max-width:620px;padding-top:0}.public-hero-copy h1{font-size:clamp(2rem,4.6vw,3rem)}.public-hero .assistant-model-shell{grid-template-columns:minmax(210px,280px) minmax(0,1fr);max-width:none}.public-hero .assistant-model-stage,.public-hero .assistant-chat-panel{height:clamp(360px,46vh,480px)}
}
@media(max-width:1180px){
  .header-navigation{display:none;position:absolute;left:0;right:0;top:calc(100% + 8px);max-height:calc(100vh - 110px);overflow-y:auto;padding:12px;border:1px solid var(--border);border-radius:12px;background:rgba(255,255,255,.98);box-shadow:var(--shadow)}
  .header-navigation.open{display:grid}
  .ecosystem-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding-bottom:10px;border-bottom:1px solid #dcebf5}
  .ecosystem-nav a{min-height:42px;padding:7px 9px;text-align:center;white-space:normal}
  .ecosystem-nav .ecosystem-guide-link{margin-left:0}
  .nav-actions{display:flex;position:relative;inset:auto;padding:10px 0 0;border:0;border-radius:0;background:transparent;box-shadow:none}
}
@media(max-width:760px){
  .site-header{width:min(100vw - 20px,1500px);min-height:64px;padding:9px 11px;border-radius:14px}.brand{gap:9px}.brand img{width:42px;height:42px}.brand strong{font-size:.98rem}.brand small{display:none}.ecosystem-nav{grid-template-columns:1fr 1fr}.studio-nav-label{width:100%;justify-content:center}.workspace{width:min(100vw - 20px,1500px);margin-top:14px}.public-hero{min-height:auto;padding:16px 0}.public-hero-copy h1,.dashboard-hero h1,.section-heading h1{font-size:2rem}.metric-grid,.filter-bar,.login-form,.register-form,.form-grid,.option-grid,.aidol-child-grid,.api-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.dashboard-view,.aidol-view,.creator-view,.video-builder-view,.livestream-view,.history-view,.simple-page,.api-panel{padding:16px}.wizard-steps{grid-template-columns:repeat(5,150px)}.assistant-chat-form,.voice-picker{grid-template-columns:1fr}.credit-pill,.create-pill,.account-menu,.account-menu-btn{width:100%}.account-dropdown{left:0;right:auto;width:100%}.nav-actions>a:not(.create-pill){width:100%;justify-content:flex-start}.recent-aidol-grid,.aidol-library{grid-template-columns:1fr}.compact-row{align-items:flex-start;flex-direction:column}.gpu-head{height:auto;align-items:flex-start;flex-direction:column;padding:14px}.load-card{width:100%}.gpu-map{height:auto;padding:16px 0}.gpu-lines,.core-center,.gpu-counts{display:none}.gpu-node{position:relative;inset:auto!important;width:auto;margin:10px 14px;transform:none!important}.aidol-journey{padding:16px}.journey-head{justify-items:start;text-align:left}.journey-head h2{font-size:2rem}.journey-map{display:block}.journey-source-card{width:100%;min-height:0;margin-bottom:14px;grid-template-columns:112px minmax(0,1fr);align-items:center}.journey-source-badge{position:absolute;left:14px;top:14px;z-index:1}.journey-source-media img{aspect-ratio:1/1}.journey-branches{position:relative;padding-left:18px}.journey-branches::before{content:"";position:absolute;left:6px;top:0;bottom:0;width:2px;background:linear-gradient(#1687ff,#7c3aed,#16a34a,#f59e0b,#ec4899);opacity:.46}.journey-branch-row,.journey-branch-row.has-next{position:relative;display:grid;grid-template-columns:1fr;gap:10px;margin-bottom:10px}.journey-branch-row::before{content:"";position:absolute;left:-18px;top:50px;width:14px;height:2px;background:#9ccff4}.journey-card,.journey-live-card{grid-template-columns:minmax(0,1fr);height:auto;min-height:0;padding:14px}.journey-preview{height:156px;order:-1}.journey-benefit-list{grid-template-columns:1fr}.journey-benefits{padding:12px}.journey-benefit-cta .primary-link{width:100%}
  .task-tabs{overflow:auto;padding-bottom:2px}.task-tabs button{white-space:nowrap}.tts-workbench,.task-soon-layout{grid-template-columns:1fr}.tts-cta-row{grid-template-columns:1fr}.task-history-list{max-height:none}.task-soon .primary-btn{width:100%}
  .voice-picker{grid-template-columns:1fr}.voice-picker-modal{padding:12px}.voice-picker-dialog{width:calc(100vw - 20px);max-height:88vh;padding:12px;border-radius:14px}.voice-picker-toolbar,.voice-picker-filters,.voice-picker-preview-panel{grid-template-columns:1fr}.voice-picker-grid{grid-template-columns:1fr}.voice-picker-footer,.voice-picker-footer-actions{flex-direction:column;align-items:stretch}.voice-picker-footer .secondary-submit,.voice-picker-load-more{width:100%}
  .voice-clone-manager-head,.voice-clone-submit-row{align-items:stretch;flex-direction:column}.voice-clone-manager-head b{align-self:flex-start}.voice-clone-form{grid-template-columns:1fr}.voice-choice-actions.has-delete{grid-template-columns:repeat(2,minmax(0,1fr))}
  .public-hero .assistant-model-shell{grid-template-columns:1fr;padding:10px}.public-hero .assistant-model-stage{min-height:360px;height:380px}.public-hero .assistant-chat-panel{height:auto;min-height:270px}.assistant-overlay{align-items:flex-start;flex-direction:column}.assistant-caption{max-width:100%;text-align:left}
}
@media(max-width:760px){
  .mode-choice-grid,.motion-mode-shared,.compact-motion-grid,.motion-prompt-item{grid-template-columns:1fr}.motion-stack-head,.motion-batch-tools{width:100%}.motion-batch-tools{justify-content:space-between}.motion-batch-tools input[type="number"]{width:100%}
  .payment-modal{padding:10px}.payment-dialog{width:calc(100vw - 20px);max-height:92vh;padding:16px;border-radius:15px}.payment-dialog-head,.payment-wallet-summary{align-items:flex-start;flex-direction:column}.payment-close{position:absolute;top:15px;right:15px}.payment-dialog-head{padding-right:62px}.payment-package-list,.payment-package-grid{grid-template-columns:1fr}.payment-package-card{min-height:0}.payment-wallet-summary small{max-width:none}
}

/* Trang thanh toán: một trang chốt gói riêng, không dùng popup. */
.payment-view{width:100%;padding:18px 0 36px}
.payment-sales-shell{position:relative;overflow:hidden;border:1px solid #d7e8fb;border-radius:26px;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 54%,#eef7ff 100%);box-shadow:0 24px 70px rgba(22,104,185,.14)}
.payment-sales-shell::before{content:"";position:absolute;inset:0 0 auto;height:370px;pointer-events:none;background:radial-gradient(circle at 8% 13%,rgba(43,202,255,.24),transparent 31%),radial-gradient(circle at 90% 3%,rgba(113,88,255,.19),transparent 35%),linear-gradient(112deg,#eafaff 0%,#f9fdff 51%,#f2edff 100%)}
.payment-sales-hero,.payment-sales-body{position:relative;z-index:1}
.payment-sales-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(285px,.44fr);gap:30px;align-items:center;padding:42px clamp(22px,5vw,68px) 38px;border-bottom:1px solid #dceafa}
.payment-sales-copy{max-width:780px}.payment-kicker{display:inline-flex;align-items:center;min-height:29px;padding:0 11px;border:1px solid #9bd7ff;border-radius:999px;background:#fff;color:#0876bf;font-size:.67rem;font-weight:950;letter-spacing:.075em;box-shadow:0 6px 15px rgba(22,135,255,.1)}
.payment-sales-copy h1{max-width:760px;margin:14px 0 10px;color:#112b46;font-size:clamp(2rem,4vw,3.65rem);line-height:1.06;letter-spacing:-.055em;font-weight:950}.payment-sales-copy p{max-width:690px;color:#58718a;font-size:1rem;line-height:1.62;font-weight:650}
.payment-sales-points{display:flex;flex-wrap:wrap;gap:9px;margin-top:20px}.payment-sales-points span{display:inline-flex;align-items:center;min-height:34px;padding:0 11px;border:1px solid #d4e7f8;border-radius:999px;background:rgba(255,255,255,.78);color:#285470;font-size:.75rem;font-weight:850;box-shadow:0 5px 12px rgba(26,105,163,.06)}
.payment-sales-shell .payment-wallet-summary{display:grid;align-content:center;gap:7px;min-height:205px;padding:24px;border:1px solid #b8dffc;border-radius:20px;background:linear-gradient(145deg,#087bd4 0%,#176be1 52%,#704ad3 100%);box-shadow:0 19px 35px rgba(29,105,218,.23);isolation:isolate}.payment-sales-shell .payment-wallet-summary::after{content:"";position:absolute;width:170px;height:170px;right:-72px;top:-70px;border:32px solid rgba(255,255,255,.12);border-radius:50%;z-index:-1}.payment-sales-shell .payment-wallet-summary span{color:rgba(239,250,255,.82);font-size:.78rem;font-weight:850}.payment-sales-shell .payment-wallet-summary strong{margin:0;color:#fff;font-size:clamp(1.75rem,3vw,2.55rem);line-height:1.06;letter-spacing:-.055em}.payment-sales-shell .payment-wallet-summary small{max-width:340px;color:rgba(239,250,255,.88);font-size:.78rem;line-height:1.45;font-weight:700}
.payment-sales-body{padding:32px clamp(22px,5vw,68px) 38px}.payment-sales-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:22px}.payment-sales-heading>div:first-child{max-width:650px}.payment-sales-heading .eyebrow{margin:0;border-color:#bde0fb;background:#f2faff;color:#0876bf}.payment-sales-heading h2{margin-top:9px;color:#143451;font-size:clamp(1.35rem,2.5vw,2.12rem);line-height:1.18;letter-spacing:-.035em;font-weight:950}.payment-sales-heading p{margin-top:7px;color:#647c92;font-size:.84rem;line-height:1.5;font-weight:650}
.payment-sales-shell .payment-mode-tabs{flex:0 0 min(430px,100%);display:flex;gap:6px;padding:5px;border:1px solid #cfe4f6;border-radius:14px;background:#fff;box-shadow:0 9px 20px rgba(32,108,174,.07)}.payment-sales-shell .payment-mode-tabs button{min-height:47px;border:1px solid transparent;border-radius:10px;background:transparent;color:#55718a;font-size:.8rem;font-weight:950;cursor:pointer}.payment-sales-shell .payment-mode-tabs button:hover{background:#eff8ff;color:#0c6db6}.payment-sales-shell .payment-mode-tabs button[aria-selected="true"]{border-color:#087bdf;background:linear-gradient(135deg,#0c91e5,#146fd5 65%,#5948d7);box-shadow:0 10px 18px rgba(22,120,222,.24);color:#fff}
.payment-sales-shell .payment-notice{margin:0 0 16px}.payment-sales-shell .payment-package-list{display:grid;grid-template-columns:1fr;gap:22px;overflow:visible;padding:0}.payment-sales-shell .payment-package-group{display:grid;gap:12px}.payment-sales-shell .payment-group-title{color:#245271;font-size:.9rem;font-weight:950;letter-spacing:.01em}.payment-sales-shell .payment-package-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:15px}.payment-sales-shell .payment-package-card{position:relative;min-height:278px;gap:12px;padding:20px;border:1px solid #cfe2f3;border-radius:18px;background:linear-gradient(160deg,#ffffff,#f6fbff);color:#173852;box-shadow:0 10px 20px rgba(30,97,153,.07);overflow:hidden}.payment-sales-shell .payment-package-card::before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:linear-gradient(90deg,#21c8dd,#118df0,#7357e8);opacity:.9}.payment-sales-shell .payment-package-card:hover,.payment-sales-shell .payment-package-card:focus-visible{transform:translateY(-5px);border-color:#4caeff;background:#fff;box-shadow:0 20px 35px rgba(20,113,202,.16);outline:0}.payment-sales-shell .payment-package-card.highlight{border:2px solid #7961ee;background:linear-gradient(150deg,#f8f6ff 0%,#ffffff 50%,#f0fbff 100%);box-shadow:0 16px 30px rgba(104,74,217,.16)}.payment-sales-shell .payment-package-card.highlight::after{content:"KHUYÊN DÙNG";position:absolute;right:13px;top:15px;padding:5px 8px;border-radius:999px;background:#6046dc;color:#fff;font-size:.59rem;font-weight:950;letter-spacing:.045em}.payment-sales-shell .payment-package-card strong{max-width:80%;color:#163654;font-size:1rem;line-height:1.36;font-weight:950}.payment-sales-shell .payment-package-card p{min-height:55px;color:#668097;font-size:.78rem;line-height:1.5;font-weight:650}.payment-sales-shell .payment-package-benefit{color:#00836d;font-size:.75rem;font-weight:950}.payment-sales-shell .payment-package-price{color:#102d47;font-size:1.5rem;font-weight:950;letter-spacing:-.045em}.payment-sales-shell .payment-package-cta{min-height:44px;margin-top:2px;padding:0 13px;border-radius:10px;background:linear-gradient(135deg,#0a8ee0,#126ed5 60%,#654ddd);color:#eaf8ff;font-size:.75rem;font-weight:850;box-shadow:0 9px 16px rgba(18,113,212,.2)}.payment-sales-shell .payment-package-cta b{color:#fff;font-size:.79rem}.payment-sales-shell .payment-package-card[disabled]{opacity:.65}.payment-sales-shell .payment-loading{min-height:230px;border:1px dashed #bbd9ef;border-radius:18px;background:#fff;color:#54718a}.payment-sales-shell .payment-loading i{border-color:#d5eafb;border-top-color:#1687ff}.payment-sales-trust{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:30px;padding:18px 0 0;border-top:1px solid #d7e7f5}.payment-sales-trust>div{display:flex;align-items:center;gap:9px;color:#3b607b;font-size:.75rem;font-weight:850}.payment-sales-trust b{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#e0f3ff;color:#0878c5;font-size:.68rem}.payment-sales-trust small{grid-column:1/-1;margin-top:5px;color:#6d8498;font-size:.75rem;line-height:1.45;font-weight:650}
@media(max-width:860px){.payment-sales-hero{grid-template-columns:1fr;padding:32px 26px}.payment-sales-shell .payment-wallet-summary{min-height:0}.payment-sales-heading{align-items:flex-start;flex-direction:column}.payment-sales-shell .payment-mode-tabs{width:100%;flex-basis:auto}.payment-sales-body{padding:26px}.payment-sales-trust{grid-template-columns:1fr;gap:9px}}
@media(max-width:560px){.payment-view{padding:10px 0 22px}.payment-sales-shell{border-radius:18px}.payment-sales-hero,.payment-sales-body{padding:24px 16px}.payment-sales-copy h1{font-size:2rem}.payment-sales-points{display:grid;grid-template-columns:1fr}.payment-sales-points span{width:100%}.payment-sales-shell .payment-mode-tabs{display:grid;grid-template-columns:1fr}.payment-sales-shell .payment-package-grid{grid-template-columns:1fr}.payment-sales-shell .payment-package-card{min-height:0}.payment-sales-trust{margin-top:24px}}
/* Payment storefront: annual-first sales layout */
.payment-sales-shell,.payment-sales-shell *{letter-spacing:0}
.payment-sales-shell .payment-promotion-bar{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 22px;padding:14px 16px;border:1px solid #f2d092;border-radius:16px;background:linear-gradient(105deg,#fff9eb,#fff 58%,#fff4e8);box-shadow:0 10px 24px rgba(182,112,24,.09)}
.payment-sales-shell .payment-promotion-bar[hidden],.payment-activity-rail[hidden],.payment-billing-switch[hidden],.payment-billing-note[hidden]{display:none}
.payment-promotion-copy{display:flex;align-items:center;gap:12px;min-width:0}
.payment-promotion-copy>div{display:grid;gap:2px;min-width:0}
.payment-promotion-copy strong{color:#6c3d0d;font-size:.9rem;font-weight:950}
.payment-promotion-copy small{color:#9b6a32;font-size:.72rem;font-weight:700}
.payment-promotion-badge{display:inline-grid;place-items:center;flex:0 0 auto;min-height:30px;padding:0 10px;border-radius:8px;background:#ea6a19;color:#fff;font-size:.68rem;font-weight:950;letter-spacing:.04em;box-shadow:0 6px 12px rgba(234,106,25,.2)}
.payment-countdown-wrap{display:grid;justify-items:end;gap:5px;flex:0 0 auto}
.payment-countdown-wrap>span{color:#a35d18;font-size:.67rem;font-weight:900}
.payment-countdown{display:flex;align-items:center;gap:5px}
.payment-countdown>span{display:grid;justify-items:center;min-width:40px;padding:4px 5px;border:1px solid #f0d49d;border-radius:8px;background:#fff;color:#7e4811}
.payment-countdown b{font-size:1rem;line-height:1;font-weight:950}
.payment-countdown small{margin-top:2px;color:#a87b42;font-size:.56rem;font-weight:800}
.payment-countdown>i{color:#d38b37;font-style:normal;font-weight:950}
.payment-countdown[data-countdown-state="expired"]{opacity:.55}
.payment-sales-layout{display:grid;grid-template-columns:minmax(220px,270px) minmax(0,1fr);gap:22px;align-items:start}
.payment-sales-layout.coin-mode{grid-template-columns:minmax(0,1fr)}
.payment-sales-main{min-width:0}
.payment-activity-rail{position:sticky;top:18px;display:grid;gap:14px;padding:18px;border:1px solid #d5e5f2;border-radius:18px;background:linear-gradient(180deg,#f6fbff,#fff);box-shadow:0 12px 26px rgba(30,94,144,.08)}
.payment-activity-live{display:inline-flex;align-items:center;gap:6px;color:#14866e;font-size:.62rem;font-weight:950;letter-spacing:.08em}
.payment-activity-live i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#1cb98c;box-shadow:0 0 0 4px rgba(28,185,140,.13)}
.payment-activity-head{display:grid;gap:5px}
.payment-activity-head h3{color:#153b59;font-size:1.05rem;line-height:1.2;font-weight:950}
.payment-activity-head p{color:#6b8498;font-size:.72rem;line-height:1.45;font-weight:650}
.payment-recent-sales{display:grid;gap:9px;max-height:440px;overflow:auto;padding:2px 4px 4px 0;scrollbar-width:thin;scrollbar-color:#b8d8ed transparent;mask-image:linear-gradient(to bottom,transparent 0,#000 8%,#000 92%,transparent 100%)}
.payment-activity-item{display:grid;gap:5px;padding:11px 12px;border:1px solid #d9e8f4;border-radius:12px;background:#fff;box-shadow:0 5px 12px rgba(25,97,145,.05);animation:paymentActivityIn .45s ease both}
.payment-activity-item.is-rotating{opacity:0;transform:translateY(-6px);transition:opacity .28s ease,transform .28s ease}
.payment-activity-item:nth-child(2){animation-delay:.06s}.payment-activity-item:nth-child(3){animation-delay:.12s}.payment-activity-item:nth-child(4){animation-delay:.18s}
.payment-activity-item-top{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#7890a2;font-size:.62rem;font-weight:750}
.payment-activity-check{display:grid;place-items:center;width:19px;height:19px;border-radius:50%;background:#e0f8f1;color:#0b9a76;font-size:.7rem;font-weight:950}
.payment-activity-item strong{overflow:hidden;color:#1a4665;font-size:.77rem;text-overflow:ellipsis;white-space:nowrap;font-weight:950}
.payment-activity-item p{margin:0;color:#6b8498;font-size:.69rem;line-height:1.4;font-weight:650}
.payment-activity-item p b{color:#2167a0;font-weight:950}
.payment-activity-empty{display:grid;gap:6px;padding:15px 12px;border:1px dashed #bcd8ea;border-radius:12px;background:#fff;color:#617d93}
.payment-activity-empty strong{color:#1e557b;font-size:.75rem;font-weight:950}
.payment-activity-empty span{font-size:.68rem;line-height:1.45;font-weight:650}
.payment-activity-note{color:#8399aa;font-size:.64rem;line-height:1.45;font-weight:650}
.payment-billing-switch{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:8px;padding:10px 12px;border:1px solid #d2e3f1;border-radius:14px;background:#fff;box-shadow:0 7px 16px rgba(30,99,151,.06)}
.payment-billing-label{color:#315973;font-size:.75rem;font-weight:950}
.payment-billing-tabs{display:flex;gap:6px}
.payment-billing-tabs button{display:grid;gap:2px;min-width:142px;padding:8px 12px;border:1px solid transparent;border-radius:10px;background:#f4f8fb;color:#6d8496;text-align:left;cursor:pointer}
.payment-billing-tabs button b{font-size:.78rem;line-height:1.1;font-weight:950}
.payment-billing-tabs button small{font-size:.62rem;line-height:1.2;font-weight:750}
.payment-billing-tabs button:hover{border-color:#abd8f3;background:#eef8ff;color:#17679a}
.payment-billing-tabs button[aria-selected="true"]{border-color:#1788d8;background:#e9f6ff;color:#0867a5;box-shadow:0 5px 12px rgba(23,136,216,.14)}
.payment-billing-tabs button[aria-selected="true"] small{color:#2183b9}
.payment-billing-note{margin:0 0 12px;color:#71899b;font-size:.72rem;font-weight:700}
.payment-sales-layout.coin-mode .payment-sales-main{width:100%}
.payment-sales-layout.coin-mode .payment-package-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
.payment-sales-shell .payment-package-group{gap:12px}
.payment-sales-shell .payment-group-title{display:flex;align-items:center;gap:8px;color:#1e5275;font-size:.88rem}
.payment-sales-shell .payment-group-title::after{content:"";display:block;flex:1;height:1px;background:#d8e8f3}
.payment-sales-shell .payment-package-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.payment-sales-shell .payment-package-card.payment-plan-card{min-height:392px;padding:19px 18px 16px;border-radius:16px}
.payment-sales-shell .payment-package-card.payment-plan-card::before{height:4px}
.payment-card-badges{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:22px}
.payment-tier-badge{display:inline-flex;align-items:center;min-height:21px;padding:0 7px;border-radius:6px;background:#eaf5fc;color:#1672a8;font-size:.59rem;font-weight:950;letter-spacing:.07em}
.payment-plan-card.tier-pro .payment-tier-badge{background:#eeeaff;color:#6044c8}
.payment-plan-card.tier-business .payment-tier-badge{background:#fff0dc;color:#ae5b13}
.payment-best-badge{display:inline-flex;align-items:center;min-height:21px;padding:0 7px;border-radius:6px;background:#6046dc;color:#fff;font-size:.57rem;font-weight:950;letter-spacing:.045em}
.payment-best-badge.muted{background:#e9e5ff;color:#674bc7}
.payment-card-title{display:block!important;max-width:100%!important;min-height:27px;color:#143b5b!important;font-size:1.08rem!important}
.payment-card-description{display:-webkit-box;min-height:58px;margin:0!important;overflow:hidden;color:#678095!important;font-size:.75rem!important;line-height:1.45!important;font-weight:650!important;-webkit-box-orient:vertical;-webkit-line-clamp:3}
.payment-package-features{display:grid;align-content:start;gap:7px;min-height:113px;padding:11px 0;border-top:1px solid #e0edf5;border-bottom:1px solid #e0edf5;color:#3a647e;font-size:.7rem;line-height:1.38;font-weight:750}
.payment-package-features>span{display:block}
.payment-plan-card.tier-pro .payment-package-features{color:#4e4a78}
.payment-plan-card.tier-business .payment-package-features{color:#765225}
.payment-card-price-row{display:flex;align-items:flex-end;justify-content:space-between;gap:6px;min-height:59px}
.payment-price-stack{display:grid;gap:3px}
.payment-price-stack del{color:#9aaebe;font-size:.72rem;font-weight:750}
.payment-price-stack strong{color:#102f4b;font-size:1.52rem;line-height:1.04;font-weight:950;letter-spacing:-.04em}
.payment-discount-badge{display:inline-flex;align-items:center;align-self:flex-start;margin-top:7px;padding:4px 6px;border-radius:6px;background:#fff0e5;color:#d65a14;font-size:.62rem;font-weight:950}
.payment-monthly-equivalent{display:block;min-height:18px;color:#25816f;font-size:.66rem;font-weight:850}
.payment-package-card.payment-plan-card .payment-package-cta{margin-top:auto}
.payment-plan-card.is-best{border:2px solid #7056df!important;background:linear-gradient(150deg,#faf8ff,#fff 54%,#f0fbff)!important;box-shadow:0 20px 40px rgba(101,76,202,.2)!important;transform:translateY(-5px)}
.payment-plan-card.is-best:hover,.payment-plan-card.is-best:focus-visible{transform:translateY(-9px)}
.payment-plan-card.is-best::after{content:"BEST SELLER";position:absolute;right:13px;top:13px;padding:5px 8px;border-radius:6px;background:#6046dc;color:#fff;font-size:.57rem;font-weight:950;letter-spacing:.05em}
.payment-sales-shell .payment-package-card.is-best .payment-card-badges .payment-best-badge{visibility:hidden}
.payment-sales-shell .payment-package-card:not(.is-best):hover{transform:translateY(-4px)}
.payment-sales-shell .payment-package-card:not(.is-best):focus-visible{outline:3px solid rgba(33,143,220,.25);outline-offset:2px}
@keyframes paymentActivityIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1120px){.payment-sales-layout{grid-template-columns:minmax(190px,225px) minmax(0,1fr);gap:16px}.payment-sales-shell .payment-package-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.payment-sales-shell .payment-package-card.payment-plan-card{min-height:370px}}
@media(max-width:900px){.payment-sales-layout{grid-template-columns:1fr}.payment-activity-rail{position:static;order:2}.payment-sales-main{order:1}.payment-recent-sales{grid-template-columns:repeat(2,minmax(0,1fr));max-height:230px;mask-image:none}.payment-activity-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px}.payment-activity-head p{flex-basis:100%}.payment-promotion-bar{align-items:flex-start;flex-direction:column}.payment-countdown-wrap{justify-items:start}.payment-sales-shell .payment-package-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.payment-sales-shell .payment-promotion-bar{margin:0 0 18px;padding:12px}.payment-promotion-copy{align-items:flex-start}.payment-promotion-copy strong{font-size:.82rem}.payment-countdown{width:100%;justify-content:space-between}.payment-countdown>span{flex:1;min-width:0}.payment-sales-layout{gap:14px}.payment-billing-switch{align-items:stretch;flex-direction:column;gap:8px}.payment-billing-tabs{display:grid;grid-template-columns:1fr 1fr}.payment-billing-tabs button{min-width:0}.payment-sales-shell .payment-package-grid{grid-template-columns:1fr}.payment-sales-shell .payment-package-card.payment-plan-card{min-height:0}.payment-plan-card.is-best{transform:none}.payment-plan-card.is-best:hover,.payment-plan-card.is-best:focus-visible{transform:translateY(-3px)}.payment-recent-sales{grid-template-columns:1fr;max-height:285px}.payment-activity-rail{padding:14px}.payment-sales-shell .payment-package-cta{min-height:46px}}
@media(prefers-reduced-motion:reduce){.payment-activity-item{animation:none}.payment-sales-shell .payment-package-card,.payment-plan-card.is-best{transform:none!important;transition:none}}

/* Journey signal-map v2 */
.aidol-journey{padding:30px 28px 26px;border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(247,252,255,.96));}
.aidol-journey::before{background:radial-gradient(circle at 20% 58%,rgba(22,135,255,.14),transparent 18%),radial-gradient(circle,rgba(22,135,255,.11) 0 1px,transparent 1.7px),linear-gradient(90deg,transparent 0 12%,rgba(22,135,255,.1) 12% 12.12%,transparent 12.12% 100%);background-size:auto,30px 30px,100% 100%;opacity:.72}
.journey-head{margin-bottom:28px}.journey-head .eyebrow{box-shadow:0 8px 22px rgba(22,135,255,.1)}
.journey-head h2{font-size:clamp(2.4rem,4.2vw,4.7rem)}.journey-head h2 span{display:inline-block;margin:0 .12em;color:#0b7cff}
.journey-map{min-height:620px;grid-template-columns:250px minmax(0,1fr);gap:122px;align-items:center}
.journey-lines{display:block!important;z-index:0}.journey-trunk,.journey-line{stroke-width:3.2;stroke-dasharray:12 12 62 90;stroke-linecap:round;animation:journeyFlow 1.1s linear infinite}.journey-trunk{stroke:#23a7ff;stroke-width:3.6}.journey-line-blue{stroke:#1687ff}.journey-line-violet{stroke:#8b5cf6}.journey-line-green{stroke:#20c997}.journey-line-orange{stroke:#ff7a1a}.journey-line-rose{stroke:#ff315c}.journey-line.active{stroke-width:4.4}
.journey-split{fill:#fff;stroke:#23a7ff;stroke-width:5;filter:drop-shadow(0 0 12px rgba(22,135,255,.75))}.journey-dot{filter:drop-shadow(0 0 8px currentColor)}
.journey-source-card{z-index:2;width:230px;min-height:432px;padding:18px;border-radius:16px;text-align:center;box-shadow:0 18px 46px rgba(22,135,255,.12)}
.journey-source-badge{margin:0 auto;background:linear-gradient(135deg,#1687ff,#075ee9);color:#fff;border:0;box-shadow:0 8px 18px rgba(22,135,255,.28)}
.journey-source-media{border-radius:14px;border:2px solid #d6ebfb;box-shadow:inset 0 0 0 5px rgba(255,255,255,.74),0 18px 40px rgba(22,135,255,.12)}
.journey-source-copy h3{text-transform:uppercase}.journey-source-copy a{margin-left:auto;margin-right:auto}
.journey-source-card::before{content:"";position:absolute;left:50%;bottom:-54px;width:168px;height:42px;border-radius:50%;transform:translateX(-50%);background:radial-gradient(ellipse at center,rgba(22,135,255,.32),rgba(32,199,216,.18) 42%,transparent 70%);box-shadow:0 0 24px rgba(22,135,255,.24)}
.journey-branches{z-index:2;gap:22px;padding-left:0}.journey-branches::before{display:none!important}
.journey-branch-row{grid-template-columns:64px minmax(0,500px) minmax(34px,1fr);gap:22px;align-items:center;min-height:108px}
.journey-branch-row::before,.journey-branch-row::after{content:"";position:absolute;top:50%;height:2px;transform:translateY(-50%);background:var(--journey-color,#1687ff);box-shadow:0 0 12px var(--journey-color,#1687ff);opacity:.56}
.journey-branch-row::before{left:-92px;width:92px}.journey-branch-row::after{left:586px;right:0}
.journey-branch-row[data-journey-branch="tvc"]{--journey-color:#1687ff}.journey-branch-row[data-journey-branch="idol"]{--journey-color:#8b5cf6}.journey-branch-row[data-journey-branch="sales"]{--journey-color:#20c997}.journey-branch-row[data-journey-branch="lipsync"]{--journey-color:#ff7a1a}
.journey-node{position:relative;z-index:3;width:58px;height:58px;display:grid;place-items:center;border-radius:14px;color:#fff;font-size:.64rem;font-weight:950;box-shadow:0 16px 28px rgba(22,135,255,.22)}
.journey-node::before{content:"";position:absolute;inset:-8px;border-radius:18px;border:1px solid currentColor;opacity:.18}
.journey-node-blue{background:linear-gradient(135deg,#14a5ff,#075ee9)}.journey-node-violet{background:linear-gradient(135deg,#a855f7,#6d28d9)}.journey-node-green{background:linear-gradient(135deg,#34d399,#059669)}.journey-node-orange{background:linear-gradient(135deg,#ffb020,#ff3d00)}.journey-node-rose{background:linear-gradient(135deg,#ff4d6d,#e11d48)}
.journey-card{z-index:2;min-height:118px;padding:14px 16px 14px 20px;border-radius:16px;grid-template-columns:minmax(0,1fr) 182px;gap:18px;border-color:#cfe3f6;box-shadow:0 16px 38px rgba(15,52,86,.09)}
.journey-card::before{display:none}.journey-card h3{font-size:1.18rem}.journey-card p{font-size:.86rem;line-height:1.48}.journey-card-copy small{float:left;margin:0 12px 0 0;color:var(--journey-color,#1687ff);font-size:1.35rem;line-height:1;font-weight:950}.journey-card a{display:none}
.journey-preview{justify-self:end;width:178px;height:86px;border-radius:10px;background:#dcecf8}.journey-preview-wide{aspect-ratio:16/9;width:182px;height:auto}.journey-preview-portrait{aspect-ratio:9/16;width:78px;height:104px}.journey-preview img,.journey-preview video{object-fit:cover}
.journey-play{width:42px;height:42px;background:rgba(255,255,255,.88)}.journey-play::before{left:16px;top:12px;border-left-width:13px;border-top-width:8px;border-bottom-width:8px}
.journey-branch-row.has-next{grid-template-columns:64px minmax(0,392px) 58px minmax(0,392px) minmax(34px,1fr)}.journey-branch-row.has-next::after{display:none}.journey-branch-row.has-next .journey-card{grid-template-columns:minmax(0,1fr) 100px}.journey-branch-row.has-next .journey-card:first-of-type{max-width:392px}.journey-live-node{grid-column:3}.journey-live-card{grid-column:4;grid-template-columns:minmax(0,1fr) 100px}
.journey-branch-row.has-next .journey-live-node::after{content:"";position:absolute;left:-42px;right:58px;top:50%;height:2px;transform:translateY(-50%);background:#ff315c;box-shadow:0 0 12px rgba(255,49,92,.45)}
.journey-branch-row.has-next .journey-live-card::after{content:"";position:absolute;left:100%;top:50%;width:80px;height:2px;transform:translateY(-50%);background:#ff315c;box-shadow:0 0 12px rgba(255,49,92,.45)}
.live-preview{background:#181f35}.journey-viewers{background:#ef174f}.journey-comment{background:rgba(16,35,58,.78)}
.journey-benefits{margin-top:28px;border-radius:16px;padding:18px 20px}.journey-benefit-list article{display:grid;gap:4px;border:0;border-right:1px solid #dce9f4;border-radius:0;background:transparent}.journey-benefit-list article:last-child{border-right:0}
@container (max-width: 1120px){
  .journey-map{grid-template-columns:220px minmax(0,1fr);gap:42px}.journey-lines{display:none!important}.journey-source-card{width:220px}.journey-branches{padding-left:22px}.journey-branches::before{display:block!important}.journey-branch-row,.journey-branch-row.has-next{grid-template-columns:54px minmax(0,1fr);gap:14px}.journey-branch-row::before{left:-22px;width:22px}.journey-branch-row::after{display:none}.journey-node{width:50px;height:50px;font-size:.58rem}.journey-card,.journey-live-card,.journey-branch-row.has-next .journey-card{grid-template-columns:minmax(0,1fr) 104px;max-width:none}.journey-live-node{grid-column:1;margin-left:22px}.journey-live-card{grid-column:2}.journey-branch-row.has-next .journey-live-node::after{display:none}.journey-branch-row.has-next .journey-live-card::after{display:none}.journey-preview-wide{width:104px}.journey-preview-portrait{width:64px;height:94px}
}
@container (max-width: 760px){
  .journey-map{display:block}.journey-lines{display:none!important}.journey-source-card{width:100%}.journey-branch-row,.journey-branch-row.has-next{grid-template-columns:48px minmax(0,1fr);gap:12px}.journey-branch-row::before{left:-18px;width:18px}.journey-card,.journey-live-card,.journey-branch-row.has-next .journey-card{grid-template-columns:minmax(0,1fr);padding:14px}.journey-preview{order:-1;justify-self:stretch;width:100%;height:auto}.journey-preview-wide{aspect-ratio:16/9}.journey-preview-portrait{aspect-ratio:9/16;width:min(150px,48vw);height:auto;justify-self:center}.journey-live-node{margin-left:0}.journey-benefit-list article{border-right:0;border-bottom:1px solid #dce9f4}.journey-benefit-list article:last-child{border-bottom:0}
}
.aidol-journey{scroll-margin-top:124px}
.journey-head h2{font-size:clamp(2.2rem,3.45vw,4rem)}
.aidol-journey .journey-source-card,.aidol-journey .journey-branch-row,.aidol-journey .journey-benefits{opacity:1;transform:none}
.aidol-journey.is-visible .journey-source-card,.aidol-journey.is-visible .journey-branch-row,.aidol-journey.is-visible .journey-benefits{opacity:1;transform:none;transition:transform .22s ease,box-shadow .22s ease}

/* Large Livestream script desk: one operational surface for bulk creation, review, voice, and lipsync. */
.livestream-script-desk{position:fixed;z-index:10050;inset:0}.livestream-script-desk[hidden]{display:none}.livestream-script-desk-backdrop{position:absolute;inset:0;background:rgba(8,27,44,.58);backdrop-filter:blur(4px)}.livestream-script-desk-panel{position:relative;display:grid;grid-template-rows:auto minmax(0,1fr);width:min(1520px,calc(100vw - 34px));height:min(92vh,1080px);margin:4vh auto;border:1px solid #a8d9f8;border-radius:20px;background:#f6fbff;box-shadow:0 28px 90px rgba(2,35,62,.38);overflow:hidden}.livestream-script-desk-panel>header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding:19px 24px;border-bottom:1px solid #d6e8f3;background:linear-gradient(120deg,#e7f7ff,#fff)}.livestream-script-desk-panel>header span{color:#0877c9;font-size:.7rem;font-weight:950;letter-spacing:.08em;text-transform:uppercase}.livestream-script-desk-panel>header h2{margin:4px 0;color:#123d5c;font-size:1.45rem}.livestream-script-desk-panel>header p{margin:0;color:#607d91;font-size:.78rem;font-weight:700}.livestream-script-desk-panel>header button{display:grid;place-items:center;width:38px;height:38px;border:1px solid #b8d9ec;border-radius:10px;background:#fff;color:#176495;font-size:1.6rem;line-height:1}.livestream-script-desk-body{min-height:0;overflow:auto;padding:20px 24px 28px}.livestream-desk-actionbar{position:sticky;top:-20px;z-index:2;display:flex;justify-content:space-between;gap:14px;align-items:center;border:1px solid #b8e0f8;border-radius:14px;background:rgba(237,249,255,.96);padding:12px 14px;box-shadow:0 8px 20px rgba(12,99,153,.1);backdrop-filter:blur(10px)}.livestream-desk-actionbar>div:first-child{display:grid;gap:2px;color:#47748e}.livestream-desk-actionbar strong{color:#0876c7;font-size:1rem}.livestream-desk-actionbar span{font-size:.7rem;font-weight:800}.livestream-desk-actionbar>div:last-child{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:7px}.livestream-desk-actionbar button{border:1px solid #b9d8ea;border-radius:8px;background:#fff;color:#24647f;padding:8px 10px;font-size:.68rem;font-weight:950}.livestream-desk-actionbar .primary-btn{border-color:#148bf3;background:#148bf3;color:#fff}.livestream-script-desk-body .livestream-content-list{max-height:none;min-height:500px;grid-template-columns:repeat(auto-fit,minmax(460px,1fr));align-content:start;padding:2px}.livestream-script-desk-body .livestream-content-card textarea{min-height:145px;font-size:.84rem}@media(max-width:760px){.livestream-script-desk-panel{width:100vw;height:100vh;margin:0;border-radius:0}.livestream-script-desk-panel>header{padding:14px}.livestream-script-desk-body{padding:13px}.livestream-desk-actionbar{position:static;align-items:stretch;flex-direction:column}.livestream-desk-actionbar>div:last-child{justify-content:flex-start}.livestream-script-desk-body .livestream-content-list{grid-template-columns:1fr;min-height:0}}

/* One-table Livestream script manager. */
.livestream-desk-create,.livestream-desk-toolbar,.livestream-desk-settings,.livestream-desk-list{border:1px solid #c9dfef;border-radius:13px;background:#fff}.livestream-desk-create{padding:14px}.livestream-desk-create-head{display:grid;grid-template-columns:minmax(0,1fr) 120px auto;gap:10px;align-items:end}.livestream-desk-create-head>div{display:grid;gap:3px}.livestream-desk-create-head strong{color:#164766;font-size:.88rem}.livestream-desk-create-head small{color:#728c9e;font-size:.68rem;font-weight:750}.livestream-desk-create-head label{display:grid;gap:4px;color:#54748b;font-size:.65rem;font-weight:900}.livestream-desk-create-head input{min-height:35px}.livestream-desk-create-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:11px}.livestream-desk-create-fields input,.livestream-desk-create-fields textarea{width:100%;border:1px solid #d4e4ee;border-radius:8px;background:#fbfdff;padding:9px;color:#24475e;font:inherit;font-size:.73rem}.livestream-desk-create-fields textarea{min-height:85px;resize:vertical}.livestream-desk-create-fields.is-single-prompt{grid-template-columns:minmax(0,1fr)}.livestream-desk-create-fields.is-single-prompt>label{display:grid;gap:5px;color:#54748b;font-size:.65rem;font-weight:900}.livestream-desk-create-fields.is-single-prompt textarea{min-height:118px;line-height:1.48}.livestream-desk-create-fields.is-single-prompt small{color:#718b9d;font-size:.66rem;font-weight:750;line-height:1.35}.livestream-desk-toolbar{position:sticky;top:-20px;z-index:3;display:flex;justify-content:space-between;gap:14px;align-items:center;margin-top:13px;padding:11px 13px;background:rgba(239,249,255,.97);box-shadow:0 8px 18px rgba(14,101,153,.1);backdrop-filter:blur(8px)}.livestream-desk-toolbar>div:first-child{display:grid;gap:2px}.livestream-desk-toolbar strong{color:#0878c9;font-size:.96rem}.livestream-desk-toolbar span{color:#6a8798;font-size:.67rem;font-weight:800}.livestream-desk-toolbar>div:last-child{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:6px}.livestream-desk-toolbar button,.livestream-desk-settings button{border:1px solid #bcd8e9;border-radius:8px;background:#fff;color:#28637e;padding:8px 9px;font-size:.66rem;font-weight:950}.livestream-desk-toolbar .primary-btn{border-color:#128af3;background:#128af3;color:#fff}.livestream-desk-settings{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:10px;padding:10px 12px;color:#537187;font-size:.68rem;font-weight:800}.livestream-desk-settings label{display:flex;align-items:center;gap:6px}.livestream-desk-settings input{max-width:280px;font-size:.65rem}.livestream-desk-settings small{color:#6d8797}.livestream-desk-list{margin-top:10px;overflow:hidden}.livestream-desk-list-head,.livestream-desk-row{display:grid;grid-template-columns:90px 245px minmax(0,1fr) 48px;gap:10px;align-items:center}.livestream-desk-list-head{border-bottom:1px solid #d5e5ef;background:#edf7fc;color:#53758b;padding:9px 12px;font-size:.64rem;font-weight:950}.livestream-desk-row{min-height:55px;border-bottom:1px solid #d9e7ef;background:#fff;padding:7px 12px}.livestream-desk-row:last-child{border-bottom:0}.livestream-desk-row.selected{background:linear-gradient(90deg,#e9f8ff,#fff)}.livestream-desk-row>label{display:flex;align-items:center;gap:9px;color:#0d72bb;font-size:.8rem}.livestream-desk-row input{width:17px;height:17px;accent-color:#1688f4}.livestream-desk-row-status{display:flex;flex-wrap:wrap;gap:5px}.livestream-desk-row-status>span:not(.livestream-desk-row-progress){border-radius:999px;background:#f0f5f8;color:#5d788b;padding:4px 6px;font-size:.58rem;font-weight:950}.livestream-desk-row-status>span.done{background:#e5f8e9;color:#1d713f}.livestream-desk-row-status>span.processing,.livestream-desk-row-status>span.queued{background:#e8f3ff;color:#176abd}.livestream-desk-row-status>span.failed{background:#fff0f1;color:#b4243d}.livestream-desk-row-progress{color:#1874bb;font-size:.58rem;font-weight:900}.livestream-desk-row-progress i{display:inline-block;width:7px;height:7px;margin-right:4px;border-radius:50%;background:#1796ed;animation:brainNodeFlash 1s infinite}.livestream-desk-row textarea{width:100%;min-height:39px;max-height:94px;border:0;background:transparent;color:#1a3e58;font:inherit;font-size:.74rem;line-height:1.45;resize:vertical}.livestream-desk-row>button{border:0;background:transparent;color:#bc3045;font-size:.64rem;font-weight:900}@media(max-width:900px){.livestream-desk-create-head{grid-template-columns:1fr}.livestream-desk-list-head{display:none}.livestream-desk-row{grid-template-columns:76px 1fr 42px}.livestream-desk-row textarea{grid-column:1/-1;grid-row:2}.livestream-desk-row-status{justify-content:flex-start}.livestream-desk-toolbar{position:static;align-items:stretch;flex-direction:column}.livestream-desk-toolbar>div:last-child{justify-content:flex-start}}@media(max-width:620px){.livestream-desk-create-fields{grid-template-columns:1fr}.livestream-desk-settings{align-items:stretch;flex-direction:column}.livestream-desk-settings label{align-items:flex-start;flex-direction:column}.livestream-desk-row{padding:8px}.livestream-desk-toolbar{padding:10px}.livestream-desk-toolbar button{font-size:.61rem}}

.livestream-desk-create{padding:0}.livestream-desk-create summary{cursor:pointer;color:#17618d;padding:11px 14px;font-size:.72rem;font-weight:950}.livestream-desk-create[open] summary{border-bottom:1px solid #dce9f1}.livestream-desk-create form{padding:13px}.livestream-desk-row{grid-template-columns:76px 240px minmax(0,1fr) 126px}.livestream-desk-row-excerpt{overflow:hidden;border:0;background:transparent;color:#1e4864;font:inherit;font-size:.74rem;line-height:1.45;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.livestream-desk-row-excerpt:hover{color:#0879c8;text-decoration:underline}.livestream-desk-row-actions{display:flex;justify-content:flex-end;gap:4px}.livestream-desk-row-actions button{display:grid;width:25px;height:25px;place-items:center;border:1px solid #c8dfea;border-radius:6px;background:#fff;color:#2570a0;font-size:.7rem}.livestream-desk-row-actions button:last-child{color:#bd3449}.livestream-desk-mini-action{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:10px;border:1px solid #90d1f5;border-radius:11px;background:#eaf8ff;padding:10px 12px;color:#2d617e;font-size:.68rem;font-weight:800}.livestream-desk-mini-action strong{color:#086fb8}.livestream-desk-mini-action label{display:flex;align-items:center;gap:6px}.livestream-desk-mini-action input{max-width:280px;font-size:.64rem}.livestream-desk-mini-action button{border:1px solid #afd3e7;border-radius:7px;background:#fff;color:#276484;padding:7px 9px;font-size:.64rem;font-weight:900}.livestream-desk-mini-action .primary-btn{border-color:#118cf4;background:#118cf4;color:#fff}.livestream-desk-detail{position:sticky;bottom:0;z-index:5;display:grid;gap:8px;margin-top:10px;border:1px solid #8dcff3;border-radius:12px;background:#f0faff;padding:12px;box-shadow:0 -10px 28px rgba(11,90,143,.13)}.livestream-desk-detail>div{display:flex;justify-content:space-between;align-items:center;color:#0e6096;font-size:.76rem}.livestream-desk-detail button{border:0;background:transparent;color:#22729f;font-size:1.25rem}.livestream-desk-detail textarea{min-height:155px;border:1px solid #c5dfea;border-radius:8px;background:#fff;color:#193f5b;padding:10px;font:inherit;font-size:.78rem;line-height:1.55;resize:vertical}@media(max-width:900px){.livestream-desk-row{grid-template-columns:70px 1fr 110px}.livestream-desk-row-excerpt{grid-column:1/-1;grid-row:2}.livestream-desk-row-actions{grid-column:3;grid-row:1}}@media(max-width:620px){.livestream-desk-row{grid-template-columns:63px 1fr 92px}.livestream-desk-row-status{gap:3px}.livestream-desk-row-status>span:not(.livestream-desk-row-progress){font-size:.53rem}.livestream-desk-row-actions button{width:22px;height:22px}.livestream-desk-mini-action{align-items:flex-start;flex-direction:column}}
.livestream-pipeline-tabs-3{grid-template-columns:repeat(3,minmax(0,1fr))}

/* AiDancing creation shelf: wide demos first, then a focused create dialog. */
.video-builder-view:has(.aidancing-tool-grid){position:relative;overflow:hidden;border-color:#c9d4fb;background:radial-gradient(circle at 8% 2%,rgba(82,107,255,.16),transparent 23%),radial-gradient(circle at 97% 19%,rgba(185,101,255,.13),transparent 22%),linear-gradient(145deg,#fbfcff 0%,#f5f7ff 55%,#f7f3ff 100%)}
.aidancing-studio-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin-bottom:22px}.aidancing-studio-heading h1{margin:10px 0 0;color:#172b62;font-size:clamp(1.95rem,3vw,2.8rem);letter-spacing:-.055em;line-height:1.02}.aidancing-studio-heading p{max-width:810px;margin:13px 0 0;color:#526585;font-size:.9rem;font-weight:650;line-height:1.65}.aidancing-studio-heading .eyebrow{border:1px solid #c5cef9;border-radius:999px;background:rgba(255,255,255,.8);color:#4a54cf;padding:5px 10px}.aidancing-studio-heading-note{display:flex;flex:0 0 auto;align-items:center;gap:8px;margin:0 0 5px;border:1px solid #c4baff;border-radius:999px;background:#f5f1ff;color:#5843bb;padding:8px 12px;font-size:.7rem;font-weight:950;box-shadow:0 8px 18px rgba(70,54,172,.09)}.aidancing-studio-heading-note i{font-size:.98rem;font-style:normal}
.maintenance-heading-note{border-color:#f1c97d;background:linear-gradient(135deg,#fff9e8,#fff2d1);color:#9a6507}.aidancing-tool-card.is-maintenance{border-color:#e5c98e;background:linear-gradient(145deg,rgba(255,255,255,.99),rgba(255,250,239,.97))}.aidancing-tool-card.is-maintenance::before{background:radial-gradient(circle,rgba(243,178,61,.16),transparent 67%)}.aidancing-tool-card.is-maintenance:hover{border-color:#dfae4a;box-shadow:0 21px 45px rgba(125,88,26,.16)}.aidancing-maintenance-badge{margin-left:auto;border:1px solid #edc76f;border-radius:999px;background:#fff5d9;color:#9b680b;padding:4px 7px;font-size:.53rem;font-weight:950;letter-spacing:.06em;white-space:nowrap}.aidancing-maintenance-note{min-height:0!important;margin:8px 0 0!important;color:#9a711d!important;font-size:.64rem!important;font-weight:800!important}.aidancing-tool-card.is-maintenance .aidancing-job-price{border-color:#eed08b;background:#fff7df;color:#9b690d}.aidancing-create-btn:disabled{cursor:not-allowed;background:linear-gradient(135deg,#a89f91,#c2b7a5);color:#fff;box-shadow:none;filter:none;opacity:1}.aidancing-create-btn:disabled:hover{filter:none;transform:none}
.aidancing-tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:1280px;margin:0 auto}.aidancing-tool-card{position:relative;display:grid;grid-template-columns:1fr;overflow:hidden;border:1px solid #c8d0fa;border-radius:18px;background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(247,248,255,.95));box-shadow:0 16px 36px rgba(41,54,132,.12);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}.aidancing-tool-card::before{position:absolute;top:-110px;right:-98px;width:240px;height:240px;border-radius:50%;background:radial-gradient(circle,rgba(116,89,255,.19),transparent 67%);content:"";pointer-events:none}.aidancing-tool-card.lip{border-color:#e0c6f8;background:linear-gradient(145deg,rgba(255,255,255,.99),rgba(253,247,255,.96))}.aidancing-tool-card.lip::before{background:radial-gradient(circle,rgba(226,104,223,.17),transparent 67%)}.aidancing-tool-card:hover{border-color:#8d80f6;box-shadow:0 21px 45px rgba(45,46,137,.18);transform:translateY(-4px)}
.aidancing-tool-media{position:relative;min-height:0;aspect-ratio:16/9;overflow:hidden;background:#111530}.aidancing-tool-media::after{position:absolute;z-index:1;inset:0;background:linear-gradient(180deg,rgba(7,10,27,.04) 46%,rgba(7,10,27,.38));content:"";pointer-events:none}.aidancing-video-demo{position:relative;display:block;width:100%;height:100%;overflow:hidden;border:0;background:#111530;padding:0;cursor:pointer}.aidancing-video-demo img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease,filter .35s ease}.aidancing-video-demo:hover img,.aidancing-video-demo:focus-visible img{filter:brightness(.78);transform:scale(1.035)}.aidancing-video-demo:focus-visible{outline:3px solid #8074ff;outline-offset:-3px}.aidancing-tool-video-label{position:absolute;z-index:2;top:13px;left:13px;display:inline-flex;align-items:center;gap:5px;border:1px solid rgba(255,255,255,.36);border-radius:999px;background:rgba(10,13,37,.58);color:#fff;padding:6px 10px;font-size:.61rem;font-weight:900;backdrop-filter:blur(8px)}.aidancing-tool-video-label i{font-size:.55rem;font-style:normal}.aidancing-video-play{position:absolute;z-index:3;top:50%;left:50%;display:grid;width:58px;height:58px;place-items:center;border:1px solid rgba(255,255,255,.62);border-radius:50%;background:rgba(28,24,73,.62);color:#fff;padding-left:4px;font-size:1.1rem;box-shadow:0 10px 27px rgba(0,0,0,.28);backdrop-filter:blur(8px);transform:translate(-50%,-50%);transition:transform .18s ease,background .18s ease}.aidancing-video-demo:hover .aidancing-video-play,.aidancing-video-demo:focus-visible .aidancing-video-play{background:#695df0;transform:translate(-50%,-50%) scale(1.08)}
.aidancing-tool-content{position:relative;z-index:2;display:flex;min-width:0;flex-direction:column;padding:18px 19px}.aidancing-tool-title-row{display:flex;align-items:center;gap:8px}.aidancing-tool-icon{display:grid;width:27px;height:27px;place-items:center;border:1px solid #a7a1fb;border-radius:8px;background:#ecebff;color:#5649dc;font-size:1rem;font-weight:950}.aidancing-tool-icon.lip-icon{border-color:#edc4f8;background:#fff0fe;color:#b94bb9;font-size:1.25rem}.aidancing-tool-category{color:#5962b9;font-size:.58rem;font-weight:950;letter-spacing:.13em}.aidancing-tool-card.lip .aidancing-tool-category{color:#b458b6}.aidancing-tool-content h2{margin:13px 0 0;color:#202a60;font-size:1.36rem;line-height:1.14;letter-spacing:-.025em}.aidancing-tool-content p{min-height:0;margin:9px 0 0;color:#657292;font-size:.75rem;font-weight:680;line-height:1.5}.aidancing-input-map{display:flex;align-items:center;flex-wrap:wrap;gap:5px 6px;margin:13px 0 0;padding:9px;border:1px solid #dde1f8;border-radius:10px;background:rgba(250,251,255,.82);color:#66728b;font-size:.61rem;font-weight:800}.aidancing-input-map span,.aidancing-input-map strong{border-radius:6px;background:#e9edff;color:#4655b2;padding:5px 6px;white-space:nowrap}.aidancing-tool-card.lip .aidancing-input-map span,.aidancing-tool-card.lip .aidancing-input-map strong{background:#fbeafd;color:#aa53ac}.aidancing-input-map strong{background:#dfe4ff;color:#3748bd}.aidancing-input-map b{color:#857bc9;font-size:.83rem}.aidancing-job-price{width:max-content;margin-top:12px;border:1px solid #c9cff8;border-radius:999px;background:#f3f4ff;color:#3f49ad;padding:6px 9px;font-size:.65rem;font-weight:950}.aidancing-tool-card.lip .aidancing-job-price{border-color:#efc8ef;background:#fff1fc;color:#a648a8}.aidancing-tool-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}.aidancing-tool-foot>span{color:#74809a;font-size:.58rem;font-weight:800;line-height:1.35}.aidancing-create-btn,.aidancing-submit-job{display:inline-flex;min-height:38px;align-items:center;justify-content:center;gap:8px;border:0;border-radius:9px;background:linear-gradient(135deg,#5d55e8,#7768ff);color:#fff;padding:0 12px;font-size:.68rem;font-weight:950;box-shadow:0 7px 16px rgba(81,68,218,.28);transition:filter .16s ease,transform .16s ease}.aidancing-create-btn:hover,.aidancing-submit-job:hover{filter:brightness(1.07);transform:translateY(-1px)}.aidancing-create-btn i,.aidancing-submit-job i{font-size:.92rem;font-style:normal}.aidancing-create-btn.lip-button,.aidancing-submit-job.lip-submit{background:linear-gradient(135deg,#b852d2,#e069b7);box-shadow:0 7px 16px rgba(183,74,181,.25)}.aidancing-studio-callout{display:flex;align-items:center;justify-content:center;gap:8px;max-width:1280px;margin:16px auto 0;border:1px dashed #b9c3f4;border-radius:11px;background:rgba(255,255,255,.57);color:#63708d;padding:10px 14px;font-size:.68rem;font-weight:800;text-align:center}.aidancing-studio-callout i{display:grid;width:20px;height:20px;place-items:center;border-radius:50%;background:#e8eaff;color:#5c58d4;font-style:normal;font-weight:950}
.aidancing-dialog{width:min(980px,calc(100vw - 32px));max-width:none;overflow:hidden;border:1px solid #bec6fa;border-radius:18px;background:#fff;padding:0;box-shadow:0 30px 95px rgba(17,25,72,.42)}.aidancing-dialog::backdrop,.aidancing-demo-video-dialog::backdrop{background:rgba(14,20,50,.68);backdrop-filter:blur(7px)}.aidancing-dialog-shell{display:grid;max-height:min(800px,calc(100vh - 32px));overflow:auto}.aidancing-dialog-head{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid #dfe4fb;background:radial-gradient(circle at 87% 5%,rgba(104,91,255,.2),transparent 32%),linear-gradient(135deg,#f5f6ff,#fff);padding:22px 24px 18px}.aidancing-dialog-head.lip-head{border-color:#f0dff4;background:radial-gradient(circle at 87% 5%,rgba(233,110,204,.18),transparent 32%),linear-gradient(135deg,#fff7ff,#fff)}.aidancing-dialog-head>div{display:grid;gap:5px}.aidancing-dialog-head span{color:#5d58c2;font-size:.58rem;font-weight:950;letter-spacing:.11em}.aidancing-dialog-head.lip-head span{color:#b45aaa}.aidancing-dialog-head h2{margin:0;color:#252866;font-size:1.55rem;letter-spacing:-.035em}.aidancing-dialog-head p{max-width:620px;margin:0;color:#687490;font-size:.75rem;font-weight:680;line-height:1.45}.aidancing-dialog-close{display:grid;width:33px;height:33px;flex:0 0 auto;place-items:center;border:1px solid #cfd5f6;border-radius:9px;background:#fff;color:#555e9c;font-size:1.4rem;line-height:1}.aidancing-dialog-body{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:22px;padding:22px 24px}.aidancing-form-main{display:grid;align-content:start;gap:17px}.aidancing-title-field,.aidancing-note-field{display:grid;gap:6px;color:#4c5876;font-size:.68rem;font-weight:900}.aidancing-title-field input,.aidancing-note-field textarea{width:100%;border:1px solid #cbd4ee;border-radius:9px;background:#fcfdff;color:#28304d;padding:10px 11px;font:inherit;font-size:.76rem;font-weight:680;outline:none}.aidancing-note-field textarea{min-height:82px;resize:vertical;line-height:1.5}.aidancing-title-field input:focus,.aidancing-note-field textarea:focus{border-color:#776bf1;box-shadow:0 0 0 3px rgba(102,92,240,.11)}.aidancing-upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.aidancing-upload-card{position:relative;display:grid;min-height:174px;place-items:center;align-content:center;gap:6px;overflow:hidden;border:1px dashed #abb6e9;border-radius:13px;background:linear-gradient(145deg,#fbfcff,#f2f4ff);padding:14px;text-align:center;cursor:pointer;transition:border-color .16s ease,background .16s ease,transform .16s ease}.aidancing-upload-card:hover,.aidancing-upload-card.has-file{border-color:#7065ec;background:linear-gradient(145deg,#f6f5ff,#eeefff);transform:translateY(-1px)}.aidancing-upload-card input{position:absolute;inset:0;z-index:2;width:100%;height:100%;opacity:0;cursor:pointer}.aidancing-upload-icon{display:grid;width:40px;height:40px;place-items:center;border:1px solid #c7c9fd;border-radius:11px;background:#e8e9ff;color:#6555dd;font-size:1.27rem}.aidancing-upload-card strong{color:#343a68;font-size:.76rem}.aidancing-upload-card small{color:#77829b;font-size:.61rem;font-weight:720}.aidancing-upload-card em{border:1px solid #c8ccfb;border-radius:999px;background:#fff;color:#6057d5;padding:5px 9px;font-size:.58rem;font-style:normal;font-weight:950}.aidancing-upload-card b{display:block;max-width:100%;overflow:hidden;color:#69758e;font-size:.58rem;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.aidancing-upload-card.has-file b{color:#396b49}.aidancing-ratio-block{display:grid;gap:8px}.aidancing-ratio-block>strong{color:#4b5775;font-size:.68rem}.aidancing-ratio-options{display:grid;grid-template-columns:1fr 1fr;gap:9px}.aidancing-ratio-options label{position:relative;cursor:pointer}.aidancing-ratio-options input{position:absolute;opacity:0}.aidancing-ratio-options span{display:flex;min-height:66px;align-items:center;gap:8px;border:1px solid #d4d9f0;border-radius:10px;background:#fbfcff;padding:9px;color:#596682}.aidancing-ratio-options input:checked+span{border-color:#7669ec;background:#f1f0ff;box-shadow:0 0 0 2px rgba(103,91,233,.1);color:#4b43bf}.aidancing-ratio-options i{display:grid;width:24px;height:35px;place-items:center;border:2px solid currentColor;border-radius:4px;font-style:normal}.aidancing-ratio-options i.wide{width:34px;height:22px}.aidancing-ratio-options b{font-size:.74rem}.aidancing-ratio-options small{margin-left:auto;color:#7a859d;font-size:.56rem;font-weight:800}.aidancing-source-alert{display:grid;grid-template-columns:23px minmax(0,1fr);gap:8px;align-items:start;border:1px solid #efd0f4;border-radius:10px;background:#fff8ff;padding:10px}.aidancing-source-alert>i{display:grid;width:20px;height:20px;place-items:center;border-radius:50%;background:#e883d2;color:#fff;font-size:.7rem;font-style:normal;font-weight:950}.aidancing-source-alert div{display:grid;gap:2px}.aidancing-source-alert b{color:#93448f;font-size:.67rem}.aidancing-source-alert span{color:#825e80;font-size:.62rem;font-weight:720;line-height:1.43}.aidancing-source-alert strong{color:#864184}.aidancing-form-aside{display:grid;align-content:start;gap:12px}.aidancing-aside-preview{display:grid;gap:12px;border:1px solid #cbd2f7;border-radius:13px;background:radial-gradient(circle at 50% 0,rgba(113,99,247,.19),transparent 39%),linear-gradient(155deg,#f8f8ff,#eff0ff);padding:16px;text-align:center}.aidancing-aside-preview.lip-preview{border-color:#edcfeb;background:radial-gradient(circle at 50% 0,rgba(230,105,207,.18),transparent 39%),linear-gradient(155deg,#fff8ff,#fff0fd)}.aidancing-aside-preview>span{color:#5e60b0;font-size:.55rem;font-weight:950;letter-spacing:.11em}.aidancing-aside-preview.lip-preview>span{color:#b85dae}.aidancing-aside-preview>div{display:flex;align-items:center;justify-content:center;gap:6px}.aidancing-aside-preview i{display:grid;min-width:47px;height:56px;place-items:center;border:1px solid #b9c1f9;border-radius:9px;background:rgba(255,255,255,.72);color:#5d5ec0;font-size:.62rem;font-style:normal;font-weight:950}.aidancing-aside-preview.lip-preview i{border-color:#ecc9ec;color:#b45aac}.aidancing-aside-preview b{color:#8178cb}.aidancing-aside-preview strong{color:#4a5375;font-size:.67rem;line-height:1.4}.aidancing-aside-note{display:grid;gap:5px;border-left:3px solid #7a70eb;background:#f7f8ff;padding:9px 10px}.aidancing-aside-note b{color:#4f58a1;font-size:.65rem}.aidancing-aside-note span{color:#6f7b94;font-size:.62rem;font-weight:700;line-height:1.45}.aidancing-dialog-foot{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #e0e5f6;background:#fcfdff;padding:14px 24px}.aidancing-dialog-foot small{color:#7b879d;font-size:.61rem;font-weight:780}.aidancing-form-notice{min-height:1em;margin:3px 0 0;color:#5b5aa7;font-size:.62rem;font-weight:800}.aidancing-form-notice.error{color:#b4234a}.aidancing-submit-job{min-width:178px}.aidancing-submit-job[disabled]{cursor:wait;opacity:.65;transform:none}
.aidancing-demo-video-dialog{width:min(1160px,calc(100vw - 34px));max-width:none;overflow:hidden;border:1px solid rgba(168,187,255,.5);border-radius:17px;background:#080b1c;padding:0;box-shadow:0 35px 110px rgba(0,0,0,.62)}.aidancing-demo-video-shell{display:grid;gap:0;background:#070914}.aidancing-demo-video-shell header{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid rgba(195,207,255,.16);background:linear-gradient(90deg,#121542,#251d53);padding:13px 16px}.aidancing-demo-video-shell header>div{display:grid;gap:3px}.aidancing-demo-video-shell header span{color:#b9b4ff;font-size:.56rem;font-weight:950;letter-spacing:.13em}.aidancing-demo-video-shell header h2{margin:0;color:#fff;font-size:1rem}.aidancing-demo-video-shell header button{display:grid;width:34px;height:34px;place-items:center;border:1px solid rgba(255,255,255,.21);border-radius:8px;background:rgba(255,255,255,.08);color:#fff;font-size:1.35rem;line-height:1}.aidancing-demo-video-shell video{display:block;width:100%;max-height:calc(100vh - 142px);background:#000;object-fit:contain}
@media(max-width:1080px){.aidancing-tool-content{padding:19px 16px}.aidancing-tool-content h2{font-size:1.19rem}.aidancing-dialog-body{grid-template-columns:1fr}.aidancing-form-aside{grid-template-columns:1fr 1fr}.aidancing-aside-preview{min-height:145px}}@media(max-width:820px){.aidancing-studio-heading{align-items:flex-start;flex-direction:column}.aidancing-tool-grid{grid-template-columns:1fr;max-width:640px}.aidancing-dialog-body{padding:18px}.aidancing-dialog-head{padding:19px 18px 16px}.aidancing-dialog-foot{padding:13px 18px}}@media(max-width:560px){.video-builder-view:has(.aidancing-tool-grid){padding:14px}.aidancing-studio-heading h1{font-size:2.12rem}.aidancing-studio-heading-note{margin:0}.aidancing-tool-content{padding:17px}.aidancing-tool-foot{align-items:stretch;flex-direction:column}.aidancing-create-btn{width:100%}.aidancing-studio-callout{align-items:flex-start;text-align:left}.aidancing-dialog{width:calc(100vw - 18px);border-radius:14px}.aidancing-dialog-head h2{font-size:1.28rem}.aidancing-dialog-head p{font-size:.7rem}.aidancing-dialog-body{padding:15px}.aidancing-upload-grid,.aidancing-form-aside,.aidancing-ratio-options{grid-template-columns:1fr}.aidancing-upload-card{min-height:142px}.aidancing-dialog-foot{align-items:stretch;flex-direction:column}.aidancing-submit-job{width:100%}.aidancing-demo-video-dialog{width:calc(100vw - 18px)}.aidancing-demo-video-shell header{padding:11px 12px}.aidancing-demo-video-shell video{max-height:calc(100vh - 112px)}}

/* Exact GenAIDOL motion selectors for each live event/script. */
.livestream-motion-config{display:grid;gap:12px;margin:2px 0 4px;padding:14px;border:1px solid #b9ddf3;border-radius:13px;background:linear-gradient(135deg,#f2fbff,#fff)}
.livestream-motion-config-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.livestream-motion-config-head>div{display:grid;gap:4px}.livestream-motion-config-head strong{color:#164c6b;font-size:.86rem}.livestream-motion-config-head small{color:#6c8798;font-size:.69rem;font-weight:750}.livestream-motion-config-head code,.livestream-motion-selected code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#164c6b;font-size:.68rem;overflow-wrap:anywhere}
.livestream-motion-config-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.livestream-motion-config-grid label{display:grid;gap:5px;color:#42647a;font-size:.72rem;font-weight:900}.livestream-motion-config-grid select{min-height:37px}.livestream-motion-config-grid small{color:#7891a1;font-size:.65rem;line-height:1.35;font-weight:720}.livestream-motion-selected{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:10px;align-items:center;padding:9px;border:1px solid #b9ddf3;border-radius:9px;background:#fff}.livestream-motion-selected>div{display:flex;flex-wrap:wrap;align-items:center;gap:7px}.livestream-motion-selected strong{color:#164c6b;font-size:.75rem}.livestream-motion-selected .status{font-size:.58rem;padding:3px 5px}.livestream-motion-selected video{width:150px;max-height:120px;aspect-ratio:9/16;object-fit:cover;border-radius:7px;background:#0f172a}.livestream-motion-selected small{color:#7891a1;font-size:.67rem;line-height:1.35}
@media(max-width:900px){.livestream-motion-config-grid{grid-template-columns:1fr}.livestream-motion-config-head{flex-direction:column}}
/* Character journey v22 ---------------------------------------------------
   The Studio used to expose job internals as the primary interface. These
   overrides turn it into a character-first product: clear interaction states,
   compact creation, and a focused motion library. */
.primary-link,.secondary-link,.primary-btn,.secondary-submit,.refresh-btn,button{
  transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease,border-color .16s ease,opacity .16s ease;
}
button:not(:disabled),.primary-link,.secondary-link{cursor:pointer}
button:not(:disabled):hover,.primary-link:hover,.secondary-link:hover{transform:translateY(-1px);box-shadow:0 7px 16px rgba(16,91,146,.12)}
button:not(:disabled):active,.primary-link:active,.secondary-link:active,button.is-clicked{transform:translateY(1px) scale(.985);box-shadow:none}
button:focus-visible,.primary-link:focus-visible,.secondary-link:focus-visible{outline:3px solid rgba(25,135,255,.34);outline-offset:2px}
button[aria-busy="true"],button.is-loading{cursor:wait!important;opacity:.78}

.creator-view .wizard-steps{grid-template-columns:repeat(3,minmax(0,1fr));padding:5px;border:1px solid #d6e8f5;border-radius:14px;background:rgba(247,252,255,.92)}
.creator-view .wizard-steps button{min-height:52px;border-radius:10px}
@media(min-width:641px) and (max-width:1180px){.creator-view .wizard-layout{grid-template-columns:minmax(0,1fr) minmax(280px,330px);gap:18px}.creator-view .wizard-preview{position:sticky;top:86px}}
@media(max-width:640px){.creator-view .wizard-layout{grid-template-columns:1fr}.creator-view .wizard-preview{position:static}}
.creator-history-sidebar{overflow:hidden;padding:0;border-color:#cde3f0;background:linear-gradient(160deg,#fff,#f5fbff);box-shadow:0 16px 34px rgba(18,91,135,.1)}.creator-history-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:14px 14px 11px;border-bottom:1px solid #deedf5}.creator-history-head>div{display:grid;gap:4px}.creator-history-kicker{color:#1580bd;font-size:.6rem;font-weight:950;letter-spacing:.1em}.creator-history-head h2{margin:0;color:#1a4865;font-size:1rem;font-weight:950}.creator-history-head p{margin:0;color:#728fa1;font-size:.68rem;font-weight:720;line-height:1.38}.creator-history-refresh{display:grid;flex:0 0 auto;width:31px;height:31px;place-items:center;border:1px solid #c7dfed;border-radius:8px;background:#f7fcff;color:#2271a2;font-size:.9rem;font-weight:950}.creator-history-refresh:hover{border-color:#6bc4ef;background:#eaf8ff;transform:rotate(22deg)}.creator-history-focus{position:relative;display:grid;place-items:center;min-height:172px;max-height:218px;margin:11px 12px 0;overflow:hidden;border:1px solid #d5e7f1;border-radius:11px;background:linear-gradient(145deg,#eef8fd,#fafdff)}.creator-history-focus img,.creator-history-focus video{display:block;width:100%;height:100%;min-height:172px;max-height:218px;object-fit:contain;background:#0c2638}.creator-history-focus img{object-fit:cover}.creator-history-focus audio{width:calc(100% - 20px)}.creator-history-focus .empty-state{padding:18px 14px;text-align:center}.creator-history-focus .empty-state strong{display:block;color:#285873;font-size:.8rem}.creator-history-focus .empty-state span{display:block;margin-top:5px;color:#7592a5;font-size:.68rem;line-height:1.42}.creator-history-sidebar .preview-actions{margin:10px 12px 0}.creator-history-sidebar .preview-actions a,.creator-history-sidebar .preview-actions button{min-height:34px;font-size:.67rem}.creator-history-list-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 12px 7px}.creator-history-list-head strong{color:#355f78;font-size:.72rem;font-weight:950}.creator-history-list-head span{color:#388a65;font-size:.6rem;font-weight:900}.creator-history-list{display:grid;gap:7px;max-height:285px;overflow:auto;margin:0 10px 12px;padding:0 2px 2px}.creator-history-list>.empty-state{padding:18px 10px;border:1px dashed #c9dfe9;border-radius:10px;background:#fbfdff;text-align:center}.creator-history-list>.empty-state strong{display:block;color:#486c82;font-size:.75rem}.creator-history-list>.empty-state span{display:block;margin-top:4px;color:#7893a4;font-size:.65rem;line-height:1.35}.creator-history-item{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:8px;align-items:center;width:100%;min-height:62px;border:1px solid #dceaf1;border-radius:10px;background:#fff;padding:6px;text-align:left;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.creator-history-item:hover,.creator-history-item.selected{border-color:#69bced;box-shadow:0 7px 16px rgba(20,102,150,.1);transform:translateY(-1px)}.creator-history-item.selected{background:#f2faff}.creator-history-thumb{position:relative;display:grid;width:48px;height:48px;place-items:center;overflow:hidden;border-radius:7px;background:#eaf5fa;color:#47809e}.creator-history-thumb img,.creator-history-thumb video{display:block;width:100%;height:100%;object-fit:cover}.creator-history-thumb video{background:#092131}.creator-history-play{position:absolute;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:rgba(0,16,30,.68);color:#fff;font-size:.54rem;font-style:normal}.creator-history-stage{font-size:1rem}.creator-history-copy{display:grid;min-width:0;gap:3px}.creator-history-copy strong,.creator-history-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.creator-history-copy strong{color:#2a5874;font-size:.69rem;font-weight:950}.creator-history-copy small{color:#7a95a5;font-size:.59rem;font-weight:720}.creator-history-item .status{padding:4px 5px;font-size:.53rem}.creator-history-sidebar .preview-loader{width:56px;height:56px;margin:0 auto 8px}.creator-history-sidebar .preview-loader span{width:20px;height:20px}.creator-history-sidebar .preview-box{min-height:0}
body[data-app-view="livestream"] #studio{display:none!important}
.aidol-default-voice-field{display:grid;gap:7px}.aidol-default-voice-control{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:8px}.aidol-default-voice-control select{min-width:0}.aidol-default-voice-field small{color:#628197;font-size:.72rem;font-weight:720;line-height:1.4}.aidol-voice-library-trigger{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:43px;width:100%;border:1px solid #abd8f1;border-radius:10px;background:linear-gradient(100deg,#f6fcff,#fbfaff);color:#24546e;padding:6px 9px;text-align:left;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease,transform .16s ease}.aidol-voice-library-trigger:hover{border-color:#4cb5ed;background:#edf9ff;box-shadow:0 5px 12px rgba(24,122,181,.09);transform:translateY(-1px)}.aidol-voice-library-trigger:focus-visible{outline:3px solid rgba(56,172,235,.2);outline-offset:2px}.aidol-voice-library-trigger>span:nth-child(2){display:grid;min-width:0;gap:1px}.aidol-voice-library-trigger small{color:#277fb2;font-size:.52rem;font-weight:950;letter-spacing:.1em;line-height:1.1}.aidol-voice-library-trigger strong,.aidol-voice-library-trigger em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aidol-voice-library-trigger strong{color:#24516b;font-size:.72rem;font-weight:950;line-height:1.18}.aidol-voice-library-trigger em{color:#7592a4;font-size:.58rem;font-style:normal;font-weight:720;line-height:1.18}.aidol-voice-library-trigger>b{color:#2b84bb;font-size:.92rem;line-height:1}.aidol-voice-library-mark{display:grid!important;width:30px;height:30px;place-items:center;border-radius:9px;background:linear-gradient(135deg,#dff5ff,#eee8ff);color:#2877d1;font-size:.92rem;font-weight:950}
.aidol-edit-context{display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:11px;border:1px solid #bde2f5;border-radius:11px;background:linear-gradient(105deg,#effaff,#f8f7ff);padding:10px 12px}.aidol-edit-context img{display:block;width:56px;height:56px;object-fit:cover;border:1px solid #b6dff4;border-radius:10px;background:#e8f5fb}.aidol-edit-context>div{display:grid;min-width:0;gap:3px}.aidol-edit-context span{color:#197eb8;font-size:.58rem;font-weight:950;letter-spacing:.1em}.aidol-edit-context strong{overflow:hidden;color:#24526d;font-size:.86rem;font-weight:950;text-overflow:ellipsis;white-space:nowrap}.aidol-edit-context small{color:#6e8c9f;font-size:.65rem;font-weight:720;line-height:1.38}.aidol-edit-context .secondary-submit{min-height:32px;white-space:nowrap;font-size:.64rem}
.icon-only-btn{display:grid!important;width:40px;min-width:40px;height:40px;min-height:40px;place-items:center;border:1px solid #b9d9ed;border-radius:10px;background:#fff;color:#1678be;font-size:.95rem;font-weight:950;line-height:1}.icon-only-btn:hover{border-color:#4db4f3;background:#edf9ff}.icon-only-btn.is-loading{animation:aidolButtonPulse .9s ease-in-out infinite}@keyframes aidolButtonPulse{50%{opacity:.48;transform:scale(.94)}}

.motion-group-workspace{display:grid;gap:13px;padding:16px;border:1px solid #b9e1f6;border-radius:15px;background:linear-gradient(135deg,#f3fbff 0%,#fff 54%,#f8f5ff 100%)}.motion-group-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.motion-group-head>div{display:grid;gap:4px}.motion-group-head h3{margin:0;color:#123e5b;font-size:1rem}.motion-group-head p{margin:0;color:#648198;font-size:.76rem;line-height:1.45}.motion-group-head .secondary-submit{min-height:37px;white-space:nowrap}.motion-group-list{display:flex;flex-wrap:wrap;gap:8px}.motion-group-chip{display:inline-flex;align-items:center;gap:7px;min-height:34px;border:1px solid #c5ddea;border-radius:999px;background:#fff;color:#3f6680;padding:0 12px;font-size:.72rem;font-weight:900}.motion-group-chip span{display:grid;width:18px;height:18px;place-items:center;border-radius:50%;background:#e8f5ff;color:#197abf;font-size:.62rem}.motion-group-chip.active{border-color:#178cf0;background:#1687ff;color:#fff;box-shadow:0 7px 16px rgba(22,135,255,.2)}.motion-group-chip.active span{background:#fff;color:#1477bd}.motion-group-name{display:grid;gap:6px;max-width:520px;color:#315c78;font-size:.76rem;font-weight:900}.motion-group-name input{min-height:42px;border-color:#a9d6ef;background:#fff}
.motion-job-status{grid-template-columns:32px minmax(0,1fr);align-items:center;gap:11px;border:1px solid #bee5f8;border-radius:12px;background:#f2fbff;padding:12px 14px}.motion-job-status i{display:block;width:23px;height:23px;border:3px solid rgba(20,138,244,.18);border-top-color:#1687ff;border-radius:50%;animation:previewSpin .82s linear infinite}.motion-job-status div{display:grid;gap:3px}.motion-job-status strong{color:#126da9;font-size:.82rem}.motion-job-status span{color:#51748d;font-size:.73rem;font-weight:750;line-height:1.4}.motion-job-status[data-state="success"]{border-color:#bde7ca;background:#f2fcf5}.motion-job-status[data-state="success"] i{border-color:#52b56d;border-top-color:#52b56d;animation:none}.motion-job-status[data-state="success"] i::after{content:'✓';display:grid;width:100%;height:100%;place-items:center;color:#248746;font-size:.75rem;font-weight:950}.motion-job-status[data-state="success"] strong{color:#247941}.motion-job-status[data-state="error"]{border-color:#ffd2d8;background:#fff7f8}.motion-job-status[data-state="error"] i{border-color:#e76172;animation:none}.motion-job-status[data-state="error"] strong{color:#b73349}

.aidol-library{grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:20px}.aidol-showcase-card{position:relative;overflow:hidden;border:1px solid #c5e0f0;border-radius:18px;background:linear-gradient(160deg,#fff,#f7fbff);box-shadow:0 15px 36px rgba(12,72,111,.09);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}.aidol-showcase-card:hover{transform:translateY(-5px);border-color:#66bef2;box-shadow:0 24px 46px rgba(12,88,139,.16)}.aidol-showcase-card.selected{box-shadow:0 0 0 3px rgba(25,135,255,.17),0 24px 46px rgba(12,88,139,.16)}.aidol-showcase-stage{position:relative;display:grid;min-height:280px;aspect-ratio:4/5;overflow:hidden;background:radial-gradient(circle at 50% 15%,#315d80,#071624 78%)}.aidol-showcase-stage>img,.aidol-showcase-motion{position:absolute;inset:0;width:100%;height:100%;transition:opacity .28s ease,transform .45s ease}.aidol-showcase-stage>img{object-fit:cover}.aidol-showcase-motion{opacity:0;object-fit:contain;background:#071624}.aidol-showcase-card.motion-playing .aidol-showcase-motion{opacity:1}.aidol-showcase-card.motion-playing .aidol-showcase-stage>img{opacity:.08;transform:scale(1.03)}.aidol-showcase-hover-hint{position:absolute;right:12px;bottom:12px;border:1px solid rgba(255,255,255,.28);border-radius:999px;background:rgba(5,22,35,.62);backdrop-filter:blur(9px);color:#fff;padding:6px 9px;font-size:.62rem;font-weight:900}.aidol-showcase-hover-hint.is-muted{opacity:.78}.aidol-showcase-body{display:grid;gap:14px;padding:16px}.aidol-showcase-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.aidol-card-kicker{display:block;color:#1988dc;font-size:.61rem;font-weight:950;letter-spacing:.12em}.aidol-showcase-heading h2{margin:4px 0;color:#173f5a;font-size:1.16rem;line-height:1.15}.aidol-showcase-heading p{margin:0;color:#6b879a;font-size:.73rem;font-weight:720;line-height:1.4}.aidol-default-voice{display:grid;grid-template-columns:32px minmax(0,1fr) 34px;align-items:center;gap:9px;border:1px solid #d4e8f5;border-radius:12px;background:#fbfdff;padding:8px}.aidol-voice-mark{display:grid;width:32px;height:32px;place-items:center;border-radius:10px;background:linear-gradient(135deg,#e4f7ff,#eae5ff);color:#3179d4;font-weight:950}.aidol-default-voice small{display:block;color:#7691a1;font-size:.6rem;font-weight:900}.aidol-default-voice strong{display:block;margin-top:2px;overflow:hidden;color:#214b68;font-size:.75rem;text-overflow:ellipsis;white-space:nowrap}.aidol-default-voice .icon-only-btn{width:32px;min-width:32px;height:32px;min-height:32px;border-radius:9px;font-size:.72rem}.aidol-motion-summary{display:flex;align-items:center;gap:18px}.aidol-motion-summary>div:not(.aidol-active-job){display:grid;gap:1px}.aidol-motion-summary strong{color:#153f5d;font-size:1rem}.aidol-motion-summary span{color:#7390a3;font-size:.61rem;font-weight:900;text-transform:uppercase}.aidol-active-job{display:flex;align-items:center;gap:6px;margin-left:auto;color:#1b78b6;font-size:.66rem;font-weight:900}.aidol-active-job i{width:8px;height:8px;border-radius:50%;background:#1f9bf0;box-shadow:0 0 0 0 rgba(31,155,240,.45);animation:aidolLivePulse 1.35s infinite}@keyframes aidolLivePulse{70%{box-shadow:0 0 0 7px rgba(31,155,240,0)}100%{box-shadow:0 0 0 0 rgba(31,155,240,0)}}.aidol-motion-group-pills{display:flex;flex-wrap:wrap;gap:6px}.aidol-motion-group-pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;background:#eaf6ff;color:#356987;padding:5px 8px;font-size:.63rem;font-weight:850}.aidol-motion-group-pill b{display:grid;min-width:17px;height:17px;place-items:center;border-radius:50%;background:#fff;color:#197bc0;font-size:.6rem}.aidol-motion-group-pill.empty{background:#f2f5f7;color:#8194a1}.aidol-showcase-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.aidol-showcase-actions button{min-height:38px;border:1px solid #bfdaea;border-radius:10px;background:#fff;color:#28627f;font-size:.7rem;font-weight:950}.aidol-showcase-actions button.primary{grid-column:1/-1;border-color:#1687ff;background:linear-gradient(135deg,#1687ff,#2477d9);color:#fff;box-shadow:0 9px 18px rgba(22,135,255,.2)}.aidol-showcase-actions button.primary span{float:right;font-size:1rem}.aidol-empty-library{grid-column:1/-1;min-height:260px;place-content:center;text-align:center}.aidol-empty-library .primary-btn{margin-top:12px}
.aidol-default-voice{grid-template-columns:32px minmax(0,1fr) auto}.aidol-default-voice-actions{display:flex;gap:6px}.aidol-default-voice .aidol-change-voice-btn{border-color:#b5ddf7;background:#f0f9ff;color:#0876bd}.aidol-default-voice .aidol-change-voice-btn:hover{border-color:#1687ff;background:#dff3ff;color:#075e98}
.aidol-showcase-connection{display:grid;grid-template-columns:minmax(0,1fr) 32px;align-items:center;gap:9px;border:1px solid #c9e4f3;border-radius:12px;background:linear-gradient(100deg,#f4fbff,#fbfaff);padding:8px}.aidol-showcase-connection>div{display:grid;min-width:0;gap:3px}.aidol-showcase-connection small{color:#2981b5;font-size:.56rem;font-weight:950;letter-spacing:.1em}.aidol-showcase-connection code{display:block;overflow:hidden;color:#315a73;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.66rem;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.aidol-showcase-connection .icon-only-btn{width:32px;min-width:32px;height:32px;min-height:32px;border-radius:9px;color:#146fa9}.aidol-showcase-connection .icon-only-btn:hover{border-color:#52b5ec;background:#e4f6ff}

/* Motion Flow v28 ---------------------------------------------------------
   A quiet, creator-first workspace: groups on the left, one clear idea in
   the middle, and live work/history kept in the existing right-hand rail. */
.motion-flow-form{display:grid;grid-template-columns:184px minmax(0,1fr);align-items:stretch;overflow:hidden;border:1px solid #d9e7ef;border-radius:20px;background:#fff;box-shadow:0 18px 48px rgba(18,76,111,.1)}.motion-flow-form[hidden],.motion-flow-form [hidden]{display:none!important}.motion-flow-rail{display:grid;align-content:start;gap:17px;min-width:0;border-right:1px solid #dce9f1;background:linear-gradient(160deg,#f9fcff,#eff8fd);padding:19px 13px}.motion-flow-rail-head{display:grid;gap:7px;padding:0 4px}.motion-flow-rail-head>span{color:#2085c6;font-size:.58rem;font-weight:950;letter-spacing:.13em}.motion-flow-rail-head>div{display:flex;justify-content:space-between;align-items:center;gap:8px}.motion-flow-rail-head strong{color:#183f59;font-size:.88rem;font-weight:950}.motion-flow-rail-head button{display:grid;width:28px;height:28px;place-items:center;border:1px solid #badced;border-radius:8px;background:#fff;color:#1679bc;font-size:1.05rem;font-weight:900;line-height:1}.motion-flow-rail-head p{margin:0;color:#7893a4;font-size:.66rem;font-weight:720;line-height:1.45}.motion-flow-group-list{display:grid;gap:5px;max-height:285px;overflow:auto;padding:0 1px}.motion-flow-group-list .motion-group-chip{justify-content:flex-start;min-height:39px;width:100%;border:1px solid transparent;border-radius:9px;background:transparent;color:#4b7088;padding:0 8px;text-align:left;font-size:.69rem}.motion-flow-group-list .motion-group-chip:hover{border-color:#cae1ee;background:rgba(255,255,255,.74);box-shadow:none;transform:none}.motion-flow-group-list .motion-group-chip span{width:19px;height:19px;background:#e7f3fb;color:#2476a9}.motion-flow-group-list .motion-group-chip.active{border-color:#b9e1f6;background:#e6f5ff;color:#126ca7;box-shadow:inset 3px 0 #1687ff}.motion-flow-group-list .motion-group-chip.active span{background:#1687ff;color:#fff}.motion-flow-group-name{display:grid;gap:6px;margin-top:3px;padding:11px 4px 0;border-top:1px solid #dce9f1;color:#66849a;font-size:.61rem;font-weight:900}.motion-flow-group-name input{min-height:37px;border:1px solid #c9dfec;border-radius:8px;background:#fff;color:#315b75;padding:0 9px;font-size:.68rem;font-weight:850}.motion-flow-canvas{display:grid;align-content:start;gap:18px;min-width:0;padding:27px clamp(20px,3vw,36px) 24px;background:radial-gradient(circle at 92% 2%,rgba(77,191,243,.11),transparent 26%),#fff}.motion-flow-header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.motion-flow-header>div{display:grid;gap:6px}.motion-flow-step{color:#1687df;font-size:.61rem;font-weight:950;letter-spacing:.13em}.motion-flow-header h2{margin:0;color:#143c58;font-size:clamp(1.35rem,2.1vw,1.72rem);letter-spacing:-.035em}.motion-flow-header p{max-width:550px;margin:0;color:#6d899b;font-size:.78rem;font-weight:720;line-height:1.48}.motion-flow-ready{flex:0 0 auto;border:1px solid #bde7cf;border-radius:999px;background:#f0fbf4;color:#25834a;padding:7px 9px;font-size:.61rem;font-weight:900;white-space:nowrap}.motion-flow-composer{display:grid;gap:13px;max-width:760px}.motion-flow-question{display:grid;gap:4px}.motion-flow-question strong{color:#254e67;font-size:.88rem;font-weight:950}.motion-flow-question span{color:#7b96a7;font-size:.7rem;font-weight:720;line-height:1.4}.motion-flow-source-grid{gap:10px}.motion-flow-source-grid .mode-choice-card{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;min-height:88px;border:1px solid #d6e5ee;border-radius:14px;background:#fbfdff;padding:13px;box-shadow:none}.motion-flow-source-grid .mode-choice-card:hover{border-color:#8ecdf1;background:#f5fbff;box-shadow:0 10px 22px rgba(21,98,143,.09)}.motion-flow-source-grid .mode-choice-card>span:last-child{display:grid;gap:4px}.motion-flow-source-grid .mode-choice-card strong{color:#224b64;font-size:.77rem}.motion-flow-source-grid .mode-choice-card small{color:#7893a5;font-size:.65rem;font-weight:720;line-height:1.35}.motion-flow-source-grid .mode-choice-card.active{border-color:#1687ff;background:linear-gradient(135deg,#eff9ff,#f5f8ff);box-shadow:0 0 0 3px rgba(22,135,255,.11)}.motion-flow-source-icon{display:grid;width:34px;height:34px;place-items:center;border-radius:10px;background:#e8f5fd;color:#1687cf;font-size:1.15rem;font-weight:950}.motion-flow-source-icon.ai{background:linear-gradient(135deg,#e9f2ff,#f1eaff);color:#6756d9}.motion-flow-context{display:grid;grid-template-columns:minmax(200px,340px) minmax(0,1fr);align-items:end;gap:13px;border:1px solid #d7e7ef;border-radius:12px;background:#f9fcfe;padding:11px 13px}.motion-flow-context label{display:grid;gap:5px;color:#496b81;font-size:.66rem;font-weight:900}.motion-flow-context select{min-height:38px;border:1px solid #c6dfed;border-radius:8px;background:#fff;color:#204c67;font-size:.7rem;font-weight:850}.motion-flow-context p{margin:0 0 2px;color:#7793a4;font-size:.67rem;font-weight:720;line-height:1.42}.motion-flow-upload-panel,.motion-flow-ai-panel{border:1px solid #d8e6ee;border-radius:15px;background:#fff;padding:14px}.motion-flow-dropzone{display:grid;justify-items:center;gap:5px;min-height:145px;place-content:center;border:1px dashed #8dcdf2;border-radius:11px;background:linear-gradient(145deg,#f8fcff,#f0f9ff);color:#2d5f7b;text-align:center;cursor:pointer}.motion-flow-dropzone:hover{border-color:#1687ff;background:#eaf7ff}.motion-flow-dropzone input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0}.motion-flow-drop-icon{display:grid;width:39px;height:39px;place-items:center;border-radius:13px;background:#fff;color:#1687dd;box-shadow:0 7px 14px rgba(22,135,255,.13);font-size:1.35rem;font-weight:950}.motion-flow-dropzone strong{font-size:.78rem;font-weight:950}.motion-flow-dropzone small{color:#7794a6;font-size:.66rem;font-weight:720}.motion-flow-upload-panel .motion-upload-meta{display:block;overflow:hidden;margin-top:9px;color:#397393;font-size:.67rem;font-weight:780;text-overflow:ellipsis;white-space:nowrap}.motion-flow-ai-panel{display:grid;gap:14px}.motion-flow-options{display:flex;flex-wrap:wrap;gap:10px}.motion-flow-options label{display:grid;gap:5px;min-width:150px;color:#547389;font-size:.64rem;font-weight:900}.motion-flow-options select{min-height:37px;border:1px solid #cce0ec;border-radius:8px;background:#fbfdff;color:#254f69;font-size:.7rem;font-weight:850}.motion-flow-prompt-stack{gap:9px}.motion-flow-prompt-stack .motion-stack-head{align-items:flex-end}.motion-flow-prompt-stack .motion-stack-head>div{display:grid;gap:3px}.motion-flow-prompt-stack .motion-stack-head strong{color:#264e67;font-size:.82rem;font-weight:950}.motion-flow-prompt-stack .motion-stack-head small{color:#7d97a7;font-size:.64rem;font-weight:720}.motion-flow-prompt-stack .secondary-submit{min-height:33px;border-radius:8px;padding:0 10px;font-size:.66rem}.motion-flow-prompt-stack .motion-prompt-item{grid-template-columns:minmax(145px,.34fr) minmax(0,1fr) 30px;gap:9px;border:1px solid #d5e5ed;border-radius:11px;background:#fbfdff;padding:10px}.motion-flow-prompt-stack .motion-prompt-item label{display:grid;gap:5px;color:#57758a;font-size:.63rem;font-weight:900}.motion-flow-prompt-stack input,.motion-flow-prompt-stack textarea{border:1px solid #c9deea;border-radius:8px;background:#fff;color:#254e67;font-size:.7rem;font-weight:750}.motion-flow-prompt-stack input{min-height:39px;padding:0 9px}.motion-flow-prompt-stack textarea{min-height:102px;padding:9px;line-height:1.45;resize:vertical}.motion-flow-prompt-stack .remove-motion-btn{display:grid;align-self:end;width:30px;min-height:39px;place-items:center;border-color:#ffd5da;border-radius:8px;background:#fff8f8;color:#d45363;padding:0;font-size:1rem}.motion-flow-presets{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.motion-flow-presets>span{color:#7994a6;font-size:.63rem;font-weight:900}.motion-flow-presets button{min-height:28px;border:1px solid #d3e4ed;border-radius:999px;background:#f8fcff;color:#477188;padding:0 9px;font-size:.6rem;font-weight:850}.motion-flow-presets button:hover{border-color:#77c0ea;background:#ecf8ff;color:#126da8}.motion-flow-submit-dock{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:10px;border-top:1px solid #e0ecf2;margin-top:2px;padding-top:16px}.motion-flow-submit-dock .cost-row{min-height:0;border-color:#d6e7f0;background:#f8fbfd;padding:9px 11px}.motion-flow-submit-dock .cost-row span{font-size:.68rem;font-weight:900}.motion-flow-submit-dock .cost-row strong{align-self:center;font-size:.82rem}.motion-flow-submit-dock .cost-row small{font-size:.6rem}.motion-flow-submit-dock .primary-btn{min-width:190px;border-radius:10px;box-shadow:0 10px 20px rgba(22,135,255,.18);font-size:.72rem}.motion-flow-library{margin-top:2px;border-color:#d7e7ef;border-radius:13px;background:#fbfdff}.motion-flow-library .wizard-motion-library-head{padding:12px}.motion-flow-library .wizard-motion-library-list{padding:0 12px 12px}.motion-flow-form .motion-job-status{margin:0}.motion-flow-form .motion-job-status[hidden]{display:none!important}.creator-history-sidebar{border-radius:18px}.creator-history-focus{border-radius:12px}.creator-history-sidebar .creator-history-list{scrollbar-width:thin}
@media(max-width:900px){.motion-flow-form{grid-template-columns:1fr}.motion-flow-rail{grid-template-columns:minmax(0,1fr) minmax(230px,1fr);gap:12px;border-right:0;border-bottom:1px solid #dce9f1}.motion-flow-rail-head{grid-row:1/3}.motion-flow-group-list{max-height:145px}.motion-flow-group-name{margin:0;padding:0;border:0}.motion-flow-canvas{padding:22px}.motion-flow-header{flex-direction:column}.motion-flow-ready{margin-top:-5px}.motion-flow-context{grid-template-columns:1fr}.motion-flow-submit-dock{grid-template-columns:1fr}.motion-flow-submit-dock .primary-btn{min-height:45px;width:100%}}
@media(max-width:560px){.motion-flow-rail{grid-template-columns:1fr}.motion-flow-rail-head{grid-row:auto}.motion-flow-group-list{max-height:180px}.motion-flow-canvas{padding:18px}.motion-flow-source-grid{grid-template-columns:1fr}.motion-flow-prompt-stack .motion-prompt-item{grid-template-columns:1fr}.motion-flow-prompt-stack .remove-motion-btn{width:100%}.motion-flow-options label{width:100%}}
.motion-flow-presets button.active{border-color:#56afe4;background:#e8f7ff;color:#126da8;box-shadow:0 0 0 2px rgba(22,135,255,.12)}
.creator-view[data-creator-tab="video"]>.section-heading,.creator-view[data-creator-tab="video"]>.wizard-steps,.creator-view[data-creator-tab="video"] .wizard-main>#composerHint{display:none}.creator-view[data-creator-tab="video"]>.wizard-layout{margin-top:0}
.motion-flow-dropzone{position:relative}

/* Motion canvas v30 ------------------------------------------------------
   The creation screen is deliberately a quiet canvas, not a reduced admin
   form. The composer keeps every input needed by the existing job API. */
.creator-view[data-creator-tab="video"]>.section-heading{display:flex}
.creator-view[data-creator-tab="video"] .wizard-main>#composerHint{display:none}

/* Livestream lipsync model selector. Fast uses the selected character's
   prepared profile, so its status replaces every motion/upload control. */
.livestream-lipsync-model{display:grid;gap:10px;margin-bottom:13px;border:1px solid #cadce6;border-radius:8px;background:#f8fbfc;padding:12px}.livestream-lipsync-model-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.livestream-lipsync-model-head>div{display:grid;gap:3px}.livestream-lipsync-model-head span{color:#527284;font-size:.56rem;font-weight:950}.livestream-lipsync-model-head strong{color:#183f54;font-size:.78rem;font-weight:950}.livestream-lipsync-model-head small{color:#718995;font-size:.58rem;font-weight:750}.livestream-lipsync-segments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:4px;border:1px solid #d2e0e7;border-radius:8px;background:#edf3f6}.livestream-lipsync-segments button{display:grid;min-width:0;min-height:48px;gap:2px;place-content:center;border:1px solid transparent;border-radius:6px;background:transparent;color:#567180;padding:6px 10px;text-align:center;box-shadow:none}.livestream-lipsync-segments button:hover{border-color:#a9c8d7;background:#f9fcfd}.livestream-lipsync-segments button strong{font-size:.68rem;font-weight:950}.livestream-lipsync-segments button small{overflow:hidden;font-size:.54rem;font-weight:750;text-overflow:ellipsis;white-space:nowrap}.livestream-lipsync-segments button.active{border-color:#3287ac;background:#fff;color:#145d7b;box-shadow:0 2px 7px rgba(25,91,122,.12)}.livestream-lipsync-segments button[aria-disabled="true"]:not(.active){border-style:dashed;color:#81919a}.livestream-fast-readiness{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;border-top:1px solid #d9e5ea;padding-top:9px}.livestream-fast-dot{display:block;width:9px;height:9px;border-radius:50%;background:#82939c;box-shadow:0 0 0 4px rgba(105,125,135,.1)}.livestream-fast-readiness>div{display:grid;min-width:0;gap:2px}.livestream-fast-readiness strong{color:#385769;font-size:.65rem;font-weight:950}.livestream-fast-readiness small{color:#70848f;font-size:.56rem;font-weight:740;line-height:1.4}.livestream-fast-readiness.is-ready .livestream-fast-dot{background:#269454;box-shadow:0 0 0 4px rgba(38,148,84,.12)}.livestream-fast-readiness.is-ready strong{color:#217443}.livestream-fast-readiness.is-preparing .livestream-fast-dot{background:#d59917;box-shadow:0 0 0 4px rgba(213,153,23,.13)}.livestream-fast-readiness.is-preparing strong{color:#88620f}.livestream-fast-readiness.is-failed .livestream-fast-dot,.livestream-fast-readiness.is-locked .livestream-fast-dot{background:#c44e5c;box-shadow:0 0 0 4px rgba(196,78,92,.1)}.livestream-fast-readiness.is-failed strong,.livestream-fast-readiness.is-locked strong{color:#9b3945}.livestream-lipsync-manage{min-height:31px;border:1px solid #9ebdcb;border-radius:7px;background:#fff;color:#285f76;padding:0 9px;font-size:.57rem;font-weight:950;white-space:nowrap}.livestream-fast-source-note{display:grid;min-width:min(100%,330px);gap:2px}.livestream-fast-source-note strong{color:#1c6840!important}.livestream-fast-source-note span{font-size:.59rem;line-height:1.4}.livestream-fast-source-card{border-color:#a9d8ba;background:linear-gradient(145deg,#fbfefc,#eef9f2)}.livestream-fast-source-card>strong{color:#217343}.livestream-desk-lipsync-action{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center}.livestream-desk-lipsync-action>strong{grid-column:1/-1}.livestream-desk-lipsync-action .livestream-lipsync-model{grid-column:1/-1;width:100%;margin:0;background:rgba(255,255,255,.72)}.livestream-desk-lipsync-action .livestream-lipsync-model.is-compact{grid-template-columns:minmax(165px,.4fr) minmax(260px,1fr);align-items:center}.livestream-desk-lipsync-action .is-compact .livestream-lipsync-model-head{display:grid;gap:2px}.livestream-desk-lipsync-action .is-compact .livestream-lipsync-model-head small{display:none}.livestream-desk-lipsync-action .is-compact .livestream-fast-readiness{grid-column:1/-1}.livestream-desk-lipsync-action>.primary-btn:disabled,.livestream-pipeline-panel [data-live-create-lipsync]:disabled{cursor:not-allowed;opacity:.55;box-shadow:none}
@media(max-width:700px){.livestream-lipsync-model-head{flex-direction:column;gap:4px}.livestream-lipsync-segments{grid-template-columns:1fr}.livestream-lipsync-segments button small{white-space:normal}.livestream-fast-readiness{grid-template-columns:auto minmax(0,1fr)}.livestream-fast-readiness .livestream-lipsync-manage{grid-column:1/-1;width:100%}.livestream-desk-lipsync-action{grid-template-columns:1fr}.livestream-desk-lipsync-action .livestream-lipsync-model.is-compact{grid-template-columns:1fr}.livestream-desk-lipsync-action>.primary-btn,.livestream-desk-lipsync-action>button{width:100%}}
.creator-view[data-creator-tab="video"]>.wizard-steps{display:grid;margin:0 0 14px;padding:4px;border-color:#d9e8f0;background:rgba(250,253,255,.96);box-shadow:0 8px 20px rgba(16,76,109,.05)}
.creator-view[data-creator-tab="video"]>.wizard-steps button{min-height:42px;color:#5d7b8e;font-size:.73rem}
.creator-view[data-creator-tab="video"]>.wizard-steps button.active{color:#fff}
.creator-view[data-creator-tab="video"]>.wizard-steps button span{width:20px;height:20px;font-size:.64rem}
.motion-flow-form{grid-template-columns:172px minmax(0,1fr);min-height:540px;border-color:#d7e7ef;border-radius:18px;background:#fff;box-shadow:0 20px 54px rgba(18,76,111,.09)}
.motion-flow-form[hidden],.motion-flow-form [hidden]{display:none!important}
.motion-flow-rail{gap:15px;border-right-color:#e0ecf2;background:linear-gradient(160deg,#fbfdff 0%,#f0f8fc 100%);padding:18px 12px}
.motion-flow-rail-head{gap:7px;padding:1px 4px}
.motion-flow-rail-head>span{color:#2580b4;font-size:.56rem;letter-spacing:.12em}
.motion-flow-rail-head strong{font-size:.82rem}
.motion-flow-rail-head button{width:27px;height:27px;border-radius:9px;transition:transform .16s ease,background .16s ease,border-color .16s ease}
.motion-flow-rail-head button:hover{border-color:#54b5e8;background:#e8f8ff;transform:translateY(-1px)}
.motion-flow-rail-head p{font-size:.64rem;line-height:1.43}
.motion-flow-group-list{max-height:308px;gap:4px}
.motion-flow-group-list .motion-group-chip{min-height:38px;border-radius:9px;font-size:.67rem}
.motion-flow-group-name{gap:4px;margin-top:auto;padding:12px 4px 0;border-top-color:#dce9f1;font-size:.55rem;letter-spacing:.09em}
.motion-group-name-display{display:flex;align-items:center;justify-content:space-between;gap:5px;min-width:0;min-height:30px}.motion-group-name-display strong{overflow:hidden;color:#28556f;font-size:.68rem;font-weight:900;letter-spacing:0;text-overflow:ellipsis;white-space:nowrap}.motion-group-name-display button{display:grid;flex:0 0 auto;width:27px;height:27px;place-items:center;border:1px solid #cfe4ef;border-radius:8px;background:#fff;color:#2676a6;font-size:.78rem;line-height:1;transition:background .16s ease,border-color .16s ease,transform .16s ease}.motion-group-name-display button:hover{border-color:#65bde8;background:#eaf8ff;transform:translateY(-1px)}
.motion-flow-group-name input{min-height:31px;width:100%;border:1px solid #86c9ed;border-radius:7px;background:#fff;color:#28556f;padding:0 7px;font-size:.68rem;font-weight:900;outline:0;letter-spacing:0;box-shadow:0 0 0 3px rgba(58,165,224,.1)}
.motion-flow-canvas{grid-template-rows:auto minmax(172px,1fr) auto auto;align-content:stretch;gap:13px;min-height:540px;padding:18px clamp(20px,3vw,37px) 19px;background:radial-gradient(circle at 82% 6%,rgba(91,203,245,.11),transparent 25%),radial-gradient(circle at 28% 86%,rgba(125,117,245,.06),transparent 24%),#fff}
.motion-flow-header{align-items:center;min-height:29px}
.motion-flow-header p{display:flex;align-items:center;gap:8px;margin:0;color:#6f8ea2;font-size:.64rem;font-weight:900;letter-spacing:.08em}
.motion-flow-header p span{color:#1684c9}.motion-flow-header p i{color:#a5c6d6;font-style:normal}.motion-flow-header p strong{overflow:hidden;max-width:270px;color:#365f79;font-size:.67rem;text-overflow:ellipsis;white-space:nowrap;letter-spacing:0}
.motion-flow-ready{padding:6px 9px;font-size:.58rem}
.motion-flow-stage{display:grid;min-height:166px;place-items:center;border-radius:15px;background:radial-gradient(circle at 50% 45%,rgba(238,250,255,.82),rgba(255,255,255,0) 62%)}
.motion-flow-empty-state{display:grid;justify-items:center;max-width:390px;gap:8px;color:#7896a9;text-align:center}
.motion-flow-orbit{display:grid;width:48px;height:48px;place-items:center;border:1px solid #cbe9f7;border-radius:17px;background:linear-gradient(135deg,#eefaff,#f1efff);box-shadow:0 12px 28px rgba(44,138,190,.11);color:#4a7de0;font-size:1.18rem}
.motion-flow-empty-state strong{color:#365c75;font-size:1rem;font-weight:950;letter-spacing:-.02em}.motion-flow-empty-state p{margin:0;color:#839dad;font-size:.7rem;font-weight:720;line-height:1.5}
.motion-flow-composer{width:min(100%,770px);justify-self:center;gap:0;max-width:none;border:1px solid #cfe3ee;border-radius:16px;background:rgba(255,255,255,.96);box-shadow:0 15px 32px rgba(23,96,139,.09);overflow:hidden}
.motion-composer-tools{display:flex;align-items:center;gap:6px;min-height:49px;border-bottom:1px solid #e3eef3;background:linear-gradient(90deg,#fbfdff,#f6fbfe);padding:7px 9px}
.motion-composer-tool{display:inline-flex;align-items:center;gap:6px;min-height:32px;border:1px solid transparent;border-radius:9px;background:transparent;color:#587a8e;padding:0 8px;font-size:.66rem;font-weight:900;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}
.motion-composer-tool span{font-size:.91rem}.motion-composer-tool:hover{border-color:#cae4f1;background:#fff;color:#1d6e9c;transform:translateY(-1px)}.motion-composer-tool.active{border-color:#a7dafa;background:#e7f7ff;color:#116ca3;box-shadow:0 0 0 2px rgba(45,157,221,.09)}
.motion-composer-hint{margin-left:auto;color:#8aa2b1;font-size:.61rem;font-weight:720;white-space:nowrap}
.motion-flow-context{grid-template-columns:minmax(150px,245px) minmax(0,1fr);align-items:center;gap:13px;border:0;border-bottom:1px solid #edf3f6;border-radius:0;background:#fff;padding:9px 14px}
.motion-flow-context label{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:7px;color:#6c8a9c;font-size:.61rem}.motion-flow-context select{min-height:30px;border:0;background:#f6fafc;padding:0 6px;font-size:.65rem}.motion-flow-context>span{overflow:hidden;color:#7894a5;font-size:.62rem;font-weight:720;text-overflow:ellipsis;white-space:nowrap}.motion-flow-context>span strong{color:#39708d}
.motion-flow-ai-panel{gap:0;border:0;border-radius:0;background:#fff;padding:0}.motion-flow-prompt-stack{gap:0}.motion-flow-prompt-stack .motion-prompt-item{position:relative;grid-template-columns:minmax(0,1fr) 30px;gap:8px;border:0;border-bottom:1px solid #edf3f6;border-radius:0;background:#fff;padding:12px 13px 10px}.motion-flow-prompt-stack .motion-prompt-item+.motion-prompt-item{background:#fbfdff}
.motion-flow-prompt-stack .motion-title-field{grid-column:1/-1;display:flex;align-items:center;gap:7px;color:#7390a2;font-size:.6rem;font-weight:900}.motion-flow-prompt-stack .motion-title-field input{min-height:25px;max-width:220px;border:0;border-radius:0;background:transparent;color:#3d6882;padding:0;font-size:.64rem;font-weight:900;outline:0}.motion-flow-prompt-stack .motion-title-field input:focus{border-bottom:1px solid #6fc1ed}
.motion-flow-prompt-stack .motion-prompt-field{display:block}.motion-flow-prompt-stack .motion-prompt-field textarea{display:block;min-height:88px;width:100%;border:0;border-radius:0;background:transparent;color:#274e67;padding:0;font-size:.84rem;font-weight:740;line-height:1.5;outline:0;resize:vertical}.motion-flow-prompt-stack .motion-prompt-field textarea::placeholder{color:#9aafbc}.motion-flow-prompt-stack .motion-prompt-reference{position:relative;display:inline-grid;grid-template-columns:auto minmax(0,1fr) auto;grid-column:1;align-items:center;gap:7px;min-height:42px;width:max-content;max-width:100%;cursor:pointer;border:1px solid #d7e8f1;border-radius:9px;background:#fbfdff;color:#4a748b;padding:5px 8px}.motion-flow-prompt-stack .motion-prompt-reference:hover{border-color:#80c9ed;background:#f0faff}.motion-flow-prompt-stack .motion-prompt-reference.is-attached{border-color:#42b5e9;background:#effaff;box-shadow:0 0 0 2px rgba(66,181,233,.10)}.motion-flow-prompt-reference>span{display:grid;width:25px;height:25px;place-items:center;border-radius:7px;background:#e3f5ff;color:#197db9;font-size:.77rem}.motion-flow-prompt-reference>div{display:grid;min-width:0;gap:1px}.motion-flow-prompt-reference strong{color:#467087;font-size:.58rem;font-weight:950}.motion-flow-prompt-reference small{overflow:hidden;max-width:310px;color:#839dab;font-size:.54rem;font-weight:720;text-overflow:ellipsis;white-space:nowrap}.motion-flow-prompt-reference [data-motion-reference-preview]{width:34px;height:34px;object-fit:cover;border-radius:7px;border:1px solid #b8dfea}.motion-flow-prompt-reference input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.motion-flow-prompt-stack .remove-motion-btn{position:absolute;right:10px;top:12px;width:27px;min-height:27px;border:0;border-radius:8px;background:#fff5f6;color:#d45d6b;font-size:.9rem}
.motion-composer-bottom{display:flex;align-items:center;gap:7px;min-height:48px;border-bottom:1px solid #edf3f6;background:#fbfdff;padding:7px 10px}.motion-add-idea{min-height:31px;border:0;border-radius:8px;background:transparent;color:#5c7e91;padding:0 7px;font-size:.62rem;font-weight:900}.motion-add-idea:hover{background:#edf8fd;color:#1475af}.motion-batch-control{display:inline-flex;align-items:center;gap:5px;min-height:31px;white-space:nowrap;border-left:1px solid #deebf1;color:#68869a;padding-left:9px;font-size:.59rem;font-weight:900}.motion-batch-control input{width:36px;min-height:27px;border:1px solid #bedce9;border-radius:7px;background:#fff;color:#1c628d;padding:0 3px;font-size:.66rem;font-weight:950;text-align:center;outline:0}.motion-batch-control input:focus{border-color:#4fb5eb;box-shadow:0 0 0 3px rgba(79,181,235,.13)}.motion-batch-control small{color:#7893a4;font-size:.56rem;font-weight:800}.motion-flow-tune{margin-left:auto;position:relative}.motion-flow-tune summary{min-height:31px;display:flex;align-items:center;cursor:pointer;border:1px solid #d6e6ef;border-radius:8px;background:#fff;color:#628093;padding:0 8px;font-size:.6rem;font-weight:900;list-style:none}.motion-flow-tune summary::-webkit-details-marker{display:none}.motion-flow-tune[open] summary{border-color:#80c9ef;color:#1674ab}.motion-flow-tune>div{position:absolute;z-index:4;right:0;bottom:calc(100% + 7px);display:grid;gap:8px;min-width:230px;border:1px solid #cce2ef;border-radius:11px;background:#fff;padding:10px;box-shadow:0 16px 30px rgba(19,83,120,.16)}.motion-flow-tune label{display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:8px;color:#69879a;font-size:.6rem;font-weight:900}.motion-flow-tune select{min-height:30px;border:1px solid #d3e5ee;border-radius:7px;background:#fbfdff;color:#315d76;font-size:.63rem}
.motion-flow-presets{min-height:38px;gap:5px;padding:5px 10px}.motion-flow-presets>span{font-size:.59rem}.motion-flow-presets button{min-height:25px;padding:0 8px;font-size:.57rem}
.motion-flow-upload-panel{border:0;border-radius:0;background:#fff;padding:11px}.motion-flow-dropzone{grid-template-columns:32px minmax(0,1fr);justify-items:start;min-height:68px;place-content:center start;gap:10px;border:1px dashed #93cbea;border-radius:11px;background:linear-gradient(90deg,#f6fcff,#fbfdff);padding:9px 11px;text-align:left}.motion-flow-dropzone>span:last-child{display:grid;gap:3px}.motion-flow-dropzone strong{font-size:.7rem}.motion-flow-dropzone small{font-size:.6rem;line-height:1.35}.motion-flow-drop-icon{width:31px;height:31px;border-radius:10px;font-size:1rem}.motion-flow-upload-panel .motion-upload-meta{margin:7px 3px 0;font-size:.61rem}
.motion-flow-submit-dock{grid-template-columns:minmax(0,1fr) auto;gap:8px;border-top:1px solid #e5eff4;margin:0;padding:10px}.motion-flow-submit-dock .cost-row{display:flex;align-items:center;gap:7px;min-height:36px;border:0;border-radius:8px;background:transparent;padding:0}.motion-flow-submit-dock .cost-row span{font-size:.61rem}.motion-flow-submit-dock .cost-row strong{font-size:.72rem}.motion-flow-submit-dock .cost-row small{overflow:hidden;color:#879fad;font-size:.56rem;text-overflow:ellipsis;white-space:nowrap}.motion-flow-submit-dock .primary-btn{min-width:163px;min-height:38px;border-radius:10px;padding:0 13px;font-size:.68rem}.motion-flow-submit-dock .primary-btn b{font-size:1rem;line-height:0}
.motion-flow-form .motion-job-status{width:min(100%,770px);justify-self:center;margin:0}.motion-flow-library{width:min(100%,770px);justify-self:center;margin-top:0}
.creator-view[data-creator-tab="video"] .creator-history-sidebar{border-color:#d4e8f3;background:linear-gradient(165deg,#fff,#f7fcff);box-shadow:0 16px 36px rgba(18,91,135,.08)}.creator-view[data-creator-tab="video"] .creator-history-focus{min-height:205px;max-height:244px;background:linear-gradient(145deg,#f4fbff,#fff)}.creator-view[data-creator-tab="video"] .creator-history-focus img,.creator-view[data-creator-tab="video"] .creator-history-focus video{min-height:205px;max-height:244px}.creator-view[data-creator-tab="video"] .creator-history-list{max-height:216px;gap:5px}.creator-view[data-creator-tab="video"] .creator-history-item{grid-template-columns:41px minmax(0,1fr) auto;min-height:53px;padding:5px}.creator-view[data-creator-tab="video"] .creator-history-thumb{width:41px;height:41px}.creator-view[data-creator-tab="video"] .creator-history-copy small{font-size:.56rem}
@media(max-width:900px){.motion-flow-form{grid-template-columns:1fr;min-height:0}.motion-flow-rail{grid-template-columns:minmax(0,1fr) minmax(205px,1fr);border-right:0;border-bottom:1px solid #e0ecf2}.motion-flow-rail-head{grid-row:1/3}.motion-flow-group-name{margin:0;padding:0;border:0}.motion-flow-canvas{min-height:510px;padding:16px 18px}.motion-composer-hint{display:none}.motion-flow-context{grid-template-columns:1fr}.motion-flow-context>span{display:none}}
@media(max-width:560px){.creator-view[data-creator-tab="video"]>.wizard-steps{grid-template-columns:repeat(3,136px);overflow:auto}.motion-flow-rail{grid-template-columns:1fr}.motion-flow-rail-head{grid-row:auto}.motion-flow-canvas{min-height:0;padding:15px}.motion-flow-stage{min-height:132px}.motion-flow-empty-state p{max-width:290px}.motion-composer-tools{flex-wrap:wrap}.motion-composer-hint{display:none}.motion-flow-context{padding:8px 10px}.motion-composer-bottom{flex-wrap:wrap}.motion-flow-tune{margin-left:0}.motion-flow-submit-dock{grid-template-columns:1fr}.motion-flow-submit-dock .cost-row{flex-wrap:wrap}.motion-flow-submit-dock .cost-row small{width:100%}.motion-flow-submit-dock .primary-btn{width:100%}}
@media(max-width:560px){.aidol-edit-context{grid-template-columns:48px minmax(0,1fr)}.aidol-edit-context img{width:48px;height:48px}.aidol-edit-context .secondary-submit{grid-column:1/-1;width:100%}}

/* Async history v37 -------------------------------------------------------
   The job is asynchronous, so creation screens do not impersonate a result
   viewer. History is the canonical, information-dense place to monitor it. */
.creator-history-sidebar{display:grid;align-content:start;min-height:272px}.creator-history-sidebar .creator-history-head{padding:20px 19px 13px}.creator-history-handoff{display:grid;justify-items:start;gap:8px;margin:0 14px 14px;border:1px solid #cfe6f4;border-radius:14px;background:radial-gradient(circle at 88% 8%,rgba(83,190,246,.19),transparent 35%),linear-gradient(145deg,#f8fdff,#f0f9ff);padding:17px}.creator-history-handoff-icon{display:grid;width:38px;height:38px;place-items:center;border:1px solid #b9e4fa;border-radius:12px;background:#fff;color:#1687d6;font-size:1.2rem;box-shadow:0 7px 16px rgba(26,131,193,.11)}.creator-history-handoff strong{color:#1a4f70;font-size:.85rem;font-weight:950}.creator-history-handoff p{margin:0;color:#6c899c;font-size:.7rem;font-weight:720;line-height:1.48}.creator-history-handoff .primary-btn{width:100%;min-height:38px;margin-top:4px;border-radius:9px;font-size:.7rem}.creator-history-handoff .primary-btn span{margin-left:5px;font-size:1rem;line-height:0}.creator-view[data-creator-tab="video"] .creator-history-sidebar{min-height:272px}.creator-view[data-creator-tab="video"] .creator-history-handoff{margin-bottom:14px}
.task-history-handoff{display:grid;align-content:start;gap:12px;background:radial-gradient(circle at 92% 8%,rgba(77,188,240,.16),transparent 35%),#fbfdff}.task-history-handoff p{margin:0;color:#6d899b;font-size:.72rem;font-weight:720;line-height:1.48}.task-history-handoff .secondary-submit{justify-self:start;min-height:34px;font-size:.68rem}

.jobs-list.jobs-list-large{display:block;max-height:none;overflow:visible}.job-history-table-wrap{overflow:auto;border:1px solid #d8e7f0;border-radius:15px;background:#fff;box-shadow:0 14px 34px rgba(30,84,119,.07)}.job-history-table{width:100%;min-width:1040px;border-collapse:separate;border-spacing:0;text-align:left}.job-history-table thead th{position:sticky;top:0;z-index:2;border-bottom:1px solid #d5e6f0;background:#f5faff;color:#54758a;padding:12px 13px;font-size:.62rem;font-weight:950;letter-spacing:.075em;text-transform:uppercase;white-space:nowrap}.job-history-table thead th:first-child{padding-left:17px}.job-history-table tbody td{border-bottom:1px solid #e6eff4;padding:11px 13px;vertical-align:middle}.job-history-table tbody tr:last-child td{border-bottom:0}.job-history-row{background:#fff;transition:background .16s ease,box-shadow .16s ease}.job-history-row:hover{background:#f9fcfe}.job-history-row.is-selected{background:linear-gradient(90deg,#f0faff,#fff)}.job-history-row.is-selected td:first-child{box-shadow:inset 3px 0 #1687ff}.job-history-row.is-active{background:linear-gradient(90deg,#f8fcff,#fff)}.job-history-row.is-failed{background:linear-gradient(90deg,#fffafa,#fff)}
.history-signed-out-state{display:grid;justify-items:center;gap:9px;min-height:220px;place-content:center;border:1px solid #d6e8f2;border-radius:15px;background:radial-gradient(circle at 50% 0,rgba(79,188,240,.16),transparent 52%),linear-gradient(145deg,#fbfeff,#f4faff);padding:26px;text-align:center}.history-signed-out-icon{display:grid;width:42px;height:42px;place-items:center;border:1px solid #bee2f4;border-radius:13px;background:#fff;color:#1687d6;font-size:1.25rem;box-shadow:0 7px 16px rgba(29,121,180,.1)}.history-signed-out-state strong{color:#234e69;font-size:.95rem;font-weight:950}.history-signed-out-state p{max-width:455px;margin:0;color:#718d9e;font-size:.73rem;font-weight:720;line-height:1.48}.history-signed-out-state .primary-btn{min-height:37px;margin-top:3px;border-radius:9px;font-size:.7rem}
.job-history-media-cell{width:94px}.job-history-media{position:relative;display:grid;width:68px;height:58px;place-items:center;overflow:hidden;border:1px solid #d2e3ed;border-radius:10px;background:linear-gradient(145deg,#eaf5fa,#fafeff);color:#47819e;cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.job-history-media:hover{border-color:#51b7ed;box-shadow:0 7px 16px rgba(27,129,188,.16);transform:translateY(-1px)}.job-history-media:focus-visible{outline:3px solid rgba(22,135,255,.2);outline-offset:2px}.job-history-media img,.job-history-media video{display:block;width:100%;height:100%;background:#0b2537;object-fit:contain}.job-history-media.video::after{content:"▶";position:absolute;display:grid;width:24px;height:24px;place-items:center;border:1px solid rgba(255,255,255,.4);border-radius:999px;background:rgba(4,21,34,.7);color:#fff;font-size:.6rem;pointer-events:none}.job-history-media.audio{border-color:#d8ceff;background:linear-gradient(145deg,#f5f1ff,#ececff);color:#6b58d8;font-size:1.28rem}.job-history-media.audio.is-playing{border-color:#745ee1;background:#6b58d8;color:#fff;box-shadow:0 7px 17px rgba(94,75,202,.22)}.job-history-media.pending{cursor:default}.job-history-media.pending:hover{border-color:#d2e3ed;box-shadow:none;transform:none}.job-history-pulse{width:18px;height:18px;border:2px solid rgba(24,135,216,.22);border-top-color:#1687d8;border-radius:50%;animation:historySpin .82s linear infinite}.job-history-empty-media{font-size:1.05rem;font-weight:950}.job-history-media-error{color:#d64c5e;font-size:1.05rem;font-weight:950}
.job-history-job{display:grid;gap:4px;min-width:190px;max-width:290px}.job-history-job strong{overflow:hidden;color:#244d67;font-size:.76rem;font-weight:950;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.job-history-job span{overflow:hidden;color:#6d8b9d;font-size:.63rem;font-weight:760;text-overflow:ellipsis;white-space:nowrap}.job-history-id{display:inline-flex;align-items:center;max-width:max-content;border:1px solid #dceaf1;border-radius:5px;background:#f8fbfd;color:#7994a5;padding:2px 5px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.56rem;font-weight:750;letter-spacing:.01em}.job-history-status{display:grid;gap:6px;min-width:102px}.job-history-status .status{justify-self:start;align-self:auto;padding:5px 7px;font-size:.55rem}.job-history-progress{display:flex;align-items:center;gap:6px;color:#6c899b;font-size:.6rem;font-weight:850}.job-history-progress i{display:block;width:42px;height:4px;overflow:hidden;border-radius:999px;background:#e6eef4}.job-history-progress i::after{content:"";display:block;width:var(--job-progress,0%);height:100%;border-radius:inherit;background:linear-gradient(90deg,#3eb3ed,#1687ff)}.job-history-status .status.failed,.job-history-status .status.cancelled{background:#dc5362}.job-history-status .status.done{background:#23935a}.job-history-time{display:grid;gap:4px;min-width:180px;color:#6f8c9e;font-size:.62rem;font-weight:740;line-height:1.34}.job-history-time span{display:flex;gap:4px;white-space:nowrap}.job-history-time b{color:#245b79;font-size:.64rem;font-weight:950}.job-history-row.is-failed .job-history-time b{color:#bd4554}.job-history-info{min-width:220px;max-width:360px;color:#59798d;font-size:.67rem;font-weight:720;line-height:1.42;overflow-wrap:anywhere}.job-history-info p{display:-webkit-box;margin:0;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.job-history-info .job-history-error{display:block;border:1px solid #ffdce1;border-radius:7px;background:#fff3f4;color:#b83749;padding:6px 7px;font-weight:830;line-height:1.4}.job-history-info .job-history-note{color:#7290a2}.job-history-actions{display:flex;align-items:center;flex-wrap:wrap;gap:5px;min-width:156px}.job-history-actions button,.job-history-actions a{display:inline-flex;min-height:29px;align-items:center;justify-content:center;border:1px solid #cfe0ea;border-radius:7px;background:#fff;color:#276483;padding:0 8px;font-size:.6rem;font-weight:950;white-space:nowrap}.job-history-actions button:hover,.job-history-actions a:hover{border-color:#65bee9;background:#effaff}.job-history-actions button.primary{border-color:#1687ff;background:#1687ff;color:#fff}.job-history-actions button.danger{border-color:#ffd0d6;background:#fff7f8;color:#c34455}.job-history-actions .job-history-detail{border-color:#cdd9ff;background:#f4f4ff;color:#5f55bf}.job-history-empty{padding:34px!important;text-align:center}.job-history-empty strong,.job-history-empty span{display:block}.job-history-empty strong{color:#375e75;font-size:.85rem}.job-history-empty span{margin-top:6px;color:#7893a4;font-size:.7rem;font-weight:700}.job-history-table-wrap+.empty-state{margin:0}
.history-media-modal{position:fixed;z-index:160;inset:0;display:grid;place-items:center;padding:22px}.history-media-modal[hidden]{display:none!important}.history-media-backdrop{position:absolute;inset:0;background:rgba(5,17,28,.78);backdrop-filter:blur(7px)}.history-media-dialog{position:relative;z-index:1;display:grid;gap:12px;width:min(1100px,calc(100vw - 36px));max-height:calc(100vh - 36px);border:1px solid rgba(146,209,244,.48);border-radius:16px;background:#071925;padding:14px;box-shadow:0 30px 90px rgba(0,0,0,.48)}.history-media-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:2px 2px 0}.history-media-head>div{display:grid;gap:3px;min-width:0}.history-media-head span{color:#69c8f7;font-size:.58rem;font-weight:950;letter-spacing:.12em}.history-media-head strong{overflow:hidden;color:#fff;font-size:1rem;font-weight:950;text-overflow:ellipsis;white-space:nowrap}.history-media-head small{overflow:hidden;color:#aac7d7;font-size:.67rem;font-weight:720;text-overflow:ellipsis;white-space:nowrap}.history-media-head .icon-only-btn{flex:0 0 auto;border-color:rgba(255,255,255,.24);background:rgba(255,255,255,.11);color:#fff}.history-media-canvas{display:grid;min-height:180px;max-height:calc(100vh - 155px);place-items:center;overflow:auto;border-radius:11px;background:#020a10;padding:8px}.history-media-canvas img,.history-media-canvas video{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100vh - 172px);border-radius:7px;background:#000;object-fit:contain}.history-media-canvas video{min-width:min(100%,340px)}body.modal-open{overflow:hidden}@keyframes historySpin{to{transform:rotate(360deg)}}
@media(max-width:760px){.creator-history-sidebar{min-height:0}.creator-history-handoff{margin:0 12px 12px}.job-history-table-wrap{margin-right:-1px;border-radius:12px}.job-history-table{min-width:930px}.job-history-table thead th,.job-history-table tbody td{padding:9px}.job-history-media-cell{width:78px}.job-history-media{width:58px;height:51px}.history-media-modal{padding:10px}.history-media-dialog{width:calc(100vw - 20px);max-height:calc(100vh - 20px);padding:11px;border-radius:13px}.history-media-head strong{font-size:.88rem}.history-media-canvas{max-height:calc(100vh - 135px);padding:5px}.history-media-canvas img,.history-media-canvas video{max-height:calc(100vh - 148px)}}

.aidol-motion-modal{position:fixed;z-index:1200;inset:0;display:grid;place-items:center;padding:22px}.aidol-motion-modal[hidden]{display:none}.aidol-motion-modal-backdrop{position:absolute;inset:0;background:rgba(5,20,34,.72);backdrop-filter:blur(8px)}.aidol-motion-dialog{position:relative;z-index:1;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;width:min(1180px,calc(100vw - 34px));max-height:min(880px,calc(100vh - 34px));overflow:hidden;border:1px solid rgba(160,218,247,.58);border-radius:20px;background:linear-gradient(150deg,#f8fcff,#eef7fc);box-shadow:0 32px 100px rgba(0,0,0,.42)}.aidol-motion-dialog-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;border-bottom:1px solid #d4e8f4;background:linear-gradient(110deg,#fff,#eff9ff);padding:20px 22px}.aidol-motion-dialog-head>div{display:grid;gap:5px}.aidol-motion-dialog-head h2{margin:0;color:#143f5d;font-size:1.32rem}.aidol-motion-dialog-head p{max-width:720px;margin:0;color:#678397;font-size:.75rem;font-weight:720;line-height:1.45}.motion-modal-close{flex:0 0 auto}.aidol-motion-groups{display:flex;gap:8px;overflow:auto;border-bottom:1px solid #d7e8f1;background:#fff;padding:11px 16px}.aidol-motion-group-tab{display:inline-flex;align-items:center;gap:7px;min-height:35px;white-space:nowrap;border:1px solid #c8dfed;border-radius:999px;background:#f8fcff;color:#3b6883;padding:0 12px;font-size:.7rem;font-weight:900}.aidol-motion-group-tab span{display:grid;min-width:18px;height:18px;place-items:center;border-radius:50%;background:#e5f3fd;color:#2473aa;font-size:.59rem}.aidol-motion-group-tab.active{border-color:#1687ff;background:#1687ff;color:#fff}.aidol-motion-group-tab.active span{background:#fff;color:#1476bd}.aidol-motion-gallery{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-content:start;gap:12px;min-height:260px;overflow:auto;padding:18px 20px}.aidol-motion-tile{overflow:hidden;border:1px solid #d0e4ef;border-radius:13px;background:#fff;box-shadow:0 7px 16px rgba(12,73,111,.05)}.aidol-motion-tile-media{position:relative;display:grid;width:100%;aspect-ratio:9/14;place-items:center;overflow:hidden;border:0;border-bottom:1px solid #d9e9f3;background:#0a1c29;color:#fff}.aidol-motion-tile-media video{width:100%;height:100%;object-fit:contain;transition:transform .25s ease}.aidol-motion-tile.playable:hover video{transform:scale(1.025)}.aidol-motion-tile-media>span:not(.aidol-motion-processing){position:absolute;left:50%;bottom:9px;transform:translateX(-50%);border-radius:999px;background:rgba(4,16,28,.72);padding:5px 8px;font-size:.6rem;font-weight:900;white-space:nowrap}.aidol-motion-processing{display:grid;justify-items:center;gap:8px;color:#b9d7e8;font-size:.66rem;font-weight:850}.aidol-motion-processing i,.aidol-motion-loading i{display:block;width:22px;height:22px;border:3px solid rgba(116,203,255,.25);border-top-color:#70d2ff;border-radius:50%;animation:previewSpin .8s linear infinite}.aidol-motion-tile>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 8px;padding:9px}.aidol-motion-tile strong{overflow:hidden;color:#1c4b68;font-size:.7rem;text-overflow:ellipsis;white-space:nowrap}.aidol-motion-tile small{grid-column:1/-1;overflow:hidden;color:#748fa1;font-size:.62rem;font-weight:720;text-overflow:ellipsis;white-space:nowrap}.aidol-motion-tile .status{align-self:start;font-size:.55rem;padding:3px 5px}.aidol-motion-pagination{display:flex;justify-content:space-between;gap:12px;align-items:center;border-top:1px solid #d4e7f1;background:#fff;padding:12px 18px}.aidol-motion-pagination span{color:#658299;font-size:.7rem;font-weight:900}.aidol-motion-pagination div{display:flex;gap:7px}.aidol-motion-pagination button{min-height:34px;border:1px solid #bdd8e8;border-radius:8px;background:#f8fcff;color:#286485;padding:0 11px;font-size:.68rem;font-weight:900}.aidol-motion-pagination button:disabled{cursor:not-allowed;opacity:.45}.aidol-motion-loading{grid-column:1/-1;display:grid;justify-items:center;align-content:center;gap:9px;min-height:240px;color:#648095;text-align:center}.aidol-motion-loading strong{color:#24658e;font-size:.85rem}.aidol-motion-loading span{font-size:.7rem;font-weight:720}.aidol-motion-viewer{position:absolute;z-index:5;inset:0;display:grid;grid-template-rows:auto minmax(0,1fr);background:rgba(3,15,27,.96);padding:18px}.aidol-motion-viewer[hidden]{display:none}.aidol-motion-viewer-head{display:flex;justify-content:space-between;gap:14px;align-items:center;color:#fff;padding:0 2px 12px}.aidol-motion-viewer-head div{display:grid;gap:3px}.aidol-motion-viewer-head strong{font-size:.94rem}.aidol-motion-viewer-head small{color:#b6d4e5;font-size:.68rem;font-weight:720}.aidol-motion-viewer .icon-only-btn{border-color:rgba(255,255,255,.22);background:rgba(255,255,255,.09);color:#fff}.aidol-motion-viewer video{display:block;width:100%;height:100%;min-height:0;max-height:calc(100vh - 155px);object-fit:contain;background:#000;border-radius:12px}

@media(max-width:900px){.aidol-motion-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.aidol-motion-dialog{width:min(760px,calc(100vw - 22px))}}@media(max-width:620px){.creator-view .wizard-steps{grid-template-columns:repeat(3,142px);overflow:auto}.motion-group-head{align-items:stretch;flex-direction:column}.motion-group-head .secondary-submit{width:100%}.aidol-library{grid-template-columns:1fr}.aidol-showcase-stage{min-height:245px}.aidol-motion-modal{padding:0}.aidol-motion-dialog{width:100vw;max-height:100vh;height:100vh;border:0;border-radius:0}.aidol-motion-dialog-head{padding:15px}.aidol-motion-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:12px}.aidol-motion-pagination{padding:10px 12px}.aidol-motion-viewer{padding:12px}.aidol-motion-viewer video{max-height:calc(100vh - 124px)}}
.button-spinner{display:inline-block;width:14px;height:14px;margin-right:7px;border:2px solid rgba(255,255,255,.42);border-top-color:currentColor;border-radius:50%;vertical-align:-2px;animation:previewSpin .72s linear infinite}

/* AIDOL Library v36 — the library should feel like a living creative system,
   while making the exact Live/lipsync hand-off explicit. */
.aidol-command-deck{position:relative;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(380px,.9fr);gap:18px;isolation:isolate;overflow:hidden;margin:0 0 18px;border:1px solid #b7e0f4;border-radius:20px;background:radial-gradient(circle at 8% 12%,rgba(88,206,255,.26),transparent 35%),radial-gradient(circle at 94% 96%,rgba(138,107,255,.19),transparent 42%),linear-gradient(135deg,#effaff,#f8fbff 52%,#f6f3ff);box-shadow:0 18px 44px rgba(19,95,142,.11);padding:22px 24px}.aidol-command-deck::before{content:'';position:absolute;z-index:-1;inset:-80% -20%;background:linear-gradient(115deg,transparent 42%,rgba(255,255,255,.86) 49%,transparent 56%);animation:aidolDeckSweep 9s linear infinite}.aidol-command-deck::after{content:'';position:absolute;z-index:-1;right:13%;top:50%;width:162px;height:162px;border:1px solid rgba(27,154,225,.2);border-radius:50%;box-shadow:0 0 0 22px rgba(41,163,231,.055),0 0 0 45px rgba(115,107,242,.035);transform:translateY(-50%);animation:aidolOrbBreath 4.4s ease-in-out infinite}.aidol-command-core{display:grid;align-content:center;gap:8px;min-width:0}.aidol-command-kicker{display:inline-flex;align-items:center;gap:7px;color:#187db9;font-size:.61rem;font-weight:950;letter-spacing:.13em}.aidol-command-kicker i{display:block;width:8px;height:8px;border-radius:50%;background:#1eb5f5;box-shadow:0 0 0 0 rgba(30,181,245,.42);animation:aidolLinkPulse 1.8s infinite}.aidol-command-core strong{color:#153d59;font-size:clamp(1.05rem,1.7vw,1.45rem);font-weight:950;letter-spacing:-.035em;line-height:1.17}.aidol-command-core p{max-width:620px;margin:0;color:#628399;font-size:.72rem;font-weight:720;line-height:1.5}.aidol-command-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:center;gap:8px}.aidol-command-stats>div{display:grid;align-content:center;gap:3px;min-height:96px;border:1px solid rgba(131,202,239,.42);border-radius:14px;background:rgba(255,255,255,.62);backdrop-filter:blur(8px);padding:12px;box-shadow:0 9px 18px rgba(44,132,178,.06)}.aidol-command-stats span{color:#55849f;font-size:.52rem;font-weight:950;letter-spacing:.08em}.aidol-command-stats strong{color:#197fc3;font-size:1.35rem;font-weight:950;line-height:1}.aidol-command-stats small{color:#718ea0;font-size:.58rem;font-weight:800}.aidol-view .filter-bar{position:relative;z-index:1;margin-bottom:20px;border-color:#cde5f3;background:rgba(255,255,255,.84);box-shadow:0 10px 25px rgba(25,104,151,.06)}
.aidol-library{grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:22px}.aidol-showcase-card{isolation:isolate;border-color:#b9dfef;background:linear-gradient(160deg,#fff,#f8fcff 48%,#f8f6ff);box-shadow:0 18px 42px rgba(11,82,123,.11)}.aidol-showcase-card::before{content:'';position:absolute;z-index:-1;inset:0;background:linear-gradient(125deg,transparent 0%,rgba(108,213,255,.12) 36%,transparent 49%,rgba(143,105,255,.1) 65%,transparent 79%);background-size:220% 100%;opacity:.5;transition:opacity .3s ease;background-position:100% 0}.aidol-showcase-card::after{content:'';position:absolute;z-index:3;inset:0;border:1px solid transparent;border-radius:inherit;pointer-events:none;background:linear-gradient(135deg,rgba(119,223,255,.5),transparent 29%,transparent 70%,rgba(153,119,255,.38)) border-box;mask:linear-gradient(#fff 0 0) padding-box,linear-gradient(#fff 0 0);mask-composite:exclude;opacity:.58}.aidol-showcase-card:hover{transform:translateY(-7px) scale(1.006);border-color:#61c2f2;box-shadow:0 29px 57px rgba(11,88,141,.18)}.aidol-showcase-card:hover::before,.aidol-showcase-card.motion-playing::before{opacity:1;animation:aidolCardShimmer 3s linear infinite}.aidol-showcase-stage{min-height:300px;background:radial-gradient(circle at 50% 8%,#46759a,#071827 82%)}.aidol-showcase-stage::before{content:'';position:absolute;z-index:2;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(95,212,255,.17),transparent 20%,transparent 68%,rgba(77,134,255,.18)),repeating-linear-gradient(90deg,rgba(192,241,255,.11) 0 1px,transparent 1px 52px);mix-blend-mode:screen;opacity:.32;transition:opacity .3s ease}.aidol-showcase-card.motion-playing .aidol-showcase-stage::before,.aidol-showcase-card:hover .aidol-showcase-stage::before{opacity:.78;animation:aidolStageScan 4.5s linear infinite}.aidol-showcase-card.motion-playing .aidol-showcase-motion{opacity:1}.aidol-showcase-hover-hint{z-index:4;border-color:rgba(145,225,255,.48);background:rgba(3,23,39,.66);box-shadow:0 8px 20px rgba(0,0,0,.2)}.aidol-showcase-body{gap:12px;padding:17px}.aidol-showcase-heading h2{font-size:1.2rem}.aidol-card-kicker{color:#117ac0}.aidol-motion-summary{padding:2px 1px}.aidol-motion-summary strong{color:#197cbd;font-size:1.12rem}.aidol-motion-group-pill{border:1px solid #d0e9f6;background:linear-gradient(110deg,#edf9ff,#f7f5ff)}.aidol-showcase-actions button{transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease}.aidol-showcase-actions button:hover{border-color:#62bceb;background:#edfaff;box-shadow:0 7px 14px rgba(24,115,170,.1);transform:translateY(-1px)}.aidol-showcase-actions button.primary{background:linear-gradient(115deg,#147feb,#236ed6 58%,#6158d8);box-shadow:0 12px 22px rgba(22,111,222,.22)}
.aidol-live-link{display:grid;gap:9px;border:1px solid #c8e4f1;border-radius:13px;background:linear-gradient(120deg,#f1fbff,#f9f7ff);padding:10px}.aidol-live-link.is-ready{border-color:#99dff3;background:linear-gradient(120deg,#effcff,#f5f5ff)}.aidol-live-link.is-waiting{border-color:#e1d7c1;background:linear-gradient(120deg,#fffdf7,#faf8f2)}.aidol-live-link-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.aidol-live-link-head>span{display:inline-flex;align-items:center;gap:6px;color:#147eb9;font-size:.57rem;font-weight:950;letter-spacing:.1em}.aidol-live-link-head i{display:block;width:7px;height:7px;border-radius:50%;background:#28a9ec;box-shadow:0 0 0 0 rgba(40,169,236,.42);animation:aidolLinkPulse 1.7s infinite}.aidol-live-link-head b{border:1px solid #b9e5cf;border-radius:999px;background:#f4fff8;color:#23824d;padding:4px 6px;font-size:.51rem;font-weight:950;letter-spacing:.045em}.aidol-live-link.is-waiting .aidol-live-link-head b{border-color:#ead9b7;background:#fff9eb;color:#a66b22}.aidol-live-link-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:7px}.aidol-live-link-item{display:grid;gap:5px;min-width:0;border:1px solid rgba(169,212,233,.62);border-radius:9px;background:rgba(255,255,255,.65);padding:7px}.aidol-live-link-item small{color:#6b91a7;font-size:.49rem;font-weight:950;letter-spacing:.08em}.aidol-live-link-item>div{display:flex;align-items:center;gap:6px;min-width:0}.aidol-live-link-item code{overflow:hidden;flex:1;color:#315d76;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.59rem;font-weight:850;text-overflow:ellipsis;white-space:nowrap}.aidol-live-link-item strong{overflow:hidden;flex:1;color:#3c6880;font-size:.58rem;font-weight:850;line-height:1.25}.aidol-live-link .icon-only-btn{width:27px;min-width:27px;height:27px;min-height:27px;border-radius:7px;font-size:.68rem}.aidol-live-link-open{min-height:27px;flex:0 0 auto;border:1px solid #a6d8ef;border-radius:7px;background:#fff;color:#1479b5;padding:0 6px;font-size:.56rem;font-weight:950}.aidol-live-link-open span{font-size:.83rem}.aidol-live-link p{margin:0;color:#718fa1;font-size:.57rem;font-weight:720;line-height:1.35}
.aidol-motion-dialog{grid-template-rows:auto auto auto minmax(0,1fr) auto}.aidol-motion-live-bridge{display:grid;grid-template-columns:1fr 1fr;gap:8px;border-bottom:1px solid #d8e9f2;background:linear-gradient(90deg,#f8fdff,#f5f4ff);padding:10px 16px}.aidol-motion-live-step{display:grid;grid-template-columns:26px minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;border:1px solid #d2e7f2;border-radius:10px;background:rgba(255,255,255,.78);padding:7px 8px}.aidol-motion-live-step>span{display:grid;width:26px;height:26px;place-items:center;border-radius:8px;background:linear-gradient(135deg,#e0f6ff,#eee8ff);color:#177fbb;font-size:.62rem;font-weight:950}.aidol-motion-live-step>div{display:grid;min-width:0;gap:3px}.aidol-motion-live-step small{color:#5c8aa2;font-size:.51rem;font-weight:950;letter-spacing:.08em}.aidol-motion-live-step code{overflow:hidden;color:#315f7a;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.63rem;font-weight:850;text-overflow:ellipsis;white-space:nowrap}.aidol-motion-live-step strong{color:#315e78;font-size:.62rem;font-weight:850;line-height:1.25}.aidol-motion-live-step .icon-only-btn{width:28px;min-width:28px;height:28px;min-height:28px;border-radius:8px;font-size:.68rem}.aidol-motion-live-open{min-height:29px;border:1px solid #9fd5ed;border-radius:8px;background:#effaff;color:#1277b3;padding:0 8px;font-size:.6rem;font-weight:950}.aidol-motion-gallery{grid-template-columns:repeat(5,minmax(0,1fr))}.aidol-motion-tile{display:grid;grid-template-rows:auto auto auto}.aidol-motion-live-actions{display:grid;grid-template-columns:minmax(0,1fr) 27px;gap:6px;align-items:center;border-top:1px solid #e1edf4;background:#f9fcfe;padding:7px}.aidol-motion-live-actions code{overflow:hidden;color:#55778a;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.53rem;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.aidol-motion-live-actions .icon-only-btn{width:27px;min-width:27px;height:27px;min-height:27px;border-radius:7px;font-size:.67rem}.aidol-motion-lipsync-btn{grid-column:1/-1;min-height:29px;border:1px solid #8ccdf2;border-radius:8px;background:linear-gradient(115deg,#eaf9ff,#f4f3ff);color:#1477b5;font-size:.59rem;font-weight:950}.aidol-motion-lipsync-btn:hover,.aidol-motion-live-open:hover,.aidol-live-link-open:hover{border-color:#198be0;background:#e1f6ff;color:#08699f}
@keyframes aidolDeckSweep{0%{transform:translateX(-24%) rotate(0)}100%{transform:translateX(24%) rotate(0)}}@keyframes aidolOrbBreath{50%{opacity:.62;transform:translateY(-50%) scale(1.08)}}@keyframes aidolLinkPulse{70%{box-shadow:0 0 0 8px rgba(30,181,245,0)}100%{box-shadow:0 0 0 0 rgba(30,181,245,0)}}@keyframes aidolCardShimmer{0%{background-position:100% 0}100%{background-position:-120% 0}}@keyframes aidolStageScan{0%{background-position:0 0,0 0}100%{background-position:0 100%,52px 0}}@media(max-width:900px){.aidol-command-deck{grid-template-columns:1fr}.aidol-command-stats{max-width:620px}.aidol-motion-live-bridge{grid-template-columns:1fr}.aidol-motion-dialog{grid-template-rows:auto auto auto minmax(0,1fr) auto}}@media(max-width:620px){.aidol-command-deck{padding:17px}.aidol-command-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.aidol-command-stats>div{min-height:76px;padding:8px}.aidol-command-stats strong{font-size:1.1rem}.aidol-command-stats span,.aidol-command-stats small{font-size:.48rem}.aidol-live-link-grid{grid-template-columns:1fr}.aidol-motion-live-bridge{padding:9px 11px}.aidol-motion-live-step{grid-template-columns:24px minmax(0,1fr) auto}.aidol-motion-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(prefers-reduced-motion:reduce){.aidol-command-deck::before,.aidol-command-deck::after,.aidol-command-kicker i,.aidol-live-link-head i,.aidol-showcase-card:hover::before,.aidol-showcase-card.motion-playing::before,.aidol-showcase-card.motion-playing .aidol-showcase-stage::before,.aidol-showcase-card:hover .aidol-showcase-stage::before{animation:none!important}}

.creator-history-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #deedf5;background:linear-gradient(100deg,#fbfeff,#f8f8ff);padding:10px 12px}.creator-history-footer>span{color:#7893a4;font-size:.61rem;font-weight:760}.creator-history-footer button{display:inline-flex;align-items:center;gap:5px;min-height:29px;border:1px solid #b9deef;border-radius:8px;background:#fff;color:#1478b7;padding:0 8px;font-size:.61rem;font-weight:950}.creator-history-footer button:hover{border-color:#56b9ee;background:#eaf8ff}.creator-history-footer b{font-size:.82rem;line-height:1}.creator-history-copy em{display:-webkit-box;overflow:hidden;color:#c14656;font-size:.57rem;font-style:normal;font-weight:820;line-height:1.25;-webkit-box-orient:vertical;-webkit-line-clamp:2}.creator-history-item:has(.creator-history-copy em){align-items:start}.creator-history-item.is-playing{border-color:#8f7bea;background:#f7f4ff;box-shadow:0 7px 16px rgba(96,76,198,.12)}

/* Pricing guide v47 -------------------------------------------------------
   This is intentionally a product guide rather than an internal price table:
   it explains when a job is created, which actions are free, and keeps every
   amount bound to the dynamic `pricing` response in studio.js. */
.pricing-guide-page{display:grid;gap:18px;overflow:hidden;padding:22px}.pricing-guide-hero{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:space-between;gap:24px;overflow:hidden;border:1px solid #b8e1f4;border-radius:18px;background:radial-gradient(circle at 5% 5%,rgba(76,213,235,.2),transparent 31%),radial-gradient(circle at 96% 90%,rgba(112,87,230,.18),transparent 39%),linear-gradient(115deg,#f8feff 0%,#f7fbff 57%,#f7f4ff 100%);padding:25px 27px;box-shadow:0 15px 34px rgba(21,100,151,.08)}.pricing-guide-hero::before{content:"";position:absolute;z-index:-1;right:20%;bottom:-105px;width:270px;height:270px;border:1px solid rgba(33,154,225,.17);border-radius:50%;box-shadow:0 0 0 26px rgba(33,154,225,.045),0 0 0 56px rgba(106,86,220,.028)}.pricing-guide-hero-copy{display:grid;gap:9px;min-width:0}.pricing-guide-hero-copy h1{color:#123a58;font-size:clamp(1.55rem,3vw,2.32rem);font-weight:950;letter-spacing:-.055em;line-height:1.04}.pricing-guide-hero-copy p{max-width:770px;color:#5d7d93;font-size:.82rem;font-weight:700;line-height:1.58}.pricing-guide-live-price{display:grid;grid-template-columns:10px minmax(190px,280px);align-items:center;gap:10px;flex:0 0 auto;border:1px solid rgba(148,211,238,.82);border-radius:13px;background:rgba(255,255,255,.72);box-shadow:0 9px 20px rgba(24,105,152,.07),inset 0 1px rgba(255,255,255,.95);padding:11px 13px;backdrop-filter:blur(10px)}.pricing-guide-live-price>div{display:grid;gap:3px}.pricing-guide-live-price strong{color:#1779b5;font-size:.72rem;font-weight:950}.pricing-guide-live-price small{color:#708da1;font-size:.62rem;font-weight:760;line-height:1.4}.pricing-guide-live-dot{display:block;width:9px;height:9px;border-radius:50%;background:#1bb9e7;box-shadow:0 0 0 0 rgba(27,185,231,.42);animation:pricingGuidePulse 1.9s infinite}@keyframes pricingGuidePulse{70%{box-shadow:0 0 0 8px rgba(27,185,231,0)}100%{box-shadow:0 0 0 0 rgba(27,185,231,0)}}
.pricing-guide-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}.pricing-guide-card{position:relative;isolation:isolate;display:flex;flex-direction:column;min-width:0;min-height:314px;overflow:hidden;border:1px solid #d4e6f2;border-radius:16px;background:linear-gradient(150deg,#fff,#fbfdff 60%,#f7fbff);padding:16px;box-shadow:0 9px 22px rgba(25,93,134,.06);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}.pricing-guide-card::after{content:"";position:absolute;z-index:-1;right:-40px;bottom:-47px;width:136px;height:136px;border-radius:50%;background:var(--pricing-glow,rgba(31,180,241,.11));filter:blur(1px)}.pricing-guide-card:hover{border-color:#8acbf1;box-shadow:0 16px 31px rgba(22,99,145,.11);transform:translateY(-3px)}.pricing-guide-card-image{--pricing-glow:rgba(32,199,216,.13)}.pricing-guide-card-motion{--pricing-glow:rgba(93,100,231,.12)}.pricing-guide-card-voice{--pricing-glow:rgba(141,92,220,.12)}.pricing-guide-card-lipsync{--pricing-glow:rgba(17,166,123,.12)}.pricing-guide-card-brain{--pricing-glow:rgba(226,111,87,.12)}.pricing-guide-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.pricing-guide-icon{display:grid;width:37px;height:37px;place-items:center;border:1px solid #c6e6f6;border-radius:11px;background:linear-gradient(145deg,#e5faff,#edf0ff);color:#147fc0;font-size:1.04rem;font-weight:950;box-shadow:0 6px 13px rgba(24,123,184,.08)}.pricing-guide-card-motion .pricing-guide-icon{background:linear-gradient(145deg,#e9edff,#f4ecff);color:#5c5cc8}.pricing-guide-card-voice .pricing-guide-icon{background:linear-gradient(145deg,#f2eaff,#f6efff);color:#8052c5}.pricing-guide-card-lipsync .pricing-guide-icon{background:linear-gradient(145deg,#e2faf1,#eafaff);color:#12836b}.pricing-guide-card-brain .pricing-guide-icon{background:linear-gradient(145deg,#fff0e9,#fff8f2);color:#cb653d;font-size:.67rem}.pricing-guide-kind{color:#668ba4;font-size:.56rem;font-weight:950;letter-spacing:.105em}.pricing-guide-card h2{margin:16px 0 6px;color:#173c58;font-size:1rem;font-weight:950;letter-spacing:-.025em}.pricing-guide-card>p{min-height:65px;margin:0;color:#6a8598;font-size:.7rem;font-weight:720;line-height:1.48}.pricing-guide-amount{display:grid;gap:3px;margin-top:15px;padding-top:13px;border-top:1px solid #e2edf4}.pricing-guide-amount strong{overflow:hidden;color:#087bc1;font-size:1.04rem;font-weight:950;letter-spacing:-.035em;text-overflow:ellipsis;white-space:nowrap}.pricing-guide-card-motion .pricing-guide-amount strong{color:#5752c5}.pricing-guide-card-voice .pricing-guide-amount strong{color:#7c4ec0;font-size:.88rem}.pricing-guide-card-lipsync .pricing-guide-amount strong{color:#128565}.pricing-guide-card-brain .pricing-guide-amount strong{color:#c7613a;font-size:.8rem}.pricing-guide-amount span{color:#7791a2;font-size:.59rem;font-weight:820}.pricing-guide-note{display:flex;gap:5px;align-items:flex-start;margin-top:10px;color:#718c9e;font-size:.6rem;font-weight:730;line-height:1.36}.pricing-guide-note b{flex:0 0 auto;color:#159464;font-size:.61rem;font-weight:950}.pricing-guide-card-brain .pricing-guide-note b{color:#c7613a}.pricing-guide-cta{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:36px;margin-top:auto;border:1px solid #b9dff2;border-radius:9px;background:rgba(255,255,255,.85);color:#1479b4;padding:0 10px;font-size:.67rem;font-weight:950;transition:.18s ease}.pricing-guide-cta:hover,.pricing-guide-cta:focus-visible{outline:0;border-color:#1687e5;background:linear-gradient(115deg,#e8f8ff,#f3efff);box-shadow:0 7px 13px rgba(24,121,182,.1);transform:translateY(-1px)}.pricing-guide-cta span{font-size:.94rem;line-height:1}.pricing-guide-tier-prices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:13px 0}.pricing-guide-tier-prices span{display:grid;min-width:0;gap:4px;border:1px solid #d8ebe5;border-radius:9px;background:rgba(247,255,251,.83);padding:7px 5px}.pricing-guide-tier-prices small{color:#668b80;font-size:.49rem;font-weight:900;text-align:center;white-space:nowrap}.pricing-guide-tier-prices b{overflow:hidden;color:#128565;font-size:.57rem;font-weight:950;text-align:center;text-overflow:ellipsis;white-space:nowrap}

.pricing-catalog{display:grid;gap:15px;border:1px solid #d4e7f1;border-radius:16px;background:linear-gradient(145deg,#fff,#f9fcff);padding:20px;box-shadow:0 9px 22px rgba(25,93,134,.055)}.pricing-catalog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;border-bottom:1px solid #e2edf3;padding-bottom:15px}.pricing-catalog-head>div:first-child{display:grid;gap:5px;min-width:0}.pricing-catalog-kicker{color:#1981ba;font-size:.56rem;font-weight:950;letter-spacing:.12em}.pricing-catalog h2{color:#193f5a;font-size:1.08rem;font-weight:950;letter-spacing:-.026em}.pricing-catalog-head p{color:#718b9c;font-size:.65rem;font-weight:720;line-height:1.46}.pricing-catalog-status{display:grid;grid-template-columns:8px minmax(150px,230px);column-gap:8px;align-items:center;flex:0 0 auto;border:1px solid #c9e8dc;border-radius:10px;background:#f5fffa;padding:9px 10px}.pricing-catalog-status>span{grid-row:1/3;width:8px;height:8px;border-radius:50%;background:#1aad72;box-shadow:0 0 0 4px rgba(26,173,114,.1)}.pricing-catalog-status strong{color:#27735c;font-size:.59rem;font-weight:950}.pricing-catalog-status small{color:#648b7c;font-size:.54rem;font-weight:730;line-height:1.35}.pricing-catalog-groups{display:grid;gap:12px}.pricing-catalog-loading{border:1px dashed #cae2ef;border-radius:10px;background:#f7fcff;color:#68889b;padding:15px;font-size:.66rem;font-weight:800;text-align:center}.pricing-catalog-group{display:grid;gap:9px;border:1px solid #dceaf1;border-radius:12px;background:#fff;overflow:hidden}.pricing-catalog-group-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;background:linear-gradient(105deg,#f3fbff,#fbfaff);border-bottom:1px solid #e1eef4;padding:12px 13px}.pricing-catalog-group-head>div{display:grid;gap:3px;min-width:0}.pricing-catalog-group-head h3{color:#245270;font-size:.76rem;font-weight:950}.pricing-catalog-group-head p{color:#718b9b;font-size:.58rem;font-weight:720;line-height:1.4}.pricing-catalog-group-head span{flex:0 0 auto;border:1px solid #cae5f2;border-radius:999px;background:#fff;color:#287faf;padding:4px 7px;font-size:.5rem;font-weight:950;white-space:nowrap}.pricing-catalog-table-wrap{overflow:auto}.pricing-catalog-table{width:100%;min-width:590px;border-collapse:collapse}.pricing-catalog-table th,.pricing-catalog-table td{border-bottom:1px solid #edf3f6;padding:10px 13px;text-align:left;vertical-align:top}.pricing-catalog-table tr:last-child td{border-bottom:0}.pricing-catalog-table th{color:#7290a2;font-size:.53rem;font-weight:950;letter-spacing:.06em;white-space:nowrap}.pricing-catalog-table td{color:#638092;font-size:.6rem;font-weight:720;line-height:1.43}.pricing-catalog-table td:first-child{color:#234d68;font-size:.64rem;font-weight:950}.pricing-catalog-table td:nth-child(3){color:#117cad;font-size:.64rem;font-weight:950;white-space:nowrap}.pricing-catalog-table td:last-child{max-width:380px}.pricing-catalog-empty{color:#7891a0;font-size:.62rem;font-weight:720;padding:13px}.pricing-catalog-footnote{border-top:1px solid #e7f0f4;padding-top:12px;color:#748e9d;font-size:.58rem;font-weight:720;line-height:1.48}
.pricing-guide-detail-grid{display:grid;grid-template-columns:minmax(0,1.16fr) minmax(320px,.84fr);gap:13px}.pricing-guide-section{border:1px solid #d6e7f1;border-radius:16px;background:linear-gradient(145deg,#fff,#fbfdff);padding:18px}.pricing-guide-section-head{display:flex;align-items:flex-start;gap:10px}.pricing-guide-section-mark{display:grid;flex:0 0 auto;width:35px;height:35px;place-items:center;border:1px solid #cbe6f4;border-radius:10px;background:#eaf8ff;color:#157db8;font-size:.93rem;font-weight:950}.pricing-guide-section-head h2{color:#193f5a;font-size:.95rem;font-weight:950;letter-spacing:-.024em}.pricing-guide-section-head p{margin-top:4px;color:#718a9b;font-size:.67rem;font-weight:710;line-height:1.42}.pricing-guide-formula{background:radial-gradient(circle at 100% 0%,rgba(77,187,237,.1),transparent 34%),linear-gradient(145deg,#fff,#f9fdff)}.pricing-guide-formula-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:15px}.pricing-guide-formula-list>div{display:grid;gap:4px;border:1px solid #e0edf4;border-radius:10px;background:rgba(255,255,255,.77);padding:10px}.pricing-guide-formula-list strong{color:#1e5374;font-size:.68rem;font-weight:950}.pricing-guide-formula-list span{color:#718b9d;font-size:.61rem;font-weight:720;line-height:1.42}.pricing-guide-formula-list b{color:#147db8;font-weight:950}.pricing-guide-free{background:radial-gradient(circle at 100% 0%,rgba(54,205,154,.13),transparent 38%),linear-gradient(145deg,#fff,#fbfffd)}.pricing-guide-free .pricing-guide-section-mark{border-color:#bcebd5;background:#eafff2;color:#168554}.pricing-guide-free ul{display:grid;gap:8px;margin:15px 0 0;padding:0;list-style:none}.pricing-guide-free li{position:relative;padding-left:19px;color:#658278;font-size:.65rem;font-weight:730;line-height:1.4}.pricing-guide-free li::before{content:"✓";position:absolute;left:0;top:0;color:#159262;font-size:.7rem;font-weight:950}.pricing-guide-timeline{position:relative;overflow:hidden;background:radial-gradient(circle at 0% 100%,rgba(116,99,231,.08),transparent 31%),linear-gradient(145deg,#fff,#fbfdff)}.pricing-guide-timeline::after{content:"";position:absolute;right:-85px;top:-85px;width:230px;height:230px;border:1px solid rgba(109,125,222,.12);border-radius:50%;box-shadow:0 0 0 25px rgba(109,125,222,.027)}.pricing-guide-timeline>*,.pricing-guide-timeline li{position:relative;z-index:1}.pricing-guide-timeline ol{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:17px 0 0;padding:0;list-style:none}.pricing-guide-timeline li{display:grid;grid-template-columns:29px minmax(0,1fr);gap:8px;align-items:flex-start}.pricing-guide-timeline li>span{display:grid;width:28px;height:28px;place-items:center;border:1px solid #c6e5f5;border-radius:9px;background:linear-gradient(145deg,#e8f8ff,#f1eeff);color:#177ebb;font-size:.65rem;font-weight:950}.pricing-guide-timeline li strong{display:block;color:#28516d;font-size:.67rem;font-weight:950;line-height:1.3}.pricing-guide-timeline li p{margin:4px 0 0;color:#70899a;font-size:.6rem;font-weight:710;line-height:1.42}
@media(max-width:1280px){.pricing-guide-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1120px){.pricing-guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pricing-guide-card{min-height:280px}.pricing-guide-card>p{min-height:0}.pricing-guide-detail-grid{grid-template-columns:1fr}.pricing-guide-timeline ol{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 20px}.pricing-catalog-head{align-items:flex-start;flex-direction:column}.pricing-catalog-status{width:100%}}@media(max-width:760px){.pricing-guide-page{padding:14px}.pricing-guide-hero{align-items:flex-start;flex-direction:column;padding:19px}.pricing-guide-live-price{width:100%;grid-template-columns:10px minmax(0,1fr)}.pricing-guide-grid{grid-template-columns:1fr}.pricing-guide-card{min-height:0}.pricing-guide-card>p{min-height:0}.pricing-guide-formula-list{grid-template-columns:1fr}.pricing-guide-timeline ol{grid-template-columns:1fr}.pricing-guide-timeline li{grid-template-columns:29px minmax(0,1fr)}.pricing-catalog{padding:14px}.pricing-catalog-table{min-width:530px}}@media(max-width:420px){.pricing-guide-hero-copy h1{font-size:1.55rem}.pricing-guide-tier-prices{gap:4px}.pricing-guide-tier-prices span{padding:7px 3px}.pricing-guide-tier-prices b{font-size:.51rem}.pricing-guide-section{padding:14px}}
@media(prefers-reduced-motion:reduce){.pricing-guide-live-dot{animation:none}.pricing-guide-card,.pricing-guide-cta{transition:none}}

/* GenAIDOL Guide Hub v153 -------------------------------------------------
   The guide is intentionally product-first: platforms and operating playbooks
   are the primary navigation; the existing dynamic price table is a later tab. */
.guide-hub{align-content:start}.guide-hub-hero{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1.32fr) minmax(275px,.68fr);gap:24px;overflow:hidden;border:1px solid #b8e4f6;border-radius:20px;background:radial-gradient(circle at 2% 7%,rgba(45,203,233,.19),transparent 31%),radial-gradient(circle at 97% 7%,rgba(113,92,235,.17),transparent 32%),linear-gradient(124deg,#f7feff 0%,#f9fbff 51%,#f6f2ff 100%);padding:28px 30px;box-shadow:0 17px 38px rgba(19,95,148,.1)}.guide-hub-hero::before{content:"";position:absolute;z-index:-1;right:26%;bottom:-150px;width:345px;height:345px;border:1px solid rgba(48,163,226,.17);border-radius:50%;box-shadow:0 0 0 28px rgba(64,182,230,.04),0 0 0 64px rgba(117,99,229,.025)}.guide-hub-hero-copy{display:grid;align-content:center;gap:10px;min-width:0}.guide-hub-hero-copy h1{max-width:720px;color:#123a58;font-size:clamp(1.72rem,3.3vw,2.65rem);font-weight:950;letter-spacing:-.06em;line-height:1.02}.guide-hub-hero-copy>p{max-width:720px;color:#608095;font-size:.8rem;font-weight:700;line-height:1.62}.guide-hub-hero-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:7px}.guide-hub .guide-hero-primary{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:39px;border-radius:10px;padding:0 14px;font-size:.7rem;font-weight:950}.guide-hero-primary span{font-size:1rem;line-height:1}.guide-hero-secondary{min-height:39px;border:1px solid #b6ddeb;border-radius:10px;background:rgba(255,255,255,.74);color:#177bb7;padding:0 14px;font-size:.7rem;font-weight:950;transition:.18s ease}.guide-hero-secondary:hover,.guide-hero-secondary:focus-visible{outline:0;border-color:#438fe1;background:#fff;box-shadow:0 8px 17px rgba(25,114,177,.11);transform:translateY(-1px)}.guide-hub-route{position:relative;display:grid;align-content:center;gap:9px;min-width:0;border:1px solid rgba(157,209,237,.82);border-radius:15px;background:rgba(255,255,255,.7);padding:17px 18px;box-shadow:0 11px 23px rgba(27,105,156,.08),inset 0 1px rgba(255,255,255,.9);backdrop-filter:blur(10px)}.guide-hub-route::after{content:"";position:absolute;top:12px;right:13px;width:8px;height:8px;border-radius:50%;background:#1bb9e7;box-shadow:0 0 0 5px rgba(27,185,231,.11)}.guide-hub-route-label,.guide-card-label,.guide-panel-kicker{color:#5484a3;font-size:.56rem;font-weight:950;letter-spacing:.12em;line-height:1.25}.guide-hub-route strong{color:#174766;font-size:.88rem;font-weight:950;letter-spacing:-.025em;line-height:1.4}.guide-hub-route strong i{margin:0 2px;color:#299dd0;font-style:normal}.guide-hub-route p{color:#6f8b9c;font-size:.65rem;font-weight:720;line-height:1.5}.guide-hub-tabs{display:flex;align-items:center;gap:6px;overflow:auto;border:1px solid #d5e8f3;border-radius:14px;background:rgba(248,252,255,.88);padding:6px;box-shadow:0 7px 17px rgba(32,108,157,.05);scrollbar-width:thin}.guide-hub-tabs::-webkit-scrollbar{height:5px}.guide-hub-tabs::-webkit-scrollbar-thumb{border-radius:9px;background:#c4e4f3}.guide-hub-tab{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;gap:6px;min-height:33px;border:1px solid transparent;border-radius:9px;background:transparent;color:#6b899d;padding:0 10px;font-size:.65rem;font-weight:900;white-space:nowrap;transition:.18s ease}.guide-hub-tab>span{display:grid;width:18px;height:18px;place-items:center;border-radius:6px;background:#e8f4fa;color:#5c91ad;font-size:.49rem;font-weight:950}.guide-hub-tab:hover,.guide-hub-tab:focus-visible{outline:0;border-color:#c7e4f3;background:#fff;color:#237db2}.guide-hub-tab.active{border-color:#9ad5ed;background:linear-gradient(115deg,#e9faff,#f3efff);color:#116fae;box-shadow:0 5px 11px rgba(23,126,185,.09)}.guide-hub-tab.active>span{background:linear-gradient(145deg,#30c1e6,#7082e2);color:#fff;box-shadow:0 4px 9px rgba(41,139,210,.22)}.guide-hub-tab-pricing{margin-left:auto;border-color:#d9e7ef;background:rgba(255,255,255,.64);color:#63869c}.guide-hub-tab-pricing>span{background:#f2eefc;color:#7764bd}.guide-hub-panel{display:grid;gap:17px;min-width:0;border:1px solid #d4e7f1;border-radius:18px;background:linear-gradient(145deg,rgba(255,255,255,.97),rgba(249,253,255,.97));padding:21px;box-shadow:0 11px 28px rgba(30,102,146,.065)}.guide-hub-panel[hidden]{display:none!important}.guide-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;border-bottom:1px solid #e2eef4;padding-bottom:15px}.guide-panel-heading>div{display:grid;gap:6px;min-width:0}.guide-panel-heading h2{color:#173e5a;font-size:clamp(1.2rem,2.5vw,1.65rem);font-weight:950;letter-spacing:-.046em;line-height:1.08}.guide-panel-heading p{max-width:860px;color:#6a8698;font-size:.72rem;font-weight:710;line-height:1.55}.guide-panel-status{display:inline-flex;flex:0 0 auto;align-items:center;gap:7px;border:1px solid #c8ebdc;border-radius:9px;background:#f4fffa;color:#478174;padding:7px 9px;font-size:.59rem;font-weight:830;line-height:1.35}.guide-panel-status b{color:#13956b;font-size:.74rem}.guide-start-layout{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(280px,.82fr);gap:15px}.guide-step-flow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:0;list-style:none}.guide-step-flow li{display:grid;grid-template-columns:33px minmax(0,1fr);gap:10px;align-items:flex-start;border:1px solid #dcebf3;border-radius:12px;background:linear-gradient(145deg,#fff,#f9fcff);padding:12px;transition:.18s ease}.guide-step-flow li:hover{border-color:#a5d8ee;box-shadow:0 8px 17px rgba(26,106,155,.075);transform:translateY(-1px)}.guide-step-number{display:grid;width:31px;height:31px;place-items:center;border:1px solid #c8e6f5;border-radius:10px;background:linear-gradient(145deg,#e7faff,#f0efff);color:#197fba;font-size:.57rem;font-weight:950}.guide-step-flow strong{display:block;color:#244c68;font-size:.72rem;font-weight:950;line-height:1.35}.guide-step-flow p{margin-top:4px;color:#708b9d;font-size:.61rem;font-weight:700;line-height:1.47}.guide-checklist-card{position:relative;overflow:hidden;border:1px solid #d8e6fb;border-radius:13px;background:radial-gradient(circle at 100% 0%,rgba(116,98,227,.13),transparent 42%),linear-gradient(145deg,#fff,#fafbff);padding:15px}.guide-checklist-card::after{content:"";position:absolute;right:-45px;bottom:-45px;width:130px;height:130px;border:1px solid rgba(104,101,220,.13);border-radius:50%}.guide-checklist-card>*{position:relative;z-index:1}.guide-checklist-card h3{margin:6px 0 10px;color:#34416b;font-size:.94rem;font-weight:950;letter-spacing:-.026em}.guide-checklist{display:grid;gap:9px;margin:0;padding:0;list-style:none}.guide-checklist li{display:grid;grid-template-columns:18px minmax(0,1fr);gap:7px;align-items:flex-start}.guide-checklist li>span{display:grid;width:17px;height:17px;place-items:center;border-radius:50%;background:#e4faf0;color:#129367;font-size:.57rem;font-weight:950}.guide-checklist strong{display:block;color:#547386;font-size:.64rem;font-weight:900;line-height:1.3}.guide-checklist small{display:block;margin-top:2px;color:#7892a0;font-size:.57rem;font-weight:680;line-height:1.43}.guide-outcome-row,.guide-action-strip{display:flex;align-items:center;justify-content:space-between;gap:15px;border:1px solid #cae6f3;border-radius:12px;background:linear-gradient(105deg,#f1fbff,#fbfaff);padding:12px 13px}.guide-outcome-row>div:first-child,.guide-action-strip>div:first-child{display:grid;gap:4px;min-width:0}.guide-outcome-row strong,.guide-action-strip strong{color:#20506e;font-size:.7rem;font-weight:950;line-height:1.4}.guide-action-strip span{color:#718b9c;font-size:.61rem;font-weight:700;line-height:1.45}.guide-inline-actions{display:flex;flex:0 0 auto;flex-wrap:wrap;gap:7px}.guide-inline-btn{min-height:33px;border:1px solid #bddff0;border-radius:9px;background:#fff;color:#157ab6;padding:0 10px;font-size:.61rem;font-weight:950;transition:.18s ease;white-space:nowrap}.guide-inline-btn:hover,.guide-inline-btn:focus-visible,.guide-card-action:hover,.guide-card-action:focus-visible{outline:0;border-color:#4b9cde;box-shadow:0 6px 13px rgba(32,119,183,.11);transform:translateY(-1px)}.guide-inline-btn-accent{border-color:#55bfe1;background:linear-gradient(115deg,#22b4d9,#5586da);color:#fff;box-shadow:0 6px 14px rgba(33,142,201,.17)}.guide-platform-heading{position:relative;isolation:isolate;overflow:hidden;border:1px solid #d3e9f5;border-radius:13px;background:linear-gradient(112deg,#f5fdff,#fafaff);margin:-2px -2px 0;padding:15px}.guide-platform-heading::after{content:"";position:absolute;z-index:-1;right:-45px;top:-76px;width:210px;height:210px;border:1px solid rgba(47,171,221,.14);border-radius:50%;box-shadow:0 0 0 22px rgba(47,171,221,.04)}.guide-platform-heading.guide-platform-shopee{border-color:#ffe0d3;background:linear-gradient(115deg,#fffaf7,#fffdfb)}.guide-platform-heading.guide-platform-shopee::after{border-color:rgba(238,116,59,.15);box-shadow:0 0 0 22px rgba(238,116,59,.035)}.guide-platform-mark{display:grid;flex:0 0 auto;width:42px;height:42px;place-items:center;border:1px solid #bee6f5;border-radius:13px;background:linear-gradient(145deg,#e2f8ff,#ebefff);color:#218abe;font-size:1.2rem;font-weight:950}.guide-platform-shopee .guide-platform-mark{border-color:#ffd5c2;background:linear-gradient(145deg,#fff0e8,#fff7ed);color:#ee6a31}.guide-playbook-layout{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(280px,.82fr);gap:15px}.guide-live-steps{display:grid;gap:8px;margin:0;padding:0;list-style:none}.guide-live-steps li{display:grid;grid-template-columns:29px minmax(0,1fr);gap:10px;align-items:flex-start;border:1px solid #deebf2;border-radius:11px;background:#fff;padding:10px 11px}.guide-live-steps li>span{display:grid;width:27px;height:27px;place-items:center;border:1px solid #c9e8f4;border-radius:9px;background:#edfbff;color:#157cb7;font-size:.61rem;font-weight:950}.guide-live-steps-commerce li>span{border-color:#ffd9c8;background:#fff6f1;color:#e76b35}.guide-live-steps strong{display:block;color:#28516d;font-size:.69rem;font-weight:950;line-height:1.35}.guide-live-steps p{margin-top:3px;color:#718b9c;font-size:.59rem;font-weight:700;line-height:1.47}.guide-platform-sidebar{display:grid;align-content:start;gap:10px}.guide-signal-card,.guide-commerce-card,.guide-shopee-policy-card{border:1px solid #d7e8f1;border-radius:12px;background:linear-gradient(145deg,#fff,#fbfdff);padding:13px}.guide-signal-flow{display:flex;align-items:stretch;gap:4px;margin:10px 0}.guide-signal-flow span{display:grid;flex:1 1 0;min-width:0;place-items:center;border:1px solid #d9eaf4;border-radius:8px;background:#f4fbff;color:#3d708e;padding:7px 3px;font-size:.49rem;font-weight:900;line-height:1.35;text-align:center}.guide-signal-flow i{display:grid;place-items:center;color:#35a2d3;font-size:.65rem;font-style:normal}.guide-signal-card small{color:#758f9e;font-size:.56rem;font-weight:690;line-height:1.47}.guide-compliance-note{display:grid;grid-template-columns:23px minmax(0,1fr);gap:8px;border:1px solid #ffe1b8;border-radius:11px;background:#fffaf1;padding:11px}.guide-compliance-note>span{display:grid;width:22px;height:22px;place-items:center;border-radius:8px;background:#fff0d8;color:#c67817;font-size:.75rem;font-weight:950}.guide-compliance-note strong{display:block;color:#8a5d1d;font-size:.65rem;font-weight:950;line-height:1.35}.guide-compliance-note p{margin-top:3px;color:#937343;font-size:.57rem;font-weight:700;line-height:1.45}.guide-shopee-policy-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #ffd4bf;border-radius:13px;background:radial-gradient(circle at 100% 0%,rgba(245,119,54,.11),transparent 39%),linear-gradient(105deg,#fff9f5,#fffefd);padding:13px 14px}.guide-shopee-policy-banner>div{display:grid;gap:4px;min-width:0}.guide-shopee-policy-banner strong{color:#9b4e27;font-size:.69rem;font-weight:950;line-height:1.42}.guide-shopee-policy-banner p{color:#94725d;font-size:.59rem;font-weight:700;line-height:1.46}.guide-source-link{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;gap:6px;border:1px solid #ffb993;border-radius:9px;background:#fff;color:#d85d2c;padding:8px 10px;font-size:.58rem;font-weight:950;line-height:1.35;text-align:center;transition:.18s ease}.guide-source-link:hover,.guide-source-link:focus-visible{outline:0;border-color:#e87642;box-shadow:0 6px 13px rgba(214,96,45,.12);transform:translateY(-1px)}.guide-commerce-card{border-color:#ffe0d1;background:linear-gradient(145deg,#fff,#fffaf7)}.guide-commerce-card dl{display:grid;gap:5px;margin:9px 0 0}.guide-commerce-card dl>div{display:grid;grid-template-columns:72px minmax(0,1fr);gap:6px;border-bottom:1px solid #ffeadf;padding:0 0 5px}.guide-commerce-card dl>div:last-child{border-bottom:0;padding-bottom:0}.guide-commerce-card dt{color:#d36a38;font-size:.56rem;font-weight:950}.guide-commerce-card dd{margin:0;color:#887467;font-size:.56rem;font-weight:700;line-height:1.4}.guide-commerce-note{border-color:#ffd7cc;background:#fff8f5}.guide-commerce-note>span{background:#ffe9e1;color:#d76236}.guide-commerce-note strong{color:#9e5339}.guide-commerce-note p{color:#93705f}.guide-shopee-policy-card{border-color:#ffdfcf;background:linear-gradient(145deg,#fffdfc,#fff8f4)}.guide-shopee-policy-card ul{display:grid;gap:6px;margin:9px 0 0;padding:0;list-style:none}.guide-shopee-policy-card li{display:grid;grid-template-columns:15px minmax(0,1fr);gap:5px;color:#7d6a5f;font-size:.55rem;font-weight:720;line-height:1.42}.guide-shopee-policy-card li>span{color:#d96636;font-size:.6rem;font-weight:950}.guide-shopee-policy-card small{display:block;margin-top:9px;border-top:1px solid #ffe8dd;padding-top:8px;color:#a16d56;font-size:.54rem;font-weight:800;line-height:1.43}.guide-live-control-grid,.guide-asset-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.guide-control-card,.guide-asset-card{position:relative;isolation:isolate;display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #d8e8f1;border-radius:13px;background:linear-gradient(145deg,#fff,#fafcff);padding:14px}.guide-control-card::after,.guide-asset-card::after{content:"";position:absolute;z-index:-1;right:-28px;bottom:-32px;width:106px;height:106px;border-radius:50%;background:rgba(50,181,224,.09)}.guide-control-card:nth-child(2)::after,.guide-asset-card:nth-child(2)::after{background:rgba(111,97,221,.085)}.guide-control-card:nth-child(3)::after,.guide-asset-card:nth-child(3)::after{background:rgba(37,175,133,.085)}.guide-control-card:nth-child(4)::after{background:rgba(236,161,68,.1)}.guide-control-icon,.guide-asset-icon{display:grid;width:29px;height:29px;place-items:center;border:1px solid #cce7f4;border-radius:9px;background:#eafaff;color:#1680bc;font-size:.65rem;font-weight:950}.guide-control-card h3,.guide-asset-card h3{margin:10px 0 4px;color:#2b536e;font-size:.74rem;font-weight:950;line-height:1.35}.guide-control-card p,.guide-asset-card p{color:#718b9d;font-size:.59rem;font-weight:700;line-height:1.48}.guide-troubleshoot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.guide-troubleshoot-card{border:1px solid #e0e8f1;border-radius:12px;background:#fff;padding:13px}.guide-troubleshoot-card h3{margin:6px 0 4px;color:#36536a;font-size:.69rem;font-weight:950;line-height:1.38}.guide-troubleshoot-card p{color:#758d9b;font-size:.59rem;font-weight:700;line-height:1.48}.guide-asset-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.guide-asset-card{min-height:204px}.guide-asset-icon{font-size:.95rem}.guide-card-action{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:32px;margin-top:auto;border:1px solid #bde1f0;border-radius:9px;background:rgba(255,255,255,.85);color:#147cb8;padding:0 9px;font-size:.59rem;font-weight:950;transition:.18s ease}.guide-card-action span{font-size:.8rem}.guide-asset-rules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;border-top:1px solid #e4eff4;padding-top:1px}.guide-asset-rules>div{display:grid;grid-template-columns:20px minmax(0,1fr);gap:8px}.guide-asset-rules>div>span{display:grid;width:19px;height:19px;place-items:center;border-radius:50%;background:#e3faf0;color:#139369;font-size:.58rem;font-weight:950}.guide-asset-rules strong{display:block;color:#456675;font-size:.63rem;font-weight:950;line-height:1.38}.guide-asset-rules p{margin-top:2px;color:#758d99;font-size:.56rem;font-weight:700;line-height:1.46}.guide-hub-pricing-panel{display:grid;gap:18px;border:0;background:transparent;padding:0;box-shadow:none}.guide-hub .pricing-guide-hero-copy h2{color:#123a58;font-size:clamp(1.55rem,3vw,2.32rem);font-weight:950;letter-spacing:-.055em;line-height:1.04}.guide-hub .pricing-guide-hero-copy h2+p{max-width:770px;color:#5d7d93;font-size:.82rem;font-weight:700;line-height:1.58}
@media(max-width:1120px){.guide-hub-hero{grid-template-columns:1fr}.guide-hub-route{max-width:590px}.guide-live-control-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.guide-troubleshoot-grid,.guide-asset-rules{grid-template-columns:1fr}.guide-asset-rules{gap:9px}.guide-asset-card{min-height:190px}}
@media(max-width:800px){.guide-hub-hero{padding:22px}.guide-start-layout,.guide-playbook-layout{grid-template-columns:1fr}.guide-hub-tab-pricing{margin-left:0}.guide-shopee-policy-banner{align-items:flex-start;flex-direction:column}.guide-source-link{width:100%}.guide-panel-heading{align-items:flex-start;flex-direction:column}.guide-panel-status{max-width:100%}.guide-signal-flow{flex-wrap:wrap}.guide-signal-flow span{min-width:calc(50% - 8px)}.guide-signal-flow i{height:22px}.guide-outcome-row,.guide-action-strip{align-items:flex-start;flex-direction:column}.guide-inline-actions{width:100%}.guide-inline-actions .guide-inline-btn{flex:1 1 180px}.guide-action-strip .guide-inline-btn{width:100%}}
@media(max-width:620px){.guide-hub-hero{border-radius:16px;padding:18px}.guide-hub-hero-copy h1{font-size:1.68rem}.guide-hub-tabs{flex-wrap:nowrap;border-radius:12px}.guide-hub-tab{min-height:32px;padding:0 9px}.guide-hub-panel{border-radius:15px;padding:14px}.guide-platform-heading{margin:-1px -1px 0;padding:12px}.guide-step-flow{grid-template-columns:1fr}.guide-live-control-grid,.guide-asset-grid{grid-template-columns:1fr}.guide-control-card,.guide-asset-card{min-height:0}.guide-signal-flow{display:grid;grid-template-columns:1fr 14px 1fr}.guide-signal-flow span{min-width:0}.guide-signal-flow span:nth-of-type(3){grid-column:1/2}.guide-signal-flow span:nth-of-type(4){grid-column:3/4}.guide-signal-flow i:nth-of-type(2){grid-column:2/3;grid-row:2}.guide-signal-flow i:nth-of-type(3){display:none}.guide-hub-route{padding:14px}.guide-hero-secondary,.guide-hub .guide-hero-primary{flex:1 1 180px}.guide-commerce-card dl>div{grid-template-columns:62px minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.guide-hub-tab,.guide-step-flow li,.guide-hero-secondary,.guide-inline-btn,.guide-card-action,.guide-source-link{transition:none}}

/* Documentation Center ---------------------------------------------------
   The guide is a real documentation layout: persistent chapter navigation
   on the left, one active article on the right, and a compact mobile fall
   back. Keep the legacy horizontal tab strip in the DOM for compatibility,
   but do not expose it as a second navigation system. */
.guide-doc-page{display:grid;grid-template-columns:minmax(228px,258px) minmax(0,1fr);align-items:start;gap:18px;min-width:0}
.guide-doc-page>.guide-hub-hero{grid-column:1/-1;grid-row:1;min-width:0}
.guide-doc-page>#guideHubTabsLegacy{display:none!important}
.guide-doc-page>.guide-doc-sidebar{grid-column:1;grid-row:2;min-width:0}
.guide-doc-page>.guide-hub-panel{grid-column:2;grid-row:2;min-width:0}
.guide-doc-sidebar{position:sticky;top:18px;z-index:4;display:grid;align-content:start;gap:12px;border:1px solid #d5e7f1;border-radius:17px;background:linear-gradient(155deg,#fbfeff,#f5f8ff 68%,#faf7ff);padding:13px;box-shadow:0 14px 30px rgba(24,91,133,.085)}
.guide-doc-sidebar-head{display:grid;gap:6px;border-bottom:1px solid #e1edf3;padding:5px 5px 13px}.guide-doc-sidebar-head strong{color:#173f5c;font-size:.9rem;font-weight:950;letter-spacing:-.03em}.guide-doc-sidebar-head small{color:#7590a0;font-size:.58rem;font-weight:720;line-height:1.45}
.guide-doc-nav{display:grid;gap:4px;min-width:0}.guide-doc-nav-item{display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:8px;min-height:39px;width:100%;border:1px solid transparent;border-radius:10px;background:transparent;color:#638196;padding:6px 7px;font-size:.62rem;font-weight:900;line-height:1.25;text-align:left;transition:background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease}.guide-doc-nav-item>span{display:grid;width:27px;height:27px;place-items:center;border:1px solid #d8e9f2;border-radius:8px;background:#eff8fc;color:#6a96aa;font-size:.52rem;font-weight:950}.guide-doc-nav-item:hover,.guide-doc-nav-item:focus-visible{outline:0;border-color:#afd8ec;background:#fff;color:#1a78ae;box-shadow:0 6px 14px rgba(34,121,173,.08);transform:translateX(1px)}.guide-doc-nav-item.active{border-color:#8dcdeb;background:linear-gradient(115deg,#e8f9ff,#f3efff);color:#126da9;box-shadow:0 8px 16px rgba(36,126,184,.1)}.guide-doc-nav-item.active>span{border-color:transparent;background:linear-gradient(145deg,#27b8dc,#6f7cde);color:#fff;box-shadow:0 4px 9px rgba(47,133,202,.2)}
.guide-doc-sidebar-foot{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:start;gap:7px;border:1px solid #cfe9dc;border-radius:10px;background:#f5fffa;padding:9px}.guide-doc-sidebar-foot>span{display:grid;width:20px;height:20px;place-items:center;border-radius:7px;background:#dcf8e9;color:#139263;font-size:.65rem;font-weight:950}.guide-doc-sidebar-foot small{color:#608a79;font-size:.56rem;font-weight:780;line-height:1.4}
.guide-doc-panel{min-height:100%;overflow:hidden}.guide-doc-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.guide-doc-feature-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.guide-doc-feature-card{position:relative;isolation:isolate;display:flex;min-width:0;flex-direction:column;overflow:hidden;border:1px solid #d9e9f1;border-radius:13px;background:linear-gradient(145deg,#fff,#f8fcff);padding:14px}.guide-doc-feature-card::after{content:"";position:absolute;z-index:-1;right:-31px;bottom:-38px;width:115px;height:115px;border-radius:50%;background:rgba(44,181,222,.08)}.guide-doc-feature-card:nth-child(2)::after{background:rgba(111,94,220,.08)}.guide-doc-feature-card:nth-child(3)::after{background:rgba(33,176,133,.08)}.guide-doc-feature-card:nth-child(4)::after{background:rgba(233,155,65,.09)}.guide-doc-feature-icon{display:grid;width:31px;height:31px;place-items:center;border:1px solid #cde7f3;border-radius:9px;background:#eafaff;color:#1681bb;font-size:.76rem;font-weight:950}.guide-doc-feature-card h3{margin:10px 0 4px;color:#2a526d;font-size:.74rem;font-weight:950;line-height:1.35}.guide-doc-feature-card p{color:#708a9b;font-size:.6rem;font-weight:700;line-height:1.48}
.guide-doc-flow-card{display:grid;gap:10px;border:1px solid #c9e4f0;border-radius:13px;background:linear-gradient(105deg,#f1fbff,#fbfaff);padding:14px}.guide-doc-flow-card>div{display:flex;align-items:center;flex-wrap:wrap;gap:7px;color:#245773;font-size:.7rem;font-weight:950}.guide-doc-flow-card i{color:#2a9dce;font-size:.9rem;font-style:normal}.guide-doc-flow-card small{color:#718a9a;font-size:.59rem;font-weight:720;line-height:1.48}.guide-doc-warning{display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;border:1px solid #ffe0b4;border-radius:12px;background:#fffaf1;padding:12px}.guide-doc-warning>span{display:grid;width:29px;height:29px;place-items:center;border-radius:10px;background:#fff0d3;color:#c7791b;font-size:.86rem;font-weight:950}.guide-doc-warning strong{display:block;color:#895d1d;font-size:.68rem;font-weight:950;line-height:1.35}.guide-doc-warning p{margin-top:3px;color:#937445;font-size:.59rem;font-weight:700;line-height:1.48}
.guide-doc-screenshot{display:grid;gap:8px;margin:0;border:1px solid #d6e7ef;border-radius:13px;background:#f7fbfd;padding:9px}.guide-doc-screenshot img{display:block;width:100%;height:auto;max-height:620px;border-radius:9px;background:#172235;object-fit:contain}.guide-doc-screenshot figcaption,.guide-doc-image-pair figcaption{color:#77909e;font-size:.56rem;font-weight:720;line-height:1.43}.guide-doc-image-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.guide-doc-image-pair figure{display:grid;gap:8px;margin:0;min-width:0;border:1px solid #d6e7ef;border-radius:13px;background:#f7fbfd;padding:9px}.guide-doc-image-pair img{display:block;width:100%;height:auto;border-radius:9px;background:#172235;object-fit:contain}
.guide-tiktok-connection{display:grid;gap:14px;border:1px solid #cfe5f0;border-radius:15px;background:linear-gradient(145deg,#fbfeff,#f8f9ff);padding:14px}.guide-tiktok-connection>.guide-panel-heading{margin:0;padding-bottom:12px}.guide-tiktok-connection-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}.guide-tiktok-connection-steps li{display:grid;grid-template-columns:31px minmax(0,1fr);gap:9px;align-items:start;border:1px solid #dcebf2;border-radius:11px;background:#fff;padding:10px}.guide-tiktok-connection-steps li>span{display:grid;width:29px;height:29px;place-items:center;border:1px solid #bfe2f1;border-radius:9px;background:#edfaff;color:#157db7;font-size:.54rem;font-weight:950}.guide-tiktok-connection-steps strong{display:block;color:#29536c;font-size:.65rem;font-weight:950;line-height:1.35}.guide-tiktok-connection-steps p{margin-top:3px;color:#718b9a;font-size:.57rem;font-weight:700;line-height:1.46}
.guide-concert-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.guide-concert-grid>article{border:1px solid #dddff3;border-radius:13px;background:linear-gradient(145deg,#fff,#faf9ff);padding:13px}.guide-concert-grid>article>span{display:grid;width:28px;height:28px;place-items:center;border-radius:9px;background:#f0edff;color:#6f61c3;font-size:.57rem;font-weight:950}.guide-concert-grid h3{margin:9px 0 4px;color:#3f4777;font-size:.69rem;font-weight:950;line-height:1.35}.guide-concert-grid p{color:#7c839d;font-size:.57rem;font-weight:700;line-height:1.46}.guide-gift-flow{display:flex;align-items:stretch;gap:6px;border:1px solid #cfe7e0;border-radius:13px;background:linear-gradient(105deg,#f3fffb,#f7fbff);padding:12px}.guide-gift-flow>div{display:grid;flex:1 1 0;gap:5px;min-width:0}.guide-gift-flow>div>span{display:grid;width:26px;height:26px;place-items:center;border-radius:8px;background:#dcf9eb;color:#148c65;font-size:.58rem;font-weight:950}.guide-gift-flow strong{color:#2b6757;font-size:.64rem;font-weight:950;line-height:1.35}.guide-gift-flow small{color:#729088;font-size:.55rem;font-weight:700;line-height:1.42}.guide-gift-flow>i{display:grid;place-items:center;color:#27a17f;font-size:.8rem;font-style:normal}.guide-live-ui-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
@media(max-width:1120px){.guide-doc-page{grid-template-columns:minmax(205px,225px) minmax(0,1fr);gap:14px}.guide-doc-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.guide-concert-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.guide-live-ui-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.guide-doc-page{display:block}.guide-doc-page>.guide-hub-hero{margin-bottom:14px}.guide-doc-sidebar{position:static;margin-bottom:14px}.guide-doc-nav{display:flex;overflow-x:auto;gap:6px;padding-bottom:2px;scrollbar-width:thin}.guide-doc-nav-item{flex:0 0 190px;min-height:38px}.guide-doc-sidebar-foot{display:none}.guide-doc-panel{margin-bottom:14px}.guide-tiktok-connection-steps{grid-template-columns:1fr}.guide-gift-flow{display:grid;grid-template-columns:1fr 20px 1fr}.guide-gift-flow>i{min-height:10px;transform:rotate(90deg)}.guide-gift-flow>i:nth-of-type(2){grid-column:2;grid-row:2}.guide-gift-flow>i:nth-of-type(3){grid-column:2;grid-row:4}.guide-gift-flow>div:nth-of-type(3){grid-column:3;grid-row:3}.guide-gift-flow>div:nth-of-type(4){grid-column:1;grid-row:5}.guide-doc-image-pair{grid-template-columns:1fr}}
@media(max-width:620px){.guide-doc-feature-grid,.guide-doc-feature-grid-3,.guide-live-ui-grid,.guide-concert-grid{grid-template-columns:1fr}.guide-doc-panel{padding:14px}.guide-doc-sidebar{border-radius:14px;padding:10px}.guide-doc-sidebar-head{padding:3px 3px 10px}.guide-doc-sidebar-head small{font-size:.56rem}.guide-doc-nav-item{flex-basis:175px;font-size:.59rem}.guide-doc-flow-card>div{align-items:flex-start;flex-direction:column}.guide-doc-flow-card i{display:none}.guide-gift-flow{display:flex;align-items:stretch;flex-direction:column}.guide-gift-flow>i{min-height:0;transform:rotate(90deg)}.guide-gift-flow>div:nth-of-type(3),.guide-gift-flow>div:nth-of-type(4){display:grid}}
@media(prefers-reduced-motion:reduce){.guide-doc-nav-item{transition:none}}

/* AIDOL Live customer-facing guide -------------------------------------- */
.guide-live-customer-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.58fr);gap:15px;align-items:center;border:1px solid #bfe2f1;border-radius:14px;background:radial-gradient(circle at 100% 0,rgba(83,190,239,.16),transparent 38%),linear-gradient(110deg,#f2fbff,#fbfaff);padding:16px}.guide-live-customer-intro>div:first-child{display:grid;gap:7px}.guide-live-customer-intro h3{color:#164968;font-size:1.08rem;font-weight:950;letter-spacing:-.035em;line-height:1.18}.guide-live-customer-intro p{color:#668497;font-size:.68rem;font-weight:720;line-height:1.55}.guide-live-customer-points{display:grid;gap:7px;border-left:1px solid #cfe5ef;padding-left:15px}.guide-live-customer-points span{display:flex;align-items:center;gap:8px;color:#467489;font-size:.63rem;font-weight:850}.guide-live-customer-points b{display:grid;width:25px;height:25px;place-items:center;border-radius:8px;background:#e0f6ff;color:#167eae;font-size:.52rem;font-weight:950}
.guide-live-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.guide-live-feature-card{position:relative;isolation:isolate;display:grid;grid-template-columns:35px minmax(0,1fr);gap:9px;min-width:0;overflow:hidden;border:1px solid #d6e7ef;border-radius:13px;background:linear-gradient(145deg,#fff,#f8fcff);padding:13px}.guide-live-feature-card::after{content:"";position:absolute;z-index:-1;right:-35px;bottom:-42px;width:122px;height:122px;border-radius:50%;background:rgba(31,176,222,.075)}.guide-live-feature-card:nth-child(2)::after,.guide-live-feature-card:nth-child(5)::after{background:rgba(109,93,219,.075)}.guide-live-feature-card:nth-child(3)::after,.guide-live-feature-card:nth-child(6)::after{background:rgba(28,172,132,.075)}.guide-live-feature-icon{display:grid;width:33px;height:33px;place-items:center;border:1px solid #c7e5f1;border-radius:10px;background:#eafaff;color:#1681ba;font-size:.9rem;font-weight:950}.guide-live-feature-card h3{color:#28536c;font-size:.72rem;font-weight:950;line-height:1.35}.guide-live-feature-card p{margin-top:4px;color:#718b9b;font-size:.59rem;font-weight:700;line-height:1.48}.guide-live-feature-card small{grid-column:2;margin-top:4px;border-top:1px solid #e5eff4;padding-top:6px;color:#628699;font-size:.54rem;font-weight:800;line-height:1.4}
.guide-live-event-guide,.guide-live-operating-flow,.guide-live-visual-library,.guide-live-video-block{display:grid;gap:13px;border:1px solid #d5e7ef;border-radius:15px;background:linear-gradient(145deg,#fbfeff,#fafaff);padding:14px}.guide-live-event-guide>.guide-panel-heading,.guide-live-operating-flow>.guide-panel-heading,.guide-live-visual-library>.guide-panel-heading,.guide-live-video-block>.guide-panel-heading{margin:0;padding-bottom:12px}.guide-live-event-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.guide-live-event-grid article{display:grid;grid-template-columns:28px minmax(0,1fr);column-gap:8px;min-width:0;border:1px solid #deebf2;border-radius:11px;background:#fff;padding:10px}.guide-live-event-grid article>span{display:grid;width:26px;height:26px;place-items:center;border-radius:8px;background:#eefaff;color:#2182b5;font-size:.83rem}.guide-live-event-grid h4{color:#2c566e;font-size:.64rem;font-weight:950;line-height:1.35}.guide-live-event-grid p{grid-column:1/-1;margin-top:6px;color:#718a9a;font-size:.57rem;font-weight:700;line-height:1.45}.guide-live-event-grid small{grid-column:1/-1;margin-top:6px;border-top:1px solid #e9f0f4;padding-top:6px;color:#7893a0;font-size:.53rem;font-weight:760;line-height:1.4}.guide-live-event-grid article:nth-child(2n)>span{background:#f2efff;color:#6c5bc1}.guide-live-event-grid article:nth-child(3n)>span{background:#eafbf4;color:#168d67}.guide-live-event-grid article:nth-child(4n)>span{background:#fff5e8;color:#c4771b}
.guide-live-operating-flow>ol{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}.guide-live-operating-flow li{display:grid;gap:7px;border:1px solid #dceaf1;border-radius:11px;background:#fff;padding:10px}.guide-live-operating-flow li>span{display:grid;width:27px;height:27px;place-items:center;border-radius:8px;background:#e8f8ff;color:#187eaf;font-size:.55rem;font-weight:950}.guide-live-operating-flow strong{color:#2d586f;font-size:.62rem;font-weight:950;line-height:1.35}.guide-live-operating-flow p{margin-top:3px;color:#718b9b;font-size:.55rem;font-weight:700;line-height:1.43}
.guide-live-image-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.guide-live-image-grid figure{display:grid;gap:7px;margin:0;min-width:0;border:1px solid #d7e7ef;border-radius:11px;background:#f7fbfd;padding:7px}.guide-live-image-grid img{display:block;width:100%;height:auto;border-radius:7px;background:#172235;object-fit:contain}.guide-live-image-grid figcaption{color:#718b9a;font-size:.54rem;font-weight:760;line-height:1.4}
.guide-live-video-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.guide-live-video-card{display:grid;gap:8px;min-width:0;border:1px solid #d5e6ef;border-radius:13px;background:#fff;padding:10px;box-shadow:0 8px 18px rgba(29,98,137,.06)}.guide-live-video-card video{display:block;width:100%;aspect-ratio:16/9;border-radius:9px;background:#0d1828;object-fit:contain}.guide-live-video-label{display:flex;align-items:center;gap:8px}.guide-live-video-label span{display:grid;width:27px;height:27px;place-items:center;border-radius:8px;background:#e6f8ff;color:#1681b7;font-size:.55rem;font-weight:950}.guide-live-video-label strong{color:#24546d;font-size:.69rem;font-weight:950}.guide-live-video-card h4{color:#2a536a;font-size:.7rem;font-weight:950;line-height:1.35}.guide-live-video-card p{color:#718b9a;font-size:.59rem;font-weight:700;line-height:1.48}
@media(max-width:1120px){.guide-live-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.guide-live-event-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.guide-live-operating-flow>ol{grid-template-columns:repeat(3,minmax(0,1fr))}.guide-live-image-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.guide-live-customer-intro{grid-template-columns:1fr}.guide-live-customer-points{border-top:1px solid #cfe5ef;border-left:0;padding:11px 0 0}.guide-live-video-grid{grid-template-columns:1fr}.guide-live-operating-flow>ol{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.guide-live-feature-grid,.guide-live-event-grid,.guide-live-operating-flow>ol,.guide-live-image-grid{grid-template-columns:1fr}.guide-live-customer-intro,.guide-live-event-guide,.guide-live-operating-flow,.guide-live-visual-library,.guide-live-video-block{padding:11px}.guide-live-feature-card{grid-template-columns:31px minmax(0,1fr)}.guide-live-feature-icon{width:29px;height:29px}.guide-live-feature-card small{grid-column:2}.guide-live-image-grid{display:grid}}

/* AIDOL Library command header v39 ---------------------------------------
   A compact command surface replaces the loose title + paragraph + CTA row. */
.aidol-view>.aidol-library-hero{position:relative;display:flex;min-height:132px;align-items:center;justify-content:space-between;gap:22px;isolation:isolate;overflow:hidden;margin:0 0 17px;border:1px solid #c5e3f2;border-radius:18px;background:radial-gradient(circle at 8% 0%,rgba(80,199,246,.19),transparent 33%),radial-gradient(circle at 96% 100%,rgba(126,102,245,.13),transparent 38%),linear-gradient(112deg,#fff 0%,#f9fdff 54%,#f6f6ff 100%);box-shadow:0 15px 36px rgba(22,95,136,.09);padding:20px 21px}.aidol-view>.aidol-library-hero::before{content:"";position:absolute;z-index:-1;right:28%;bottom:-68px;width:215px;height:215px;border:1px solid rgba(41,161,225,.12);border-radius:50%;box-shadow:0 0 0 22px rgba(41,161,225,.035),0 0 0 48px rgba(106,93,235,.025)}.aidol-view>.aidol-library-hero::after{content:"";position:absolute;z-index:-1;right:-30px;top:-45px;width:174px;height:174px;border-radius:50%;background:radial-gradient(circle,rgba(73,199,244,.18),rgba(73,199,244,0) 67%)}.aidol-library-hero-copy{display:grid;gap:9px;min-width:0}.aidol-library-kicker{display:inline-flex;align-items:center;gap:7px;width:max-content;color:#1581bf;font-size:.59rem;font-weight:950;letter-spacing:.13em}.aidol-library-kicker i{display:block;width:7px;height:7px;border-radius:50%;background:#1caeee;box-shadow:0 0 0 4px rgba(28,174,238,.1)}.aidol-library-title-row{display:flex;align-items:center;gap:12px;min-width:0}.aidol-library-mark{display:grid;flex:0 0 auto;width:47px;height:47px;place-items:center;border:1px solid #bae3f5;border-radius:14px;background:linear-gradient(140deg,#e8f9ff,#f1edff);color:#277cd0;font-size:1.22rem;box-shadow:0 8px 17px rgba(37,128,187,.1)}.aidol-library-title-row>div{display:grid;gap:4px;min-width:0}.aidol-library-title-row h1{margin:0;color:#142f4a;font-size:clamp(1.76rem,2.65vw,2.45rem);font-weight:950;letter-spacing:-.053em;line-height:1}.aidol-library-title-row p{max-width:650px;margin:0;color:#668397;font-size:.72rem;font-weight:720;line-height:1.45}.aidol-library-toolbar{display:flex;flex:0 0 auto;align-items:center;gap:10px}.aidol-capacity-card{display:grid;gap:2px;min-width:176px;border:1px solid rgba(151,206,234,.65);border-radius:13px;background:rgba(255,255,255,.7);box-shadow:0 9px 19px rgba(32,109,154,.065);padding:10px 12px;backdrop-filter:blur(8px)}.aidol-capacity-card>span{color:#4e83a1;font-size:.5rem;font-weight:950;letter-spacing:.105em}.aidol-capacity-card strong{color:#167fbe;font-size:1.18rem;font-weight:950;letter-spacing:-.04em;line-height:1.08}.aidol-capacity-card small{max-width:185px;color:#6f8e9f;font-size:.58rem;font-weight:760;line-height:1.3}.aidol-create-cta{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;min-height:44px;white-space:nowrap;border-radius:11px!important;background:linear-gradient(120deg,#1187f0,#226fe0 60%,#6956d5)!important;box-shadow:0 12px 23px rgba(28,105,215,.23);padding:0 14px!important;font-size:.7rem!important;transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}.aidol-create-cta i{display:grid;width:18px;height:18px;place-items:center;border-radius:6px;background:rgba(255,255,255,.18);font-size:1rem;font-style:normal;font-weight:700;line-height:1}.aidol-create-cta:hover{box-shadow:0 16px 28px rgba(28,105,215,.3);filter:saturate(1.06);transform:translateY(-2px)}.aidol-create-cta:focus-visible{outline:3px solid rgba(28,139,243,.25);outline-offset:3px}
@media(max-width:900px){.aidol-view>.aidol-library-hero{align-items:flex-start;flex-direction:column}.aidol-library-toolbar{width:100%;justify-content:space-between}.aidol-library-title-row p{max-width:760px}}@media(max-width:560px){.aidol-view>.aidol-library-hero{min-height:0;padding:16px}.aidol-library-title-row{align-items:flex-start}.aidol-library-mark{width:42px;height:42px;border-radius:12px;font-size:1rem}.aidol-library-title-row h1{font-size:1.78rem}.aidol-library-title-row p{font-size:.68rem}.aidol-library-toolbar{align-items:stretch;flex-direction:column;gap:8px}.aidol-capacity-card{min-width:0;grid-template-columns:auto auto;column-gap:10px;align-items:center}.aidol-capacity-card>span{grid-column:1/-1}.aidol-capacity-card small{max-width:none}.aidol-create-cta{width:100%;min-height:42px}.aidol-view>.aidol-library-hero::before{right:-55px;bottom:-100px}}

/* AIDOL motion source v41 ------------------------------------------------
   The source character must be visible at a glance.  A select alone cannot
   communicate which avatar is being sent to the I2V worker. */
.motion-flow-context.motion-character-source{display:grid;grid-template-columns:54px minmax(0,1fr) minmax(178px,238px);align-items:center;gap:11px;border:1px solid #d8e9f2;border-radius:13px;background:linear-gradient(112deg,#fbfeff,#f3faff 64%,#f8f6ff);padding:10px 12px;box-shadow:inset 0 1px rgba(255,255,255,.82)}
.motion-character-avatar{position:relative;display:grid;width:54px;height:54px;place-items:center;overflow:hidden;border:1px solid #b9dfef;border-radius:14px;background:linear-gradient(145deg,#e4f7ff,#eeeaff);color:#227bb4;box-shadow:0 7px 15px rgba(27,122,180,.1)}
.motion-character-avatar img{display:block;width:100%;height:100%;object-fit:cover}.motion-character-avatar span{font-size:.61rem;font-weight:950;letter-spacing:.08em}
.motion-character-copy{display:grid;min-width:0;gap:3px}.motion-character-copy>span{color:#167db9;font-size:.55rem;font-weight:950;letter-spacing:.115em}.motion-character-copy strong{overflow:hidden;color:#1e4b68;font-size:.84rem;font-weight:950;text-overflow:ellipsis;white-space:nowrap}.motion-character-copy small{overflow:hidden;color:#6f8c9e;font-size:.61rem;font-weight:750;line-height:1.32;text-overflow:ellipsis;white-space:nowrap}
.motion-character-switch{display:grid!important;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:4px 7px!important;min-width:0;color:#67869a!important;font-size:.57rem!important;font-weight:950!important}.motion-character-switch>span{white-space:nowrap}.motion-character-switch select{min-width:0;min-height:33px!important;border:1px solid #cde3ef!important;border-radius:8px!important;background:#fff!important;color:#24536f!important;padding:0 8px!important;font-size:.64rem!important;font-weight:850!important}.motion-character-switch small{grid-column:1/-1;overflow:hidden;color:#7995a6;font-size:.55rem;font-weight:740;text-overflow:ellipsis;white-space:nowrap}.motion-character-switch small strong{color:#2d7198;font-weight:950}
.motion-character-source.is-empty{border-color:#e2e8ed;background:linear-gradient(112deg,#fcfdfd,#f6f9fb)}.motion-character-source.is-empty .motion-character-avatar{border-color:#dce7ed;background:#f1f6f8;color:#91a6b4}.motion-character-source.is-empty .motion-character-copy>span{color:#829aa9}.motion-character-source.is-empty .motion-character-copy strong{color:#617d8f}
@media(max-width:700px){.motion-flow-context.motion-character-source{grid-template-columns:50px minmax(0,1fr);gap:9px;padding:10px}.motion-character-avatar{width:50px;height:50px;border-radius:13px}.motion-character-switch{grid-column:1/-1;grid-template-columns:auto minmax(0,1fr);padding-top:8px;border-top:1px solid #e1edf3}.motion-character-switch small{display:block!important}}
@media(max-width:420px){.motion-flow-context.motion-character-source{grid-template-columns:46px minmax(0,1fr)}.motion-character-avatar{width:46px;height:46px}.motion-character-copy strong{font-size:.78rem}.motion-character-copy small{white-space:normal}.motion-character-switch{grid-template-columns:1fr}.motion-character-switch select{width:100%}.motion-character-switch small{white-space:normal}}

/* Motion gallery + floating composer v43 ---------------------------------
   The working surface is the finished/pending motion library.  Creation is
   deliberately moved into a focused drawer so a long prompt never pushes the
   actual motion results below the fold. */
.motion-flow-form{min-height:0}.motion-flow-canvas{gap:14px;min-height:580px;padding:23px clamp(18px,3vw,34px);background:radial-gradient(circle at 96% 0%,rgba(91,190,244,.12),transparent 27%),linear-gradient(180deg,#fff,#f8fcff)}
.motion-results-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:15px;border-bottom:1px solid #dcebf3}.motion-results-header>div:first-child{display:grid;min-width:0;gap:5px}.motion-results-kicker{color:#1686c8;font-size:.58rem;font-weight:950;letter-spacing:.13em}.motion-results-header h2{overflow:hidden;margin:0;color:#173e59;font-size:clamp(1.28rem,2vw,1.72rem);font-weight:950;letter-spacing:-.04em;text-overflow:ellipsis;white-space:nowrap}.motion-results-header p{max-width:610px;margin:0;color:#6d899b;font-size:.7rem;font-weight:720;line-height:1.5}.motion-results-actions{display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;gap:8px}.motion-results-actions .motion-flow-ready{margin:0}.motion-open-composer{display:inline-flex!important;align-items:center;justify-content:center;min-height:38px!important;white-space:nowrap;border-radius:10px!important;background:linear-gradient(120deg,#118cf0,#236fdf 62%,#6b58d5)!important;box-shadow:0 10px 21px rgba(25,109,218,.23);padding:0 13px!important;font-size:.67rem!important;font-weight:950!important}.motion-open-composer:hover{filter:saturate(1.08);transform:translateY(-1px)}
.motion-flow-group-list .motion-group-chip{position:relative;padding-right:31px}.motion-flow-group-list .motion-group-chip em{position:absolute;right:8px;display:grid;min-width:18px;height:18px;place-items:center;border-radius:999px;background:#e7f3fb;color:#347aa1;font-size:.55rem;font-style:normal;font-weight:950}.motion-flow-group-list .motion-group-chip.active em{background:rgba(255,255,255,.9);color:#1475ae}
.motion-flow-library{width:100%;margin:0!important;overflow:hidden;border:1px solid #cfe4f1!important;border-radius:16px!important;background:rgba(255,255,255,.82)!important;box-shadow:0 12px 30px rgba(18,92,135,.07)}.motion-flow-library .wizard-motion-library-head{align-items:center;padding:13px 15px!important;border-bottom:1px solid #e0edf3;background:linear-gradient(100deg,#fbfeff,#f5fbff)}.motion-flow-library .wizard-motion-library-head strong{display:flex;align-items:center;gap:7px;color:#1c4b68;font-size:.86rem;font-weight:950}.motion-flow-library .wizard-motion-library-head strong b{display:grid;min-width:23px;height:23px;place-items:center;border-radius:999px;background:#e1f5ff;color:#127abb;font-size:.63rem}.motion-flow-library .wizard-motion-library-head small{font-size:.62rem}.motion-flow-library .wizard-motion-library-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(196px,1fr));gap:12px;padding:14px!important}
.motion-gallery-card{display:grid;min-width:0;overflow:hidden;border:1px solid #d5e7f0;border-radius:13px;background:#fff;box-shadow:0 7px 16px rgba(23,97,140,.07);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.motion-gallery-card:hover{border-color:#7cc8ef;box-shadow:0 14px 26px rgba(23,108,164,.14);transform:translateY(-3px)}.motion-gallery-card.is-pending{border-style:dashed;background:linear-gradient(145deg,#fbfeff,#f5fbff)}.motion-gallery-card.is-failed{border-color:#f1cbd1;background:#fffafb}.motion-gallery-preview{position:relative;display:grid;min-height:212px;overflow:hidden;place-items:center;background:radial-gradient(circle at 50% 18%,#345d7d,#0a2335 82%);aspect-ratio:9/11}.motion-gallery-video{display:block;width:100%;height:100%;object-fit:cover;background:#092130;transition:transform .35s ease}.motion-gallery-card.is-ready:hover .motion-gallery-video{transform:scale(1.035)}.motion-gallery-play{position:absolute;display:grid;width:39px;height:39px;place-items:center;border:1px solid rgba(255,255,255,.55);border-radius:50%;background:rgba(6,28,45,.6);box-shadow:0 7px 18px rgba(0,0,0,.22);color:#fff;font-size:.76rem;pointer-events:none;transition:opacity .16s ease}.motion-gallery-card.is-ready:hover .motion-gallery-play{opacity:0}.motion-gallery-expand{position:absolute;top:8px;right:8px;display:grid;width:29px;height:29px;place-items:center;border:1px solid rgba(255,255,255,.44);border-radius:8px;background:rgba(7,29,46,.62);color:#fff;font-size:.9rem;font-weight:950;backdrop-filter:blur(7px);opacity:0;transition:opacity .16s ease,transform .16s ease}.motion-gallery-card.is-ready:hover .motion-gallery-expand{opacity:1}.motion-gallery-expand:hover{background:#148af0;transform:scale(1.06)}
.motion-gallery-pending,.motion-gallery-failed{display:grid;justify-items:center;max-width:190px;gap:8px;padding:17px;color:#d9f2ff;text-align:center}.motion-gallery-pending i{display:block;width:32px;height:32px;border:3px solid rgba(179,228,255,.28);border-top-color:#7ed6ff;border-radius:50%;animation:previewSpin .85s linear infinite}.motion-gallery-pending strong,.motion-gallery-failed strong{color:#eefaff;font-size:.71rem;font-weight:950}.motion-gallery-pending small,.motion-gallery-failed small{color:#a9c5d6;font-size:.59rem;font-weight:720;line-height:1.4}.motion-gallery-failed{color:#b83e51}.motion-gallery-failed>span{display:grid;width:30px;height:30px;place-items:center;border:1px solid #f6bbc4;border-radius:50%;background:#fff0f2;color:#d7475d;font-size:.9rem;font-weight:950}.motion-gallery-failed strong{color:#a93d4e}.motion-gallery-failed small{color:#9c6c76}.motion-gallery-body{display:grid;min-width:0;gap:6px;padding:10px}.motion-gallery-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:7px}.motion-gallery-card-head strong{overflow:hidden;color:#254e68;font-size:.71rem;font-weight:950;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.motion-gallery-card-head .status{flex:0 0 auto;padding:3px 5px;font-size:.5rem}.motion-gallery-meta{color:#6d90a5;font-size:.55rem;font-weight:850}.motion-gallery-body>p{display:-webkit-box;min-height:31px;margin:0;overflow:hidden;color:#708c9e;font-size:.58rem;font-weight:700;line-height:1.36;-webkit-box-orient:vertical;-webkit-line-clamp:2}.motion-gallery-actions{display:flex;flex-wrap:wrap;gap:5px;padding-top:2px}.motion-gallery-actions button{min-height:27px;border:1px solid #c9e2ef;border-radius:7px;background:#f8fcff;color:#2b7298;padding:0 7px;font-size:.55rem;font-weight:900}.motion-gallery-actions button:last-child{border-color:#bcdaed;background:linear-gradient(110deg,#eaf9ff,#f3f0ff);color:#176eaa}.motion-gallery-actions button:hover{border-color:#56b9ed;background:#eaf8ff}.motion-gallery-empty{grid-column:1/-1;display:grid;justify-items:center;gap:7px;min-height:248px;place-content:center;border:1px dashed #c4dfec;border-radius:12px;background:linear-gradient(145deg,#fbfeff,#f2faff);color:#6e8da0;text-align:center}.motion-gallery-empty strong{color:#325d77;font-size:.85rem;font-weight:950}.motion-gallery-empty small{max-width:350px;color:#7895a6;font-size:.65rem;font-weight:720;line-height:1.45}.motion-gallery-empty .secondary-submit{margin-top:3px}.motion-gallery-orbit{display:grid;width:42px;height:42px;place-items:center;border:1px solid #c4e5f6;border-radius:14px;background:linear-gradient(145deg,#e9f8ff,#f1ecff);box-shadow:0 9px 19px rgba(24,123,181,.1);color:#4380da;font-size:1rem}
.motion-composer-dialog{position:fixed;z-index:12000;inset:0;display:grid;place-items:center;padding:22px}.motion-composer-dialog[hidden]{display:none!important}.motion-composer-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(7,32,51,.48);backdrop-filter:blur(5px);cursor:default}.motion-composer-sheet{position:relative;z-index:1;width:min(790px,calc(100vw - 34px));max-height:min(860px,calc(100vh - 42px));overflow:auto;border:1px solid #a9daef!important;border-radius:18px!important;background:#fff!important;box-shadow:0 28px 75px rgba(3,40,68,.34)!important;animation:motionComposerIn .18s ease-out}.motion-composer-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid #dcebf3;background:radial-gradient(circle at 95% 0%,rgba(130,109,245,.16),transparent 37%),linear-gradient(120deg,#f2fbff,#fff);padding:17px 18px 15px}.motion-composer-dialog-head>div{display:grid;gap:3px}.motion-composer-dialog-head span{color:#1b84c2;font-size:.56rem;font-weight:950;letter-spacing:.12em}.motion-composer-dialog-head strong{color:#1b4662;font-size:1.02rem;font-weight:950}.motion-composer-dialog-head small{color:#708d9e;font-size:.63rem;font-weight:720;line-height:1.4}.motion-composer-dialog-head>button{display:grid;flex:0 0 auto;width:31px;height:31px;place-items:center;border:1px solid #c7dfeb;border-radius:9px;background:#fff;color:#316a88;font-size:1.28rem;line-height:1}.motion-composer-dialog-head>button:hover{border-color:#74c5ed;background:#effaff;color:#1477b6}.motion-composer-sheet .motion-composer-tools{position:sticky;top:0;z-index:3;box-shadow:0 5px 10px rgba(22,94,135,.03)}.motion-composer-sheet .motion-flow-context{margin:0;border-left:0;border-right:0;border-radius:0;box-shadow:none}.motion-composer-sheet .motion-flow-submit-dock{position:sticky;bottom:0;z-index:4;background:rgba(255,255,255,.96);box-shadow:0 -7px 15px rgba(27,89,125,.07);backdrop-filter:blur(8px)}.motion-flow-dropzone.is-dragover{border-color:#168cf0!important;background:#e5f7ff!important;box-shadow:inset 0 0 0 3px rgba(22,140,240,.12)}body.motion-composer-open{overflow:hidden}@keyframes motionComposerIn{from{opacity:0;transform:translateY(13px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:800px){.motion-results-header{align-items:stretch;flex-direction:column}.motion-results-actions{justify-content:space-between}.motion-flow-library .wizard-motion-library-list{grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:9px;padding:10px!important}.motion-gallery-preview{min-height:190px}.motion-composer-dialog{align-items:end;padding:0}.motion-composer-sheet{width:100%;max-height:92vh;border-radius:18px 18px 0 0!important}.motion-composer-dialog-head{padding:15px}.motion-composer-sheet .motion-flow-context.motion-character-source{border-bottom:1px solid #e1edf3}}
@media(max-width:520px){.motion-results-actions .motion-flow-ready{display:none}.motion-results-actions .motion-open-composer{width:100%}.motion-flow-library .wizard-motion-library-head{align-items:flex-start;flex-direction:column}.motion-flow-library .wizard-motion-library-head .secondary-submit{width:100%}.motion-flow-library .wizard-motion-library-list{grid-template-columns:repeat(2,minmax(0,1fr))}.motion-gallery-preview{min-height:154px}.motion-gallery-body{padding:8px}.motion-gallery-actions{display:grid;grid-template-columns:1fr}.motion-gallery-actions button{width:100%}.motion-composer-sheet .motion-composer-hint{display:none}.motion-composer-sheet .motion-flow-submit-dock{grid-template-columns:1fr}.motion-composer-sheet .motion-flow-submit-dock .primary-btn{width:100%}}
@media(prefers-reduced-motion:reduce){.motion-gallery-card,.motion-gallery-video,.motion-gallery-expand,.motion-open-composer{transition:none}.motion-gallery-pending i{animation:none}.motion-composer-sheet{animation:none}}

/* Motion workspace v44 ----------------------------------------------------
   The library is the product.  Uploading a finished video happens directly
   on that library; the AI controls are one compact creation rail underneath. */
.motion-results-actions .motion-open-composer{min-width:152px}
.motion-flow-library{width:100%!important;justify-self:stretch!important;position:relative;transition:border-color .16s ease,box-shadow .16s ease}
.motion-flow-library .wizard-motion-library-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px!important}
.motion-library-head-actions{display:flex;flex:0 0 auto;align-items:center;gap:7px}
.motion-gallery-upload{display:grid;grid-template-columns:23px auto;align-items:center;gap:0 5px;min-height:34px;border:1px dashed #89c7e8;border-radius:9px;background:linear-gradient(110deg,#f4fcff,#f4f8ff);color:#2176a4;padding:3px 8px;cursor:pointer;transition:border-color .16s ease,background .16s ease,transform .16s ease}
.motion-gallery-upload:hover{border-color:#168cf0;background:#e8f8ff;transform:translateY(-1px)}
.motion-gallery-upload input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0}
.motion-gallery-upload>span{grid-row:1/3;display:grid;width:22px;height:22px;place-items:center;border-radius:7px;background:#dff4ff;color:#1177b4;font-size:.9rem;font-weight:950}
.motion-gallery-upload strong{font-size:.59rem;font-weight:950;line-height:1.1}.motion-gallery-upload small{color:#6792a9;font-size:.48rem;font-weight:800;line-height:1.1}
.motion-flow-library.is-dragover{border-color:#168cf0!important;box-shadow:0 0 0 4px rgba(22,140,240,.13),0 16px 30px rgba(23,108,164,.12)!important}
.motion-flow-library.is-dragover .wizard-motion-library-list{background:linear-gradient(145deg,rgba(229,247,255,.72),rgba(244,250,255,.84))}
.motion-flow-library.is-dragover .wizard-motion-library-list:after{content:'Thả video để thêm vào nhóm đang chọn';position:absolute;z-index:8;inset:12px;display:grid;place-items:center;border:2px dashed #42ace3;border-radius:12px;background:rgba(239,250,255,.88);color:#126eaa;font-size:.8rem;font-weight:950;letter-spacing:.01em;pointer-events:none}
.motion-flow-library .wizard-motion-library-list{position:relative;min-height:254px;grid-template-columns:repeat(auto-fill,minmax(182px,1fr))!important}
.motion-gallery-card{position:relative}.motion-gallery-delete{position:absolute;z-index:2;top:8px;right:43px;display:grid;width:29px;height:29px;place-items:center;border:1px solid rgba(255,255,255,.45);border-radius:8px;background:rgba(69,20,29,.72);color:#fff;font-size:.84rem;font-weight:950;backdrop-filter:blur(7px);opacity:0;transition:opacity .16s ease,transform .16s ease}.motion-gallery-card:hover .motion-gallery-delete{opacity:1}.motion-gallery-delete:hover{background:#db4e60;transform:scale(1.06)}
.motion-quick-composer{display:grid;width:100%;overflow:hidden;border:1px solid #cfe5f1;border-radius:15px;background:#fff;box-shadow:0 11px 28px rgba(17,88,130,.08)}
.motion-quick-composer-head{display:flex;align-items:center;justify-content:space-between;gap:14px;background:radial-gradient(circle at 94% 5%,rgba(116,104,237,.13),transparent 28%),linear-gradient(100deg,#f2fbff,#fff);padding:11px 13px}
.motion-quick-composer-head>div{display:grid;min-width:0;gap:3px}.motion-quick-composer-head span{color:#147fc0;font-size:.54rem;font-weight:950;letter-spacing:.12em}.motion-quick-composer-head strong{overflow:hidden;color:#214e69;font-size:.78rem;font-weight:950;text-overflow:ellipsis;white-space:nowrap}.motion-quick-composer-head strong b{color:#126fa8}.motion-quick-composer-head small{color:#738e9f;font-size:.59rem;font-weight:720;line-height:1.35}
.motion-preset-toggle{display:inline-flex;flex:0 0 auto;align-items:center;gap:6px;min-height:33px;border:1px solid #c8e1ee;border-radius:9px;background:#fff;color:#2c7299;padding:0 9px;font-size:.61rem;font-weight:950}.motion-preset-toggle:hover,.motion-preset-toggle[aria-expanded="true"]{border-color:#78c8ed;background:#eaf8ff;color:#126da7}.motion-preset-toggle span{font-size:.75rem;letter-spacing:0;transition:transform .16s ease}.motion-preset-toggle[aria-expanded="true"] span{transform:rotate(180deg)}
.motion-preset-picker{display:grid;grid-template-columns:minmax(190px,.8fr) minmax(0,1.2fr);align-items:center;gap:10px;border-top:1px solid #e1edf3;border-bottom:1px solid #dcebf2;background:#f8fcff;padding:9px 13px}.motion-preset-picker>div:first-child{display:grid;gap:2px}.motion-preset-picker strong{color:#3e6780;font-size:.65rem;font-weight:950}.motion-preset-picker small{color:#7d98a8;font-size:.55rem;font-weight:720;line-height:1.35}.motion-preset-picker .motion-flow-presets{justify-content:flex-end;padding:0}.motion-preset-picker .motion-flow-presets button{min-height:27px;font-size:.55rem}
.motion-quick-composer .motion-quick-character{grid-template-columns:40px minmax(0,1fr) minmax(172px,224px);gap:9px;border:0;border-bottom:1px solid #e3eef4;border-radius:0;background:#fff;padding:8px 12px;box-shadow:none}.motion-quick-composer .motion-character-avatar{width:40px;height:40px;border-radius:11px}.motion-quick-composer .motion-character-copy>span{font-size:.49rem}.motion-quick-composer .motion-character-copy strong{font-size:.7rem}.motion-quick-composer .motion-character-copy small{font-size:.54rem}.motion-quick-composer .motion-character-switch select{min-height:29px!important;font-size:.6rem!important}.motion-quick-composer .motion-character-switch small{font-size:.51rem}
.motion-quick-composer .motion-flow-ai-panel{gap:0;border:0;border-radius:0;background:#fff;padding:0}.motion-quick-composer .motion-flow-prompt-stack{gap:0}.motion-quick-composer .motion-prompt-item{grid-template-columns:minmax(116px,.34fr) minmax(0,1fr) minmax(128px,.32fr) 28px;align-items:center;gap:8px;border:0;border-bottom:1px solid #edf3f6;border-radius:0;background:#fff;padding:9px 11px}.motion-quick-composer .motion-prompt-item+.motion-prompt-item{background:#fbfdff}.motion-quick-composer .motion-title-field{display:grid!important;gap:4px;color:#7895a6!important;font-size:.54rem!important}.motion-quick-composer .motion-title-field input{min-height:31px!important;max-width:none!important;border:1px solid #d2e5ee!important;border-radius:7px!important;background:#fbfdff!important;color:#315e78!important;padding:0 7px!important;font-size:.61rem!important;outline:0}.motion-quick-composer .motion-prompt-field textarea{min-height:46px!important;border:1px solid #d2e5ee!important;border-radius:7px!important;background:#fff!important;color:#274f69!important;padding:7px 8px!important;font-size:.67rem!important;line-height:1.35!important;resize:vertical}.motion-quick-composer .motion-prompt-reference{grid-column:auto!important;min-height:35px!important;width:100%!important;padding:5px 7px!important}.motion-quick-composer .motion-prompt-reference strong{font-size:.54rem}.motion-quick-composer .motion-prompt-reference small{max-width:100px;font-size:.49rem}.motion-quick-composer .remove-motion-btn{position:static!important;align-self:center!important;width:27px!important;min-height:30px!important;border:1px solid #ffd9de!important;background:#fff8f8!important}
.motion-quick-composer .motion-composer-bottom{min-height:43px;border-bottom:1px solid #e3eef3;background:#fbfdff;padding:6px 10px}.motion-quick-composer .motion-add-idea{min-height:29px}.motion-quick-composer .motion-flow-submit-dock{grid-template-columns:minmax(0,1fr) auto;gap:8px;border-top:0;margin:0;padding:9px 10px}.motion-quick-composer .motion-flow-submit-dock .cost-row{min-height:34px}.motion-quick-composer .motion-flow-submit-dock .primary-btn{min-width:170px;min-height:37px}
@media(max-width:900px){.motion-quick-composer .motion-quick-character{grid-template-columns:40px minmax(0,1fr)}.motion-quick-composer .motion-character-switch{grid-column:1/-1;grid-template-columns:auto minmax(0,1fr);padding-top:6px;border-top:1px solid #edf3f6}.motion-preset-picker{grid-template-columns:1fr}.motion-preset-picker .motion-flow-presets{justify-content:flex-start}.motion-quick-composer .motion-prompt-item{grid-template-columns:minmax(120px,.34fr) minmax(0,1fr) 30px}.motion-quick-composer .motion-prompt-reference{grid-column:1/3!important}}
@media(max-width:620px){.motion-library-head-actions{width:100%;justify-content:space-between}.motion-flow-library .wizard-motion-library-head{align-items:flex-start;flex-direction:column}.motion-quick-composer-head{align-items:flex-start;flex-direction:column}.motion-preset-toggle{width:100%;justify-content:center}.motion-quick-composer .motion-prompt-item{grid-template-columns:1fr 30px}.motion-quick-composer .motion-title-field{grid-column:1/-1}.motion-quick-composer .motion-prompt-reference{grid-column:1!important}.motion-gallery-delete{opacity:1}.motion-flow-library .wizard-motion-library-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}.motion-flow-library.is-dragover .wizard-motion-library-list:after{font-size:.67rem;text-align:center;padding:16px}.motion-quick-composer .motion-flow-submit-dock{grid-template-columns:1fr}.motion-quick-composer .motion-flow-submit-dock .primary-btn{width:100%}}

/* Flow-like floating motion composer v45 -----------------------------------
   The composer is never part of the document flow: scrolling the motion
   gallery must never make the prompt or submit action disappear. */
.motion-flow-canvas{padding-bottom:174px!important}
.motion-quick-composer{position:fixed;z-index:9200;left:50%;bottom:22px;display:block;width:min(660px,calc(100vw - 42px));overflow:visible!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;transform:translateX(-50%)}
.motion-floating-shell{display:grid;overflow:hidden;border:1px solid rgba(129,197,232,.5);border-radius:19px;background:radial-gradient(circle at 88% 0%,rgba(77,155,234,.18),transparent 41%),linear-gradient(145deg,#142c3c,#0c1d29);box-shadow:0 20px 48px rgba(5,25,42,.3),0 0 0 1px rgba(9,53,75,.24);backdrop-filter:blur(13px)}
.motion-floating-prompt{display:block;min-width:0;padding:10px 14px 1px}.motion-floating-prompt textarea{display:block;width:100%;min-height:35px;max-height:114px;resize:none;border:0;background:transparent;color:#f5fbff;padding:0;font-family:inherit;font-size:.79rem;font-weight:700;line-height:1.44;outline:0}.motion-floating-prompt textarea::placeholder{color:#97aebb}.motion-floating-actions{display:flex;align-items:center;gap:7px;min-height:43px;padding:2px 8px 9px}.motion-icon-button{display:grid;flex:0 0 auto;width:31px;height:31px;place-items:center;border:1px solid transparent;border-radius:10px;background:transparent;color:#cfe1eb;font-size:1.08rem;font-weight:800;line-height:1;transition:background .16s ease,color .16s ease,transform .16s ease}.motion-icon-button:hover,.motion-icon-button[aria-expanded="true"]{background:rgba(255,255,255,.11);color:#fff;transform:translateY(-1px)}.motion-add-reference{font-size:1.45rem;font-weight:500}.motion-floating-group{display:block;max-width:210px;overflow:hidden;margin-right:auto;border-radius:999px;background:rgba(255,255,255,.11);color:#f1f8fb;padding:7px 11px;font-size:.58rem;font-weight:900;text-overflow:ellipsis;white-space:nowrap}.motion-floating-submit{display:grid;flex:0 0 auto;width:34px;height:34px;place-items:center;border:0;border-radius:50%;background:linear-gradient(145deg,#51c8ff,#287fe4);box-shadow:0 7px 18px rgba(29,134,224,.35);color:#fff;font-size:1.25rem;font-weight:850;line-height:1;transition:filter .16s ease,transform .16s ease}.motion-floating-submit:hover{filter:brightness(1.08);transform:translateX(2px)}.motion-floating-submit:disabled{filter:grayscale(.4);opacity:.6;transform:none}
.motion-quick-settings{position:absolute;right:0;bottom:calc(100% + 11px);width:min(446px,calc(100vw - 42px));max-height:min(676px,calc(100vh - 146px));overflow:auto;border:1px solid #bddfec;border-radius:17px;background:linear-gradient(155deg,#fff,#f6fbfe);box-shadow:0 22px 56px rgba(5,38,61,.28);scrollbar-width:thin}.motion-quick-settings[hidden]{display:none!important}.motion-quick-settings-head{display:grid;grid-template-columns:31px minmax(0,1fr);align-items:start;gap:8px;border-bottom:1px solid #dbeaf2;background:radial-gradient(circle at 95% 2%,rgba(95,116,230,.12),transparent 38%),#f7fcff;padding:12px}.motion-quick-settings-head .motion-icon-button{width:30px;height:30px;border-color:#cee2ed;background:#fff;color:#315f78;font-size:.95rem}.motion-quick-settings-head>div{display:grid;gap:3px}.motion-quick-settings-head strong{color:#1d4963;font-size:.82rem;font-weight:950}.motion-quick-settings-head small{color:#7893a3;font-size:.58rem;font-weight:720;line-height:1.4}.motion-quick-settings-tools{display:flex;align-items:center;justify-content:space-between;gap:9px;border-bottom:1px solid #e2edf3;padding:9px 12px}.motion-quick-settings-tools>span{color:#7895a7;font-size:.55rem;font-weight:720;line-height:1.35;text-align:right}.motion-quick-settings .motion-preset-toggle{min-height:29px;white-space:nowrap;font-size:.57rem}.motion-quick-settings .motion-preset-picker{grid-template-columns:1fr;gap:7px;border:0;border-bottom:1px solid #dcebf2;padding:10px 12px}.motion-quick-settings .motion-preset-picker .motion-flow-presets{justify-content:flex-start}.motion-quick-settings .motion-flow-presets{padding:0}.motion-quick-settings .motion-flow-presets button{min-height:25px;font-size:.52rem}.motion-quick-settings .motion-quick-character{grid-template-columns:40px minmax(0,1fr) minmax(148px,170px);gap:8px;border:0;border-bottom:1px solid #e2edf3;border-radius:0;background:#fff;padding:9px 11px;box-shadow:none}.motion-quick-settings .motion-character-avatar{width:40px;height:40px;border-radius:11px}.motion-quick-settings .motion-character-copy>span{font-size:.48rem}.motion-quick-settings .motion-character-copy strong{font-size:.68rem}.motion-quick-settings .motion-character-copy small{font-size:.52rem}.motion-quick-settings .motion-character-switch select{min-height:29px!important;font-size:.58rem!important}.motion-quick-settings .motion-character-switch small{font-size:.49rem}.motion-quick-settings .motion-flow-ai-panel{gap:0;border:0;border-radius:0;background:#fff;padding:0}.motion-quick-settings .motion-flow-prompt-stack{gap:0}.motion-quick-settings .motion-prompt-item{grid-template-columns:minmax(100px,.38fr) minmax(0,1fr) 27px;gap:7px;border:0;border-bottom:1px solid #edf3f6;border-radius:0;background:#fff;padding:9px 10px}.motion-quick-settings .motion-prompt-item+.motion-prompt-item{background:#fbfdff}.motion-quick-settings .motion-title-field{grid-column:1/-1;display:flex!important;align-items:center;gap:6px;color:#7895a6!important;font-size:.53rem!important}.motion-quick-settings .motion-title-field input{min-height:26px!important;max-width:210px;border:0!important;border-bottom:1px solid #d7e8f0!important;border-radius:0!important;background:transparent!important;color:#315f79!important;padding:0 2px!important;font-size:.59rem!important;outline:0}.motion-quick-settings .motion-prompt-field{grid-column:1/3}.motion-quick-settings .motion-prompt-field textarea{min-height:61px!important;border:1px solid #d1e4ed!important;border-radius:8px!important;background:#fbfdff!important;color:#294f68!important;padding:7px!important;font-size:.64rem!important;line-height:1.35!important}.motion-quick-settings .motion-prompt-reference{grid-column:1/3!important;min-height:31px!important;max-width:245px;padding:4px 6px!important}.motion-quick-settings .motion-prompt-reference strong{font-size:.52rem}.motion-quick-settings .motion-prompt-reference small{font-size:.47rem}.motion-quick-settings .remove-motion-btn{position:static!important;grid-column:3;grid-row:1/3;align-self:center!important;width:26px!important;min-height:28px!important;border:1px solid #ffd9de!important;background:#fff8f8!important}.motion-quick-settings .motion-composer-bottom{min-height:42px;border-bottom:1px solid #e3eef3;background:#fbfdff;padding:6px 9px}.motion-quick-settings .motion-add-idea{min-height:28px;font-size:.58rem}.motion-quick-settings .motion-batch-control{min-height:28px;font-size:.55rem}.motion-quick-settings .motion-flow-tune summary{min-height:28px;font-size:.56rem}.motion-quick-cost{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:7px;background:#f7fbfd;padding:9px 11px}.motion-quick-cost span{color:#59788b;font-size:.56rem;font-weight:900}.motion-quick-cost strong{color:#176b9e;font-size:.7rem;font-weight:950}.motion-quick-cost small{overflow:hidden;color:#839ba9;font-size:.5rem;font-weight:720;text-overflow:ellipsis;white-space:nowrap}
.motion-quick-settings .motion-flow-submit-dock{display:none}
@media(max-width:760px){.motion-quick-composer{bottom:12px;width:calc(100vw - 24px)}.motion-floating-group{max-width:132px}.motion-quick-settings{right:0;bottom:calc(100% + 8px);width:calc(100vw - 24px);max-height:calc(100vh - 118px)}.motion-quick-settings .motion-quick-character{grid-template-columns:40px minmax(0,1fr)}.motion-quick-settings .motion-character-switch{grid-column:1/-1;grid-template-columns:auto minmax(0,1fr);padding-top:6px;border-top:1px solid #edf3f6}.motion-quick-settings-tools{align-items:flex-start;flex-direction:column}.motion-quick-settings-tools>span{text-align:left}.motion-flow-canvas{padding-bottom:154px!important}}
@media(max-width:440px){.motion-floating-shell{border-radius:16px}.motion-floating-prompt{padding:9px 11px 0}.motion-floating-actions{gap:4px;padding:2px 6px 7px}.motion-icon-button{width:29px;height:29px}.motion-floating-group{max-width:90px;padding:7px 8px}.motion-floating-submit{width:32px;height:32px}.motion-quick-settings .motion-prompt-item{grid-template-columns:1fr 27px}.motion-quick-settings .motion-prompt-field,.motion-quick-settings .motion-prompt-reference{grid-column:1!important}.motion-quick-settings .motion-prompt-field textarea{min-height:53px!important}}

/* Async motion feedback belongs above the Flow-style composer, never in the
   gallery layout. Job cards and History remain the lasting source of truth. */
.motion-job-toast{position:fixed;z-index:9700;left:50%;bottom:118px;display:grid;grid-template-columns:27px minmax(0,1fr);align-items:center;gap:9px;width:min(460px,calc(100vw - 38px));border:1px solid #b9e7ca;border-radius:13px;background:rgba(244,255,248,.97);box-shadow:0 16px 37px rgba(19,93,60,.18),0 0 0 1px rgba(255,255,255,.82) inset;color:#275d41;padding:10px 12px;opacity:0;pointer-events:none;transform:translate(-50%,10px) scale(.985);transition:opacity .18s ease,transform .18s ease;backdrop-filter:blur(12px)}.motion-job-toast[hidden]{display:none!important}.motion-job-toast.is-visible{opacity:1;transform:translate(-50%,0) scale(1)}.motion-job-toast i{display:grid;width:24px;height:24px;place-items:center;border:2px solid #53bb72;border-radius:50%;color:#238544;font-style:normal}.motion-job-toast i::after{content:'✓';font-size:.72rem;font-weight:950}.motion-job-toast>div{display:grid;gap:2px;min-width:0}.motion-job-toast strong{color:#207241;font-size:.7rem;font-weight:950}.motion-job-toast span{overflow:hidden;color:#4f8063;font-size:.59rem;font-weight:750;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.motion-job-toast[data-state="working"]{border-color:#b9dff5;background:rgba(244,251,255,.97)}.motion-job-toast[data-state="working"] i{border-color:rgba(24,136,223,.26);border-top-color:#1687e7;color:transparent;animation:previewSpin .82s linear infinite}.motion-job-toast[data-state="working"] i::after{display:none}.motion-job-toast[data-state="working"] strong{color:#176d9f}.motion-job-toast[data-state="working"] span{color:#56809a}.motion-job-toast[data-state="error"]{border-color:#f4c7cf;background:rgba(255,247,248,.98)}.motion-job-toast[data-state="error"] i{border-color:#e66b7a;color:#bd4152;animation:none}.motion-job-toast[data-state="error"] i::after{content:'!';font-size:.84rem}.motion-job-toast[data-state="error"] strong{color:#ad4050}.motion-job-toast[data-state="error"] span{color:#93616a}.motion-job-toast.is-leaving{opacity:0;transform:translate(-50%,7px) scale(.985)}
@media(max-width:760px){.motion-job-toast{bottom:103px;width:calc(100vw - 26px)}.motion-job-toast span{white-space:normal}}

/* Avatar selection is intentionally a small studio, not a traditional form.
   The image library owns history/results; the compact dock owns creation. */
.aidol-avatar-flow{position:relative;display:grid;gap:13px;min-width:0;padding-bottom:104px}.aidol-avatar-flow[hidden]{display:none!important}.aidol-avatar-flow .aidol-edit-context{grid-column:1/-1}.aidol-avatar-flow-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border:1px solid #d8e8f1;border-radius:16px;background:radial-gradient(circle at 92% 5%,rgba(89,111,230,.17),transparent 34%),linear-gradient(140deg,#f5fcff,#fff);box-shadow:0 9px 25px rgba(26,88,124,.055);padding:17px 18px}.aidol-avatar-flow-head>div:first-child{display:grid;min-width:0;gap:4px}.aidol-avatar-flow-head .eyebrow{color:#2581b8;font-size:.56rem;font-weight:950;letter-spacing:.12em}.aidol-avatar-flow-head h2{margin:0;color:#19445e;font-size:1.18rem;font-weight:950;line-height:1.2}.aidol-avatar-flow-head p{max-width:560px;margin:0;color:#708c9d;font-size:.65rem;font-weight:720;line-height:1.45}.aidol-avatar-identity{display:grid;grid-template-columns:minmax(142px,185px) minmax(224px,295px);gap:10px;align-items:start}.aidol-avatar-identity>label{display:grid;gap:6px;color:#42687d;font-size:.61rem;font-weight:900}.aidol-avatar-identity input{width:100%;min-height:39px;border:1px solid #cfe1ec;border-radius:10px;background:rgba(255,255,255,.94);color:#244e66;padding:0 10px;font:inherit;font-size:.68rem;font-weight:800;outline:0}.aidol-avatar-identity input:focus{border-color:#67bae6;box-shadow:0 0 0 3px rgba(34,150,222,.11)}.aidol-avatar-identity .aidol-default-voice-field{gap:4px}.aidol-avatar-identity .aidol-default-voice-control{display:grid;grid-template-columns:minmax(0,1fr) 37px;gap:6px}.aidol-avatar-identity .aidol-voice-library-trigger{min-height:39px}.aidol-avatar-identity #aidolDefaultVoiceHelp{display:none}.aidol-avatar-canvas{display:grid;min-height:455px;overflow:hidden;border:1px solid #d5e6ef;border-radius:17px;background:radial-gradient(circle at 93% 0%,rgba(80,149,224,.12),transparent 27%),linear-gradient(145deg,#fff,#fbfdff);box-shadow:0 10px 29px rgba(20,77,109,.055)}.aidol-avatar-canvas-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;border-bottom:1px solid #e1edf3;padding:16px 17px 13px}.aidol-avatar-canvas-head>div{display:grid;gap:3px}.aidol-avatar-canvas-head span{color:#2d83b8;font-size:.53rem;font-weight:950;letter-spacing:.1em}.aidol-avatar-canvas-head strong{color:#214a63;font-size:.9rem;font-weight:950}.aidol-avatar-canvas-head small{color:#7591a1;font-size:.59rem;font-weight:720;line-height:1.4}.aidol-avatar-upload-btn{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:7px;flex:0 0 auto;min-width:144px;border:1px dashed #81c6e9;border-radius:10px;background:linear-gradient(120deg,#eefaff,#f4f2ff);color:#2376a5;padding:7px 9px;cursor:pointer;transition:transform .16s ease,border-color .16s ease,background .16s ease}.aidol-avatar-upload-btn:hover{border-color:#178be2;background:#e4f7ff;transform:translateY(-1px)}.aidol-avatar-upload-btn i{display:grid;width:27px;height:27px;place-items:center;border-radius:8px;background:linear-gradient(145deg,#2cb8ed,#347ddd);box-shadow:0 5px 11px rgba(35,124,203,.2);color:#fff;font-size:.95rem;font-style:normal;font-weight:950}.aidol-avatar-upload-btn span{display:grid;gap:1px}.aidol-avatar-upload-btn strong{color:#246e99;font-size:.59rem;font-weight:950}.aidol-avatar-upload-btn small{color:#6a91a9;font-size:.49rem;font-weight:760}.aidol-avatar-candidate-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(174px,1fr));align-content:start;gap:13px;min-height:367px;padding:15px}.aidol-avatar-candidate{position:relative;display:grid;overflow:hidden;min-width:0;border:1px solid #dce9f0;border-radius:13px;background:#fff;box-shadow:0 6px 16px rgba(23,83,116,.055);text-align:left;transition:transform .17s ease,border-color .17s ease,box-shadow .17s ease}.aidol-avatar-candidate:hover{border-color:#86c8eb;box-shadow:0 13px 26px rgba(20,113,161,.13);transform:translateY(-2px)}.aidol-avatar-candidate.is-selected{border-color:#347fe0;box-shadow:0 0 0 3px rgba(50,132,226,.14),0 14px 26px rgba(20,96,164,.13)}.aidol-avatar-candidate.is-active{border-style:dashed;background:#f9fdff}.aidol-avatar-candidate.is-failed{border-color:#efc5cc;background:#fffafb}.aidol-avatar-candidate-media{position:relative;display:grid;min-height:218px;overflow:hidden;place-items:center;background:linear-gradient(135deg,#e8f5fa,#eaecff);cursor:pointer}.aidol-avatar-candidate-media img{width:100%;height:100%;min-height:218px;object-fit:cover}.aidol-avatar-candidate-media .aidol-avatar-pending{display:grid;justify-items:center;gap:8px;color:#2c7198;padding:18px;text-align:center}.aidol-avatar-pending i{display:block;width:31px;height:31px;border:3px solid rgba(35,142,208,.16);border-top-color:#258fd1;border-radius:50%;animation:previewSpin .8s linear infinite}.aidol-avatar-pending strong{color:#28678d;font-size:.68rem;font-weight:950}.aidol-avatar-pending small{color:#7895a5;font-size:.56rem;font-weight:720;line-height:1.4}.aidol-avatar-candidate.is-failed .aidol-avatar-pending{color:#b54758}.aidol-avatar-candidate.is-failed .aidol-avatar-pending strong{color:#a84252}.aidol-avatar-candidate-media .aidol-avatar-select-mark{position:absolute;top:8px;right:8px;display:grid;width:29px;height:29px;place-items:center;border:1px solid rgba(255,255,255,.75);border-radius:50%;background:rgba(9,47,70,.62);box-shadow:0 5px 13px rgba(7,35,53,.22);color:#fff;font-size:.76rem;font-weight:950;backdrop-filter:blur(6px)}.aidol-avatar-candidate.is-selected .aidol-avatar-select-mark{border-color:#fff;background:#227fe0}.aidol-avatar-candidate-copy{display:grid;gap:5px;padding:9px 10px 10px}.aidol-avatar-candidate-top{display:flex;align-items:flex-start;justify-content:space-between;gap:7px}.aidol-avatar-candidate-top strong{overflow:hidden;color:#244c63;font-size:.67rem;font-weight:950;line-height:1.28;text-overflow:ellipsis;white-space:nowrap}.aidol-avatar-candidate-top span{flex:0 0 auto;border-radius:999px;background:#ebf6fc;color:#33789f;padding:3px 5px;font-size:.47rem;font-weight:950;letter-spacing:.04em}.aidol-avatar-candidate-top span.done{background:#e6f8ec;color:#178246}.aidol-avatar-candidate-top span.failed{background:#fff0f2;color:#bd4354}.aidol-avatar-candidate-copy small{display:-webkit-box;min-height:29px;overflow:hidden;color:#7591a1;font-size:.54rem;font-weight:710;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:2}.aidol-avatar-candidate-copy button{justify-self:start;min-height:28px;border:1px solid #c5e0ee;border-radius:7px;background:#f4fbff;color:#2379a7;padding:0 8px;font-size:.53rem;font-weight:950}.aidol-avatar-candidate.is-selected .aidol-avatar-candidate-copy button{border-color:#3b87e1;background:#eaf4ff;color:#1964b8}.aidol-avatar-candidate-empty{grid-column:1/-1;display:grid;justify-items:center;align-content:center;gap:8px;min-height:325px;border:1px dashed #c7dfec;border-radius:13px;background:radial-gradient(circle at 50% 18%,rgba(90,145,225,.12),transparent 40%),#fcfeff;color:#7390a1;padding:23px;text-align:center}.aidol-avatar-candidate-empty i{display:grid;width:46px;height:46px;place-items:center;border-radius:14px;background:linear-gradient(145deg,#e2f6ff,#eceaff);color:#4383b1;font-size:1.2rem;font-style:normal}.aidol-avatar-candidate-empty strong{color:#2b536d;font-size:.83rem;font-weight:950}.aidol-avatar-candidate-empty span{max-width:380px;color:#7894a5;font-size:.62rem;font-weight:720;line-height:1.45}.aidol-avatar-selection-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #d2e5f0;border-radius:13px;background:linear-gradient(105deg,#f7fcff,#fbfbff);box-shadow:0 7px 17px rgba(25,85,118,.04);padding:11px 13px}.aidol-avatar-selection-bar>div{display:grid;min-width:0;gap:2px}.aidol-avatar-selection-bar span{color:#2a83b8;font-size:.5rem;font-weight:950;letter-spacing:.1em}.aidol-avatar-selection-bar strong{overflow:hidden;color:#244e67;font-size:.72rem;font-weight:950;text-overflow:ellipsis;white-space:nowrap}.aidol-avatar-selection-bar small{overflow:hidden;color:#7a94a4;font-size:.55rem;font-weight:720;text-overflow:ellipsis;white-space:nowrap}.aidol-avatar-selection-bar .primary-btn{min-height:38px;white-space:nowrap}.aidol-avatar-selection-bar .primary-btn:disabled{cursor:not-allowed;filter:grayscale(.45);opacity:.52}.aidol-image-floating-composer{position:fixed;z-index:9100;bottom:20px;left:50%;width:min(660px,calc(100vw - 42px));transform:translateX(-50%)}.aidol-image-floating-shell{display:flex;align-items:center;gap:7px;overflow:hidden;border:1px solid rgba(132,206,239,.48);border-radius:18px;background:radial-gradient(circle at 84% 0%,rgba(78,115,230,.24),transparent 42%),linear-gradient(145deg,#102e40,#0b1e2c);box-shadow:0 20px 48px rgba(5,24,41,.31),0 0 0 1px rgba(8,53,74,.24);padding:8px}.aidol-image-floating-shell>label{display:grid;flex:1;min-width:90px}.aidol-image-floating-shell textarea{width:100%;min-height:34px;max-height:116px;overflow:auto;border:0;background:transparent;color:#f2fbff;padding:8px 7px;font:inherit;font-size:.72rem;font-weight:740;line-height:1.35;outline:0;resize:none}.aidol-image-floating-shell textarea::placeholder{color:#98b6c6}.aidol-image-reference-chip{display:inline-flex;align-items:center;gap:5px;min-width:0;border:1px solid rgba(125,212,250,.32);border-radius:9px;background:rgba(92,184,225,.14);color:#d9f5ff;padding:5px 5px 5px 7px;font-size:.52rem;font-weight:900;white-space:nowrap}.aidol-image-reference-chip b{overflow:hidden;max-width:104px;text-overflow:ellipsis}.aidol-image-reference-chip button,.aidol-image-float-tool{display:grid;flex:0 0 auto;width:31px;height:31px;place-items:center;border:1px solid transparent;border-radius:10px;background:transparent;color:#d7eaf3;font-size:.94rem;font-weight:900}.aidol-image-reference-chip button{width:19px;height:19px;border-radius:6px;background:rgba(255,255,255,.11);font-size:.82rem}.aidol-image-float-tool:hover,.aidol-image-reference-chip button:hover{background:rgba(255,255,255,.12);color:#fff;transform:translateY(-1px)}.aidol-image-float-submit{display:grid;flex:0 0 auto;width:35px;height:35px;place-items:center;border:0;border-radius:50%;background:linear-gradient(145deg,#51cafc,#287ee3);box-shadow:0 7px 18px rgba(28,134,226,.35);color:#fff;font-size:1.22rem;font-weight:900}.aidol-image-float-submit:hover{filter:brightness(1.08);transform:translateX(2px)}.aidol-image-settings{position:absolute;right:0;bottom:calc(100% + 9px);display:grid;gap:10px;width:min(310px,calc(100vw - 28px));border:1px solid #cde5f1;border-radius:15px;background:linear-gradient(145deg,rgba(255,255,255,.99),rgba(245,251,255,.99));box-shadow:0 19px 43px rgba(10,55,81,.2);padding:13px;backdrop-filter:blur(13px)}.aidol-image-settings header{display:flex;align-items:flex-start;justify-content:space-between;gap:9px}.aidol-image-settings header>div{display:grid;gap:2px}.aidol-image-settings header span{color:#2781b7;font-size:.5rem;font-weight:950;letter-spacing:.1em}.aidol-image-settings header strong{color:#214c65;font-size:.76rem;font-weight:950}.aidol-image-settings header button{display:grid;width:26px;height:26px;place-items:center;border:1px solid #d3e4ed;border-radius:8px;background:#fff;color:#5d8194;font-size:1rem}.aidol-image-settings label{display:grid;gap:5px;color:#4f7184;font-size:.6rem;font-weight:900}.aidol-image-settings select{width:100%;min-height:34px;border:1px solid #ccdfeb;border-radius:8px;background:#fff;color:#2e566e;padding:0 8px;font:inherit;font-size:.62rem;font-weight:800}.aidol-image-settings p{display:grid;gap:2px;margin:0;border-top:1px solid #e4eef3;padding-top:9px}.aidol-image-settings p b{color:#2380b7;font-size:.61rem}.aidol-image-settings p span{color:#7892a2;font-size:.54rem;font-weight:720;line-height:1.4}.aidol-style-rail{display:grid;align-content:start;overflow:hidden;border:1px solid #d4e6f0;border-radius:17px;background:radial-gradient(circle at 94% 0%,rgba(103,92,222,.14),transparent 32%),linear-gradient(145deg,#f9fdff,#fff);box-shadow:0 10px 28px rgba(22,82,116,.06)}.aidol-style-rail-head{display:grid;gap:4px;border-bottom:1px solid #e0edf3;padding:17px}.aidol-style-rail-head span{color:#5a70ba;font-size:.52rem;font-weight:950;letter-spacing:.11em}.aidol-style-rail-head h2{margin:0;color:#274c63;font-size:.96rem;font-weight:950}.aidol-style-rail-head p{margin:0;color:#748f9f;font-size:.6rem;font-weight:720;line-height:1.45}.aidol-style-preset-list{display:grid;gap:10px;padding:12px}.aidol-style-preset{display:grid;grid-template-columns:67px minmax(0,1fr);gap:8px;border:1px solid #dce9f0;border-radius:12px;background:#fff;padding:7px;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.aidol-style-preset:hover,.aidol-style-preset.active{border-color:#8ebbe8;box-shadow:0 8px 18px rgba(36,98,166,.1);transform:translateY(-1px)}.aidol-style-preset.active{background:linear-gradient(135deg,#f4fbff,#f9f6ff)}.aidol-style-sample{position:relative;display:grid;grid-row:1/3;min-height:91px;overflow:hidden;place-items:end center;border-radius:8px;background:linear-gradient(135deg,#2ccf71,#129f56);isolation:isolate}.aidol-style-sample::before{content:"";position:absolute;z-index:-1;inset:0;background:repeating-linear-gradient(90deg,rgba(255,255,255,.09) 0 1px,transparent 1px 16px),linear-gradient(180deg,transparent 72%,rgba(0,72,44,.17))}.aidol-style-sample i{display:block;width:27px;height:49px;border:2px solid rgba(244,255,249,.9);border-bottom:0;border-radius:17px 17px 3px 3px;transform:translateY(-8px)}.aidol-style-sample i::before{content:"";position:absolute;top:-17px;left:50%;width:17px;height:17px;border:2px solid rgba(244,255,249,.9);border-radius:50%;transform:translateX(-50%)}.aidol-style-sample span{position:absolute;top:5px;left:6px;color:rgba(255,255,255,.86);font-size:.45rem;font-weight:950;letter-spacing:.1em}.aidol-style-sample em{position:absolute;right:4px;bottom:4px;color:rgba(247,255,250,.84);font-size:.34rem;font-style:normal;font-weight:950;letter-spacing:.05em}.aidol-style-sample.sample-consultant{background:linear-gradient(135deg,#55d989,#0b9451)}.aidol-style-sample.sample-consultant i{height:48px;transform:translate(-3px,-8px) rotate(-3deg)}.aidol-style-sample.sample-desk{background:linear-gradient(135deg,#36c873,#158850)}.aidol-style-sample.sample-desk i{height:30px;border-bottom:2px solid rgba(244,255,249,.9);border-radius:16px 16px 4px 4px;transform:translateY(-21px)}.aidol-style-sample.sample-desk::after{content:"";position:absolute;bottom:12px;width:55px;height:9px;border-radius:3px;background:rgba(239,255,245,.72)}.aidol-style-preset>div:not(.aidol-style-sample){display:grid;align-content:center;gap:3px;min-width:0}.aidol-style-preset strong{color:#30556b;font-size:.65rem;font-weight:950}.aidol-style-preset small{color:#7792a2;font-size:.53rem;font-weight:720;line-height:1.35}.aidol-style-preset button{grid-column:2;justify-self:start;min-height:26px;border:0;background:transparent;color:#337cac;padding:0;font-size:.54rem;font-weight:950}.aidol-style-preset button:hover{color:#176b9d}.aidol-style-preset button b{font-size:.78rem}.aidol-style-rail-foot{border-top:1px solid #e4eef3;background:#fbfdff;color:#7992a0;padding:10px 12px;font-size:.54rem;font-weight:720;line-height:1.4}.aidol-style-rail-foot span{color:#3975a0;font-weight:850}
@media(max-width:1070px){.wizard-layout:has(.aidol-avatar-flow){grid-template-columns:minmax(0,1fr) 255px}.aidol-avatar-flow-head{display:grid}.aidol-avatar-identity{grid-template-columns:minmax(150px,1fr) minmax(240px,1.3fr)}}@media(max-width:880px){.wizard-layout:has(.aidol-avatar-flow){grid-template-columns:1fr}.aidol-style-rail{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}.aidol-style-rail-head{grid-column:1/-1}.aidol-style-preset-list{display:contents}.aidol-style-preset{margin:0 0 12px 12px}.aidol-style-preset:last-child{margin-right:12px}.aidol-style-rail-foot{grid-column:1/-1}.aidol-avatar-flow{padding-bottom:116px}}@media(max-width:640px){.aidol-avatar-flow-head{padding:14px}.aidol-avatar-identity{grid-template-columns:1fr}.aidol-avatar-canvas{min-height:0}.aidol-avatar-canvas-head{align-items:stretch;flex-direction:column}.aidol-avatar-upload-btn{width:100%}.aidol-avatar-candidate-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:10px}.aidol-avatar-candidate-media,.aidol-avatar-candidate-media img{min-height:177px}.aidol-avatar-selection-bar{align-items:stretch;flex-direction:column}.aidol-avatar-selection-bar .primary-btn{width:100%}.aidol-image-floating-composer{bottom:11px;width:calc(100vw - 22px)}.aidol-image-floating-shell{align-items:flex-end;flex-wrap:wrap;padding:6px}.aidol-image-floating-shell>label{flex-basis:calc(100% - 44px)}.aidol-image-reference-chip{order:3;max-width:calc(100% - 112px);margin-left:4px}.aidol-image-float-submit{order:2}.aidol-image-float-tool{order:2}.aidol-style-rail{display:grid;grid-template-columns:1fr}.aidol-style-rail-head,.aidol-style-rail-foot{grid-column:auto}.aidol-style-preset{margin:0 12px}.aidol-style-preset:last-child{margin-bottom:12px}.aidol-style-preset-list{display:grid;padding:12px 0;gap:10px}.aidol-style-sample{min-height:82px}}
.aidol-avatar-flow.is-dragover .aidol-avatar-canvas{border-color:#2a99e4;box-shadow:0 0 0 4px rgba(43,153,228,.13),0 12px 29px rgba(20,77,109,.07)}.motion-copy-menu{position:relative;z-index:3;margin-top:2px}.motion-copy-menu>summary{display:flex;align-items:center;justify-content:space-between;min-height:28px;cursor:pointer;list-style:none;border:1px solid #c9e2ef;border-radius:7px;background:#f7fcff;color:#2a7299;padding:0 7px;font-size:.53rem;font-weight:900}.motion-copy-menu>summary::-webkit-details-marker{display:none}.motion-copy-menu>summary b{font-size:.72rem}.motion-copy-menu[open]>summary{border-color:#81c8eb;background:#eaf8ff}.motion-copy-menu>div{position:absolute;z-index:6;right:0;bottom:calc(100% + 5px);display:grid;gap:3px;min-width:160px;max-width:220px;max-height:162px;overflow:auto;border:1px solid #bcddec;border-radius:9px;background:#fff;box-shadow:0 12px 25px rgba(20,83,118,.18);padding:5px}.motion-copy-menu>div button{border:0;border-radius:6px;background:transparent;color:#3c6d87;padding:6px 7px;font-size:.53rem;font-weight:850;line-height:1.3;text-align:left}.motion-copy-menu>div button:hover{background:#eaf8ff;color:#1672a9}
.aidol-style-sample{background:#0abf62}.aidol-style-sample>img{position:absolute;z-index:0;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center 18%;filter:saturate(1.03) contrast(1.01)}.aidol-style-sample.sample-host>img{object-position:center 14%}.aidol-style-sample.sample-consultant>img{object-position:center 18%}.aidol-style-sample.sample-desk>img{object-position:center 16%}.aidol-style-sample>span,.aidol-style-sample>em{z-index:2;text-shadow:0 1px 3px rgba(0,54,32,.58)}.aidol-style-sample::before{z-index:1;background:linear-gradient(180deg,rgba(1,83,44,.14),transparent 42%,rgba(1,52,31,.24))}.aidol-style-sample.sample-desk::after{content:none}

/* Permanent AIDOL deletion — intentionally a deliberate separate surface. */
.aidol-delete-modal{position:fixed;z-index:13000;inset:0;display:grid;place-items:center;padding:22px}.aidol-delete-modal[hidden]{display:none!important}.aidol-delete-backdrop{position:absolute;inset:0;background:rgba(24,8,13,.69);backdrop-filter:blur(8px)}.aidol-delete-dialog{position:relative;z-index:1;display:grid;gap:15px;width:min(530px,calc(100vw - 30px));max-height:calc(100vh - 34px);overflow:auto;border:1px solid rgba(253,164,175,.72);border-radius:20px;background:radial-gradient(circle at 94% 1%,rgba(251,113,133,.14),transparent 36%),linear-gradient(155deg,#fff,#fff8f8 74%,#fff);box-shadow:0 32px 100px rgba(43,8,16,.42);padding:20px}.aidol-delete-dialog-head{display:grid;grid-template-columns:39px minmax(0,1fr) auto;align-items:center;gap:10px}.aidol-delete-warning-mark{display:grid;width:38px;height:38px;place-items:center;border:1px solid #fca5af;border-radius:12px;background:linear-gradient(145deg,#fff0f1,#ffe1e4);box-shadow:0 7px 15px rgba(212,56,77,.12);color:#c73549;font-size:1.17rem;font-weight:950}.aidol-delete-dialog-head>div:nth-child(2){display:grid;gap:3px}.aidol-delete-dialog-head span,.aidol-delete-character-summary small,.aidol-delete-code-head small{color:#c4495a;font-size:.56rem;font-weight:950;letter-spacing:.12em}.aidol-delete-dialog-head h2{margin:0;color:#7f1d2d;font-size:1.16rem;font-weight:950;letter-spacing:-.025em}.aidol-delete-close{border-color:#f5cbd1!important;background:#fff!important;color:#af3f50!important}.aidol-delete-character-summary{display:grid;grid-template-columns:54px minmax(0,1fr);align-items:center;gap:11px;border:1px solid #f2d9dd;border-radius:14px;background:rgba(255,255,255,.79);padding:10px}.aidol-delete-avatar{display:grid;width:54px;height:54px;place-items:center;overflow:hidden;border:1px solid #f0c8cf;border-radius:15px;background:linear-gradient(145deg,#ffe9ed,#eeeaff);color:#a63d50;font-size:.68rem;font-weight:950}.aidol-delete-avatar img{display:block;width:100%;height:100%;object-fit:cover}.aidol-delete-character-summary>div:last-child{display:grid;min-width:0;gap:3px}.aidol-delete-character-summary strong{overflow:hidden;color:#6f2432;font-size:.87rem;font-weight:950;text-overflow:ellipsis;white-space:nowrap}.aidol-delete-character-summary code{overflow:hidden;color:#a36b75;font-size:.56rem;text-overflow:ellipsis;white-space:nowrap}.aidol-delete-warning-copy{border-left:3px solid #e55368;background:#fff4f5;color:#91404d;padding:10px 12px}.aidol-delete-warning-copy strong{display:block;color:#a52e42;font-size:.72rem;font-weight:950}.aidol-delete-warning-copy p{margin:4px 0 0;color:#8d5962;font-size:.63rem;font-weight:730;line-height:1.46}.aidol-delete-confirmation{display:grid;gap:9px;border:1px solid #eadce0;border-radius:13px;background:#fff;padding:12px}.aidol-delete-code-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.aidol-delete-code-head>div{display:grid;gap:4px}.aidol-delete-code-head strong{width:max-content;max-width:100%;border:1px dashed #e0a7b0;border-radius:7px;background:#fff5f6;color:#9e2740;padding:5px 8px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.75rem;font-weight:950;letter-spacing:.08em}.aidol-delete-code-head button{min-height:28px;border:1px solid #e9c7cd;border-radius:7px;background:#fff;color:#ad4657;padding:0 8px;font-size:.56rem;font-weight:900}.aidol-delete-code-head button:hover{border-color:#ef96a4;background:#fff3f4}.aidol-delete-confirmation label{display:grid;gap:6px;color:#764653;font-size:.65rem;font-weight:900}.aidol-delete-confirmation input{width:100%;min-height:41px;border:1px solid #e2c8ce;border-radius:9px;background:#fff;color:#76263a;padding:0 10px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.74rem;font-weight:900;letter-spacing:.07em;outline:0;transition:border-color .16s ease,box-shadow .16s ease}.aidol-delete-confirmation input:focus{border-color:#dc6578;box-shadow:0 0 0 3px rgba(219,82,104,.13)}.aidol-delete-confirmation input:disabled{cursor:wait;background:#fbf5f6;color:#b98b95}.aidol-delete-confirmation input.is-valid{border-color:#1eae71;background:#f4fff9;color:#167149;box-shadow:0 0 0 3px rgba(26,161,103,.11)}.aidol-delete-confirmation>small{color:#9c7079;font-size:.55rem;font-weight:720;line-height:1.38}.aidol-delete-notice{min-height:17px;margin:0;color:#a13b4d;font-size:.62rem;font-weight:830;line-height:1.4}.aidol-delete-notice:empty{display:none}.aidol-delete-notice.is-loading{color:#4f7791}.aidol-delete-dialog-foot{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #f0dfe2;padding-top:13px}.aidol-delete-dialog-foot .secondary-submit{min-height:37px;border-color:#d9e1e5;background:#fff;color:#5c7482}.aidol-delete-submit{min-height:37px;border:1px solid #c93045;border-radius:9px;background:linear-gradient(145deg,#e44d62,#c92941);box-shadow:0 8px 17px rgba(190,42,62,.18);color:#fff;padding:0 12px;font-size:.66rem;font-weight:950;transition:filter .16s ease,transform .16s ease,opacity .16s ease}.aidol-delete-submit:hover:not(:disabled){filter:brightness(1.06);transform:translateY(-1px)}.aidol-delete-submit:disabled{cursor:not-allowed;box-shadow:none;filter:grayscale(.35);opacity:.5}.aidol-delete-submit.is-loading::before{content:'';display:inline-block;width:11px;height:11px;margin-right:6px;border:2px solid rgba(255,255,255,.42);border-top-color:#fff;border-radius:50%;vertical-align:-2px;animation:previewSpin .72s linear infinite}@media(max-width:560px){.aidol-delete-modal{padding:10px}.aidol-delete-dialog{width:calc(100vw - 20px);max-height:calc(100vh - 20px);border-radius:16px;padding:15px}.aidol-delete-dialog-foot{align-items:stretch;flex-direction:column-reverse}.aidol-delete-dialog-foot button{width:100%}.aidol-delete-code-head{align-items:flex-start;flex-direction:column}.aidol-delete-code-head button{width:100%}}


/* Motion gallery loading and paging v123 */
.motion-gallery-loading{grid-column:1/-1;display:grid;justify-items:center;align-content:center;gap:8px;min-height:282px;border:1px dashed #a8d8ee;border-radius:13px;background:radial-gradient(circle at 50% 0,rgba(67,183,244,.16),transparent 44%),linear-gradient(145deg,#fbfeff,#eef9ff);color:#67889e;padding:20px;text-align:center}.motion-gallery-loading-spinner{display:block;width:34px;height:34px;border:3px solid rgba(25,140,216,.17);border-top-color:#1687dd;border-radius:50%;box-shadow:0 0 0 6px rgba(59,177,236,.06);animation:previewSpin .75s linear infinite}.motion-gallery-loading strong{color:#245d81;font-size:.8rem;font-weight:950}.motion-gallery-loading small{max-width:380px;color:#7593a7;font-size:.64rem;font-weight:720;line-height:1.45}.motion-gallery-loading-skeletons{display:grid;grid-template-columns:repeat(3,58px);gap:8px;margin-top:5px}.motion-gallery-loading-skeletons i{display:block;height:44px;overflow:hidden;border:1px solid #d5eaf4;border-radius:9px;background:linear-gradient(105deg,#eaf5fa 8%,#f9fdff 22%,#eaf5fa 36%);background-size:240% 100%;animation:motionGallerySkeleton 1.35s ease-in-out infinite}.motion-gallery-loading-skeletons i:nth-child(2){animation-delay:.12s}.motion-gallery-loading-skeletons i:nth-child(3){animation-delay:.24s}@keyframes motionGallerySkeleton{to{background-position:-140% 0}}.motion-gallery-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e0edf3;background:linear-gradient(100deg,#fbfeff,#f5fbff);padding:11px 14px}.motion-gallery-pagination[hidden]{display:none!important}.motion-gallery-pagination span{color:#608298;font-size:.62rem;font-weight:900}.motion-gallery-pagination div{display:flex;gap:7px}.motion-gallery-pagination button{min-height:31px;border:1px solid #c8e1ee;border-radius:8px;background:#fff;color:#24688f;padding:0 10px;font-size:.62rem;font-weight:950;transition:border-color .16s ease,background .16s ease,opacity .16s ease}.motion-gallery-pagination button:hover:not(:disabled){border-color:#58b7e7;background:#eaf8ff}.motion-gallery-pagination button:disabled{cursor:not-allowed;opacity:.45}@media(max-width:620px){.motion-gallery-pagination{align-items:stretch;flex-direction:column}.motion-gallery-pagination div{display:grid;grid-template-columns:1fr 1fr}.motion-gallery-pagination button{width:100%}}

/* Full-height script navigator v134: select a scenario on the left and edit
   its prompt in the work area on the right, matching the testbeta workflow. */
.livestream-script-workbench{display:grid;grid-template-columns:230px minmax(0,1fr);align-items:stretch;gap:14px;min-width:0;min-height:max(680px,calc(100vh - 210px))}
.livestream-script-workarea{display:grid;align-content:start;gap:14px;min-width:0}
.livestream-script-workbench>.livestream-script-rail{position:sticky;top:96px;align-self:start;grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);align-content:start;align-items:stretch;gap:12px;width:100%;height:calc(100vh - 210px);min-height:620px;overflow:hidden;padding:15px 13px;background:radial-gradient(circle at 92% 0,rgba(39,163,244,.13),transparent 34%),linear-gradient(180deg,#ffffff,#f5faff)}
.livestream-script-workbench .livestream-script-rail-copy{position:static;align-self:auto;padding:3px 4px 9px;border-bottom:1px solid #deebf3}
.livestream-script-workbench .livestream-script-rail-copy span{font-size:.82rem;letter-spacing:-.012em}
.livestream-script-workbench .livestream-script-rail-copy small{max-width:none;font-size:.63rem;line-height:1.45}
.livestream-script-workbench .livestream-script-tabs{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;align-items:stretch;gap:7px;min-height:0;max-height:none;overflow-x:hidden;overflow-y:auto;padding:1px 4px 1px 1px;scrollbar-gutter:stable}
.livestream-script-tabs button{grid-template-columns:28px minmax(0,1fr);grid-template-rows:minmax(17px,auto) minmax(15px,auto);column-gap:10px;row-gap:2px;width:100%;min-width:0;min-height:58px;border-color:#d8e7f1;border-radius:11px;background:linear-gradient(135deg,#fbfdff,#f6fbfe);padding:10px 12px;box-shadow:0 2px 5px rgba(37,89,125,.025);transition:border-color .16s ease,background .16s ease,box-shadow .16s ease,transform .16s ease}
.livestream-script-tabs button:hover{border-color:#8dcdf6;background:#f3faff;box-shadow:0 7px 15px rgba(28,128,193,.08);transform:translateY(-1px)}
.livestream-script-tabs button>span{grid-row:1/3;width:28px;height:28px;border-radius:9px;background:#e5f0f7;color:#52738a;font-size:.67rem}
.livestream-script-tabs button small{grid-column:2;color:#7891a4;font-size:.63rem;line-height:1.25}
.livestream-script-tabs button.active{border-color:#1594f3;background:linear-gradient(117deg,#e7f6ff,#fafdff 70%);box-shadow:0 0 0 2px rgba(20,143,244,.12),0 8px 17px rgba(24,136,211,.10)}
.livestream-script-tabs button.active>span{background:linear-gradient(145deg,#1497f5,#1779e8);box-shadow:0 5px 10px rgba(19,132,233,.21)}
.livestream-script-tabs button.active small{color:#237eaf}
.livestream-script-tabs .livestream-add-script{display:flex!important;grid-template-columns:none!important;justify-content:center;align-items:center;min-height:43px;border-color:#a9d8f5!important;border-radius:10px!important;background:linear-gradient(135deg,#f0faff,#fff)!important;color:#0878c7!important;box-shadow:none!important}
.livestream-script-tabs .livestream-add-script:hover{border-color:#46aceb!important;background:#e6f6ff!important;transform:none}
@media(max-width:1100px){.livestream-script-workbench{grid-template-columns:210px minmax(0,1fr)}.livestream-script-workbench>.livestream-script-rail{padding:13px 11px}}
@media(max-width:820px){.livestream-script-workbench{grid-template-columns:1fr;min-height:0}.livestream-script-workbench>.livestream-script-rail{position:static;height:auto;min-height:0;max-height:none}.livestream-script-workbench .livestream-script-tabs{max-height:310px}}
@media(max-width:620px){.livestream-script-workbench .livestream-script-tabs{max-height:286px}.livestream-script-tabs button{min-height:55px;padding:9px 10px}}

/* The character card receives one decoded still frame when it becomes ready.
   Actual movement remains hover-only; this prevents the idle black surface. */
.aidol-showcase-card.motion-preview-ready .aidol-showcase-motion{opacity:1}
.aidol-showcase-card.motion-preview-ready .aidol-showcase-stage>img{opacity:.08;transform:scale(1.03)}
.aidol-showcase-card.motion-preview-error .aidol-showcase-motion{opacity:0}

/* Per-script ready media duration v140 */
.livestream-desk-media-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:13px}.livestream-desk-media-stat{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:11px;min-width:0;border:1px solid #badcf1;border-radius:13px;background:linear-gradient(135deg,#f5fbff,#fff);padding:12px 14px;box-shadow:0 5px 15px rgba(25,103,151,.06)}.livestream-desk-media-stat.lipsync{border-color:#d3cef4;background:linear-gradient(135deg,#f8f7ff,#fff)}.livestream-desk-media-icon{display:grid;width:44px;height:44px;place-items:center;border-radius:12px;background:#dff2ff;color:#0878c9;font-size:1.18rem}.livestream-desk-media-stat.lipsync .livestream-desk-media-icon{background:#ece9ff;color:#624ac4}.livestream-desk-media-stat>div{display:grid;min-width:0;gap:2px}.livestream-desk-media-stat>div>span{color:#56768b;font-size:.62rem;font-weight:950;letter-spacing:.05em;text-transform:uppercase}.livestream-desk-media-stat strong{color:#0878c9;font-size:1.18rem;font-weight:950;letter-spacing:-.02em}.livestream-desk-media-stat.lipsync strong{color:#5944b3}.livestream-desk-media-stat small{overflow:hidden;color:#718a9a;font-size:.62rem;font-weight:750;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}.livestream-desk-media-stat.is-estimated strong{font-style:italic}.livestream-desk-media-stat.is-estimated small{color:#846f42}@media(max-width:620px){.livestream-desk-media-stats{grid-template-columns:1fr}.livestream-desk-media-stat{padding:11px 12px}.livestream-desk-media-stat small{white-space:normal}}

/* Event-wide playable duration across every livestream script. */
.livestream-event-command-head{flex-wrap:wrap}.livestream-event-command-copy{flex:1 1 420px;min-width:0}.livestream-event-stats{display:grid;grid-template-columns:minmax(68px,.45fr) minmax(82px,.55fr) minmax(220px,1.75fr);flex:1 1 430px;align-self:stretch;max-width:610px;gap:7px}.livestream-event-stats .livestream-event-stat{justify-content:center;min-width:0;border-color:#d6e4ed;background:#f8fbfd;padding:9px 11px;text-align:left}.livestream-event-stats .livestream-event-stat strong{letter-spacing:0}.livestream-event-media-breakdown{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;gap:7px}.livestream-event-media-stat{display:grid;align-content:center;min-width:0;gap:1px;border:1px solid #b9daef;border-radius:12px;background:#eef8ff;padding:9px 10px;text-align:left}.livestream-event-media-stat.lipsync{border-color:#bde4ca;background:#effaf3}.livestream-event-media-stat strong{color:#0875c9;font-size:1rem;font-weight:950;letter-spacing:0;line-height:1.05;white-space:nowrap}.livestream-event-media-stat.lipsync strong{color:#14713d}.livestream-event-media-stat span{color:#436c84;font-size:.6rem;font-weight:900}.livestream-event-media-stat.lipsync span{color:#446f55}.livestream-event-media-stat small{display:block;margin-top:3px;color:#668193;font-size:.52rem;font-weight:800;line-height:1.3;white-space:normal}.livestream-event-media-stat.lipsync small{color:#668474}.livestream-event-media-stat.is-estimated{border-style:dashed}.livestream-event-media-stat.is-estimated strong{color:#856516}@media(max-width:900px){.livestream-event-command-copy,.livestream-event-stats{flex:none;width:100%}.livestream-event-stats{max-width:none}.livestream-event-stats .livestream-event-stat{width:auto;text-align:left}}@media(max-width:560px){.livestream-event-stats{grid-template-columns:1fr 1fr}.livestream-event-media-breakdown{grid-column:1/-1}}

/* Dedicated TTS Studio ------------------------------------------------------ */
.tasks-view[data-task-mode="tts"]{padding:22px 24px 30px}.tasks-view[data-task-mode="tts"]>.section-heading,.tasks-view[data-task-mode="tts"]>.task-tabs{display:none}.tasks-view[data-task-mode="tts"]>.workspace-notice{margin:0 0 12px}.tasks-view[data-task-mode="tts"] .task-panels{margin-top:0}.tts-studio{display:grid;gap:18px}.tts-studio-header{display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid #d7e4ed;padding:2px 2px 16px}.tts-studio-identity{display:flex;align-items:center;gap:13px;min-width:0}.tts-studio-mark{display:flex;width:52px;height:52px;flex:0 0 52px;align-items:center;justify-content:center;gap:3px;border-radius:8px;background:#102b3d;box-shadow:0 8px 20px rgba(16,43,61,.16)}.tts-studio-mark i{display:block;width:3px;border-radius:3px;background:#57d6d0;animation:ttsSignal 1.35s ease-in-out infinite}.tts-studio-mark i:nth-child(1),.tts-studio-mark i:nth-child(5){height:12px;animation-delay:-.2s}.tts-studio-mark i:nth-child(2),.tts-studio-mark i:nth-child(4){height:24px;animation-delay:-.55s}.tts-studio-mark i:nth-child(3){height:34px;animation-delay:-.8s}.tts-studio-identity>div{display:grid;gap:2px;min-width:0}.tts-studio-identity>div>span,.tts-voice-console>header>span,.tts-output-head>div>span,.tts-script-heading>span{color:#087f86;font-size:.61rem;font-weight:950;letter-spacing:.08em}.tts-studio-identity h1{margin:0;color:#10233a;font-size:1.55rem;font-weight:950;letter-spacing:0}.tts-studio-identity p{margin:0;color:#667b8b;font-size:.78rem;font-weight:720}.tts-studio-library-link{display:flex;min-height:40px;align-items:center;gap:7px;border:1px solid #c9dbe6;border-radius:8px;background:#fff;color:#173f59;padding:0 12px;font-size:.75rem;font-weight:900}.tts-studio-library-link:hover{border-color:#72b8c0;background:#f3fbfb}.tts-studio-library-link .task-history-count{margin:0;background:#e1f5f3;color:#08777c}.tts-studio-workbench{display:grid;grid-template-columns:minmax(0,1fr) minmax(310px,360px);gap:14px;align-items:start}.tts-script-studio,.tts-voice-console{min-width:0;border:1px solid #cfdde7;border-radius:8px;background:#fff;box-shadow:0 8px 24px rgba(22,62,88,.06)}.tts-script-studio{display:grid;grid-template-rows:auto auto minmax(330px,1fr) auto;overflow:hidden}.tts-script-toolbar{display:flex;align-items:end;justify-content:space-between;gap:14px;border-bottom:1px solid #e0e9ef;background:#f8fbfc;padding:12px 14px}.tts-document-title{display:grid;min-width:0;flex:1;gap:3px}.tts-document-title>span{color:#6a7f8e;font-size:.59rem;font-weight:900}.tts-document-title input{width:min(100%,380px);min-height:30px;border:0;background:transparent;color:#15364d;padding:0;font-size:.87rem;font-weight:900;outline:0}.tts-document-title input:focus{color:#067b82}.tts-script-actions{display:flex;flex:0 0 auto;gap:6px}.tts-script-actions button{min-height:32px;border:1px solid #cedde6;border-radius:7px;background:#fff;color:#34566d;padding:0 9px;font-size:.66rem;font-weight:900}.tts-script-actions button:hover{border-color:#79bbc1;background:#f0fbfa;color:#076f74}.tts-script-heading{display:grid;gap:2px;padding:15px 20px 0}.tts-script-heading strong{color:#193b53;font-size:.91rem;font-weight:950}.tts-script-editor{display:block;min-height:0;padding:0}.tts-script-editor textarea{display:block;width:100%;height:100%;min-height:360px;resize:vertical;border:0;background:#fff;color:#172f40;padding:16px 20px 22px;font:inherit;font-size:.96rem;font-weight:520;line-height:1.7;outline:0}.tts-script-editor textarea::placeholder{color:#9aabb7}.tts-script-studio:focus-within{border-color:#73bfc4;box-shadow:0 0 0 3px rgba(24,151,157,.09),0 8px 24px rgba(22,62,88,.06)}.tts-script-status{display:flex;min-height:42px;align-items:center;flex-wrap:wrap;gap:7px 18px;border-top:1px solid #e1e9ee;background:#f8fbfc;padding:8px 14px;color:#697e8d;font-size:.65rem;font-weight:800}.tts-script-status span{display:flex;align-items:baseline;gap:4px}.tts-script-status strong{color:#234b62;font-size:.75rem;font-weight:950}.tts-voice-console{position:sticky;top:88px;display:grid;gap:14px;padding:15px}.tts-voice-console>header{display:grid;gap:2px}.tts-voice-console>header h2,.tts-output-head h2{margin:0;color:#183a51;font-size:1rem;font-weight:950;letter-spacing:0}.tts-selected-voice{display:grid;grid-template-columns:minmax(0,1fr) 82px;gap:7px}.tts-selected-voice .voice-picker-trigger{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:72px;border:1px solid #bcd7e4;border-radius:8px;background:#f7fbfd;padding:9px 10px}.tts-selected-voice .voice-picker-trigger>span:nth-child(2){display:grid;min-width:0;gap:3px}.tts-selected-voice .voice-picker-trigger strong{overflow:hidden;color:#173d55;font-size:.77rem;text-overflow:ellipsis;white-space:nowrap}.tts-selected-voice .voice-picker-trigger small{overflow:hidden;color:#6d8291;font-size:.61rem;text-overflow:ellipsis;white-space:nowrap}.tts-selected-voice .voice-picker-trigger>b{color:#087a80;font-size:.61rem;font-weight:950}.tts-selected-voice-mark{display:flex;width:36px;height:36px;align-items:center;justify-content:center;gap:2px;border-radius:7px;background:#12364b}.tts-selected-voice-mark i{display:block;width:2px;border-radius:2px;background:#63d5cf}.tts-selected-voice-mark i:nth-child(1),.tts-selected-voice-mark i:nth-child(3){height:11px}.tts-selected-voice-mark i:nth-child(2){height:22px}.tts-selected-voice .voice-preview-btn{height:72px;border-color:#bcd7e4;border-radius:8px;background:#fff;color:#08757b;font-size:.65rem}.tts-selected-voice .voice-preview-btn:hover{background:#effaf9}.tts-speed-panel{display:grid;gap:10px;border-top:1px solid #dfe8ed;border-bottom:1px solid #dfe8ed;padding:13px 0}.tts-speed-panel .voice-speed-head span{color:#37586e;font-size:.7rem;text-decoration:none}.tts-speed-panel .voice-speed-head strong{color:#153c53;font-size:.81rem;font-weight:950}.tts-speed-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;border:1px solid #d5e1e8;border-radius:8px;background:#edf3f6;padding:3px}.tts-speed-presets button{min-height:29px;border:0;border-radius:6px;background:transparent;color:#657a89;font-size:.61rem;font-weight:900}.tts-speed-presets button.active{background:#fff;color:#08757b;box-shadow:0 2px 7px rgba(28,73,99,.12)}.tts-speed-panel input[type="range"]{width:100%;height:7px;margin:1px 0;appearance:none;border:0;border-radius:999px;background:linear-gradient(90deg,#0c878b 0%,#0c878b var(--speed-progress,50%),#d9e4e8 var(--speed-progress,50%),#d9e4e8 100%);outline:0}.tts-speed-panel input[type="range"]::-webkit-slider-thumb{width:18px;height:18px;appearance:none;border:2px solid #0b7479;border-radius:50%;background:#fff;box-shadow:0 2px 7px rgba(18,69,80,.18);cursor:pointer}.tts-speed-panel input[type="range"]::-moz-range-thumb{width:14px;height:14px;border:2px solid #0b7479;border-radius:50%;background:#fff;box-shadow:0 2px 7px rgba(18,69,80,.18);cursor:pointer}.tts-speed-panel .voice-speed-scale{color:#748692;font-size:.58rem}.tts-generation-summary{display:grid;gap:4px;border:1px solid #d7e4e9;border-radius:8px;background:#f8fbfc;padding:11px}.tts-generation-summary>div{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.tts-generation-summary span{color:#617887;font-size:.65rem;font-weight:850}.tts-generation-summary strong{color:#123f58;font-size:.96rem;font-weight:950}.tts-generation-summary small{color:#718490;font-size:.61rem;font-weight:750;line-height:1.35}.tts-generate-action{position:relative;display:flex;min-height:48px;align-items:center;justify-content:center;gap:8px;border:0;border-radius:8px;background:#102f43;color:#fff;padding:0 15px;font-size:.76rem;font-weight:950;box-shadow:0 8px 18px rgba(16,47,67,.18)}.tts-generate-action:hover{background:#0b7378;transform:translateY(-1px)}.tts-generate-action i{display:none;width:15px;height:15px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%}.tts-studio-workbench[aria-busy="true"] .tts-generate-action{pointer-events:none;opacity:.78}.tts-studio-workbench[aria-busy="true"] .tts-generate-action i{display:block;animation:taskHistorySpin .76s linear infinite}.tts-output-library{display:grid;gap:12px;border-top:1px solid #d6e3ea;padding-top:17px;scroll-margin-top:92px;transition:background-color .2s ease}.tts-output-library.is-updated{animation:ttsLibraryUpdate 1.05s ease}.tts-output-head{display:flex;align-items:end;justify-content:space-between;gap:14px}.tts-output-head>div:first-child{display:grid;gap:2px}.tts-output-head>div:last-child{display:flex;align-items:center;gap:9px;color:#647b8a;font-size:.67rem;font-weight:850}.tts-output-head>div:last-child>span{display:flex;align-items:baseline;gap:4px}.tts-output-head>div:last-child strong{color:#173e57;font-size:.82rem}.tts-output-library .task-history-list{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;gap:9px;padding:0}.tts-output-library .task-history-card{min-height:132px;border-radius:8px;background:#fff;padding:12px}.tts-output-library .task-history-audio{height:36px}.tts-output-library .empty-state{grid-column:1/-1;min-height:120px;border:1px dashed #cadbe4;border-radius:8px;background:#f8fbfc}.tts-output-library .task-history-actions a{border-radius:7px}.tts-output-library .task-history-actions button{display:none}@keyframes ttsSignal{0%,100%{transform:scaleY(.72);opacity:.72}50%{transform:scaleY(1);opacity:1}}@keyframes ttsLibraryUpdate{0%{background:rgba(53,198,186,.14)}100%{background:transparent}}@media(max-width:980px){.tts-studio-workbench{grid-template-columns:1fr}.tts-voice-console{position:static}.tts-script-editor textarea{min-height:310px}.tts-selected-voice .voice-picker-trigger strong,.tts-selected-voice .voice-picker-trigger small{white-space:normal}}@media(max-width:680px){.tasks-view[data-task-mode="tts"]{padding:14px}.tts-studio-header,.tts-script-toolbar,.tts-output-head{align-items:stretch;flex-direction:column}.tts-studio-library-link{align-self:flex-start}.tts-script-actions{width:100%}.tts-script-actions button{flex:1}.tts-document-title input{width:100%}.tts-script-heading{padding:13px 14px 0}.tts-script-editor textarea{min-height:270px;padding:14px;font-size:.88rem}.tts-script-status{gap:6px 12px}.tts-output-library .task-history-list{grid-template-columns:1fr}.tts-selected-voice{grid-template-columns:1fr 78px}}

/* Dedicated LipSync Studio ------------------------------------------------- */
.tasks-view[data-task-mode="lipsync"]{padding:22px 24px 30px}.tasks-view[data-task-mode="lipsync"]>.section-heading,.tasks-view[data-task-mode="lipsync"]>.task-tabs{display:none}.tasks-view[data-task-mode="lipsync"]>.workspace-notice{margin:0 0 12px}.tasks-view[data-task-mode="lipsync"] .task-panels{margin-top:0}.lipsync-studio{display:grid;gap:18px}.lipsync-studio-header{display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid #d7e4ed;padding:2px 2px 16px}.lipsync-studio-identity{display:flex;align-items:center;gap:13px;min-width:0}.lipsync-studio-mark{position:relative;display:flex;width:52px;height:52px;flex:0 0 52px;align-items:center;justify-content:center;gap:3px;overflow:hidden;border-radius:8px;background:#172a38;box-shadow:0 8px 20px rgba(18,43,57,.17)}.lipsync-studio-mark i{display:block;border-radius:999px;animation:lipsyncSignal 1.7s ease-in-out infinite}.lipsync-studio-mark i:nth-child(1),.lipsync-studio-mark i:nth-child(3){width:8px;height:22px;background:#ff806e;transform:rotate(32deg)}.lipsync-studio-mark i:nth-child(3){transform:rotate(-32deg);animation-delay:-.55s}.lipsync-studio-mark i:nth-child(2){width:4px;height:34px;background:#63d6d1;animation-delay:-.9s}.lipsync-studio-identity>div{display:grid;gap:2px;min-width:0}.lipsync-studio-identity>div>span,.lipsync-control-console>header>span,.lipsync-output-head>div>span,.lipsync-source-settings>header>span,.lipsync-script-studio>header>div:first-child>span,.lipsync-voice-console>header>span{color:#087f86;font-size:.61rem;font-weight:950;letter-spacing:.08em}.lipsync-studio-identity h1{margin:0;color:#10233a;font-size:1.55rem;font-weight:950;letter-spacing:0}.lipsync-studio-identity p{margin:0;color:#667b8b;font-size:.78rem;font-weight:720}.lipsync-studio-library-link{display:flex;min-height:40px;align-items:center;gap:7px;border:1px solid #c9dbe6;border-radius:8px;background:#fff;color:#173f59;padding:0 12px;font-size:.75rem;font-weight:900}.lipsync-studio-library-link:hover{border-color:#72b8c0;background:#f3fbfb}.lipsync-studio-library-link .task-history-count{margin:0;background:#e1f5f3;color:#08777c}.lipsync-studio-workbench{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,380px);gap:14px;align-items:start}.lipsync-editor-column{display:grid;min-width:0;gap:12px}.lipsync-project-toolbar{display:flex;min-height:60px;align-items:center;justify-content:space-between;gap:14px;border:1px solid #cfdde7;border-radius:8px;background:#f8fbfc;padding:9px 14px}.lipsync-project-toolbar label{display:grid;min-width:0;flex:1;gap:2px}.lipsync-project-toolbar label>span{color:#708592;font-size:.57rem;font-weight:950}.lipsync-project-toolbar input{width:min(100%,430px);min-height:29px;border:0;background:transparent;color:#173b52;padding:0;font:inherit;font-size:.87rem;font-weight:950;outline:0}.lipsync-project-toolbar input:focus{color:#08787d}.lipsync-project-status{flex:0 0 auto;border:1px solid #c9dbe4;border-radius:999px;background:#fff;color:#66808f;padding:5px 9px;font-size:.59rem;font-weight:950}.lipsync-project-status[data-state="submitting"]{border-color:#e0b252;background:#fff9e9;color:#8b6719}.lipsync-project-status[data-state="queued"]{border-color:#99d1b0;background:#effaf3;color:#277145}.lipsync-project-status[data-state="error"]{border-color:#e3a3a9;background:#fff2f3;color:#a23e49}.lipsync-source-studio{display:grid;grid-template-columns:minmax(300px,1.08fr) minmax(280px,.92fr);min-width:0;overflow:hidden;border:1px solid #cbdbe5;border-radius:8px;background:#fff;box-shadow:0 8px 24px rgba(22,62,88,.06)}.lipsync-source-monitor{position:relative;display:grid;min-height:330px;place-items:center;overflow:hidden;background:#111c24}.lipsync-source-monitor video{display:block;width:100%;height:100%;min-height:330px;max-height:480px;object-fit:contain;background:#111c24}.lipsync-source-monitor video[hidden],.lipsync-source-empty[hidden]{display:none}.lipsync-source-empty{display:grid;justify-items:center;gap:7px;color:#d7e1e6;text-align:center}.lipsync-source-empty>span{display:grid;width:48px;height:48px;place-items:center;border:1px solid rgba(255,255,255,.25);border-radius:50%;background:rgba(255,255,255,.08);color:#63d6d1;font-size:.9rem;padding-left:3px}.lipsync-source-empty strong{font-size:.83rem;font-weight:900}.lipsync-source-empty small{color:#8fa3af;font-size:.65rem;font-weight:700}.lipsync-source-badge{position:absolute;top:11px;left:11px;border:1px solid rgba(255,255,255,.2);border-radius:6px;background:rgba(9,24,33,.82);color:#e8f4f6;padding:5px 7px;font-size:.54rem;font-weight:950;letter-spacing:.04em;backdrop-filter:blur(8px)}.lipsync-source-settings{display:grid;min-width:0;align-content:start;gap:13px;border-left:1px solid #dbe5eb;padding:17px}.lipsync-source-settings>header{display:grid;gap:3px}.lipsync-source-settings>header strong{color:#183c53;font-size:.91rem;font-weight:950}.lipsync-source-settings>header small{color:#6c818f;font-size:.63rem;font-weight:720;line-height:1.4}.lipsync-field{display:grid;gap:5px;min-width:0}.lipsync-field>span{color:#49687b;font-size:.62rem;font-weight:900}.lipsync-field select{width:100%;min-height:40px;border:1px solid #c8dae5;border-radius:7px;background:#fff;color:#24485e;padding:0 10px;font:inherit;font-size:.67rem;font-weight:800;outline:0}.lipsync-field select:focus{border-color:#71bec2;box-shadow:0 0 0 3px rgba(34,151,156,.1)}#lipsyncSourceControls{display:grid;gap:9px}.lipsync-file-drop{position:relative;display:flex;min-height:76px;align-items:center;gap:10px;border:1px dashed #9ec5d0;border-radius:8px;background:#f7fbfc;padding:11px;cursor:pointer;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}.lipsync-file-drop:hover,.lipsync-file-drop.is-dragging{border-color:#0c9397;background:#edfafa;box-shadow:0 0 0 3px rgba(25,150,154,.09)}.lipsync-file-drop-icon{display:grid;width:34px;height:34px;flex:0 0 34px;place-items:center;border-radius:7px;background:#14374a;color:#67d8d2;font-size:1.1rem;font-weight:700}.lipsync-file-drop>span:nth-child(2){display:grid;min-width:0;gap:3px}.lipsync-file-drop strong{color:#21485f;font-size:.68rem;font-weight:950}.lipsync-file-drop small{color:#738a97;font-size:.56rem;font-weight:700;line-height:1.35}.lipsync-file-drop input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.lipsync-source-settings .musetalk-character-panel{display:grid;align-items:stretch;justify-content:stretch;gap:10px;border-color:#c9c1e2;border-radius:8px;background:#f8f7fc;padding:10px}.lipsync-source-settings .tun-fast-character-head{display:flex;align-items:start;justify-content:space-between;gap:8px}.lipsync-source-settings .tun-fast-character-list{max-height:236px;overflow:auto}.lipsync-source-note{margin:0;border-top:1px solid #e0e8ed;padding-top:10px;color:#718692;font-size:.59rem;font-weight:720;line-height:1.42}.lipsync-script-studio{overflow:hidden;border:1px solid #cfdde7;border-radius:8px;background:#fff;box-shadow:0 8px 24px rgba(22,62,88,.05)}.lipsync-script-studio:focus-within{border-color:#73bfc4;box-shadow:0 0 0 3px rgba(24,151,157,.09),0 8px 24px rgba(22,62,88,.05)}.lipsync-script-studio>header{display:flex;align-items:end;justify-content:space-between;gap:14px;border-bottom:1px solid #e0e9ef;background:#f8fbfc;padding:12px 15px}.lipsync-script-studio>header>div:first-child{display:grid;gap:2px}.lipsync-script-studio>header strong{color:#193b53;font-size:.88rem;font-weight:950}.lipsync-script-metrics{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px 12px;color:#728692;font-size:.58rem;font-weight:800}.lipsync-script-metrics span{white-space:nowrap}.lipsync-script-metrics b{color:#244b62;font-size:.66rem}.lipsync-script-editor{display:block}.lipsync-script-editor textarea{display:block;width:100%;min-height:230px;resize:vertical;border:0;background:#fff;color:#172f40;padding:18px 20px;font:inherit;font-size:.92rem;font-weight:520;line-height:1.68;outline:0}.lipsync-script-editor textarea::placeholder{color:#9aabb7}.lipsync-script-studio>footer{display:flex;min-height:40px;align-items:center;gap:5px;border-top:1px solid #e1e9ee;background:#f8fbfc;padding:7px 14px;color:#748894;font-size:.58rem;font-weight:750}.lipsync-script-studio>footer>span:first-child{margin-right:auto}.lipsync-script-studio kbd{border:1px solid #cad8e0;border-bottom-width:2px;border-radius:4px;background:#fff;color:#4d6878;padding:2px 5px;font:inherit;font-size:.54rem;font-weight:900}.lipsync-control-console{position:sticky;top:88px;display:grid;min-width:0;gap:14px;border:1px solid #cfdde7;border-radius:8px;background:#fff;padding:15px;box-shadow:0 8px 24px rgba(22,62,88,.06)}.lipsync-control-console>header{display:grid;gap:2px}.lipsync-control-console>header h2,.lipsync-output-head h2{margin:0;color:#183a51;font-size:1rem;font-weight:950;letter-spacing:0}.lipsync-control-console>header p{margin:1px 0 0;color:#708490;font-size:.61rem;font-weight:700}.lipsync-control-console .lipsync-model-picker{gap:9px;border:0;border-top:1px solid #e0e8ed;border-bottom:1px solid #e0e8ed;border-radius:0;background:transparent;padding:13px 0}.lipsync-control-console .lipsync-model-picker-head{display:grid;gap:3px}.lipsync-control-console .lipsync-model-picker-head small{max-width:none;text-align:left;font-size:.57rem}.lipsync-control-console .lipsync-model-options{grid-template-columns:1fr;gap:6px}.lipsync-control-console .lipsync-model-card{min-height:62px;border-radius:8px;padding:8px}.lipsync-control-console .lipsync-model-copy small{font-size:.59rem}.lipsync-voice-console{display:grid;gap:9px}.lipsync-voice-console>header{display:grid;gap:2px}.lipsync-voice-console>header strong{color:#24485e;font-size:.77rem;font-weight:950}.lipsync-selected-voice{display:grid;grid-template-columns:minmax(0,1fr) 78px;gap:7px}.lipsync-selected-voice .voice-picker-trigger{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:68px;border:1px solid #bcd7e4;border-radius:8px;background:#f7fbfd;padding:8px}.lipsync-selected-voice .voice-picker-trigger>span:nth-child(2){display:grid;min-width:0;gap:3px}.lipsync-selected-voice .voice-picker-trigger strong,.lipsync-selected-voice .voice-picker-trigger small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lipsync-selected-voice .voice-picker-trigger strong{color:#173d55;font-size:.7rem}.lipsync-selected-voice .voice-picker-trigger small{color:#6d8291;font-size:.56rem}.lipsync-selected-voice .voice-picker-trigger>b{color:#087a80;font-size:.57rem;font-weight:950}.lipsync-voice-mark{display:flex;width:34px;height:34px;align-items:center;justify-content:center;gap:2px;border-radius:7px;background:#14374a}.lipsync-voice-mark i{display:block;width:2px;border-radius:2px;background:#63d5cf}.lipsync-voice-mark i:nth-child(1),.lipsync-voice-mark i:nth-child(3){height:10px}.lipsync-voice-mark i:nth-child(2){height:21px}.lipsync-selected-voice .voice-preview-btn{height:68px;border-color:#bcd7e4;border-radius:8px;background:#fff;color:#08757b;font-size:.61rem}.lipsync-privacy-field{border-top:1px solid #e1e9ee;padding-top:12px}.lipsync-generation-summary{display:grid;gap:4px;border:1px solid #d7e4e9;border-radius:8px;background:#f8fbfc;padding:11px}.lipsync-generation-summary>div{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.lipsync-generation-summary span{color:#617887;font-size:.65rem;font-weight:850}.lipsync-generation-summary strong{color:#123f58;font-size:.95rem;font-weight:950}.lipsync-generation-summary small{color:#718490;font-size:.58rem;font-weight:750;line-height:1.38}.lipsync-generate-action{display:flex;min-height:50px;align-items:center;justify-content:center;gap:8px;border:0;border-radius:8px;background:#132f40;color:#fff;padding:0 15px;font-size:.75rem;font-weight:950;box-shadow:0 8px 18px rgba(16,47,67,.18)}.lipsync-generate-action:hover:not(:disabled){background:#0b777b;transform:translateY(-1px)}.lipsync-generate-action:disabled{cursor:not-allowed;box-shadow:none;opacity:.56}.lipsync-generate-action i{display:none;width:15px;height:15px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%}.lipsync-studio-workbench[aria-busy="true"] .lipsync-generate-action{pointer-events:none;opacity:.78}.lipsync-studio-workbench[aria-busy="true"] .lipsync-generate-action i{display:block;animation:taskHistorySpin .76s linear infinite}.lipsync-output-library{display:grid;gap:12px;border-top:1px solid #d6e3ea;padding-top:17px;scroll-margin-top:92px}.lipsync-output-library.is-updated{animation:ttsLibraryUpdate 1.05s ease}.lipsync-output-head{display:flex;align-items:end;justify-content:space-between;gap:14px}.lipsync-output-head>div:first-child{display:grid;gap:2px}.lipsync-output-head>div:last-child{display:flex;align-items:center;gap:9px;color:#647b8a;font-size:.67rem;font-weight:850}.lipsync-output-head>div:last-child>span{display:flex;align-items:baseline;gap:4px}.lipsync-output-head>div:last-child strong{color:#173e57;font-size:.82rem}.lipsync-output-library .task-history-list{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;gap:10px;padding:0}.lipsync-output-library .task-history-card{min-width:0;border-radius:8px;background:#fff;padding:12px}.lipsync-output-library .task-history-video{display:block;width:100%;max-height:260px;aspect-ratio:16/9;object-fit:contain;border:1px solid #d8e4ea;background:#eef3f5}.lipsync-output-library .task-history-actions a{border-radius:7px}.lipsync-output-library .empty-state{grid-column:1/-1;min-height:120px;border:1px dashed #cadbe4;border-radius:8px;background:#f8fbfc}@keyframes lipsyncSignal{0%,100%{opacity:.72;transform:scaleY(.78)}50%{opacity:1;transform:scaleY(1)}}@media(max-width:1100px){.lipsync-studio-workbench{grid-template-columns:1fr}.lipsync-control-console{position:static}.lipsync-control-console .lipsync-model-options{grid-template-columns:repeat(2,minmax(0,1fr))}.lipsync-voice-console{grid-template-columns:minmax(220px,.65fr) minmax(300px,1fr);align-items:end}.lipsync-voice-console>header{grid-column:1/-1}.lipsync-privacy-field{border-top:0;padding-top:0}}@media(max-width:760px){.lipsync-source-studio{grid-template-columns:1fr}.lipsync-source-settings{border-top:1px solid #dbe5eb;border-left:0}.lipsync-source-monitor,.lipsync-source-monitor video{min-height:270px}.lipsync-control-console .lipsync-model-options,.lipsync-voice-console{grid-template-columns:1fr}.lipsync-script-studio>header{align-items:flex-start;flex-direction:column}.lipsync-script-metrics{justify-content:flex-start}.lipsync-privacy-field{border-top:1px solid #e1e9ee;padding-top:12px}}@media(max-width:680px){.tasks-view[data-task-mode="lipsync"]{padding:14px}.lipsync-studio-header,.lipsync-output-head{align-items:stretch;flex-direction:column}.lipsync-studio-library-link{align-self:flex-start}.lipsync-project-toolbar{align-items:stretch;flex-direction:column}.lipsync-project-status{align-self:flex-start}.lipsync-source-monitor,.lipsync-source-monitor video{min-height:240px}.lipsync-source-settings{padding:14px}.lipsync-script-editor textarea{min-height:240px;padding:15px;font-size:.87rem}.lipsync-script-studio>footer kbd,.lipsync-script-studio>footer>span:not(:first-child){display:none}.lipsync-selected-voice{grid-template-columns:1fr 76px}.lipsync-output-library .task-history-list{grid-template-columns:1fr}}

@keyframes lipsyncSignal{0%,100%{opacity:.72}50%{opacity:1}}

/* MuseTalk Fast cache: use an explicit source video owned by the character. */
.aidol-motion-dialog{grid-template-rows:auto auto auto auto minmax(0,1fr) auto}.aidol-musetalk-template-config{display:grid;gap:9px;border-bottom:1px solid #d5e6f1;background:radial-gradient(circle at 96% 5%,rgba(157,116,248,.2),transparent 34%),linear-gradient(118deg,#fbf9ff,#f4fbff);padding:12px 16px}.aidol-musetalk-template-config[hidden]{display:none!important}.aidol-musetalk-template-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.aidol-musetalk-template-head>div{display:grid;gap:3px;min-width:0}.aidol-musetalk-template-head span{color:#6c48b4;font-size:.53rem;font-weight:950;letter-spacing:.1em}.aidol-musetalk-template-head strong{color:#3e3166;font-size:.78rem;font-weight:950}.aidol-musetalk-template-head>small{flex:0 0 auto;border:1px solid #d5c8f2;border-radius:999px;background:#fff;color:#6848a4;padding:4px 7px;font-size:.53rem;font-weight:900}.aidol-musetalk-template-status{margin:0;color:#5f7088;font-size:.64rem;font-weight:760;line-height:1.42}.aidol-musetalk-template-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:9px}.aidol-musetalk-template-fields label{display:grid;gap:4px;min-width:0}.aidol-musetalk-template-fields label>span{color:#556f86;font-size:.56rem;font-weight:950}.aidol-musetalk-template-fields select,.aidol-musetalk-template-fields textarea{width:100%;border:1px solid #c8dced;border-radius:8px;background:#fff;color:#294f69;padding:7px 8px;font:inherit;font-size:.66rem;font-weight:760;outline:none}.aidol-musetalk-template-fields select:focus,.aidol-musetalk-template-fields textarea:focus{border-color:#7a5dcc;box-shadow:0 0 0 3px rgba(118,86,201,.12)}.aidol-musetalk-template-fields select:disabled,.aidol-musetalk-template-fields textarea:disabled{cursor:not-allowed;background:#f4f6f9;color:#8291a0}.aidol-musetalk-template-fields small{color:#7c8ca1;font-size:.55rem;font-weight:710;line-height:1.32}.aidol-musetalk-template-custom{grid-column:1/-1}.aidol-musetalk-template-custom[hidden]{display:none}.aidol-musetalk-template-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.aidol-musetalk-template-actions>div{min-width:0}.aidol-musetalk-template-actions small{display:block;max-width:620px;color:#6d7e93;font-size:.57rem;font-weight:720;line-height:1.36}.aidol-musetalk-template-render{flex:0 0 auto;min-height:34px;border:1px solid #7457c1;border-radius:9px;background:linear-gradient(115deg,#7350bf,#3e83d4);box-shadow:0 8px 16px rgba(90,70,170,.2);color:#fff;padding:0 11px;font-size:.61rem;font-weight:950}.aidol-musetalk-template-render:hover:not(:disabled){filter:brightness(1.05);transform:translateY(-1px)}.aidol-musetalk-template-render:disabled{cursor:not-allowed;box-shadow:none;opacity:.5}@media(max-width:700px){.aidol-motion-dialog{grid-template-rows:auto auto auto auto minmax(0,1fr) auto}.aidol-musetalk-template-config{padding:11px}.aidol-musetalk-template-fields{grid-template-columns:1fr}.aidol-musetalk-template-custom{grid-column:auto}.aidol-musetalk-template-actions{align-items:stretch;flex-direction:column}.aidol-musetalk-template-render{width:100%}}

/* File picker for uploading an explicit MuseTalk cache source. */
.aidol-musetalk-template-fields input[type="file"]{width:100%;max-width:100%;border:1px solid #c8dced;border-radius:8px;background:#fff;color:#294f69;padding:6px 7px;font:inherit;font-size:.61rem;font-weight:720;outline:none}.aidol-musetalk-template-fields input[type="file"]:focus{border-color:#7a5dcc;box-shadow:0 0 0 3px rgba(118,86,201,.12)}.aidol-musetalk-template-fields input[type="file"]:disabled{cursor:not-allowed;background:#f4f6f9;color:#8291a0}

/* MuseTalk Fast is character-owned. It intentionally replaces the usual raw
   video picker whenever this model is selected. */
#lipsyncSourceControls{display:grid;gap:10px}.musetalk-character-panel{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #cdbcf7;border-radius:12px;background:radial-gradient(circle at 100% 0,rgba(150,112,245,.18),transparent 42%),linear-gradient(135deg,#f8f5ff,#f3fbff);padding:11px}.musetalk-character-panel[hidden]{display:none!important}.musetalk-character-panel-copy{display:grid;min-width:0;gap:3px}.musetalk-character-panel-copy>span{color:#6942b6;font-size:.56rem;font-weight:950;letter-spacing:.1em}.musetalk-character-panel-copy strong{overflow:hidden;color:#3d2c67;font-size:.74rem;font-weight:950;text-overflow:ellipsis;white-space:nowrap}.musetalk-character-panel-copy small{color:#6f6c88;font-size:.61rem;font-weight:720;line-height:1.4}.musetalk-character-panel button{flex:0 0 auto;min-height:31px;border:1px solid #a996dd;border-radius:8px;background:#fff;color:#6145a3;padding:0 9px;font-size:.61rem;font-weight:950}.musetalk-character-panel button:hover{border-color:#7352c2;background:#f3efff}.aidol-motion-live-step.aidol-musetalk-fast-step{grid-column:1/-1}.aidol-musetalk-fast-step>span{background:linear-gradient(135deg,#ece5ff,#dff7ff);color:#6c43b9}.aidol-motion-lipsync-btn.is-active{border-color:#a595d8;background:#f4f0ff;color:#6248a0;opacity:.82}@media(max-width:560px){.musetalk-character-panel{align-items:stretch;flex-direction:column}.musetalk-character-panel button{width:100%}.musetalk-character-panel-copy strong{white-space:normal}}

/* Direct entry from AIDOL creation step 2: avoid hiding Fast setup inside the library. */
.motion-musetalk-template-open{min-height:38px!important;border-color:#a999d8!important;background:linear-gradient(120deg,#fbf9ff,#f1edff)!important;color:#6247a5!important;white-space:nowrap;font-size:.64rem!important;font-weight:950!important}.motion-musetalk-template-open:hover{border-color:#7355be!important;background:#eee9ff!important;color:#4f338f!important}@media(max-width:520px){.motion-results-actions{flex-wrap:wrap}.motion-results-actions .motion-musetalk-template-open{width:100%}}
/* Character speech defaults + visible asynchronous Live work states. */
.aidol-avatar-identity{grid-template-columns:minmax(132px,180px) minmax(220px,295px) minmax(158px,205px)}
.aidol-default-voice-speed{display:grid;gap:4px;color:#42687d;font-size:.61rem;font-weight:900}
.aidol-default-voice-speed-control{display:grid;gap:6px;border:1px solid #cfe1ec;border-radius:10px;background:rgba(255,255,255,.94);padding:7px 9px}
.aidol-default-voice-speed-control>span:first-child{color:#2c6381;font-size:.63rem;font-weight:950}
.aidol-default-voice-speed input[type="range"]{width:100%;height:7px;margin:0;appearance:none;border:0;border-radius:999px;background:linear-gradient(90deg,#168ae1 0%,#168ae1 var(--aidol-speed-progress,50%),#dbe8ef var(--aidol-speed-progress,50%),#dbe8ef 100%);outline:0}
.aidol-default-voice-speed input[type="range"]::-webkit-slider-thumb{appearance:none;width:16px;height:16px;border:2px solid #177fc4;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(22,112,177,.18);cursor:pointer}
.aidol-default-voice-speed input[type="range"]::-moz-range-thumb{width:13px;height:13px;border:2px solid #177fc4;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(22,112,177,.18);cursor:pointer}
.aidol-default-voice-speed-scale{display:flex;justify-content:space-between;gap:8px;color:#7a94a4;font-size:.48rem;font-style:normal;font-weight:800}.aidol-default-voice-speed-scale i{font-style:normal}.aidol-default-voice-speed>small{color:#7591a1;font-size:.51rem;font-weight:720;line-height:1.35}
.livestream-brain-voice{display:grid;gap:11px;border:1px solid #a9d9f4;border-radius:14px;background:linear-gradient(125deg,#eefaff,#fcfeff 62%,#f6f4ff);padding:14px}.livestream-brain-voice-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.livestream-brain-voice-head>div{display:grid;gap:5px}.livestream-brain-voice-head strong{color:#164867;font-size:.89rem}.livestream-brain-voice-head small{max-width:700px;color:#668298;font-size:.69rem;line-height:1.4;font-weight:760}.livestream-brain-voice-head>span{border:1px solid #bfdef0;border-radius:999px;background:#fff;color:#2474a4;padding:5px 8px;font-size:.58rem;font-weight:950;text-transform:uppercase;letter-spacing:.05em}.livestream-brain-voice-grid{display:grid;grid-template-columns:minmax(210px,1.15fr) minmax(195px,.85fr) auto;gap:10px;align-items:stretch}.livestream-brain-voice-choice{min-height:84px!important;border-color:#b8dced!important;background:#fff!important}.livestream-brain-voice-choice:disabled,.livestream-brain-voice-preview:disabled{cursor:not-allowed;opacity:.62}.livestream-brain-voice-speed{display:grid;gap:6px;align-content:center;border:1px solid #c8dfec;border-radius:9px;background:rgba(255,255,255,.88);padding:9px 11px;color:#41677f;font-size:.66rem;font-weight:900}.livestream-brain-voice-speed>span{display:flex;justify-content:space-between;gap:10px;align-items:center}.livestream-brain-voice-speed output{color:#0879c7;font-size:.9rem;font-weight:950}.livestream-brain-voice-speed input[type="range"]{width:100%;height:7px;min-height:0;margin:0;appearance:none;border:0;border-radius:999px;background:linear-gradient(90deg,#168be6 0%,#168be6 var(--livestream-speed-progress,50%),#d8e8f1 var(--livestream-speed-progress,50%),#d8e8f1 100%);outline:0}.livestream-brain-voice-speed input[type="range"]::-webkit-slider-thumb{appearance:none;width:16px;height:16px;border:2px solid #177fc4;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(22,112,177,.18);cursor:pointer}.livestream-brain-voice-speed input[type="range"]::-moz-range-thumb{width:13px;height:13px;border:2px solid #177fc4;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(22,112,177,.18);cursor:pointer}.livestream-brain-voice-speed small{color:#7790a1;font-size:.55rem;font-weight:800}.livestream-brain-voice-preview{align-self:center;min-width:112px;height:42px}.livestream-brain-voice audio{width:100%;height:34px}
.livestream-desk-slot{grid-template-columns:76px 240px minmax(0,1fr) 126px!important;border-bottom-color:#cde5f3!important;background:linear-gradient(103deg,#eefaff,#f9f7ff)!important;animation:livestreamDeskSlotAppear .2s ease-out}.livestream-desk-slot-index{display:flex;align-items:center;gap:9px;color:#1481c7;font-size:.8rem}.livestream-desk-slot-spinner{display:block;width:16px;height:16px;border:2px solid rgba(28,142,220,.2);border-top-color:#1688df;border-radius:50%;animation:previewSpin .72s linear infinite}.livestream-desk-slot-copy{display:grid;gap:2px;min-width:0}.livestream-desk-slot-copy strong{color:#176793;font-size:.74rem;font-weight:950}.livestream-desk-slot-copy small{color:#67889c;font-size:.61rem;font-weight:760;line-height:1.35}.livestream-desk-slot-tail{color:#4686af;font-size:1rem;font-weight:950;text-align:center}.livestream-desk-row-progress.is-submitting{color:#3a75a4}.livestream-desk-row-actions button:disabled,.livestream-desk-toolbar button:disabled,.livestream-desk-mini-action button:disabled{cursor:wait;opacity:.58}.livestream-desk-create .primary-btn.is-loading,.livestream-desk-toolbar .primary-btn.is-loading,.livestream-desk-mini-action .primary-btn.is-loading{display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:wait}.livestream-desk-create .primary-btn.is-loading .button-spinner,.livestream-desk-toolbar .primary-btn.is-loading .button-spinner,.livestream-desk-mini-action .primary-btn.is-loading .button-spinner{width:11px;height:11px;border-width:2px}@keyframes livestreamDeskSlotAppear{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1240px){.aidol-avatar-identity{grid-template-columns:minmax(145px,1fr) minmax(220px,1.3fr)}.aidol-default-voice-speed{grid-column:1/-1;max-width:330px}}
@media(max-width:860px){.livestream-brain-voice-grid{grid-template-columns:1fr}.livestream-brain-voice-preview{width:100%}.livestream-brain-voice-head>span{display:none}}
@media(max-width:900px){.livestream-desk-slot{grid-template-columns:70px 1fr 110px!important}.livestream-desk-slot-copy{grid-column:1/-1;grid-row:2}.livestream-desk-slot-tail{grid-column:3;grid-row:1}}
@media(max-width:620px){.aidol-default-voice-speed{max-width:none}.livestream-desk-slot{grid-template-columns:63px 1fr 92px!important}.livestream-desk-slot-copy strong{font-size:.67rem}.livestream-desk-slot-copy small{font-size:.56rem}}
.task-video-batch-field{grid-template-columns:minmax(0,1fr) 110px;align-items:center;gap:6px 12px!important;border:1px solid #dcebf2;border-radius:10px;background:#f8fcfe;padding:9px 10px}.task-video-batch-field>span{color:#315c73;font-size:.65rem;font-weight:950}.task-video-batch-field>input{grid-column:2;grid-row:1;height:34px;padding:5px 8px;text-align:center;font-size:.78rem;font-weight:950}.task-video-batch-field>.field-note{grid-column:1/-1}
.task-media-float-submit:disabled{cursor:wait;opacity:.55;filter:grayscale(.35);transform:none!important}
/* v175: visual cue for the seated desk + smartphone preset. */
.aidol-style-sample.sample-phone .aidol-phone-mark{position:absolute;z-index:2;right:8px;bottom:20px;display:block;width:10px;height:18px;border:2px solid rgba(244,255,249,.95);border-radius:3px;background:rgba(20,73,57,.48);box-shadow:0 2px 4px rgba(0,38,24,.28);transform:rotate(-8deg)}.aidol-style-sample.sample-phone .aidol-phone-mark::after{content:"";position:absolute;left:50%;bottom:2px;width:3px;height:3px;border-radius:50%;background:rgba(244,255,249,.95);transform:translateX(-50%)}

/* Tun Lipsynt Fast: a usable character picker inside the lipsync task. */
.musetalk-character-panel{display:grid;align-items:initial;justify-content:initial;gap:10px;border-color:#c7d8e1;border-radius:8px;background:#f7fafc;padding:12px}.tun-fast-character-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.tun-fast-character-head .musetalk-character-panel-copy{gap:4px}.tun-fast-character-head .musetalk-character-panel-copy>span{color:#195f87}.tun-fast-character-head .musetalk-character-panel-copy>strong{color:#183f56;font-size:.78rem;white-space:normal}.tun-fast-character-head .musetalk-character-panel-copy>small{max-width:430px;color:#667f8e}.musetalk-character-panel #museTalkManageCharacterBtn{min-height:34px;border-color:#8bb4c9;border-radius:7px;background:#fff;color:#175c80;padding:0 10px;white-space:nowrap}.musetalk-character-panel #museTalkManageCharacterBtn:hover{border-color:#377f9f;background:#edf7fb}.tun-fast-character-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:7px;max-height:286px;overflow-x:hidden;overflow-y:auto;padding:1px 3px 1px 1px;scrollbar-color:#abc4d1 transparent;scrollbar-width:thin}.musetalk-character-panel .tun-fast-character-card{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:9px;min-width:0;min-height:68px;border:1px solid #ccdbe3;border-radius:8px;background:#fff;color:#244b60;padding:8px;text-align:left;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.musetalk-character-panel .tun-fast-character-card:hover{border-color:#6fa4bc;background:#f8fcfe}.musetalk-character-panel .tun-fast-character-card:focus-visible{outline:3px solid rgba(30,132,183,.2);outline-offset:1px}.musetalk-character-panel .tun-fast-character-card.is-selected{border-color:#1580b5;background:#eef8fc;box-shadow:0 0 0 2px rgba(21,128,181,.12)}.tun-fast-character-avatar{position:relative;display:grid;width:48px;height:48px;overflow:hidden;place-items:center;border:1px solid #c9d9e1;border-radius:7px;background:#e9f2f6;color:#407087;font-size:.82rem;font-weight:950}.tun-fast-character-avatar>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.tun-fast-character-copy{display:grid;min-width:0;gap:3px}.tun-fast-character-copy>strong{overflow:hidden;color:#193f54;font-size:.68rem;font-weight:950;text-overflow:ellipsis;white-space:nowrap}.tun-fast-character-copy>small{display:-webkit-box;overflow:hidden;color:#708694;font-size:.54rem;font-weight:720;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:2}.tun-fast-character-badge{align-self:start;border:1px solid #ccd9df;border-radius:7px;background:#f4f7f8;color:#657984;padding:4px 6px;font-size:.49rem;font-weight:950;line-height:1.15;white-space:nowrap}.tun-fast-character-card.is-ready .tun-fast-character-badge{border-color:#8fc9a8;background:#eef9f2;color:#207044}.tun-fast-character-card.is-preparing .tun-fast-character-badge{border-color:#e3c978;background:#fff9e8;color:#85630c}.tun-fast-character-card.is-failed .tun-fast-character-badge{border-color:#e4a9a9;background:#fff2f2;color:#9b3c3c}.tun-fast-character-selection{display:grid;gap:3px;border-top:1px solid #d7e3e9;padding-top:9px}.tun-fast-character-selection>strong{color:#194b66;font-size:.69rem;font-weight:950}.tun-fast-character-selection>small{color:#67808f;font-size:.56rem;font-weight:730;line-height:1.4}.tun-fast-character-empty{display:grid;grid-column:1/-1;gap:3px;border:1px dashed #b8cbd5;border-radius:8px;background:#fff;padding:13px;text-align:center}.tun-fast-character-empty>strong{color:#345d70;font-size:.68rem}.tun-fast-character-empty>small{color:#718894;font-size:.56rem;line-height:1.4}#lipsyncForm button[type="submit"]:disabled{cursor:not-allowed;box-shadow:none;opacity:.55;transform:none}
@media(max-width:620px){.tun-fast-character-head{align-items:stretch;flex-direction:column}.musetalk-character-panel #museTalkManageCharacterBtn{width:100%}.tun-fast-character-list{grid-template-columns:1fr;max-height:320px}.musetalk-character-panel .tun-fast-character-card{width:100%}.tun-fast-character-copy>strong{white-space:normal}}

/* LipSync source validation: keep the 30-second rule visible beside the source picker. */
.lipsync-source-limit-note{display:block;margin:0;color:#647d8c;font-size:.57rem;font-weight:760;line-height:1.45}.lipsync-source-limit-note[data-state="checking"]{color:#8a681a}.lipsync-source-limit-note[data-state="ready"]{color:#26724a}.lipsync-source-limit-note[data-state="error"]{color:#a13f49;font-weight:850}

/* Flow Studio v199 -----------------------------------------------------------
   Image and video now share a calm, canvas-first creative workspace.  The
   forms and job API remain the same; this block only owns the interaction
   surface around them. */
.tasks-view[data-task-mode="media"]{padding:0 0 34px;scroll-margin-top:96px}.tasks-view[data-task-mode="media"]>.section-heading,.tasks-view[data-task-mode="media"]>.task-tabs{display:none}.tasks-view[data-task-mode="media"]>.workspace-notice{margin:10px 0 0}.tasks-view[data-task-mode="media"]>.task-panels{margin-top:0}#flow{min-width:0}.task-media-flow{--flow-bg:#171819;--flow-panel:#202223;--flow-panel-strong:#292b2d;--flow-line:#414447;--flow-copy:#eef0ef;--flow-muted:#a3aaab;--flow-teal:#71d6c5;--flow-coral:#ff947f;--flow-blue:#7ab8ff;position:relative;min-width:0;overflow:hidden;border:1px solid #36393b;border-radius:8px;background:var(--flow-bg);box-shadow:0 20px 52px rgba(15,24,26,.18);color:var(--flow-copy);padding-bottom:138px}.task-media-studio-bar{display:flex;min-height:68px;align-items:center;gap:16px;border-bottom:1px solid var(--flow-line);background:#1d1f20;padding:10px 14px}.task-media-studio-identity{display:flex;align-items:center;gap:10px;min-width:0}.task-media-studio-mark{display:flex;width:34px;height:34px;flex:0 0 34px;align-items:center;justify-content:center;gap:3px;border:1px solid #4c5052;border-radius:8px;background:#111213}.task-media-studio-mark i{display:block;width:4px;border-radius:99px;background:var(--flow-teal)}.task-media-studio-mark i:nth-child(1),.task-media-studio-mark i:nth-child(3){height:12px}.task-media-studio-mark i:nth-child(2){height:21px;background:var(--flow-coral)}.task-media-studio-identity>div{display:grid;gap:1px}.task-media-studio-identity span,.task-media-project-state>span,.task-media-drawer-head span,.task-media-canvas-head>div>span{color:var(--flow-muted);font-size:.52rem;font-weight:900;letter-spacing:.1em}.task-media-studio-identity h1{margin:0;color:#fff;font-size:1rem;font-weight:950;letter-spacing:0}.task-media-project-state{display:grid;min-width:0;gap:3px;margin-right:auto;padding-left:4px}.task-media-project-state>strong{overflow:hidden;color:#f4f7f6;font-size:.72rem;font-weight:850;text-overflow:ellipsis;white-space:nowrap}.task-media-project-state>span{display:inline-flex;align-items:center;gap:5px;letter-spacing:0}.task-media-project-state>span i{display:block;width:6px;height:6px;border-radius:50%;background:var(--flow-teal);box-shadow:0 0 0 3px rgba(113,214,197,.12)}.task-media-project-state>span b{font:inherit}.task-media-project-state>span[data-state="loading"] i{background:#f0c56b;animation:flowStatusPulse 1.15s ease-in-out infinite}.task-media-project-state>span[data-state="working"] i{background:var(--flow-coral);animation:flowStatusPulse 1.15s ease-in-out infinite}.task-media-studio-tools{display:flex;align-items:center;justify-content:flex-end;gap:5px}.task-media-studio-tools button{display:inline-flex;min-height:34px;align-items:center;justify-content:center;gap:6px;border:1px solid transparent;border-radius:7px;background:transparent;color:#c9cecf;padding:0 8px;font-size:.59rem;font-weight:900;transition:background .15s ease,border-color .15s ease,color .15s ease,transform .15s ease}.task-media-studio-tools button>i{font-size:.91rem;font-style:normal;font-weight:700}.task-media-studio-tools button>span{white-space:nowrap}.task-media-studio-tools button>b{display:grid;min-width:17px;height:17px;place-items:center;border-radius:5px;background:#34373a;color:#e7eded;font-size:.5rem}.task-media-studio-tools button:hover,.task-media-studio-tools button.is-active{border-color:#51565a;background:#292c2e;color:#fff}.task-media-studio-tools button.is-active>b{background:rgba(113,214,197,.18);color:var(--flow-teal)}.task-media-studio-tools button:active,.task-media-canvas-actions button:active,.task-media-floating-shell button:active{transform:translateY(1px)}.task-media-layout{position:relative;display:grid;grid-template-columns:228px minmax(0,1fr) 284px;gap:0;min-height:636px;background:#151617}.task-media-flow.is-activity-collapsed .task-media-layout{grid-template-columns:228px minmax(0,1fr)}.task-media-flow.is-library-collapsed .task-media-layout{grid-template-columns:minmax(0,1fr) 284px}.task-media-flow.is-library-collapsed.is-activity-collapsed .task-media-layout{grid-template-columns:minmax(0,1fr)}.task-media-library,.task-media-canvas,.task-media-job-rail{min-width:0;border:0;border-radius:0;box-shadow:none}.task-media-library{display:grid;align-content:start;border-right:1px solid var(--flow-line);background:var(--flow-panel);overflow:hidden}.task-media-job-rail{display:grid;align-content:start;border-left:1px solid var(--flow-line);background:var(--flow-panel);overflow:hidden}.task-media-flow.is-library-collapsed .task-media-library,.task-media-flow.is-activity-collapsed .task-media-job-rail{display:none}.task-media-drawer-head{display:flex;min-height:63px;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid var(--flow-line);padding:12px}.task-media-drawer-head>div{display:grid;gap:3px;min-width:0}.task-media-drawer-head strong{color:#f2f5f4;font-size:.74rem;font-weight:950}.task-media-drawer-head>button{display:grid;width:28px;height:28px;place-items:center;border:1px solid transparent;border-radius:6px;background:transparent;color:#abb2b3;font-size:1rem;line-height:1}.task-media-drawer-head>button:hover{border-color:#4c5154;background:#2c2e30;color:#fff}.task-media-library-section{display:grid;gap:9px;margin:0;border:0;padding:12px}.task-media-library-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0}.task-media-library-head span{color:#949d9e;font-size:.5rem;font-weight:900;letter-spacing:.09em}.task-media-library-head button{display:grid;width:26px;height:26px;place-items:center;border:1px solid #424649;border-radius:6px;background:#292b2d;color:#cdd3d2;font-size:.82rem;font-weight:900}.task-media-library-head button:hover{border-color:#72b8af;background:#263735;color:var(--flow-teal)}.task-media-source-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:458px;overflow:auto;padding:1px}.task-media-source-card{display:grid;grid-template-columns:1fr;gap:6px;min-width:0;border:1px solid #3b3f42;border-radius:7px;background:#282a2c;color:#dce2e0;padding:5px;text-align:left;transition:border-color .15s ease,background .15s ease,transform .15s ease}.task-media-source-card:hover,.task-media-source-card.is-selected{border-color:#80d7c8;background:#2a3433;transform:translateY(-1px)}.task-media-source-card:focus-visible{outline:3px solid rgba(113,214,197,.3);outline-offset:2px}.task-media-source-thumb{display:grid;width:100%;height:auto;aspect-ratio:1/1;overflow:hidden;place-items:center;border-radius:5px;background:#161819;color:#9ea8a7;font-size:.56rem;font-weight:900}.task-media-source-thumb img{width:100%;height:100%;object-fit:cover}.task-media-source-card>span:not(.task-media-source-thumb){display:grid;min-width:0;gap:2px}.task-media-source-card strong{overflow:hidden;color:#eef1f0;font-size:.55rem;font-weight:850;text-overflow:ellipsis;white-space:nowrap}.task-media-source-card small{overflow:hidden;color:#aab2b2;font-size:.47rem;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.task-media-source-empty{grid-column:1/-1;border:1px dashed #4a4f52;border-radius:7px;background:#242628;color:#aab1b1;padding:13px 8px;font-size:.56rem;font-weight:720;line-height:1.45;text-align:center}.task-media-library-drop-hint{display:grid;grid-template-columns:24px minmax(0,1fr);gap:2px 8px;margin:0 12px 12px;border-top:1px solid #393d40;padding-top:12px}.task-media-library-drop-hint>span{display:grid;grid-row:span 2;width:24px;height:24px;place-items:center;border:1px dashed #575d60;border-radius:6px;color:var(--flow-teal);font-size:.9rem}.task-media-library-drop-hint strong{color:#dbe0df;font-size:.56rem;font-weight:900}.task-media-library-drop-hint small{color:#929a9b;font-size:.51rem;font-weight:720;line-height:1.35}.task-media-canvas{position:relative;display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-height:636px;overflow:hidden;background:#151617}.task-media-canvas-head{display:flex;min-height:63px;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--flow-line);background:#1a1c1d;padding:11px 15px}.task-media-canvas-head>div:first-child{display:grid;gap:2px}.task-media-canvas-head h2{color:#fbfcfc;font-size:.9rem;font-weight:950;line-height:1.15}.task-media-canvas-actions{display:flex;align-items:center;gap:8px}.task-media-canvas-actions>span{color:#a3acad;font-size:.56rem;font-weight:800}.task-media-canvas-actions button{display:inline-flex;min-height:30px;align-items:center;gap:5px;border:1px solid #4b5052;border-radius:7px;background:#252728;color:#ecf0ef;padding:0 9px;font-size:.57rem;font-weight:900}.task-media-canvas-actions button:hover{border-color:#7bd2c3;background:#273431}.task-media-canvas-actions button i{font-size:.95rem;font-style:normal;line-height:1}.task-media-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));align-content:start;gap:12px;min-height:560px;background-color:#151617;background-image:linear-gradient(rgba(255,255,255,.022) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.022) 1px,transparent 1px);background-size:28px 28px;padding:16px}.task-media-results.is-empty{display:block;background-color:#151617;background-image:linear-gradient(rgba(255,255,255,.022) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.022) 1px,transparent 1px);background-size:28px 28px;opacity:1}.task-media-result-card{position:relative;display:grid;overflow:hidden;border:1px solid #414548;border-radius:8px;background:#232526;box-shadow:0 8px 20px rgba(0,0,0,.14);transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.task-media-result-card:hover{border-color:#8fd8cb;box-shadow:0 13px 28px rgba(0,0,0,.27);transform:translateY(-2px)}.task-media-result-card.is-dragging{opacity:.5;transform:scale(.98)}.task-media-result-card.is-active{border-color:#e5a395;background:#26282a}.task-media-result-card.is-failed{border-color:#d68892;background:#2a2426}.task-media-result-media{position:relative;display:grid;min-height:0;aspect-ratio:4/3;overflow:hidden;place-items:center;border:0;border-bottom:1px solid #3e4244;border-radius:0;background:#121314;color:#9ba5a4;cursor:pointer}.task-media-result-media>img,.task-media-result-media>video{width:100%;height:100%;min-height:0;object-fit:cover}.task-media-result-media video{background:#0c0d0e}.task-media-result-media .task-media-play{width:38px;height:38px;border:1px solid rgba(255,255,255,.6);border-radius:50%;background:rgba(16,18,19,.72);box-shadow:0 7px 16px rgba(0,0,0,.24);color:#fff;font-size:.9rem}.task-media-result-media .task-media-image-mark{width:38px;height:38px;border:1px solid #5b6163;border-radius:7px;background:#292c2e;color:#cdd6d4}.task-media-result-media .task-media-media-caption{right:7px;bottom:7px;border-radius:5px;background:rgba(9,11,12,.76);color:#eef2f1;padding:4px 6px;font-size:.45rem;letter-spacing:.05em}.task-media-shot-kind{position:absolute;top:7px;left:7px;z-index:3;border:1px solid rgba(255,255,255,.24);border-radius:5px;background:rgba(10,12,13,.72);color:#e9efed;padding:4px 6px;font-size:.45rem;font-weight:950;letter-spacing:.08em}.task-media-pending-media{background:linear-gradient(105deg,#1d2021,#282b2d,#1d2021);background-size:220% 100%}.task-media-preview-pending-shade{background:linear-gradient(145deg,rgba(15,17,18,.25),rgba(13,15,16,.73))}.task-media-pending-media i{border-color:rgba(113,214,197,.2);border-top-color:var(--flow-teal)}.task-media-card-copy{display:grid;gap:7px;background:#232526;padding:10px}.task-media-card-top{gap:8px}.task-media-card-top strong{color:#f1f4f3;font-size:.66rem;font-weight:900}.task-media-card-top small{color:#9ca6a6;font-size:.5rem}.task-media-status-pill{border:1px solid transparent;border-radius:5px;padding:4px 5px;font-size:.45rem;letter-spacing:.04em}.task-media-status-pill.done{border-color:rgba(113,214,197,.35);background:rgba(113,214,197,.12);color:#9ae5d8}.task-media-status-pill.queued,.task-media-status-pill.processing,.task-media-status-pill.running{border-color:rgba(255,180,119,.34);background:rgba(255,161,118,.13);color:#ffc4b6}.task-media-status-pill.failed,.task-media-status-pill.error,.task-media-status-pill.timeout{border-color:rgba(239,132,144,.35);background:rgba(239,132,144,.12);color:#ffb4bd}.task-media-card-prompt{display:-webkit-box;overflow:hidden;margin:0;color:#abb4b4;font-size:.54rem;font-weight:700;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2}.task-media-card-progress span{height:4px;background:#3a3d3f}.task-media-card-progress span::after{background:linear-gradient(90deg,var(--flow-coral),var(--flow-teal))}.task-media-card-progress small{color:#b8c3c2;font-size:.5rem}.task-media-card-error{border-radius:5px;background:#38272a;color:#ffbdc4;padding:6px;font-size:.52rem}.task-media-card-actions{gap:5px}.task-media-card-actions button,.task-media-card-actions a{min-height:27px;border:1px solid #4b5052;border-radius:6px;background:#2c2f31;color:#e2e8e6;padding:0 7px;font-size:.5rem}.task-media-card-actions button:hover,.task-media-card-actions a:hover{border-color:#80d5c6;background:#2b3835;color:#fff}.task-media-card-actions .task-media-use-video{border-color:rgba(113,214,197,.38);background:#273532;color:#9de4d8}.task-media-empty{display:grid;min-height:530px;place-items:center;align-content:center;justify-items:center;border:0;border-radius:0;background:transparent;color:#acb5b4;padding:34px;text-align:center}.task-media-empty-mark{display:flex;width:58px;height:58px;align-items:center;justify-content:center;gap:5px;margin-bottom:12px;border:1px solid #4b5052;border-radius:8px;background:#1f2122}.task-media-empty-mark i{display:block;width:5px;border-radius:99px;background:var(--flow-teal)}.task-media-empty-mark i:nth-child(1),.task-media-empty-mark i:nth-child(3){height:20px}.task-media-empty-mark i:nth-child(2){height:32px;background:var(--flow-coral)}.task-media-empty strong{color:#f1f4f3;font-size:.94rem;font-weight:950}.task-media-empty p{max-width:340px;margin:7px 0 15px;color:#9da7a7;font-size:.61rem;font-weight:720;line-height:1.45}.task-media-empty-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:7px}.task-media-empty-actions button{min-height:30px;border:1px solid #4b5052;border-radius:7px;background:#242728;color:#e2e7e6;padding:0 9px;font-size:.54rem;font-weight:900}.task-media-empty-actions button:hover{border-color:#85d7ca;background:#2a3735;color:#fff}.task-media-job-rail-head{background:transparent;padding:12px}.task-media-job-rail-head>div{display:grid;gap:3px}.task-media-job-rail-head strong{color:#eff2f1;font-size:.74rem}.task-media-job-list{display:grid;gap:7px;max-height:494px;overflow:auto;padding:11px}.task-media-job-item{gap:7px;border:1px solid #404548;border-radius:7px;background:#282a2c;padding:8px}.task-media-job-item.is-active{border-color:#c88d80;background:#302827}.task-media-job-item.is-failed{border-color:#a85e68;background:#312628}.task-media-job-item strong{color:#edf1f0;font-size:.59rem}.task-media-job-item small,.task-media-job-item-foot{color:#a6b0b0;font-size:.49rem}.task-media-job-item-foot button{color:#8ce0d1;font-size:.5rem}.task-media-job-empty{border:1px dashed #505558;border-radius:7px;background:#252729;color:#a4adad;padding:13px 9px;font-size:.55rem}.task-media-history-link{width:calc(100% - 22px);min-height:33px;margin:0 11px 12px;border:1px solid #4a4f52;border-radius:7px;background:#292c2e;color:#dfe6e4;padding:0 9px;font-size:.55rem}.task-media-history-link:hover{border-color:#82d5c7;background:#2b3936}.task-media-drawer-scrim{display:none}.task-media-floating-composer{position:fixed;z-index:9100;bottom:22px;left:50%;width:min(780px,calc(100vw - 40px));transform:translateX(-50%)}.task-media-floating-shell{display:grid;overflow:hidden;border:1px solid #575d60;border-radius:8px;background:#252728;box-shadow:0 19px 48px rgba(0,0,0,.4),0 0 0 1px rgba(0,0,0,.28);padding:0}.task-media-floating-shell:focus-within{border-color:#85d9cb;box-shadow:0 0 0 3px rgba(113,214,197,.12),0 19px 48px rgba(0,0,0,.4)}.task-media-prompt-input{padding:13px 14px 4px}.task-media-prompt-input textarea{min-height:44px;max-height:118px;color:#f3f6f5;font-size:.79rem;font-weight:680;line-height:1.48}.task-media-prompt-input textarea::placeholder{color:#98a3a4}.task-media-reference-chip{align-items:center;margin:9px 12px 1px;border:1px solid #4e6461;border-radius:7px;background:#283330;color:#e8f4f1;padding:5px 6px}.task-media-reference-chip>span:nth-child(2){display:grid;min-width:0;gap:1px}.task-media-reference-chip small{color:#9fc3bb;font-size:.43rem;font-weight:950;letter-spacing:.08em}.task-media-reference-chip strong{color:#ecf4f2;font-size:.56rem}.task-media-reference-visual{display:grid!important;width:27px;height:27px;flex:0 0 27px;place-items:center;overflow:hidden;border-radius:5px;background:#1a2020;color:#9adacf}.task-media-reference-visual img{width:100%;height:100%;object-fit:cover}.task-media-reference-visual i{font-style:normal;font-size:.74rem}.task-media-reference-chip button{width:23px;height:23px;border-radius:5px;color:#d7e9e5}.task-media-reference-chip button:hover{background:rgba(255,255,255,.12);color:#fff}.task-media-prompt-actions{gap:6px;min-height:46px;border-top:1px solid rgba(255,255,255,.05);padding:7px 8px}.task-media-reference-btn,.task-media-settings-btn{width:32px;height:32px;border:1px solid transparent;border-radius:7px;color:#d1d8d7}.task-media-reference-btn{font-size:1.18rem}.task-media-reference-btn:hover,.task-media-settings-btn:hover,.task-media-settings-btn.is-open{border-color:#596164;background:#303335;color:#fff;transform:none}.task-media-mode-switch{display:inline-flex;align-items:center;gap:2px;border:1px solid #454a4d;border-radius:7px;background:#1d1f20;padding:2px}.task-media-mode-btn{min-height:27px;border-radius:5px;color:#b9c1c1;padding:0 8px;font-size:.57rem}.task-media-mode-btn:hover{background:#303335;color:#fff}.task-media-mode-btn.active{border-color:transparent;background:#3a5751;box-shadow:none;color:#baf2e7}.task-media-composer-meta{overflow:hidden;margin-left:auto;color:#aeb7b6;font-size:.53rem;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.task-media-float-submit{width:33px;height:33px;border:1px solid #a2e7da;border-radius:7px;background:var(--flow-teal);box-shadow:none;color:#10201d;font-size:1.18rem;font-weight:900}.task-media-float-submit:hover{background:#95eadc;filter:none;transform:translateY(-1px)}.task-media-float-submit:disabled{background:#5e6766;color:#27302e}.task-media-video-model-quick{grid-template-columns:auto minmax(0,1fr);border-top:1px solid #42474a;background:#202223;padding:8px 10px}.task-media-video-model-quick>span{color:#a9b3b2}.task-media-video-model-quick select{border-color:#535a5d;border-radius:6px;background:#17191a;color:#eef2f1}.task-media-video-model-quick small{color:#aab5b4}.task-media-floating-shell.is-dragover{border-color:#80d8ca;box-shadow:0 0 0 3px rgba(113,214,197,.18),0 19px 48px rgba(0,0,0,.42)}.task-media-floating-shell.is-dragover .task-media-prompt-input{background:#293532}.task-media-canvas.is-dragover-storage::after{inset:12px;border:2px dashed #82d7c9;border-radius:8px;background:rgba(24,31,30,.94);box-shadow:inset 0 0 0 5px rgba(113,214,197,.08);color:#b7f3e7;font-size:.76rem}.task-media-pagination{min-height:48px;border-top:1px solid var(--flow-line);background:#1a1c1d;padding:8px 12px}.task-media-page-nav,.task-media-page-number{min-width:29px;height:29px;border-color:#474d50;border-radius:6px;background:#26292a;color:#d4dcda;font-size:.57rem}.task-media-page-nav:hover:not(:disabled),.task-media-page-number:hover:not(:disabled){border-color:#83d5c8;background:#2a3936;color:#fff}.task-media-page-number.active{border-color:#73d4c5;background:#36554e;box-shadow:none;color:#e3faf5}.task-media-page-ellipsis,.task-media-pagination-summary{color:#a5afae}.task-media-dialog[open]{z-index:9250;width:min(492px,calc(100vw - 24px));max-height:min(590px,calc(100vh - 126px));border:1px solid #505659;border-radius:8px;background:#202223;box-shadow:0 22px 60px rgba(0,0,0,.48);color:#edf1f0;transform:translateX(-50%)}.task-media-dialog::after{display:none}.task-media-dialog::backdrop{background:transparent}.task-media-dialog-shell{max-height:min(590px,calc(100vh - 126px));border:0;border-radius:7px;background:#202223}.task-media-dialog-head{border-bottom-color:#414649;padding:13px 14px 11px}.task-media-dialog-head.image,.task-media-dialog-head.video{background:#252829}.task-media-dialog-head span{color:#a7d9cf}.task-media-dialog-head h2{color:#f2f5f4;font-size:.92rem}.task-media-dialog-head p{color:#aeb7b6;font-size:.57rem}.task-media-dialog-head>button{width:29px;height:29px;border-color:#4b5154;border-radius:6px;background:#2d3032;color:#e2e8e6}.task-media-dialog-head>button:hover{border-color:#82d4c7;background:#353d3b;color:#fff}.task-media-form{gap:10px;padding:12px}.task-media-form label{color:#d5dddb;font-size:.61rem}.task-media-form input,.task-media-form select,.task-media-form textarea{border-color:#4d5457;border-radius:6px;background:#181a1b;color:#eff3f2;font-size:.65rem}.task-media-form input:focus,.task-media-form select:focus,.task-media-form textarea:focus{border-color:#7cd4c7;box-shadow:0 0 0 3px rgba(113,214,197,.12)}.task-media-form .field-note{color:#9ca8a8;font-size:.52rem}.task-media-form footer{border-top-color:#414649;margin:2px -12px -12px;padding:10px 12px}.task-media-form footer span{color:#9dddcf}.task-media-form footer strong{color:#bac4c2;font-size:.54rem}.task-media-form footer .primary-btn{border-radius:6px;background:#72d6c5;color:#10211e}.task-media-batch-field,.task-video-batch-field{grid-template-columns:minmax(0,1fr) 92px;align-items:center;gap:6px 10px;border-color:#464c4f;background:#252728}.task-media-batch-field>span,.task-video-batch-field>span{color:#e1e7e5}.task-media-batch-field>input,.task-video-batch-field>input{border-color:#596165;background:#191b1c;color:#f2f6f5}.task-media-batch-field>.field-note,.task-video-batch-field>.field-note{color:#9fa9a9}.task-media-prompt-summary{border-color:#474e51;border-radius:6px;background:#252728}.task-media-prompt-summary span{color:#a4ddd1}.task-media-prompt-summary strong{color:#dce4e1}.task-media-preview-dialog{border-radius:8px;box-shadow:0 26px 76px rgba(0,0,0,.58)}.task-media-preview-shell{border-color:#475054;border-radius:8px;background:#181a1b}.task-media-preview-shell header{border-bottom-color:#42484b;background:#232627}.task-media-preview-shell header span{color:#97e0d2}.task-media-preview-shell header h2{color:#f1f4f3}.task-media-preview-body{background:#0f1011}.task-media-preview-body img,.task-media-preview-body video{border-radius:4px}.task-media-preview-shell header>button{border-color:#4d5659;border-radius:6px;background:#2d3233;color:#f2f5f4}@keyframes flowStatusPulse{0%,100%{opacity:.55;transform:scale(.84)}50%{opacity:1;transform:scale(1)}}
@media(max-width:1120px){.task-media-layout,.task-media-flow.is-activity-collapsed .task-media-layout{grid-template-columns:206px minmax(0,1fr)}.task-media-flow:not(.is-activity-collapsed) .task-media-layout{grid-template-columns:190px minmax(0,1fr) 246px}.task-media-studio-tools button>span{display:none}.task-media-studio-tools button{width:34px;padding:0}.task-media-studio-tools button:last-child{width:auto;padding:0 7px}.task-media-results{grid-template-columns:repeat(auto-fill,minmax(195px,1fr))}.task-media-composer-meta{max-width:180px}}
@media(max-width:900px){.tasks-view[data-task-mode="media"]{padding-bottom:20px}.task-media-flow{border-radius:0;border-right:0;border-left:0;padding-bottom:126px}.task-media-studio-bar{min-height:60px;padding:9px 11px}.task-media-project-state{display:none}.task-media-studio-tools{margin-left:auto}.task-media-layout,.task-media-flow.is-activity-collapsed .task-media-layout,.task-media-flow.is-library-collapsed .task-media-layout,.task-media-flow.is-library-collapsed.is-activity-collapsed .task-media-layout{display:block;min-height:560px}.task-media-canvas{min-height:560px}.task-media-library,.task-media-job-rail,.task-media-flow.is-library-collapsed .task-media-library,.task-media-flow.is-activity-collapsed .task-media-job-rail{position:absolute;z-index:20;top:0;bottom:0;display:grid!important;width:min(285px,84vw);border:1px solid #474d50;box-shadow:0 17px 38px rgba(0,0,0,.4);transition:transform .2s ease}.task-media-library,.task-media-flow.is-library-collapsed .task-media-library{left:0;border-left:0;transform:translateX(-105%)}.task-media-job-rail,.task-media-flow.is-activity-collapsed .task-media-job-rail{right:0;border-right:0;transform:translateX(105%)}.task-media-flow:not(.is-library-collapsed) .task-media-library{transform:translateX(0)}.task-media-flow:not(.is-activity-collapsed) .task-media-job-rail{transform:translateX(0)}.task-media-drawer-scrim{position:absolute;z-index:15;inset:0;display:block;border:0;background:rgba(0,0,0,.46);opacity:0;pointer-events:none;transition:opacity .18s ease}.task-media-drawer-scrim.is-visible{opacity:1;pointer-events:auto}.task-media-source-list{max-height:none}.task-media-results{min-height:493px}.task-media-floating-composer{bottom:12px;width:calc(100vw - 24px)}.task-media-dialog[open]{max-height:min(590px,calc(100vh - 104px))}.task-media-dialog-shell{max-height:min(590px,calc(100vh - 104px))}}
@media(max-width:620px){.task-media-studio-identity h1{font-size:.88rem}.task-media-studio-identity span{font-size:.45rem}.task-media-studio-mark{width:31px;height:31px;flex-basis:31px}.task-media-studio-tools{gap:3px}.task-media-studio-tools button{width:31px;min-height:31px}.task-media-studio-tools button:last-child{width:31px;padding:0}.task-media-studio-tools button>b{position:absolute;top:-3px;right:-3px;min-width:14px;height:14px;font-size:.42rem}.task-media-studio-tools button:last-child{position:relative}.task-media-canvas-head{min-height:57px;padding:10px 11px}.task-media-canvas-actions>span{display:none}.task-media-canvas-actions button{min-height:29px;padding:0 7px}.task-media-canvas-actions button>span{display:none}.task-media-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-height:475px;padding:10px}.task-media-result-media{aspect-ratio:1/1}.task-media-card-copy{gap:5px;padding:7px}.task-media-card-top strong{font-size:.57rem}.task-media-card-prompt{display:none}.task-media-card-actions a{display:none}.task-media-empty{min-height:462px;padding:22px}.task-media-empty p{max-width:280px}.task-media-empty-actions{max-width:310px}.task-media-composer-meta{display:none}.task-media-prompt-actions{gap:4px}.task-media-mode-btn{padding:0 6px;font-size:.54rem}.task-media-reference-btn,.task-media-settings-btn{width:30px;height:30px}.task-media-float-submit{width:31px;height:31px}.task-media-video-model-quick{grid-template-columns:1fr;gap:5px}.task-media-video-model-quick select{width:100%}.task-media-video-model-quick small{white-space:normal}.task-media-reference-chip{margin:7px 9px 0}.task-media-prompt-input{padding:10px 11px 3px}.task-media-prompt-input textarea{min-height:38px;font-size:.7rem}.task-media-dialog[open]{width:calc(100vw - 18px)}.task-media-form footer>div:first-child{display:none}.task-media-pagination-summary{display:none}}

/* Flow refinements: model choices live behind the settings control, while
   the canvas stays visible when a shot is being configured. */
#taskVideoModelQuickField{display:none!important}
.task-media-dialog::backdrop{background:transparent!important;backdrop-filter:none!important}
.task-media-dialog[open]{margin:0}
#flow{scroll-margin-top:104px}
@media(max-width:760px){#flow{scroll-margin-top:88px}}

/* Flow reference drag/drop V203 ------------------------------------------- */
.task-media-library-use-hint{margin:0;color:#a8b1b0;font-size:.5rem;font-weight:730;line-height:1.45}
.task-media-source-card{position:relative;cursor:grab;user-select:none}
.task-media-source-card:active,.task-media-source-card.is-dragging{cursor:grabbing}
.task-media-source-card.is-dragging{opacity:.52;transform:scale(.98)}
.task-media-source-card.is-selected{border-color:#77dac8;box-shadow:0 0 0 2px rgba(113,214,197,.15)}
.task-media-source-card.is-selected small{color:#9eebde;font-weight:900}
.task-media-source-selected-mark{position:absolute;top:8px;right:8px;display:none;width:20px;height:20px;place-items:center;border:1px solid #a8efe3;border-radius:50%;background:#72d6c5;box-shadow:0 3px 10px rgba(0,0,0,.3);color:#10231f;font-size:.66rem;font-style:normal;font-weight:950}
.task-media-source-card.is-selected .task-media-source-selected-mark{display:grid}
.task-media-result-card[draggable="true"]{cursor:grab}
.task-media-result-card[draggable="true"]:active{cursor:grabbing}
.task-media-result-card.is-dragging{opacity:.52;transform:scale(.98)}
.task-media-floating-shell{position:relative}
.task-media-prompt-drop-target{position:absolute;z-index:20;inset:0;display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;justify-content:center;gap:10px;border:2px dashed #8ce2d3;border-radius:inherit;background:rgba(24,42,39,.97);color:#dffbf5;padding:12px 18px;opacity:0;pointer-events:none;transform:scale(.985);transition:opacity .12s ease,transform .12s ease}
.task-media-prompt-drop-target span{display:grid;width:36px;height:36px;place-items:center;border-radius:7px;background:#72d6c5;color:#10231f;font-size:1.15rem;font-weight:950}
.task-media-prompt-drop-target strong{font-size:.72rem;font-weight:950;letter-spacing:0}
.task-media-floating-shell.is-dragover .task-media-prompt-drop-target{opacity:1;transform:scale(1)}
.task-media-floating-shell.is-dragover>*:not(.task-media-prompt-drop-target){opacity:.16}
.task-media-reference-chip{display:grid!important;gap:6px;min-height:48px;margin:7px 9px 0;border:1px solid #68bcae;border-radius:7px;background:#263b37;padding:7px 8px;box-shadow:inset 3px 0 0 #72d6c5}
.task-media-reference-chip[hidden]{display:none!important}
.task-media-reference-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 2px}.task-media-reference-head small{color:#9ee7d9;font-size:.43rem;font-weight:950;letter-spacing:.08em}.task-media-reference-head strong{color:#cfeee8;font-size:.48rem;font-weight:900}
.task-media-reference-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.task-media-reference-item{display:grid;grid-template-columns:38px minmax(0,1fr) 24px;align-items:center;gap:6px;min-width:0;border:1px solid #4d6964;border-radius:6px;background:#1e2e2b;padding:4px}.task-media-reference-item.is-uploading{border-color:#6eac9f;opacity:.78}.task-media-reference-item>span:nth-child(2){display:grid;min-width:0;gap:1px}.task-media-reference-item small{color:#83cbbd;font-size:.4rem;font-weight:950;letter-spacing:.05em}.task-media-reference-item strong{overflow:hidden;color:#ecf4f2;font-size:.51rem;font-weight:850;text-overflow:ellipsis;white-space:nowrap}.task-media-reference-item button{display:grid;width:24px;height:24px;place-items:center;border:0;border-radius:5px;background:transparent;color:#b8cbc7;font-size:.92rem}.task-media-reference-item button:hover{background:#3f5550;color:#fff}
.task-media-reference-visual{display:grid!important;width:38px;height:38px;place-items:center;overflow:hidden;border:1px solid #55726c;border-radius:6px;background:#1a2020;color:#9adacf}
.task-media-reference-visual img{width:100%;height:100%;object-fit:cover}
.task-media-reference-visual i{font-style:normal;font-size:.74rem}
@media(max-width:620px){.task-media-library-use-hint{font-size:.52rem}.task-media-prompt-drop-target{grid-template-columns:31px minmax(0,1fr);padding:9px 12px}.task-media-prompt-drop-target span{width:31px;height:31px}.task-media-prompt-drop-target strong{font-size:.62rem}.task-media-reference-chip{min-height:45px}.task-media-reference-list{grid-template-columns:repeat(3,minmax(74px,1fr));overflow-x:auto}.task-media-reference-item{grid-template-columns:34px minmax(0,1fr) 22px}.task-media-reference-visual{width:34px;height:34px}.task-media-reference-item strong{font-size:.47rem}}
@media(max-width:900px){.task-media-flow .task-media-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;min-height:0}.task-media-flow .task-media-library{position:static!important;display:grid!important;width:auto!important;max-height:238px;border-right:0;border-bottom:1px solid #474d50;box-shadow:none;transform:none!important}.task-media-flow .task-media-library-section{grid-template-columns:1fr;margin:0;padding:10px}.task-media-flow .task-media-source-list{grid-template-columns:repeat(3,minmax(0,1fr));max-height:142px}.task-media-flow .task-media-library-note{display:none}.task-media-flow .task-media-job-rail{display:none!important}.task-media-flow .task-media-canvas{min-height:560px}.task-media-flow .task-media-results{min-height:493px}}@media(max-width:520px){.task-media-flow .task-media-source-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.task-media-flow .task-media-source-card{padding:4px}.task-media-flow .task-media-source-card strong{font-size:.51rem}.task-media-flow .task-media-source-card small{font-size:.44rem}}

/* Shopee AI Live guide V204 --------------------------------------------- */
.guide-shopee-section{display:grid;min-width:0;gap:14px;border:1px solid #f0dfd7;border-radius:15px;background:linear-gradient(145deg,#fff,#fffdfb);padding:15px}.guide-shopee-section>.guide-panel-heading{margin:0;padding-bottom:13px}.guide-shopee-section .guide-panel-heading h3{color:#703d2a;font-size:1rem;font-weight:950;line-height:1.28}.guide-shopee-section .guide-panel-heading p{color:#826d63;font-size:.63rem}.guide-shopee-policy-state{display:inline-flex;flex:0 0 auto;align-items:center;gap:8px;max-width:260px;border:1px solid #ffcdb6;border-radius:10px;background:#fff4ee;color:#985333;padding:8px 10px;font-size:.58rem;font-weight:900;line-height:1.35}.guide-shopee-policy-state b{display:grid;width:25px;height:25px;flex:0 0 25px;place-items:center;border-radius:8px;background:#ef6b35;color:#fff;font-size:.52rem}.guide-shopee-source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.guide-shopee-source-card{display:flex;min-width:0;flex-direction:column;border:1px solid #f1d9ce;border-radius:13px;background:#fff;padding:14px;box-shadow:0 8px 20px rgba(167,75,35,.055)}.guide-shopee-source-head{display:flex;align-items:center;justify-content:space-between;gap:9px}.guide-shopee-source-head>span{display:grid;min-width:50px;height:28px;place-items:center;border-radius:8px;background:#fff0e8;color:#da602e;font-size:.61rem;font-weight:950}.guide-shopee-source-head small{color:#a66f58;font-size:.5rem;font-weight:950;letter-spacing:0;text-align:right}.guide-shopee-source-card h4{margin:10px 0 5px;color:#76442f;font-size:.76rem;font-weight:950;line-height:1.4}.guide-shopee-source-card>p{color:#8a756b;font-size:.59rem;font-weight:700;line-height:1.48}.guide-shopee-source-card ul,.guide-shopee-compare-card ul{display:grid;gap:6px;margin:10px 0 13px;padding:0;list-style:none}.guide-shopee-source-card li,.guide-shopee-compare-card li{position:relative;padding-left:15px;color:#7e6d65;font-size:.56rem;font-weight:720;line-height:1.45}.guide-shopee-source-card li::before,.guide-shopee-compare-card li::before{content:"✓";position:absolute;top:0;left:0;color:#e36c38;font-weight:950}.guide-shopee-source-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:auto}.guide-shopee-source-actions .guide-inline-btn,.guide-shopee-source-actions .guide-source-link{flex:1 1 150px}.guide-shopee-official-viewer{overflow:hidden;border:1px solid #e8cbbb;border-radius:13px;background:#fff;scroll-margin-top:18px;box-shadow:0 12px 28px rgba(125,63,34,.1)}.guide-shopee-official-viewer[hidden]{display:none!important}.guide-shopee-viewer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #f1ded4;background:#fff8f4;padding:10px 12px}.guide-shopee-viewer-toolbar>div{display:flex;align-items:center;gap:8px;min-width:0}.guide-shopee-viewer-toolbar>div:first-child{display:grid;gap:2px}.guide-shopee-viewer-toolbar span{color:#bb6a47;font-size:.47rem;font-weight:950;letter-spacing:0}.guide-shopee-viewer-toolbar strong{overflow:hidden;color:#6f3f2d;font-size:.66rem;font-weight:950;text-overflow:ellipsis;white-space:nowrap}.guide-shopee-viewer-close{display:grid;width:33px;height:33px;flex:0 0 33px;place-items:center;border:1px solid #e8c5b4;border-radius:9px;background:#fff;color:#b65630;font-size:1.05rem;font-weight:800;line-height:1}.guide-shopee-viewer-close:hover,.guide-shopee-viewer-close:focus-visible{outline:0;border-color:#dd7548;background:#fff0e9;color:#9d3f1c}.guide-shopee-official-viewer iframe{display:block;width:100%;height:clamp(520px,68vh,780px);border:0;background:#fff}.guide-shopee-official-viewer>p{border-top:1px solid #f1e3dc;background:#fffaf8;color:#8b7368;padding:8px 12px;font-size:.54rem;font-weight:720;line-height:1.4}.guide-shopee-lanes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.guide-shopee-lane{display:grid;min-width:0;gap:8px;border:1px solid #d9e8ef;border-radius:12px;background:#fff;padding:12px}.guide-shopee-lane-output{border-color:#cce6ef;background:linear-gradient(145deg,#f8fdff,#fff)}.guide-shopee-lane-events{border-color:#d6e6d9;background:linear-gradient(145deg,#f9fff9,#fff)}.guide-shopee-lane-label{color:#48829b;font-size:.51rem;font-weight:950;letter-spacing:0}.guide-shopee-lane-events .guide-shopee-lane-label{color:#4b8b67}.guide-shopee-lane>div{display:flex;align-items:stretch;gap:5px;min-width:0}.guide-shopee-lane b{display:grid;flex:1 1 0;min-width:0;place-items:center;border:1px solid #d7e9f1;border-radius:8px;background:#fff;color:#3b6478;padding:8px 5px;font-size:.52rem;font-weight:900;line-height:1.35;text-align:center}.guide-shopee-lane-events b{border-color:#d8eadc;color:#46745a}.guide-shopee-lane i{display:grid;place-items:center;color:#47a1c2;font-size:.72rem;font-style:normal}.guide-shopee-lane-events i{color:#5aa977}.guide-shopee-lane p{color:#768d97;font-size:.55rem;font-weight:710;line-height:1.45}.guide-shopee-phase{position:relative}.guide-shopee-phase-number{display:grid;min-width:48px;height:31px;place-items:center;border:1px solid #ffd5c1;border-radius:9px;background:#fff3ed;color:#df6532;padding:0 8px;font-size:.58rem;font-weight:950}.guide-shopee-connect-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.guide-shopee-connect-card{display:grid;min-width:0;gap:9px;border:1px solid #f0ded5;border-radius:12px;background:#fff;padding:13px}.guide-shopee-connect-card.is-recommended{border-color:#bfe6da;background:linear-gradient(145deg,#f7fffc,#fff);box-shadow:inset 3px 0 0 #35b689}.guide-shopee-connect-card-head{display:flex;align-items:center;gap:9px}.guide-shopee-connect-card-head>span{display:grid;width:34px;height:34px;flex:0 0 34px;place-items:center;border-radius:9px;background:#fff0e8;color:#dd6633;font-size:.54rem;font-weight:950}.guide-shopee-connect-card.is-recommended .guide-shopee-connect-card-head>span{background:#e4f9f1;color:#15956b}.guide-shopee-connect-card-head>div{display:grid;gap:2px}.guide-shopee-connect-card-head strong{color:#744633;font-size:.7rem;font-weight:950}.guide-shopee-connect-card-head small{color:#a27d6d;font-size:.51rem;font-weight:800}.guide-shopee-connect-card ol{display:grid;gap:6px;margin:0;padding-left:18px;color:#7d6c64}.guide-shopee-connect-card li,.guide-shopee-connect-card>p{font-size:.56rem;font-weight:710;line-height:1.46}.guide-shopee-connect-card code,.guide-shopee-compare-card code,.guide-shopee-obs-steps code{overflow-wrap:anywhere;border-radius:4px;background:#f4ece8;color:#8d4b31;padding:1px 3px;font-size:.52rem}.guide-shopee-connect-card>p{border-top:1px solid #f1e6e0;padding-top:8px;color:#8e7468}.guide-shopee-obs-steps,.guide-shopee-run-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.guide-shopee-live-checks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.guide-shopee-live-checks article{display:grid;grid-template-columns:26px minmax(0,1fr);gap:7px;border:1px solid #eee0d9;border-radius:10px;background:#fff;padding:10px}.guide-shopee-live-checks span{display:grid;width:25px;height:25px;place-items:center;border-radius:8px;background:#fff0e8;color:#d9602e;font-size:.5rem;font-weight:950}.guide-shopee-live-checks strong{color:#734936;font-size:.61rem;font-weight:950}.guide-shopee-live-checks p{grid-column:1/-1;color:#846f65;font-size:.54rem;font-weight:700;line-height:1.43}.guide-shopee-compare-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.guide-shopee-compare-card{min-width:0;border:1px solid #eaded9;border-radius:12px;background:#fff;padding:13px}.guide-shopee-compare-card.is-shopee{border-top:3px solid #ee6b36}.guide-shopee-compare-card.is-tiktok{border-top:3px solid #268cad}.guide-shopee-compare-card h4{margin:8px 0 0;color:#684334;font-size:.7rem;font-weight:950;line-height:1.4}.guide-shopee-compare-card.is-tiktok h4{color:#2c5b6d}.guide-shopee-platform-compare{background:linear-gradient(145deg,#fff,#fbfdff)}
@media(max-width:1120px){.guide-shopee-lanes{grid-template-columns:1fr}.guide-shopee-lane>div{display:grid;grid-template-columns:1fr 18px 1fr 18px 1fr 18px 1fr}.guide-shopee-live-checks{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.guide-shopee-source-grid,.guide-shopee-connect-grid,.guide-shopee-compare-grid{grid-template-columns:1fr}.guide-shopee-policy-state{max-width:100%}.guide-shopee-official-viewer iframe{height:66vh;min-height:480px}.guide-shopee-lane>div{grid-template-columns:1fr}.guide-shopee-lane i{height:15px;transform:rotate(90deg)}.guide-shopee-obs-steps,.guide-shopee-run-steps{grid-template-columns:1fr}.guide-shopee-viewer-toolbar{align-items:flex-start;flex-direction:column}.guide-shopee-viewer-toolbar>div{width:100%}.guide-shopee-viewer-toolbar>div:last-child{justify-content:space-between}}
@media(max-width:620px){.guide-shopee-section{gap:11px;border-radius:13px;padding:11px}.guide-shopee-source-card,.guide-shopee-connect-card,.guide-shopee-compare-card{padding:11px}.guide-shopee-live-checks{grid-template-columns:1fr}.guide-shopee-source-actions{align-items:stretch;flex-direction:column}.guide-shopee-source-actions .guide-inline-btn,.guide-shopee-source-actions .guide-source-link{width:100%;flex-basis:auto}.guide-shopee-official-viewer iframe{height:62vh;min-height:420px}.guide-shopee-viewer-toolbar .guide-inline-btn{flex:1}.guide-shopee-section .guide-panel-heading h3{font-size:.86rem}.guide-shopee-policy-state{width:100%}}
@media(prefers-reduced-motion:reduce){.guide-shopee-source-actions .guide-inline-btn,.guide-shopee-viewer-close{transition:none}}

/* Guide deep links + Shopee three-step playbook V205 -------------------- */
.guide-doc-nav-item{text-decoration:none}.guide-shopee-page{gap:15px}.guide-shopee-page [id^="guideShopee"]{scroll-margin-top:112px}.guide-shopee-brand-lockup,.guide-shopee-official-brand{display:flex;flex:0 0 auto;align-items:center;gap:9px;border:1px solid #ffcbb7;border-radius:8px;background:#fff;padding:8px 10px}.guide-shopee-brand-lockup img,.guide-shopee-official-brand img{display:block;width:30px;height:30px;flex:0 0 30px;object-fit:contain}.guide-shopee-brand-lockup>span,.guide-shopee-official-brand>span{display:grid;gap:1px}.guide-shopee-brand-lockup b,.guide-shopee-official-brand b{color:#a53d22;font-size:.68rem;font-weight:950;line-height:1.25}.guide-shopee-brand-lockup small,.guide-shopee-official-brand small{color:#a46e5d;font-size:.5rem;font-weight:800;line-height:1.3}.guide-shopee-journey-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.guide-shopee-journey-nav a{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:9px;min-width:0;border:1px solid #f1d5c9;border-radius:8px;background:#fff;color:inherit;padding:10px;text-decoration:none;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.guide-shopee-journey-nav a:nth-child(1),.guide-shopee-journey-nav a:nth-child(2){border-color:#ffbda4;background:linear-gradient(145deg,#fff7f3,#fff)}.guide-shopee-journey-nav a:hover,.guide-shopee-journey-nav a:focus-visible{outline:0;border-color:#ef7147;box-shadow:0 8px 17px rgba(185,76,38,.1);transform:translateY(-1px)}.guide-shopee-journey-nav a>span{display:grid;width:32px;height:32px;place-items:center;border-radius:7px;background:#f15b32;color:#fff;font-size:.57rem;font-weight:950}.guide-shopee-journey-nav a:nth-child(3)>span{background:#227fb1}.guide-shopee-journey-nav a>div{display:grid;min-width:0;gap:2px}.guide-shopee-journey-nav strong{color:#713e2e;font-size:.64rem;font-weight:950;line-height:1.35}.guide-shopee-journey-nav small{color:#9a7364;font-size:.51rem;font-weight:760;line-height:1.35}.guide-shopee-page .guide-shopee-policy-banner{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center}.guide-shopee-policy-banner>img{display:block;width:36px;height:36px;object-fit:contain}.guide-shopee-step-heading{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:start;gap:11px;border-bottom:1px solid #f1ddd4;padding-bottom:13px}.guide-shopee-step-heading>div{display:grid;min-width:0;gap:5px}.guide-shopee-step-heading h3{color:#713e2d;font-size:1rem;font-weight:950;line-height:1.27}.guide-shopee-step-heading p{max-width:780px;color:#846e64;font-size:.62rem;font-weight:710;line-height:1.5}.guide-shopee-step-index{display:grid;width:40px;height:40px;place-items:center;border-radius:8px;background:#ef5b32;color:#fff;font-size:.68rem;font-weight:950;box-shadow:0 7px 14px rgba(212,79,37,.16)}.guide-shopee-aidol-step .guide-shopee-step-index{background:#277fae;box-shadow:0 7px 14px rgba(32,113,158,.16)}.guide-shopee-official-step{border-color:#ffc5ae;background:linear-gradient(145deg,#fff9f6,#fff);box-shadow:inset 4px 0 0 #ee5d34,0 9px 22px rgba(159,68,35,.055)}.guide-shopee-official-body{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(245px,.75fr);align-items:stretch;gap:11px}.guide-shopee-official-checklist,.guide-shopee-ai-rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}.guide-shopee-official-checklist li,.guide-shopee-ai-rules li{display:grid;grid-template-columns:29px minmax(0,1fr);align-items:start;gap:8px;border:1px solid #f0e0d8;border-radius:8px;background:#fff;padding:10px}.guide-shopee-official-checklist li>span,.guide-shopee-ai-rules li>span{display:grid;width:27px;height:27px;place-items:center;border-radius:7px;background:#fff0e9;color:#db542d;font-size:.53rem;font-weight:950}.guide-shopee-official-checklist strong,.guide-shopee-ai-rules strong{display:block;color:#724635;font-size:.62rem;font-weight:950;line-height:1.35}.guide-shopee-official-checklist p,.guide-shopee-ai-rules p{margin-top:3px;color:#88756c;font-size:.55rem;font-weight:700;line-height:1.43}.guide-shopee-official-note{display:flex;min-width:0;flex-direction:column;border:1px solid #ffcdb8;border-radius:8px;background:#fff7f3;padding:12px}.guide-shopee-official-note>span{color:#cf5b34;font-size:.5rem;font-weight:950}.guide-shopee-official-note>strong{margin:7px 0 4px;color:#803e27;font-size:.68rem;font-weight:950;line-height:1.4}.guide-shopee-official-note>p{color:#8e6e61;font-size:.56rem;font-weight:710;line-height:1.47}.guide-shopee-official-note .guide-shopee-source-actions{display:grid;grid-template-columns:1fr;align-items:stretch;margin-top:auto;padding-top:11px}.guide-shopee-official-note .guide-inline-btn,.guide-shopee-official-note .guide-source-link{width:100%;min-height:34px;white-space:normal}.guide-shopee-aidol-step{border-color:#c9e3ef;background:linear-gradient(145deg,#fbfeff,#fff)}.guide-shopee-connection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.guide-shopee-connection-card{display:grid;min-width:0;gap:10px;border:1px solid #d6e7ef;border-radius:8px;background:#fff;padding:12px}.guide-shopee-connection-card.is-output{border-top:3px solid #228ec0}.guide-shopee-connection-card.is-events{border-top:3px solid #31a376}.guide-shopee-connection-head{display:flex;align-items:center;gap:9px}.guide-shopee-connection-head>span{display:grid;width:34px;height:34px;flex:0 0 34px;place-items:center;border-radius:7px;background:#e7f7ff;color:#137eae;font-size:.57rem;font-weight:950}.guide-shopee-connection-card.is-events .guide-shopee-connection-head>span{background:#e9f9f1;color:#178c65}.guide-shopee-connection-head>div{display:grid;gap:2px}.guide-shopee-connection-head strong{color:#2f6077;font-size:.69rem;font-weight:950;line-height:1.35}.guide-shopee-connection-card.is-events .guide-shopee-connection-head strong{color:#356b55}.guide-shopee-connection-head small{color:#75909b;font-size:.52rem;font-weight:760}.guide-shopee-connection-flow{display:flex;align-items:stretch;gap:5px}.guide-shopee-connection-flow b{display:grid;flex:1 1 0;min-width:0;place-items:center;border:1px solid #d5e8f1;border-radius:7px;background:#f7fcff;color:#477287;padding:8px 5px;font-size:.5rem;font-weight:900;line-height:1.35;text-align:center}.guide-shopee-connection-card.is-events .guide-shopee-connection-flow b{border-color:#d7eadf;background:#f8fffb;color:#4b765f}.guide-shopee-connection-flow i{display:grid;place-items:center;color:#2b92ba;font-size:.7rem;font-style:normal}.guide-shopee-connection-card.is-events .guide-shopee-connection-flow i{color:#37a476}.guide-shopee-connection-card ol{display:grid;gap:6px;margin:0;padding-left:18px;color:#718794}.guide-shopee-connection-card li{padding-left:2px;font-size:.56rem;font-weight:710;line-height:1.47}.guide-shopee-connection-card code{overflow-wrap:anywhere;border-radius:4px;background:#edf5f8;color:#315f75;padding:1px 3px;font-size:.51rem}.guide-shopee-connect-images figure{border-radius:8px}.guide-shopee-launch-sequence{display:grid;gap:9px;border:1px solid #d3e7ef;border-radius:8px;background:#f7fcff;padding:11px}.guide-shopee-launch-sequence ol{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin:0;padding:0;list-style:none}.guide-shopee-launch-sequence li{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;gap:6px;min-width:0;border:1px solid #d9e8ef;border-radius:7px;background:#fff;color:#547484;padding:7px;font-size:.51rem;font-weight:850;line-height:1.35}.guide-shopee-launch-sequence li b{display:grid;width:21px;height:21px;place-items:center;border-radius:6px;background:#e8f7fc;color:#197ca4;font-size:.48rem}.guide-action-strip code{overflow-wrap:anywhere;border-radius:4px;background:#e9f6fb;color:#2b647c;padding:2px 4px;font-size:.57rem}
@media(max-width:1120px){.guide-shopee-official-body{grid-template-columns:1fr}.guide-shopee-official-note .guide-shopee-source-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.guide-shopee-launch-sequence ol{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.guide-shopee-journey-nav,.guide-shopee-connection-grid{grid-template-columns:1fr}.guide-shopee-step-heading{grid-template-columns:40px minmax(0,1fr)}.guide-shopee-step-heading>.guide-shopee-official-brand,.guide-shopee-step-heading>.guide-panel-status{grid-column:1/-1;width:100%}.guide-shopee-brand-lockup{width:100%}.guide-shopee-page .guide-shopee-policy-banner{grid-template-columns:36px minmax(0,1fr)}.guide-shopee-connection-flow{display:grid;grid-template-columns:1fr}.guide-shopee-connection-flow i{height:14px;transform:rotate(90deg)}}
@media(max-width:620px){.guide-shopee-page [id^="guideShopee"]{scroll-margin-top:92px}.guide-shopee-official-checklist,.guide-shopee-ai-rules{grid-template-columns:1fr}.guide-shopee-official-note .guide-shopee-source-actions{grid-template-columns:1fr}.guide-shopee-launch-sequence ol{grid-template-columns:1fr}.guide-shopee-step-heading{grid-template-columns:35px minmax(0,1fr);gap:8px}.guide-shopee-step-index{width:34px;height:34px}.guide-shopee-step-heading h3{font-size:.84rem}.guide-shopee-brand-lockup img,.guide-shopee-official-brand img{width:27px;height:27px;flex-basis:27px}.guide-shopee-page .guide-shopee-policy-banner{align-items:start}.guide-shopee-policy-banner>img{width:32px;height:32px}}
@media(prefers-reduced-motion:reduce){.guide-shopee-journey-nav a{transition:none}}

/* Project overview + internal Tun Coin policy V207 --------------------- */
.guide-project-overview{gap:18px}.guide-project-overview a{text-decoration:none}#guideTunCoin{scroll-margin-top:112px}.guide-overview-definition{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(250px,.75fr);align-items:stretch;gap:12px}.guide-overview-definition-copy{display:grid;align-content:center;gap:7px;border:1px solid #c9e5f1;border-radius:8px;background:linear-gradient(135deg,#f4fcff,#fbfbff);padding:16px}.guide-overview-definition-copy h3{color:#174763;font-size:1rem;font-weight:950;line-height:1.28}.guide-overview-definition-copy p{color:#688697;font-size:.65rem;font-weight:710;line-height:1.55}.guide-overview-scope{display:grid;gap:7px;border:1px solid #d9e5ed;border-radius:8px;background:#fff;padding:10px}.guide-overview-scope>div{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:9px;border-bottom:1px solid #e5eef3;padding:7px}.guide-overview-scope>div:last-child{border-bottom:0}.guide-overview-scope b{display:grid;width:32px;height:32px;place-items:center;border-radius:7px;background:#e9f8ff;color:#167fac;font-size:.55rem;font-weight:950}.guide-overview-scope span{display:grid;gap:2px}.guide-overview-scope strong{color:#345e73;font-size:.64rem;font-weight:950}.guide-overview-scope small{color:#78909d;font-size:.54rem;font-weight:720;line-height:1.35}.guide-overview-section{display:grid;gap:10px}.guide-overview-section-heading{display:grid;gap:4px}.guide-overview-section-heading h3,.guide-overview-section-heading h4{color:#214c66;font-size:.82rem;font-weight:950;line-height:1.35}.guide-overview-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.guide-overview-product{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:start;gap:10px;min-width:0;border:1px solid #d5e6ee;border-top:3px solid #238fbc;border-radius:8px;background:#fff;padding:12px}.guide-overview-product.is-live{border-top-color:#6c67c8}.guide-overview-product.is-pin{border-top-color:#26966c}.guide-overview-product-mark{display:grid;width:40px;height:40px;place-items:center;border-radius:7px;background:#e9f8ff;color:#167da9;font-size:.52rem;font-weight:950}.guide-overview-product.is-live .guide-overview-product-mark{background:#f0efff;color:#6057b6}.guide-overview-product.is-pin .guide-overview-product-mark{background:#eafaf2;color:#1c865f}.guide-overview-product>div{display:grid;gap:4px}.guide-overview-product h4{color:#244f67;font-size:.72rem;font-weight:950;line-height:1.3}.guide-overview-product p{color:#718996;font-size:.57rem;font-weight:700;line-height:1.48}.guide-overview-product>a{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #e5eef2;color:#1478a9;padding-top:9px;font-size:.57rem;font-weight:950}.guide-overview-product>a:hover,.guide-overview-product>a:focus-visible{outline:0;color:#075f8d}.guide-overview-capability-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.guide-overview-capability-grid article{display:grid;grid-template-columns:31px minmax(0,1fr);align-items:start;gap:9px;border:1px solid #dce9ef;border-radius:8px;background:#fff;padding:11px}.guide-overview-capability-grid article>span{display:grid;width:29px;height:29px;place-items:center;border-radius:7px;background:#eef8fc;color:#237da5;font-size:.52rem;font-weight:950}.guide-overview-capability-grid h4{color:#315a6f;font-size:.65rem;font-weight:950;line-height:1.35}.guide-overview-capability-grid p{margin-top:3px;color:#718894;font-size:.56rem;font-weight:700;line-height:1.45}.guide-overview-flow{display:grid;gap:10px;border:1px solid #cee4ed;border-radius:8px;background:#f8fcfe;padding:12px}.guide-overview-flow ol{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:0;padding:0;list-style:none}.guide-overview-flow li{position:relative;display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:7px;min-width:0;border:1px solid #dbe9ef;border-radius:7px;background:#fff;padding:8px}.guide-overview-flow li:not(:last-child)::after{content:"";position:absolute;z-index:2;top:50%;right:-7px;width:7px;border-top:1px solid #78b7d1}.guide-overview-flow li>b{display:grid;width:27px;height:27px;place-items:center;border-radius:7px;background:#e8f7fc;color:#167ca6;font-size:.53rem}.guide-overview-flow li>span{display:grid;min-width:0;gap:2px}.guide-overview-flow strong{color:#3c6477;font-size:.56rem;font-weight:950;line-height:1.3}.guide-overview-flow small{color:#7a909b;font-size:.48rem;font-weight:720;line-height:1.35}
.guide-tuncoin-section{display:grid;gap:12px;border:1px solid #b8ddea;border-left:4px solid #1688b7;border-radius:8px;background:linear-gradient(145deg,#f8fdff,#fff);padding:15px}.guide-tuncoin-heading{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:start;gap:11px;border-bottom:1px solid #dcebef;padding-bottom:12px}.guide-tuncoin-mark{display:grid;width:46px;height:46px;place-items:center;border:1px solid #aad9ea;border-radius:8px;background:#e7f8ff;color:#0e759f;font-size:.67rem;font-weight:950}.guide-tuncoin-heading>div{display:grid;gap:4px}.guide-tuncoin-heading h3{color:#164b67;font-size:1rem;font-weight:950;line-height:1.3}.guide-tuncoin-heading p{max-width:790px;color:#688492;font-size:.61rem;font-weight:710;line-height:1.5}.guide-tuncoin-badge{border:1px solid #b9dfd0;border-radius:7px;background:#f1fbf6;color:#27745a;padding:7px 9px;font-size:.53rem;font-weight:950;white-space:nowrap}.guide-tuncoin-definition{display:grid;gap:5px;border:1px solid #bcddeb;border-radius:8px;background:#eef9fd;padding:12px}.guide-tuncoin-definition strong{color:#154d68;font-size:.7rem;font-weight:950;line-height:1.5}.guide-tuncoin-definition p{color:#63808e;font-size:.58rem;font-weight:720;line-height:1.5}.guide-tuncoin-rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.guide-tuncoin-rules article{display:grid;gap:9px;border:1px solid #cfe7db;border-radius:8px;background:#f8fffb;padding:12px}.guide-tuncoin-rules article.is-forbidden{border-color:#efd2d2;background:#fffafa}.guide-tuncoin-rules .is-allowed>.guide-card-label{color:#26745a}.guide-tuncoin-rules .is-forbidden>.guide-card-label{color:#9c4b50}.guide-tuncoin-rules ul{display:grid;gap:7px;margin:0;padding:0;list-style:none}.guide-tuncoin-rules li{position:relative;padding-left:17px;color:#617e72;font-size:.57rem;font-weight:720;line-height:1.45}.guide-tuncoin-rules .is-forbidden li{color:#84696b}.guide-tuncoin-rules li::before{content:"✓";position:absolute;left:0;top:0;color:#269568;font-weight:950}.guide-tuncoin-rules .is-forbidden li::before{content:"×";color:#ba565d}.guide-tuncoin-example{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.9fr);gap:9px}.guide-tuncoin-example>div{display:grid;align-content:start;gap:5px;border:1px solid #d8e6ed;border-radius:8px;background:#fff;padding:12px}.guide-tuncoin-example strong{color:#315a6e;font-size:.66rem;font-weight:950;line-height:1.4}.guide-tuncoin-example p{color:#718995;font-size:.56rem;font-weight:710;line-height:1.48}.guide-tuncoin-formula{border-color:#d9d8ef!important;background:#faf9ff!important}.guide-tuncoin-formula>span{color:#675fab;font-size:.53rem;font-weight:950}.guide-tuncoin-formula>b{color:#48477c;font-size:.65rem;font-weight:950;line-height:1.45}.guide-tuncoin-formula>small{color:#777795;font-size:.54rem;font-weight:710;line-height:1.47}.guide-tuncoin-legal{display:grid;gap:9px;border-top:1px solid #deeaef;padding-top:11px}.guide-tuncoin-legal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.guide-tuncoin-legal-grid>a{display:grid;gap:4px;min-width:0;border:1px solid #dce7ec;border-radius:8px;background:#fff;color:inherit;padding:11px}.guide-tuncoin-legal-grid>a:hover,.guide-tuncoin-legal-grid>a:focus-visible{outline:0;border-color:#75b8d2;background:#f9fdff}.guide-tuncoin-legal-grid b{color:#297593;font-size:.53rem;font-weight:950}.guide-tuncoin-legal-grid strong{color:#325a6d;font-size:.63rem;font-weight:950;line-height:1.4}.guide-tuncoin-legal-grid small{color:#748a94;font-size:.54rem;font-weight:700;line-height:1.46}.guide-tuncoin-legal-grid span{margin-top:4px;color:#147ba5;font-size:.54rem;font-weight:950}.guide-tuncoin-legal-note{border:1px solid #eadfbf;border-radius:8px;background:#fffaf0;color:#806f4f;padding:10px;font-size:.54rem;font-weight:700;line-height:1.5}.guide-tuncoin-legal-note b{color:#76551f}.guide-overview-next{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #c8e3ed;border-radius:8px;background:#f4fbfe;padding:12px}.guide-overview-next>div:first-child{display:grid;gap:4px}.guide-overview-next strong{color:#28566d;font-size:.66rem;font-weight:950;line-height:1.4}.guide-overview-next .guide-inline-btn{display:inline-flex;align-items:center;justify-content:center}
@media(max-width:1120px){.guide-overview-product-grid{grid-template-columns:1fr}.guide-overview-product{grid-template-columns:42px minmax(0,1fr) auto;align-items:center}.guide-overview-product>a{grid-column:auto;border-top:0;border-left:1px solid #e5eef2;padding:7px 0 7px 10px}.guide-overview-flow ol{grid-template-columns:repeat(3,minmax(0,1fr))}.guide-overview-flow li:not(:last-child)::after{display:none}.guide-overview-flow li:nth-child(4),.guide-overview-flow li:nth-child(5){grid-column:span 1}.guide-tuncoin-example{grid-template-columns:1fr}}
@media(max-width:800px){.guide-overview-definition{grid-template-columns:1fr}.guide-overview-product{grid-template-columns:42px minmax(0,1fr)}.guide-overview-product>a{grid-column:1/-1;border-top:1px solid #e5eef2;border-left:0;padding:9px 0 0}.guide-overview-flow ol{grid-template-columns:repeat(2,minmax(0,1fr))}.guide-tuncoin-heading{grid-template-columns:46px minmax(0,1fr)}.guide-tuncoin-badge{grid-column:1/-1;width:max-content;max-width:100%}.guide-overview-next{align-items:flex-start;flex-direction:column}.guide-overview-next .guide-inline-actions{width:100%}.guide-overview-next .guide-inline-btn{flex:1 1 160px}}
@media(max-width:620px){.guide-project-overview{gap:14px}#guideTunCoin{scroll-margin-top:92px}.guide-overview-definition-copy,.guide-tuncoin-section{padding:12px}.guide-overview-capability-grid,.guide-tuncoin-rules,.guide-tuncoin-legal-grid{grid-template-columns:1fr}.guide-overview-flow ol{grid-template-columns:1fr}.guide-tuncoin-heading{grid-template-columns:40px minmax(0,1fr);gap:9px}.guide-tuncoin-mark{width:39px;height:39px}.guide-tuncoin-definition strong{font-size:.64rem}.guide-overview-next .guide-inline-actions{display:grid;grid-template-columns:1fr}.guide-overview-next .guide-inline-btn{width:100%;min-height:36px}.guide-overview-flow li{min-height:52px}}
@media(prefers-reduced-motion:reduce){.guide-overview-product>a,.guide-tuncoin-legal-grid>a{transition:none}}

/* Character Brain Builder v233 --------------------------------------------- */
body.brain-modal-open{overflow:hidden}.profile-brain-launch{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:12px;border:1px solid #c7dfeb;border-radius:8px;background:linear-gradient(130deg,#f5fcff,#f9f8ff);padding:13px}.profile-brain-launch-mark{display:grid;width:46px;height:46px;place-items:center;border:1px solid #addced;border-radius:8px;background:#e5f8ff;color:#1479a8;font-size:.67rem;font-weight:950}.profile-brain-launch>div{display:grid;min-width:0;gap:3px}.profile-brain-launch small{color:#4386a3;font-size:.51rem;font-weight:950;letter-spacing:.09em}.profile-brain-launch strong{color:#1c4b63;font-size:.73rem;font-weight:950}.profile-brain-launch p{margin:0;color:#6a8290;font-size:.57rem;font-weight:710;line-height:1.4}.profile-brain-launch button{min-width:122px}.aidol-showcase-actions .aidol-brain-card-btn{border-color:#b9d6e8;background:#eef8ff;color:#16658d}.aidol-showcase-actions .aidol-brain-card-btn:hover{border-color:#3f9ac4;background:#e1f5ff}.livestream-brain-summary{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:11px;min-height:80px;border:1px solid #d1e2ea;border-radius:8px;background:#f8fcfe;padding:12px}.livestream-brain-summary>div:not(.livestream-brain-summary-avatar){display:grid;gap:4px}.livestream-brain-summary strong{color:#214d64;font-size:.74rem}.livestream-brain-summary p{margin:0;color:#708692;font-size:.57rem;font-weight:710;line-height:1.4}.livestream-brain-summary-avatar{display:grid;width:44px;height:44px;overflow:hidden;place-items:center;border:1px solid #bdd8e5;border-radius:8px;background:#e8f5fb;color:#297497;font-size:.63rem;font-weight:950}.livestream-brain-summary-avatar img{width:100%;height:100%;object-fit:cover}.brain-summary-loader{display:block;width:22px;height:22px;border:3px solid #d3e7ef;border-top-color:#238fbb;border-radius:50%;animation:previewSpin .8s linear infinite}

.aidol-brain-modal{position:fixed;z-index:1500;inset:0;display:grid;place-items:center;padding:18px}.aidol-brain-modal[hidden]{display:none}.aidol-brain-backdrop{position:absolute;inset:0;background:rgba(5,12,18,.82);backdrop-filter:blur(10px)}.aidol-brain-dialog{--brain-bg:#121617;--brain-panel:#191e20;--brain-panel-2:#202628;--brain-line:#354043;--brain-copy:#f1f4f3;--brain-muted:#9eaaab;--brain-mint:#72d6c5;--brain-blue:#79b8ff;position:relative;z-index:1;display:grid;grid-template-rows:auto auto minmax(0,1fr);width:min(1380px,calc(100vw - 36px));height:min(900px,calc(100vh - 36px));overflow:hidden;border:1px solid #3b474a;border-radius:8px;background:var(--brain-bg);box-shadow:0 36px 110px rgba(0,0,0,.58);color:var(--brain-copy)}.aidol-brain-dialog-head{display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:76px;border-bottom:1px solid var(--brain-line);background:#171c1e;padding:11px 15px}.aidol-brain-character-avatar{position:relative;display:grid;width:54px;height:54px;overflow:hidden;place-items:center;border:1px solid #4a595d;border-radius:8px;background:#222b2e;color:var(--brain-mint);font-size:.7rem;font-weight:950}.aidol-brain-character-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.aidol-brain-heading{display:grid;min-width:0;gap:3px}.aidol-brain-heading>span{color:var(--brain-mint);font-size:.5rem;font-weight:950;letter-spacing:.11em}.aidol-brain-heading h2{margin:0;color:#fff;font-size:1.02rem;font-weight:950;letter-spacing:0}.aidol-brain-heading p{display:flex;align-items:center;gap:8px;min-width:0;margin:0}.aidol-brain-heading p strong{overflow:hidden;color:#dce6e4;font-size:.61rem;text-overflow:ellipsis;white-space:nowrap}.aidol-brain-heading code{overflow:hidden;max-width:320px;border-radius:4px;background:#242b2d;color:#aebaba;padding:3px 5px;font-size:.5rem;text-overflow:ellipsis;white-space:nowrap}.aidol-brain-heading p small{color:#8f9b9d;font-size:.5rem;font-weight:850}.aidol-brain-head-actions{display:flex;align-items:center;gap:10px}.aidol-brain-head-actions>span{border:1px solid #405055;border-radius:6px;background:#22292b;color:#a9d8cf;padding:6px 8px;font-size:.51rem;font-weight:900}.aidol-brain-head-actions .icon-only-btn{border-color:#465155;background:#252b2d;color:#e8eeee}.aidol-brain-mobile-tabs{display:none}.aidol-brain-loading{display:grid;grid-row:3;justify-items:center;align-content:center;gap:8px;color:var(--brain-muted);text-align:center}.aidol-brain-loading i{display:block;width:28px;height:28px;border:3px solid #354346;border-top-color:var(--brain-mint);border-radius:50%;animation:previewSpin .8s linear infinite}.aidol-brain-loading strong{color:#edf2f1;font-size:.72rem}.aidol-brain-loading span{font-size:.56rem;font-weight:700}.aidol-brain-loading button{margin-top:7px}.aidol-brain-workspace{display:grid;grid-row:3;grid-template-columns:minmax(0,1.02fr) minmax(390px,.98fr);min-height:0}.aidol-brain-workspace[hidden]{display:none}.aidol-brain-editor,.aidol-brain-chat{min-width:0;min-height:0}.aidol-brain-editor{display:grid;grid-template-rows:auto auto auto auto minmax(110px,auto) auto auto auto;align-content:start;gap:11px;overflow:auto;border-right:1px solid var(--brain-line);background:var(--brain-panel);padding:16px}.aidol-brain-pane-head,.aidol-brain-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.aidol-brain-pane-head>div{display:grid;gap:3px}.aidol-brain-pane-head span,.aidol-brain-section-head span{color:var(--brain-mint);font-size:.49rem;font-weight:950;letter-spacing:.1em}.aidol-brain-pane-head h3{margin:0;color:#fff;font-size:.9rem;letter-spacing:0}.aidol-brain-pane-head p{margin:0;color:var(--brain-muted);font-size:.55rem;font-weight:710}.aidol-brain-pane-head>span{border:1px solid #3e4b4e;border-radius:5px;background:#232a2c;color:#aeb9ba;padding:5px 7px;letter-spacing:0}.aidol-brain-pane-head>span.is-working{color:#f1cb7b}.aidol-brain-pane-head>span.is-conflict,.aidol-brain-pane-head>span.is-dirty{color:#ff9da8}.brain-field{display:grid;gap:6px;color:#d7dfde;font-size:.57rem;font-weight:900}.brain-field textarea,.aidol-brain-memory-row textarea{width:100%;resize:vertical;border:1px solid #3d494c;border-radius:7px;outline:0;background:#121718;color:#eef3f2;padding:10px;font-family:inherit;font-size:.64rem;font-weight:600;line-height:1.55;transition:border-color .15s ease,box-shadow .15s ease}.brain-field textarea:focus,.aidol-brain-memory-row textarea:focus{border-color:#71c9bb;box-shadow:0 0 0 3px rgba(114,214,197,.11)}.brain-field>small{color:#889799;font-size:.5rem;font-weight:680;line-height:1.4}.aidol-brain-memory-section{display:grid;gap:9px;border:1px solid #364144;border-radius:7px;background:#171c1e;padding:11px}.aidol-brain-section-head>div{display:grid;gap:3px}.aidol-brain-section-head strong{color:#dfe6e5;font-size:.61rem}.aidol-brain-section-head button{min-height:29px;border:1px solid #465356;border-radius:6px;background:#242b2d;color:#b8dcd5;padding:0 8px;font-size:.52rem;font-weight:900}.aidol-brain-memory-list{display:grid;gap:7px}.aidol-brain-memory-row{display:grid;grid-template-columns:30px minmax(0,1fr) 28px;align-items:center;gap:7px}.aidol-brain-memory-row textarea{min-height:50px;resize:none;padding:8px;font-size:.57rem}.aidol-brain-memory-row>button{display:grid;width:27px;height:27px;place-items:center;border:1px solid #4b3e42;border-radius:6px;background:#2a2123;color:#e69ca4;font-size:.8rem}.brain-memory-toggle{position:relative;display:block;width:29px;height:18px}.brain-memory-toggle input{position:absolute;opacity:0}.brain-memory-toggle span{display:block;width:29px;height:18px;border-radius:99px;background:#3e484b;transition:background .15s ease}.brain-memory-toggle span::after{content:"";display:block;width:12px;height:12px;margin:3px;border-radius:50%;background:#adb7b8;transition:transform .15s ease,background .15s ease}.brain-memory-toggle input:checked+span{background:#2d786d}.brain-memory-toggle input:checked+span::after{background:#a8f0e3;transform:translateX(11px)}.aidol-brain-memory-empty{border:1px dashed #3f4b4e;border-radius:6px;color:#899697;padding:12px;font-size:.53rem;font-weight:700;text-align:center}.aidol-brain-notice{min-height:18px;color:#aebbbb;font-size:.53rem;font-weight:760;line-height:1.4}.aidol-brain-notice.success{color:#82d9ad}.aidol-brain-notice.error{color:#ff9eaa}.aidol-brain-editor-actions{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #333e41;padding-top:11px}.aidol-brain-editor-actions button{min-height:36px;border-radius:7px}.aidol-brain-editor.is-saving{pointer-events:none;opacity:.78}

.aidol-brain-chat{display:grid;grid-template-rows:auto auto minmax(160px,1fr) auto auto;background:#111516}.aidol-brain-chat-head{display:flex;min-height:61px;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--brain-line);background:#181d1f;padding:10px 13px}.aidol-brain-chat-head>div{display:flex;align-items:center;gap:8px}.brain-online-dot{display:block;width:8px;height:8px;border-radius:50%;background:var(--brain-mint);box-shadow:0 0 0 4px rgba(114,214,197,.11)}.aidol-brain-chat-head>div>div{display:grid;gap:2px}.aidol-brain-chat-head strong{color:#eef3f2;font-size:.65rem}.aidol-brain-chat-head small{color:#8d999b;font-size:.49rem;font-weight:700}.aidol-brain-chat-head>button{display:grid;width:29px;height:29px;place-items:center;border:1px solid #3f4b4e;border-radius:6px;background:#22282a;color:#bac4c5}.aidol-brain-starter-list{display:flex;gap:6px;overflow-x:auto;border-bottom:1px solid #2f393b;padding:8px 10px}.aidol-brain-starter-list:empty{display:none}.aidol-brain-starter-list button{flex:0 0 auto;max-width:250px;overflow:hidden;border:1px solid #3b484b;border-radius:6px;background:#1d2426;color:#b9c8c6;padding:6px 8px;font-size:.5rem;font-weight:760;text-overflow:ellipsis;white-space:nowrap}.aidol-brain-starter-list button:hover{border-color:#67b8ac;color:#e8f4f1}.aidol-brain-chat-log{display:flex;min-height:0;overflow:auto;flex-direction:column;gap:12px;padding:14px}.aidol-brain-chat-empty{display:grid;align-self:center;justify-items:center;gap:5px;margin:auto;color:#899597;text-align:center}.aidol-brain-chat-empty strong{color:#d8e0df;font-size:.66rem}.aidol-brain-chat-empty span{max-width:310px;font-size:.52rem;font-weight:700;line-height:1.45}.aidol-brain-chat-message{display:grid;align-self:flex-start;max-width:84%;gap:4px}.aidol-brain-chat-message.is-user{align-self:flex-end}.aidol-brain-chat-message>span{color:#809092;font-size:.46rem;font-weight:900}.aidol-brain-chat-message.is-user>span{text-align:right}.aidol-brain-chat-message p{margin:0;border:1px solid #374346;border-radius:7px;background:#1d2426;color:#dce4e3;padding:9px 10px;font-size:.58rem;font-weight:620;line-height:1.55}.aidol-brain-chat-message.is-user p{border-color:#34756d;background:#24524c;color:#f1fffc}.aidol-brain-chat-thinking{display:flex;align-items:center;gap:4px;width:max-content;border:1px solid #344044;border-radius:7px;background:#1b2224;padding:10px}.aidol-brain-chat-thinking i{display:block;width:5px;height:5px;border-radius:50%;background:#8ba09d;animation:brainThinking 1s ease-in-out infinite}.aidol-brain-chat-thinking i:nth-child(2){animation-delay:.13s}.aidol-brain-chat-thinking i:nth-child(3){animation-delay:.26s}@keyframes brainThinking{50%{opacity:.3;transform:translateY(-3px)}}.aidol-brain-proposal{display:grid;max-height:300px;overflow:auto;border-top:1px solid #465147;border-bottom:1px solid #465147;background:#1d241f}.aidol-brain-proposal[hidden]{display:none}.aidol-brain-proposal>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px}.aidol-brain-proposal>header>div{display:grid;gap:3px}.aidol-brain-proposal>header span{color:#a9d69e;font-size:.47rem;font-weight:950;letter-spacing:.08em}.aidol-brain-proposal>header strong{color:#e5eee2;font-size:.6rem}.aidol-brain-proposal>header>b{border:1px solid #708e6a;border-radius:5px;color:#b8daa9;padding:4px 6px;font-size:.47rem}.aidol-brain-proposal-diff{display:grid;gap:7px;padding:0 12px 10px}.aidol-brain-proposal-diff article{display:grid;grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);gap:5px}.aidol-brain-proposal-diff article>strong{grid-column:1/-1;color:#aebcb8;font-size:.49rem}.brain-diff-before,.brain-diff-after{max-height:84px;overflow:auto;border-radius:5px;padding:7px;font-size:.49rem;line-height:1.45}.brain-diff-before{background:#292326;color:#c6aeb3}.brain-diff-after{background:#213029;color:#bfe1ca}.brain-diff-arrow{display:grid;place-items:center;color:#85a894;font-size:.7rem}.aidol-brain-diff-empty{color:#91a099;font-size:.52rem}.aidol-brain-proposal>footer{display:flex;justify-content:flex-end;gap:6px;border-top:1px solid #35413a;padding:9px 12px}.aidol-brain-proposal>footer button{min-height:31px;border:1px solid #46534c;border-radius:6px;background:#252d29;color:#c4cfca;padding:0 8px;font-size:.5rem;font-weight:900}.aidol-brain-proposal>footer .primary-btn{border-color:#4b9c7e;background:#287357;color:#fff}.aidol-brain-chat-composer{display:grid;gap:6px;border-top:1px solid var(--brain-line);background:#181d1f;padding:10px}.aidol-brain-chat-composer textarea{width:100%;min-height:55px;resize:none;border:1px solid #3d494c;border-radius:7px;outline:0;background:#101415;color:#eef2f1;padding:9px;font-family:inherit;font-size:.6rem;line-height:1.45}.aidol-brain-chat-composer textarea:focus{border-color:#70cbbd;box-shadow:0 0 0 3px rgba(114,214,197,.1)}.aidol-brain-chat-composer>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.aidol-brain-chat-composer small{color:#879496;font-size:.48rem;font-weight:700}.aidol-brain-chat-composer button{display:grid;width:31px;height:31px;place-items:center;border:0;border-radius:7px;background:var(--brain-mint);color:#10201d;font-size:.85rem;font-weight:950}.aidol-brain-chat-composer button:disabled{cursor:wait;opacity:.55}

@media(max-width:1000px){.aidol-brain-workspace{grid-template-columns:minmax(0,1.1fr) minmax(340px,.9fr)}.aidol-brain-heading code{max-width:190px}}
@media(max-width:780px){.profile-brain-launch{grid-template-columns:44px minmax(0,1fr)}.profile-brain-launch button{grid-column:1/-1;width:100%}.aidol-brain-modal{padding:0}.aidol-brain-dialog{width:100vw;height:100vh;border:0;border-radius:0}.aidol-brain-dialog-head{grid-template-columns:48px minmax(0,1fr) auto;min-height:69px;padding:9px}.aidol-brain-character-avatar{width:46px;height:46px}.aidol-brain-heading>span,.aidol-brain-heading code,.aidol-brain-head-actions>span{display:none}.aidol-brain-heading h2{font-size:.84rem}.aidol-brain-heading p strong{font-size:.57rem}.aidol-brain-head-actions{gap:0}.aidol-brain-mobile-tabs{display:grid;grid-row:2;grid-template-columns:repeat(3,1fr);border-bottom:1px solid var(--brain-line);background:#171c1e;padding:5px}.aidol-brain-mobile-tabs button{min-height:34px;border:0;border-radius:6px;background:transparent;color:#8e9a9c;font-size:.55rem;font-weight:900}.aidol-brain-mobile-tabs button.active{background:#273033;color:#baf0e6}.aidol-brain-workspace{grid-template-columns:1fr}.aidol-brain-editor,.aidol-brain-chat{display:none;border-right:0}.aidol-brain-editor.is-mobile-active,.aidol-brain-chat.is-mobile-active{display:grid}.aidol-brain-editor.is-mobile-active{overflow:auto}.aidol-brain-editor.is-mobile-active[data-brain-pane="editor"]{display:grid}.aidol-brain-editor .aidol-brain-memory-section[data-brain-pane="memory"]{display:none}.aidol-brain-editor .aidol-brain-memory-section[data-brain-pane="memory"].is-mobile-active{display:grid}.aidol-brain-modal[data-brain-mobile-active="memory"] .aidol-brain-editor>.aidol-brain-pane-head,.aidol-brain-modal[data-brain-mobile-active="memory"] .aidol-brain-editor>.brain-field{display:none}.aidol-brain-chat{height:100%;min-height:0}.aidol-brain-proposal{max-height:250px}.aidol-brain-heading p small{font-size:.46rem}.livestream-brain-summary{grid-template-columns:42px minmax(0,1fr)}.livestream-brain-summary>.status{grid-column:1/-1;width:max-content}}
@media(max-width:480px){.aidol-brain-dialog-head{grid-template-columns:44px minmax(0,1fr) 34px}.aidol-brain-character-avatar{width:42px;height:42px}.aidol-brain-editor{padding:11px}.aidol-brain-pane-head{align-items:flex-start}.aidol-brain-memory-row{grid-template-columns:28px minmax(0,1fr) 26px}.aidol-brain-chat-message{max-width:92%}.aidol-brain-proposal-diff article{grid-template-columns:1fr}.brain-diff-arrow{height:15px;transform:rotate(90deg)}.aidol-brain-proposal>footer{display:grid;grid-template-columns:1fr 1fr}.aidol-brain-proposal>footer .primary-btn{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.aidol-brain-loading i,.aidol-brain-chat-thinking i,.brain-summary-loader{animation:none}}

/* Livestream script desk: generation and preview clarity v235 ------------- */
.livestream-desk-create summary{display:flex;align-items:center;justify-content:space-between;gap:12px}.livestream-desk-create summary>small{color:#247d82;font-size:.55rem;font-weight:950;letter-spacing:0}.livestream-desk-ai-source{display:grid;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr) 20px minmax(0,1fr);align-items:center;gap:7px;margin-bottom:12px;border:1px solid #cfe1e9;border-radius:8px;background:#f7fafb;padding:9px}.livestream-desk-ai-source>div{display:grid;grid-template-columns:31px minmax(0,1fr);align-items:center;gap:8px;min-width:0}.livestream-desk-ai-source>div>span{display:grid;width:31px;height:31px;place-items:center;border-radius:7px;background:#dff5ee;color:#137259;font-size:.55rem;font-weight:950}.livestream-desk-ai-source>.is-prompt>span{background:#e6f1ff;color:#176caa}.livestream-desk-ai-source>.is-output>span{background:#eeeafd;color:#604aae}.livestream-desk-ai-source p{display:grid;min-width:0;gap:2px}.livestream-desk-ai-source strong{overflow:hidden;color:#294f61;font-size:.63rem;font-weight:950;text-overflow:ellipsis;white-space:nowrap}.livestream-desk-ai-source small{overflow:hidden;color:#708792;font-size:.52rem;font-weight:750;text-overflow:ellipsis;white-space:nowrap}.livestream-desk-ai-source>i{display:grid;place-items:center;color:#8ba2ad;font-size:.84rem;font-style:normal;font-weight:950}
.livestream-desk-generation{display:grid;grid-template-columns:minmax(220px,1fr) auto;align-items:center;gap:14px;margin-top:9px;border:1px solid #b8d7df;border-left:4px solid #258c91;border-radius:8px;background:#f7fbfb;padding:11px 13px}.livestream-desk-generation>div:first-child{display:grid;min-width:0;gap:2px}.livestream-desk-generation>div:first-child>span{color:#24777b;font-size:.53rem;font-weight:950;letter-spacing:0}.livestream-desk-generation strong{color:#214b55;font-size:.76rem;font-weight:950}.livestream-desk-generation small{color:#6c858c;font-size:.58rem;font-weight:730;line-height:1.4}.livestream-desk-generation>div:last-child{display:flex;align-items:center;justify-content:flex-end;gap:7px}.livestream-desk-generation button{min-height:38px;border-radius:7px;padding:0 12px;font-size:.63rem;font-weight:950}.livestream-desk-generation [data-live-open-desk-action="voice"]{border-color:#208e83;background:#208e83;color:#fff}.livestream-desk-generation [data-live-open-desk-action="lipsync"]{border-color:#6654b8;background:#6654b8;color:#fff}.livestream-desk-generation button:disabled{cursor:not-allowed;filter:grayscale(.3);opacity:.48}.livestream-desk-toolbar .is-danger{border-color:#e4c9ce;background:#fffafa;color:#a94152}
.livestream-desk-list-head,.livestream-desk-row{grid-template-columns:74px 225px minmax(260px,1fr) 245px}.livestream-desk-row{min-height:66px}.livestream-desk-row-actions{display:grid;grid-template-columns:minmax(88px,1fr) minmax(88px,1fr) 30px;align-items:center;justify-content:stretch;gap:6px}.livestream-desk-row-actions .livestream-desk-result-button{display:inline-flex;width:auto;height:32px;align-items:center;justify-content:center;gap:5px;border:1px solid #bad8e5;border-radius:7px;background:#f8fcfe;color:#17698f;padding:0 8px;font-size:.57rem;font-weight:900;white-space:nowrap}.livestream-desk-row-actions .livestream-desk-result-button.is-video{border-color:#d0caec;background:#faf9ff;color:#5d4ca7}.livestream-desk-row-actions .livestream-desk-result-button.is-empty{border-style:dashed;background:#fbfcfc;color:#87979d}.livestream-desk-result-button>span{font-size:.62rem}.livestream-desk-result-button>b{font-size:inherit;font-weight:inherit}.livestream-desk-row-actions .livestream-desk-row-delete{display:grid;width:30px;height:30px;place-items:center;border:1px solid #e4cbd0;border-radius:7px;background:#fffafa;color:#b43c50;font-size:.82rem}.livestream-desk-row-actions button:not(:disabled):hover,.livestream-desk-row-actions button:not(:disabled):focus-visible{outline:0;border-color:#398fb4;background:#edf8fc}.livestream-desk-row-actions .livestream-desk-result-button.is-video:not(:disabled):hover,.livestream-desk-row-actions .livestream-desk-result-button.is-video:not(:disabled):focus-visible{border-color:#7766c0;background:#f1effc}.livestream-desk-row-actions .livestream-desk-row-delete:not(:disabled):hover,.livestream-desk-row-actions .livestream-desk-row-delete:not(:disabled):focus-visible{border-color:#c94c60;background:#fff0f2}
.livestream-desk-result-preview{position:fixed;z-index:10080;inset:0;display:grid;place-items:center;padding:20px}.livestream-desk-result-preview-backdrop{position:absolute;inset:0;background:rgba(8,17,23,.76);backdrop-filter:blur(7px)}.livestream-desk-result-preview-panel{position:relative;z-index:1;display:grid;grid-template-rows:auto minmax(0,1fr);width:min(780px,calc(100vw - 40px));max-height:calc(100vh - 40px);overflow:hidden;border:1px solid #53666e;border-radius:8px;background:#151c20;box-shadow:0 28px 80px rgba(0,0,0,.5)}.livestream-desk-result-preview-panel>header{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #37464d;background:#1b2428;padding:12px 14px}.livestream-desk-result-preview-panel>header>div{display:grid;min-width:0;gap:2px}.livestream-desk-result-preview-panel>header span{color:#77d4c5;font-size:.5rem;font-weight:950;letter-spacing:0}.livestream-desk-result-preview-panel>header strong{color:#f1f5f4;font-size:.8rem;font-weight:950}.livestream-desk-result-preview-panel>header small{overflow:hidden;color:#9aabad;font-size:.55rem;font-weight:720;text-overflow:ellipsis;white-space:nowrap}.livestream-desk-result-preview-panel>header button{display:grid;width:33px;height:33px;flex:0 0 33px;place-items:center;border:1px solid #53636a;border-radius:7px;background:#252f34;color:#eef3f2;font-size:1.05rem}.livestream-desk-result-preview-media{display:grid;min-height:120px;place-items:center;overflow:auto;background:#0c1114;padding:16px}.livestream-desk-result-preview-media audio{width:min(100%,620px)}.livestream-desk-result-preview-media video{display:block;width:100%;max-height:70vh;aspect-ratio:16/9;object-fit:contain;background:#000}
.livestream-desk-result-loading,.livestream-desk-result-error{display:grid;max-width:440px;place-items:center;gap:7px;color:#dce7e5;text-align:center}.livestream-desk-result-loading i{display:block;width:24px;height:24px;border:3px solid rgba(119,212,197,.22);border-top-color:#77d4c5;border-radius:50%;animation:previewSpin .72s linear infinite}.livestream-desk-result-loading strong,.livestream-desk-result-error strong{color:#f3f7f6;font-size:.76rem;font-weight:950}.livestream-desk-result-loading span,.livestream-desk-result-error span{color:#9eb0b1;font-size:.6rem;font-weight:700;line-height:1.5}.livestream-desk-result-error button{margin-top:5px;border:1px solid #60757b;border-radius:7px;background:#243136;color:#eef5f3;padding:8px 12px;font-size:.62rem;font-weight:900}.livestream-desk-result-error button:hover{border-color:#77d4c5;background:#2b3b3e}
@media(max-width:1100px){.livestream-desk-list-head,.livestream-desk-row{grid-template-columns:68px 205px minmax(220px,1fr) 220px}.livestream-desk-row-actions{grid-template-columns:minmax(78px,1fr) minmax(78px,1fr) 28px}.livestream-desk-row-actions .livestream-desk-result-button{padding:0 5px;font-size:.53rem}}
@media(max-width:900px){.livestream-desk-ai-source{grid-template-columns:1fr 18px 1fr}.livestream-desk-ai-source>.is-output{grid-column:1/-1}.livestream-desk-ai-source>i:nth-of-type(2){display:none}.livestream-desk-generation{grid-template-columns:1fr}.livestream-desk-generation>div:last-child{justify-content:flex-start}.livestream-desk-list-head{display:none}.livestream-desk-row{grid-template-columns:70px minmax(0,1fr)}.livestream-desk-row-status{grid-column:2}.livestream-desk-row-excerpt{grid-column:1/-1;grid-row:2}.livestream-desk-row-actions{grid-column:1/-1;grid-row:3;grid-template-columns:minmax(105px,1fr) minmax(105px,1fr) 34px;justify-content:start}.livestream-desk-row-actions .livestream-desk-result-button{height:34px}.livestream-desk-row-actions .livestream-desk-row-delete{width:34px;height:34px}}
@media(max-width:620px){.livestream-desk-create summary{align-items:flex-start;flex-direction:column;gap:3px}.livestream-desk-ai-source{grid-template-columns:1fr}.livestream-desk-ai-source>i{height:12px;transform:rotate(90deg)}.livestream-desk-ai-source>i:nth-of-type(2){display:grid}.livestream-desk-ai-source>.is-output{grid-column:auto}.livestream-desk-generation>div:last-child{display:grid;grid-template-columns:1fr}.livestream-desk-generation button{width:100%}.livestream-desk-result-preview{padding:0}.livestream-desk-result-preview-panel{width:100vw;max-height:100vh;height:100vh;border:0;border-radius:0}.livestream-desk-result-preview-media{padding:10px}.livestream-desk-result-preview-media video{max-height:calc(100vh - 88px)}}
@media(prefers-reduced-motion:reduce){.livestream-desk-result-preview-backdrop{backdrop-filter:none}}

/* Shared system AIDOL: Ngoc Diep v238 ---------------------------------- */
.aidol-showcase-card.is-system-shared{border-color:#66b7a5;background:linear-gradient(150deg,#fff,#f5fbf9 58%,#f8f7ff);box-shadow:0 18px 44px rgba(19,101,86,.14)}
.aidol-showcase-card.is-system-shared::after{background:linear-gradient(135deg,rgba(65,185,157,.62),transparent 31%,transparent 69%,rgba(128,105,201,.4)) border-box}
.aidol-showcase-card.is-system-shared:hover{border-color:#3aa98e;box-shadow:0 28px 58px rgba(16,101,84,.2)}
.aidol-system-badge{position:absolute;z-index:5;top:13px;left:13px;display:inline-flex;align-items:center;min-height:27px;border:1px solid rgba(205,255,240,.72);border-radius:7px;background:rgba(9,69,58,.84);backdrop-filter:blur(8px);box-shadow:0 7px 18px rgba(0,0,0,.2);color:#ecfff9;padding:0 9px;font-size:.55rem;font-weight:950;letter-spacing:0}
.aidol-system-note{display:grid;gap:3px;border-left:3px solid #27a485;background:#eef9f5;padding:8px 10px}
.aidol-system-note strong{color:#176c5a;font-size:.66rem;font-weight:950}
.aidol-system-note span{color:#547b72;font-size:.57rem;font-weight:720;line-height:1.45}
.aidol-showcase-card.is-system-shared .aidol-card-kicker{color:#16836b}
.aidol-showcase-card.is-system-shared .aidol-default-voice{border-color:#c9e7de;background:#fbfffd}
.aidol-showcase-card.is-system-shared .aidol-voice-mark{background:#def5ed;color:#14745f}
.aidol-showcase-card.is-system-shared .aidol-motion-group-pill{border-color:#cce8df;background:#eff9f6;color:#326e61}
.aidol-showcase-card.is-system-shared .aidol-motion-group-pill b{color:#167660}
.aidol-showcase-card.is-system-shared .aidol-showcase-actions .aidol-system-lipsync{border-color:#2d967f;background:#effaf6;color:#176d5c}
.aidol-showcase-card.is-system-shared .aidol-delete-character,.aidol-showcase-card.is-system-shared .aidol-change-voice-btn{display:none!important}
.livestream-aidol-choice.is-system-shared{border-color:#8fcdbd;background:#f8fdfa;box-shadow:inset 3px 0 0 #2aa487,0 7px 18px rgba(17,94,77,.06)}
.livestream-aidol-choice.is-system-shared:hover{border-color:#3da98e;box-shadow:inset 3px 0 0 #2aa487,0 10px 24px rgba(17,94,77,.13)}
.livestream-aidol-choice.is-system-shared.selected{border-color:#23977c;background:#f0faf7;box-shadow:inset 3px 0 0 #16866d,0 0 0 3px rgba(35,151,124,.12)}
.livestream-aidol-choice.is-system-shared .livestream-aidol-choice-media{border-color:#a9d8cc;background:#e8f7f2}
.livestream-aidol-choice.is-system-shared .livestream-aidol-choice-copy>b{width:max-content;border-radius:5px;background:#dff4ed;color:#16715e;padding:3px 5px;font-size:.48rem;font-weight:950;letter-spacing:0}
.aidol-motion-dialog.is-system-shared{border-color:#73bba9}
.aidol-motion-dialog.is-system-shared .aidol-motion-dialog-head{background:linear-gradient(110deg,#fff,#edf9f5)}
.aidol-motion-dialog.is-system-shared .aidol-motion-dialog-head .step-pill{border-color:#a9d8cc;background:#e5f5ef;color:#176e5b}
.aidol-motion-dialog.is-system-shared .aidol-musetalk-fast-step{opacity:.76}
@media(max-width:620px){.aidol-system-badge{top:10px;left:10px}.aidol-system-note{padding:8px}.livestream-aidol-choice.is-system-shared{box-shadow:inset 3px 0 0 #2aa487}}

/* Flow recreate actions v240 -------------------------------------------- */
.task-media-card-actions .task-media-recreate{border-color:rgba(255,174,143,.42);background:#342b29;color:#ffc4b2}
.task-media-card-actions .task-media-recreate:hover,.task-media-card-actions .task-media-recreate:focus-visible{outline:0;border-color:#ffb295;background:#46322d;color:#fff}
.task-media-job-item-foot>div{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.task-media-job-item-foot .task-media-recreate{display:inline-flex;min-height:24px;align-items:center;border:1px solid rgba(255,174,143,.38);border-radius:6px;background:#352c2a;color:#ffc4b2;padding:0 7px}
.task-media-job-item-foot .task-media-recreate:hover,.task-media-job-item-foot .task-media-recreate:focus-visible{outline:0;border-color:#ffb295;background:#46322d;color:#fff}

/* Flow queue summary and per-job preview recovery v241 ------------------ */
.task-media-queue-summary{display:grid;gap:8px;margin:0 11px 2px;border:1px solid #3f5552;border-radius:7px;background:#202b2a;padding:9px 8px;color:#dce9e6}
.task-media-queue-summary-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.task-media-queue-summary-head strong{color:#a9e7dc;font-size:.5rem;font-weight:950;letter-spacing:.1em}
.task-media-queue-summary-head span{color:#aab9b7;font-size:.5rem;font-weight:800}
.task-media-queue-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.task-media-queue-summary-item{display:grid;min-width:0;gap:2px;border:1px solid #3e4848;border-radius:5px;background:#282e2e;padding:5px 4px;text-align:center}
.task-media-queue-summary-item b{color:#eef5f3;font-size:.72rem;line-height:1}
.task-media-queue-summary-item small{overflow:hidden;color:#aebbb9;font-size:.42rem;font-weight:800;text-overflow:ellipsis;white-space:nowrap}
.task-media-queue-summary-item.queued{border-color:#866353;background:#342b28}
.task-media-queue-summary-item.queued b{color:#ffc6b5}
.task-media-queue-summary-item.processing{border-color:#667253;background:#2c3028}
.task-media-queue-summary-item.processing b{color:#d3e99f}
.task-media-queue-summary-item.done{border-color:#3f6a60;background:#263431}
.task-media-queue-summary-item.done b{color:#9de5d8}
.task-media-queue-summary-item.failed{border-color:#754953;background:#322629}
.task-media-queue-summary-item.failed b{color:#ffb8c0}
.task-media-queue-summary-note{color:#9eafac;font-size:.48rem;font-weight:720;line-height:1.3}
.task-media-media-error{display:grid;max-width:88%;place-items:center;color:#b7c3c1;font-size:.52rem;font-weight:800;line-height:1.35;text-align:center}
.task-media-source-thumb .task-media-media-error{padding:5px;font-size:.45rem}
.aidol-draft-status{display:flex;align-items:center;gap:10px;border:1px solid #f0d49d;border-radius:11px;background:linear-gradient(105deg,#fffaf0,#fffdf7);box-shadow:0 6px 15px rgba(142,103,37,.06);padding:9px 12px}.aidol-draft-status-mark{display:grid;flex:0 0 auto;width:28px;height:28px;place-items:center;border-radius:8px;background:#f2b94b;color:#fff;font-size:.7rem;font-weight:950}.aidol-draft-status div{display:grid;min-width:0;gap:2px}.aidol-draft-status strong{color:#8a5d1c;font-size:.59rem;font-weight:950;letter-spacing:.05em}.aidol-draft-status small{color:#876f4c;font-size:.58rem;font-weight:720;line-height:1.4}
.livestream-script-context-menu{position:fixed;z-index:14500;display:grid;min-width:238px;max-width:min(300px,calc(100vw - 20px));gap:6px;border:1px solid #c6dce9;border-radius:11px;background:#fff;box-shadow:0 18px 44px rgba(20,67,96,.22);padding:7px}
.livestream-script-context-menu-head{display:grid;gap:3px;border-bottom:1px solid #e6eff4;padding:5px 8px 8px}
.livestream-script-context-menu-head>span{color:#4d819d;font-size:.5rem;font-weight:950;letter-spacing:.1em;text-transform:uppercase}
.livestream-script-context-menu-head>strong{overflow:hidden;color:#234e64;font-size:.68rem;font-weight:950;text-overflow:ellipsis;white-space:nowrap}
.livestream-script-context-menu-head>small{color:#78909d;font-size:.55rem;font-weight:720;line-height:1.35}
.livestream-script-context-menu button{display:grid;grid-template-columns:26px minmax(0,1fr);align-items:center;gap:8px;width:100%;min-height:47px;border:0;border-radius:8px;background:transparent;color:#a52d40;padding:7px 8px;text-align:left;font:inherit}
.livestream-script-context-menu button:hover:not(:disabled),.livestream-script-context-menu button:focus-visible:not(:disabled){background:#fff1f3;outline:0}
.livestream-script-context-menu button:disabled{cursor:not-allowed;color:#8b9aa4;opacity:.68}
.livestream-script-context-menu-icon{display:grid;width:26px;height:26px;place-items:center;border:1px solid currentColor;border-radius:7px;font-size:1.05rem;font-weight:500;line-height:1}
.livestream-script-context-menu button>span:last-child{display:grid;min-width:0;gap:2px}
.livestream-script-context-menu button b{font-size:.64rem;font-weight:950}
.livestream-script-context-menu button small{color:#78909f;font-size:.53rem;font-weight:720;line-height:1.35}
.livestream-motion-config-simple{gap:10px;border-color:#cfe1eb;background:#f8fbfc;padding:12px 14px}
.livestream-motion-config-simple .livestream-motion-config-head{align-items:center}
.livestream-motion-config-simple .livestream-motion-config-head>div{gap:3px}
.livestream-motion-config-simple .livestream-motion-config-head strong{font-size:.78rem}
.livestream-motion-config-simple .livestream-motion-config-head .secondary-submit{min-height:33px;padding:0 10px;font-size:.58rem}
.livestream-motion-single-select{display:grid;grid-template-columns:minmax(150px,.36fr) minmax(260px,1fr);align-items:center;gap:5px 12px;color:#42647a;font-size:.66rem;font-weight:950}
.livestream-motion-single-select select{min-width:0;min-height:38px}
.livestream-motion-single-select>small{grid-column:2;color:#7891a1;font-size:.57rem;font-weight:720;line-height:1.35}
.livestream-motion-config-fast{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;border-color:#b7ddc4;background:#f4fbf6;padding:12px 14px}
.livestream-motion-config-fast>div{display:grid;min-width:0;gap:2px}
.livestream-motion-config-fast>div>span{color:#4e8261;font-size:.52rem;font-weight:950;text-transform:uppercase}
.livestream-motion-config-fast>div>strong{color:#216f40;font-size:.72rem;font-weight:950}
.livestream-motion-config-fast>div>small{color:#668274;font-size:.58rem;font-weight:720;line-height:1.4}
.livestream-motion-config-fast .livestream-fast-dot{background:#269454;box-shadow:0 0 0 4px rgba(38,148,84,.12)}
.livestream-motion-config-fast.is-preparing{border-color:#ead8a6;background:#fffaf0}.livestream-motion-config-fast.is-preparing .livestream-fast-dot{background:#d59917;box-shadow:0 0 0 4px rgba(213,153,23,.13)}
.livestream-motion-config-fast.is-failed,.livestream-motion-config-fast.is-locked,.livestream-motion-config-fast.is-missing{border-color:#ebc9cf;background:#fff8f9}.livestream-motion-config-fast.is-failed .livestream-fast-dot,.livestream-motion-config-fast.is-locked .livestream-fast-dot,.livestream-motion-config-fast.is-missing .livestream-fast-dot{background:#c44e5c;box-shadow:0 0 0 4px rgba(196,78,92,.1)}
@media(max-width:700px){.livestream-motion-single-select{grid-template-columns:1fr}.livestream-motion-single-select>small{grid-column:1}.livestream-motion-config-fast{grid-template-columns:auto minmax(0,1fr)}.livestream-motion-config-fast>.secondary-submit{grid-column:1/-1;width:100%}}

/* Livestream dialogue bulk selection and completion progress v251 -------- */
.livestream-desk-completion{display:grid;gap:11px;margin-top:13px;border:1px solid #cbdde6;border-radius:8px;background:#fff;padding:12px 14px;letter-spacing:0}
.livestream-desk-completion-head{display:flex;align-items:end;justify-content:space-between;gap:12px}
.livestream-desk-completion-head>div{display:grid;gap:2px}
.livestream-desk-completion-head span{color:#4f7487;font-size:.52rem;font-weight:950;text-transform:uppercase;letter-spacing:0}
.livestream-desk-completion-head strong{color:#234c60;font-size:.79rem;font-weight:950}
.livestream-desk-completion-head small{color:#768d98;font-size:.56rem;font-weight:750}
.livestream-desk-completion-grid{display:grid;grid-template-columns:1fr 1fr;gap:0}
.livestream-completion-item{display:grid;gap:6px;min-width:0;padding:3px 18px 2px 0}
.livestream-completion-item+.livestream-completion-item{border-left:1px solid #dce7ec;padding-right:0;padding-left:18px}
.livestream-completion-item>div{display:flex;align-items:center;justify-content:space-between;gap:12px}
.livestream-completion-item>div>span{display:flex;min-width:0;align-items:center;gap:7px}
.livestream-completion-item i{display:grid;width:22px;height:22px;flex:0 0 22px;place-items:center;border-radius:6px;background:#dff4e9;color:#18704c;font-size:.61rem;font-style:normal;font-weight:950}
.livestream-completion-item.is-lipsync i{background:#eeeafd;color:#5d4ca7;font-size:.5rem}
.livestream-completion-item strong{overflow:hidden;color:#315768;font-size:.64rem;font-weight:950;text-overflow:ellipsis;white-space:nowrap}
.livestream-completion-item b{color:#18704c;font-size:.8rem;font-weight:950}
.livestream-completion-item.is-lipsync b{color:#5d4ca7}
.livestream-completion-item small{color:#758c97;font-size:.54rem;font-weight:800;text-align:right}
.livestream-completion-item progress{width:100%;height:8px;overflow:hidden;border:0;border-radius:4px;background:#e7eef1;appearance:none}
.livestream-completion-item progress::-webkit-progress-bar{border-radius:4px;background:#e7eef1}
.livestream-completion-item progress::-webkit-progress-value{border-radius:4px;background:#2a9a68}
.livestream-completion-item progress::-moz-progress-bar{border-radius:4px;background:#2a9a68}
.livestream-completion-item.is-lipsync progress::-webkit-progress-value{background:#7766c0}
.livestream-completion-item.is-lipsync progress::-moz-progress-bar{background:#7766c0}
.livestream-desk-bulk-toolbar{top:-20px;border-color:#b9d5df;background:rgba(247,251,252,.97)}
.livestream-desk-bulk-toolbar>div:last-child{align-items:center}
.livestream-desk-bulk-toolbar .primary-btn{min-width:142px;border-color:#208e83;background:#208e83;color:#fff}
.livestream-desk-bulk-toolbar [data-live-create-lipsync]{border-color:#6654b8;background:#6654b8;color:#fff}
.livestream-desk-bulk-toolbar .primary-btn:not(:disabled):hover,.livestream-desk-bulk-toolbar .primary-btn:not(:disabled):focus-visible{outline:2px solid rgba(32,142,131,.22);outline-offset:1px;filter:brightness(.96)}
.livestream-desk-bulk-toolbar [data-live-create-lipsync]:not(:disabled):hover,.livestream-desk-bulk-toolbar [data-live-create-lipsync]:not(:disabled):focus-visible{outline-color:rgba(102,84,184,.24)}
.livestream-desk-bulk-toolbar button:disabled{cursor:not-allowed;opacity:.5}
.livestream-desk-list-head,.livestream-desk-row{grid-template-columns:64px minmax(268px,330px) minmax(260px,1fr) 146px}
.livestream-desk-list-head{letter-spacing:0}
.livestream-desk-list-head>span:last-child{text-align:center}
.livestream-desk-row{position:relative;min-height:72px;cursor:pointer;user-select:none;transition:background-color .14s ease,box-shadow .14s ease}
.livestream-desk-row:hover{background:#f8fbfc}
.livestream-desk-row.selected{background:#edf8fd;box-shadow:inset 4px 0 0 #1688cf}
.livestream-desk-row:focus-visible{z-index:1;outline:2px solid #1688cf;outline-offset:-2px}
.livestream-desk-row-select{display:flex;align-items:center}
.livestream-desk-row-select>span{display:grid;width:32px;height:32px;place-items:center;border:1px solid #c5d9e3;border-radius:7px;background:#fff;color:#54778a;font-size:.6rem;font-weight:950;letter-spacing:0;transition:background-color .14s ease,border-color .14s ease,color .14s ease}
.livestream-desk-row.selected .livestream-desk-row-select>span{border-color:#1688cf;background:#1688cf;color:#fff;font-size:.78rem}
.livestream-desk-row-status{display:grid;grid-template-columns:1fr 1fr;gap:6px;min-width:0}
.livestream-desk-row-status>.livestream-media-state{display:flex;min-width:0;min-height:34px;align-items:center;gap:7px;border:1px solid #d5e1e7;border-radius:7px;background:#f7f9fa;color:#607985;padding:5px 8px;font-size:.57rem;font-weight:900;letter-spacing:0}
.livestream-media-state>i{display:grid;width:18px;height:18px;flex:0 0 18px;place-items:center;border-radius:50%;background:#e4eaed;color:#687d87;font-size:.65rem;font-style:normal;font-weight:950}
.livestream-media-state>b{overflow:hidden;font-size:inherit;font-weight:inherit;text-overflow:ellipsis;white-space:nowrap}
.livestream-desk-row-status>.livestream-media-state.is-done{border-color:#b9dfca;background:#eff9f3;color:#216e4c}
.livestream-media-state.is-done>i{background:#2b9869;color:#fff}
.livestream-desk-row-status>.livestream-media-state.is-working{border-color:#b7d8ed;background:#eff8fd;color:#1d6f9e}
.livestream-desk-row-status>.livestream-media-state.is-failed{border-color:#ebc6cd;background:#fff5f6;color:#a83548}
.livestream-media-state.is-failed>i{background:#bf4558;color:#fff}
.livestream-media-state-spinner{width:16px!important;height:16px!important;border:2px solid rgba(29,111,158,.2)!important;border-top-color:#1d6f9e!important;background:transparent!important;animation:previewSpin .72s linear infinite}
.livestream-desk-row-excerpt{display:-webkit-box;min-width:0;overflow:hidden;margin:0;border:0;background:transparent;color:#23495e;font-size:.71rem;font-weight:720;line-height:1.45;text-align:left;text-overflow:ellipsis;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.livestream-desk-row-excerpt:hover{color:#23495e;text-decoration:none}
.livestream-desk-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px}
.livestream-desk-row-actions .livestream-desk-result-button,.livestream-desk-row-actions .livestream-desk-row-edit,.livestream-desk-row-actions .livestream-desk-row-delete{display:grid;width:32px;height:32px;min-width:32px;place-items:center;border:1px solid #c7dce6;border-radius:7px;background:#fff;color:#27749b;padding:0;font-size:.75rem;line-height:1}
.livestream-desk-row-actions .livestream-desk-result-button.is-audio{border-color:#b9ddcb;background:#f3faf6;color:#207550}
.livestream-desk-row-actions .livestream-desk-result-button.is-video{border-color:#d0caec;background:#faf9ff;color:#5d4ca7}
.livestream-desk-row-actions .livestream-desk-row-edit{color:#27749b}
.livestream-desk-row-actions .livestream-desk-row-delete{border-color:#e5cbd0;background:#fffafa;color:#b43c50;font-size:.86rem}
.livestream-desk-row-actions button:not(:disabled):hover,.livestream-desk-row-actions button:not(:disabled):focus-visible{outline:2px solid rgba(39,116,155,.18);outline-offset:1px}
.livestream-desk-slot{grid-template-columns:64px minmax(268px,330px) minmax(260px,1fr) 146px!important;cursor:default}
@media(max-width:1100px){.livestream-desk-list-head,.livestream-desk-row{grid-template-columns:58px minmax(238px,280px) minmax(220px,1fr) 146px}.livestream-desk-slot{grid-template-columns:58px minmax(238px,280px) minmax(220px,1fr) 146px!important}.livestream-desk-row-status>.livestream-media-state{padding:5px 6px;font-size:.53rem}}
@media(max-width:900px){.livestream-desk-completion-grid{grid-template-columns:1fr 1fr}.livestream-desk-bulk-toolbar{position:static}.livestream-desk-bulk-toolbar>div:last-child{justify-content:flex-start}.livestream-desk-row{grid-template-columns:48px minmax(0,1fr) 146px}.livestream-desk-row-status{grid-column:2;grid-row:1}.livestream-desk-row-excerpt{grid-column:1/-1;grid-row:2}.livestream-desk-row-actions{grid-column:3;grid-row:1}.livestream-desk-slot{grid-template-columns:48px minmax(0,1fr) 146px!important}.livestream-desk-slot-copy{grid-column:1/-1;grid-row:2}.livestream-desk-slot-tail{grid-column:3;grid-row:1}}
@media(max-width:620px){.livestream-desk-completion-head{align-items:start;flex-direction:column;gap:3px}.livestream-desk-completion-grid{grid-template-columns:1fr}.livestream-completion-item{padding-right:0}.livestream-completion-item+.livestream-completion-item{border-top:1px solid #dce7ec;border-left:0;padding-top:10px;padding-left:0}.livestream-desk-bulk-toolbar>div:last-child{display:grid;grid-template-columns:1fr 1fr;width:100%}.livestream-desk-bulk-toolbar button{width:100%;min-width:0}.livestream-desk-bulk-toolbar .primary-btn{min-width:0}.livestream-desk-row{grid-template-columns:42px minmax(0,1fr) 132px;padding:8px}.livestream-desk-row-select>span{width:30px;height:30px}.livestream-desk-row-status{grid-column:1/-1;grid-row:2;gap:4px}.livestream-desk-row-excerpt{grid-column:2;grid-row:1;align-self:center;-webkit-line-clamp:2}.livestream-desk-row-status>.livestream-media-state{min-height:31px;padding:4px 7px;font-size:.52rem}.livestream-media-state>i{width:15px;height:15px;flex-basis:15px;font-size:.55rem}.livestream-desk-row-actions{gap:4px}.livestream-desk-row-actions .livestream-desk-result-button,.livestream-desk-row-actions .livestream-desk-row-edit,.livestream-desk-row-actions .livestream-desk-row-delete{width:30px;height:30px;min-width:30px}.livestream-desk-slot{grid-template-columns:42px minmax(0,1fr) 132px!important}.livestream-desk-slot .livestream-desk-row-status{grid-column:2;grid-row:1}.livestream-desk-slot-copy{grid-column:1/-1;grid-row:2}}
@media(prefers-reduced-motion:reduce){.livestream-desk-row{transition:none}.livestream-media-state-spinner{animation:none}}

/* Livestream final lipsync step: mismatch, standard, and Fast. */
.livestream-lipsync-segments{grid-template-columns:repeat(3,minmax(0,1fr))}
.livestream-desk-lipsync-action .livestream-lipsync-model.is-compact{grid-template-columns:minmax(170px,.34fr) minmax(430px,1fr)}
.livestream-mismatch-readiness{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:9px;border-top:1px solid #d9e5ea;padding-top:9px}
.livestream-mismatch-readiness>div{display:grid;min-width:0;gap:2px}
.livestream-mismatch-readiness strong{color:#7e5a13;font-size:.65rem;font-weight:950}
.livestream-mismatch-readiness small{color:#70848f;font-size:.56rem;font-weight:740;line-height:1.45}
.livestream-mismatch-readiness.is-ready .livestream-fast-dot{background:#269454;box-shadow:0 0 0 4px rgba(38,148,84,.12)}
.livestream-mismatch-readiness.is-ready strong{color:#217443}
.livestream-mismatch-source-note{display:grid;min-width:min(100%,430px);gap:3px;border-left:3px solid #269454;padding:4px 0 4px 10px}
.livestream-mismatch-source-note strong{color:#216e4c!important}
.livestream-mismatch-source-note span{color:#536f7e;font-size:.59rem;line-height:1.45}
.livestream-motion-config-mismatch{grid-template-columns:auto minmax(0,1fr) auto;border-color:#b9dfca;background:#f4fbf7}
.livestream-motion-config-mismatch>div{display:grid;gap:2px}
.livestream-motion-config-mismatch>div>span{color:#4f7b65;font-size:.62rem;font-weight:950}
.livestream-motion-config-mismatch>div>strong{color:#216e4c}
.livestream-motion-config-mismatch>div>small{color:#607c6d}
.livestream-mismatch-source-card{border-color:#b9dfca;background:#f4fbf7}
.livestream-standard-source-controls{grid-column:1/-1;display:grid;grid-template-columns:minmax(220px,1fr) auto minmax(220px,1fr);align-items:end;gap:6px 10px;width:100%;border-top:1px solid #cfe1ea;padding-top:10px}
.livestream-desk-mini-action .livestream-standard-source-controls label{display:grid;align-items:stretch;gap:4px;min-width:0;color:#3f657b;font-size:.58rem;font-weight:950}
.livestream-standard-source-controls select,.livestream-standard-source-controls input[type="file"]{width:100%;min-width:0;min-height:36px;border:1px solid #bcd4e1;border-radius:7px;background:#fff;color:#244f68;padding:6px 8px;font:inherit;font-size:.62rem;font-weight:760;outline:none}
.livestream-standard-source-controls select:focus,.livestream-standard-source-controls input[type="file"]:focus{border-color:#2c89b4;box-shadow:0 0 0 3px rgba(44,137,180,.12)}
.livestream-standard-source-controls>span{align-self:end;padding-bottom:10px;color:#78909e;font-size:.55rem;font-weight:900;text-align:center}
.livestream-standard-source-controls>small{grid-column:1/-1;color:#607b8a;font-size:.56rem;font-weight:740;line-height:1.4}
@media(max-width:900px){.livestream-desk-lipsync-action .livestream-lipsync-model.is-compact{grid-template-columns:1fr}.livestream-lipsync-segments{grid-template-columns:1fr 1fr 1fr}}
@media(max-width:700px){.livestream-lipsync-segments{grid-template-columns:1fr}.livestream-motion-config-mismatch{grid-template-columns:auto minmax(0,1fr)}.livestream-motion-config-mismatch>button{grid-column:1/-1;width:100%}.livestream-standard-source-controls{grid-template-columns:1fr}.livestream-standard-source-controls>span{padding:0;text-align:left}.livestream-standard-source-controls>small{grid-column:1}}

/* Character setup status is separate from the underlying image job status. */
.motion-flow-ready.is-draft,.step-pill.is-draft{border-color:#f0d49d;background:#fff8e9;color:#93641f}
.motion-flow-ready.is-empty{border-color:#d5e2e9;background:#f5f8fa;color:#718795}
.motion-flow-ready.is-ready{border-color:#bde7cf;background:#f0fbf4;color:#25834a}
.status.draft{background:#f2b94b;color:#fff}

/* Public Studio hero: keep every mobile track inside the viewport.  The
   assistant contains long labels and a chat form, so relying on the grid
   item's automatic minimum can still push the CTA row past a narrow screen. */
@media (max-width: 760px) {
  .public-hero,
  .public-hero-copy,
  .hero-assistant,
  .hero-actions,
  .public-hero .assistant-model-shell,
  .public-hero .assistant-model-stage,
  .public-hero .assistant-chat-panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .public-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .public-hero-copy {
    max-width: none;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .hero-actions > * {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .public-hero .assistant-model-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .public-hero .assistant-chat-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .public-hero .assistant-chat-form > * {
    min-width: 0;
    max-width: 100%;
  }
}
/* Payment conversion surface: promotion, verified activity and current plans. */
.payment-sales-shell .payment-promotion-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 22px;padding:13px 15px;border:1px solid #f2c86d;border-radius:14px;background:linear-gradient(105deg,#fff9e8 0%,#fff4cf 58%,#fffaf0 100%);box-shadow:0 10px 24px rgba(190,132,22,.09)}
.payment-sales-shell .payment-promotion-bar[hidden]{display:none}
.payment-promotion-copy{display:flex;align-items:center;gap:12px;min-width:0}.payment-promotion-copy>div{display:grid;gap:3px;min-width:0}.payment-promotion-copy strong{color:#784e05;font-size:.82rem;line-height:1.3;font-weight:950}.payment-promotion-copy small{color:#967331;font-size:.69rem;line-height:1.35;font-weight:750}.payment-promotion-badge{display:inline-flex;flex:0 0 auto;align-items:center;min-height:27px;padding:0 9px;border-radius:999px;background:#ef9b16;color:#fff;font-size:.64rem;font-weight:950;letter-spacing:.04em;box-shadow:0 6px 13px rgba(198,124,13,.2)}
.payment-countdown-wrap{display:grid;flex:0 0 auto;justify-items:end;gap:5px}.payment-countdown-wrap>span{color:#906b20;font-size:.64rem;font-weight:900}.payment-countdown{display:flex;align-items:center;gap:4px}.payment-countdown>span{display:grid;min-width:39px;padding:5px 5px 4px;border:1px solid #efca79;border-radius:7px;background:rgba(255,255,255,.8);text-align:center}.payment-countdown b{color:#6b4505;font-size:.9rem;line-height:1.05;font-variant-numeric:tabular-nums}.payment-countdown small{margin-top:2px;color:#a17b32;font-size:.54rem;font-weight:850}.payment-countdown i{color:#b47d1e;font-size:.8rem;font-style:normal;font-weight:950}.payment-countdown[data-countdown-state="loading"]{opacity:.62}.payment-countdown[data-countdown-state="expired"]{filter:grayscale(.4);opacity:.68}.payment-sales-shell .payment-promotion-bar[data-promotion-state="expired"]{border-color:#d8e1e8;background:#f4f7f9;box-shadow:none}.payment-sales-shell .payment-promotion-bar[data-promotion-state="expired"] .payment-promotion-badge{background:#75899a;box-shadow:none}.payment-sales-shell .payment-promotion-bar[data-promotion-state="expired"] .payment-promotion-copy strong,.payment-sales-shell .payment-promotion-bar[data-promotion-state="expired"] .payment-promotion-copy small,.payment-sales-shell .payment-promotion-bar[data-promotion-state="expired"] .payment-countdown-wrap>span{color:#6e8190}

.payment-sales-layout{display:grid;grid-template-columns:minmax(214px,252px) minmax(0,1fr);gap:21px;align-items:start}.payment-sales-layout.coin-mode{grid-template-columns:minmax(0,1fr)}.payment-sales-main{min-width:0}.payment-activity-rail{position:sticky;top:18px;display:grid;align-content:start;gap:13px;min-width:0;padding:16px 14px;border:1px solid #cfe3f2;border-radius:16px;background:rgba(255,255,255,.93);box-shadow:0 13px 28px rgba(29,99,150,.1)}.payment-activity-rail[hidden]{display:none}.payment-activity-head{display:grid;gap:6px}.payment-activity-head h3{margin:0;color:#164968;font-size:.96rem;line-height:1.2;font-weight:950}.payment-activity-head p{margin:0;color:#71889a;font-size:.68rem;line-height:1.43;font-weight:700}.payment-activity-live{display:inline-flex;align-items:center;gap:5px;width:max-content;color:#08845f;font-size:.59rem;font-weight:950;letter-spacing:.045em}.payment-activity-live i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#19b879;box-shadow:0 0 0 4px rgba(25,184,121,.13);animation:paymentLivePulse 1.7s ease-in-out infinite}.payment-recent-sales{display:grid;gap:8px;max-height:425px;overflow:auto;padding:1px 3px 2px 0;scrollbar-width:thin;scrollbar-color:#bed9e9 transparent}.payment-activity-item{display:grid;gap:4px;padding:10px 9px;border:1px solid #e0edf5;border-radius:10px;background:#f8fcff;animation:paymentActivityIn .28s ease both}.payment-activity-item-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.payment-activity-check{display:grid;width:17px;height:17px;place-items:center;border-radius:50%;background:#daf6e9;color:#078257;font-size:.63rem;font-weight:950}.payment-activity-item time{color:#8a9eac;font-size:.57rem;font-weight:800;white-space:nowrap}.payment-activity-item>strong{overflow:hidden;color:#21516e;font-size:.69rem;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.payment-activity-item p{margin:0;color:#70899b;font-size:.64rem;line-height:1.35}.payment-activity-item p b{color:#0b77ba;font-weight:950}.payment-activity-empty{display:grid;gap:5px;padding:12px 10px;border:1px dashed #c4dce9;border-radius:10px;background:#f8fcff;color:#6e8798;font-size:.64rem;line-height:1.4}.payment-activity-empty strong{color:#245875;font-size:.69rem}.payment-activity-note{color:#8299a8;font-size:.59rem;line-height:1.4;font-weight:700}

.payment-billing-switch{display:flex;align-items:center;justify-content:space-between;gap:13px;margin:0 0 7px;padding:10px 11px;border:1px solid #c9e1f1;border-radius:12px;background:#fff;box-shadow:0 8px 17px rgba(26,103,158,.06)}.payment-billing-switch[hidden]{display:none}.payment-billing-label{color:#315d76;font-size:.71rem;font-weight:950}.payment-billing-tabs{display:grid;grid-template-columns:repeat(2,minmax(125px,1fr));gap:5px;width:min(365px,100%)}.payment-billing-tabs button{display:grid;gap:2px;min-height:46px;padding:7px 10px;border:1px solid transparent;border-radius:9px;background:#f2f8fc;color:#527086;text-align:left;cursor:pointer;transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease}.payment-billing-tabs button:hover{border-color:#8cccf0;background:#e9f7ff;color:#126da5;transform:translateY(-1px)}.payment-billing-tabs button[aria-selected="true"]{border-color:#087ede;background:linear-gradient(135deg,#e9f8ff,#f1edff);color:#086fba;box-shadow:0 7px 13px rgba(22,120,211,.13)}.payment-billing-tabs button b{font-size:.78rem;line-height:1.15;font-weight:950}.payment-billing-tabs button small{color:inherit;font-size:.59rem;line-height:1.15;font-weight:750}.payment-billing-note{margin:0 0 12px;color:#70889a;font-size:.67rem;line-height:1.4;font-weight:700}.payment-billing-note[hidden]{display:none}

.payment-sales-shell .payment-package-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:14px}.payment-sales-shell .payment-plan-card{display:flex;flex-direction:column;align-items:stretch;min-width:0;min-height:377px;padding:17px 16px 15px;gap:9px;border-radius:15px}.payment-card-badges{display:flex;align-items:center;flex-wrap:wrap;gap:5px;min-height:23px}.payment-tier-badge,.payment-best-badge{display:inline-flex;align-items:center;min-height:21px;padding:0 7px;border:1px solid #c9e3f2;border-radius:999px;background:#eff9ff;color:#1475a8;font-size:.55rem;font-weight:950;letter-spacing:.055em}.payment-best-badge{border-color:#f0c46c;background:#fff5d9;color:#9a6506}.payment-best-badge.muted{border-color:#cbbef4;background:#f3efff;color:#694bc2}.payment-card-title{display:block;max-width:100%!important;min-height:35px;color:#153b58!important;font-size:1.04rem!important;line-height:1.28!important;font-weight:950!important}.payment-card-description{min-height:48px!important;margin:0!important;color:#668198!important;font-size:.72rem!important;line-height:1.44!important;font-weight:650!important}.payment-package-features{display:grid;align-content:start;gap:5px;min-height:105px;padding:8px 0 2px;border-top:1px solid #e1edf4}.payment-package-features span{color:#3d6a80;font-size:.67rem;line-height:1.35;font-weight:750}.payment-package-features span::first-letter{color:#07926e}.payment-card-price-row{display:flex;align-items:flex-end;justify-content:space-between;gap:7px;min-height:52px;margin-top:auto}.payment-price-stack{display:grid;min-width:0;gap:2px}.payment-price-stack del{color:#91a2ae;font-size:.68rem;line-height:1.15;font-weight:750}.payment-price-stack strong{display:block;max-width:none!important;color:#102f4a!important;font-size:1.38rem!important;line-height:1.08!important;font-weight:950!important;letter-spacing:-.035em}.payment-discount-badge{display:inline-flex;align-items:center;min-height:23px;padding:0 7px;border-radius:7px;background:#e8f8ed;color:#11804f;font-size:.63rem;font-weight:950;white-space:nowrap}.payment-monthly-equivalent{display:block;min-height:18px;color:#2f8a72;font-size:.61rem;line-height:1.3;font-weight:850}.payment-package-cta{display:flex!important;align-items:center;justify-content:space-between;gap:8px;width:100%;margin-top:3px!important;padding:0 11px!important;border-radius:9px!important}.payment-package-cta>span{color:inherit;font-size:.68rem;font-weight:800}.payment-package-cta b{font-size:.72rem!important;white-space:nowrap}.payment-sales-shell .payment-plan-card.tier-pro{border-color:#a9c8f4;background:linear-gradient(160deg,#fff 0%,#f3f8ff 100%)}.payment-sales-shell .payment-plan-card.tier-business{border-color:#b8d9d0;background:linear-gradient(160deg,#fff 0%,#f3fbf8 100%)}.payment-sales-shell .payment-plan-card.is-best{border:2px solid #7961ee;background:linear-gradient(155deg,#fbfaff 0%,#fff 52%,#effaff 100%);box-shadow:0 18px 34px rgba(100,76,211,.2);transform:translateY(-4px)}.payment-sales-shell .payment-plan-card.is-best:hover,.payment-sales-shell .payment-plan-card.is-best:focus-visible{transform:translateY(-8px);box-shadow:0 24px 40px rgba(100,76,211,.24)}.payment-sales-shell .payment-plan-card.is-best .payment-tier-badge{border-color:#bcb0fa;background:#f1edff;color:#6246c1}.payment-sales-layout.coin-mode .payment-package-grid{grid-template-columns:repeat(auto-fit,minmax(205px,1fr))}.payment-sales-layout.coin-mode .payment-plan-card{min-height:265px}

@keyframes paymentLivePulse{0%,100%{box-shadow:0 0 0 3px rgba(25,184,121,.1)}50%{box-shadow:0 0 0 6px rgba(25,184,121,.03)}}@keyframes paymentActivityIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(max-width:1120px){.payment-sales-layout{grid-template-columns:minmax(195px,220px) minmax(0,1fr);gap:16px}.payment-sales-shell .payment-package-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.payment-sales-shell .payment-plan-card.is-best{transform:none}.payment-sales-shell .payment-plan-card.is-best:hover,.payment-sales-shell .payment-plan-card.is-best:focus-visible{transform:translateY(-5px)}.payment-promotion-bar{align-items:flex-start;flex-direction:column}.payment-countdown-wrap{width:100%;justify-items:start}.payment-countdown{width:100%;max-width:300px}}
@media(max-width:900px){.payment-sales-layout,.payment-sales-layout.coin-mode{grid-template-columns:minmax(0,1fr)}.payment-activity-rail{position:static;order:0}.payment-sales-main{order:1}.payment-recent-sales{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none}.payment-activity-empty{grid-column:1/-1}.payment-billing-switch{align-items:flex-start;flex-direction:column}.payment-billing-tabs{width:100%}.payment-sales-shell .payment-package-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.payment-sales-shell .payment-promotion-bar{align-items:stretch;padding:12px}.payment-promotion-copy{align-items:flex-start}.payment-promotion-copy strong{font-size:.76rem}.payment-promotion-copy small{font-size:.64rem}.payment-countdown-wrap{justify-items:stretch}.payment-countdown{max-width:none}.payment-countdown>span{flex:1;min-width:0}.payment-sales-layout{gap:14px}.payment-activity-rail{padding:13px 11px}.payment-recent-sales{grid-template-columns:1fr}.payment-billing-tabs{grid-template-columns:1fr}.payment-sales-shell .payment-package-grid,.payment-sales-layout.coin-mode .payment-package-grid{grid-template-columns:1fr}.payment-sales-shell .payment-plan-card{min-height:0}.payment-sales-shell .payment-plan-card.is-best{transform:none}.payment-card-description{min-height:0!important}.payment-package-features{min-height:0}.payment-sales-shell .payment-sales-trust{grid-template-columns:1fr}}

body[data-app-view="payment"] .support-quick-links{right:max(18px,env(safe-area-inset-right));bottom:max(78px,calc(env(safe-area-inset-bottom) + 68px));flex-direction:column}
body[data-app-view="payment"] .support-widget-launcher{width:48px;min-width:48px;padding:0}
body[data-app-view="payment"] .support-widget-launcher-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(max-width:1120px){body[data-app-view="payment"] .support-quick-links,body[data-app-view="payment"] .support-widget{display:none}}

/* Payment campaign strip: no customer or transaction data is displayed. */
.payment-sales-layout,.payment-sales-layout.coin-mode{grid-template-columns:minmax(0,1fr)}
.payment-birthday-offer{display:grid;grid-template-columns:62px minmax(190px,.62fr) minmax(480px,1.45fr);align-items:center;gap:15px;margin:0 28px 22px;padding:14px 16px;border:1px solid #ffc55d;border-radius:10px;background:linear-gradient(120deg,#fff5c7 0%,#ffe7ef 48%,#e2faff 100%);box-shadow:0 16px 38px rgba(255,111,97,.2),0 0 28px rgba(24,186,211,.18),inset 0 1px rgba(255,255,255,.96);color:#173447;animation:paymentBirthdayGlow 3s ease-in-out infinite}.payment-birthday-mark{display:grid;width:56px;height:56px;place-items:center;align-content:center;border:1px solid #ff765f;border-radius:8px;background:linear-gradient(145deg,#ff665d,#ffb13b);box-shadow:0 9px 22px rgba(255,102,93,.28);color:#fff}.payment-birthday-mark strong{font-size:1.45rem;line-height:1}.payment-birthday-mark span{font-size:.48rem;font-weight:950}.payment-birthday-copy{display:grid;gap:3px}.payment-birthday-copy>span{color:#cc3d55;font-size:.6rem;font-weight:950}.payment-birthday-copy>strong{font-size:.8rem;line-height:1.35}.payment-birthday-copy>small{color:#087f96;font-size:.7rem;font-weight:850}.payment-birthday-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.payment-birthday-options>span{display:grid;align-content:center;min-height:63px;padding:8px 9px;border:1px solid rgba(255,126,88,.34);border-left:3px solid #ff715c;border-radius:7px;background:rgba(255,255,255,.82);box-shadow:0 7px 16px rgba(87,72,44,.08)}.payment-birthday-options>span:nth-child(2){border-left-color:#11a9c4}.payment-birthday-options>span:nth-child(3){border-color:rgba(214,153,27,.46);border-left-color:#dfa019;background:linear-gradient(145deg,#fffef7,#fff2bf);box-shadow:0 8px 18px rgba(223,160,25,.15)}.payment-birthday-options small{color:#9f493f;font-size:.48rem;font-weight:950}.payment-birthday-options strong{margin-top:2px;color:#173447;font-size:.64rem;line-height:1.3}.payment-birthday-options em{margin-top:2px;color:#07839b;font-size:.54rem;font-style:normal;font-weight:900}.payment-birthday-offer>p{grid-column:2/-1;margin:0;color:#5f7280;font-size:.58rem;font-weight:750;line-height:1.45}.payment-birthday-offer>p::before{content:"✓ ";color:#d34458;font-weight:950}@keyframes paymentBirthdayGlow{0%,100%{box-shadow:0 15px 36px rgba(255,111,97,.16),0 0 22px rgba(24,186,211,.14),inset 0 1px rgba(255,255,255,.96)}50%{box-shadow:0 18px 44px rgba(255,111,97,.27),0 0 34px rgba(24,186,211,.24),inset 0 1px rgba(255,255,255,.96)}}
@media(max-width:1080px){.payment-birthday-offer{grid-template-columns:56px minmax(0,1fr)}.payment-birthday-options,.payment-birthday-offer>p{grid-column:1/-1}}
@media(max-width:760px){.payment-birthday-offer{grid-template-columns:52px minmax(0,1fr);margin:0 14px 16px;padding:12px;gap:10px}.payment-birthday-mark{width:48px;height:48px}.payment-birthday-options{grid-template-columns:1fr}.payment-birthday-offer>p{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.payment-birthday-offer{animation:none}}
.payment-sales-shell .payment-promotion-bar{position:relative;z-index:3;display:flex;align-items:center;justify-content:center;gap:14px;min-height:56px;margin:0;padding:9px clamp(16px,4vw,42px);border:0;border-radius:25px 25px 0 0;background:#b62c31;box-shadow:inset 0 -1px rgba(255,255,255,.18),0 8px 24px rgba(112,15,20,.2);color:#fff}
.payment-sales-shell .payment-plan-card.tier-trial{border-color:#f1b39d;background:linear-gradient(160deg,#fff 0%,#fff6f2 100%)}.payment-sales-shell .payment-plan-card.tier-trial .payment-tier-badge{border-color:#f3c0ad;background:#fff0e9;color:#b64f31}
.payment-sales-shell .payment-promotion-bar[hidden]{display:none}
.payment-promotion-copy{display:flex;align-items:center;gap:9px;min-width:0}.payment-promotion-copy strong{display:flex;align-items:center;gap:5px;color:#fff;font-size:.77rem;line-height:1.25;font-weight:950;white-space:nowrap}.payment-promotion-pulse{display:block;flex:0 0 auto;width:11px;height:11px;border-radius:50%;background:#e84e54;box-shadow:0 0 0 5px rgba(255,116,121,.13);animation:paymentPromotionPulse 1.35s ease-in-out infinite}.payment-promotion-bolt{color:#ffd256;font-size:.9rem;line-height:1}
.payment-sales-shell .payment-countdown{display:flex;align-items:center;gap:4px;flex:0 0 auto;min-height:34px;padding:5px 9px;border:1px solid rgba(255,255,255,.12);border-radius:5px;background:rgba(75,11,15,.42);box-shadow:inset 0 1px 6px rgba(39,0,3,.16);font-variant-numeric:tabular-nums}.payment-sales-shell .payment-countdown>span{display:flex;align-items:baseline;justify-content:center;gap:1px;min-width:33px;padding:0;border:0;border-radius:0;background:transparent}.payment-sales-shell .payment-countdown b{color:#ffdc5e;font-size:.81rem;line-height:1;font-weight:950}.payment-sales-shell .payment-countdown small{margin:0;color:#ffdc5e;font-size:.52rem;line-height:1;font-weight:900}.payment-sales-shell .payment-countdown>i{color:rgba(255,255,255,.72);font-size:.7rem;font-style:normal;font-weight:950}.payment-sales-shell .payment-countdown[data-countdown-state="loading"]{opacity:.68}
.payment-promotion-cta{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:110px;min-height:34px;padding:0 17px;border:1px solid rgba(255,255,255,.92);border-radius:999px;background:#fff;color:#c02d33;font-size:.7rem;font-weight:950;box-shadow:0 6px 14px rgba(74,7,10,.18);transition:transform .16s ease,box-shadow .16s ease,background .16s ease}.payment-promotion-cta:hover,.payment-promotion-cta:focus-visible{background:#fff8f8;box-shadow:0 9px 18px rgba(74,7,10,.24);outline:2px solid rgba(255,255,255,.82);outline-offset:2px;transform:translateY(-1px)}
@keyframes paymentPromotionPulse{0%,100%{opacity:.72;transform:scale(.82)}50%{opacity:1;transform:scale(1.08);box-shadow:0 0 0 7px rgba(255,116,121,.08)}}
@media(max-width:760px){.payment-sales-shell .payment-promotion-bar{flex-wrap:wrap;gap:8px 10px;min-height:86px;padding:10px 12px;border-radius:17px 17px 0 0}.payment-promotion-copy{flex:1 0 100%;justify-content:center}.payment-promotion-copy strong{font-size:.68rem;white-space:normal;text-align:center}.payment-promotion-pulse{width:9px;height:9px}.payment-sales-shell .payment-countdown{min-height:32px;padding:4px 6px}.payment-sales-shell .payment-countdown>span{min-width:28px}.payment-sales-shell .payment-countdown b{font-size:.75rem}.payment-sales-shell .payment-countdown small{font-size:.47rem}.payment-promotion-cta{min-width:92px;min-height:32px;padding:0 12px;font-size:.64rem}}
@media(max-width:380px){.payment-sales-shell .payment-promotion-bar{gap:7px 8px;padding-inline:8px}.payment-sales-shell .payment-countdown{gap:2px;padding-inline:4px}.payment-sales-shell .payment-countdown>span{min-width:26px}.payment-promotion-cta{min-width:84px;padding-inline:9px}}
@media(prefers-reduced-motion:reduce){.payment-sales-shell *,.payment-sales-shell *::before,.payment-sales-shell *::after{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.001ms!important}.payment-sales-shell .payment-plan-card.is-best{transform:none}}

/* Payment pricing v6: benefit-first cards (Free / Basic / Pro / Business). */
.payment-sales-shell{
  --pay-ink:#142f48;
  --pay-muted:#637c90;
  --pay-line:#d9e8f2;
  --pay-accent:#1687e8;
  --pay-accent-dark:#0967b5;
  --pay-soft:#eef8ff;
  --pay-glow:rgba(22,135,232,.16);
}
.payment-sales-shell .payment-sales-body{padding-bottom:clamp(34px,5vw,58px)}
.payment-sales-shell .payment-sales-heading{margin-bottom:24px}
.payment-sales-shell .payment-sales-heading h2{letter-spacing:-.045em}
.payment-sales-shell .payment-sales-heading p{max-width:720px}

/* The grid adapts to whichever catalog is available: three live plans remain balanced,
   while a Free plan automatically makes a four-card desktop row. */
.payment-sales-shell .payment-package-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(235px,1fr));
  align-items:stretch;
  gap:18px;
}
.payment-sales-shell .payment-package-group{gap:14px}
.payment-sales-shell .payment-group-title{
  min-height:30px;
  color:#214f70;
  font-size:.8rem;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.payment-sales-shell .payment-group-title::after{background:linear-gradient(90deg,#cfe5f4,transparent)}

.payment-sales-shell .payment-package-card.payment-plan-card{
  --pay-card-line:var(--pay-line);
  --pay-card-soft:var(--pay-soft);
  --pay-card-accent:var(--pay-accent);
  --pay-card-dark:var(--pay-accent-dark);
  --pay-card-glow:var(--pay-glow);
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  min-width:0;
  min-height:474px;
  padding:0 19px 18px;
  gap:0;
  border:1px solid var(--pay-card-line);
  border-radius:22px;
  background:
    radial-gradient(circle at 100% 0,var(--pay-card-glow),transparent 34%),
    linear-gradient(155deg,#fff 0%,#fbfdff 56%,var(--pay-card-soft) 145%);
  color:var(--pay-ink);
  text-align:left;
  font:inherit;
  box-shadow:0 13px 28px rgba(25,94,143,.09),inset 0 1px 0 rgba(255,255,255,.98);
  isolation:isolate;
  overflow:hidden;
  cursor:pointer;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease,filter .22s ease;
}
.payment-sales-shell .payment-package-card.payment-plan-card::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0 0 auto;
  height:6px;
  background:linear-gradient(90deg,var(--pay-card-accent),color-mix(in srgb,var(--pay-card-accent),#fff 38%));
  opacity:.96;
}
.payment-sales-shell .payment-package-card.payment-plan-card::after{
  content:"";
  position:absolute;
  z-index:-1;
  right:-58px;
  bottom:-75px;
  width:188px;
  height:188px;
  border:28px solid color-mix(in srgb,var(--pay-card-accent),transparent 90%);
  border-radius:50%;
  pointer-events:none;
}
.payment-sales-shell .payment-package-card.payment-plan-card:hover,
.payment-sales-shell .payment-package-card.payment-plan-card:focus-visible{
  border-color:color-mix(in srgb,var(--pay-card-accent),#fff 24%);
  box-shadow:0 22px 42px rgba(25,94,143,.17),0 0 0 4px color-mix(in srgb,var(--pay-card-accent),transparent 89%);
  transform:translateY(-6px);
  outline:0;
}
.payment-sales-shell .payment-package-card.payment-plan-card:active{transform:translateY(-2px)}
.payment-sales-shell .payment-package-card.payment-plan-card[disabled]{filter:saturate(.55);opacity:.64;cursor:wait;transform:none;box-shadow:none}
.payment-sales-shell .payment-package-card.is-payment-maintenance{border-color:#f0d59a;background:linear-gradient(155deg,#fffdf5,#fff9e8);}
.payment-sales-shell .payment-package-card.is-payment-maintenance::before{background:linear-gradient(90deg,#f2b84b,#e58c2f);}
.payment-sales-shell .payment-package-card.is-payment-maintenance .payment-package-cta{background:linear-gradient(135deg,#8c6b31,#b58632);box-shadow:0 8px 16px rgba(166,116,31,.18);}
.payment-sales-shell .payment-package-card.is-payment-maintenance .payment-cta-helper{color:#fff6d7;}

/* Tier accents make the value ladder readable at a glance. */
.payment-sales-shell .payment-plan-card.tier-free{
  --pay-card-line:#bfe8d9;
  --pay-card-soft:#effbf6;
  --pay-card-accent:#18a37e;
  --pay-card-dark:#0b7b60;
  --pay-card-glow:rgba(24,163,126,.16);
}
.payment-sales-shell .payment-plan-card.tier-basic{
  --pay-card-line:#c4e2f6;
  --pay-card-soft:#eef8ff;
  --pay-card-accent:#1588dc;
  --pay-card-dark:#0867ae;
  --pay-card-glow:rgba(21,136,220,.16);
}
.payment-sales-shell .payment-plan-card.tier-pro{
  --pay-card-line:#cfc4fb;
  --pay-card-soft:#f5f1ff;
  --pay-card-accent:#7658df;
  --pay-card-dark:#5a3fbd;
  --pay-card-glow:rgba(118,88,223,.2);
}
.payment-sales-shell .payment-plan-card.tier-business{
  --pay-card-line:#ecd3bb;
  --pay-card-soft:#fff6ed;
  --pay-card-accent:#c8742b;
  --pay-card-dark:#9d5317;
  --pay-card-glow:rgba(200,116,43,.18);
}
.payment-sales-shell .payment-plan-card.tier-coin,
.payment-sales-shell .payment-plan-card.payment-coin-card{
  --pay-card-line:#bde6ed;
  --pay-card-soft:#effcff;
  --pay-card-accent:#0e9caf;
  --pay-card-dark:#087486;
  --pay-card-glow:rgba(14,156,175,.17);
}

.payment-sales-shell .payment-card-badges{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:6px;
  min-height:48px;
  padding-top:18px;
}
.payment-sales-shell .payment-tier-badge{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 9px;
  border:1px solid color-mix(in srgb,var(--pay-card-accent),#fff 67%);
  border-radius:999px;
  background:var(--pay-card-soft);
  color:var(--pay-card-dark);
  font-size:.58rem;
  font-weight:950;
  letter-spacing:.095em;
}
.payment-sales-shell .payment-best-badge{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 9px;
  border:1px solid #efc665;
  border-radius:999px;
  background:#fff4ce;
  color:#955d00;
  font-size:.57rem;
  font-weight:950;
  letter-spacing:.06em;
  box-shadow:0 4px 10px rgba(189,124,9,.12);
}
.payment-sales-shell .payment-plan-card.tier-pro .payment-tier-badge{border-color:#c9bdf9;background:#f0ecff;color:#5c40bd}
.payment-sales-shell .payment-plan-card.tier-business .payment-tier-badge{border-color:#efd0b2;background:#fff1e2;color:#9d5317}
.payment-sales-shell .payment-plan-card.tier-free .payment-tier-badge{border-color:#b8e4d1;background:#edfbf5;color:#0c7e62}
.payment-sales-shell .payment-best-badge.muted{border-color:#d1c7fa;background:#f1edff;color:#6348bd;box-shadow:none}

.payment-sales-shell .payment-card-heading{
  display:grid;
  gap:6px;
  min-height:79px;
  padding-top:12px;
}
.payment-sales-shell .payment-card-eyebrow{
  display:block;
  overflow:hidden;
  color:var(--pay-card-dark);
  font-size:.59rem;
  font-weight:950;
  letter-spacing:.075em;
  line-height:1.25;
  text-overflow:ellipsis;
  text-transform:uppercase;
  white-space:nowrap;
}
.payment-sales-shell .payment-card-title{
  display:block!important;
  max-width:100%!important;
  min-height:0!important;
  color:#122f49!important;
  font-size:1.24rem!important;
  line-height:1.16!important;
  font-weight:950!important;
  letter-spacing:-.035em!important;
}
.payment-sales-shell .payment-card-description{
  display:-webkit-box;
  min-height:55px!important;
  margin:0!important;
  overflow:hidden;
  color:#647d91!important;
  font-size:.75rem!important;
  line-height:1.48!important;
  font-weight:650!important;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
}

.payment-sales-shell .payment-card-benefits-title{
  display:block;
  margin:12px 0 0;
  color:#547389;
  font-size:.62rem;
  font-weight:950;
  letter-spacing:.075em;
  line-height:1.2;
  text-transform:uppercase;
}
.payment-sales-shell .payment-package-features{
  display:grid;
  align-content:start;
  gap:9px;
  min-height:146px;
  margin-top:8px;
  padding:12px 0 13px;
  border-top:1px solid color-mix(in srgb,var(--pay-card-line),#fff 18%);
  border-bottom:1px solid color-mix(in srgb,var(--pay-card-line),#fff 18%);
  color:#3a6076;
  font-size:.69rem;
  line-height:1.35;
  font-weight:740;
}
.payment-sales-shell .payment-package-features>span:not(.payment-feature-item){
  display:flex;
  align-items:flex-start;
  gap:7px;
}
.payment-sales-shell .payment-package-features>span:not(.payment-feature-item)::first-letter{color:var(--pay-card-accent)}
.payment-sales-shell .payment-feature-item{
  display:grid;
  grid-template-columns:20px minmax(0,1fr);
  align-items:start;
  gap:8px;
  min-width:0;
  color:#365f76;
  font-size:.69rem;
  line-height:1.36;
  font-weight:740;
}
.payment-sales-shell .payment-feature-icon{
  display:grid;
  place-items:center;
  width:19px;
  height:19px;
  border:1px solid color-mix(in srgb,var(--pay-card-accent),#fff 60%);
  border-radius:6px;
  background:var(--pay-card-soft);
  color:var(--pay-card-dark);
  font-size:.63rem;
  font-weight:950;
  line-height:1;
}
.payment-sales-shell .payment-feature-copy{display:block;min-width:0}
.payment-sales-shell .payment-feature-copy strong{color:#2c5870;font-weight:900}
.payment-sales-shell .payment-feature-copy small{display:block;margin-top:2px;color:#7690a1;font-size:.61rem;line-height:1.32;font-weight:650}
.payment-sales-shell .payment-feature-item.is-primary .payment-feature-copy{color:var(--pay-card-dark);font-weight:900}

.payment-sales-shell .payment-card-requirements{
  display:grid;
  gap:6px;
  min-height:42px;
  padding-top:11px;
}
.payment-sales-shell .payment-card-requirement{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  color:#71899a;
  font-size:.62rem;
  line-height:1.3;
}
.payment-sales-shell .payment-card-requirement b{color:#4f7186;font-weight:900}
.payment-sales-shell .payment-card-requirement small{display:-webkit-box;max-width:72%;overflow:hidden;color:#71899a;font-size:inherit;font-weight:700;line-height:1.35;text-align:right;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2}

.payment-sales-shell .payment-card-price-row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:8px;
  min-height:67px;
  margin-top:0;
  padding-top:12px;
}
.payment-sales-shell .payment-price-stack{display:grid;min-width:0;gap:3px}
.payment-sales-shell .payment-price-was{display:flex;align-items:baseline;gap:4px;color:#849baa;font-size:.59rem;font-weight:750;line-height:1.15}
.payment-sales-shell .payment-price-was.is-placeholder{visibility:hidden}
.payment-sales-shell .payment-price-compare-label{color:#849baa;font-size:.59rem;font-weight:750;line-height:1.15}
.payment-sales-shell .payment-price-stack del{color:#99aab6;font-size:.69rem;line-height:1.15;font-weight:750}
.payment-sales-shell .payment-price-current{display:flex;align-items:baseline;gap:5px;min-width:0}
.payment-sales-shell .payment-price-stack strong{
  display:block;
  max-width:100%!important;
  overflow:hidden;
  color:#112f49!important;
  font-size:1.52rem!important;
  line-height:1.06!important;
  font-weight:950!important;
  letter-spacing:-.045em!important;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.payment-sales-shell .payment-price-current small{color:#70899a;font-size:.61rem;line-height:1.15;font-weight:750;white-space:nowrap}
.payment-sales-shell .payment-price-cycle{color:#70899a;font-size:.61rem;font-weight:750;line-height:1.15}
.payment-sales-shell .payment-discount-badge{
  display:inline-flex;
  align-items:center;
  align-self:flex-start;
  min-height:25px;
  margin-top:7px;
  padding:0 8px;
  border:1px solid #b9e4cc;
  border-radius:999px;
  background:#ecfbf1;
  color:#0c8755;
  font-size:.61rem;
  font-weight:950;
  white-space:nowrap;
}
.payment-sales-shell .payment-monthly-equivalent,
.payment-sales-shell .payment-card-saving{
  display:grid;
  gap:2px;
  min-height:31px;
  margin-top:5px;
  color:#21846f;
  font-size:.63rem;
  line-height:1.32;
  font-weight:850;
}
.payment-sales-shell .payment-card-saving b{color:#14765f;font-size:.66rem;line-height:1.25;font-weight:950}
.payment-sales-shell .payment-card-saving small{color:#5d8d7f;font-size:.59rem;line-height:1.28;font-weight:700}
.payment-sales-shell .payment-card-footnote{
  display:block;
  min-height:27px;
  margin-top:auto;
  padding-top:10px;
  color:#8095a3;
  font-size:.59rem;
  line-height:1.35;
  font-weight:700;
}

.payment-sales-shell .payment-package-cta{
  display:flex!important;
  align-items:center;
  justify-content:space-between;
  gap:9px;
  width:100%;
  min-height:49px;
  margin-top:11px!important;
  padding:0 14px!important;
  border:1px solid color-mix(in srgb,var(--pay-card-accent),#fff 14%);
  border-radius:12px!important;
  background:linear-gradient(135deg,var(--pay-card-accent),var(--pay-card-dark));
  color:#fff;
  font-size:.72rem;
  font-weight:850;
  box-shadow:0 10px 18px color-mix(in srgb,var(--pay-card-accent),transparent 76%);
  transition:filter .18s ease,transform .18s ease,box-shadow .18s ease;
}
.payment-sales-shell .payment-package-cta:hover{filter:saturate(1.08) brightness(1.04);transform:translateY(-1px);box-shadow:0 13px 22px color-mix(in srgb,var(--pay-card-accent),transparent 68%)}
.payment-sales-shell .payment-package-cta>span,
.payment-sales-shell .payment-cta-helper{overflow:hidden;color:rgba(255,255,255,.82);font-size:.64rem;font-weight:750;text-overflow:ellipsis;white-space:nowrap}
.payment-sales-shell .payment-package-cta b{color:#fff;font-size:.75rem;font-weight:950;white-space:nowrap}
.payment-sales-shell .payment-plan-card.tier-free .payment-package-cta{background:#eafaf3;color:#0a7d60;box-shadow:none}
.payment-sales-shell .payment-plan-card.tier-free .payment-package-cta>span,
.payment-sales-shell .payment-plan-card.tier-free .payment-package-cta b{color:#0a7d60}
.payment-sales-shell .payment-plan-card.tier-coin .payment-package-cta,
.payment-sales-shell .payment-plan-card.payment-coin-card .payment-package-cta{background:linear-gradient(135deg,#0cabb8,#087486)}

/* Pro/year is the visual anchor without duplicating a fake transaction signal. */
.payment-sales-shell .payment-plan-card.is-best{
  border:2px solid #7658df!important;
  background:
    radial-gradient(circle at 100% 0,rgba(118,88,223,.2),transparent 35%),
    linear-gradient(155deg,#fbf9ff 0%,#fff 53%,#f0fbff 100%)!important;
  box-shadow:0 24px 46px rgba(101,76,202,.2),0 0 0 5px rgba(118,88,223,.08)!important;
  transform:translateY(-8px);
}
.payment-sales-shell .payment-plan-card.is-best:hover,
.payment-sales-shell .payment-plan-card.is-best:focus-visible{transform:translateY(-13px);box-shadow:0 30px 54px rgba(101,76,202,.26),0 0 0 5px rgba(118,88,223,.12)!important}
.payment-sales-shell .payment-plan-card.is-best::after{content:none!important}
.payment-sales-shell .payment-plan-card.is-best .payment-best-badge{visibility:visible!important;border-color:#c7baf8;background:#7052da;color:#fff;box-shadow:0 6px 14px rgba(99,70,198,.2)}
.payment-sales-shell .payment-plan-card.has-promotion:not(.is-best){border-color:#e4c38b}

/* Legacy activity-rail selectors may still exist earlier in the bundled sheet,
   but the sales page must never surface customer or transaction information. */
.payment-sales-shell .payment-activity-rail,
.payment-sales-shell .payment-recent-sales,
.payment-sales-shell .payment-activity-item{display:none!important}

/* Tun Coin cards have less vertical copy, but retain the same visual rhythm. */
.payment-sales-layout.coin-mode .payment-sales-shell .payment-package-grid,
.payment-sales-layout.coin-mode .payment-package-grid{grid-template-columns:repeat(auto-fit,minmax(235px,1fr))}
.payment-sales-layout.coin-mode .payment-plan-card{min-height:330px}
.payment-sales-layout.coin-mode .payment-package-features{min-height:82px}

@media (min-width:1220px){
  /* Keep the normal three-plan catalog balanced; expand to four only when Free
     is actually returned by the catalog. */
  .payment-sales-shell .payment-sales-layout:not(.coin-mode) .payment-package-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .payment-sales-shell .payment-sales-layout:not(.coin-mode) .payment-package-grid:has(>.tier-free){grid-template-columns:repeat(4,minmax(0,1fr))}
  .payment-sales-shell .payment-sales-layout.coin-mode .payment-package-grid{grid-template-columns:repeat(auto-fit,minmax(235px,1fr))}
}
@media (max-width:1219px){
  .payment-sales-shell .payment-package-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .payment-sales-shell .payment-plan-card.is-best{transform:none}
  .payment-sales-shell .payment-plan-card.is-best:hover,
  .payment-sales-shell .payment-plan-card.is-best:focus-visible{transform:translateY(-6px)}
}
@media (max-width:680px){
  .payment-sales-shell .payment-package-grid,
  .payment-sales-layout.coin-mode .payment-package-grid{grid-template-columns:1fr}
  .payment-sales-shell .payment-package-card.payment-plan-card{min-height:0;padding-inline:16px;border-radius:19px}
  .payment-sales-shell .payment-card-badges{min-height:44px;padding-top:15px}
  .payment-sales-shell .payment-card-heading{min-height:0;padding-top:11px}
  .payment-sales-shell .payment-card-description{min-height:0!important}
  .payment-sales-shell .payment-package-features{min-height:0}
  .payment-sales-shell .payment-card-requirements{min-height:0}
  .payment-sales-shell .payment-plan-card.is-best{transform:none}
  .payment-sales-shell .payment-plan-card.is-best:hover,
  .payment-sales-shell .payment-plan-card.is-best:focus-visible{transform:translateY(-4px)}
}
@media (prefers-reduced-motion:reduce){
  .payment-sales-shell .payment-package-card.payment-plan-card,
  .payment-sales-shell .payment-package-cta{transition:none}
  .payment-sales-shell .payment-plan-card.is-best,
  .payment-sales-shell .payment-plan-card.is-best:hover,
  .payment-sales-shell .payment-plan-card.is-best:focus-visible{transform:none}
}

/* Studio uses the same primary navigation as every GenAIDOL product. */
.site-header.studio-toolbar{
  position:sticky;
  top:72px;
  z-index:80;
  width:100%;
  min-height:43px;
  margin:0;
  padding:5px 18px;
  border:0;
  border-bottom:1px solid #d8e8ed;
  border-radius:0;
  background:rgba(244,251,252,.98);
  box-shadow:none;
  backdrop-filter:blur(16px);
}
.site-header.studio-toolbar::before,.site-header.studio-toolbar::after{display:none}
.studio-toolbar .header-navigation{position:static;display:block;flex:1;min-width:0;padding:0;border:0;background:transparent;box-shadow:none;overflow:visible}
.studio-toolbar .nav-actions{display:flex;position:relative;inset:auto;align-items:center;justify-content:center;gap:5px;min-width:max-content;padding:0;border:0;background:transparent;box-shadow:none}
.studio-toolbar .nav-actions>a:not(.create-pill):not(.credit-pill),.studio-toolbar .task-menu-btn{min-height:31px;padding:0 13px;border-radius:6px;font-size:.68rem}
.studio-toolbar .studio-nav-label{min-height:25px;background:#173f50;font-size:.54rem}
.studio-toolbar .credit-pill{min-height:33px;padding:0 12px;border-radius:7px;font-size:.68rem}
.studio-toolbar .studio-account-panel{position:absolute;right:12px;top:calc(100% + 7px);width:0;height:0}
.studio-toolbar .studio-account-panel>.account-menu-btn{display:none}
.studio-toolbar .studio-account-panel>.account-dropdown{top:0;right:0}
.studio-toolbar .task-menu-dropdown{top:calc(100% + 8px)}
@media(max-width:820px){
  .site-header.studio-toolbar{top:64px;display:block;min-height:43px;padding:5px 10px;overflow:visible}
  .studio-toolbar .header-navigation{display:block;max-height:none;overflow:visible}
  .studio-toolbar .nav-actions{justify-content:flex-start;max-width:100%;min-width:0;overflow-x:auto;overflow-y:visible;padding-bottom:1px;scrollbar-width:none}
  .studio-toolbar .nav-actions::-webkit-scrollbar{display:none}
  .studio-toolbar .nav-actions>a:not(.create-pill):not(.credit-pill),.studio-toolbar .task-menu,.studio-toolbar .credit-pill{flex:0 0 auto;width:auto}
  .studio-toolbar .studio-nav-label{display:none}
  .studio-toolbar .task-menu-dropdown{position:fixed;top:116px;left:10px;width:calc(100vw - 20px);max-height:calc(100vh - 126px)}
  .studio-toolbar .studio-account-panel{right:10px}
}
