/* Shared composer choices. The host pages already provide the ZhiHe tokens. */
:root{--zh-radius-sm:6px;--zh-radius-md:8px;--zh-radius-lg:12px;--zh-radius-xl:16px;--zh-shadow-sm:0 2px 4px 0 rgba(0,0,0,.05);--zh-shadow-popover:0 2px 8px 0 rgba(0,0,0,.15)}
.cc-controls{display:flex;align-items:center;gap:4px;min-width:0}
.cc-trigger{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:4px 8px;border:1px solid transparent;border-radius:var(--zh-radius-lg);background:transparent;color:var(--tx2);font:inherit;font-size:12px;cursor:pointer;white-space:nowrap;min-width:0}
.cc-trigger:hover,.cc-trigger[aria-expanded="true"]{background:var(--bg3);border-color:var(--brd);color:var(--tx1)}
.cc-trigger:disabled{opacity:.5;cursor:not-allowed}
.cc-trigger>svg{width:16px;height:16px;flex-shrink:0}
.cc-trigger .cc-trigger-label{overflow:hidden;text-overflow:ellipsis;max-width:220px}
.cc-trigger .cc-trigger-kind{color:var(--tx3)}
.cc-trigger .cc-trigger-value{font-weight:500}
.cc-trigger .cc-trigger-chevron{display:flex;color:var(--tx3)}
.cc-trigger .cc-trigger-chevron svg{width:12px;height:12px}
.cc-trigger .cc-trigger-state{color:var(--acc);font-size:12px}
.cc-trigger.is-paused .cc-trigger-state{color:var(--tx3)}
.cc-popover{position:fixed;z-index:220;width:360px;max-width:calc(100vw - 24px);display:flex;flex-direction:column;overflow:hidden;background:var(--bg0);border:1px solid var(--brd);border-radius:var(--zh-radius-lg);box-shadow:var(--zh-shadow-popover);color:var(--tx1);font-size:14px}
.cc-panel-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0;padding:16px;border-bottom:1px solid var(--brd)}
.cc-panel-header h2{margin:0;font-size:14px;line-height:20px;font-weight:600;color:var(--tx1)}
.cc-panel-close{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:40px;height:40px;border:0;border-radius:var(--zh-radius-lg);background:transparent;color:var(--tx2);font:inherit;font-size:20px;cursor:pointer}
.cc-panel-close:hover{background:var(--bg3)}
.cc-panel-scroll{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:12px;scrollbar-gutter:stable}
.cc-context{margin:0 0 12px;padding:12px;border:1px solid var(--brd);border-radius:var(--zh-radius-lg);background:var(--bg1);font-size:12px;line-height:20px;color:var(--tx2)}
.cc-choice{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:12px;border:1px solid transparent;border-radius:var(--zh-radius-lg);background:transparent;color:var(--tx1);text-align:left;font:inherit;cursor:pointer}
.cc-choice:hover:not(:disabled){background:var(--bg3)}
.cc-choice.is-selected{background:var(--acc-m);border-color:var(--acc-b)}
.cc-choice:disabled{opacity:.5;cursor:not-allowed}
.cc-choice-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.cc-choice-copy b{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:14px;font-weight:500;line-height:20px}
.cc-choice-copy small{font-size:12px;line-height:16px;color:var(--tx2);overflow-wrap:anywhere}
.cc-choice-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px;color:var(--acc);flex-shrink:0}
.cc-choice-icon svg{width:20px;height:20px}
.cc-choice>.mdl-dot{flex-shrink:0}
.cc-radio-dot{flex-shrink:0;width:16px;height:16px;border:1px solid var(--tx3);border-radius:50%;display:flex;align-items:center;justify-content:center}
.is-selected>.cc-radio-dot{border-color:var(--acc)}
.is-selected>.cc-radio-dot::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--acc)}
.cc-tag{font-size:12px;font-weight:400;line-height:16px;color:var(--acc)}
.cc-model-price{font-size:12px;color:var(--tx3);font-weight:400;margin-left:auto}
.cc-section-label{padding:16px 12px 8px;color:var(--tx2);font-size:12px;line-height:16px}
.cc-think-section{margin:12px 0 0;padding:16px 4px 4px;border-top:1px solid var(--brd)}
.cc-section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;font-size:14px;line-height:20px}
.cc-section-heading b{font-weight:500}
.cc-section-heading span{font-size:12px;color:var(--tx3)}
.cc-segments{display:flex;gap:4px;border:1px solid var(--brd);border-radius:var(--zh-radius-lg);padding:4px;background:var(--bg1)}
.cc-segments button{flex:1;min-width:0;min-height:40px;border:1px solid transparent;border-radius:8px;padding:8px;background:transparent;font:inherit;font-size:12px;line-height:16px;color:var(--tx2);cursor:pointer}
.cc-segments button.is-selected{background:var(--bg0);border-color:var(--brd);color:var(--acc);box-shadow:var(--zh-shadow-sm);font-weight:500}
.cc-segments button:disabled{opacity:.5;cursor:not-allowed}
.cc-caption{font-size:12px;line-height:20px;color:var(--tx2);margin:8px 0 0;overflow-wrap:anywhere}
.cc-footnote{font-size:12px;line-height:20px;color:var(--tx2);margin:12px 4px 0}
.cc-skills-auto{padding:4px 4px 16px;margin-bottom:12px;border-bottom:1px solid var(--brd)}
.cc-switch-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px}
.cc-switch-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.cc-switch-copy b{font-size:14px;line-height:20px;font-weight:500}
.cc-switch-copy small{font-size:12px;line-height:16px;color:var(--tx2)}
.cc-switch{position:relative;flex-shrink:0;display:flex;align-items:center;width:44px;height:40px;padding:3px;border:0;border-radius:var(--zh-radius-lg);background:transparent;cursor:pointer}
.cc-switch::before{content:"";position:absolute;inset:8px 0;background:var(--tx3);border-radius:var(--zh-radius-lg)}
.cc-switch>span{position:relative;display:block;width:18px;height:18px;border-radius:50%;background:var(--zh-surface);transform:translateX(0);transition:transform .15s}
.cc-switch.is-on::before{background:var(--acc)}
.cc-switch.is-on>span{transform:translateX(20px)}
.cc-switch:disabled{opacity:.45;cursor:not-allowed}
.cc-execution-section+.cc-execution-section{margin-top:24px;padding-top:20px;border-top:1px solid var(--brd)}
.cc-popover .plm-sub-body{padding:0}
.cc-popover .plm-sub-list{max-height:none}
.cc-popover .plm-item{min-height:52px;padding:12px;border-radius:var(--zh-radius-lg)}
.cc-popover .plm-item:disabled{opacity:.5;cursor:not-allowed}
.cc-popover .plm-item-tx b{font-size:14px;line-height:20px}
.cc-popover .plm-item-tx>span,.cc-popover .plm-sub-tip{font-size:12px;line-height:20px}
.cc-popover .plm-search{min-height:40px;border-radius:var(--zh-radius-lg)}
.cc-popover .plm-search input{font-size:14px}
.cc-popover .plm-foot{min-height:40px;font-size:12px}
.cc-checkbox{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:18px;height:18px;border:1px solid var(--tx3);border-radius:4px;color:var(--acc)}
.cc-checkbox.is-checked{border-color:var(--acc);background:var(--acc-m)}
.cc-checkbox svg{width:14px;height:14px}
.cc-skill-selected{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;margin:0 0 4px;border-radius:8px;background:var(--bg1);font-size:12px;line-height:20px}
.cc-skill-selected button{flex-shrink:0;min-width:40px;min-height:40px;border:0;background:transparent;color:var(--tx2);cursor:pointer;font:inherit;font-size:18px}
.cc-control-label{font-size:12px;color:var(--tx2);padding:0 4px 8px}
.cc-empty{padding:20px 12px;font-size:12px;line-height:20px;color:var(--tx2)}
.cc-skill-search{display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--brd);border-radius:var(--zh-radius-lg);background:var(--bg1);margin:0 0 8px}
.cc-skill-search svg{width:16px;height:16px;flex-shrink:0;color:var(--tx3)}
.cc-skill-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:14px;color:var(--tx1)}
.cc-skill-links{display:flex;justify-content:space-between;gap:12px;padding:16px 4px 4px;border-top:1px solid var(--brd);margin-top:12px;font-size:12px}
.cc-skill-links a{color:var(--acc);text-decoration:none;line-height:20px}
.cc-controls button:focus-visible,.cc-popover button:focus-visible,.cc-model-content button:focus-visible,.cc-skills-auto button:focus-visible,.cc-execution-content button:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
@media (prefers-reduced-motion:reduce){.cc-switch>span{transition:none}}
