.cs-toolbar { display: grid; grid-template-columns: minmax(180px, 260px) minmax(220px, 1fr) 150px auto auto auto; gap: 10px; align-items: center; }
.cs-create { justify-self: end; }
.cs-intro { margin: 14px 0 18px; color: var(--muted, #64748b); }
.cs-list { display: grid; gap: 14px; }
.cs-card { border: 1px solid var(--line, #e2e8f0); border-radius: 14px; padding: 18px; background: var(--panel, #fff); }
.cs-card-head, .cs-section-head, .cs-dialog-head, .cs-dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cs-card-head > div { display: flex; align-items: center; gap: 10px; }
.cs-card-head strong { font-size: 17px; }
.cs-status { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 9px; font-size: 12px; }
.cs-status.active { color: #047857; background: #ecfdf5; }
.cs-status.disabled { color: #64748b; background: #f1f5f9; }
.cs-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin: 16px 0; }
.cs-card dl div { min-width: 0; }
.cs-card dt { color: var(--muted, #64748b); font-size: 12px; margin-bottom: 4px; }
.cs-card dd { margin: 0; overflow-wrap: anywhere; }
.cs-card-actions { display: flex; justify-content: flex-end; gap: 8px; }
.cs-overlay { position: fixed; inset: 0; z-index: 1200; background: rgb(15 23 42 / 52%); display: grid; place-items: center; padding: 24px; }
.cs-dialog { width: min(980px, 96vw); max-height: 94vh; display: flex; flex-direction: column; background: var(--panel, #fff); border-radius: 16px; box-shadow: 0 28px 80px rgb(15 23 42 / 30%); overflow: hidden; }
.cs-dialog-head { padding: 20px 24px 14px; border-bottom: 1px solid var(--line, #e2e8f0); }
.cs-dialog-head h2 { margin: 0 0 4px; }
.cs-dialog-head span { display: block; }
.cs-dialog-body { overflow: auto; padding: 20px 24px; display: grid; gap: 18px; }
.cs-editor-section { border: 1px solid var(--line, #e2e8f0); border-radius: 14px; padding: 16px; display: grid; gap: 13px; }
.cs-editor-section h3 { margin: 0; }
.cs-editor-section h3 em { font-style: normal; color: #dc2626; font-size: 12px; font-weight: 600; }
.cs-editor-section label > span, .cs-section-head span { display: block; color: var(--muted, #64748b); font-size: 12px; margin-bottom: 6px; }
.cs-editor-section input:not([type="checkbox"]), .cs-editor-section textarea, .cs-editor-section select, .cs-account-tools input, .cs-account-tools select { width: 100%; box-sizing: border-box; }
.cs-account-tools { display: grid; grid-template-columns: 1fr 180px; gap: 10px; }
.cs-account-list { max-height: 240px; overflow: auto; border: 1px solid var(--line, #e2e8f0); border-radius: 10px; }
.cs-account-row, .cs-knowledge-list > label { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border-bottom: 1px solid var(--line, #e2e8f0); }
.cs-account-row:last-child, .cs-knowledge-list > label:last-child { border-bottom: 0; }
.cs-account-row span, .cs-knowledge-list label span { min-width: 0; }
.cs-account-row small, .cs-knowledge-list small { display: block; color: var(--muted, #64748b); margin-top: 3px; }
.cs-account-row.occupied { background: #f8fafc; color: #94a3b8; }
.cs-knowledge-list { max-height: 220px; overflow: auto; border: 1px solid var(--line, #e2e8f0); border-radius: 10px; }
.cs-recipe-list { display: grid; gap: 8px; }
.cs-recipe { border: 1px solid var(--line, #e2e8f0); border-radius: 10px; padding: 10px 12px; }
.cs-recipe summary { cursor: pointer; list-style-position: outside; }
.cs-recipe summary label { display: inline-flex; align-items: flex-start; gap: 9px; width: calc(100% - 16px); cursor: pointer; }
.cs-recipe summary small { display: block; color: var(--muted, #64748b); margin-top: 3px; }
.cs-recipe ol { margin: 12px 0; padding-left: 24px; }
.cs-recipe li { margin: 8px 0; }
.cs-recipe li label { display: block; }
.cs-recipe li textarea, .cs-examples textarea { width: 100%; margin-top: 5px; box-sizing: border-box; }
.cs-recipe > .secondary-btn { margin-top: 10px; }
.cs-method-library { margin: 10px 0; }
.cs-method-library article { padding: 9px 0; border-top: 1px dashed var(--line, #e2e8f0); }
.cs-method-library article:first-of-type { margin-top: 10px; }
.cs-method-library p { margin: 4px 0; color: var(--muted, #64748b); }
.cs-method-library ul { margin: 6px 0; padding-left: 22px; }
.cs-recipe li span { display: block; color: var(--muted, #64748b); margin-top: 2px; }
.cs-examples { border-top: 1px dashed var(--line, #e2e8f0); padding-top: 10px; }
.cs-examples > span { color: var(--muted, #64748b); font-size: 12px; }
.cs-examples p { margin: 6px 0; padding-left: 12px; border-left: 2px solid #c7d2fe; }
.cs-option-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cs-option-grid label { display: flex; gap: 7px; align-items: center; border: 1px solid var(--line, #e2e8f0); border-radius: 9px; padding: 9px; }
.cs-two-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cs-dialog-actions { border-top: 1px solid var(--line, #e2e8f0); padding: 14px 24px; justify-content: flex-end; }
@media (max-width: 800px) {
  .cs-toolbar { grid-template-columns: 1fr; }
  .cs-create { justify-self: stretch; }
  .cs-card dl, .cs-two-cols, .cs-account-tools { grid-template-columns: 1fr; }
  .cs-option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-overlay { padding: 0; }
  .cs-dialog { width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
}
