.common-subagents { min-width: 0; padding: 12px; border: 1px solid #e0e7ff; border-radius: 12px; background: #f8faff; color: #3730a3; font-size: 13px; }
.common-subagents[hidden], .common-subagents [hidden] { display: none !important; }
.common-subagents button, .common-subagents input { font: inherit; box-sizing: border-box; }
.common-subagents button { cursor: pointer; min-height: 40px; border: 1px solid #c7d2fe; border-radius: 8px; padding: 6px 10px; color: #4338ca; background: #fff; }
.common-subagents button:focus-visible, .common-subagents input:focus-visible { outline: 2px solid #6366f1; outline-offset: 2px; }
.common-subagents button:disabled { opacity: .45; cursor: default; }
.cs-heading, .cs-actions, .cs-editor-actions { display: flex; align-items: center; gap: 8px; }
.cs-heading { justify-content: space-between; flex-wrap: wrap; font-weight: 700; }
.cs-heading small { font-size: 11px; color: #8185a6; font-weight: 400; white-space: nowrap; }
.cs-hint, .cs-empty { margin: 8px 0; color: #737a94; font-size: 12px; line-height: 1.6; }
.cs-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cs-item { display: inline-flex; min-width: 0; max-width: 100%; align-items: stretch; }
.cs-item button[data-common-name] { min-width: 0; max-width: 100%; overflow-wrap: anywhere; text-align: left; }
.cs-item button[aria-pressed="true"] { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.cs-item:has(.cs-remove) button[data-common-name] { border-radius: 8px 0 0 8px; }
.cs-item .cs-remove { flex: 0 0 40px; border-radius: 0 8px 8px 0; color: #be123c; margin-left: -1px; font-size: 20px; }
.cs-editor { margin-top: 12px; padding: 10px; border: 1px solid #c7d2fe; border-radius: 8px; background: #fff; }
.cs-editor label { display: block; font-weight: 600; margin-bottom: 8px; }
.cs-editor input { width: 100%; min-width: 0; height: 44px; padding: 8px; border: 1px solid #c7d2fe; border-radius: 6px; color: #312e81; background: #fff; font-size: 16px; }
.cs-editor-actions { margin-top: 8px; }
.cs-editor #csSave { background: #4f46e5; color: #fff; border-color: #4f46e5; }
.cs-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
#csMessage { flex: 1 1 150px; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
#csMessage:empty { display: none; }
.cs-footer #csClear { margin-left: auto; border: 0; background: transparent; font-size: 12px; color: #737a94; }
