.cm-ghfm{--gh-border:#d0d7de;--gh-muted:#57606a;--gh-bg:#f6f8fa;--gh-danger:#cf222e;max-width:1100px}
.cm-ghfm-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}
.cm-ghfm-head h2{margin:0 0 5px}.cm-ghfm-head p{margin:0;color:var(--gh-muted)}
.cm-ghfm-status{border:1px solid var(--gh-border);border-radius:7px;padding:10px 12px;margin:0 0 14px;background:#fff}
.cm-ghfm-status.is-success{border-color:#2da44e;background:#dafbe1}.cm-ghfm-status.is-error{border-color:#cf222e;background:#ffebe9}.cm-ghfm-status.is-info{background:#ddf4ff;border-color:#54aeff}
.cm-ghfm-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,.75fr) minmax(150px,.55fr) auto;gap:10px;align-items:end;margin:0 0 14px}
.cm-ghfm-field{display:flex;flex-direction:column;gap:5px}.cm-ghfm-field>span{font-size:12px;font-weight:600;color:#24292f}
.cm-ghfm-field select,.cm-ghfm-field input,.cm-ghfm-field textarea,.cm-ghfm select,.cm-ghfm input[type=text]{width:100%;border:1px solid var(--gh-border);border-radius:6px;background:#fff;padding:8px 10px;min-height:38px;font:inherit;box-sizing:border-box}
.cm-ghfm textarea{width:100%;border:1px solid var(--gh-border);border-radius:6px;padding:12px;box-sizing:border-box;font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;font-size:13px;line-height:1.55;resize:vertical;background:#fff}
.cm-ghfm-add-wrap{position:relative}.cm-ghfm-add-button{min-height:38px;white-space:nowrap}.cm-ghfm-add-menu{position:absolute;right:0;top:calc(100% + 5px);z-index:20;min-width:190px;background:#fff;border:1px solid var(--gh-border);border-radius:7px;box-shadow:0 8px 24px rgba(140,149,159,.2);padding:5px}
.cm-ghfm-add-menu button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:8px 10px;border-radius:5px;cursor:pointer}.cm-ghfm-add-menu button:hover{background:var(--gh-bg)}
.cm-ghfm-browser,.cm-ghfm-workspace{border:1px solid var(--gh-border);border-radius:8px;background:#fff;overflow:hidden}
.cm-ghfm-breadcrumb{display:flex;align-items:center;gap:3px;flex-wrap:wrap;padding:12px 14px;border-bottom:1px solid var(--gh-border);background:var(--gh-bg)}
.cm-ghfm-crumb{border:0;background:transparent;color:#0969da;font:inherit;font-weight:600;padding:2px 3px;cursor:pointer}.cm-ghfm-crumb:hover{text-decoration:underline}.cm-ghfm-crumb-sep{color:#8c959f}
.cm-ghfm-list-head{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;border-bottom:1px solid var(--gh-border)}
.cm-ghfm-refresh{border:1px solid var(--gh-border);background:#f6f8fa;border-radius:6px;padding:4px 9px;cursor:pointer;font-size:17px}
.cm-ghfm-row{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:8px;padding:9px 14px;border-bottom:1px solid #eaeef2}.cm-ghfm-row:last-child{border-bottom:0}.cm-ghfm-row:hover{background:#f6f8fa}
.cm-ghfm-row-icon{color:#57606a;text-align:center}.cm-ghfm-row-name{border:0;background:transparent;color:#0969da;padding:0;text-align:left;cursor:pointer;font:inherit;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cm-ghfm-row-name:hover{text-decoration:underline}.cm-ghfm-row-meta{color:#57606a;font-size:12px;white-space:nowrap}.cm-ghfm-empty{padding:28px;text-align:center;color:#57606a}
.cm-ghfm-workspace-head{display:flex;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid var(--gh-border);background:var(--gh-bg)}.cm-ghfm-back{border:0;background:transparent;color:#0969da;padding:0;cursor:pointer;font:inherit}.cm-ghfm-workspace-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-ghfm-mode{padding:16px}.cm-ghfm-mode h3{margin:0 0 14px}.cm-ghfm-mode>.cm-ghfm-field{margin-bottom:12px}
.cm-ghfm-commit-box{margin-top:16px;padding:14px;border:1px solid var(--gh-border);border-radius:7px;background:var(--gh-bg)}.cm-ghfm-commit-box h4{margin:0 0 12px}.cm-ghfm-danger-box{border-color:#ff8182;background:#fff1f0}
.cm-ghfm-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:12px;flex-wrap:wrap}
.cm-ghfm-upload-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px dashed var(--gh-border);border-radius:8px;padding:30px 18px;text-align:center;cursor:pointer;background:#fafbfc}.cm-ghfm-upload-drop input{margin-bottom:10px}.cm-ghfm-upload-drop span{font-weight:700}.cm-ghfm-upload-drop small{color:#57606a;margin-top:4px}
.cm-ghfm-upload-selected{margin-top:10px}.cm-ghfm-upload-item{padding:7px 10px;border:1px solid #eaeef2;border-radius:6px;margin-top:6px;background:#fff}
.cm-ghfm-file-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;padding-bottom:12px;border-bottom:1px solid #eaeef2}.cm-ghfm-file-toolbar>div{display:flex;gap:7px}.cm-ghfm-file-path,.cm-ghfm-edit-path,.cm-ghfm-delete-path{font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;overflow-wrap:anywhere}.cm-ghfm-file-meta{color:#57606a;font-size:12px;margin:10px 0}.cm-ghfm-file-preview{margin:0;border:1px solid #eaeef2;border-radius:6px;background:#f6f8fa;padding:14px;overflow:auto;max-height:70vh;white-space:pre-wrap;word-break:break-word;font-size:12.5px;line-height:1.5}.cm-ghfm-file-binary{padding:20px;border:1px solid #eaeef2;background:#f6f8fa;border-radius:6px;color:#57606a}
.cm-ghfm.is-busy{cursor:progress}.cm-ghfm.is-busy .cm-ghfm-list,.cm-ghfm.is-busy .cm-ghfm-workspace{opacity:.72}
.cm-ghfm .cm-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border-radius:6px;min-height:36px;padding:7px 12px;cursor:pointer;font-weight:600}.cm-ghfm .cm-btn:disabled{opacity:.55;cursor:not-allowed}
.cm-ghfm-delete-commit{background:#cf222e!important;border-color:#cf222e!important;color:#fff!important}
@media(max-width:760px){.cm-ghfm-toolbar{grid-template-columns:1fr}.cm-ghfm-add-wrap,.cm-ghfm-add-button{width:100%}.cm-ghfm-add-menu{left:0;right:auto;width:100%;box-sizing:border-box}.cm-ghfm-row{grid-template-columns:22px minmax(0,1fr)}.cm-ghfm-row-meta{display:none}.cm-ghfm-file-toolbar{align-items:flex-start;flex-direction:column}.cm-ghfm-actions{justify-content:stretch}.cm-ghfm-actions .cm-btn{flex:1 1 140px}.cm-ghfm-mode{padding:12px}.cm-ghfm-head{margin-bottom:12px}}

.cm-ghfm-action-note{margin:-4px 0 14px;padding:10px 12px;border:1px solid #ff8182;border-radius:7px;background:#fff1f0;color:#24292f;font-size:13px}
.cm-ghfm.is-delete-action .cm-ghfm-delete-button{background:#cf222e!important;border-color:#cf222e!important;color:#fff!important}

/* v1.0.30.84: exact single-file delete picker */
.cm-ghfm-delete-picker{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:-4px 0 14px;padding:12px;border:1px solid #ff8182;border-radius:7px;background:#fff8f7}
.cm-ghfm-delete-confirm{display:inline-flex;align-items:center;gap:8px;font-weight:600;color:#24292f;cursor:pointer}
.cm-ghfm-delete-confirm input{width:18px;height:18px;margin:0}
.cm-ghfm-delete-selected{background:#cf222e!important;border-color:#cf222e!important;color:#fff!important}
.cm-ghfm-delete-picked-path{flex:1 1 100%;font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;color:#57606a;overflow-wrap:anywhere}
@media(max-width:760px){.cm-ghfm-delete-picker{align-items:stretch}.cm-ghfm-delete-selected{width:100%}}


/* v1.0.30.85: delete controls are invisible until Action = Delete. */
.cm-ghfm:not(.is-delete-action) .cm-ghfm-delete-only,
.cm-ghfm:not(.is-delete-action) .cm-ghfm-delete-button,
.cm-ghfm:not(.is-delete-action) .cm-ghfm-mode[data-mode="delete"]{display:none!important}
.cm-ghfm .cm-ghfm-delete-only[hidden]{display:none!important}


/* v1.0.30.86: repository and branch creation actions */
.cm-ghfm-create-repo-panel,.cm-ghfm-create-branch-panel{margin:-4px 0 14px;padding:16px;border:1px solid var(--gh-border);border-radius:8px;background:#fff}
.cm-ghfm-create-repo-panel h3,.cm-ghfm-create-branch-panel h3{margin:0 0 6px}.cm-ghfm-create-repo-panel p,.cm-ghfm-create-branch-panel p{margin:0 0 14px;color:var(--gh-muted)}
.cm-ghfm-structure-grid{display:grid;grid-template-columns:minmax(220px,1fr) minmax(150px,.45fr);gap:10px;margin-bottom:10px}
.cm-ghfm-structure-check{display:flex;align-items:flex-start;gap:9px;margin-top:12px;font-weight:600}.cm-ghfm-structure-check input{width:18px;height:18px;margin:1px 0 0}
.cm-ghfm-structure-actions{margin-top:14px}.cm-ghfm-permission-note{display:block;margin-top:10px;color:var(--gh-muted);line-height:1.45}
.cm-ghfm .cm-ghfm-create-repo-only[hidden],.cm-ghfm .cm-ghfm-create-branch-only[hidden],.cm-ghfm .cm-ghfm-branch-field[hidden]{display:none!important}
@media(max-width:760px){.cm-ghfm-structure-grid{grid-template-columns:1fr}}


/* v1.0.30.87: branch and repository delete targets inside Delete mode */
.cm-ghfm-delete-picker{align-items:stretch}
.cm-ghfm-delete-target{display:grid;grid-template-columns:minmax(220px,1fr) auto;align-items:center;gap:10px;width:100%;padding:10px;border:1px solid #ffd8d5;border-radius:7px;background:#fff}
.cm-ghfm-delete-target-repo{border-color:#ff8182;background:#fff1f0}
.cm-ghfm-delete-target small{grid-column:1/-1}
.cm-ghfm-delete-branch,.cm-ghfm-delete-repo{background:#cf222e!important;border-color:#cf222e!important;color:#fff!important}
@media(max-width:760px){.cm-ghfm-delete-target{grid-template-columns:1fr}.cm-ghfm-delete-target .cm-btn{width:100%}.cm-ghfm-delete-target small{grid-column:1}}

/* v1.0.30.88: visual README editor (Markdown remains the GitHub storage format). */
.cm-ghfm-readme-editor{margin:0 0 12px;border:1px solid var(--gh-border);border-radius:8px;background:#fff;overflow:hidden}
.cm-ghfm-readme-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 10px;border-bottom:1px solid var(--gh-border);background:var(--gh-bg)}
.cm-ghfm-editor-tabs{display:flex;gap:4px}.cm-ghfm-editor-tab{border:1px solid transparent;background:transparent;border-radius:5px;padding:5px 9px;font:inherit;font-weight:600;cursor:pointer;color:#57606a}.cm-ghfm-editor-tab.is-active{background:#fff;border-color:var(--gh-border);color:#24292f}
.cm-ghfm-readme-toolbar{display:flex;align-items:center;gap:4px;flex-wrap:wrap;padding:8px;border-bottom:1px solid var(--gh-border);background:#fff}
.cm-ghfm-readme-toolbar button{min-width:36px;border:1px solid var(--gh-border);border-radius:5px;background:#f6f8fa;padding:6px 8px;font:inherit;cursor:pointer;color:#24292f}.cm-ghfm-readme-toolbar button:hover{background:#eef1f4}
.cm-ghfm-readme-visual{min-height:320px;padding:16px;outline:0;overflow:auto;line-height:1.6;color:#24292f;background:#fff}
.cm-ghfm-readme-visual:focus{box-shadow:inset 0 0 0 2px #0969da}
.cm-ghfm-readme-visual h1,.cm-ghfm-readme-visual h2,.cm-ghfm-readme-visual h3,.cm-ghfm-readme-visual h4,.cm-ghfm-readme-visual h5,.cm-ghfm-readme-visual h6{line-height:1.25;margin:1em 0 .45em}
.cm-ghfm-readme-visual h1{font-size:2em;border-bottom:1px solid #d8dee4;padding-bottom:.3em}.cm-ghfm-readme-visual h2{font-size:1.5em;border-bottom:1px solid #d8dee4;padding-bottom:.3em}
.cm-ghfm-readme-visual p{margin:.7em 0}.cm-ghfm-readme-visual ul,.cm-ghfm-readme-visual ol{padding-left:2em}.cm-ghfm-readme-visual blockquote{margin:1em 0;padding:0 1em;color:#57606a;border-left:.25em solid #d0d7de}.cm-ghfm-readme-visual code{font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;background:#eff1f3;border-radius:4px;padding:.15em .35em}.cm-ghfm-readme-visual pre{background:#f6f8fa;border-radius:6px;padding:12px;overflow:auto}.cm-ghfm-readme-visual pre code{background:transparent;padding:0}
.cm-ghfm-readme-markdown{border:0!important;border-radius:0!important;min-height:320px;margin:0!important}
.cm-ghfm-readme-editor>small{display:block;padding:8px 10px;border-top:1px solid var(--gh-border);background:var(--gh-bg);color:var(--gh-muted)}
.cm-ghfm-readme-editor[hidden],.cm-ghfm-plain-editor[hidden],.cm-ghfm-edit-plain[hidden],.cm-ghfm-readme-toolbar[hidden],.cm-ghfm-readme-visual[hidden],.cm-ghfm-readme-markdown[hidden]{display:none!important}
@media(max-width:760px){.cm-ghfm-readme-head{align-items:flex-start;flex-direction:column}.cm-ghfm-readme-toolbar button{flex:1 0 auto}.cm-ghfm-readme-visual{min-height:280px;padding:12px}}

/* v1.0.30.89: real WordPress visual editor for prose files. */
.cm-ghfm-wp-visual{margin:0 0 12px;border:1px solid var(--gh-border);border-radius:8px;background:#fff;overflow:hidden}
.cm-ghfm-visual-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid var(--gh-border);background:var(--gh-bg)}
.cm-ghfm-visual-format{font-size:12px;color:var(--gh-muted);font-weight:600}
.cm-ghfm-wp-visual .wp-editor-wrap{margin:0}
.cm-ghfm-wp-visual .wp-editor-container{border:0!important}
.cm-ghfm-wp-visual .mce-tinymce,.cm-ghfm-wp-visual .mce-container-body{box-shadow:none!important}
.cm-ghfm-wp-visual .mce-edit-area iframe{min-height:320px}
.cm-ghfm-wp-visual .cm-ghfm-visual-help{display:block;padding:9px 12px;border-top:1px solid var(--gh-border);background:var(--gh-bg);color:var(--gh-muted)}
.cm-ghfm-wp-visual[hidden],.cm-ghfm-plain-editor[hidden],.cm-ghfm-edit-plain[hidden]{display:none!important}
@media(max-width:760px){.cm-ghfm-visual-head{align-items:flex-start;flex-direction:column}.cm-ghfm-wp-visual .mce-edit-area iframe{min-height:280px}}


/* v1.0.30.90: AJAX-safe real WordPress Classic Editor / TinyMCE. */
.cm-ghfm-wp-visual .wp-editor-wrap{border:0;background:#fff}
.cm-ghfm-wp-visual .wp-editor-tools{padding:8px 8px 0}
.cm-ghfm-wp-visual .wp-switch-editor{box-sizing:content-box}
.cm-ghfm-wp-visual .wp-editor-container{border-left:0;border-right:0}
.cm-ghfm-wp-visual .mce-toolbar-grp{background:#f6f7f7}
.cm-ghfm-wp-visual .mce-edit-area iframe{min-height:320px}
.cm-ghfm-wp-visual textarea.wp-editor-area{min-height:320px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
@media(max-width:760px){.cm-ghfm-wp-visual .mce-edit-area iframe,.cm-ghfm-wp-visual textarea.wp-editor-area{min-height:300px}}


/* v1.0.30.91: Edit is a first-class Action with its own branch file picker. */
.cm-ghfm-edit-picker{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:-4px 0 14px;padding:12px;border:1px solid var(--gh-border);border-radius:7px;background:#fff}
.cm-ghfm-edit-picked-path{flex:1 1 100%;font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;color:var(--gh-muted);overflow-wrap:anywhere}
.cm-ghfm:not(.is-edit-action) .cm-ghfm-edit-only{display:none!important}
.cm-ghfm .cm-ghfm-edit-only[hidden]{display:none!important}
@media(max-width:760px){.cm-ghfm-edit-picker{align-items:stretch}.cm-ghfm-edit-selected{width:100%}}

/* v1.0.30.92 operation tabs + releases */
.cm-ghfm-operation-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}.cm-ghfm-op-tab.is-active{font-weight:700}.cm-ghfm-kind-row{max-width:420px;margin-bottom:12px}.cm-ghfm-release-panel{margin-top:16px;padding:18px;border:1px solid #dcdcde;border-radius:8px;background:#fff}.cm-ghfm-release-flags{display:flex;gap:20px;flex-wrap:wrap;margin:12px 0}.cm-ghfm-release-delete-box{margin-top:14px;padding:14px;border:1px solid #d63638;border-radius:6px}.cm-ghfm-delete-target[hidden]{display:none!important}
