/* HAL Character Studio — isolated, self-describing premium creator UI */
.character-main{padding-bottom:8px}
.cs-top{display:flex;justify-content:space-between;align-items:end;gap:35px;padding:53px 2px 36px}
.cs-top h1{font-size:clamp(38px,4.2vw,65px);line-height:1.08;margin:14px 0 18px}
.cs-top h1 em{font-family:Georgia,serif;font-weight:400;color:#d0e1cc}
.cs-lede{max-width:770px;color:#a6bdb2;font-size:13px;line-height:1.75}
.cs-top-marker{border:1px solid #516c5c;border-radius:13px;padding:17px 19px;background:#183027;max-width:255px;display:grid;gap:8px}
.cs-top-marker .cs-mark{font-size:32px;color:#d6edc6}.cs-top-marker b{font-size:13px}.cs-top-marker small{font-size:10px;color:#9fb5a8;line-height:1.5}
.cs-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(310px,.73fr);gap:20px;align-items:start}
.cs-editor,.cs-preview{background:linear-gradient(140deg,#111d1c,#0d1617);border:1px solid #334a40;border-radius:17px;padding:clamp(19px,2.5vw,35px)}
.cs-preview{position:sticky;top:20px}
.cs-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#88c2aa;font-size:10px;font-weight:800;letter-spacing:.16em}
.cs-draft-marker{font-size:9px;color:#c4d9c9;border:1px solid #516557;border-radius:60px;padding:5px 8px;white-space:nowrap;letter-spacing:.06em}
.cs-editor h2{font-size:clamp(23px,2vw,34px);margin:11px 0 18px}
.cs-template-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:12px 0 25px}
.cs-template-row button{border:1px solid #4a6456;border-radius:11px;padding:13px 10px;background:linear-gradient(155deg,#21352e,#15231f);color:#dcebe0;min-height:85px;text-align:left}
.cs-template-row button:hover,.cs-template-row button:focus-visible{border-color:#bee9c7;background:#29483c}
.cs-template-row b{display:block;font-size:11px;line-height:1.4}.cs-template-row span{display:block;font-size:10px;color:#9bb6a8;margin-top:6px}
.cs-editor label:not(.cs-radio):not(.cs-upload):not(.cs-consent){display:block;font-size:11px;color:#c2dbca;margin:16px 0 9px;font-weight:750}
.cs-editor input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),.cs-editor textarea,.cs-editor select{width:100%;background:#162623;border:1px solid #446354;border-radius:9px;color:#eef5ed;padding:12px 13px;font-size:12px;line-height:1.5;appearance:auto}
.cs-editor textarea{resize:vertical;min-height:70px}.cs-editor input::placeholder,.cs-editor textarea::placeholder{color:#799c88}
.cs-two{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.cs-hint{font-size:10px;color:#95ad9e;margin-top:8px;line-height:1.6}
.cs-separator{height:1px;background:#31453b;margin:32px 0 30px}
.cs-section-intro{font-size:12px;color:#9bb0a3;max-width:670px;margin:0 0 14px}
.cs-inline{display:flex;align-items:center;gap:10px}
.cs-inline input{flex:1;min-width:0}
.cs-inline button,.cs-secondary,.cs-controls button,.cs-reference-preview button,.cs-saved button{background:#203c30;color:#dcf3e1;border:1px solid #779b80;border-radius:9px;padding:11px 13px;font-size:11px;font-weight:800}
.cs-inline button:hover,.cs-secondary:hover,.cs-controls button:hover{background:#315542}
.cs-reference-result{font-size:11px;color:#a0b9a9;margin-top:12px;line-height:1.5;overflow-wrap:anywhere}
.cs-reference-preview{border:1px solid #48674c;border-radius:11px;background:#11211b;margin:12px 0;padding:13px}
.cs-reference-preview[hidden]{display:none}
.cs-reference-preview p{font-size:11px;color:#b8d1bf;margin-top:11px}
.reference-player-slot{aspect-ratio:16/9;background:#0b1615;display:grid;place-items:center;border-radius:8px;overflow:hidden}
.reference-player-slot button{max-width:85%;font-size:12px;padding:15px}
.reference-player-slot iframe{height:100%;width:100%;border:none}
.cs-caution{color:#e4bf90;font-size:11px;margin-top:12px;line-height:1.6}
.cs-radio-grid{display:grid;gap:9px;margin-top:17px}
.cs-radio{padding:12px;display:flex;gap:10px;align-items:center;border:1px solid #3b5348;background:#162821;border-radius:10px;cursor:pointer}
.cs-radio:has(input:checked){background:#234333;border-color:#9ccea0}
.cs-radio input,.cs-consent input,.cs-skill-grid input{accent-color:#addcaa}
.cs-radio b,.cs-radio small{display:block}.cs-radio b{font-size:11px;color:#d9f0dc}.cs-radio small{font-size:10px;color:#a4bdae;margin-top:4px;line-height:1.5}
#voice-sample-label{font-size:10px;color:#9ebbac}
.cs-skill-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:16px 0}
.cs-skill-grid label{display:flex!important;align-items:center;gap:8px;margin:0!important;background:#192a24;border:1px solid #3e5646;padding:12px 10px;border-radius:10px;cursor:pointer;font-size:11px!important}
.cs-skill-grid label:has(input:checked){border-color:#8baa82;background:#263f30}
.cs-separated-note{background:#203327a3;border-left:3px solid #a4d3a7;padding:12px;color:#b6d1bc;font-size:11px;line-height:1.6;border-radius:4px}
.cs-upload{display:flex;gap:6px;flex-direction:column;border:1px dashed #7da889;padding:17px;color:#d7ebd7;background:#17291f;border-radius:11px;cursor:pointer}
.cs-upload input{display:block;width:100%;margin-bottom:7px;color:#b5cbb6;font-size:11px;max-width:100%}
.cs-upload small{font-size:10px;color:#a6bba8}
.cs-consent{display:flex;gap:9px;align-items:start;margin-top:13px;font-size:11px;color:#cadccc;line-height:1.5;cursor:pointer}
.cs-controls{display:flex;gap:10px;margin-top:23px;flex-wrap:wrap}
.cs-controls .cs-primary{background:#c6efd0;color:#102619;border-color:#c6efd0;font-size:12px;padding:13px 16px}
.cs-controls button:disabled{opacity:.45}
.cs-save-status{font-size:11px;color:#a4c4b0;margin-top:13px}
.cs-preview-top{display:flex;align-items:start;justify-content:space-between;gap:15px}
.cs-preview h2{font-size:26px;margin-top:8px}
.cs-preview-new{display:inline-block;padding:5px 9px;color:#18331d;background:linear-gradient(110deg,#cbf0c6,#9deab3,#f3efbc);font-size:10px;border-radius:60px;font-weight:900;box-shadow:0 0 16px #b4f4ab44}
.cs-portrait-stage{height:420px;max-height:50vh;position:relative;margin-top:18px;border-radius:12px;overflow:hidden;border:1px solid #526353;background:radial-gradient(ellipse at 60% 20%,#3b4b3b,#14241f 65%)}
.cs-portrait-back{position:absolute;inset:0;background:url('./assets/office_night.webp') center/cover;filter:blur(2px) saturate(.7)}
.cs-portrait-stage img{position:absolute;left:0;right:0;bottom:-15%;width:100%;height:117%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 9px 15px #07130899);mask-image:linear-gradient(to bottom,black 0%,black 87%,transparent 100%)}
.cs-portrait-label{position:absolute;bottom:10px;left:11px;right:11px;font-size:9px;letter-spacing:.1em;text-align:center;color:#d1edcf;border:1px solid #9caf8d55;padding:8px;border-radius:8px;background:#0c1b14b7}
.cs-preview h3{font-size:24px;letter-spacing:-.035em;margin:21px 0 7px}
#preview-tagline{color:#a6c1ae;font-size:12px}
.cs-preview-chips{display:flex;flex-wrap:wrap;gap:7px;margin:13px 0}
.cs-preview-chips span{background:#223d2e;border:1px solid #4b7456;border-radius:30px;color:#bfdcc5;font-size:10px;padding:6px 9px}
.cs-progress{border-top:1px solid #2c4434;margin-top:24px;padding-top:18px}
.cs-progress b{font-size:12px}.cs-progress>div{display:flex;align-items:center;gap:12px;margin-top:13px;color:#a8c4a9;font-size:10px}
.cs-progress-track{background:#2f4636;display:block;flex:1;height:8px;border-radius:30px;overflow:hidden}
.cs-progress-track span{display:block;height:100%;width:8%;background:#abdea3}
.cs-progress p{font-size:10px;color:#99b1a1;margin-top:10px}
.cs-saved{margin-top:24px;border-top:1px solid #2a4534;padding-top:20px}
.cs-local-library{margin-top:11px}.cs-local-library p{color:#9cb2a0;font-size:11px}
.cs-local-library button{display:flex;width:100%;justify-content:space-between;align-items:center;text-align:left;padding:11px;margin:8px 0}
.cs-local-library button small{font-size:9px;color:#bad4bb}
.cs-preview-foot{border-top:1px solid #2c4333;margin-top:22px;padding-top:16px;font-size:11px;color:#a8c2ae;line-height:1.7}
@media(max-width:1050px){.cs-layout{grid-template-columns:1fr}.cs-preview{position:static;display:grid;grid-template-columns:1fr 1fr;gap:10px 20px}.cs-preview-top,.cs-preview h3,.cs-preview #preview-tagline,.cs-preview .cs-preview-chips{grid-column:2}.cs-portrait-stage{grid-column:1;grid-row:1/7;height:420px}.cs-progress,.cs-saved,.cs-preview-foot{grid-column:1/-1}.cs-preview h3{margin-top:12px}}
@media(max-width:700px){.cs-top{padding:32px 2px 20px;display:block}.cs-top h1{font-size:42px}.cs-top-marker{max-width:none;margin-top:18px}.cs-template-row{grid-template-columns:repeat(2,minmax(0,1fr))}.cs-two{grid-template-columns:1fr;gap:0}.cs-skill-grid{grid-template-columns:1fr}.cs-editor,.cs-preview{padding:18px}.cs-preview{display:block}.cs-portrait-stage{height:380px}.cs-editor h2{font-size:25px}.cs-inline{align-items:stretch;flex-wrap:wrap}.cs-inline button{flex:0 0 auto}.cs-inline input{flex-basis:100%}.cs-controls{display:grid}.cs-preview h3{margin-top:20px}}

html,body{overflow-x:clip}
