#cc-studio {
  --cs-ink: #292920;
  --cs-copy: #625f53;
  --cs-line: #deddd2;
  --cs-paper: #faf9f5;
  --cs-wash: #f4f2e9;
  --cs-accent: #273dd4;
  position: fixed; inset: 0; margin: auto; padding: 0; width: min(670px, calc(100vw - 32px));
  max-width: none; max-height: min(89dvh, 900px); border: 1px solid #dedbd0; border-radius: 20px;
  color: var(--cs-ink); background: var(--cs-paper); box-shadow: 0 24px 100px rgba(30,32,22,.24);
  font-family: inherit; text-align: left; overscroll-behavior: contain;
}
#cc-studio::backdrop { background: rgba(25,28,22,.55); }
#cc-studio[open] { display: flex; flex-direction: column; }
#cc-studio *, #cc-studio *::before, #cc-studio *::after { box-sizing: border-box; }
#cc-studio button, #cc-studio input, #cc-studio select, #cc-studio textarea { font: inherit; letter-spacing: normal; }
#cc-studio h2, #cc-studio h3, #cc-studio p { margin: 0; }
#cc-studio h2, #cc-studio h3 { color: var(--cs-ink); }
#cc-studio h2 { font-family: var(--display, Georgia, serif); font-weight: 500; font-size: clamp(1.65rem, 3.5vw, 2.05rem); letter-spacing: -.04em; line-height: 1.15; }
#cc-studio h3 { font-weight: 650; font-size: 1rem; line-height: 1.35; }
#cc-studio .cs-head { display:flex; align-items:center; justify-content:space-between; gap:14px; padding: 23px 27px 16px; }
#cc-studio button { cursor:pointer; touch-action:manipulation; }
#cc-studio button:disabled { cursor:wait; opacity:.6; }
#cc-studio .cs-close { display:grid; place-items:center; width:40px; height:40px; padding:0; flex-shrink:0; border:1px solid var(--cs-line); border-radius:50%; background:var(--cs-paper); color: var(--cs-ink); }
#cc-studio .cs-close:hover { background: var(--cs-wash); }
#cc-studio .cs-nav { display:flex; gap:4px; padding:0 25px 12px; overflow-x:auto; flex-shrink:0; scrollbar-width:thin; border-bottom:1px solid var(--cs-line); }
#cc-studio .cs-nav button, #cc-studio .cs-switch button { background:transparent; border:0; padding:9px 12px; border-radius:8px; font-weight:550; font-size:.91rem; color:var(--cs-copy); white-space:nowrap; }
#cc-studio .cs-nav button[aria-current="page"], #cc-studio .cs-switch button[aria-pressed="true"] { background: #e9eddf; color:#2d472a; }
#cc-studio .cs-body { overflow-y:auto; padding:22px 27px 27px; line-height:1.48; overscroll-behavior:contain; }
#cc-studio .cs-body > * + *, #cc-studio .cs-form > * + * { margin-top:16px; }
#cc-studio .cs-row { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
#cc-studio .cs-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
#cc-studio .cs-field { display:grid; gap:6px; align-content:start; min-width:0; }
#cc-studio .cs-field > span:first-child, #cc-studio legend { color:var(--cs-ink); font-size:.93rem; font-weight:620; }
#cc-studio .cs-field input:not([type="checkbox"]), #cc-studio select, #cc-studio textarea {
  display:block; width:100%; background:#fff; color: var(--cs-ink); padding:11px 12px;
  border:1px solid #bdbdb0; border-radius:8px; min-width:0; max-width:100%; min-height:44px; line-height:1.35; font-size:16px;
}
#cc-studio textarea { resize:vertical; min-height:92px; }
#cc-studio input::placeholder, #cc-studio textarea::placeholder { color:#757369; opacity:1; }
#cc-studio :focus-visible { outline: 3px solid #738c62; outline-offset:2px; }
#cc-studio select { appearance:auto; }
#cc-studio .cs-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
#cc-studio .cs-note, #cc-studio .cs-meta { color:var(--cs-copy); }
#cc-studio .cs-note { font-size:.95rem; }
#cc-studio .cs-meta { font-size:.86rem; overflow-wrap:anywhere; }
#cc-studio .cs-primary, #cc-studio .cs-secondary, #cc-studio .cs-text { padding:10px 15px; border-radius:8px; min-height:42px; font-size:.93rem; font-weight:640; line-height:1.25; }
#cc-studio .cs-primary { background:var(--cs-accent); border:1px solid var(--cs-accent); color:#fff; }
#cc-studio .cs-primary:hover { background:#2d452a; }
#cc-studio .cs-secondary { background:var(--cs-paper); border:1px solid #c8c7bb; color:var(--cs-ink); }
#cc-studio .cs-secondary:hover, #cc-studio .cs-nav button:hover, #cc-studio .cs-switch button:hover { background:var(--cs-wash); }
#cc-studio .cs-text { background:transparent; border:0; color:var(--cs-accent); text-decoration:underline; text-underline-offset:3px; }
#cc-studio .cs-card { padding:14px 15px; background:white; border:1px solid var(--cs-line); border-radius:10px; overflow-wrap:anywhere; }
#cc-studio .cs-card + .cs-card, #cc-studio .cs-card > * + * { margin-top:10px; }
#cc-studio .cs-card .cs-bodytext, #cc-studio .cs-message { white-space:pre-wrap; overflow-wrap:anywhere; }
#cc-studio .cs-card summary { cursor:pointer; font-weight:600; }
#cc-studio .cs-badge { display:inline-flex; padding:3px 8px; font-size:.8rem; font-weight:600; color:#47533b; background:#eef1e6; border-radius:5px; }
#cc-studio fieldset { border:0; padding:0; margin-left:0; margin-right:0; }
#cc-studio legend { padding:0; margin-bottom:6px; }
#cc-studio .cs-checks { display:flex; flex-wrap:wrap; gap:8px; }
#cc-studio .cs-check { display:flex; gap:7px; align-items:center; padding:7px 10px; min-height:38px; color:var(--cs-ink); border:1px solid var(--cs-line); border-radius:8px; background:#fff; font-size:.9rem; cursor:pointer; }
#cc-studio .cs-check input { accent-color:var(--cs-accent); width:15px; height:15px; margin:0; }
#cc-studio .cs-check:has(:checked) { border-color:#829875; background:#f2f6ed; }
#cc-studio .cs-callout, #cc-studio .cs-success, #cc-studio .cs-error { padding:11px 13px; border-radius:8px; font-size:.92rem; }
#cc-studio .cs-callout { background:var(--cs-wash); color:var(--cs-copy); }
#cc-studio .cs-success { background:#eaf2e4; color:#284e2e; }
#cc-studio .cs-error { background:#faeae4; color:#852e21; }
#cc-studio .cs-status:empty { display:none; }
#cc-studio .cs-steps { padding-left:20px; margin:0; color:var(--cs-copy); }
#cc-studio .cs-steps li+li { margin-top:5px; }
#cc-studio .cs-switch { display:flex; gap:4px; flex-wrap:wrap; }
#cc-studio .cs-thread { margin-top:14px; }
#cc-studio .cs-thread .cs-reply { margin:10px 0; border-left:2px solid #bbcab1; padding-left:11px; }
#cc-studio video { display:block; width:auto; max-width:100%; max-height:280px; border-radius:8px; margin-top:10px; background:#272923; }
#cc-studio [hidden] { display:none !important; }
@media (max-width:600px) {
  #cc-studio { width:100%; max-height:91dvh; margin:auto 0 0; border-radius:18px 18px 0 0; padding-bottom:env(safe-area-inset-bottom); }
  #cc-studio .cs-head { padding:17px 18px 12px; }
  #cc-studio .cs-nav { padding:0 14px 9px; gap:0; }
  #cc-studio .cs-nav button { padding:8px 10px; }
  #cc-studio .cs-body { padding:17px 18px 24px; }
  #cc-studio .cs-grid { grid-template-columns:1fr; gap:16px; }
}
@media (prefers-reduced-motion: no-preference) {
  #cc-studio[open] { animation:cs-enter .16s ease-out; }
  @keyframes cs-enter { from { opacity:.5; transform:translateY(8px); } to { opacity:1; transform:none; } }
}
#cc-studio .cs-profile-link { color:var(--cs-accent); text-underline-offset:3px; font-weight:600; }
#cc-studio video + .cs-secondary { margin-top:8px; }
#cc-studio .cs-outcome { border-top:1px solid var(--cs-line); padding-top:13px; }
#cc-studio .cs-outcome > * + * { margin-top:11px; }
