.knowledge-skills .skill-heading{display:flex;align-items:center;justify-content:space-between;padding:10px 12px 0;gap:8px}.knowledge-skills .skill-heading h3{padding:0}.skill-heading a{font-size:12px;color:var(--theme-blue,#4e77c5)}
.knowledge-skills .skill-link{min-height:44px;width:100%;font-family:inherit;text-decoration:none}.knowledge-skills .skill-link:hover{box-shadow:inset 0 0 0 1px var(--theme-blue,#4e77c5)}
.anchor-worklist-dialog .worklist-actions.incubation-actions{flex-direction:column}
.skill-dialog.incubation-skill-dialog{width:min(660px,94vw);height:fit-content;min-height:0;inset:0;margin:auto}.incubation-skill-body{padding:24px;overflow:auto}.incubation-skill-slot{display:flex;align-items:center;flex-direction:column;gap:14px;padding:34px 22px;border:1px dashed var(--theme-line,#dce4ef);border-radius:12px;text-align:center;background:var(--theme-blue-soft,#f0f5fd)}.incubation-skill-slot h3{margin:0;font-size:18px}.incubation-skill-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:12px;background:var(--theme-surface,#fff);color:var(--theme-blue,#4e77c5);font-size:28px}.incubation-skill-badge{font-size:12px;padding:3px 10px;border-radius:12px;background:var(--theme-surface,#fff);color:var(--theme-muted,#64748b)}.incubation-skill-slot p{margin:0;color:var(--theme-muted,#64748b);font-size:13px;line-height:1.8}.incubation-skill-slot .btn:disabled{cursor:default;opacity:.65}
.knowledge-skills .skill-grid{max-height:166px;overflow:auto;align-content:start}.skill-link{border:0;cursor:pointer;text-align:left;color:inherit}.skill-link small{display:block;color:var(--theme-muted,#64748b);font-size:10px;margin-top:3px}.skill-link strong{font-size:12px;font-weight:500}.skill-card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}
.skill-library-page .page{display:flex;flex-direction:column;min-height:0}.skill-library-page .page-scroll{overflow:auto;flex:1;min-height:0;padding:2px 0 18px}.skill-library-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:18px}.skill-library-toolbar input{max-width:350px}.skill-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}.skill-library-card{display:flex;flex-direction:column;gap:12px;padding:20px;border:1px solid var(--line,#e3e9f2);border-radius:12px;background:var(--theme-surface,#fff);min-width:0}.skill-library-card h2{font-size:17px;margin:0}.skill-library-card p{color:var(--theme-muted,#64748b);font-size:13px;line-height:1.7;overflow-wrap:anywhere}.skill-tags{display:flex;gap:6px;flex-wrap:wrap;font-size:11px;color:var(--theme-muted,#64748b)}.skill-tags span{padding:3px 7px;border-radius:5px;background:var(--theme-blue-soft,#f0f5fd)}
.skill-dialog{width:min(1100px,96vw);height:min(810px,92dvh);max-height:92dvh;max-width:96vw;border:1px solid var(--line,#e3e9f2);border-radius:14px;padding:0;background:var(--theme-surface,#fff);color:var(--theme-text,#172238);box-shadow:0 20px 70px #17223833}.skill-dialog[open]{display:flex;flex-direction:column}.skill-dialog::backdrop{background:#17223866}.skill-dialog>header{flex:none;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 22px;border-bottom:1px solid var(--line,#e3e9f2)}.skill-dialog>header h2{font-size:18px;margin:0}.skill-dialog>header small{display:block;color:var(--theme-muted,#64748b);margin-top:5px}.skill-dialog-body{display:grid;grid-template-columns:245px minmax(0,1fr);flex:1;min-height:0}.skill-picker{padding:16px;border-right:1px solid var(--line,#e3e9f2);overflow:auto}.skill-picker label{font-size:12px;color:var(--theme-muted,#64748b)}.skill-picker select{width:100%;margin:8px 0 14px}.skill-picker-list{display:flex;flex-direction:column;gap:8px}.skill-option{padding:12px;text-align:left;border:1px solid var(--line,#e3e9f2);border-radius:9px;background:transparent;color:inherit;cursor:pointer}.skill-option[aria-pressed=true]{border-color:var(--theme-blue,#4e77c5);background:var(--theme-blue-soft,#f0f5fd)}.skill-option strong{font-size:13px;display:block}.skill-option small{display:block;font-size:11px;line-height:1.6;color:var(--theme-muted,#64748b);margin-top:5px;max-height:52px;overflow:hidden}
.skill-workspace{display:flex;flex-direction:column;min-width:0;min-height:0}.skill-output-scroll{flex:1;min-height:0;overflow:auto;padding:18px 22px}.skill-context{padding:12px 14px;border-radius:9px;background:var(--theme-blue-soft,#f0f5fd);font-size:12px;line-height:1.8;margin-bottom:16px}.skill-context strong{font-size:14px}.skill-context dl{display:flex;gap:8px 18px;flex-wrap:wrap;margin:6px 0 0}.skill-context dt{color:var(--theme-muted,#64748b)}.skill-context dd{margin:0}.skill-output{line-height:1.85;font-size:14px;overflow-wrap:anywhere}.skill-output p{white-space:pre-wrap;margin:12px 0}.skill-output h2{font-size:17px;margin:18px 0 10px}.skill-output ul,.skill-output ol{padding-left:22px}.skill-output table{border-collapse:collapse;font-size:12px;display:block;overflow:auto}.skill-output th,.skill-output td{border:1px solid var(--line,#e3e9f2);padding:7px;white-space:normal}.skill-instructions{font-size:12px;color:var(--theme-muted,#64748b);margin:12px 0}.skill-instructions pre{white-space:pre-wrap;line-height:1.7;max-height:260px;overflow:auto}.skill-result-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.skill-status{font-size:12px;color:var(--theme-muted,#64748b);margin-top:10px}.skill-prompt{flex:none;padding:14px 22px;border-top:1px solid var(--line,#e3e9f2);display:grid;grid-template-columns:1fr auto;gap:10px}.skill-prompt textarea{resize:vertical;min-height:70px;max-height:140px}.skill-prompt button{align-self:end}.skill-run-error{color:#ba3434;font-size:13px;grid-column:1/-1}.skill-task-form{margin-top:20px;border-top:1px solid var(--line,#e3e9f2);padding-top:16px}.skill-task-form .form-field{margin-bottom:12px}.skill-task-form h3{margin-bottom:10px}.skill-task-confirm{display:flex;gap:8px;align-items:flex-start;font-size:12px;margin:15px 0}.skill-task-confirm input{width:auto}.skill-admin-dialog{width:min(760px,96vw);height:auto;max-height:90dvh}.skill-admin-dialog .skill-admin-body{overflow:auto;padding:20px}.skill-admin-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.skill-admin-fields .wide{grid-column:1/-1}.skill-admin-checks{display:flex;gap:16px;flex-wrap:wrap;font-size:13px}.skill-admin-checks label{display:flex;gap:6px;align-items:center}.skill-admin-checks input{width:auto}.skill-upload-box{padding:22px;border:1px dashed var(--theme-blue,#4e77c5);background:var(--theme-blue-soft,#f0f5fd);border-radius:12px;margin-bottom:18px}.skill-upload-box p{font-size:12px;margin:8px 0}.skill-admin-preview{white-space:pre-wrap;overflow:auto;max-height:230px;font:12px/1.8 inherit;border:1px solid var(--line,#e3e9f2);padding:12px;border-radius:8px}.skill-admin-error{color:#ba3434;margin:12px 0}.skill-empty{padding:36px 16px;text-align:center;color:var(--theme-muted,#64748b)}
@media(max-width:760px){.skill-dialog-body{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.skill-picker{border-right:0;border-bottom:1px solid var(--line,#e3e9f2);padding:10px 14px;max-height:180px}.skill-picker-list{flex-direction:row;overflow:auto}.skill-option{flex:0 0 155px}.skill-option small{display:none}.skill-picker select{margin:4px 0 8px}.skill-output-scroll{padding:14px}.skill-prompt{padding:12px 14px}.skill-dialog>header{padding:12px 14px}.skill-admin-fields{grid-template-columns:1fr}.skill-library-grid{grid-template-columns:1fr}}

.skill-card-actions .skill-action-danger{color:var(--theme-danger,#b64444);margin-left:auto}.skill-enabled{color:var(--theme-success,#258a73)}.skill-disabled{opacity:.7}.skill-library-card[aria-busy=true]{opacity:.65;transition:opacity .15s}.skill-content-field{margin-top:18px}.skill-content-editor{font:12px/1.8 ui-monospace,SFMono-Regular,monospace;resize:vertical;min-height:210px;max-height:50vh;tab-size:2}.skill-content-editor:disabled{opacity:.5}.skill-dialog.skill-delete-dialog{width:min(480px,94vw);height:fit-content;min-height:0;max-height:calc(100dvh - 32px);inset:0;margin:auto;overflow:hidden}.skill-delete-dialog .skill-admin-body{min-height:0;padding:22px;overflow:auto}.skill-delete-dialog p{font-size:13px;line-height:1.8;overflow-wrap:anywhere}.skill-delete-dialog .skill-card-actions{justify-content:flex-end;margin-top:24px}.skill-delete-dialog .skill-delete-confirm{background:#b64444;border-color:#b64444;color:#fff}
#admin-skill-list .skill-card-actions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;align-items:stretch}
#admin-skill-list .skill-card-actions>.btn{display:inline-flex;align-items:center;justify-content:center;min-width:0;min-height:34px;margin:0;padding:6px 3px;font-size:12px;line-height:1.5;white-space:nowrap}
.incubation-skill-dialog .incubation-skill-body{min-height:0}.skill-dispatch-picker{margin-bottom:16px}.skill-dispatch-meta,.skill-dispatch-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;font-size:12px;color:var(--theme-muted,#64748b)}.skill-dispatch-meta{margin-bottom:14px}.skill-dispatch-list{display:grid;gap:12px}.skill-dispatch-card{padding:18px;border:1px solid var(--line,#e3e9f2);border-radius:12px;background:var(--theme-surface,#fff);min-width:0}.skill-dispatch-card h3{font-size:16px;line-height:1.5;margin:10px 0}.skill-dispatch-card p{font-size:13px;line-height:1.7;margin:8px 0;overflow-wrap:anywhere}.skill-dispatch-card small{display:block;color:var(--theme-muted,#64748b);font-size:12px;margin-bottom:12px}.skill-dispatch-card .btn{margin-top:8px}.skill-dispatch-status{border-radius:5px;background:var(--theme-blue-soft,#f0f5fd);color:var(--theme-blue,#4e77c5);padding:3px 8px}.skill-dispatch-status.is-overdue{color:var(--theme-danger,#b64444)}.skill-dispatch-notes{padding:10px 0 0}.skill-dispatch-notes p,.skill-dispatch-footnote,.skill-dispatch-loading{font-size:12px;line-height:1.7;color:var(--theme-muted,#64748b);margin:8px 0}.skill-dispatch-unavailable{color:var(--theme-muted,#64748b)}.skill-dispatch-footnote{border-top:1px solid var(--line,#e3e9f2);padding-top:12px;margin-bottom:0}
@media(max-width:600px){.incubation-skill-dialog .incubation-skill-body{padding:16px}.skill-dispatch-card{padding:14px}}
.skill-platform-tag[data-platform-tag=wechat]{color:var(--theme-success,#258a73)}.skill-platform-tag[data-platform-tag=tiktok],.skill-platform-tag[data-platform-tag=tiktok_offline]{color:var(--theme-blue,#4e77c5)}
.skill-photo-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;grid-column:1/-1}.skill-photo-tools small{font-size:11px;color:var(--theme-muted,#64748b)}.skill-photo-drafts{display:flex;gap:8px;overflow:auto;grid-column:1/-1;max-height:86px}.skill-photo-drafts:empty,.skill-run-photos:empty{display:none}.skill-photo-draft{position:relative;flex:0 0 70px;height:76px}.skill-photo-draft img{width:70px;height:70px;object-fit:cover;border-radius:8px}.skill-photo-draft span{position:absolute;bottom:6px;left:0;right:0;background:#172238aa;color:#fff;font-size:10px;text-align:center;border-radius:0 0 8px 8px}.skill-photo-draft button{position:absolute;right:0;top:0;width:22px;height:22px;padding:0;border:0;border-radius:50%;background:#172238cc;color:#fff;cursor:pointer}.skill-run-photos{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.skill-run-photos img{width:76px;height:76px;object-fit:cover;border-radius:8px}.skill-photo-tools input[hidden]{display:none}
