.skill-instructions{border:1px solid #d2d2d2;border-radius:4px;padding:22px;background:#fafafa;overflow-wrap:anywhere}
.skill-instructions>h3{font-size:16px}.skill-instructions>.helper{margin:5px 0 22px}
.skill-instructions h4{font-size:13px;margin:23px 0 8px;color:#333}
.skill-instructions p,.skill-previous{white-space:pre-wrap;line-height:1.9;font-size:13px}
.skill-history{margin-top:18px;font-size:12px;color:#666}.skill-history details{margin:12px 0;padding:12px;border:1px solid #ddd}.skill-previous{margin-top:14px}
dialog textarea.skill-editor{font-size:13px;line-height:1.9;tab-size:2}

.skill-detail-heading{display:flex;align-items:flex-start;gap:16px;flex-wrap:wrap}
.skill-title-copy{flex:1 1 180px;min-width:0}.skill-title-copy h2{margin:0;overflow-wrap:anywhere}.skill-title-copy p{margin:5px 0 0;color:var(--muted,#738098);font-size:12px;line-height:1.5}
.skill-detail-heading>.resource-toolbar{margin:0;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.resource-toolbar>button,.resource-toolbar .skill-more>summary,.skill-detail-heading>.resource-toolbar>button,.skill-more>summary{height:34px;min-height:34px;max-height:34px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;line-height:1}.resource-toolbar button{white-space:nowrap}
.skill-more{position:relative;flex:none}.skill-more>summary{list-style:none;cursor:pointer;white-space:nowrap;border:1px solid #d7dee8;border-radius:8px;padding:0 12px;background:#fff;font-size:12px;display:inline-flex;align-items:center;gap:7px}.skill-more>summary::-webkit-details-marker{display:none}.skill-more>summary::after{content:'';width:5px;height:5px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-1px) rotate(45deg);transform-origin:center}.skill-more[open]>summary::after{transform:translateY(1px) rotate(225deg)}
.skill-more-menu{position:absolute;z-index:8;top:calc(100% + 7px);right:0;display:grid;gap:4px;min-width:150px;padding:7px;background:#fff;border:1px solid #dbe1e9;border-radius:10px;box-shadow:0 10px 30px #26324724}.skill-more-menu button{width:100%;text-align:left;border:0;background:transparent;font-weight:400}.skill-more-menu button:hover{background:#f1f4f8}
.skill-version-summary{display:grid;grid-template-columns:90px minmax(0,1fr);gap:9px 14px;margin:0}.skill-version-summary dt{color:#738098}.skill-version-summary dd{margin:0;overflow-wrap:anywhere}.skill-version-list{margin-top:20px}.skill-version-list pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f4f7f9;padding:14px;border-radius:8px;font:13px/1.8 inherit}

/* The editing surface fills a movable window; actions never scroll with the text. */
#dialog.skill-editor-window{position:fixed;box-sizing:border-box;max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);padding:0;overflow:hidden}
#dialog.skill-editor-window #form{height:100%;min-height:0;display:flex;flex-direction:column}
#dialog.skill-editor-window #form-body{flex:1;min-height:0;display:flex;flex-direction:column;overflow:auto;padding:24px 26px 0}
#dialog.skill-editor-window .skill-editor-heading{flex:none;cursor:grab;touch-action:none;user-select:none}
#dialog.skill-editor-window .skill-editor-heading:focus-visible{outline:2px solid #a9bdf7;outline-offset:5px;border-radius:4px}
#dialog.skill-editor-window .skill-editor-heading .description{margin:6px 0 16px;overflow-wrap:anywhere}
#dialog.skill-editor-window .scope{flex:none;margin:0 0 12px;font-size:12px;line-height:1.65}
#dialog.skill-editor-window label{flex:none;margin:0 0 8px}
#dialog.skill-editor-window textarea.skill-editor{flex:1;min-height:60px!important;height:auto;width:100%;resize:none;overflow:auto;margin:0 0 16px}
#dialog.skill-editor-window #workflow-error{flex:none;margin:0 0 10px}
#dialog.skill-editor-window #workflow-error:empty{display:none}
#dialog.skill-editor-window .actions{flex:none;display:flex;align-items:center;gap:10px;margin:0;padding:16px 42px 20px 26px;border-top:1px solid var(--line,#e4e7ed)}
#dialog.skill-editor-window .actions>button{flex:none;white-space:nowrap}
#dialog.skill-editor-window .skill-window-resize{position:absolute;right:2px;bottom:2px;width:28px;height:28px;display:grid;place-items:center;padding:5px;border:0;background:transparent;color:#91a0b9;cursor:nwse-resize;touch-action:none}
.skill-window-resize svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round}
#dialog.skill-editor-window.skill-window-moving .skill-editor-heading{cursor:grabbing}
#dialog.skill-window-moving,#dialog.skill-window-sizing{user-select:none}
