/* V0.6 — shared character, movement, interaction & facial workspace system. */
.ch6-studio{--c6-p:#171c26;--c6-p2:#151c27;--c6-b:#2c3646;--c6-m:#a3afbf;--c6-ac:#f6b667;--c6-purple:#b7a4f6;--c6-green:#82d8b8;color:#edf1f8;display:block;max-width:100%;min-width:0;animation:ch6-in .22s ease-out}
@keyframes ch6-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
.ch6-studio *{box-sizing:border-box}
.ch6-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin-bottom:18px}
.ch6-heading h1{font-size:clamp(25px,3vw,34px);line-height:1.04;margin:6px 0 8px;letter-spacing:-.7px;font-weight:780}
.ch6-heading p{font-size:13px;color:var(--c6-m);max-width:700px}
.ch6-kicker{display:block;color:#9daec0;font-size:10px;font-weight:800;letter-spacing:1.75px}
.ch6-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ch6-heading .ch6-actions{justify-content:flex-end;flex-shrink:0}
.ch6-badge{display:inline-flex;align-items:center;gap:5px;border:1px solid #3c4656;color:#b9c3d2;background:#202733;border-radius:20px;white-space:nowrap;font-size:10px;font-weight:750;line-height:1;padding:6px 9px}
.ch6-badge.amber{background:#30271e;border-color:#5b4834;color:#ffd29a}
.ch6-badge.green{background:#18312c;border-color:#35574d;color:var(--c6-green)}
.ch6-badge.purple{background:#2a263e;border-color:#534967;color:#cbbaff}
.ch6-btn{font:inherit;font-weight:690;font-size:12px;padding:10px 12px;line-height:1.1;border-radius:8px;color:#e5eaf2;background:#202735;border:1px solid #3b4658;cursor:pointer;min-height:36px;transition:background .15s,border-color .15s,transform .15s;white-space:nowrap}
.ch6-btn:hover{background:#2b3444;border-color:#64728b}.ch6-btn:active{transform:translateY(1px)}.ch6-btn.primary{background:linear-gradient(130deg,#fbd094,#f6ad56);color:#322216;border-color:#ffc178;box-shadow:0 6px 16px #f8b46112}
.ch6-btn.danger{color:#f5acae;background:#2c2029;border-color:#573940}.ch6-btn.small{min-height:29px;font-size:11px;padding:7px 8px}
.ch6-btn.full{width:100%;margin-top:12px}
.ch6-notice{display:flex;align-items:center;gap:12px;padding:12px 14px;background:linear-gradient(105deg,#342b23,#201f29 64%,#1b2430);border:1px solid #594735;border-left:3px solid var(--c6-ac);border-radius:11px;margin-bottom:16px}
.ch6-notice>span:first-child{width:27px;height:27px;flex:0 0 27px;background:#423126;border:1px solid #624b36;display:grid;place-items:center;color:#ffd19b;border-radius:6px}
.ch6-notice p{font-size:12px;color:#dfcbb1;line-height:1.52;flex:1}
.ch6-layout{display:grid;grid-template-columns:minmax(170px,220px) minmax(0,1fr) minmax(210px,250px);gap:14px;align-items:start}
.ch6-main,.ch6-right,.ch6-layout>aside{display:grid;gap:14px;min-width:0}
.ch6-panel{background:linear-gradient(125deg,#1b212c,#171c26 55%);border:1px solid #2d3747;border-radius:13px;overflow:hidden;min-width:0;box-shadow:0 8px 26px #05080c26}
.ch6-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 14px 12px;border-bottom:1px solid #2b3544;background:#1a222e}
.ch6-panel-head h2{font-size:14px;font-weight:770;line-height:1.2;margin:0}
.ch6-panel-head p{margin:4px 0 0;color:var(--c6-m);font-size:11px;line-height:1.35}
.ch6-panel-body{padding:14px;min-width:0}
.ch6-list{display:grid;gap:6px;max-height:430px;overflow-y:auto;scrollbar-width:thin}
.ch6-item{display:flex;align-items:center;gap:9px;text-align:left;width:100%;min-width:0;padding:9px;border-radius:9px;background:#1d2532;color:#eef3f8;border:1px solid #303b4b;cursor:pointer;transition:border-color .15s,background .15s}
.ch6-item:hover{background:#2a3446}.ch6-item.active{border-color:#b18758;background:linear-gradient(115deg,#49352266,#282b33)}
.ch6-item>div{flex:1;min-width:0}.ch6-item b,.ch6-item small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ch6-item b{font-size:12px;line-height:1.45;font-weight:730}.ch6-item small{font-size:10px;color:#aab5c5;line-height:1.45}
.ch6-portrait{width:34px;height:34px;flex:0 0 34px;border-radius:9px;background:color-mix(in srgb,var(--pc) 16%,#202832);border:1px solid color-mix(in srgb,var(--pc) 40%,#354353);overflow:hidden;display:grid;place-items:center;color:var(--pc);font-size:12px;font-weight:800}
.ch6-portrait img{width:100%;height:100%;object-fit:cover}.ch6-portrait.large{width:82px;height:94px;flex:0 0 82px;border-radius:12px;font-size:28px}
.ch6-dot{width:6px;height:6px;background:#66758b;border-radius:50%;flex:0 0 6px}.ch6-item.active .ch6-dot{background:#f9ba6d;box-shadow:0 0 9px #f9ba6d88}
.ch6-list-icon{width:31px;height:31px;border-radius:8px;background:#29334a;border:1px solid #404d66;color:#c4b8ff;display:grid;place-items:center;flex:0 0 31px}
.ch6-tip{background:#202b39;border:1px solid #324154;border-radius:10px;padding:12px;margin-top:12px}.ch6-tip b{font-size:12px;color:#e6edf8}.ch6-tip p{font-size:11px;color:#a4b0c1;line-height:1.5;margin:5px 0 0}
.ch6-profile-banner{display:flex;align-items:center;gap:15px;padding:15px;background:radial-gradient(ellipse at 2% 5%,#5a41322b,transparent 70%),#1d2735;border:1px solid #344155;border-radius:11px;margin-bottom:14px}
.ch6-profile-banner h2{font-size:21px;letter-spacing:-.5px;margin:0 0 5px}
.ch6-profile-banner p{color:#bac6d8;font-size:12px;line-height:1.45;max-height:70px;overflow:auto}
.ch6-profile-banner>div>div{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}
.ch6-tabs{display:flex;gap:3px;background:#111720;border:1px solid #2e3746;border-radius:9px;padding:4px;overflow:auto;scrollbar-width:none;margin-bottom:16px}
.ch6-tabs button{font:inherit;font-size:11px;white-space:nowrap;font-weight:650;color:#9eaaba;background:transparent;border:1px solid transparent;padding:8px 10px;border-radius:6px;cursor:pointer;flex:1}
.ch6-tabs button.active{background:#3e3027;color:#ffd29a;border-color:#71543a}
.ch6-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;min-width:0}
.ch6-form.ch6-one{grid-template-columns:1fr}
.ch6-field{display:flex;flex-direction:column;min-width:0;gap:6px;font-size:11px;color:#cad3e2;margin:0}
.ch6-field>span{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:11px;font-weight:710;color:#c5cfdf}
.ch6-field small,.ch6-muted{font-size:10px;color:#9eabbd;line-height:1.45}
.ch6-field input:not([type=range]),.ch6-field textarea,.ch6-field select{font:inherit;font-size:12px;line-height:1.4;background:#131b26;color:#e6eefb;border:1px solid #354153;border-radius:7px;padding:8px 9px;min-height:34px;width:100%;min-width:0;outline:none}
.ch6-field input:focus,.ch6-field select:focus,.ch6-field textarea:focus{border-color:#b69361;box-shadow:0 0 0 2px #c4975a24}
.ch6-field textarea{resize:vertical;min-height:58px}.ch6-field select{appearance:auto;color-scheme:dark;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch6-field input[type=range],.ch6-scrub input{width:100%;min-width:0;background:transparent;accent-color:#f6b667;cursor:pointer;min-height:28px}
.ch6-range output{color:#f9c887;font-weight:800;white-space:nowrap}
.ch6-ranges{margin:16px 0 14px}
.ch6-info-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:16px;padding:10px 12px;border-radius:9px;border:1px solid #394658;background:#1d2735;font-size:12px}
.ch6-info-row b{color:#d8e1ef}.ch6-info-row>span{flex:1;color:#b4c1d3}
.ch6-bottom-actions{margin-top:18px;padding-top:14px;border-top:1px solid #323b48}
.ch6-section-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:20px 0 11px}
.ch6-section-title h3{margin:0;font-size:14px;line-height:1.3}
.ch6-section-title small{display:block;color:var(--c6-m);font-size:10px;margin-top:3px}
.ch6-card-list{display:grid;gap:8px}
.ch6-subcard{display:grid;grid-template-columns:1fr 1.4fr 95px auto;align-items:end;gap:7px;padding:9px;background:#151e2a;border:1px solid #303e50;border-radius:9px}
.ch6-subcard.ch6-cont{grid-template-columns:repeat(3,minmax(0,1fr))}
.ch6-subcard .ch6-wide{grid-column:span 2}
.ch6-empty{border:1px dashed #465164;border-radius:8px;padding:16px;font-size:12px;color:#a4afbd;text-align:center}
.ch6-reference{height:170px;border-radius:8px;overflow:hidden;background:#131923;border:1px solid #334054;margin-bottom:10px}
.ch6-reference img{width:100%;height:100%;object-fit:contain}
.ch6-fact{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;border-top:1px solid #303d4d;padding-top:11px;margin-top:12px;font-size:11px;line-height:1.4}
.ch6-fact span{color:#a7b3c5}.ch6-fact b{font-size:11px;text-align:right;max-width:63%;word-break:break-word}
.ch6-flow-links{display:grid;gap:8px;margin-top:12px}.ch6-flow-links .ch6-btn{white-space:normal;text-align:center;line-height:1.4}
.ch6-shot{display:flex;gap:9px;align-items:center;background:#202b38;border:1px solid #374456;border-radius:8px;padding:7px;margin-top:12px}
.ch6-shot img{width:61px;height:46px;object-fit:cover;border-radius:5px}.ch6-shot b,.ch6-shot small{display:block;font-size:11px;line-height:1.35}.ch6-shot small{font-size:10px;color:#9eabbd;margin-top:2px}
.ch6-stage{display:flex;align-items:center;justify-content:center;position:relative;min-height:300px;overflow:hidden;background:radial-gradient(ellipse at 50% 20%,#2d3d4d,#101822 67%);border:1px solid #3a4858;border-radius:11px;isolation:isolate;padding:30px 12px 35px}
.ch6-stage-grid{position:absolute;inset:auto -12% -25% -12%;height:72%;transform:perspective(175px) rotateX(56deg);transform-origin:center top;background-image:linear-gradient(#7e91b01b 1px,transparent 1px),linear-gradient(90deg,#7e91b01b 1px,transparent 1px);background-size:25px 25px;z-index:-1;mask-image:linear-gradient(transparent,#000)}
.ch6-stage-label{position:absolute;top:14px;left:13px;color:#adc0d6;background:#131e2be6;border:1px solid #455264;font-size:9px;letter-spacing:1px;padding:6px 8px;border-radius:6px;z-index:2;white-space:nowrap}
.ch6-stage-label b{color:#f7ce97}
.ch6-animation-stage [data-ch6-rig]{height:270px;max-width:100%;display:flex;align-items:center;justify-content:center}.ch6-animation-stage svg{width:100%;max-width:235px;height:100%;filter:drop-shadow(0 8px 14px #0005)}
.ch6-stage-footer{position:absolute;bottom:10px;left:11px;right:11px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#b5c6db;font-size:11px}
.ch6-stage-footer>span:last-child{background:#151e2a;border:1px solid #3c4a5e;padding:5px 8px;border-radius:6px;font-variant-numeric:tabular-nums;white-space:nowrap}
.ch6-playback{display:flex;justify-content:center;gap:8px;margin-top:13px}
.ch6-scrub{display:flex;align-items:center;gap:9px;margin:8px 0 2px;color:#adbbcf;font-size:10px;white-space:nowrap;font-variant-numeric:tabular-nums}
.ch6-timeline{border:1px solid #334153;background:#141d28;border-radius:10px;overflow:hidden}
.ch6-track{height:42px;position:relative;margin:10px 15px;background:repeating-linear-gradient(90deg,#263345 0px,#263345 1px,#1c2837 1px,#1c2837 10%);border-radius:5px;border:1px solid #35465c;border-bottom:1px solid #4f627d}
.ch6-playline{position:absolute;height:100%;width:2px;background:#ffcd92;left:0;z-index:3;box-shadow:0 0 6px #f9ba6d77;pointer-events:none}
.ch6-key{position:absolute;top:0;bottom:0;transform:translateX(-50%);border:0;background:transparent;color:#cbb5ff;cursor:pointer;font-size:16px;text-shadow:0 0 4px #ab90ed}
.ch6-key-rows{padding:9px 12px;border-top:1px solid #303d4f;display:grid;gap:7px;font-size:11px;color:#9fabc0;max-height:230px;overflow:auto}
.ch6-key-rows>div{display:flex;align-items:end;gap:8px;border-radius:7px;padding:7px;background:#1b2735;border:1px solid #324054}
.ch6-key-rows>div>small{font-size:10px;flex:1}.ch6-key-rows .ch6-field{flex:1}
.ch6-choreo{display:flex;align-items:flex-end;justify-content:center;gap:18px;position:relative;transition:gap .2s ease;width:100%}.ch6-choreo.close{gap:0}
.ch6-actor{display:flex;flex-direction:column;align-items:center;justify-content:center;width:47%;min-width:0;position:relative}
.ch6-actor>span{font-size:11px;color:#e5eaf3;background:#13202ce8;padding:6px 8px;border-radius:5px;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.ch6-actor svg{width:100%;max-height:225px;max-width:175px}
.ch6-actor:nth-of-type(2) svg{transform:scaleX(-1)}
.ch6-choreo.close .ch6-actor:first-child{transform:translateX(14px)}.ch6-choreo.close .ch6-actor:nth-of-type(2){transform:translateX(-14px)}
.ch6-interaction-stage [data-ch6-choreo]{width:100%;display:grid;place-items:center;gap:4px;margin-top:12px}
.ch6-step-label{display:flex;justify-content:center;align-items:center;gap:8px;padding:7px 9px;background:#1b2c3b;border:1px solid #3a5064;border-radius:8px;margin-top:1px;max-width:95%}
.ch6-step-label b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ch6-step-label small{font-size:10px;color:#a4b7ce;white-space:nowrap}
.ch6-prop{height:200px;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#a7b5ca}.ch6-prop img{width:100%;max-height:160px;object-fit:contain;border-radius:8px;border:1px solid #465568}.ch6-prop span{font-size:60px}.ch6-prop small{font-size:10px}
.ch6-blocktrack{display:flex;gap:4px;overflow-x:auto;min-width:0;min-height:50px;border-radius:8px;background:#131d28;padding:7px;margin-top:9px}
.ch6-blocktrack button{background:linear-gradient(125deg,#30564b,#254138);color:#a4e9cd;border:1px solid #4c7064;cursor:pointer;border-radius:6px;min-width:58px;padding:5px;overflow:hidden;text-align:left}
.ch6-blocktrack button span{font-size:9px;font-weight:750;display:block}.ch6-blocktrack button b{font-size:10px;display:block;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
.ch6-step-card{display:grid;grid-template-columns:24px minmax(0,1fr) 80px auto;align-items:end;gap:8px;padding:9px;border-radius:8px;background:#151f2c;border:1px solid #344156}
.ch6-step-number{width:23px;height:23px;display:grid;place-items:center;color:#bbd1e6;border:1px solid #465c74;background:#27384a;border-radius:7px;margin-bottom:5px;font-weight:750;font-size:11px}
.ch6-step-actions{display:flex;gap:4px}
.ch6-actor-info{display:flex;align-items:center;gap:9px;padding:9px 0;border-bottom:1px solid #303d4c}.ch6-actor-info b,.ch6-actor-info small{display:block;font-size:12px}.ch6-actor-info small{color:#a4afbf;font-size:10px;margin-top:3px}
.ch6-face-stage{min-height:300px}.ch6-face-stage [data-ch6-face]{width:min(235px,90%)}.ch6-face-stage svg{display:block;width:100%;max-height:240px;filter:drop-shadow(0px 10px 18px #0007)}
.ch6-script{background:#203044;border:1px solid #3a4e68;border-radius:8px;padding:10px;margin-top:10px;font-size:12px;color:#dce7f5}
.ch6-script p{font-size:11px;line-height:1.5;margin:5px 0;color:#dce7f5}
.ch6-script small{color:#a3b5ce;font-size:10px}
.ch6-studio .ch6-panel-body>label.ch6-field{margin:13px 0}
.ch6-studio .ch6-panel-body>.ch6-actions:not(.ch6-bottom-actions){margin:13px 0 0}
@media(min-width:1600px){.ch6-layout{grid-template-columns:230px minmax(0,1fr) 270px}}
@media(max-width:1110px){.ch6-layout{grid-template-columns:minmax(165px,210px) minmax(0,1fr)}.ch6-right{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.ch6-right .ch6-panel:last-child:nth-child(odd){grid-column:auto}.ch6-reference{height:210px}}
@media(max-width:720px){.ch6-heading{display:block;margin-bottom:13px}.ch6-heading .ch6-actions{justify-content:flex-start;margin-top:12px}.ch6-heading h1{font-size:27px}.ch6-heading p{font-size:12px}.ch6-kicker{font-size:9px}.ch6-notice{gap:8px;padding:10px;align-items:flex-start}.ch6-notice p{font-size:11px}.ch6-notice>.ch6-badge{display:none}.ch6-layout{display:flex;flex-direction:column;gap:11px}.ch6-layout>aside,.ch6-main,.ch6-right{width:100%;gap:11px}.ch6-right{display:grid;grid-template-columns:1fr}.ch6-panel-head,.ch6-panel-body{padding:12px}.ch6-list{display:flex;gap:7px;overflow-x:auto;overflow-y:hidden;max-height:none;scrollbar-width:thin}.ch6-list .ch6-item{flex:0 0 154px;width:auto;min-height:58px}.ch6-tip{display:none}.ch6-form{gap:11px}.ch6-subcard{grid-template-columns:1fr 1fr}.ch6-cont{grid-template-columns:1fr 1fr!important}.ch6-subcard .ch6-wide{grid-column:1/-1}.ch6-profile-banner{gap:10px;padding:10px}.ch6-portrait.large{height:75px;width:63px;flex:0 0 63px}.ch6-profile-banner h2{font-size:18px}.ch6-profile-banner p{font-size:11px}.ch6-tabs button{padding:7px 8px;font-size:10px}.ch6-stage{min-height:265px;padding-top:42px}.ch6-animation-stage [data-ch6-rig]{height:224px}.ch6-stage .ch6-stage-label{font-size:8px;left:8px;top:9px;letter-spacing:.5px}.ch6-playback{gap:6px}.ch6-playback .ch6-btn{font-size:11px;padding:9px 10px}.ch6-step-card{grid-template-columns:22px minmax(0,1fr) 70px;gap:6px}.ch6-step-actions{grid-column:2/-1;justify-content:flex-end}.ch6-choreo{gap:3px}.ch6-actor svg{max-height:184px}.ch6-actor>span{font-size:10px}.ch6-step-label{gap:5px}.ch6-step-label b{font-size:10px}.ch6-reference{height:155px}.ch6-key-rows .ch6-field{min-width:0}.ch6-key-rows{padding:7px}.ch6-key-rows>div{gap:5px;padding:5px}.ch6-subcard .ch6-btn{justify-self:end}.ch6-actions .ch6-btn{min-height:38px;white-space:normal}.ch6-field input:not([type=range]),.ch6-field select,.ch6-field textarea{font-size:13px}
}
@media(max-width:420px){.ch6-form:not(.ch6-ranges){grid-template-columns:1fr}.ch6-tabs button{font-size:9px;padding:7px 6px}.ch6-panel-body{padding:10px}.ch6-heading .ch6-badge{font-size:9px}.ch6-stage-label{font-size:8px}.ch6-cont{grid-template-columns:1fr!important}.ch6-subcard .ch6-wide{grid-column:1}.ch6-reference{height:140px}.ch6-stage-footer{font-size:10px}.ch6-ranges{gap:8px}.ch6-step-card{grid-template-columns:20px minmax(0,1fr) 65px}.ch6-btn.small{padding:6px 7px}}
