.cm-code-editor-heading{
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:flex-start;
    margin:0 0 14px;
}
.cm-code-editor-heading h2{margin:0 0 4px}
.cm-code-editor-heading p{margin:0;color:#57606a}

.cm-code-editor-mode-tabs{
    display:flex;
    gap:8px;
    margin:0 0 14px;
}
.cm-code-editor-start{
    display:grid;
    grid-template-columns:minmax(220px,280px) minmax(0,1fr);
    border:1px solid #d0d7de;
    border-radius:8px;
    overflow:hidden;
    background:#fff;
}
.cm-code-editor-repo-explorer{
    min-width:0;
    background:#f6f8fa;
    border-right:1px solid #d0d7de;
}
.cm-code-editor-repo-explorer-head{
    padding:12px;
    border-bottom:1px solid #d0d7de;
}
.cm-code-editor-repo-explorer-head strong,
.cm-code-editor-repo-explorer-head small{display:block}
.cm-code-editor-repo-explorer-head small{margin-top:2px;color:#57606a}
.cm-code-editor-repo-list{padding:6px;max-height:520px;overflow:auto}
.cm-code-editor-repo-item{
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:8px;
    border:0;
    border-radius:5px;
    background:transparent;
    padding:9px 8px;
    text-align:left;
    color:#24292f;
    cursor:pointer;
    font:inherit;
}
.cm-code-editor-repo-item:hover,
.cm-code-editor-repo-item.is-selected{background:#eaeef2}
.cm-code-editor-repo-item span{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.cm-code-editor-repo-item small{
    flex:0 0 auto;
    color:#57606a;
    font-size:11px;
}
.cm-code-editor-setup-area{min-width:0;padding:20px}
.cm-code-editor-setup h3{margin:0 0 5px}
.cm-code-editor-setup>p{margin:0 0 18px;color:#57606a}
.cm-code-editor-form-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
    margin-bottom:16px;
}
.cm-code-editor-canonical{display:none!important}
.cm-code-editor-editor[hidden],
.cm-code-editor-start[hidden],
.cm-code-editor-mode-tabs[hidden]{display:none!important}

/* Standalone Code Editor close button beside the shared green Save button. */
.cm-code-editor-close{
    flex:0 0 auto;
    height:34px;
    border:1px solid #d0d7de;
    border-radius:6px;
    background:#fff;
    color:#24292f;
    padding:0 14px;
    font:inherit;
    font-weight:700;
    cursor:pointer;
}
.cm-code-editor-close:hover{background:#f6f8fa}

/* On mobile the setup repository explorer can be compact without losing it. */
@media(max-width:820px){
    .cm-code-editor-start{grid-template-columns:1fr}
    .cm-code-editor-repo-explorer{
        border-right:0;
        border-bottom:1px solid #d0d7de;
    }
    .cm-code-editor-repo-list{
        display:flex;
        gap:6px;
        max-height:none;
        overflow-x:auto;
        overflow-y:hidden;
        white-space:nowrap;
        -webkit-overflow-scrolling:touch;
        scrollbar-width:none;
    }
    .cm-code-editor-repo-list::-webkit-scrollbar{display:none}
    .cm-code-editor-repo-item{
        flex:0 0 auto;
        width:auto;
        max-width:260px;
        border:1px solid #d0d7de;
        background:#fff;
    }
    .cm-code-editor-setup-area{padding:15px}
    .cm-code-editor-form-grid{grid-template-columns:1fr}
}

@media(max-width:520px){
    .cm-code-editor-setup-area{padding:12px}
    .cm-code-editor-close{height:32px;padding:0 11px}
}

.cm-code-editor-heading-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.cm-code-editor-pwa-body{margin:0!important;min-height:100vh;background:#f6f8fa}
.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view{min-height:100vh;box-sizing:border-box;padding:0;background:#fff}
.cm-code-editor-pwa-bar{position:sticky;top:0;z-index:100;display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:50px;padding:6px 10px 6px 14px;box-sizing:border-box;background:#f6f8fa;color:#24292f;border-bottom:1px solid #d0d7de}
.cm-code-editor-pwa-brand{display:flex;align-items:baseline;gap:10px;min-width:0}
.cm-code-editor-pwa-brand strong{font-size:15px}.cm-code-editor-pwa-brand span{font-size:12px;color:#57606a}
.cm-code-editor-pwa-actions{display:flex;align-items:center;gap:8px}
.cm-code-editor-dashboard-link{color:#24292f;text-decoration:none;font-size:13px;font-weight:700;padding:7px 10px;border-radius:6px}
.cm-code-editor-dashboard-link:hover{background:rgba(0,0,0,.06)}
.cm-code-editor-app-close{width:36px;height:36px;border:0;border-radius:6px;background:transparent;color:#24292f;font-size:26px;line-height:1;cursor:pointer}
.cm-code-editor-app-close:hover{background:#c42b1c}
.is-pwa-view>.cm-code-editor-heading,.is-pwa-view>.cm-ghfm-status,.is-pwa-view>.cm-code-editor-mode-tabs,.is-pwa-view>.cm-code-editor-start,.is-pwa-view>.cm-code-editor-editor{margin-left:14px;margin-right:14px}
.is-pwa-view>.cm-code-editor-heading{margin-top:14px}
.cm-code-editor-save-dialog{position:fixed;z-index:100000;inset:0;display:grid;place-items:center;padding:20px;background:rgba(15,23,42,.55)}
.cm-code-editor-save-dialog[hidden]{display:none!important}
.cm-code-editor-save-dialog-card{width:min(460px,100%);box-sizing:border-box;border-radius:12px;background:#fff;color:#24292f;padding:22px;box-shadow:0 24px 80px rgba(0,0,0,.3)}
.cm-code-editor-save-dialog-card h3{margin:0 0 8px;font-size:21px}.cm-code-editor-save-dialog-card p{margin:0 0 20px;color:#57606a}
.cm-code-editor-save-dialog-actions{display:flex;gap:9px;justify-content:flex-end;flex-wrap:wrap}
.cm-code-editor-closed-screen{min-height:calc(100vh - 50px);display:grid;place-items:center;padding:24px;box-sizing:border-box;text-align:center;background:#f6f8fa}
.cm-code-editor-closed-screen>div{max-width:520px}.cm-code-editor-closed-screen h2{margin:0 0 8px}.cm-code-editor-closed-screen p{color:#57606a}
@media(max-width:820px){
    .cm-code-editor-pwa-brand span{display:none}
    .is-pwa-view>.cm-code-editor-heading,.is-pwa-view>.cm-ghfm-status,.is-pwa-view>.cm-code-editor-mode-tabs,.is-pwa-view>.cm-code-editor-start,.is-pwa-view>.cm-code-editor-editor{margin-left:8px;margin-right:8px}
    .cm-code-editor-save-dialog-actions{display:grid;grid-template-columns:1fr}
    .cm-code-editor-save-dialog-actions .cm-btn{width:100%}
}

/* v1.0.30.104 — PWA ribbon */
.cm-code-editor-ribbon{
    position:sticky;
    top:50px;
    z-index:90;
    display:flex;
    align-items:stretch;
    gap:0;
    min-width:0;
    overflow-x:auto;
    overflow-y:hidden;
    background:#f6f8fa;
    border-bottom:1px solid #d0d7de;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
}
.cm-code-editor-ribbon::-webkit-scrollbar{display:none}
.cm-code-ribbon-group{
    flex:0 0 auto;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    min-width:max-content;
    padding:5px 8px 3px;
    border-right:1px solid #d0d7de;
}
.cm-code-ribbon-buttons{display:flex;align-items:stretch;gap:3px}
.cm-code-ribbon-group>small{
    display:block;
    margin-top:3px;
    text-align:center;
    font-size:10px;
    line-height:1.1;
    color:#57606a;
}
.cm-code-ribbon-button{
    min-width:58px;
    min-height:52px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    border:1px solid transparent;
    border-radius:5px;
    background:transparent;
    color:#24292f;
    cursor:pointer;
    font:inherit;
    text-decoration:none;
}
.cm-code-ribbon-button:hover:not(:disabled){background:#fff;border-color:#d0d7de}
.cm-code-ribbon-button:disabled{opacity:.42;cursor:not-allowed}
.cm-code-ribbon-button .dashicons{width:20px;height:20px;font-size:20px}
.cm-code-ribbon-button b{font-size:11px}

/* Open repository dialog */
.cm-code-editor-open-dialog{
    position:fixed;
    z-index:100000;
    inset:0;
    display:grid;
    place-items:center;
    padding:20px;
    background:rgba(15,23,42,.55);
}
.cm-code-editor-open-dialog[hidden]{display:none!important}
.cm-code-editor-open-dialog-card{
    width:min(520px,100%);
    box-sizing:border-box;
    border-radius:12px;
    background:#fff;
    padding:22px;
    box-shadow:0 24px 80px rgba(0,0,0,.3);
}
.cm-code-editor-open-dialog-card h3{margin:0 0 8px}
.cm-code-editor-open-dialog-card>p{margin:0 0 16px;color:#57606a}
.cm-code-editor-open-dialog-actions{
    display:flex;
    justify-content:flex-end;
    gap:9px;
    margin-top:16px;
}

/* Install hint in clean PWA tab */
.cm-code-editor-install-hint{
    margin:10px 14px 0;
    display:flex;
    gap:8px;
    align-items:flex-start;
    border:1px solid #d0d7de;
    border-radius:8px;
    padding:10px 12px;
    background:#f6f8fa;
}
.cm-code-editor-install-hint strong{flex:0 0 auto}
.cm-code-editor-install-hint span{color:#57606a}

/* Dashboard Downloads page */
.cm-code-download-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
}
.cm-code-download-card{
    position:relative;
    min-width:0;
    border:1px solid #d0d7de;
    border-radius:10px;
    background:#fff;
    padding:20px;
}
.cm-code-download-card>.dashicons{
    width:32px;
    height:32px;
    font-size:32px;
    margin-bottom:10px;
}
.cm-code-download-card h3{margin:0 0 7px}
.cm-code-download-card p{margin:0 0 16px;color:#57606a;line-height:1.5}
.cm-code-download-note{margin-top:16px}
.cm-code-install-tip{position:relative;display:inline-block}
.cm-code-install-tip-box{
    position:absolute;
    z-index:30;
    left:0;
    bottom:calc(100% + 10px);
    width:min(330px,78vw);
    box-sizing:border-box;
    padding:12px;
    border:1px solid #d0d7de;
    border-radius:8px;
    background:#24292f;
    color:#fff;
    box-shadow:0 12px 32px rgba(0,0,0,.24);
    opacity:0;
    visibility:hidden;
    transform:translateY(5px);
    transition:.16s ease;
    pointer-events:none;
}
.cm-code-install-tip-box:after{
    content:"";
    position:absolute;
    top:100%;
    left:24px;
    border:7px solid transparent;
    border-top-color:#24292f;
}
.cm-code-install-tip-box strong,
.cm-code-install-tip-box span{display:block}
.cm-code-install-tip-box span{margin-top:4px;font-size:13px;line-height:1.45;color:#e6edf3}
.cm-code-install-tip:hover .cm-code-install-tip-box,
.cm-code-install-tip:focus-within .cm-code-install-tip-box{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

@media(max-width:980px){
    .cm-code-download-grid{grid-template-columns:1fr}
}
@media(max-width:820px){
    .cm-code-editor-ribbon{top:50px}
    .cm-code-ribbon-group{padding-left:5px;padding-right:5px}
    .cm-code-ribbon-button{min-width:52px;min-height:48px}
    .cm-code-editor-install-hint{margin-left:8px;margin-right:8px;display:block}
    .cm-code-editor-install-hint strong,.cm-code-editor-install-hint span{display:block}
    .cm-code-editor-install-hint span{margin-top:4px}
    .cm-code-editor-open-dialog-actions{display:grid;grid-template-columns:1fr}
    .cm-code-editor-open-dialog-actions .cm-btn{width:100%}
    .cm-code-install-tip-box{
        position:fixed;
        left:12px;
        right:12px;
        bottom:18px;
        width:auto;
    }
    .cm-code-install-tip-box:after{display:none}
}

/* v1.0.30.106 — ribbon live preview controls */
.cm-code-ribbon-preview,
.cm-code-ribbon-preview-refresh{min-width:58px}

/* v1.0.30.107 — Visual Studio-inspired Add dialog */
.is-code-add-mode .cm-code-editor-repo-explorer{display:none}
.is-code-add-mode .cm-code-editor-start{grid-template-columns:1fr}
.is-code-add-mode .cm-code-editor-setup-area{padding:0}

.cm-code-new-dialog{
    min-width:0;
    border:1px solid #aab3bf;
    background:#eef2f7;
    box-shadow:0 8px 24px rgba(30,41,59,.12);
}
.cm-code-new-titlebar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:8px 12px;
    border-bottom:1px solid #aab3bf;
    background:#d9e7f5;
    color:#24364b;
}
.cm-code-new-titlebar strong{font-size:14px}
.cm-code-new-titlebar span{font-size:12px;color:#52667d}

.cm-code-new-main{
    display:grid;
    grid-template-columns:190px minmax(360px,1fr) 260px;
    min-height:390px;
    background:#fff;
}
.cm-code-new-languages{
    overflow:auto;
    padding:7px 0;
    border-right:1px solid #c9d2dc;
    background:#e7edf5;
}
.cm-code-new-section-label{
    padding:5px 12px 7px;
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
    color:#5b6b7c;
}
.cm-code-new-language{
    width:100%;
    display:block;
    border:0;
    background:transparent;
    color:#26384d;
    padding:7px 12px 7px 18px;
    text-align:left;
    font:inherit;
    font-size:13px;
    cursor:pointer;
}
.cm-code-new-language:hover{background:#dce7f2}
.cm-code-new-language.is-selected{
    background:#c7dbef;
    box-shadow:inset 3px 0 #2b6da8;
    font-weight:800;
}

.cm-code-new-templates{
    min-width:0;
    display:flex;
    flex-direction:column;
    background:#fff;
}
.cm-code-new-toolbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    min-height:44px;
    padding:6px 10px;
    box-sizing:border-box;
    border-bottom:1px solid #d8dee7;
}
.cm-code-new-toolbar strong{font-size:12px;color:#4a5c70}
.cm-code-new-template-search{
    width:min(260px,48%);
    height:30px;
    box-sizing:border-box;
    border:1px solid #b7c2cf;
    border-radius:2px;
    padding:4px 8px;
    background:#fff;
}
.cm-code-new-template-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(190px,1fr));
    align-content:start;
    gap:7px;
    padding:10px;
    overflow:auto;
}
.cm-code-new-template{
    min-height:62px;
    display:grid;
    grid-template-columns:42px minmax(0,1fr);
    align-items:center;
    gap:9px;
    border:1px solid transparent;
    border-radius:2px;
    background:#fff;
    padding:8px;
    color:#26384d;
    text-align:left;
    cursor:pointer;
}
.cm-code-new-template:hover{background:#f2f6fa;border-color:#ccd6e0}
.cm-code-new-template.is-selected{background:#dcebf8;border-color:#6d9fc8}
.cm-code-new-template-icon{
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border:1px solid #9fb0c1;
    border-radius:3px;
    background:#eef4fa;
    color:#2a5f8f;
    font-size:11px;
    font-weight:900;
}
.cm-code-new-template-name{
    min-width:0;
    font-size:13px;
    font-weight:700;
}

.cm-code-new-description{
    padding:18px 16px;
    border-left:1px solid #c9d2dc;
    background:#f7f9fb;
    color:#34475b;
}
.cm-code-new-preview-icon{
    width:52px;
    height:52px;
    display:grid;
    place-items:center;
    margin-bottom:12px;
    border:1px solid #a9b8c7;
    background:#fff;
    color:#2b6da8;
    font-weight:900;
}
.cm-code-new-description-title,
.cm-code-new-description-type{display:block}
.cm-code-new-description-type{margin-top:6px;font-size:12px;color:#64758a}
.cm-code-new-description-copy{margin:12px 0 0;line-height:1.5;color:#52667d}

.cm-code-new-footer{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:8px 12px;
    padding:12px;
    border-top:1px solid #aab3bf;
    background:#e8edf3;
}
.cm-code-new-footer>label{
    grid-column:1;
    display:grid;
    grid-template-columns:78px minmax(0,1fr);
    align-items:center;
    gap:8px;
    margin:0;
}
.cm-code-new-footer>label>span{
    font-size:12px;
    color:#40546a;
}
.cm-code-new-footer input{
    width:100%;
    height:31px;
    box-sizing:border-box;
    border:1px solid #aeb9c5;
    border-radius:2px;
    background:#fff;
    padding:5px 7px;
    font:inherit;
    font-size:13px;
}
.cm-code-new-location-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.cm-code-new-actions{
    grid-column:2;
    grid-row:1 / span 3;
    display:flex;
    align-items:end;
    gap:8px;
    padding-left:4px;
}
.cm-code-new-actions .cm-btn{min-width:76px}

/* GitHub location picker */
.cm-code-editor-add-location-dialog{
    position:fixed;
    z-index:100001;
    inset:0;
    display:grid;
    place-items:center;
    padding:20px;
    background:rgba(15,23,42,.52);
}
.cm-code-editor-add-location-dialog[hidden]{display:none!important}
.cm-code-editor-add-location-card{
    width:min(560px,100%);
    box-sizing:border-box;
    border:1px solid #9aa8b7;
    border-radius:4px;
    background:#f6f8fb;
    padding:18px;
    box-shadow:0 22px 70px rgba(0,0,0,.25);
}
.cm-code-editor-add-location-card h3{margin:0 0 6px}
.cm-code-editor-add-location-card>p{margin:0 0 16px;color:#5b6b7c}
.cm-code-editor-add-location-actions{
    display:flex;
    justify-content:flex-end;
    gap:8px;
    margin-top:16px;
}

@media(max-width:980px){
    .cm-code-new-main{
        grid-template-columns:160px minmax(0,1fr);
    }
    .cm-code-new-description{
        grid-column:1 / -1;
        border-left:0;
        border-top:1px solid #c9d2dc;
        display:grid;
        grid-template-columns:52px minmax(0,1fr);
        gap:0 12px;
        align-items:start;
    }
    .cm-code-new-description-title,
    .cm-code-new-description-type,
    .cm-code-new-description-copy{grid-column:2}
    .cm-code-new-preview-icon{grid-column:1;grid-row:1 / span 3}
}
@media(max-width:720px){
    .cm-code-new-titlebar{align-items:flex-start;flex-direction:column}
    .cm-code-new-main{display:block;min-height:0}
    .cm-code-new-languages{
        display:flex;
        gap:5px;
        overflow-x:auto;
        overflow-y:hidden;
        white-space:nowrap;
        border-right:0;
        border-bottom:1px solid #c9d2dc;
        padding:6px;
        -webkit-overflow-scrolling:touch;
        scrollbar-width:none;
    }
    .cm-code-new-languages::-webkit-scrollbar{display:none}
    .cm-code-new-section-label{display:none}
    .cm-code-new-language{
        width:auto;
        flex:0 0 auto;
        border:1px solid #bdc9d5;
        border-radius:4px;
        background:#fff;
        padding:7px 10px;
    }
    .cm-code-new-language.is-selected{box-shadow:none;border-color:#4f8fc4;background:#dcebf8}
    .cm-code-new-template-grid{grid-template-columns:1fr}
    .cm-code-new-toolbar{align-items:stretch;flex-direction:column}
    .cm-code-new-template-search{width:100%}
    .cm-code-new-description{display:none}
    .cm-code-new-footer{display:block}
    .cm-code-new-footer>label{
        display:block;
        margin-bottom:10px;
    }
    .cm-code-new-footer>label>span{
        display:block;
        margin-bottom:4px;
    }
    .cm-code-new-actions{
        display:grid;
        grid-template-columns:1fr 1fr;
        padding:3px 0 0;
    }
    .cm-code-new-actions .cm-btn{width:100%}
    .cm-code-editor-add-location-actions{
        display:grid;
        grid-template-columns:1fr;
    }
    .cm-code-editor-add-location-actions .cm-btn{width:100%}
}

/* v1.0.30.108 — Name is the GitHub filename, not the commit message. */
.cm-code-editor-add-name{
    font-weight:700;
}
.cm-code-editor-add-folder::placeholder{
    color:#7d8997;
}

/* v1.0.30.109 — one-time Cloud Dashboard linking */
.cm-code-dashboard-link-panel{
    display:grid;
    grid-template-columns:minmax(180px,1fr) minmax(320px,2fr);
    gap:8px 16px;
    align-items:center;
    margin:0 0 14px;
    padding:12px;
    border:1px solid #d0d7de;
    border-radius:8px;
    background:#f6f8fa;
}
.cm-code-dashboard-link-copy strong,
.cm-code-dashboard-link-copy span{display:block}
.cm-code-dashboard-link-copy span{margin-top:3px;color:#57606a;font-size:12px}
.cm-code-dashboard-link-controls{
    display:grid;
    grid-template-columns:minmax(220px,1fr) auto auto;
    gap:8px;
    align-items:center;
}
.cm-code-dashboard-link-controls input{
    min-width:0;
    height:36px;
    box-sizing:border-box;
    border:1px solid #d0d7de;
    border-radius:6px;
    background:#fff;
    padding:6px 9px;
    font:inherit;
}
.cm-code-dashboard-link-panel>small{
    grid-column:1/-1;
    color:#57606a;
}
.cm-code-dashboard-link-panel[data-link-mode="local"]{
    border-color:#8cdb9d;
    background:#f1fbf3;
}
.cm-code-dashboard-link-panel[data-link-mode="remote"]{
    border-color:#8cbcff;
    background:#f3f8ff;
}
@media(max-width:820px){
    .cm-code-dashboard-link-panel{grid-template-columns:1fr}
    .cm-code-dashboard-link-controls{grid-template-columns:1fr}
}


/* v1.0.30.110 — borderless editor, Dark/Light workbench and About/Updates */
.cm-code-editor-editor{
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
}
.is-pwa-view>.cm-code-editor-editor{
    margin-left:0!important;
    margin-right:0!important;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-ribbon{
    background:#181818;
    border-color:#3c3c3c;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-ribbon-group{
    border-color:#3c3c3c;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-ribbon-group>small{
    color:#a6a6a6;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-ribbon-button{
    color:#cccccc;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-ribbon-button:hover:not(:disabled){
    background:#2a2d2e;
    border-color:#454545;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-pwa-bar{
    background:#181818;
    border-bottom:1px solid #3c3c3c;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-pwa-brand span{color:#a6a6a6}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-dashboard-link{color:#fff}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-dashboard-link:hover{background:rgba(255,255,255,.12)}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-app-close{color:#fff}
.cm-code-ribbon-theme-icon,
.cm-code-ribbon-info-icon{
    display:grid;
    place-items:center;
    width:20px;
    height:20px;
    font-size:18px;
    line-height:1;
}
.cm-code-update-badge{
    display:inline-grid;
    place-items:center;
    min-width:17px;
    height:17px;
    padding:0 4px;
    box-sizing:border-box;
    border-radius:999px;
    background:#c42b1c;
    color:#fff;
    font-size:10px;
    line-height:1;
    font-weight:800;
    vertical-align:middle;
}
.cm-code-update-badge[hidden]{display:none!important}

/* About / copyright dialog */
.cm-code-editor-info-dialog{
    position:fixed;
    z-index:100001;
    inset:0;
    display:grid;
    place-items:center;
    padding:20px;
    background:rgba(15,23,42,.58);
}
.cm-code-editor-info-dialog[hidden]{display:none!important}
.cm-code-editor-info-card{
    width:min(560px,100%);
    max-height:min(760px,92vh);
    overflow:auto;
    box-sizing:border-box;
    border:1px solid #d0d7de;
    border-radius:10px;
    background:#fff;
    color:#24292f;
    box-shadow:0 28px 90px rgba(0,0,0,.34);
}
.cm-code-editor-info-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    padding:18px 20px;
    border-bottom:1px solid #d0d7de;
}
.cm-code-editor-info-head>div{
    display:flex;
    align-items:center;
    gap:12px;
}
.cm-code-info-mark{font-size:28px}
.cm-code-editor-info-head h3{margin:0 0 2px;font-size:20px}
.cm-code-editor-info-head small{color:#57606a}
.cm-code-editor-info-close{
    width:34px;
    height:34px;
    border:0;
    border-radius:5px;
    background:transparent;
    color:#57606a;
    font-size:25px;
    line-height:1;
    cursor:pointer;
}
.cm-code-editor-info-close:hover{background:#f0f2f4;color:#24292f}
.cm-code-editor-info-list{margin:0;padding:8px 20px}
.cm-code-editor-info-list>div{
    display:grid;
    grid-template-columns:155px minmax(0,1fr);
    gap:12px;
    padding:10px 0;
    border-bottom:1px solid #eaeef2;
}
.cm-code-editor-info-list>div:last-child{border-bottom:0}
.cm-code-editor-info-list dt{font-weight:800;color:#57606a}
.cm-code-editor-info-list dd{margin:0;min-width:0;overflow-wrap:anywhere}
.cm-code-editor-info-list a{color:#0969da}
.cm-code-editor-info-actions{
    display:flex;
    justify-content:flex-end;
    gap:9px;
    flex-wrap:wrap;
    padding:15px 20px 20px;
    border-top:1px solid #d0d7de;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-info-card{
    background:#1e1e1e;
    color:#cccccc;
    border-color:#3c3c3c;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-info-head,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-info-actions,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-info-list>div{
    border-color:#3c3c3c;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-info-head small,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-info-list dt{
    color:#a6a6a6;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-info-close{
    color:#cccccc;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-info-close:hover{
    background:#2a2d2e;
}
.cm-code-pwa-update-status{
    margin:0 0 16px;
    padding:14px 16px;
    border:1px solid #d0d7de;
    border-radius:8px;
    background:#f6f8fa;
}
.cm-code-pwa-update-status.has-update{
    border-color:#f0b8b3;
    background:#fff5f4;
}
.cm-code-pwa-update-status>div{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
}
.cm-code-pwa-update-status strong,
.cm-code-pwa-update-status small{display:block}
.cm-code-pwa-update-status small{
    margin-top:3px;
    color:#57606a;
}
.cm-code-pwa-update-status p{
    margin:10px 0 0;
    color:#57606a;
}
@media(max-width:620px){
    .cm-code-editor-info-list>div{grid-template-columns:1fr;gap:3px}
    .cm-code-editor-info-actions{display:grid;grid-template-columns:1fr}
    .cm-code-editor-info-actions .cm-btn{width:100%;box-sizing:border-box;text-align:center}
}

/* v1.0.30.111 */
.cm-code-dashboard-link-panel[hidden]{display:none!important;}


/* v1.0.30.112 — clean PWA chrome + mobile layout */
.cm-code-editor-pwa-body{
    --cm-pwa-safe-top:env(safe-area-inset-top, 0px);
    --cm-pwa-bar-height:calc(50px + var(--cm-pwa-safe-top));
    overflow-x:hidden;
}
.cm-code-editor-pwa-bar{
    min-height:var(--cm-pwa-bar-height);
    padding-top:calc(6px + var(--cm-pwa-safe-top));
    padding-left:max(12px, env(safe-area-inset-left, 0px));
    padding-right:max(12px, env(safe-area-inset-right, 0px));
    white-space:nowrap;
    overflow:hidden;
}
.cm-code-editor-pwa-brand{
    flex:1 1 auto;
    min-width:0;
    overflow:hidden;
}
.cm-code-editor-pwa-brand strong{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.cm-code-editor-pwa-actions{flex:0 0 auto}
.cm-code-editor-ribbon{top:var(--cm-pwa-bar-height)}
.cm-code-editor-workspace.is-pwa-view.is-editor-open>.cm-code-editor-heading{
    display:none!important;
}
.cm-code-editor-workspace.is-pwa-view.is-editor-open>.cm-code-editor-editor{
    margin:0!important;
}
.cm-code-editor-workspace.is-pwa-view.is-editor-open>.cm-ghfm-status{
    position:fixed;
    z-index:100020;
    right:12px;
    bottom:12px;
    width:min(420px,calc(100vw - 24px));
    margin:0!important;
    box-sizing:border-box;
    box-shadow:0 14px 38px rgba(0,0,0,.25);
}
.cm-code-editor-workspace.is-pwa-view.is-editor-open>.cm-ghfm-status[hidden]{
    display:none!important;
}
.cm-code-editor-workspace.is-pwa-view.is-editor-open .cm-ghfm-code-layout{
    min-height:calc(100dvh - var(--cm-pwa-bar-height) - 91px);
}
.cm-code-editor-workspace.is-pwa-view.is-editor-open .cm-ghfm-code-workbench,
.cm-code-editor-workspace.is-pwa-view.is-editor-open .cm-ghfm-monaco-host,
.cm-code-editor-workspace.is-pwa-view.is-editor-open .cm-ghfm-monaco-fallback,
.cm-code-editor-workspace.is-pwa-view.is-editor-open .cm-ghfm-code-loading{
    min-height:calc(100dvh - var(--cm-pwa-bar-height) - 176px);
}

/* Installed desktop PWA: let Chrome/Edge expose native OS minimize/maximize/close.
   The app's own content becomes the draggable titlebar area instead of drawing
   another fake X over the top. */
@media (display-mode: window-controls-overlay){
    .cm-code-editor-pwa-bar{
        position:sticky;
        top:0;
        min-height:env(titlebar-area-height, 42px);
        height:env(titlebar-area-height, 42px);
        padding-top:0;
        padding-left:max(12px, env(titlebar-area-x, 0px));
        padding-right:12px;
        -webkit-app-region:drag;
        app-region:drag;
    }
    .cm-code-editor-pwa-actions,
    .cm-code-editor-pwa-actions a,
    .cm-code-editor-ribbon button{
        -webkit-app-region:no-drag;
        app-region:no-drag;
    }
    .cm-code-editor-ribbon{top:env(titlebar-area-height, 42px)}
}

/* Tablet/mobile: no in-app close control; the OS/browser controls the app. */
@media(max-width:1024px), (pointer:coarse){
    .cm-code-desktop-document-close{display:none!important}
}
@media(max-width:820px){
    .cm-code-editor-pwa-brand span{display:none!important}
    .cm-code-editor-dashboard-link{display:none}
    .cm-code-editor-pwa-bar{justify-content:flex-start}
    .cm-code-editor-ribbon{
        scroll-snap-type:x proximity;
    }
    .cm-code-ribbon-group{scroll-snap-align:start}
    .cm-code-editor-workspace.is-pwa-view>.cm-code-editor-heading{
        margin:10px 10px 8px;
    }
    .cm-code-editor-workspace.is-pwa-view>.cm-code-editor-heading h2{
        font-size:21px;
    }
    .cm-code-editor-workspace.is-pwa-view>.cm-code-editor-heading p{
        font-size:13px;
        line-height:1.45;
    }
}
@media(max-width:520px){
    .cm-code-ribbon-button{min-width:50px}
    .cm-code-ribbon-group{padding-left:3px;padding-right:3px}
}

/* v112 Edit/Open file selector */
.cm-code-editor-file-field{grid-column:1 / -1}

/* Remove obsolete in-PWA installation hint even if an old cached template emits it. */
.cm-code-editor-workspace.is-pwa-view .cm-code-editor-install-hint{display:none!important}


/* PWA already has these actions in its ribbon. Cloud keeps them, with Save/Close
   first in the toolbar before Language so they are immediately reachable. */
.cm-code-editor-workspace.is-pwa-view .cm-code-toolbar-ribbon-duplicate{
    display:none!important;
}


/* v1.0.30.113 — PWA editor directly beneath the ribbon */
.cm-code-editor-workspace.is-pwa-view>.cm-code-editor-heading{
    display:none!important;
}
.cm-code-editor-workspace.is-pwa-view.is-editor-open>.cm-code-dashboard-link-panel,
.cm-code-editor-workspace.is-pwa-view.is-editor-open>.cm-code-editor-mode-tabs,
.cm-code-editor-workspace.is-pwa-view.is-editor-open>.cm-code-editor-start{
    display:none!important;
}
.cm-code-editor-workspace.is-pwa-view.is-editor-open>.cm-code-editor-editor{
    margin:0!important;
    padding:0!important;
}
.cm-code-editor-workspace.is-pwa-view.is-editor-open .cm-ghfm-code-ide{
    margin:0!important;
    border:0!important;
    border-radius:0!important;
}
/* These actions belong to the PWA ribbon, never the Language/Find row. */
.cm-code-editor-workspace.is-pwa-view .cm-ghfm-code-theme-toggle,
.cm-code-editor-workspace.is-pwa-view .cm-ghfm-code-preview-toggle,
.cm-code-editor-workspace.is-pwa-view .cm-ghfm-code-info-button,
.cm-code-editor-workspace.is-pwa-view .cm-ghfm-code-save,
.cm-code-editor-workspace.is-pwa-view .cm-code-editor-close{
    display:none!important;
}


/* v1.0.30.114 — PWA uses ribbon Add/Edit only */
.cm-code-editor-workspace.is-pwa-view .cm-code-editor-mode-tabs{
    display:none!important;
}
.cm-code-editor-workspace.is-pwa-view:not(.is-editor-open) .cm-code-editor-start{
    margin-top:12px!important;
}


/* v1.0.30.115 — breathing room beneath ribbon before New Code File/Edit. */
.cm-code-editor-workspace.is-pwa-view:not(.is-editor-open) .cm-code-editor-start{
    margin-top:12px!important;
}

/* v1.0.30.118 — GitHub Pull Request review comments inside Code Editor. */
.cm-code-comments-badge{
    display:inline-grid;
    place-items:center;
    min-width:17px;
    height:17px;
    padding:0 4px;
    box-sizing:border-box;
    border-radius:999px;
    background:#c42b1c;
    color:#fff;
    font-size:10px;
    line-height:1;
    font-weight:800;
    vertical-align:middle;
}
.cm-code-comments-badge[hidden]{display:none!important}
.cm-code-ribbon-comments.is-active,
.cm-ghfm-code-comments-toggle.is-active{
    background:#eaf3ff!important;
    border-color:#54aeff!important;
    color:#0969da!important;
}
.cm-code-review-panel{
    margin:6px;
    border:1px solid var(--cm-ide-border,#d0d7de);
    border-radius:7px;
    background:var(--cm-ide-bg,#fff);
    color:var(--cm-ide-text,#24292f);
    overflow:hidden;
}
.cm-code-review-panel[hidden]{display:none!important}
.cm-code-review-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:8px;
    padding:9px 10px;
    border-bottom:1px solid var(--cm-ide-border,#d0d7de);
    background:var(--cm-ide-soft,#f6f8fa);
}
.cm-code-review-head strong{font-size:13px}
.cm-code-review-pr{font-size:11px;color:var(--cm-ide-muted,#57606a)}
.cm-code-review-status{
    padding:9px 10px;
    border-bottom:1px solid var(--cm-ide-border,#d0d7de);
    color:var(--cm-ide-muted,#57606a);
    font-size:12px;
    line-height:1.4;
}
.cm-code-review-status[hidden]{display:none!important}
.cm-code-review-user{
    display:flex;
    align-items:center;
    gap:7px;
    padding:8px 10px;
    border-bottom:1px solid var(--cm-ide-border,#d0d7de);
    color:var(--cm-ide-muted,#57606a);
    font-size:12px;
}
.cm-code-review-user[hidden]{display:none!important}
.cm-code-review-user img,
.cm-code-review-comment-meta img{
    width:22px;
    height:22px;
    border-radius:50%;
    object-fit:cover;
}
.cm-code-review-list{display:grid}
.cm-code-review-comment{
    padding:9px 10px;
    border-bottom:1px solid var(--cm-ide-border,#d0d7de);
    cursor:pointer;
}
.cm-code-review-comment:hover{background:var(--cm-ide-active,#eaeef2)}
.cm-code-review-comment.is-reply{padding-left:22px}
.cm-code-review-comment-meta{
    display:flex;
    align-items:center;
    gap:7px;
    min-width:0;
}
.cm-code-review-comment-meta>div{min-width:0}
.cm-code-review-comment-meta strong,
.cm-code-review-comment-meta small{display:block;overflow-wrap:anywhere}
.cm-code-review-comment-meta strong{font-size:12px}
.cm-code-review-comment-meta small{margin-top:1px;color:var(--cm-ide-muted,#57606a);font-size:10px}
.cm-code-review-comment-body{
    margin-top:7px;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
    font-size:12px;
    line-height:1.45;
}
.cm-code-review-comment-actions{display:flex;gap:8px;align-items:center;margin-top:7px}
.cm-code-review-comment-actions button,
.cm-code-review-comment-actions a,
.cm-code-review-use-selection,
.cm-code-review-post,
.cm-code-review-reply-form button{
    border:1px solid var(--cm-ide-border,#d0d7de);
    border-radius:5px;
    background:var(--cm-ide-bg,#fff);
    color:var(--cm-ide-text,#24292f);
    padding:5px 7px;
    font:inherit;
    font-size:11px;
    line-height:1.2;
    text-decoration:none;
    cursor:pointer;
}
.cm-code-review-comment-actions button:hover,
.cm-code-review-comment-actions a:hover,
.cm-code-review-use-selection:hover,
.cm-code-review-reply-form button:hover{background:var(--cm-ide-active,#eaeef2)}
.cm-code-review-form{
    display:grid;
    gap:8px;
    padding:10px;
    background:var(--cm-ide-soft,#f6f8fa);
}
.cm-code-review-form>strong{font-size:12px}
.cm-code-review-lines{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.cm-code-review-lines label,
.cm-code-review-message{display:grid;gap:4px;color:var(--cm-ide-muted,#57606a);font-size:11px}
.cm-code-review-lines input,
.cm-code-review-message textarea,
.cm-code-review-reply-form textarea{
    width:100%;
    box-sizing:border-box;
    border:1px solid var(--cm-ide-border,#d0d7de);
    border-radius:5px;
    background:var(--cm-ide-bg,#fff);
    color:var(--cm-ide-text,#24292f);
    padding:7px;
    font:inherit;
    font-size:12px;
}
.cm-code-review-message textarea,
.cm-code-review-reply-form textarea{resize:vertical;min-height:70px}
.cm-code-review-post{
    background:#0969da;
    border-color:#0969da;
    color:#fff;
    font-weight:700;
}
.cm-code-review-post:hover{background:#075bbb}
.cm-code-review-form small{color:var(--cm-ide-muted,#57606a);font-size:10px;line-height:1.35}
.cm-code-review-reply-form{
    display:grid;
    gap:6px;
    margin-top:8px;
}
.cm-code-review-reply-form[hidden]{display:none!important}
.cm-code-review-highlight-line{background:rgba(9,105,218,.16)!important}
.cm-code-review-highlight-gutter{border-left:3px solid #0969da!important;margin-left:2px}
.cm-ghfm-code-ide.is-dark-workbench .cm-code-ribbon-comments.is-active,
.cm-ghfm-code-ide.is-dark-workbench .cm-ghfm-code-comments-toggle.is-active{
    background:#264f78!important;
    border-color:#3794ff!important;
    color:#fff!important;
}
@media(max-width:820px){
    .cm-code-review-panel{margin:5px}
    .cm-code-review-lines{grid-template-columns:1fr 1fr}
    .cm-code-review-lines input,.cm-code-review-message textarea{font-size:16px}
}
.cm-ghfm-code-comments-toggle{
    border:1px solid var(--cm-ide-border,#d0d7de);
    border-radius:6px;
    background:var(--cm-ide-bg,#fff);
    color:var(--cm-ide-text,#24292f);
    padding:5px 8px;
    font:inherit;
    cursor:pointer;
}
.cm-ghfm-code-comments-toggle:disabled{opacity:.45;cursor:not-allowed}


/* v1.0.30.119 — GitHub-native collaboration */
.cm-code-review-auth{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0}
.cm-code-review-auth .cm-code-review-user{margin:0;flex:1 1 auto}
.cm-code-collab-connect,.cm-code-collab-disconnect,.cm-code-review-approve,.cm-code-review-request-changes{min-height:34px}
.cm-code-review-reviewers{font-size:12px;line-height:1.45;padding:7px 8px;margin:6px 0;border:1px solid var(--cm-code-border,#3c3c3c);border-radius:4px}
.cm-code-review-decision-form{border-top:1px solid var(--cm-code-border,#3c3c3c);margin-top:12px;padding-top:12px}
.cm-code-review-decision-actions{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
.cm-code-review-history{display:grid;gap:4px;margin:8px 0}
.cm-code-review-state-row{font-size:12px;line-height:1.4;padding:5px 7px;border-radius:4px;background:rgba(127,127,127,.12)}


/* v1.0.30.122 — signed-in GitHub account menu in the Code Editor header */
.cm-code-editor-pwa-bar{overflow:visible}
.cm-code-github-account{position:relative;display:block;flex:0 0 auto;color:inherit}
.cm-code-github-account>summary{list-style:none}
.cm-code-github-account>summary::-webkit-details-marker{display:none}
.cm-code-github-account-trigger{
    display:flex;align-items:center;gap:7px;min-height:38px;max-width:210px;
    box-sizing:border-box;padding:4px 8px;border:1px solid rgba(255,255,255,.18);
    border-radius:999px;background:rgba(255,255,255,.07);color:#fff;cursor:pointer;
    font-size:13px;font-weight:700;line-height:1;user-select:none;-webkit-tap-highlight-color:transparent
}
.cm-code-github-account-trigger:hover,.cm-code-github-account[open]>.cm-code-github-account-trigger{background:rgba(255,255,255,.14)}
.cm-code-github-avatar{display:block;width:28px;height:28px;flex:0 0 28px;border-radius:50%;object-fit:cover;background:#fff}
.cm-code-github-login{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-code-github-chevron{flex:0 0 auto;font-size:11px;opacity:.8}
.cm-code-github-account-menu{
    position:absolute;z-index:100300;top:calc(100% + 7px);right:0;width:220px;max-width:calc(100vw - 24px);
    box-sizing:border-box;padding:8px;border:1px solid #3d4657;border-radius:10px;background:#161b22;color:#f0f6fc;
    box-shadow:0 12px 34px rgba(0,0,0,.38);white-space:normal
}
.cm-code-github-account-heading{display:flex;flex-direction:column;gap:3px;padding:7px 9px 10px;border-bottom:1px solid #30363d}
.cm-code-github-account-heading span{font-size:11px;color:#8b949e}.cm-code-github-account-heading strong{font-size:13px;overflow-wrap:anywhere}
.cm-code-github-logout{display:block;margin-top:6px;padding:10px 9px;border-radius:7px;color:#f85149!important;text-decoration:none!important;font-size:13px;font-weight:700}
.cm-code-github-logout:hover{background:#2d1b1e}
.cm-code-github-account-light .cm-code-github-account-trigger{border-color:#d0d7de;background:#fff;color:#24292f}
.cm-code-github-account-light[open]>.cm-code-github-account-trigger,.cm-code-github-account-light .cm-code-github-account-trigger:hover{background:#f6f8fa}
.cm-code-github-account-light .cm-code-github-account-menu{background:#fff;color:#24292f;border-color:#d0d7de;box-shadow:0 10px 28px rgba(140,149,159,.28)}
.cm-code-github-account-light .cm-code-github-account-heading{border-bottom-color:#d8dee4}.cm-code-github-account-light .cm-code-github-account-heading span{color:#57606a}
.cm-code-github-account-light .cm-code-github-logout:hover{background:#ffebe9}
@media(max-width:620px){
    .cm-code-editor-dashboard-link{display:none}
    .cm-code-github-account-trigger{max-width:165px;padding-left:5px;padding-right:7px;gap:6px}
    .cm-code-github-avatar{width:30px;height:30px;flex-basis:30px}
    .cm-code-github-login{font-size:12px}
}
@media(max-width:390px){
    .cm-code-github-account-trigger{max-width:138px}
    .cm-code-github-login{max-width:82px}
}


/* v1.0.30.123 — full-width desktop/PWA Code Editor.
   The shared file manager intentionally caps .cm-ghfm at 1100px inside the
   dashboard. The full-screen Code Editor also carries that class, so override
   the cap only for its standalone/PWA workspace. */
body.cm-code-editor-pwa-body{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
}
body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.cm-ghfm{
    display:block;
    width:100%!important;
    min-width:100%!important;
    max-width:none!important;
    margin:0!important;
    box-sizing:border-box;
}
body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view>.cm-code-editor-pwa-bar,
body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view>.cm-code-editor-ribbon{
    width:100%!important;
    max-width:none!important;
    box-sizing:border-box;
}


/* v1.0.30.124 — full-height standalone Code Editor.
   v1.0.30.123 removed the shared 1100px width cap. This completes the
   full-screen layout vertically: once a document is open, the app header and
   ribbon keep their natural size and Monaco consumes every remaining pixel of
   the browser/PWA viewport instead of stopping at its old minimum height. */
body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-editor-open{
    display:flex!important;
    flex-direction:column;
    height:100vh;
    height:100dvh;
    min-height:100vh;
    min-height:100dvh;
    overflow:hidden;
}
body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-editor-open>.cm-code-editor-pwa-bar,
body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-editor-open>.cm-code-editor-ribbon{
    flex:0 0 auto;
}
body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-editor-open>.cm-code-editor-editor{
    display:block;
    flex:1 1 auto;
    min-height:0!important;
    height:auto!important;
    overflow:hidden;
}
body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-editor-open .cm-ghfm-code-ide{
    display:flex;
    flex-direction:column;
    width:100%;
    height:100%;
    min-height:0!important;
    overflow:hidden;
}
body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-editor-open .cm-ghfm-code-tabbar{
    flex:0 0 auto;
}
body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-editor-open .cm-ghfm-code-layout{
    flex:1 1 auto;
    width:100%;
    height:auto!important;
    min-height:0!important;
    overflow:hidden;
}
body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-editor-open .cm-ghfm-code-sidebar,
body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-editor-open .cm-ghfm-code-main,
body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-editor-open .cm-ghfm-code-workbench,
body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-editor-open .cm-ghfm-code-editor-pane,
body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-editor-open .cm-ghfm-monaco-host,
body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-editor-open .cm-ghfm-monaco-fallback,
body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-editor-open .cm-ghfm-code-loading{
    min-height:0!important;
}
body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-editor-open .cm-ghfm-code-main,
body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-editor-open .cm-ghfm-code-workbench,
body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-editor-open .cm-ghfm-code-editor-pane{
    height:100%;
    overflow:hidden;
}
body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-editor-open .cm-ghfm-monaco-host,
body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-editor-open .cm-ghfm-monaco-fallback,
body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-editor-open .cm-ghfm-code-loading{
    flex:1 1 auto;
    height:auto!important;
}
body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-editor-open .cm-ghfm-code-preview-pane{
    min-height:0;
    height:100%;
    overflow:hidden;
}
body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-editor-open .cm-ghfm-code-preview-frame{
    min-height:0!important;
    height:100%;
}


/* v1.0.30.125 — live comment line tracking + reliable comment input focus */
.cm-code-review-form{
    position:relative;
    z-index:3;
    pointer-events:auto;
}
.cm-code-review-form input,
.cm-code-review-form textarea,
.cm-code-review-form button{
    position:relative;
    z-index:1;
    pointer-events:auto;
    touch-action:manipulation;
}
.cm-code-review-message textarea:disabled{
    cursor:not-allowed;
}

/* v1.0.30.127 — smart single-screen Add view + GitHub Comments chat tab. */
.cm-ghfm-code-comments-tab{
    display:inline-flex;
    align-items:center;
    gap:8px;
    flex:0 0 auto;
    border:0;
    border-right:1px solid var(--cm-ide-border,#d0d7de);
    border-bottom:2px solid transparent;
    background:var(--cm-ide-soft,#f6f8fa);
    color:var(--cm-ide-muted,#57606a);
    padding:8px 10px;
    font:inherit;
    cursor:pointer;
}
.cm-ghfm-code-comments-tab[hidden]{display:none!important}
.cm-ghfm-code-comments-tab.is-active{
    background:var(--cm-ide-bg,#fff);
    color:var(--cm-ide-text,#24292f);
    border-bottom-color:#0969da;
}
.cm-ghfm-code-comments-tab .cm-ghfm-code-tab-close{margin-left:2px}

.cm-ghfm-code-workbench.is-comments-open .cm-ghfm-code-editor-pane,
.cm-ghfm-code-workbench.is-comments-open .cm-ghfm-code-preview-pane{display:none!important}
.cm-code-review-chat-pane{
    flex:1 1 100%;
    width:100%;
    min-width:0;
    min-height:0;
    height:100%;
    margin:0;
    border:0;
    border-radius:0;
    display:flex;
    flex-direction:column;
    overflow:hidden;
    background:var(--cm-ide-bg,#fff);
}
.cm-code-review-chat-pane[hidden]{display:none!important}
.cm-code-review-chat-pane .cm-code-review-head,
.cm-code-review-chat-pane .cm-code-review-status,
.cm-code-review-chat-pane .cm-code-review-auth,
.cm-code-review-chat-pane .cm-code-review-reviewers,
.cm-code-review-chat-pane .cm-code-review-decision-form,
.cm-code-review-chat-pane .cm-code-review-form{flex:0 0 auto}
.cm-code-review-chat-pane .cm-code-review-head{padding:8px 12px}
.cm-code-review-chat-pane .cm-code-review-status{padding:7px 12px}
.cm-code-review-chat-pane .cm-code-review-auth{
    margin:0;
    padding:6px 12px;
    border-bottom:1px solid var(--cm-ide-border,#d0d7de);
}
.cm-code-review-chat-pane .cm-code-review-user{
    padding:0;
    border:0;
}
.cm-code-review-chat-pane .cm-code-review-list{
    flex:1 1 auto;
    min-height:0;
    overflow:auto;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    padding:12px 14px;
    background:var(--cm-ide-soft,#f6f8fa);
}
.cm-code-review-chat-pane .cm-code-review-comment{
    width:fit-content;
    max-width:min(72%,680px);
    box-sizing:border-box;
    padding:8px 10px;
    border:1px solid var(--cm-ide-border,#d0d7de);
    border-radius:14px 14px 14px 4px;
    background:var(--cm-ide-bg,#fff);
    color:var(--cm-ide-text,#24292f);
    box-shadow:0 1px 1px rgba(27,31,36,.05);
}
.cm-code-review-chat-pane .cm-code-review-comment.is-other{align-self:flex-start}
.cm-code-review-chat-pane .cm-code-review-comment.is-mine{
    align-self:flex-end;
    border-color:#0969da;
    border-radius:14px 14px 4px 14px;
    background:#0969da;
    color:#fff;
}
.cm-code-review-chat-pane .cm-code-review-comment.is-reply{padding-left:10px}
.cm-code-review-chat-pane .cm-code-review-comment.is-mine .cm-code-review-comment-meta{flex-direction:row-reverse}
.cm-code-review-chat-pane .cm-code-review-comment.is-mine .cm-code-review-comment-meta>div{text-align:right}
.cm-code-review-chat-pane .cm-code-review-comment.is-mine .cm-code-review-comment-meta small,
.cm-code-review-chat-pane .cm-code-review-comment.is-mine .cm-code-review-comment-actions a{color:#dbeafe}
.cm-code-review-chat-pane .cm-code-review-comment.is-mine .cm-code-review-comment-actions{justify-content:flex-end}
.cm-code-review-chat-pane .cm-code-review-comment.is-mine .cm-code-review-comment-actions button,
.cm-code-review-chat-pane .cm-code-review-comment.is-mine .cm-code-review-comment-actions a{
    border-color:rgba(255,255,255,.35);
    background:rgba(255,255,255,.12);
    color:#fff;
}
.cm-code-review-chat-pane .cm-code-review-comment:hover{filter:brightness(.99)}
.cm-code-review-chat-pane .cm-code-review-form{
    position:relative;
    z-index:4;
    display:grid;
    grid-template-columns:auto minmax(180px,1fr) auto;
    gap:7px 10px;
    align-items:end;
    padding:9px 12px 10px;
    border-top:1px solid var(--cm-ide-border,#d0d7de);
    background:var(--cm-ide-bg,#fff);
}
.cm-code-review-chat-pane .cm-code-review-form[hidden]{display:none!important}
.cm-code-review-chat-pane .cm-code-review-form>strong{grid-column:1 / -1}
.cm-code-review-chat-pane .cm-code-review-lines{grid-column:1;min-width:180px}
.cm-code-review-chat-pane .cm-code-review-use-selection{grid-column:1;white-space:nowrap}
.cm-code-review-chat-pane .cm-code-review-message{grid-column:2;grid-row:2 / span 2}
.cm-code-review-chat-pane .cm-code-review-message textarea{
    min-height:68px;
    max-height:110px;
    resize:vertical;
}
.cm-code-review-chat-pane .cm-code-review-post{grid-column:3;grid-row:2 / span 2;align-self:stretch;min-width:112px}
.cm-code-review-chat-pane .cm-code-review-form>small{grid-column:1 / -1}
.cm-code-review-chat-pane .cm-code-review-decision-form{
    padding:7px 12px;
    border-top:1px solid var(--cm-ide-border,#d0d7de);
}

@media(max-width:820px){
    .cm-code-review-chat-pane .cm-code-review-comment{max-width:86%}
    .cm-code-review-chat-pane .cm-code-review-form{
        grid-template-columns:1fr auto;
    }
    .cm-code-review-chat-pane .cm-code-review-lines{grid-column:1 / -1;min-width:0}
    .cm-code-review-chat-pane .cm-code-review-use-selection{grid-column:1 / -1}
    .cm-code-review-chat-pane .cm-code-review-message{grid-column:1;grid-row:auto}
    .cm-code-review-chat-pane .cm-code-review-post{grid-column:2;grid-row:auto;min-width:88px}
    .cm-code-review-chat-pane .cm-code-review-form>small{display:none}
}

/* Keep the desktop/laptop Add screen inside the available app height. Only the
   language rail scrolls; templates and Name/Location stay visible together. */
@media(min-width:721px){
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-code-add-mode:not(.is-editor-open){
        display:flex!important;
        flex-direction:column;
        height:100vh;
        height:100dvh;
        min-height:0!important;
        overflow:hidden;
    }
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-code-add-mode:not(.is-editor-open)>.cm-code-editor-pwa-bar,
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-code-add-mode:not(.is-editor-open)>.cm-code-editor-ribbon,
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-code-add-mode:not(.is-editor-open)>.cm-ghfm-status{
        flex:0 0 auto;
    }
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-code-add-mode:not(.is-editor-open)>.cm-code-editor-start{
        flex:1 1 auto;
        min-height:0;
        height:auto;
        overflow:hidden;
        margin-top:10px!important;
        margin-bottom:8px!important;
    }
    body.cm-code-editor-pwa-body .is-code-add-mode .cm-code-editor-setup-area,
    body.cm-code-editor-pwa-body .is-code-add-mode .cm-code-editor-add-setup,
    body.cm-code-editor-pwa-body .is-code-add-mode .cm-code-new-dialog{
        height:100%;
        min-height:0;
        box-sizing:border-box;
    }
    body.cm-code-editor-pwa-body .is-code-add-mode .cm-code-new-dialog{
        display:grid;
        grid-template-rows:auto minmax(0,1fr) auto;
        overflow:hidden;
    }
    body.cm-code-editor-pwa-body .is-code-add-mode .cm-code-new-main{
        min-height:0!important;
        height:auto!important;
        overflow:hidden;
    }
    body.cm-code-editor-pwa-body .is-code-add-mode .cm-code-new-languages{
        min-height:0;
        height:100%;
        overflow-y:auto;
        overflow-x:hidden;
    }
    body.cm-code-editor-pwa-body .is-code-add-mode .cm-code-new-templates{
        min-height:0;
        overflow:hidden;
    }
    body.cm-code-editor-pwa-body .is-code-add-mode .cm-code-new-template-grid{
        flex:1 1 auto;
        min-height:0;
        overflow:hidden;
        padding:8px;
        gap:6px;
    }
    body.cm-code-editor-pwa-body .is-code-add-mode .cm-code-new-template{
        min-height:54px;
        padding:6px 8px;
    }
    body.cm-code-editor-pwa-body .is-code-add-mode .cm-code-new-description{
        min-height:0;
        overflow:hidden;
        padding:14px 13px;
    }
    body.cm-code-editor-pwa-body .is-code-add-mode .cm-code-new-footer{
        padding:8px 10px;
        gap:6px 10px;
    }
    body.cm-code-editor-pwa-body .is-code-add-mode .cm-code-new-footer>label{
        grid-template-columns:72px minmax(0,1fr);
    }
    body.cm-code-editor-pwa-body .is-code-add-mode .cm-code-new-footer input{height:29px}
}
.cm-ghfm-code-ide.is-comments-view .cm-ghfm-code-tab.is-active{
    background:var(--cm-ide-soft,#f6f8fa);
    color:var(--cm-ide-muted,#57606a);
    border-bottom-color:transparent;
}

/* v1.0.30.128 — dedicated Comments ribbon + per-comment unread state. */
.cm-code-comments-ribbon{
    flex:0 0 auto;
    display:flex;
    align-items:stretch;
    gap:0;
    min-height:48px;
    border-bottom:1px solid var(--cm-ide-border,#d0d7de);
    background:var(--cm-ide-soft,#f6f8fa);
    overflow-x:auto;
    overflow-y:hidden;
}
.cm-code-comments-ribbon[hidden]{display:none!important}
.cm-code-comments-ribbon button{
    flex:0 0 auto;
    min-width:92px;
    min-height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    border:0;
    border-right:1px solid var(--cm-ide-border,#d0d7de);
    background:transparent;
    color:var(--cm-ide-text,#24292f);
    padding:6px 10px;
    cursor:pointer;
    font:inherit;
}
.cm-code-comments-ribbon button:hover:not(:disabled){background:var(--cm-ide-active,#eaeef2)}
.cm-code-comments-ribbon button:disabled{opacity:.48;cursor:not-allowed}
.cm-code-comments-ribbon button .dashicons{font-size:18px;width:18px;height:18px}
.cm-code-comments-ribbon button b{font-size:12px;white-space:nowrap}
.cm-code-comments-ribbon-pr{
    margin-left:auto;
    flex:0 0 auto;
    display:flex;
    align-items:center;
    padding:0 12px;
    color:var(--cm-ide-muted,#57606a);
    font-size:11px;
    white-space:nowrap;
}

.cm-ghfm-code-tabbar,
.cm-ghfm-code-tabs,
.cm-ghfm-code-tab,
.cm-ghfm-code-comments-tab{pointer-events:auto!important}
.cm-ghfm-code-tab{position:relative;z-index:2}
.cm-ghfm-code-comments-tab{position:relative;z-index:2}

.cm-code-review-comment.is-unread{
    box-shadow:0 0 0 2px #0969da inset,0 1px 1px rgba(27,31,36,.05);
}
.cm-code-review-comment.is-unread:before{
    content:'New';
    display:block;
    width:max-content;
    margin:0 0 5px;
    padding:2px 6px;
    border-radius:999px;
    background:#0969da;
    color:#fff;
    font-size:9px;
    line-height:1.2;
    font-weight:800;
}
.cm-code-review-comment.is-mine.is-unread:before{background:#fff;color:#0969da}

.cm-code-review-pr-form{
    flex:0 0 auto;
    display:grid;
    grid-template-columns:minmax(170px,1fr) minmax(120px,.55fr);
    gap:8px 10px;
    padding:10px 12px;
    border-bottom:1px solid var(--cm-ide-border,#d0d7de);
    background:var(--cm-ide-bg,#fff);
}
.cm-code-review-pr-form[hidden]{display:none!important}
.cm-code-review-pr-form>strong{grid-column:1/-1}
.cm-code-review-pr-form label{display:grid;gap:4px;font-size:11px;color:var(--cm-ide-muted,#57606a)}
.cm-code-review-pr-form input,
.cm-code-review-pr-form textarea{
    width:100%;
    box-sizing:border-box;
    border:1px solid var(--cm-ide-border,#d0d7de);
    border-radius:6px;
    background:var(--cm-ide-bg,#fff);
    color:var(--cm-ide-text,#24292f);
    padding:7px 8px;
    font:inherit;
}
.cm-code-review-pr-form .cm-code-review-message{grid-column:1/-1}
.cm-code-review-pr-actions{grid-column:1/-1;display:flex;gap:8px;justify-content:flex-end}
.cm-code-review-pr-actions button{min-height:34px;padding:6px 10px}

@media(max-width:820px){
    .cm-code-comments-ribbon{min-height:46px}
    .cm-code-comments-ribbon button{min-width:78px;min-height:46px;padding:5px 8px}
    .cm-code-comments-ribbon button b{font-size:11px}
    .cm-code-comments-ribbon-pr{display:none}
    .cm-code-review-pr-form{grid-template-columns:1fr}
    .cm-code-review-pr-form>strong,
    .cm-code-review-pr-form .cm-code-review-message,
    .cm-code-review-pr-actions{grid-column:1}
}


/* v1.0.30.130 — internal Pull Request view + separate Read/Add comment modes. */
.cm-code-review-pr-overview{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:4px 12px;
    align-items:center;
    padding:10px 12px;
    border-bottom:1px solid var(--cm-ide-border,#d0d7de);
    background:var(--cm-ide-soft,#f6f8fa);
}
.cm-code-review-pr-overview[hidden]{display:none!important}
.cm-code-review-pr-overview-title{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:13px;
}
.cm-code-review-pr-overview-branches,
.cm-code-review-pr-overview-stats{
    color:var(--cm-ide-muted,#57606a);
    font-size:11px;
}
.cm-code-review-pr-overview-branches{grid-column:1}
.cm-code-review-pr-overview-stats{grid-column:2;grid-row:1 / span 2;white-space:nowrap}
.cm-code-review-chat-pane[data-review-mode="read"] .cm-code-review-form,
.cm-code-review-chat-pane[data-review-mode="pr"] .cm-code-review-form{
    display:none!important;
}
.cm-code-review-chat-pane[data-review-mode="add"] .cm-code-review-form:not([hidden]){
    display:grid;
}
@media(max-width:700px){
    .cm-code-review-pr-overview{grid-template-columns:1fr}
    .cm-code-review-pr-overview-stats{grid-column:1;grid-row:auto}
}


/* v1.0.30.131 — New Code File follows the same Dark/Light theme as the editor. */
.cm-code-editor-workspace.cm-code-workspace-dark:not(.is-editor-open){
    background:#181818;
    color:#cccccc;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-new-dialog{
    border-color:#4a4a4a;
    background:#1e1e1e;
    box-shadow:0 8px 24px rgba(0,0,0,.32);
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-new-titlebar{
    border-color:#454545;
    background:#252526;
    color:#f0f0f0;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-new-titlebar span,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-setup>p{color:#a6a6a6}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-new-main,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-new-templates{background:#1e1e1e}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-new-languages{
    border-color:#454545;
    background:#252526;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-new-section-label{color:#a6a6a6}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-new-language{color:#cccccc}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-new-language:hover{background:#2a2d2e}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-new-language.is-selected{
    background:#37373d;
    color:#ffffff;
    box-shadow:inset 3px 0 #3794ff;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-new-toolbar{border-color:#454545;background:#1e1e1e}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-new-toolbar strong{color:#cccccc}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-new-template-search,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-new-footer input{
    border-color:#555;
    background:#2d2d30;
    color:#f0f0f0;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-new-template-search::placeholder,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-new-footer input::placeholder{color:#8f8f8f}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-new-template{background:#1e1e1e;color:#cccccc}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-new-template:hover{background:#2a2d2e;border-color:#555}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-new-template.is-selected{
    background:#37373d;
    border-color:#3794ff;
    color:#fff;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-new-template-icon,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-new-preview-icon{
    border-color:#555;
    background:#252526;
    color:#75beff;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-new-description{
    border-color:#454545;
    background:#252526;
    color:#cccccc;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-new-description-type,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-new-description-copy{color:#a6a6a6}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-new-footer{
    border-color:#454545;
    background:#252526;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-new-footer>label>span{color:#cccccc}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-add-location-card{
    border-color:#555;
    background:#252526;
    color:#cccccc;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-add-location-card>p{color:#a6a6a6}
@media(max-width:720px){
    .cm-code-editor-workspace.cm-code-workspace-dark .cm-code-new-languages{border-color:#454545}
    .cm-code-editor-workspace.cm-code-workspace-dark .cm-code-new-language{
        border-color:#555;
        background:#252526;
    }
    .cm-code-editor-workspace.cm-code-workspace-dark .cm-code-new-language.is-selected{
        border-color:#3794ff;
        background:#37373d;
        box-shadow:none;
    }
}


/* v1.0.30.132 — permanent main-ribbon GitHub review tools + per-comment Done. */
.cm-code-editor-workspace.is-pwa-view .cm-code-comments-ribbon{
    display:none!important;
}
.cm-code-ribbon-comments-group .cm-code-comments-badge{
    margin-left:3px;
}
.cm-code-review-comment-actions .cm-code-review-done{
    font-weight:700;
}
.cm-code-review-comment.is-other.is-unread .cm-code-review-done{
    border-color:#1f883d;
}
@media (max-width:760px){
    .cm-code-ribbon-comments-group .cm-code-ribbon-button{
        min-width:72px;
    }
}


/* v1.0.30.134 — File > Recent, modelled on Windows/File Explorer Recent files. */
.cm-code-editor-recent-dialog{
    position:fixed;
    z-index:100002;
    inset:0;
    display:grid;
    place-items:center;
    padding:20px;
    background:rgba(15,23,42,.58);
}
.cm-code-editor-recent-dialog[hidden]{display:none!important}
.cm-code-editor-recent-card{
    width:min(980px,100%);
    max-height:min(720px,90vh);
    display:flex;
    flex-direction:column;
    box-sizing:border-box;
    border:1px solid #d0d7de;
    border-radius:10px;
    background:#fff;
    color:#24292f;
    box-shadow:0 28px 90px rgba(0,0,0,.34);
    overflow:hidden;
}
.cm-code-editor-recent-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    padding:18px 20px 14px;
    border-bottom:1px solid #d0d7de;
}
.cm-code-editor-recent-head h3{margin:0 0 3px;font-size:20px}
.cm-code-editor-recent-head p{margin:0;color:#57606a}
.cm-code-editor-recent-close{
    width:36px;height:36px;border:0;border-radius:6px;background:transparent;color:inherit;
    font-size:25px;line-height:1;cursor:pointer;
}
.cm-code-editor-recent-close:hover{background:#f3f4f6}
.cm-code-editor-recent-table-wrap{min-height:180px;overflow:auto}
.cm-code-editor-recent-table{width:100%;border-collapse:collapse;table-layout:fixed}
.cm-code-editor-recent-table th{
    position:sticky;top:0;z-index:1;text-align:left;padding:10px 12px;
    border-bottom:1px solid #d0d7de;background:#f6f8fa;color:#57606a;font-size:12px;font-weight:700;
}
.cm-code-editor-recent-table th:nth-child(1){width:23%}
.cm-code-editor-recent-table th:nth-child(2){width:18%}
.cm-code-editor-recent-table th:nth-child(4){width:76px}
.cm-code-editor-recent-row{border-bottom:1px solid #d8dee4}
.cm-code-editor-recent-row:hover{background:#f6f8fa}
.cm-code-editor-recent-row td{padding:11px 12px;vertical-align:middle;overflow-wrap:anywhere}
.cm-code-recent-name strong{display:block;font-weight:650}
.cm-code-recent-name small{display:block;margin-top:2px;color:#6e7781;font-size:11px}
.cm-code-recent-edited{font-variant-numeric:tabular-nums;white-space:nowrap}
.cm-code-recent-location{font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;font-size:12px;color:#57606a}
.cm-code-recent-open-cell{text-align:right}
.cm-code-editor-recent-empty{padding:34px 20px;text-align:center;color:#57606a}
.cm-code-editor-recent-actions{display:flex;justify-content:space-between;gap:10px;padding:12px 16px;border-top:1px solid #d0d7de;background:#f6f8fa}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-recent-card{background:#1e1e1e;color:#ccc;border-color:#454545}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-recent-head,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-recent-actions,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-recent-row{border-color:#3c3c3c}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-recent-head p,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-recent-name small,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-recent-location,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-recent-empty{color:#a6a6a6}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-recent-table th,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-recent-actions{background:#252526;color:#ccc}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-recent-table th{border-color:#454545}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-recent-row:hover,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-recent-close:hover{background:#2a2d2e}
@media(max-width:720px){
    .cm-code-editor-recent-dialog{padding:10px}
    .cm-code-editor-recent-card{max-height:92vh}
    .cm-code-editor-recent-table thead{display:none}
    .cm-code-editor-recent-table,.cm-code-editor-recent-table tbody,.cm-code-editor-recent-row,.cm-code-editor-recent-row td{display:block;width:auto}
    .cm-code-editor-recent-row{padding:10px 12px}
    .cm-code-editor-recent-row td{padding:3px 0}
    .cm-code-recent-edited:before{content:'Last edited: ';font-weight:700}
    .cm-code-recent-location:before{content:'Location: ';font-family:inherit;font-weight:700}
    .cm-code-recent-open-cell{text-align:left;padding-top:8px!important}
    .cm-code-editor-recent-open{width:100%}
}


/* v1.0.30.136 — Code Helper */
.cm-code-editor-helper-dialog{
    position:fixed;inset:0;z-index:100090;background:rgba(0,0,0,.48);
    display:flex;align-items:center;justify-content:center;padding:18px;
}
.cm-code-editor-helper-dialog[hidden]{display:none!important}
.cm-code-editor-helper-card{
    width:min(860px,96vw);max-height:90vh;display:flex;flex-direction:column;overflow:hidden;
    background:#fff;color:#24292f;border:1px solid #d0d7de;border-radius:10px;
    box-shadow:0 18px 52px rgba(0,0,0,.3)
}
.cm-code-editor-helper-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid #d0d7de}
.cm-code-editor-helper-head h3{margin:0 0 3px;font-size:20px}.cm-code-editor-helper-head p{margin:0;color:#57606a}
.cm-code-editor-helper-close{border:0;background:transparent;font-size:26px;line-height:1;width:36px;height:36px;border-radius:6px;cursor:pointer;color:inherit}
.cm-code-editor-helper-close:hover{background:#f3f4f6}
.cm-code-editor-helper-searchbar{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:12px;padding:14px 18px;border-bottom:1px solid #d8dee4;background:#f6f8fa}
.cm-code-editor-helper-searchbar label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700}
.cm-code-editor-helper-searchbar input,.cm-code-editor-helper-searchbar select{width:100%;min-height:40px;border:1px solid #8c959f;border-radius:6px;background:#fff;color:#24292f;padding:7px 10px;font:inherit}
.cm-code-helper-results{padding:12px 14px;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-height:210px}
.cm-code-helper-result{border:1px solid #d8dee4;border-radius:8px;overflow:hidden;background:#fff;display:flex;flex-direction:column;min-width:0}
.cm-code-helper-result-head{padding:10px 12px;border-bottom:1px solid #eaeef2}.cm-code-helper-result-head>div{display:flex;gap:9px;align-items:center}
.cm-code-helper-result-head span:not(.cm-code-helper-swatch){display:flex;flex-direction:column}.cm-code-helper-result-head small{color:#57606a}.cm-code-helper-result-head strong{font-size:14px}
.cm-code-helper-swatch{display:inline-block;width:28px;height:28px;border:1px solid #8c959f;border-radius:5px;flex:0 0 28px}
.cm-code-helper-code{margin:0;padding:12px;background:#f6f8fa;color:#24292f;white-space:pre-wrap;overflow:auto;min-height:54px;flex:1;font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace}
.cm-code-helper-result-actions{display:flex;justify-content:flex-end;gap:7px;padding:9px 10px;border-top:1px solid #eaeef2}
.cm-code-helper-empty{padding:38px 20px;text-align:center;color:#57606a}
.cm-code-editor-helper-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 16px;border-top:1px solid #d0d7de;background:#f6f8fa;color:#57606a}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-helper-card{background:#1e1e1e;color:#ccc;border-color:#454545}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-helper-head,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-helper-searchbar,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-helper-actions,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-helper-result,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-helper-result-head,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-helper-result-actions{border-color:#3c3c3c}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-helper-searchbar,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-helper-actions{background:#252526;color:#ccc}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-helper-head p,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-helper-result-head small,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-helper-empty{color:#aaa}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-helper-searchbar input,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-helper-searchbar select,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-helper-result{background:#1e1e1e;color:#ddd;border-color:#555}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-helper-code{background:#252526;color:#ddd}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-helper-close:hover{background:#2a2d2e}
@media(max-width:700px){
    .cm-code-editor-helper-dialog{padding:8px}.cm-code-editor-helper-card{max-height:94vh}.cm-code-editor-helper-searchbar{grid-template-columns:1fr}.cm-code-helper-results{grid-template-columns:1fr}.cm-code-helper-result-actions .cm-btn{flex:1}
}

/* v1.0.30.137 — readable Code Helper rows + complete HTML colour insertion */
.cm-code-helper-results{
    grid-template-columns:1fr!important;
    gap:12px;
    padding:14px 18px;
}
.cm-code-helper-result{
    overflow:visible;
    border-radius:9px;
}
.cm-code-helper-result-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:13px 15px;
}
.cm-code-helper-result-title{
    display:flex!important;
    align-items:center!important;
    gap:11px!important;
    min-width:0;
}
.cm-code-helper-result-title-text{
    display:flex!important;
    flex-direction:column!important;
    gap:2px;
    min-width:0;
}
.cm-code-helper-result-title-text strong{
    display:block;
    font-size:16px!important;
    line-height:1.25;
    color:inherit;
}
.cm-code-helper-result-title-text small{
    display:block;
    font-size:12px;
    line-height:1.2;
}
.cm-code-helper-swatch{
    width:38px;
    height:38px;
    flex:0 0 38px;
    border-radius:6px;
}
.cm-code-helper-hex{
    flex:0 0 auto;
    padding:6px 9px;
    border:1px solid #8c959f;
    border-radius:6px;
    background:#f6f8fa;
    color:#24292f;
    font:700 14px/1.2 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;
}
.cm-code-helper-description{
    padding:9px 15px 0;
    color:#57606a;
    font-size:13px;
    line-height:1.4;
}
.cm-code-helper-code{
    margin:7px 15px 12px;
    min-height:0;
    border:1px solid #d8dee4;
    border-radius:6px;
    padding:11px 12px;
    font-size:14px;
    line-height:1.5;
    overflow-x:auto;
    word-break:normal;
}
.cm-code-helper-code-primary{
    font-size:16px;
    font-weight:700;
}
.cm-code-helper-result-actions{
    justify-content:flex-start;
    padding:11px 15px 13px;
    gap:9px;
}
.cm-code-helper-result-actions .cm-btn{
    min-width:110px;
    min-height:38px;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-helper-hex{
    background:#252526;
    color:#f3f3f3;
    border-color:#666;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-helper-description{color:#c8c8c8}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-helper-code{border-color:#4a4a4a}
@media(max-width:700px){
    .cm-code-helper-results{padding:10px!important}
    .cm-code-helper-result-head{align-items:flex-start;flex-direction:column}
    .cm-code-helper-hex{margin-left:49px}
    .cm-code-helper-code{margin-left:12px;margin-right:12px;font-size:13px}
    .cm-code-helper-description{padding-left:12px;padding-right:12px}
    .cm-code-helper-result-actions{padding-left:12px;padding-right:12px}
}

/* v1.0.30.139 — Excel/VBE-style VBA UserForm Designer */
.cm-code-ribbon-vba-group[hidden]{display:none!important}
.cm-code-ribbon-vba-group .cm-code-ribbon-button.is-active{background:#1473e6;color:#fff}
.cm-vba-userform-designer{width:100%;height:100%;min-height:0;background:#ececec;color:#1f1f1f;display:flex;flex-direction:column;overflow:hidden}
.cm-vba-userform-designer[hidden]{display:none!important}
.cm-vba-designer-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;border-bottom:1px solid #b5b5b5;background:#f5f5f5;flex:0 0 auto}
.cm-vba-designer-bar>div:first-child{display:flex;align-items:baseline;gap:10px;min-width:0}
.cm-vba-designer-file{font-size:12px;color:#666;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-vba-designer-bar-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.cm-vba-designer-bar button,.cm-vba-events button{border:1px solid #9b9b9b;border-radius:3px;background:#fafafa;color:#111;padding:6px 10px;font:inherit;cursor:pointer}
.cm-vba-designer-bar button:disabled{opacity:.45;cursor:not-allowed}
.cm-vba-snap-label{font-size:12px;display:flex;align-items:center;gap:5px;white-space:nowrap}
.cm-vba-designer-layout{display:grid;grid-template-columns:205px minmax(360px,1fr) 275px;min-height:0;flex:1 1 auto;overflow:hidden}
.cm-vba-designer-layout.toolbox-hidden{grid-template-columns:minmax(360px,1fr) 275px}
.cm-vba-designer-layout.properties-hidden{grid-template-columns:205px minmax(360px,1fr)}
.cm-vba-designer-layout.toolbox-hidden.properties-hidden{grid-template-columns:1fr}
.cm-vba-toolbox,.cm-vba-properties{background:#f3f3f3;min-height:0;overflow:auto;border-right:1px solid #b7b7b7}
.cm-vba-properties{border-right:0;border-left:1px solid #b7b7b7}
.cm-vba-pane-head{position:sticky;top:0;z-index:3;background:#e2e2e2;border-bottom:1px solid #b7b7b7;display:flex;align-items:center;justify-content:space-between;padding:7px 8px}
.cm-vba-pane-head button{width:28px;height:28px;border:0;background:transparent;font-size:20px;cursor:pointer;color:inherit}
.cm-vba-toolbox>p{margin:8px;font-size:11px;line-height:1.35;color:#555}
.cm-vba-toolbox-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:6px}
.cm-vba-toolbox-grid button{min-height:58px;padding:6px 4px;border:1px solid #aaa;background:#fff;color:#111;border-radius:2px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:18px;cursor:grab;touch-action:none}
.cm-vba-toolbox-grid button span{font-size:10px;line-height:1.05;text-align:center}
.cm-vba-toolbox-grid button:hover{outline:2px solid #1473e6;outline-offset:-2px}
.cm-vba-design-surface{min-width:0;min-height:0;overflow:hidden;display:flex;flex-direction:column;background:#777}
.cm-vba-design-scroll{flex:1 1 auto;overflow:auto;padding:28px;min-height:0;background-image:linear-gradient(45deg,rgba(255,255,255,.035) 25%,transparent 25%),linear-gradient(-45deg,rgba(255,255,255,.035) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(255,255,255,.035) 75%),linear-gradient(-45deg,transparent 75%,rgba(255,255,255,.035) 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}
.cm-vba-form-window{box-sizing:content-box;min-width:160px;box-shadow:0 8px 28px rgba(0,0,0,.35);border:1px solid #555;background:#f0f0f0;margin:0 auto 80px}
/* v1.0.30.266 — Excel/VBE-style UserForm sizing handles. */
.cm-vba-form-window{position:relative;overflow:visible}
.cm-vba-form-window.is-form-selected{outline:1px solid #1473e6;outline-offset:3px}
.cm-vba-form-resize-handle{position:absolute;display:block;width:10px;height:10px;box-sizing:border-box;border:1px solid #1473e6;background:#fff;z-index:80;touch-action:none;user-select:none}
.cm-vba-form-resize-handle[data-dir="nw"]{left:-7px;top:-7px;cursor:nwse-resize}
.cm-vba-form-resize-handle[data-dir="n"]{left:50%;top:-7px;transform:translateX(-50%);cursor:ns-resize}
.cm-vba-form-resize-handle[data-dir="ne"]{right:-7px;top:-7px;cursor:nesw-resize}
.cm-vba-form-resize-handle[data-dir="e"]{right:-7px;top:50%;transform:translateY(-50%);cursor:ew-resize}
.cm-vba-form-resize-handle[data-dir="se"]{right:-7px;bottom:-7px;cursor:nwse-resize}
.cm-vba-form-resize-handle[data-dir="s"]{left:50%;bottom:-7px;transform:translateX(-50%);cursor:ns-resize}
.cm-vba-form-resize-handle[data-dir="sw"]{left:-7px;bottom:-7px;cursor:nesw-resize}
.cm-vba-form-resize-handle[data-dir="w"]{left:-7px;top:50%;transform:translateY(-50%);cursor:ew-resize}
@media(pointer:coarse){.cm-vba-form-resize-handle{width:14px;height:14px}.cm-vba-form-resize-handle[data-dir="nw"],.cm-vba-form-resize-handle[data-dir="w"],.cm-vba-form-resize-handle[data-dir="sw"]{margin-left:-2px}.cm-vba-form-resize-handle[data-dir="ne"],.cm-vba-form-resize-handle[data-dir="e"],.cm-vba-form-resize-handle[data-dir="se"]{margin-right:-2px}}
.cm-vba-form-titlebar{height:28px;background:#f7f7f7;border-bottom:1px solid #999;color:#111;display:flex;align-items:center;justify-content:space-between;padding:0 8px;font:600 12px Arial,sans-serif;box-sizing:border-box}
.cm-vba-form-canvas{position:relative;box-sizing:border-box;min-width:160px;min-height:100px;outline:none;background-image:radial-gradient(rgba(70,70,70,.28) .7px,transparent .7px);background-size:8px 8px;overflow:hidden}
.cm-vba-designer-help{flex:0 0 auto;background:#efefef;color:#444;border-top:1px solid #aaa;padding:6px 10px;font-size:11px}
.cm-vba-control{position:absolute;box-sizing:border-box;border:1px solid transparent;cursor:move;user-select:none;touch-action:none;overflow:visible}
.cm-vba-control.is-selected{outline:1px solid #1473e6;outline-offset:1px}
.cm-vba-control.is-selected:before,.cm-vba-control.is-selected:after{content:"";position:absolute;width:6px;height:6px;background:#fff;border:1px solid #1473e6;z-index:20}
.cm-vba-control.is-selected:before{left:-5px;top:-5px}.cm-vba-control.is-selected:after{right:-5px;top:-5px}
.cm-vba-control>*{pointer-events:none}
.cm-vba-control .cm-vba-resize-handle{pointer-events:auto;position:absolute;right:-5px;bottom:-5px;width:8px;height:8px;border:1px solid #1473e6;background:#fff;cursor:nwse-resize;z-index:30}
.cm-vba-control-name{display:none;position:absolute;left:0;top:-16px;background:#1473e6;color:#fff;padding:1px 4px;font:10px Arial,sans-serif;white-space:nowrap;z-index:15}
.cm-vba-control.is-selected .cm-vba-control-name{display:block}
.cm-vba-control button,.cm-vba-control input,.cm-vba-control select,.cm-vba-control fieldset{box-sizing:border-box;width:100%;height:100%;font:inherit;color:inherit}
.cm-vba-control button{border:1px outset #aaa;background:#f2f2f2;color:#111;padding:2px 5px}
.cm-vba-mock-label{display:flex;align-items:center;width:100%;height:100%;overflow:hidden;white-space:nowrap}
.cm-vba-mock-input{border:1px inset #aaa;background:#fff!important;color:#111!important;padding:2px 4px}
.cm-vba-mock-list{height:100%;border:1px inset #aaa;background:#fff;display:flex;flex-direction:column;padding:4px;gap:5px}.cm-vba-mock-list span{height:4px;background:#bbb;width:70%}
.cm-vba-control label{display:flex;align-items:center;gap:3px;width:100%;height:100%;overflow:hidden;white-space:nowrap}
.cm-vba-control label input{width:auto;height:auto}
.cm-vba-control fieldset{margin:0;border:1px solid #777;background:transparent}.cm-vba-control legend{padding:0 4px;font-size:inherit}
.cm-vba-multipage{width:100%;height:100%;border:1px solid #777;background:#eee;padding-top:22px;position:relative}.cm-vba-multipage>div{position:absolute;left:3px;top:2px;display:flex;gap:2px}.cm-vba-multipage b,.cm-vba-multipage span{border:1px solid #888;background:#fff;padding:2px 8px;font:9px Arial}
.cm-vba-scrollbar{width:100%;height:100%;display:flex;flex-direction:column;background:#ddd;border:1px solid #888;text-align:center;box-sizing:border-box}.cm-vba-scrollbar span{height:18px;line-height:16px}.cm-vba-scrollbar i{flex:1;background:linear-gradient(#ddd 0 45%,#aaa 45% 62%,#ddd 62%)}
.cm-vba-spin{width:100%;height:100%;display:grid;grid-template-rows:1fr 1fr;border:1px solid #888;background:#eee;text-align:center}.cm-vba-spin span{display:flex;align-items:center;justify-content:center;border-bottom:1px solid #aaa}.cm-vba-spin span:last-child{border-bottom:0}
.cm-vba-image-placeholder{display:flex;align-items:center;justify-content:center;width:100%;height:100%;box-sizing:border-box;border:1px solid #888;background:repeating-linear-gradient(45deg,#ddd,#ddd 8px,#eee 8px,#eee 16px);color:#555;font:10px Arial}
.cm-vba-properties-object{padding:8px;background:#fff;border-bottom:1px solid #bbb;font-size:12px;font-weight:600;position:sticky;top:43px;z-index:2}
.cm-vba-properties-grid{padding:6px}
.cm-vba-properties-grid label{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;border-bottom:1px solid #d4d4d4;min-height:30px;font-size:11px}
.cm-vba-properties-grid label span{padding:5px 4px;font-weight:600;overflow:hidden;text-overflow:ellipsis}
.cm-vba-properties-grid input,.cm-vba-properties-grid select,.cm-vba-events select{width:100%;min-width:0;border:1px solid #b0b0b0;background:#fff;color:#111;padding:4px 5px;font:12px Arial,sans-serif;border-radius:0}
.cm-vba-events{border-top:1px solid #aaa;margin-top:8px;padding:9px;display:grid;grid-template-columns:1fr;gap:6px}
.cm-vba-events strong{font-size:12px}.cm-vba-events button{width:100%}
.cm-vba-frx-note{display:block;padding:8px 10px;color:#666;line-height:1.4;border-top:1px solid #ccc}
.cm-code-workspace-dark .cm-vba-userform-designer{background:#202020;color:#eee}
.cm-code-workspace-dark .cm-vba-designer-bar,.cm-code-workspace-dark .cm-vba-pane-head,.cm-code-workspace-dark .cm-vba-designer-help{background:#2b2b2b;color:#eee;border-color:#444}
.cm-code-workspace-dark .cm-vba-designer-file,.cm-code-workspace-dark .cm-vba-toolbox>p,.cm-code-workspace-dark .cm-vba-frx-note{color:#aaa}
.cm-code-workspace-dark .cm-vba-toolbox,.cm-code-workspace-dark .cm-vba-properties{background:#252525;border-color:#444}
.cm-code-workspace-dark .cm-vba-toolbox-grid button,.cm-code-workspace-dark .cm-vba-properties-object{background:#333;color:#eee;border-color:#555}
.cm-code-workspace-dark .cm-vba-properties-grid label{border-color:#3d3d3d}
.cm-code-workspace-dark .cm-vba-properties-grid input,.cm-code-workspace-dark .cm-vba-properties-grid select,.cm-code-workspace-dark .cm-vba-events select{background:#1e1e1e;color:#eee;border-color:#555}
.cm-code-workspace-dark .cm-vba-designer-bar button,.cm-code-workspace-dark .cm-vba-events button{background:#3a3a3a;color:#fff;border-color:#666}
@media(max-width:980px){
  .cm-vba-designer-layout{grid-template-columns:165px minmax(430px,1fr) 235px;overflow:auto}
  .cm-vba-toolbox-grid{grid-template-columns:1fr}.cm-vba-toolbox-grid button{min-height:48px}
  .cm-vba-properties-grid label{grid-template-columns:80px 1fr}
}
@media(max-width:720px){
  .cm-vba-designer-bar{align-items:flex-start;flex-direction:column}.cm-vba-designer-layout{display:flex;overflow:auto;align-items:stretch}
  .cm-vba-toolbox{flex:0 0 155px}.cm-vba-design-surface{flex:0 0 520px}.cm-vba-properties{flex:0 0 230px}
  .cm-vba-design-scroll{padding:18px 12px}.cm-vba-designer-help{font-size:10px}
}


/* v1.0.30.140 — Monaco IDE services + side-by-side Git diff */
.cm-code-editor-diff-dialog{position:fixed;inset:0;z-index:100050;background:rgba(0,0,0,.58);display:flex;align-items:center;justify-content:center;padding:18px}
.cm-code-editor-diff-dialog[hidden]{display:none!important}
.cm-code-editor-diff-card{width:min(1280px,97vw);height:min(880px,92vh);display:flex;flex-direction:column;background:#fff;color:#24292f;border:1px solid #d0d7de;border-radius:10px;box-shadow:0 20px 60px rgba(0,0,0,.35);overflow:hidden}
.cm-code-editor-diff-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:14px 16px;border-bottom:1px solid #d0d7de;background:#f6f8fa}
.cm-code-editor-diff-head h3{margin:0 0 3px;font-size:19px}.cm-code-editor-diff-head p{margin:0;color:#57606a;font-size:13px}
.cm-code-editor-diff-close{border:0;background:transparent;color:inherit;font-size:28px;line-height:1;cursor:pointer;padding:2px 7px;border-radius:5px}.cm-code-editor-diff-close:hover{background:rgba(127,127,127,.18)}
.cm-code-editor-diff-host{flex:1;min-height:300px;background:#fff}
.cm-code-editor-diff-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-top:1px solid #d0d7de;background:#f6f8fa}.cm-code-editor-diff-actions small{color:#57606a}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-diff-card{background:#1e1e1e;color:#d4d4d4;border-color:#454545}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-diff-head,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-diff-actions{background:#252526;border-color:#454545}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-diff-head p,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-diff-actions small{color:#a6a6a6}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-diff-host{background:#1e1e1e}
@media(max-width:720px){.cm-code-editor-diff-dialog{padding:6px}.cm-code-editor-diff-card{width:100%;height:94vh;border-radius:7px}.cm-code-editor-diff-head{padding:10px 12px}.cm-code-editor-diff-head p{font-size:12px}.cm-code-editor-diff-actions{align-items:flex-start;flex-direction:column}.cm-code-editor-diff-actions .cm-btn{width:100%}}

/* v1.0.30.141 — Microsoft Office-style tabbed ribbon */
.cm-code-editor-ribbon.cm-code-office-ribbon{
    display:block;
    overflow:hidden;
    background:#f6f8fa;
}
.cm-code-ribbon-tabs{
    display:flex;
    align-items:flex-end;
    gap:0;
    width:100%;
    min-width:0;
    overflow-x:auto;
    overflow-y:hidden;
    background:#eef1f4;
    border-bottom:1px solid #d0d7de;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
}
.cm-code-ribbon-tabs::-webkit-scrollbar,
.cm-code-ribbon-panel::-webkit-scrollbar{display:none}
.cm-code-ribbon-tab{
    flex:0 0 auto;
    min-width:68px;
    min-height:34px;
    padding:7px 15px 6px;
    border:0;
    border-right:1px solid transparent;
    border-left:1px solid transparent;
    border-radius:0;
    background:transparent;
    color:#24292f;
    font:600 12px/1.2 inherit;
    cursor:pointer;
    white-space:nowrap;
    position:relative;
}
.cm-code-ribbon-tab:hover{background:#f6f8fa}
.cm-code-ribbon-tab.is-active{
    background:#fff;
    color:#0969da;
    border-left-color:#d0d7de;
    border-right-color:#d0d7de;
}
.cm-code-ribbon-tab.is-active::after{
    content:"";
    position:absolute;
    left:8px;
    right:8px;
    bottom:0;
    height:3px;
    background:#0969da;
}
.cm-code-ribbon-tab .cm-code-comments-badge{
    position:static;
    display:inline-grid;
    place-items:center;
    min-width:17px;
    height:17px;
    margin-left:4px;
    padding:0 4px;
    border-radius:9px;
    background:#cf222e;
    color:#fff;
    font-size:10px;
    line-height:1;
    vertical-align:middle;
}
.cm-code-ribbon-tab .cm-code-comments-badge[hidden]{display:none!important}
.cm-code-ribbon-panels{width:100%;min-width:0;background:#f6f8fa}
.cm-code-ribbon-panel{
    display:flex;
    align-items:stretch;
    width:100%;
    min-width:0;
    min-height:67px;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
}
.cm-code-ribbon-panel[hidden]{display:none!important}
.cm-code-ribbon-panel .cm-code-ribbon-group{scroll-snap-align:start}
.cm-code-office-ribbon .cm-code-ribbon-group{
    min-height:67px;
    padding-top:5px;
    padding-bottom:3px;
}
.cm-code-office-ribbon .cm-code-ribbon-button{
    min-height:48px;
}

.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-ribbon-tabs{
    background:#151515;
    border-color:#3c3c3c;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-ribbon-tab{
    color:#cfcfcf;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-ribbon-tab:hover{
    background:#252526;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-ribbon-tab.is-active{
    background:#181818;
    color:#fff;
    border-left-color:#3c3c3c;
    border-right-color:#3c3c3c;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-ribbon-tab.is-active::after{
    background:#3794ff;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-ribbon-panels,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-ribbon-panel{
    background:#181818;
}

@media(max-width:820px){
    .cm-code-ribbon-tab{min-width:auto;padding-left:14px;padding-right:14px;font-size:12px}
    .cm-code-ribbon-panel{min-height:70px}
    .cm-code-office-ribbon .cm-code-ribbon-group{min-height:70px}
}
@media(max-width:520px){
    .cm-code-ribbon-tab{padding-left:12px;padding-right:12px}
    .cm-code-office-ribbon .cm-code-ribbon-button{min-width:58px;min-height:50px}
    .cm-code-office-ribbon .cm-code-ribbon-group{padding-left:4px;padding-right:4px}
}

/* v1.0.30.142 — Google Drive details inside the existing GitHub account dropdown */
.cm-code-account-divider{height:1px;margin:8px 1px;background:#30363d}
.cm-code-google-account-heading{display:flex;flex-direction:column;gap:4px;padding:7px 9px 4px}
.cm-code-google-account-heading>span{font-size:11px;font-weight:700;color:#8b949e;text-transform:uppercase;letter-spacing:.04em}
.cm-code-google-account-heading>strong{font-size:13px;overflow-wrap:anywhere}
.cm-code-google-account-heading>small{font-size:11px;line-height:1.35;color:#8b949e;overflow-wrap:anywhere}
.cm-code-google-account-heading>em{font-size:11px;font-style:normal;font-weight:700;color:#3fb950}
.cm-code-google-connect,.cm-code-google-disconnect{display:block;margin-top:5px;padding:9px;border-radius:7px;text-align:center;text-decoration:none!important;font-size:12px;font-weight:700}
.cm-code-google-connect{background:#f6f8fa;color:#24292f!important;border:1px solid #d0d7de}
.cm-code-google-connect:hover{background:#fff}
.cm-code-google-disconnect{color:#f85149!important;border:1px solid rgba(248,81,73,.38)}
.cm-code-google-disconnect:hover{background:#2d1b1e}
.cm-code-github-account-light .cm-code-account-divider{background:#d8dee4}
.cm-code-github-account-light .cm-code-google-account-heading>span,.cm-code-github-account-light .cm-code-google-account-heading>small{color:#57606a}
.cm-code-github-account-light .cm-code-google-connect{background:#f6f8fa;color:#24292f!important;border-color:#d0d7de}
.cm-code-github-account-light .cm-code-google-disconnect:hover{background:#ffebe9}

/* v1.0.30.143 — Google Drive workspace */
.cm-code-drive-dialog,.cm-code-drive-recent-dialog{position:fixed;inset:0;z-index:100050;background:rgba(0,0,0,.58);display:flex;align-items:center;justify-content:center;padding:20px}
.cm-code-drive-dialog[hidden],.cm-code-drive-recent-dialog[hidden]{display:none!important}
.cm-code-drive-card,.cm-code-drive-recent-card{width:min(920px,96vw);max-height:min(760px,90vh);background:#fff;color:#1f2937;border:1px solid #cbd5e1;border-radius:12px;box-shadow:0 24px 70px rgba(0,0,0,.35);display:flex;flex-direction:column;overflow:hidden}
.cm-code-drive-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid #d8dee8}.cm-code-drive-head h3{margin:0 0 4px;font-size:22px}.cm-code-drive-head p{margin:0;color:#64748b}.cm-code-drive-head>button{border:0;background:transparent;color:inherit;font-size:28px;line-height:1;cursor:pointer}
.cm-code-drive-toolbar{display:grid;grid-template-columns:auto minmax(180px,1fr) minmax(180px,300px);gap:10px;align-items:center;padding:12px 16px;border-bottom:1px solid #e2e8f0}.cm-code-drive-breadcrumb{display:flex;align-items:center;gap:5px;font-weight:600;white-space:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}.cm-code-drive-crumb{appearance:none;border:0;background:transparent;color:#2563eb;font:inherit;font-weight:600;padding:5px 4px;border-radius:5px;cursor:pointer;white-space:nowrap}.cm-code-drive-crumb:hover,.cm-code-drive-crumb:focus{background:#eaf2ff;outline:none}.cm-code-drive-crumb:last-child{color:inherit}.cm-code-drive-crumb-sep{color:#94a3b8;flex:0 0 auto}.cm-code-drive-search{width:100%;min-height:40px;border:1px solid #cbd5e1;border-radius:8px;padding:8px 11px;background:#fff;color:#111827}
.cm-code-drive-list{overflow:auto;padding:8px;min-height:260px;max-height:480px}.cm-code-drive-row{width:100%;display:flex;align-items:center;gap:12px;border:0;border-bottom:1px solid #e5e7eb;background:transparent;color:inherit;text-align:left;padding:11px 12px;cursor:pointer}.cm-code-drive-row:hover,.cm-code-drive-row:focus{background:#f1f5f9}.cm-code-drive-row-icon{font-size:24px;width:26px;height:26px}.cm-code-drive-row-main{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}.cm-code-drive-row-main strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cm-code-drive-row-main small{color:#64748b}.cm-code-drive-row-action{font-weight:600;color:#2563eb}
.cm-code-drive-empty{padding:28px;text-align:center;color:#64748b}.cm-code-drive-save-fields{padding:12px 16px;border-top:1px solid #e2e8f0}.cm-code-drive-save-fields label{display:flex;flex-direction:column;gap:6px}.cm-code-drive-save-fields input{min-height:40px;border:1px solid #cbd5e1;border-radius:8px;padding:8px 11px}
.cm-code-drive-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:12px 16px;border-top:1px solid #e2e8f0}.cm-code-drive-status{margin-right:auto;color:#64748b;min-height:1.2em}.cm-code-drive-recent-list{overflow:auto;padding:8px;max-height:560px}.cm-code-drive-recent-row{width:100%;display:grid;grid-template-columns:minmax(160px,1.3fr) minmax(140px,1fr) auto;gap:12px;align-items:center;padding:12px;border:0;border-bottom:1px solid #e5e7eb;background:transparent;color:inherit;text-align:left;cursor:pointer}.cm-code-drive-recent-row:hover{background:#f1f5f9}.cm-code-drive-recent-row span,.cm-code-drive-recent-row small{color:#64748b}
.cm-code-drive-link-label{font-weight:600}
.cm-code-workspace-dark .cm-code-drive-card,.cm-code-workspace-dark .cm-code-drive-recent-card{background:#1e1e1e;color:#f3f4f6;border-color:#3f3f46}.cm-code-workspace-dark .cm-code-drive-head,.cm-code-workspace-dark .cm-code-drive-toolbar,.cm-code-workspace-dark .cm-code-drive-actions,.cm-code-workspace-dark .cm-code-drive-save-fields{border-color:#3f3f46}.cm-code-workspace-dark .cm-code-drive-row,.cm-code-workspace-dark .cm-code-drive-recent-row{border-color:#333}.cm-code-workspace-dark .cm-code-drive-row:hover,.cm-code-workspace-dark .cm-code-drive-row:focus,.cm-code-workspace-dark .cm-code-drive-recent-row:hover{background:#2a2d2e}.cm-code-workspace-dark .cm-code-drive-search,.cm-code-workspace-dark .cm-code-drive-save-fields input{background:#252526;color:#fff;border-color:#4b5563}.cm-code-workspace-dark .cm-code-drive-head p,.cm-code-workspace-dark .cm-code-drive-row-main small,.cm-code-workspace-dark .cm-code-drive-status,.cm-code-workspace-dark .cm-code-drive-recent-row span,.cm-code-workspace-dark .cm-code-drive-recent-row small{color:#b7bcc5}.cm-code-workspace-dark .cm-code-drive-crumb{color:#8ab4ff}.cm-code-workspace-dark .cm-code-drive-crumb:last-child{color:#f3f4f6}.cm-code-workspace-dark .cm-code-drive-crumb:hover,.cm-code-workspace-dark .cm-code-drive-crumb:focus{background:#2f3744}.cm-code-workspace-dark .cm-code-drive-crumb-sep{color:#71717a}
@media(max-width:720px){.cm-code-drive-dialog,.cm-code-drive-recent-dialog{padding:8px;align-items:stretch}.cm-code-drive-card,.cm-code-drive-recent-card{width:100%;max-height:100%;border-radius:10px}.cm-code-drive-toolbar{grid-template-columns:auto 1fr}.cm-code-drive-search{grid-column:1/-1}.cm-code-drive-list{max-height:none;flex:1}.cm-code-drive-recent-row{grid-template-columns:1fr}.cm-code-drive-actions{flex-wrap:wrap}.cm-code-drive-status{width:100%;margin:0}}

/* v1.0.30.145 — Start Screen, no theme flash, Drive-style GitHub Open browser. */
html.cm-code-pre-dark,
html.cm-code-pre-dark body.cm-code-editor-pwa-body{
    background:#181818!important;
    color-scheme:dark;
}
html.cm-code-pre-light,
html.cm-code-pre-light body.cm-code-editor-pwa-body{
    background:#ffffff!important;
    color-scheme:light;
}
html.cm-code-pre-dark .cm-code-editor-workspace:not(.cm-code-workspace-dark){
    background:#181818!important;
    color:#cccccc!important;
}
html.cm-code-pre-dark .cm-code-editor-pwa-bar{background:#181818;color:#fff;border-color:#3c3c3c}
html.cm-code-pre-dark .cm-code-editor-dashboard-link{color:#fff}
html.cm-code-pre-light .cm-code-editor-pwa-bar{background:#f6f8fa;color:#24292f;border-color:#d0d7de}
html.cm-code-pre-light .cm-code-editor-dashboard-link{color:#24292f}
html.cm-code-pre-dark .cm-code-editor-ribbon,
html.cm-code-pre-dark .cm-code-ribbon-tabs,
html.cm-code-pre-dark .cm-code-ribbon-panels{background:#1f1f1f;color:#ddd;border-color:#3f3f46}

.cm-code-start-screen-title{
    margin:12px 14px 8px;
    display:flex;
    align-items:baseline;
    gap:10px;
    min-width:0;
}
.cm-code-start-screen-title strong{font-size:18px}
.cm-code-start-screen-title span{color:#57606a;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cm-code-editor-workspace.is-editor-open>.cm-code-start-screen-title{display:none!important}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-start-screen-title span{color:#a6a6a6}
@media(max-width:700px){
    .cm-code-start-screen-title{margin-left:8px;margin-right:8px;align-items:flex-start;flex-direction:column;gap:2px}
    .cm-code-start-screen-title span{white-space:normal}
}

/* The Start Screen is intentionally borderless; internal panes keep their separators. */
.cm-code-editor-workspace.is-pwa-view:not(.is-editor-open)>.cm-code-editor-start{
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    background:transparent!important;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-start{background:#181818;color:#ccc}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-repo-explorer{background:#1e1e1e;border-color:#3f3f46}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-repo-explorer-head{border-color:#3f3f46}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-repo-explorer-head small,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-repo-item small{color:#a6a6a6}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-repo-item{color:#ddd}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-repo-item:hover,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-repo-item.is-selected{background:#2a2d2e}

.cm-code-editor-open-dialog{padding:18px}
.cm-code-github-browser-card{
    width:min(920px,100%)!important;
    max-height:min(760px,calc(100vh - 36px));
    padding:0!important;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    border:0!important;
    border-radius:10px!important;
    background:#fff;
    color:#111827;
    box-shadow:0 24px 80px rgba(0,0,0,.34)!important;
}
.cm-code-github-browser-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:16px;border-bottom:1px solid #e2e8f0}
.cm-code-github-browser-head h3{margin:0 0 4px!important;font-size:20px}
.cm-code-github-browser-head p{margin:0!important;color:#64748b}
.cm-code-github-browser-close{flex:0 0 auto;width:34px;height:34px;border:0;border-radius:7px;background:transparent;color:inherit;font-size:24px;line-height:1;cursor:pointer}
.cm-code-github-browser-close:hover{background:#f1f5f9}
.cm-code-github-browser-toolbar{display:grid;grid-template-columns:auto minmax(220px,1fr) minmax(180px,300px);gap:10px;align-items:center;padding:12px 16px;border-bottom:1px solid #e2e8f0}
.cm-code-github-browser-breadcrumb{display:flex;align-items:center;gap:5px;font-weight:600;white-space:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.cm-code-github-browser-crumb{appearance:none;border:0;background:transparent;color:#2563eb;font:inherit;font-weight:600;padding:5px 4px;border-radius:5px;cursor:pointer;white-space:nowrap}
.cm-code-github-browser-crumb:hover,.cm-code-github-browser-crumb:focus{background:#eaf2ff;outline:none}
.cm-code-github-browser-crumb:last-child{color:inherit}
.cm-code-github-browser-crumb-sep{color:#94a3b8;flex:0 0 auto}
.cm-code-github-browser-search{width:100%;min-height:40px;border:1px solid #cbd5e1;border-radius:8px;padding:8px 11px;background:#fff;color:#111827}
.cm-code-github-browser-list{min-height:260px;overflow:auto;flex:1 1 auto;padding:4px 0}
.cm-code-github-browser-row{width:100%;display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 16px;border:0;border-bottom:1px solid #eef2f7;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer}
.cm-code-github-browser-row:hover,.cm-code-github-browser-row:focus{background:#f6f8fa;outline:none}
.cm-code-github-browser-row-icon{color:#64748b}
.cm-code-github-browser-row-main{min-width:0}
.cm-code-github-browser-row-main strong,.cm-code-github-browser-row-main small{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-code-github-browser-row-main small{margin-top:2px;color:#64748b;font-size:12px}
.cm-code-github-browser-row-action{font-weight:700;color:#2563eb}
.cm-code-github-browser-empty{padding:28px 16px;text-align:center;color:#64748b}
.cm-code-github-browser-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-top:1px solid #e2e8f0}
.cm-code-github-browser-status{min-width:0;color:#64748b;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-code-github-browser-source{display:none!important}

.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-github-browser-card{background:#1e1e1e;color:#f3f4f6}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-github-browser-head,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-github-browser-toolbar,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-github-browser-actions,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-github-browser-row{border-color:#3f3f46}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-github-browser-head p,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-github-browser-row-main small,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-github-browser-status,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-github-browser-empty{color:#b7bcc5}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-github-browser-search{background:#252526;color:#fff;border-color:#4b5563}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-github-browser-crumb{color:#8ab4ff}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-github-browser-crumb:last-child{color:#f3f4f6}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-github-browser-crumb:hover,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-github-browser-crumb:focus{background:#2f3744}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-github-browser-row:hover,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-github-browser-row:focus,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-github-browser-close:hover{background:#2a2d2e}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-github-browser-row-icon{color:#a6a6a6}

@media(max-width:700px){
    .cm-code-editor-open-dialog{padding:8px}
    .cm-code-github-browser-card{max-height:calc(100vh - 16px)}
    .cm-code-github-browser-toolbar{grid-template-columns:auto minmax(0,1fr)}
    .cm-code-github-browser-search{grid-column:1 / -1}
    .cm-code-github-browser-head{padding:13px}
    .cm-code-github-browser-row{padding:10px 12px}
}
.cm-code-github-account-heading small{font-size:11px;color:#8b949e;overflow-wrap:anywhere}
.cm-code-github-account-light .cm-code-github-account-heading small{color:#57606a}


/* v1.0.30.146 — Excel/VBE form/code tab workflow + non-destructive Add. */
.cm-vba-designer-open .cm-ghfm-code-editor-pane{display:none!important}
.cm-vba-designer-open .cm-vba-userform-designer{display:flex!important;min-width:0;flex:1 1 auto}
.cm-ghfm-code-tab.is-vba-code-tab .cm-ghfm-code-tab-name:before{
    content:"{}";
    display:inline-block;
    margin-right:6px;
    font-size:.82em;
    opacity:.72;
}
.cm-code-editor-workspace.is-editor-open.is-code-add-mode>.cm-code-editor-start{
    min-height:0;
    overflow:auto;
}


/* v1.0.30.147 — Run Form browser VBA runtime. */
.cm-vba-runtime-overlay{position:fixed;inset:0;z-index:2147482500;background:rgba(0,0,0,.58);display:flex;align-items:center;justify-content:center;padding:22px;overflow:auto}
.cm-vba-runtime-window{position:relative;max-width:calc(100vw - 44px);max-height:calc(100vh - 44px);background:#ddd;border:1px solid #666;box-shadow:0 18px 70px rgba(0,0,0,.55);display:flex;flex-direction:column;color:#111;font-family:Arial,sans-serif}
.cm-vba-runtime-titlebar{height:32px;min-height:32px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 7px 0 10px;background:linear-gradient(#f7f7f7,#d7d7d7);border-bottom:1px solid #888;box-sizing:border-box;font-size:13px}
.cm-vba-runtime-close{width:25px;height:24px;border:0;background:transparent;color:#111;font-size:20px;line-height:20px;padding:0;cursor:pointer}
.cm-vba-runtime-canvas{position:relative;overflow:hidden;flex:0 0 auto;max-width:calc(100vw - 50px);max-height:calc(100vh - 105px)}
.cm-vba-runtime-control{position:absolute;box-sizing:border-box;overflow:visible;display:flex;align-items:stretch}
.cm-vba-runtime-widget{box-sizing:border-box;width:100%;height:100%;font:inherit;color:inherit}
.cm-vba-runtime-label .cm-vba-runtime-widget,.cm-vba-runtime-checkbox .cm-vba-runtime-widget,.cm-vba-runtime-optionbutton .cm-vba-runtime-widget{display:flex;align-items:center;background:transparent;border:0}
.cm-vba-runtime-control button{font:inherit}
.cm-vba-runtime-control fieldset{margin:0;min-width:0;padding:5px;border:1px solid #777;background:transparent}
.cm-vba-runtime-control legend{padding:0 4px}
.cm-vba-runtime-pages{border:1px solid #888;background:#eee}.cm-vba-runtime-pages>button{height:24px}.cm-vba-runtime-pages>div{border-top:1px solid #999;height:calc(100% - 25px);background:#f5f5f5}
.cm-vba-runtime-image{display:flex;align-items:center;justify-content:center;border:1px dashed #888;background:#e8e8e8;color:#666}
.cm-vba-runtime-status{height:24px;min-height:24px;display:flex;align-items:center;padding:0 8px;background:#eee;border-top:1px solid #aaa;color:#666;font-size:10px;box-sizing:border-box}
@media(max-width:700px){.cm-vba-runtime-overlay{padding:8px;align-items:flex-start}.cm-vba-runtime-window{max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);transform-origin:top left}.cm-vba-runtime-canvas{max-width:calc(100vw - 18px);max-height:calc(100vh - 78px);overflow:auto}}


/* v1.0.30.150 — Refresh choices + FAQ-style Code Sections + non-blocking VBA MsgBox. */
.cm-code-refresh-dialog,.cm-code-sections-dialog{position:fixed;inset:0;z-index:100120;background:rgba(15,23,42,.58);display:grid;place-items:center;padding:18px}
.cm-code-refresh-dialog[hidden],.cm-code-sections-dialog[hidden]{display:none!important}
.cm-code-refresh-card,.cm-code-sections-card{width:min(680px,96vw);max-height:90vh;display:flex;flex-direction:column;overflow:hidden;background:#fff;color:#24292f;border:1px solid #d0d7de;border-radius:10px;box-shadow:0 24px 80px rgba(0,0,0,.36)}
.cm-code-refresh-head,.cm-code-sections-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:16px 18px;border-bottom:1px solid #d0d7de}
.cm-code-refresh-head h3,.cm-code-sections-head h3{margin:0 0 3px;font-size:20px}.cm-code-refresh-head p,.cm-code-sections-head p{margin:0;color:#57606a}
.cm-code-refresh-close,.cm-code-sections-close{width:34px;height:34px;border:0;border-radius:6px;background:transparent;color:inherit;font-size:25px;line-height:1;cursor:pointer}.cm-code-refresh-close:hover,.cm-code-sections-close:hover{background:#f3f4f6}
.cm-code-refresh-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:18px}
.cm-code-refresh-choice{min-height:128px;display:grid;grid-template-columns:34px 1fr;grid-template-rows:auto 1fr;column-gap:10px;text-align:left;border:1px solid #d0d7de;border-radius:9px;background:#fff;color:#24292f;padding:16px;cursor:pointer}.cm-code-refresh-choice:hover{background:#f6f8fa;border-color:#0969da}.cm-code-refresh-choice .dashicons{grid-row:1/3;font-size:28px;width:28px;height:28px}.cm-code-refresh-choice strong{font-size:16px}.cm-code-refresh-choice small{margin-top:5px;color:#57606a;line-height:1.45}
.cm-code-refresh-actions,.cm-code-sections-actions{display:flex;justify-content:flex-end;padding:11px 16px;border-top:1px solid #d0d7de;background:#f6f8fa}
.cm-code-sections-toolbar{display:flex;gap:8px;padding:10px 14px;border-bottom:1px solid #d8dee4;background:#f6f8fa}.cm-code-sections-list{overflow:auto;padding:10px;display:flex;flex-direction:column;gap:6px;min-height:160px;max-height:60vh}.cm-code-sections-empty{padding:28px 18px;text-align:center;color:#57606a}
.cm-code-section-row{display:grid;grid-template-columns:24px 1fr;align-items:center;gap:8px;width:100%;border:1px solid #d8dee4;border-radius:7px;background:#fff;color:#24292f;padding:9px 10px;text-align:left;cursor:pointer}.cm-code-section-row:hover{background:#f6f8fa;border-color:#8c959f}.cm-code-section-chevron{font-size:20px;text-align:center}.cm-code-section-copy{display:flex;flex-direction:column;min-width:0}.cm-code-section-copy strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cm-code-section-copy small{color:#6e7781;margin-top:2px}.cm-code-section-row.is-collapsed{background:#f6f8fa}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-refresh-card,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-sections-card{background:#1e1e1e;color:#ddd;border-color:#454545}.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-refresh-head,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-sections-head,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-refresh-actions,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-sections-actions,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-sections-toolbar{border-color:#3c3c3c}.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-refresh-actions,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-sections-actions,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-sections-toolbar{background:#252526}.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-refresh-head p,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-sections-head p,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-refresh-choice small,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-section-copy small,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-sections-empty{color:#aaa}.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-refresh-choice,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-section-row{background:#1e1e1e;color:#ddd;border-color:#555}.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-refresh-choice:hover,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-section-row:hover,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-section-row.is-collapsed{background:#2a2d2e}
@media(max-width:650px){.cm-code-refresh-options{grid-template-columns:1fr}.cm-code-refresh-dialog,.cm-code-sections-dialog{padding:8px}.cm-code-refresh-card,.cm-code-sections-card{max-height:94vh}}
.cm-vba-runtime-msgbox-layer{position:absolute;inset:32px 0 24px;z-index:50;background:rgba(0,0,0,.16);display:grid;place-items:center;padding:18px;box-sizing:border-box}.cm-vba-runtime-msgbox{min-width:240px;max-width:min(440px,88%);background:#f2f2f2;color:#111;border:1px solid #777;box-shadow:0 12px 36px rgba(0,0,0,.38);padding:18px 18px 12px;display:flex;flex-direction:column;gap:18px}.cm-vba-runtime-msgbox-text{font:13px/1.45 Arial,sans-serif;white-space:pre-wrap}.cm-vba-runtime-msgbox-ok{align-self:flex-end;min-width:78px;padding:5px 16px;border:1px solid #777;background:#fff;color:#111;cursor:pointer}.cm-vba-runtime-msgbox-ok:focus{outline:2px solid #0078d4;outline-offset:1px}


/* v1.0.30.155 — Elementor-style UserForm Properties panel */
.cm-vba-properties{background:#f7f8fa}
.cm-vba-properties-object{top:43px;padding:10px 12px;background:#fff;font-size:12px;border-bottom:1px solid #d7dce2}
.cm-vba-properties-tabs{position:sticky;top:79px;z-index:2;display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border-bottom:1px solid #d7dce2}
.cm-vba-properties-tab{appearance:none;border:0;border-bottom:3px solid transparent;background:transparent;color:#4b5563;padding:10px 4px 8px;font:600 11px/1.2 Arial,sans-serif;cursor:pointer}
.cm-vba-properties-tab:hover{background:#f3f4f6;color:#111827}
.cm-vba-properties-tab.is-active{color:#2563eb;border-bottom-color:#2563eb}
.cm-vba-properties-panel{padding:9px}
.cm-vba-properties-panel[hidden]{display:none!important}
.cm-vba-property-group{margin:0 0 9px;border:1px solid #d6dae0;border-radius:5px;background:#fff;overflow:hidden}
.cm-vba-property-group-head{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;border:0;background:#f5f6f8;color:#20252b;padding:9px 10px;font:700 11px/1.2 Arial,sans-serif;text-align:left;cursor:pointer}
.cm-vba-property-group-head span:last-child{font-size:12px;transition:transform .15s ease}
.cm-vba-property-group.is-collapsed .cm-vba-property-group-head span:last-child{transform:rotate(180deg)}
.cm-vba-property-group.is-collapsed .cm-vba-property-group-body{display:none}
.cm-vba-property-group-body{padding:4px 9px 8px}
.cm-vba-property-row{display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;gap:8px;min-height:38px;border-bottom:1px solid #eceff2;font:11px Arial,sans-serif}
.cm-vba-property-row:last-child{border-bottom:0}
.cm-vba-property-row>span:first-child{font-weight:600;color:#4b5563}
.cm-vba-property-row-stacked{grid-template-columns:1fr}
.cm-vba-property-row input[type="text"],.cm-vba-property-row input[type="number"],.cm-vba-property-row select,.cm-vba-dimensions-grid input,.cm-vba-events select{width:100%;min-width:0;min-height:30px;border:1px solid #c5cad1;border-radius:4px;background:#fff;color:#111827;padding:5px 7px;font:12px Arial,sans-serif}
.cm-vba-colour-control{display:grid;grid-template-columns:34px minmax(0,1fr);gap:6px;align-items:center}
.cm-vba-colour-control input[type="color"]{width:34px;height:30px;padding:2px;border:1px solid #c5cad1;border-radius:4px;background:#fff;cursor:pointer}
.cm-vba-colour-control input[type="color"]::-webkit-color-swatch-wrapper{padding:0}
.cm-vba-colour-control input[type="color"]::-webkit-color-swatch{border:0;border-radius:2px}
.cm-vba-dimensions-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:5px}
.cm-vba-dimensions-grid label{display:flex;flex-direction:column;gap:4px;font:600 10px Arial,sans-serif;color:#4b5563}
.cm-vba-events{border-top:0;margin-top:0;padding:0;display:block}
.cm-vba-events .cm-vba-open-event{width:100%;margin-top:7px;border:1px solid #2563eb;border-radius:4px;background:#2563eb;color:#fff;padding:8px 10px;font-weight:700;cursor:pointer}
.cm-vba-properties [data-vba-scope="control"][hidden]{display:none!important}
.cm-vba-frx-note{background:#fff;color:#68707b}
.cm-code-workspace-dark .cm-vba-properties{background:#202124}
.cm-code-workspace-dark .cm-vba-properties-object,.cm-code-workspace-dark .cm-vba-properties-tabs,.cm-code-workspace-dark .cm-vba-property-group{background:#25262a;border-color:#42454b;color:#f3f4f6}
.cm-code-workspace-dark .cm-vba-properties-tab{color:#b8bdc7}
.cm-code-workspace-dark .cm-vba-properties-tab:hover{background:#303238;color:#fff}
.cm-code-workspace-dark .cm-vba-properties-tab.is-active{color:#6ea8ff;border-bottom-color:#6ea8ff}
.cm-code-workspace-dark .cm-vba-property-group-head{background:#2e3035;color:#f2f3f5}
.cm-code-workspace-dark .cm-vba-property-row{border-color:#35383e}
.cm-code-workspace-dark .cm-vba-property-row>span:first-child,.cm-code-workspace-dark .cm-vba-dimensions-grid label{color:#b9bec8}
.cm-code-workspace-dark .cm-vba-property-row input[type="text"],.cm-code-workspace-dark .cm-vba-property-row input[type="number"],.cm-code-workspace-dark .cm-vba-property-row select,.cm-code-workspace-dark .cm-vba-dimensions-grid input,.cm-code-workspace-dark .cm-vba-events select{background:#1d1e22;color:#f3f4f6;border-color:#4a4e56}
.cm-code-workspace-dark .cm-vba-colour-control input[type="color"]{background:#1d1e22;border-color:#4a4e56}
.cm-code-workspace-dark .cm-vba-frx-note{background:#25262a;color:#aeb4bf}
@media(max-width:980px){.cm-vba-property-row{grid-template-columns:78px 1fr}.cm-vba-properties-tab{font-size:10px}}


/* v1.0.30.157 — exact pre-paint theme lock for PWA reload/navigation. */
html.cm-code-theme-booting body.cm-code-editor-pwa-body{visibility:hidden!important}
html.cm-code-pre-dark{background:#181818!important;color-scheme:dark}
html.cm-code-pre-light{background:#fff!important;color-scheme:light}

/* v1.0.30.158 — CM Date/Time control, multiline Labels, clean VBA delete, resizable Run Form. */
.cm-vba-mock-label,.cm-vba-runtime-label .cm-vba-runtime-widget{white-space:pre-wrap;overflow-wrap:anywhere;align-items:flex-start}
.cm-vba-datetime-display,.cm-vba-runtime-datetime{display:flex;align-items:center;width:100%;height:100%;box-sizing:border-box;padding:3px 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.cm-vba-property-row textarea{width:100%;min-width:0;min-height:68px;resize:vertical;border:1px solid #c5cad1;border-radius:4px;background:#fff;color:#111827;padding:6px 7px;font:12px/1.4 Arial,sans-serif;box-sizing:border-box}
.cm-vba-property-row input[type="datetime-local"]{width:100%;min-width:0;min-height:32px;border:1px solid #c5cad1;border-radius:4px;background:#fff;color:#111827;padding:5px 7px;font:12px Arial,sans-serif;box-sizing:border-box}
.cm-vba-property-help{display:block;padding:7px 0 2px;color:#6b7280;font:10px/1.35 Arial,sans-serif}
.cm-vba-datetime-properties[hidden]{display:none!important}
.cm-code-workspace-dark .cm-vba-property-row textarea,.cm-code-workspace-dark .cm-vba-property-row input[type="datetime-local"]{background:#1d1e22;color:#f3f4f6;border-color:#4a4e56;color-scheme:dark}
.cm-code-workspace-dark .cm-vba-property-help{color:#aeb4bf}

.cm-vba-runtime-window{resize:both;overflow:hidden;min-width:260px;min-height:150px}
.cm-vba-runtime-window.is-maximized{width:calc(100vw - 24px)!important;height:calc(100vh - 24px)!important;max-width:none!important;max-height:none!important;resize:none}
.cm-vba-runtime-titlebar{user-select:none;cursor:default}
.cm-vba-runtime-window-buttons{display:flex;align-items:stretch;height:100%;margin-right:-7px}
.cm-vba-runtime-window-buttons button{width:38px;height:31px;border:0;border-left:1px solid rgba(0,0,0,.08);background:transparent;color:#111;font:16px/1 Arial,sans-serif;padding:0;cursor:pointer}
.cm-vba-runtime-window-buttons button:hover{background:rgba(0,0,0,.08)}
.cm-vba-runtime-window-buttons .cm-vba-runtime-close:hover{background:#c42b1c;color:#fff}
.cm-vba-runtime-canvas{flex:1 1 auto;width:100%;height:100%;max-width:none;max-height:none;overflow:auto;min-height:0}
.cm-vba-runtime-taskbar{position:fixed;left:14px;bottom:14px;z-index:2147483000;max-width:min(360px,calc(100vw - 28px));padding:5px;border:1px solid #666;border-radius:7px;background:rgba(30,30,30,.94);box-shadow:0 8px 30px rgba(0,0,0,.35)}
.cm-vba-runtime-taskbar[hidden]{display:none!important}
.cm-vba-runtime-taskbar-button{max-width:100%;min-width:180px;height:36px;padding:0 14px;border:1px solid #777;border-radius:4px;background:#f2f2f2;color:#111;font:600 12px Arial,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;text-align:left}
.cm-vba-runtime-taskbar-button:before{content:'▣';margin-right:8px}
@media(max-width:700px){.cm-vba-runtime-window{resize:none}.cm-vba-runtime-window.is-maximized{width:calc(100vw - 8px)!important;height:calc(100vh - 8px)!important}.cm-vba-runtime-window-buttons button{width:34px}}


/* v1.0.30.159 — dismissible, auto-expiring Code Editor messages. */
.cm-code-editor-workspace>.cm-ghfm-status{position:relative;padding-right:46px!important}
.cm-code-editor-workspace>.cm-ghfm-status .cm-ghfm-status-text{display:block;min-width:0}
.cm-code-editor-workspace>.cm-ghfm-status .cm-ghfm-status-close{
    position:absolute;right:8px;top:50%;transform:translateY(-50%);width:30px;height:30px;
    display:grid;place-items:center;border:0;border-radius:6px;background:transparent;color:inherit;
    font:700 24px/1 Arial,sans-serif;cursor:pointer;opacity:.72;padding:0
}
.cm-code-editor-workspace>.cm-ghfm-status .cm-ghfm-status-close:hover,
.cm-code-editor-workspace>.cm-ghfm-status .cm-ghfm-status-close:focus{opacity:1;background:rgba(0,0,0,.08);outline:2px solid currentColor;outline-offset:1px}
.cm-code-workspace-dark>.cm-ghfm-status .cm-ghfm-status-close:hover,
.cm-code-workspace-dark>.cm-ghfm-status .cm-ghfm-status-close:focus{background:rgba(255,255,255,.12)}


/* v1.0.30.162 — PWA title/account bar follows Light/Dark; Help Settings is a ribbon link. */


/* v1.0.30.162 — unified PWA Start Screen + Explorer-only repository selection. */
.cm-code-editor-edit-repo-source{display:none!important}
.cm-code-editor-edit-file-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.cm-code-editor-workspace.is-pwa-view:not(.is-editor-open).is-code-edit-mode .cm-code-editor-setup-area{
    padding:20px;
}
@media(max-width:820px){
    .cm-code-editor-edit-file-grid{grid-template-columns:1fr}
    .cm-code-editor-workspace.is-pwa-view:not(.is-editor-open).is-code-edit-mode .cm-code-editor-setup-area{padding:15px}
}
@media(max-width:520px){
    .cm-code-editor-workspace.is-pwa-view:not(.is-editor-open).is-code-edit-mode .cm-code-editor-setup-area{padding:12px}
}

/* Real VS Code/Monaco FAQ-style code folding: keep the native gutter arrows
   visible on foldable blocks rather than relying only on the Sections dialog. */
.cm-ghfm-monaco-host .monaco-editor .margin-view-overlays .folding,
.cm-ghfm-monaco-host .monaco-editor .margin-view-overlays .codicon-folding-expanded,
.cm-ghfm-monaco-host .monaco-editor .margin-view-overlays .codicon-folding-collapsed{
    opacity:1!important;
    visibility:visible!important;
}
.cm-ghfm-monaco-host .monaco-editor .margin-view-overlays .codicon-folding-expanded,
.cm-ghfm-monaco-host .monaco-editor .margin-view-overlays .codicon-folding-collapsed{
    display:block!important;
    cursor:pointer!important;
}

/* v1.0.30.165 — Start Screen Edit File fields stay readable in Dark mode. */
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-edit-setup h3,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-edit-setup .cm-ghfm-field > span{
    color:#f0f0f0!important;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-edit-setup > p{
    color:#b7bcc5!important;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-edit-setup select{
    background:#252526!important;
    color:#f0f0f0!important;
    border-color:#555!important;
    color-scheme:dark;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-edit-setup select:disabled{
    opacity:1!important;
    color:#c9c9c9!important;
    -webkit-text-fill-color:#c9c9c9!important;
    background:#202020!important;
    border-color:#454545!important;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-edit-setup select option{
    background:#252526;
    color:#f0f0f0;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-edit-setup .cm-btn:disabled{
    opacity:.62;
}


/* v1.0.30.166 — File > Create repository/branch screen + viewport-bound Explorer. */
.cm-code-editor-create-structure-setup{min-width:0}
.cm-code-create-structure-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.cm-code-create-card{border:1px solid #d0d7de;border-radius:9px;background:#fff;padding:16px;display:flex;flex-direction:column;gap:12px;min-width:0}
.cm-code-create-card-head{display:flex;flex-direction:column;gap:3px}.cm-code-create-card-head strong{font-size:16px}.cm-code-create-card-head small{color:#57606a;line-height:1.4}
.cm-code-create-card .cm-ghfm-field{display:flex;flex-direction:column;gap:6px}.cm-code-create-card .cm-ghfm-field>span{font-weight:600;color:#24292f}
.cm-code-create-card input[type="text"],.cm-code-create-card select{width:100%;min-height:40px;box-sizing:border-box;border:1px solid #d0d7de;border-radius:6px;background:#fff;color:#24292f;padding:7px 10px;font:inherit}
.cm-code-create-card input[readonly]{background:#f6f8fa}
.cm-code-create-repo-options{grid-template-columns:minmax(150px,.7fr) minmax(220px,1.3fr);align-items:end;margin:0}
.cm-code-create-checkbox{display:flex;align-items:center;gap:8px;min-height:40px;color:#24292f}.cm-code-create-checkbox input{margin:0}
.cm-code-create-structure-actions{display:flex;justify-content:flex-end;margin-top:16px}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-create-card{background:#1e1e1e;border-color:#3f3f46;color:#eee}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-create-card-head small{color:#aeb4be}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-create-card .cm-ghfm-field>span,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-create-checkbox{color:#f0f0f0}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-create-card input[type="text"],.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-create-card select{background:#252526;color:#f0f0f0;border-color:#555;color-scheme:dark}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-create-card input[readonly]{background:#202020;color:#c9c9c9}
.cm-code-editor-workspace.is-editor-open.is-code-create-mode>.cm-code-editor-start{display:grid!important;min-height:0;overflow:hidden}
.cm-code-editor-workspace.is-editor-open.is-code-create-mode>.cm-code-editor-editor{display:none!important}

@media(min-width:821px){
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view:not(.is-editor-open).is-code-edit-mode,
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view:not(.is-editor-open).is-code-create-mode,
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-editor-open.is-code-create-mode{
        display:flex!important;flex-direction:column;height:100vh;height:100dvh;min-height:0!important;overflow:hidden;
    }
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view:not(.is-editor-open).is-code-edit-mode>.cm-code-editor-pwa-bar,
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view:not(.is-editor-open).is-code-edit-mode>.cm-code-editor-ribbon,
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view:not(.is-editor-open).is-code-edit-mode>.cm-code-start-screen-title,
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view:not(.is-editor-open).is-code-create-mode>.cm-code-editor-pwa-bar,
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view:not(.is-editor-open).is-code-create-mode>.cm-code-editor-ribbon,
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view:not(.is-editor-open).is-code-create-mode>.cm-code-start-screen-title,
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-editor-open.is-code-create-mode>.cm-code-editor-pwa-bar,
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-editor-open.is-code-create-mode>.cm-code-editor-ribbon,
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-editor-open.is-code-create-mode>.cm-code-start-screen-title{flex:0 0 auto}
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view:not(.is-editor-open).is-code-edit-mode>.cm-code-editor-start,
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view:not(.is-editor-open).is-code-create-mode>.cm-code-editor-start,
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-editor-open.is-code-create-mode>.cm-code-editor-start{
        flex:1 1 auto;min-height:0;height:auto;overflow:hidden;margin-bottom:8px!important;
    }
    body.cm-code-editor-pwa-body .cm-code-editor-repo-explorer{display:flex;flex-direction:column;min-height:0;overflow:hidden}
    body.cm-code-editor-pwa-body .cm-code-editor-repo-explorer-head{flex:0 0 auto}
    body.cm-code-editor-pwa-body .cm-code-editor-repo-list{flex:1 1 auto;min-height:0;max-height:none!important;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
    body.cm-code-editor-pwa-body .cm-code-editor-setup-area{min-height:0;overflow:auto}
}
@media(max-width:820px){.cm-code-create-structure-grid{grid-template-columns:1fr}.cm-code-create-repo-options{grid-template-columns:1fr}}

.cm-code-editor-workspace.is-editor-open.is-code-create-mode>.cm-code-start-screen-title{display:flex!important}

/* v1.0.30.168 — Create screen follows the shared PWA theme and scrolls correctly on mobile. */
.cm-code-editor-workspace.is-code-create-mode{
    --cm-create-page:#ffffff;
    --cm-create-panel:#ffffff;
    --cm-create-explorer:#f6f8fa;
    --cm-create-text:#24292f;
    --cm-create-muted:#57606a;
    --cm-create-border:#d0d7de;
    --cm-create-input:#ffffff;
    --cm-create-input-readonly:#f6f8fa;
    --cm-create-repo-hover:#eaeef2;
    --cm-create-repo-selected:#ddf4ff;
    --cm-create-repo-selected-text:#0969da;
}
.cm-code-editor-workspace.is-code-create-mode.cm-code-workspace-dark{
    --cm-create-page:#181818;
    --cm-create-panel:#1e1e1e;
    --cm-create-explorer:#1e1e1e;
    --cm-create-text:#f0f0f0;
    --cm-create-muted:#aeb4be;
    --cm-create-border:#3f3f46;
    --cm-create-input:#252526;
    --cm-create-input-readonly:#202020;
    --cm-create-repo-hover:#2a2d2e;
    --cm-create-repo-selected:#27364a;
    --cm-create-repo-selected-text:#8ab4ff;
}
.cm-code-editor-workspace.is-code-create-mode > .cm-code-editor-start{
    background:var(--cm-create-page)!important;
    color:var(--cm-create-text)!important;
}
.cm-code-editor-workspace.is-code-create-mode .cm-code-editor-repo-explorer{
    background:var(--cm-create-explorer)!important;
    border-color:var(--cm-create-border)!important;
    color:var(--cm-create-text)!important;
}
.cm-code-editor-workspace.is-code-create-mode .cm-code-editor-repo-explorer-head{
    border-color:var(--cm-create-border)!important;
}
.cm-code-editor-workspace.is-code-create-mode .cm-code-editor-repo-explorer-head strong,
.cm-code-editor-workspace.is-code-create-mode .cm-code-editor-create-structure-setup h3,
.cm-code-editor-workspace.is-code-create-mode .cm-code-create-card-head strong,
.cm-code-editor-workspace.is-code-create-mode .cm-code-create-card .cm-ghfm-field > span,
.cm-code-editor-workspace.is-code-create-mode .cm-code-create-checkbox{
    color:var(--cm-create-text)!important;
}
.cm-code-editor-workspace.is-code-create-mode .cm-code-editor-repo-explorer-head small,
.cm-code-editor-workspace.is-code-create-mode .cm-code-editor-create-structure-setup > p,
.cm-code-editor-workspace.is-code-create-mode .cm-code-create-card-head small{
    color:var(--cm-create-muted)!important;
}
.cm-code-editor-workspace.is-code-create-mode .cm-code-editor-repo-item{
    color:var(--cm-create-text)!important;
    background:transparent!important;
    border-color:var(--cm-create-border)!important;
}
.cm-code-editor-workspace.is-code-create-mode .cm-code-editor-repo-item small{
    color:var(--cm-create-muted)!important;
}
.cm-code-editor-workspace.is-code-create-mode .cm-code-editor-repo-item:hover{
    background:var(--cm-create-repo-hover)!important;
    color:var(--cm-create-text)!important;
}
.cm-code-editor-workspace.is-code-create-mode .cm-code-editor-repo-item.is-selected{
    background:var(--cm-create-repo-selected)!important;
    color:var(--cm-create-repo-selected-text)!important;
}
.cm-code-editor-workspace.is-code-create-mode .cm-code-create-card{
    background:var(--cm-create-panel)!important;
    border-color:var(--cm-create-border)!important;
    color:var(--cm-create-text)!important;
}
.cm-code-editor-workspace.is-code-create-mode .cm-code-create-card input[type="text"],
.cm-code-editor-workspace.is-code-create-mode .cm-code-create-card select{
    background:var(--cm-create-input)!important;
    color:var(--cm-create-text)!important;
    border-color:var(--cm-create-border)!important;
    -webkit-text-fill-color:var(--cm-create-text)!important;
}
.cm-code-editor-workspace.is-code-create-mode .cm-code-create-card input[readonly]{
    background:var(--cm-create-input-readonly)!important;
    color:var(--cm-create-muted)!important;
    -webkit-text-fill-color:var(--cm-create-muted)!important;
}
.cm-code-editor-workspace.is-code-create-mode .cm-code-create-card input::placeholder{
    color:var(--cm-create-muted)!important;
    opacity:1;
}
.cm-code-editor-workspace.is-code-create-mode .cm-code-create-card select:disabled,
.cm-code-editor-workspace.is-code-create-mode .cm-code-create-card input:disabled{
    opacity:.72;
}
.cm-code-editor-workspace.is-code-create-mode.cm-code-workspace-dark .cm-code-create-card select{color-scheme:dark}
.cm-code-editor-workspace.is-code-create-mode:not(.cm-code-workspace-dark) .cm-code-create-card select{color-scheme:light}

@media(max-width:820px){
    /* The ribbon/title remain visible; the Create workspace below them is what scrolls. */
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-code-create-mode{
        display:flex!important;
        flex-direction:column;
        height:100vh;
        height:100dvh;
        min-height:0!important;
        overflow:hidden!important;
    }
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-code-create-mode > .cm-code-editor-pwa-bar,
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-code-create-mode > .cm-code-editor-ribbon,
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-code-create-mode > .cm-code-start-screen-title{
        flex:0 0 auto;
    }
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-code-create-mode > .cm-code-editor-start{
        flex:1 1 auto;
        min-height:0!important;
        height:auto!important;
        overflow-x:hidden!important;
        overflow-y:auto!important;
        overscroll-behavior-y:contain;
        -webkit-overflow-scrolling:touch;
        padding-bottom:max(24px,env(safe-area-inset-bottom));
    }
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-code-create-mode .cm-code-editor-repo-explorer{
        overflow:visible!important;
    }
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-code-create-mode .cm-code-editor-repo-list{
        overflow-x:auto!important;
        overflow-y:hidden!important;
        max-height:none!important;
        padding-bottom:8px;
    }
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-code-create-mode .cm-code-editor-repo-item{
        background:var(--cm-create-panel)!important;
        border:1px solid var(--cm-create-border)!important;
    }
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-code-create-mode .cm-code-editor-repo-item:hover{
        background:var(--cm-create-repo-hover)!important;
    }
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-code-create-mode .cm-code-editor-repo-item.is-selected{
        background:var(--cm-create-repo-selected)!important;
        color:var(--cm-create-repo-selected-text)!important;
    }
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-code-create-mode .cm-code-editor-setup-area{
        min-height:auto!important;
        overflow:visible!important;
    }
    .cm-code-create-structure-actions{padding-bottom:8px}
}

/* v1.0.30.169 — Microsoft Office-style Open/Create browser + Local Storage. */
.cm-code-office-dialog{
    position:fixed;
    z-index:100000;
    inset:0;
    display:grid;
    place-items:center;
    padding:18px;
    background:rgba(15,23,42,.58);
}
.cm-code-office-dialog[hidden]{display:none!important}
.cm-code-office-card{
    width:min(1080px,96vw);
    height:min(720px,90vh);
    min-height:520px;
    display:flex;
    flex-direction:column;
    overflow:hidden;
    border:1px solid #d0d7de;
    border-radius:10px;
    background:#fff;
    color:#24292f;
    box-shadow:0 24px 80px rgba(0,0,0,.32);
}
.cm-code-office-head{
    flex:0 0 auto;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
    padding:16px 18px 13px;
    border-bottom:1px solid #d0d7de;
    background:#f6f8fa;
}
.cm-code-office-head h3{margin:0;font-size:20px;line-height:1.2}
.cm-code-office-head p{margin:5px 0 0;color:#57606a}
.cm-code-office-close{
    width:34px;height:34px;border:0;border-radius:5px;background:transparent;color:inherit;font-size:26px;line-height:1;cursor:pointer;
}
.cm-code-office-close:hover{background:#eaeef2}
.cm-code-office-body{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:220px minmax(0,1fr)}
.cm-code-office-sidebar{
    min-width:0;
    overflow:auto;
    border-right:1px solid #d0d7de;
    background:#f6f8fa;
    padding:10px 0;
}
.cm-code-office-local-group{margin:0}
.cm-code-office-local-group>summary{
    display:flex;align-items:center;gap:9px;padding:11px 15px;font-weight:700;cursor:pointer;list-style:none;color:#24292f;
}
.cm-code-office-local-group>summary::-webkit-details-marker{display:none}
.cm-code-office-local-group>summary:after{content:'›';margin-left:auto;transform:rotate(90deg);transition:.12s ease}
.cm-code-office-local-group:not([open])>summary:after{transform:rotate(0deg)}
.cm-code-office-local-items{padding:0 0 5px}
.cm-code-office-source{
    width:100%;min-height:42px;display:flex;align-items:center;gap:10px;border:0;background:transparent;color:#24292f;text-align:left;padding:9px 15px;cursor:pointer;font:inherit;
}
.cm-code-office-local-items .cm-code-office-source{padding-left:31px}
.cm-code-office-source:hover{background:#eaeef2}
.cm-code-office-source.is-selected{background:#dbeafe;color:#0969da;font-weight:700;box-shadow:inset 3px 0 0 #0969da}
.cm-code-office-source .dashicons{width:20px;height:20px;font-size:20px}
.cm-code-office-browser{min-width:0;min-height:0;display:flex;flex-direction:column;background:#fff}
.cm-code-office-browser-title{flex:0 0 auto;display:flex;align-items:baseline;gap:10px;padding:14px 16px 8px}
.cm-code-office-browser-title strong{font-size:17px}
.cm-code-office-browser-title small{color:#57606a}
.cm-code-office-toolbar{flex:0 0 auto;display:grid;grid-template-columns:auto minmax(120px,1fr) minmax(160px,260px);gap:8px;align-items:center;padding:0 16px 10px}
.cm-code-office-breadcrumb{min-width:0;display:flex;align-items:center;gap:4px;overflow:auto;white-space:nowrap;border:1px solid #d0d7de;border-radius:5px;min-height:36px;padding:0 8px;background:#fff}
.cm-code-office-crumb{border:0;background:transparent;color:#0969da;cursor:pointer;padding:3px 2px;font:inherit}
.cm-code-office-crumb-sep{color:#8c959f}
.cm-code-office-search{width:100%;min-height:36px;box-sizing:border-box;border:1px solid #d0d7de;border-radius:5px;background:#fff;color:#24292f;padding:6px 9px;font:inherit}
.cm-code-office-list{flex:1 1 auto;min-height:120px;overflow:auto;border-top:1px solid #d8dee4;border-bottom:1px solid #d8dee4;background:#fff;padding:4px 0}
.cm-code-office-row{width:100%;min-height:48px;display:grid;grid-template-columns:30px minmax(0,1fr);gap:8px;align-items:center;border:0;border-bottom:1px solid #f0f2f4;background:#fff;color:#24292f;text-align:left;padding:7px 14px;cursor:pointer;font:inherit}
.cm-code-office-row:hover{background:#f6f8fa}
.cm-code-office-row.is-selected{background:#ddf4ff;outline:1px solid #54aeff;outline-offset:-1px}
.cm-code-office-row-icon{color:#57606a}
.cm-code-office-row-main{display:flex;min-width:0;flex-direction:column;gap:2px}
.cm-code-office-row-main strong,.cm-code-office-row-main small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-code-office-row-main small{color:#57606a;font-size:11px}
.cm-code-office-empty{padding:24px;color:#57606a;text-align:center}
.cm-code-office-status{flex:0 0 auto;min-height:18px;padding:4px 16px;color:#57606a;font-size:12px}
.cm-code-office-local-prompt{margin:auto;max-width:520px;text-align:center;padding:28px 22px;color:#57606a}
.cm-code-office-local-prompt .dashicons{display:block;margin:0 auto 8px;width:34px;height:34px;font-size:34px;color:#0969da}
.cm-code-office-local-prompt strong{display:block;color:#24292f;font-size:17px}
.cm-code-office-local-prompt p{line-height:1.45}
.cm-code-office-footer{flex:0 0 auto;display:grid;grid-template-columns:minmax(190px,1fr) minmax(160px,230px) auto auto;gap:8px;align-items:end;padding:10px 16px 14px;background:#f6f8fa;border-top:1px solid #d0d7de}
.cm-code-office-footer label{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;font-size:12px}
.cm-code-office-footer input,.cm-code-office-footer select,.cm-code-office-create-fields input,.cm-code-office-create-fields select{min-height:36px;box-sizing:border-box;border:1px solid #d0d7de;border-radius:5px;background:#fff;color:#24292f;padding:6px 9px;font:inherit}
.cm-code-office-filetype{grid-template-columns:1fr!important}
.cm-code-office-create-fields{flex:0 0 auto;display:grid;grid-template-columns:minmax(130px,.7fr) minmax(180px,1fr) minmax(180px,1fr) minmax(180px,1fr);gap:10px;padding:0 16px 12px}
.cm-code-office-create-fields label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:600}
.cm-code-office-create-footer{grid-template-columns:auto minmax(180px,1fr) auto auto;align-items:center}
.cm-code-office-create-destination{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#57606a;font-size:12px}

/* Shared dark mode for Office browser. */
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-office-card{background:#1e1e1e;color:#f0f0f0;border-color:#3f3f46}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-office-head,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-office-sidebar,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-office-footer{background:#181818;border-color:#3f3f46}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-office-head p,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-office-browser-title small,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-office-status,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-office-empty,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-office-create-destination,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-office-local-prompt{color:#b8b8b8}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-office-body,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-office-browser,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-office-list{background:#1e1e1e}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-office-sidebar{border-color:#3f3f46}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-office-local-group>summary,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-office-source{color:#e7e7e7}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-office-source:hover,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-office-close:hover{background:#2a2d2e}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-office-source.is-selected{background:#123b59;color:#8ecbff;box-shadow:inset 3px 0 0 #3794ff}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-office-breadcrumb,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-office-search,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-office-footer input,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-office-footer select,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-office-create-fields input,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-office-create-fields select{background:#252526;color:#f0f0f0;border-color:#555;color-scheme:dark}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-office-row{background:#1e1e1e;color:#f0f0f0;border-color:#2d2d30}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-office-row:hover{background:#2a2d2e}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-office-row.is-selected{background:#094771;outline-color:#3794ff}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-office-row-main small,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-office-row-icon{color:#b8b8b8}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-office-local-prompt strong{color:#f0f0f0}

@media(max-width:820px){
    .cm-code-office-dialog{padding:0;place-items:stretch}
    .cm-code-office-card{width:100%;height:100%;min-height:0;max-height:none;border-radius:0;border-left:0;border-right:0}
    .cm-code-office-head{padding:12px 14px}
    .cm-code-office-head p{font-size:12px}
    .cm-code-office-body{grid-template-columns:150px minmax(0,1fr)}
    .cm-code-office-local-group>summary,.cm-code-office-source{padding-left:10px;padding-right:8px;font-size:12px}
    .cm-code-office-local-items .cm-code-office-source{padding-left:21px}
    .cm-code-office-toolbar{grid-template-columns:auto minmax(100px,1fr);padding-left:10px;padding-right:10px}
    .cm-code-office-search{grid-column:1/-1}
    .cm-code-office-browser-title{padding-left:10px;padding-right:10px;display:block}
    .cm-code-office-browser-title small{display:block;margin-top:3px}
    .cm-code-office-create-fields{grid-template-columns:1fr 1fr;padding-left:10px;padding-right:10px}
    .cm-code-office-footer{grid-template-columns:1fr auto;align-items:end;padding:9px 10px}
    .cm-code-office-footer .cm-code-office-filename{grid-column:1/-1}
    .cm-code-office-footer .cm-code-office-filetype{grid-column:1/2}
    .cm-code-office-create-footer{grid-template-columns:1fr auto}
    .cm-code-office-create-footer .cm-code-office-location-action{grid-column:1/2}
    .cm-code-office-create-destination{grid-column:1/-1;grid-row:1}
}
@media(max-width:560px){
    .cm-code-office-body{grid-template-columns:112px minmax(0,1fr)}
    .cm-code-office-source .dashicons,.cm-code-office-local-group>summary .dashicons{display:none}
    .cm-code-office-create-fields{grid-template-columns:1fr}
    .cm-code-office-row{padding-left:9px;padding-right:9px;grid-template-columns:24px minmax(0,1fr)}
}


/* v1.0.30.170 — Storage ribbon target chooser and cross-storage controls. */
.cm-code-storage-github-target-dialog{position:fixed;inset:0;z-index:100120;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;padding:20px}
.cm-code-storage-github-target-dialog[hidden]{display:none!important}
.cm-code-storage-target-card{width:min(560px,96vw);background:#fff;border:1px solid #d0d7de;border-radius:8px;box-shadow:0 16px 46px rgba(0,0,0,.28);padding:18px;display:grid;gap:14px;color:#24292f}
.cm-code-storage-target-card .cm-ghfm-field{display:grid;gap:6px}.cm-code-storage-target-card select{width:100%}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-storage-target-card{background:#1f1f1f;border-color:#4b4b4b;color:#f0f0f0}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-storage-target-card select{background:#252526;color:#f0f0f0;border-color:#555}
.cm-code-storage-sync .cm-code-ribbon-button{min-width:76px}
@media(max-width:760px){.cm-code-storage-target-card{max-height:82vh;overflow:auto}.cm-code-storage-sync .cm-code-ribbon-button{min-width:68px}}


/* v1.0.30.176 — Start Screen repository theme, iOS Local Create picker and centred VBA forms. */
@media(max-width:820px){
    .cm-code-editor-workspace.cm-code-workspace-dark:not(.is-code-create-mode) .cm-code-editor-repo-item{
        background:#252526!important;
        color:#f0f0f0!important;
        border-color:#3f3f46!important;
    }
    .cm-code-editor-workspace.cm-code-workspace-dark:not(.is-code-create-mode) .cm-code-editor-repo-item small{color:#aeb4be!important}
    .cm-code-editor-workspace.cm-code-workspace-dark:not(.is-code-create-mode) .cm-code-editor-repo-item:hover{
        background:#2a2d2e!important;
        color:#f0f0f0!important;
    }
    .cm-code-editor-workspace.cm-code-workspace-dark:not(.is-code-create-mode) .cm-code-editor-repo-item.is-selected{
        background:#27364a!important;
        color:#8ab4ff!important;
    }
    .cm-code-editor-workspace:not(.cm-code-workspace-dark):not(.is-code-create-mode) .cm-code-editor-repo-item{
        background:#fff!important;
        color:#24292f!important;
        border-color:#d0d7de!important;
    }
    .cm-code-editor-workspace:not(.cm-code-workspace-dark):not(.is-code-create-mode) .cm-code-editor-repo-item small{color:#57606a!important}
    .cm-code-editor-workspace:not(.cm-code-workspace-dark):not(.is-code-create-mode) .cm-code-editor-repo-item:hover,
    .cm-code-editor-workspace:not(.cm-code-workspace-dark):not(.is-code-create-mode) .cm-code-editor-repo-item.is-selected{
        background:#eaeef2!important;
        color:#24292f!important;
    }
}
@media(max-width:720px){
    .cm-vba-design-scroll{
        display:flex;
        flex-direction:column;
        justify-content:center;
        align-items:center;
        min-height:100%;
    }
    .cm-vba-form-window{margin:auto!important;flex:0 0 auto}
    .cm-vba-runtime-overlay{
        align-items:center!important;
        justify-content:center!important;
        padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;
    }
    .cm-vba-runtime-window{
        margin:auto!important;
        max-width:calc(100vw - 16px);
        max-height:calc(100dvh - 16px);
        transform-origin:center center!important;
    }
    .cm-vba-runtime-canvas{max-width:calc(100vw - 18px);max-height:calc(100dvh - 78px);overflow:auto}
}


/* v1.0.30.179 — native GitHub / Google Code Editor sign-in + master logout */
.cm-code-editor-master-logout{display:inline-flex;align-items:center;justify-content:center;color:#cf222e;text-decoration:none;font-size:13px;font-weight:700;padding:7px 10px;border-radius:6px;border:1px solid rgba(207,34,46,.28);white-space:nowrap}
.cm-code-editor-master-logout:hover{background:#ffebe9}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-master-logout{color:#ff7b72;border-color:rgba(255,123,114,.34)}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-editor-master-logout:hover{background:#2d1b1e}
.cm-code-auth-screen{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:max(24px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));box-sizing:border-box;background:#f6f8fa;color:#1f2328;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.cm-code-auth-shell{width:min(780px,100%);background:#fff;border:1px solid #d0d7de;border-radius:14px;box-shadow:0 16px 50px rgba(31,35,40,.12);padding:26px;box-sizing:border-box}
.cm-code-auth-brand{display:flex;gap:14px;align-items:center;margin-bottom:18px}.cm-code-auth-mark{width:48px;height:48px;border-radius:11px;background:#0969da;color:#fff;display:grid;place-items:center;font-weight:800;font-size:18px;letter-spacing:.03em;flex:0 0 auto}.cm-code-auth-brand h1{font-size:24px;line-height:1.15;margin:0 0 4px}.cm-code-auth-brand p{margin:0;color:#57606a}
.cm-code-auth-clock{display:flex;justify-content:space-between;gap:16px;align-items:center;border:1px solid #d8dee4;background:#f6f8fa;border-radius:9px;padding:10px 12px;margin-bottom:18px;font-size:13px}.cm-code-auth-clock span{color:#57606a}.cm-code-auth-clock strong{font-variant-numeric:tabular-nums;text-align:right}
.cm-code-auth-providers{display:grid;grid-template-columns:1fr 1fr;gap:14px}.cm-code-auth-provider{display:grid;grid-template-columns:44px 1fr;grid-template-areas:"icon copy" "button button";gap:11px 12px;border:1px solid #d0d7de;border-radius:11px;padding:16px;background:#fff}.cm-code-auth-provider-icon{grid-area:icon;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-weight:800}.cm-code-auth-provider-github{background:#24292f;color:#fff}.cm-code-auth-provider-google{background:#fff;color:#4285f4;border:1px solid #d0d7de;font-size:21px}.cm-code-auth-provider-copy{grid-area:copy}.cm-code-auth-provider-copy h2{font-size:17px;margin:1px 0 4px}.cm-code-auth-provider-copy p{font-size:13px;line-height:1.4;color:#57606a;margin:0}.cm-code-auth-provider-button{grid-area:button;display:flex;min-height:42px;align-items:center;justify-content:center;border:1px solid #0969da;border-radius:7px;background:#0969da;color:#fff!important;text-decoration:none!important;font-size:14px;font-weight:700;padding:0 14px;box-sizing:border-box}.cm-code-auth-provider-button:hover{background:#0860ca}.cm-code-auth-provider-button:disabled{background:#8c959f;border-color:#8c959f;cursor:not-allowed}
.cm-code-auth-message,.cm-code-auth-error{padding:10px 12px;border-radius:8px;margin:0 0 16px;font-size:13px}.cm-code-auth-message{background:#dafbe1;border:1px solid #aceebb;color:#116329}.cm-code-auth-error{background:#ffebe9;border:1px solid #ff8182;color:#82071e}.cm-code-auth-footer{text-align:center;color:#6e7781;font-size:12px;margin-top:20px}.cm-code-auth-footer a{color:inherit;font-weight:700}
html.cm-code-pre-dark .cm-code-auth-screen{background:#181818;color:#f0f6fc}.cm-code-theme-booting .cm-code-auth-screen{visibility:visible!important}html.cm-code-pre-dark .cm-code-auth-shell{background:#0d1117;border-color:#30363d;box-shadow:0 18px 55px rgba(0,0,0,.45)}html.cm-code-pre-dark .cm-code-auth-brand p,html.cm-code-pre-dark .cm-code-auth-provider-copy p,html.cm-code-pre-dark .cm-code-auth-clock span,html.cm-code-pre-dark .cm-code-auth-footer{color:#8b949e}html.cm-code-pre-dark .cm-code-auth-clock{background:#161b22;border-color:#30363d}html.cm-code-pre-dark .cm-code-auth-provider{background:#0d1117;border-color:#30363d}html.cm-code-pre-dark .cm-code-auth-provider-google{background:#fff;color:#4285f4}html.cm-code-pre-dark .cm-code-auth-provider-button{border-color:#238636;background:#238636}html.cm-code-pre-dark .cm-code-auth-provider-button:hover{background:#2ea043}html.cm-code-pre-dark .cm-code-auth-message{background:#0f2d18;border-color:#238636;color:#7ee787}html.cm-code-pre-dark .cm-code-auth-error{background:#2d1b1e;border-color:#f85149;color:#ff7b72}
@media(max-width:700px){.cm-code-auth-screen{align-items:flex-start;padding-top:max(22px,env(safe-area-inset-top))}.cm-code-auth-shell{padding:18px;border-radius:11px}.cm-code-auth-providers{grid-template-columns:1fr}.cm-code-auth-clock{align-items:flex-start;flex-direction:column;gap:3px}.cm-code-auth-clock strong{text-align:left}.cm-code-editor-pwa-actions{gap:6px}.cm-code-editor-master-logout{font-size:12px;padding:6px 8px}}

@media(max-width:700px){.cm-code-editor-pwa-actions .cm-code-editor-dashboard-link{display:inline-flex!important;align-items:center;padding:6px 8px;font-size:12px}}

/* v1.0.30.180 — Local Device is the single local/USB/SD picker source; Open uses a file picker. */
/* v1.0.30.181 — Home ribbon Clipboard + Paragraph groups inspired by the desktop Office ribbon. */
.cm-code-ribbon-clipboard-group .cm-code-ribbon-office-grid{align-items:stretch;gap:2px}
.cm-code-ribbon-paste-large{min-width:52px!important}
.cm-code-ribbon-mini-stack{display:grid;grid-template-rows:1fr 1fr;gap:2px;min-width:31px}
.cm-code-ribbon-mini-button{width:31px;height:23px;display:grid;place-items:center;padding:0;border:1px solid transparent;border-radius:3px;background:transparent;color:#24292f;cursor:pointer;font:inherit;line-height:1}
.cm-code-ribbon-mini-button:hover:not(:disabled){background:#fff;border-color:#d0d7de}
.cm-code-ribbon-mini-button:disabled{opacity:.42;cursor:not-allowed}
.cm-code-ribbon-mini-button .dashicons{width:18px;height:18px;font-size:18px;line-height:18px}
.cm-code-ribbon-mini-button>span:not(.dashicons){font-size:16px;line-height:1}
.cm-code-ribbon-paragraph-buttons{display:grid;grid-template-columns:repeat(3,31px);grid-template-rows:repeat(3,23px);gap:2px;align-content:center;min-height:73px}
.cm-code-ribbon-clipboard-group,.cm-code-ribbon-paragraph-group{padding-left:7px!important;padding-right:7px!important}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-ribbon-mini-button{color:#ddd}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-ribbon-mini-button:hover:not(:disabled){background:#2a2d2e;border-color:#454545}
@media(max-width:520px){.cm-code-ribbon-paragraph-buttons{grid-template-columns:repeat(3,29px)}.cm-code-ribbon-mini-button{width:29px}.cm-code-ribbon-paste-large{min-width:50px!important}}



/* v1.0.30.190 — VBA UserForm no-code Copyright Notice control. */
.cm-vba-copyright-block{width:100%;height:100%;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;gap:3px;white-space:normal;overflow:hidden;padding:3px 5px;line-height:1.2}
.cm-vba-copyright-block strong{font:inherit;font-weight:600;display:block;white-space:normal}
.cm-vba-copyright-link{display:block;text-decoration:underline;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-vba-runtime-copyright{width:100%;height:100%;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;gap:3px;padding:3px 5px;overflow:auto;line-height:1.25}
.cm-vba-runtime-copyright strong{font:inherit;font-weight:600}.cm-vba-runtime-copyright a{color:inherit;text-decoration:underline;word-break:break-word}
.cm-vba-copyright-dialog{position:fixed;z-index:100100;inset:0;display:grid;place-items:center;padding:18px;background:rgba(15,23,42,.58)}
.cm-vba-copyright-dialog[hidden]{display:none!important}
.cm-vba-copyright-dialog-card{width:min(560px,100%);max-height:calc(100% - 12px);overflow:auto;box-sizing:border-box;border:1px solid #d0d7de;border-radius:12px;background:#fff;color:#24292f;padding:18px;box-shadow:0 24px 80px rgba(0,0,0,.32)}
.cm-vba-copyright-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.cm-vba-copyright-dialog-head>div{display:flex;flex-direction:column;gap:4px}.cm-vba-copyright-dialog-title{font-size:19px}.cm-vba-copyright-dialog-head span{font-size:12px;color:#57606a;line-height:1.35}
.cm-vba-copyright-dialog-head>button{border:0;background:transparent;color:inherit;font-size:24px;line-height:1;cursor:pointer;padding:4px 7px}
.cm-vba-copyright-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.cm-vba-copyright-form label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:600}.cm-vba-copyright-form input[type=text],.cm-vba-copyright-form textarea{width:100%;box-sizing:border-box;border:1px solid #8c959f;border-radius:5px;background:#fff;color:#24292f;padding:9px 10px;font:inherit;font-size:16px}.cm-vba-copyright-links-row{grid-column:1/-1}.cm-vba-copyright-form small{font-weight:400;color:#57606a}.cm-vba-copyright-date-row{grid-column:1/-1!important;display:flex!important;flex-direction:row!important;align-items:center;gap:8px!important;min-height:32px}.cm-vba-copyright-date-row input{width:18px;height:18px}
.cm-vba-copyright-preview-wrap{margin-top:14px;border:1px solid #d0d7de;border-radius:6px;background:#f6f8fa;padding:10px}.cm-vba-copyright-preview-wrap>span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:#57606a;margin-bottom:5px}.cm-vba-copyright-preview{font-size:12px;line-height:1.4;word-break:break-word}
.cm-vba-copyright-error{min-height:18px;margin-top:8px;color:#cf222e;font-size:12px}.cm-vba-copyright-dialog-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:8px}
.cm-code-workspace-dark .cm-vba-copyright-dialog-card{background:#1f2328;color:#f0f6fc;border-color:#484f58}.cm-code-workspace-dark .cm-vba-copyright-dialog-head span,.cm-code-workspace-dark .cm-vba-copyright-form small,.cm-code-workspace-dark .cm-vba-copyright-preview-wrap>span{color:#8c959f}.cm-code-workspace-dark .cm-vba-copyright-form input[type=text],.cm-code-workspace-dark .cm-vba-copyright-form textarea{background:#0d1117;color:#f0f6fc;border-color:#6e7681}.cm-code-workspace-dark .cm-vba-copyright-preview-wrap{background:#161b22;border-color:#484f58}
@media(max-width:620px){.cm-vba-copyright-dialog{padding:10px}.cm-vba-copyright-dialog-card{border-radius:9px;padding:15px}.cm-vba-copyright-form{grid-template-columns:1fr}.cm-vba-copyright-links-row,.cm-vba-copyright-date-row{grid-column:1}.cm-vba-copyright-dialog-actions{display:grid;grid-template-columns:1fr 1fr}.cm-vba-copyright-dialog-actions .cm-btn{width:100%}}

/* v1.0.30.191 — Local Workspace, Auto Recovery and Find in Files. */
.cm-code-workspace-recent-dialog,
.cm-code-find-files-dialog,
.cm-code-recovery-dialog{
    position:fixed;inset:0;z-index:100120;display:flex;align-items:center;justify-content:center;
    padding:20px;background:rgba(0,0,0,.42);
}
.cm-code-workspace-recent-dialog[hidden],.cm-code-find-files-dialog[hidden],.cm-code-recovery-dialog[hidden]{display:none!important;}
.cm-code-workspace-dialog-card,.cm-code-find-files-card{
    width:min(780px,96vw);max-height:min(760px,88vh);overflow:auto;border:1px solid #c9cdd3;border-radius:10px;
    background:#fff;color:#1f2328;box-shadow:0 18px 60px rgba(0,0,0,.24);padding:18px;
}
.cm-code-find-files-card{width:min(920px,96vw);}
.cm-code-workspace-dark .cm-code-workspace-dialog-card,.cm-code-workspace-dark .cm-code-find-files-card{
    background:#1f1f1f;color:#f3f3f3;border-color:#4a4a4a;
}
.cm-code-workspace-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px;}
.cm-code-workspace-dialog-head h3{margin:0 0 4px;font-size:20px;}
.cm-code-workspace-dialog-head p{margin:0;color:#667085;}
.cm-code-workspace-dark .cm-code-workspace-dialog-head p{color:#b7bcc5;}
.cm-code-workspace-dialog-head>button{border:0;background:transparent;color:inherit;font-size:28px;line-height:1;cursor:pointer;min-width:40px;min-height:40px;}
.cm-code-workspace-dialog-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:14px;}
.cm-code-workspace-recent-list,.cm-code-recovery-list,.cm-code-find-files-results{display:grid;gap:8px;}
.cm-code-workspace-recent-item,.cm-code-recovery-item,.cm-code-find-files-result{
    width:100%;text-align:left;border:1px solid #d8dce2;border-radius:7px;background:#f8f9fb;color:inherit;padding:10px 12px;
}
button.cm-code-workspace-recent-item,button.cm-code-find-files-result{cursor:pointer;}
.cm-code-workspace-dark .cm-code-workspace-recent-item,.cm-code-workspace-dark .cm-code-recovery-item,.cm-code-workspace-dark .cm-code-find-files-result{background:#292929;border-color:#505050;}
.cm-code-workspace-recent-item strong,.cm-code-recovery-item strong,.cm-code-find-files-result strong{display:block;overflow-wrap:anywhere;}
.cm-code-workspace-recent-item small,.cm-code-recovery-item small,.cm-code-find-files-result small{display:block;margin-top:3px;color:#667085;overflow-wrap:anywhere;}
.cm-code-workspace-dark .cm-code-workspace-recent-item small,.cm-code-workspace-dark .cm-code-recovery-item small,.cm-code-workspace-dark .cm-code-find-files-result small{color:#c0c4cc;}
.cm-code-find-files-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end;margin-bottom:8px;}
.cm-code-find-files-form label{display:grid;gap:4px;}
.cm-code-find-files-form input{min-height:40px;width:100%;box-sizing:border-box;}
.cm-code-find-files-scope,.cm-code-find-files-status,.cm-code-recovery-summary{font-size:13px;color:#667085;margin:7px 0 10px;}
.cm-code-workspace-dark .cm-code-find-files-scope,.cm-code-workspace-dark .cm-code-find-files-status,.cm-code-workspace-dark .cm-code-recovery-summary{color:#c0c4cc;}
.cm-code-find-files-result-line{display:inline-block;margin-right:7px;font-weight:700;}
.cm-code-workspace-tree,.cm-code-workspace-tree ul{list-style:none;margin:0;padding:0;}
.cm-code-workspace-tree ul{padding-left:16px;}
.cm-code-workspace-tree button{display:flex;align-items:center;width:100%;gap:6px;border:0;background:transparent;color:inherit;text-align:left;padding:5px 6px;border-radius:4px;cursor:pointer;min-width:0;}
.cm-code-workspace-tree button:hover,.cm-code-workspace-tree button:focus{background:rgba(127,127,127,.14);outline:none;}
.cm-code-workspace-tree button.is-selected{background:rgba(13,110,253,.18);outline:1px solid rgba(13,110,253,.42);outline-offset:-1px;}
.cm-code-workspace-dark .cm-code-workspace-tree button.is-selected{background:rgba(77,166,255,.24);outline-color:rgba(125,190,255,.56);}
.cm-code-workspace-tree .cm-code-workspace-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;}
.cm-code-workspace-tree .cm-code-workspace-folder-icon{width:16px;flex:0 0 16px;text-align:center;}
.cm-code-workspace-tree .cm-code-workspace-file-icon{width:16px;flex:0 0 16px;text-align:center;opacity:.8;}
.cm-code-workspace-empty{padding:12px;color:#667085;font-size:13px;}
.cm-code-workspace-dark .cm-code-workspace-empty{color:#bbb;}
@media(max-width:640px){
    .cm-code-workspace-recent-dialog,.cm-code-find-files-dialog,.cm-code-recovery-dialog{padding:8px;align-items:flex-start;}
    .cm-code-workspace-dialog-card,.cm-code-find-files-card{width:100%;max-height:92vh;border-radius:8px;padding:14px;}
    .cm-code-find-files-form{grid-template-columns:1fr;}
}


/* v1.0.30.195 — pure-PWA iOS explanation + optional Shortcuts bridge. */
.cm-code-ios-share-card{max-width:760px;width:min(760px,calc(100vw - 28px))}
.cm-code-ios-share-body{padding:18px 20px;display:grid;gap:14px;overflow:auto}
.cm-code-ios-share-note{display:flex;gap:8px;flex-wrap:wrap;padding:11px 12px;border:1px solid #d0d7de;border-radius:8px;background:#f6f8fa;font-size:13px;line-height:1.45}
.cm-code-ios-share-note strong{color:#0969da}.cm-code-ios-share-note span{flex:1;min-width:220px}
.cm-code-ios-share-steps{margin:0;padding-left:24px;display:grid;gap:10px}.cm-code-ios-share-steps li{padding-left:4px}.cm-code-ios-share-steps strong{display:block;margin-bottom:2px}.cm-code-ios-share-steps span{font-size:13px;line-height:1.45;color:#57606a}
.cm-code-ios-share-field{display:grid;gap:5px}.cm-code-ios-share-field>span{font-size:12px;font-weight:700}.cm-code-ios-share-field>div{display:flex;gap:8px}.cm-code-ios-share-field input{min-width:0;flex:1;border:1px solid #8c959f;border-radius:6px;padding:9px 10px;background:#fff;color:#24292f;font:12px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.cm-code-ios-share-small{margin:0;font-size:12px;line-height:1.45;color:#57606a}.cm-code-ios-share-status{min-height:18px;font-size:12px;font-weight:600}.cm-code-ios-share-status.is-success{color:#1a7f37}.cm-code-ios-share-status.is-error{color:#cf222e}
.cm-code-ios-share-actions{display:flex;justify-content:flex-end;gap:8px;padding:14px 20px;border-top:1px solid #d0d7de;flex-wrap:wrap}
.cm-code-workspace-dark .cm-code-ios-share-note{background:#161b22;border-color:#30363d}.cm-code-workspace-dark .cm-code-ios-share-note span,.cm-code-workspace-dark .cm-code-ios-share-steps span,.cm-code-workspace-dark .cm-code-ios-share-small{color:#8b949e}.cm-code-workspace-dark .cm-code-ios-share-field input{background:#0d1117;color:#f0f6fc;border-color:#484f58}.cm-code-workspace-dark .cm-code-ios-share-actions{border-color:#30363d}.cm-code-workspace-dark .cm-code-ios-share-status.is-success{color:#7ee787}.cm-code-workspace-dark .cm-code-ios-share-status.is-error{color:#ff7b72}
@media(max-width:700px){.cm-code-ios-share-body{padding:14px}.cm-code-ios-share-actions{padding:12px 14px;justify-content:stretch}.cm-code-ios-share-actions .cm-btn{flex:1}.cm-code-ios-share-field>div{align-items:stretch}.cm-code-ios-share-field .cm-btn{padding-left:10px;padding-right:10px}.cm-code-ios-share-note span{min-width:0;flex-basis:100%}}

/* v1.0.30.195 — iOS Share update badge follows the normal app-update badge behaviour. */
.cm-code-ios-share-update-badge[hidden]{display:none!important}
.cm-code-ios-share-update-badge{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:#d1242f;color:#fff;font-size:10px;line-height:1;font-weight:700;vertical-align:middle}


/* v1.0.30.197 — supplied mountain photograph login + clean centred sign-in column. */
.cm-code-auth-screen.cm-code-auth-mountain{position:relative;isolation:isolate;min-height:100dvh;background-image:linear-gradient(rgba(248,250,252,.34),rgba(248,250,252,.42)),url("login-mountain.jpeg");background-size:cover;background-position:center center;background-repeat:no-repeat;color:#111827;overflow:auto}
.cm-code-auth-screen.cm-code-auth-mountain:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(255,255,255,.08),rgba(255,255,255,.24) 50%,rgba(255,255,255,.08));backdrop-filter:saturate(1.04)}
.cm-code-auth-login-column{width:min(430px,100%);padding:28px 26px 22px!important;border:1px solid rgba(255,255,255,.62)!important;border-radius:20px!important;background:rgba(255,255,255,.76)!important;box-shadow:0 0 0 1px rgba(255,255,255,.18),0 16px 46px rgba(15,23,42,.18),0 0 28px rgba(255,255,255,.16)!important;backdrop-filter:blur(15px) saturate(1.08);-webkit-backdrop-filter:blur(15px) saturate(1.08)}
.cm-code-auth-login-column .cm-code-auth-brand{justify-content:center;text-align:center;flex-direction:column;gap:10px}.cm-code-auth-login-column .cm-code-auth-brand h1{font-size:28px;letter-spacing:-.02em}.cm-code-auth-login-column .cm-code-auth-brand p{color:#4b5563}
.cm-code-auth-login-column .cm-code-auth-clock{margin:16px 0 10px;background:rgba(255,255,255,.5);border-color:rgba(148,163,184,.34)}
.cm-code-auth-intro{margin:0 0 14px;text-align:center;font-size:13px;line-height:1.5;color:#475569}
.cm-code-auth-login-column .cm-code-auth-providers{grid-template-columns:1fr;gap:10px}.cm-code-auth-login-column .cm-code-auth-provider{display:grid;grid-template-columns:42px 1fr;align-items:center;gap:10px;padding:14px;background:rgba(255,255,255,.56);border-color:rgba(148,163,184,.36)}
.cm-code-auth-login-column .cm-code-auth-provider-copy h2{font-size:15px;margin-bottom:2px}.cm-code-auth-login-column .cm-code-auth-provider-copy p{font-size:12px;line-height:1.35}.cm-code-auth-login-column .cm-code-auth-provider-button{grid-column:1/-1;width:100%;text-align:center;box-sizing:border-box}
.cm-code-auth-login-column .cm-code-auth-footer{margin-top:16px;text-align:center}.cm-code-auth-login-column .cm-code-auth-footer a{color:#334155;text-shadow:0 1px 1px rgba(255,255,255,.55)}
html.cm-code-pre-dark .cm-code-auth-screen.cm-code-auth-mountain{background-image:linear-gradient(rgba(15,23,42,.24),rgba(15,23,42,.34)),url("login-mountain.jpeg");color:#f8fafc}
html.cm-code-pre-dark .cm-code-auth-login-column{background:rgba(15,23,42,.72)!important;border-color:rgba(255,255,255,.22)!important;box-shadow:0 18px 54px rgba(0,0,0,.32),0 0 28px rgba(255,255,255,.07)!important}
html.cm-code-pre-dark .cm-code-auth-login-column .cm-code-auth-clock,html.cm-code-pre-dark .cm-code-auth-login-column .cm-code-auth-provider{background:rgba(15,23,42,.48);border-color:rgba(148,163,184,.25)}html.cm-code-pre-dark .cm-code-auth-intro,html.cm-code-pre-dark .cm-code-auth-login-column .cm-code-auth-brand p,html.cm-code-pre-dark .cm-code-auth-login-column .cm-code-auth-provider-copy p{color:#cbd5e1}html.cm-code-pre-dark .cm-code-auth-login-column .cm-code-auth-footer a{color:#e2e8f0}
@media(max-width:700px){.cm-code-auth-screen.cm-code-auth-mountain{align-items:center;padding-top:max(18px,env(safe-area-inset-top))}.cm-code-auth-login-column{padding:22px 18px 18px!important;border-radius:16px!important}.cm-code-auth-login-column .cm-code-auth-brand{flex-direction:column}}

/* v1.0.30.197 — Paragraph alignment buttons for VBA UserForm text controls. */
.cm-code-ribbon-paragraph-buttons .cm-code-ribbon-mini-button.is-active{box-shadow:inset 0 0 0 2px currentColor;background:rgba(37,99,235,.10)}


/* v1.0.30.198 — Home > Document quick Rename. */
.cm-code-ribbon-rename .dashicons{transform:scale(.94)}


/* v1.0.30.201 — master Run + built-in CM Terminal. */
.cm-code-terminal{border-top:1px solid var(--cm-code-border,#d0d7de);background:var(--cm-code-surface,#fff);color:var(--cm-code-text,#1f2328);min-height:150px;max-height:38vh;display:flex;flex-direction:column;position:relative;z-index:12}
.cm-code-terminal[hidden]{display:none!important}
.cm-code-terminal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 10px;border-bottom:1px solid var(--cm-code-border,#d0d7de);font-size:12px}
.cm-code-terminal-head>div:first-child{display:flex;align-items:center;gap:10px;min-width:0}
.cm-code-terminal-runtime{opacity:.68;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cm-code-terminal-actions{display:flex;align-items:center;gap:5px}
.cm-code-terminal-actions button{border:1px solid var(--cm-code-border,#d0d7de);background:transparent;color:inherit;border-radius:5px;min-height:30px;padding:3px 8px;cursor:pointer}
.cm-code-terminal-close{font-size:20px;line-height:1}
.cm-code-terminal-output{margin:0;padding:10px 12px;overflow:auto;flex:1;min-height:110px;white-space:pre-wrap;word-break:break-word;font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;background:rgba(127,127,127,.045);color:inherit}
.cm-code-ribbon-run:not(:disabled) .dashicons{transform:translateY(1px)}
@media(max-width:700px){.cm-code-terminal{max-height:32vh}.cm-code-terminal-output{font-size:11px}}


/* v1.0.30.201 — Getting Started Wizard */
.cm-code-wizard-dialog{position:fixed;z-index:100002;inset:0;display:grid;place-items:center;padding:18px;background:rgba(15,23,42,.58)}
.cm-code-wizard-dialog[hidden]{display:none!important}.cm-code-wizard-card{width:min(900px,100%);max-height:92vh;overflow:hidden;border:1px solid #d0d7de;border-radius:12px;background:#fff;color:#24292f;box-shadow:0 28px 90px rgba(0,0,0,.34);display:flex;flex-direction:column}.cm-code-wizard-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 20px;border-bottom:1px solid #d0d7de}.cm-code-wizard-head h3{margin:0}.cm-code-wizard-head p{margin:3px 0 0;color:#57606a}.cm-code-wizard-close{border:0;background:transparent;font-size:26px;cursor:pointer;color:inherit}.cm-code-wizard-body{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:430px;overflow:hidden}.cm-code-wizard-nav{padding:12px;border-right:1px solid #d0d7de;overflow:auto;background:#f6f8fa}.cm-code-wizard-nav button{display:block;width:100%;border:0;background:transparent;text-align:left;padding:10px 12px;border-radius:7px;cursor:pointer;color:inherit;font-weight:650}.cm-code-wizard-nav button.is-active{background:#e7f1ff;color:#0969da}.cm-code-wizard-content{padding:26px 30px;overflow:auto}.cm-code-wizard-content h4{font-size:22px;margin:0 0 12px}.cm-code-wizard-content p{font-size:15px;line-height:1.65;margin:0}.cm-code-wizard-actions{display:flex;justify-content:flex-end;padding:12px 18px;border-top:1px solid #d0d7de}.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-wizard-card{background:#1e1e1e;color:#ccc;border-color:#3c3c3c}.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-wizard-head,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-wizard-nav,.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-wizard-actions{border-color:#3c3c3c}.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-wizard-nav{background:#252526}.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-wizard-nav button.is-active{background:#37373d;color:#fff}.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-wizard-head p{color:#aaa}@media(max-width:700px){.cm-code-wizard-body{grid-template-columns:145px minmax(0,1fr)}.cm-code-wizard-content{padding:20px 16px}.cm-code-wizard-nav button{padding:9px 8px;font-size:13px}}


/* v1.0.30.202 — prevent iOS Safari/PWA auto-zoom on normal editor controls.
   Monaco remains excluded so its own font-size, pinch zoom and keyboard focus
   behaviour stay exactly as implemented. */
@supports (-webkit-touch-callout: none) {
  @media (hover: none) and (pointer: coarse) {
    .cm-code-editor-workspace input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="button"]):not([type="submit"]):not(.inputarea),
    .cm-code-editor-workspace textarea:not(.inputarea),
    .cm-code-editor-workspace select,
    .cm-code-auth-screen input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]),
    .cm-code-auth-screen textarea,
    .cm-code-auth-screen select {
      font-size:16px !important;
    }
  }
}


/* v1.0.30.212 — unified Dashboard / Editor authentication screen. */
.cm-dashboard-unified-login .cm-code-auth-login-column{width:min(470px,100%)}
.cm-code-auth-provider-wordpress{background:#21759b;color:#fff;font-family:Georgia,serif;font-size:22px}
.cm-dashboard-inline-wp-login{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
.cm-dashboard-inline-wp-login input[type="text"],.cm-dashboard-inline-wp-login input[type="password"]{min-width:0;width:100%;box-sizing:border-box;border:1px solid rgba(100,116,139,.45);border-radius:7px;background:rgba(255,255,255,.86);color:#111827;padding:10px 11px;font:inherit;font-size:16px}
.cm-dashboard-inline-wp-login .cm-login-remember{grid-column:1/-1;display:flex;align-items:center;gap:7px;font-size:12px;color:#475569}
.cm-dashboard-inline-wp-login .cm-code-auth-provider-button{grid-column:1/-1;border:0;cursor:pointer}
.cm-dashboard-unified-login .cm-login-links{text-align:center;margin:11px 0 0;font-size:12px}.cm-dashboard-unified-login .cm-login-links a{color:inherit}
html.cm-code-pre-dark .cm-dashboard-inline-wp-login input[type="text"],html.cm-code-pre-dark .cm-dashboard-inline-wp-login input[type="password"]{background:rgba(15,23,42,.72);border-color:rgba(148,163,184,.35);color:#f8fafc}
html.cm-code-pre-dark .cm-dashboard-inline-wp-login .cm-login-remember{color:#cbd5e1}
@media(max-width:520px){.cm-dashboard-inline-wp-login{grid-template-columns:1fr}}


/* v1.0.30.225 — true full-viewport CM login. No white canvas around the card. */
html:has(.cm-code-auth-screen.cm-code-auth-mountain),
body.cm-wlfd-body:has(.cm-code-auth-screen.cm-code-auth-mountain){
    margin:0!important;
    padding:0!important;
    width:100%!important;
    min-width:100%!important;
    height:100%!important;
    min-height:100%!important;
    background:transparent!important;
    overflow:hidden!important;
}
.cm-code-auth-screen.cm-code-auth-mountain{
    position:fixed!important;
    inset:0!important;
    z-index:2147482000!important;
    width:100vw!important;
    height:100vh!important;
    height:100dvh!important;
    min-height:100vh!important;
    margin:0!important;
    box-sizing:border-box!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left))!important;
    background-size:cover!important;
    background-position:center center!important;
    background-repeat:no-repeat!important;
    background-attachment:fixed!important;
}
.cm-code-auth-screen.cm-code-auth-mountain:before{
    content:none!important;
    display:none!important;
}
.cm-code-auth-screen.cm-code-auth-mountain .cm-code-auth-shell{
    position:relative!important;
    z-index:1!important;
    width:min(430px,calc(100vw - 36px))!important;
    max-width:430px!important;
    margin:auto!important;
    box-sizing:border-box!important;
}
@media (max-height:700px){
    .cm-code-auth-screen.cm-code-auth-mountain{
        align-items:flex-start!important;
    }
}
@media (max-width:520px){
    .cm-code-auth-screen.cm-code-auth-mountain{
        padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))!important;
    }
    .cm-code-auth-screen.cm-code-auth-mountain .cm-code-auth-shell{
        width:100%!important;
        max-width:none!important;
        border-radius:16px!important;
        padding:20px 18px 18px!important;
    }
}



/* v1.0.30.226 — URL-backed mountain background.
   The login template writes a full absolute plugins_url() into style="" with !important,
   so this rule deliberately avoids any background/background-image shorthand. */
.cm-code-auth-screen.cm-code-auth-mountain{
    background-color:#dbe4ee!important;
    background-size:cover!important;
    background-position:center center!important;
    background-repeat:no-repeat!important;
    background-attachment:fixed!important;
}



/* v1.0.30.230 — drag files from the OS directly into CM Code Editor. */
.cm-code-editor-workspace[data-cm-code-editor="1"]{
    position:relative;
}
.cm-code-file-drop-overlay{
    position:absolute;
    inset:0;
    z-index:2147481000;
    display:none;
    align-items:center;
    justify-content:center;
    padding:24px;
    box-sizing:border-box;
    pointer-events:none;
    background:rgba(37,99,235,.10);
    backdrop-filter:blur(2px);
    -webkit-backdrop-filter:blur(2px);
}
.cm-code-editor-workspace.is-file-drag-over>.cm-code-file-drop-overlay{
    display:flex;
}
.cm-code-file-drop-card{
    width:min(480px,calc(100% - 28px));
    min-height:180px;
    box-sizing:border-box;
    border:2px dashed #2563eb;
    border-radius:18px;
    background:rgba(255,255,255,.96);
    box-shadow:0 18px 56px rgba(15,23,42,.20);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:9px;
    padding:28px;
    text-align:center;
    color:#1f2937;
}
.cm-code-file-drop-card .dashicons{
    width:44px;
    height:44px;
    font-size:44px;
    color:#2563eb;
}
.cm-code-file-drop-card strong{
    font-size:21px;
    line-height:1.25;
}
.cm-code-file-drop-card small{
    max-width:330px;
    color:#64748b;
    font-size:13px;
    line-height:1.45;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-file-drop-overlay{
    background:rgba(37,99,235,.14);
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-file-drop-card{
    background:rgba(30,30,30,.97);
    border-color:#60a5fa;
    color:#f3f4f6;
    box-shadow:0 18px 56px rgba(0,0,0,.45);
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-file-drop-card .dashicons{
    color:#60a5fa;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-file-drop-card small{
    color:#b7bcc5;
}
body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view>.cm-code-file-drop-overlay{
    position:fixed;
    inset:0;
}
@media(max-width:600px){
    .cm-code-file-drop-overlay{padding:14px}
    .cm-code-file-drop-card{min-height:150px;padding:22px 18px}
    .cm-code-file-drop-card strong{font-size:18px}
}


/* v1.0.30.233 — Editor Getting Started uses the shared Dashboard wiki source. */
.cm-code-wizard-kicker{
    margin:0 0 6px;
    font-size:12px;
    line-height:1.3;
    font-weight:750;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:#57606a;
}
.cm-code-wizard-content .cm-code-wizard-lead{
    margin:0!important;
    font-size:17px;
    line-height:1.6;
    font-weight:500;
    color:#57606a;
}
.cm-code-wizard-rule{
    border:0;
    border-top:1px solid #d0d7de;
    margin:22px 0;
}
.cm-code-wizard-copy{
    max-width:760px;
}
.cm-code-wizard-content .cm-code-wizard-copy p{
    margin:0 0 16px!important;
    font-size:15px;
    line-height:1.75;
}
.cm-code-wizard-content .cm-code-wizard-copy p:last-child{
    margin-bottom:0!important;
}
.cm-code-wizard-actions{
    align-items:center;
    justify-content:space-between;
    gap:14px;
}
.cm-code-wizard-source{
    color:#57606a;
    font-size:12px;
    line-height:1.4;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-wizard-kicker,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-wizard-lead,
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-wizard-source{
    color:#aaa;
}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-wizard-rule{
    border-color:#3c3c3c;
}
@media(max-width:700px){
    .cm-code-wizard-content .cm-code-wizard-lead{font-size:15px}
    .cm-code-wizard-content .cm-code-wizard-copy p{font-size:14px;line-height:1.7}
    .cm-code-wizard-actions{align-items:flex-start;flex-direction:column}
}


/* v1.0.30.235 — Getting Started > Updates changelog FAQ children */
.cm-code-wizard-content .cm-update-history{margin:22px 0 0;border-top:1px solid #d0d7de;padding-top:18px}
.cm-code-wizard-content .cm-update-history-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}
.cm-code-wizard-content .cm-update-history-heading strong{font-size:17px}
.cm-code-wizard-content .cm-update-history-heading span{font-size:12px;color:#57606a}
.cm-code-wizard-content .cm-update-faq{border:1px solid #d0d7de;border-radius:8px;background:#fff;margin:0 0 9px;overflow:hidden}
.cm-code-wizard-content .cm-update-faq summary{list-style:none;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px 13px;cursor:pointer;background:#f6f8fa}
.cm-code-wizard-content .cm-update-faq summary::-webkit-details-marker{display:none}
.cm-code-wizard-content .cm-update-faq[open] summary{background:#eef6ff;border-bottom:1px solid #d0d7de}
.cm-code-wizard-content .cm-update-faq-version{font-weight:800;color:#0969da;white-space:nowrap}
.cm-code-wizard-content .cm-update-faq-title{font-weight:650;color:#24292f;min-width:0}
.cm-code-wizard-content .cm-update-faq-chevron{font-size:18px;line-height:1;transition:transform .15s ease}
.cm-code-wizard-content .cm-update-faq[open] .cm-update-faq-chevron{transform:rotate(180deg)}
.cm-code-wizard-content .cm-update-faq-panel{padding:13px 15px 15px}
.cm-code-wizard-content .cm-update-faq-meta{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;margin:0 0 8px}
.cm-code-wizard-content .cm-update-faq-meta strong{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#57606a}
.cm-code-wizard-content .cm-update-faq-meta span{display:inline-flex;padding:4px 8px;border-radius:999px;background:#ddf4ff;color:#0550ae;font-weight:700}
.cm-code-wizard-content .cm-update-faq-file{font-size:12px;color:#57606a;margin:0 0 9px;overflow-wrap:anywhere}
.cm-code-wizard-content .cm-update-faq-panel ul{margin:7px 0 0 20px;padding:0}
.cm-code-wizard-content .cm-update-faq-panel li{margin:0 0 7px;line-height:1.5}
.cm-code-wizard-content .cm-update-history-empty{margin:18px 0;padding:13px;border:1px dashed #d0d7de;border-radius:8px;color:#57606a}
@media(max-width:600px){
 .cm-code-wizard-content .cm-update-history-heading{align-items:flex-start;flex-direction:column}
 .cm-code-wizard-content .cm-update-faq summary{grid-template-columns:1fr auto;gap:4px 8px}
 .cm-code-wizard-content .cm-update-faq-version{grid-column:1}
 .cm-code-wizard-content .cm-update-faq-title{grid-column:1}
 .cm-code-wizard-content .cm-update-faq-chevron{grid-column:2;grid-row:1 / span 2}
}


/* v1.0.30.236 — temporary offline PWA access + queued draft status. */
.cm-code-connectivity-slot{position:relative;display:inline-flex;align-items:center;min-width:104px}.cm-code-offline-indicator{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:92px;border:1px solid rgba(16,185,129,.55);background:rgba(16,185,129,.12);color:inherit;border-radius:8px;padding:7px 10px;font:inherit;cursor:pointer;box-sizing:border-box}.cm-code-offline-indicator.is-offline{border-color:rgba(245,158,11,.65);background:rgba(245,158,11,.14)}
.cm-code-offline-indicator .dashicons{width:18px;height:18px;font-size:18px}.cm-code-offline-notification{position:absolute;right:-5px;top:-7px;display:inline-flex;align-items:center;justify-content:center}.cm-code-offline-notification[hidden]{display:none!important}.cm-code-offline-notification>.dashicons{font-size:15px;width:15px;height:15px}.cm-code-offline-notification b{position:absolute;right:-7px;top:-7px;display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 3px;border-radius:999px;background:#d63638;color:#fff;font-size:10px;font-weight:800;line-height:1}
.cm-code-offline-login-status{margin:10px 0 0;padding:10px 12px;border-radius:10px;background:rgba(15,23,42,.78);color:#fff;font-size:13px}.cm-code-offline-login-status.is-online{background:rgba(6,95,70,.82)}.cm-code-offline-login-status.is-expired{background:rgba(153,27,27,.84)}


/* v1.0.30.239 — safe offline sync conflict review. */
.cm-offline-conflict-modal{position:fixed;inset:0;z-index:100000;background:rgba(15,23,42,.76);display:flex;align-items:center;justify-content:center;padding:18px}
.cm-offline-conflict-card{width:min(1100px,96vw);max-height:92vh;overflow:auto;background:#fff;color:#111827;border-radius:14px;box-shadow:0 24px 70px rgba(0,0,0,.35);padding:18px}
.cm-code-workspace-dark~.cm-offline-conflict-modal .cm-offline-conflict-card,.cm-offline-conflict-modal .cm-code-workspace-dark{background:#111827;color:#f8fafc}
.cm-offline-conflict-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.cm-offline-conflict-head strong{display:block;font-size:20px}.cm-offline-conflict-head small{display:block;margin-top:4px;opacity:.72}.cm-offline-conflict-close{border:0;background:transparent;color:inherit;font-size:28px;line-height:1;cursor:pointer}
.cm-offline-conflict-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0}.cm-offline-conflict-grid label{font-weight:700}.cm-offline-conflict-grid textarea{display:block;width:100%;height:300px;margin-top:7px;resize:vertical;font:13px/1.45 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;padding:10px;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc;color:#111827;white-space:pre}
.cm-offline-conflict-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}@media(max-width:760px){.cm-offline-conflict-grid{grid-template-columns:1fr}.cm-offline-conflict-grid textarea{height:220px}.cm-offline-conflict-actions>*{width:100%}}


/* v1.0.30.240 — shared Dashboard/Editor offline Draft Center and save/sync state. */
.cm-dashboard-connection-slot{margin-left:auto;position:relative;display:inline-flex;align-items:center;justify-content:flex-end;min-width:112px;min-height:32px;flex:0 0 112px}.cm-dashboard-offline-indicator{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:94px;border:1px solid #10b981;background:#ecfdf5;color:#065f46;border-radius:999px;padding:6px 10px;font:inherit;font-weight:700;cursor:pointer;box-sizing:border-box}.cm-dashboard-offline-indicator.is-online{border-color:#10b981;background:#ecfdf5;color:#065f46}.cm-dashboard-offline-indicator.is-offline{border-color:#d97706;background:#fff7ed;color:#92400e}.cm-dashboard-offline-notification{position:absolute;right:-2px;top:-7px;display:inline-flex;align-items:center;justify-content:center}.cm-dashboard-offline-notification[hidden]{display:none!important}.cm-dashboard-offline-notification>.dashicons{font-size:15px;width:15px;height:15px}.cm-dashboard-offline-notification b{position:absolute;right:-7px;top:-7px;display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 3px;border-radius:999px;background:#d63638;color:#fff;font-size:10px;font-weight:800;line-height:1}.cm-wlfd-top{display:flex;align-items:center;gap:10px}
.cm-offline-draft-center{position:fixed;inset:0;z-index:100001;background:rgba(15,23,42,.76);display:flex;align-items:center;justify-content:center;padding:18px}.cm-offline-draft-center-card{width:min(820px,96vw);max-height:90vh;overflow:auto;background:#fff;color:#111827;border-radius:14px;box-shadow:0 24px 70px rgba(0,0,0,.35);padding:18px}.cm-offline-draft-center-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.cm-offline-draft-center-head strong{display:block;font-size:20px}.cm-offline-draft-center-head small{display:block;margin-top:4px;opacity:.7}.cm-offline-draft-center-close{border:0;background:transparent;color:inherit;font-size:28px;line-height:1;cursor:pointer}.cm-offline-draft-list{display:grid;gap:10px;margin:16px 0}.cm-offline-draft-row{border:1px solid #d7dce3;border-radius:10px;padding:12px}.cm-offline-draft-row strong,.cm-offline-draft-row small{display:block}.cm-offline-draft-row small{margin-top:3px;opacity:.68}.cm-offline-draft-meta{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:9px;font-size:12px}.cm-offline-draft-conflict{font-weight:800;color:#b91c1c}.cm-offline-draft-center-status{min-height:20px;font-size:13px}.cm-offline-draft-center-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:12px}@media(max-width:620px){.cm-dashboard-welcome{flex:1}.cm-dashboard-offline-indicator{padding:6px}.cm-dashboard-offline-label{display:none}.cm-offline-draft-center-actions{display:grid}.cm-offline-draft-center-actions>*{width:100%;text-align:center}}

/* v1.0.30.241 — Office-style Home > Font colours + Date/Time alignment fix. */
.cm-code-ribbon-font-group{padding-left:7px!important;padding-right:7px!important}
.cm-code-ribbon-font-buttons{display:grid;grid-template-columns:repeat(2,minmax(48px,1fr));gap:4px;align-items:stretch;min-height:73px}
.cm-code-ribbon-colour-control{position:relative;min-width:50px;display:grid;grid-template-rows:28px 5px 17px;align-items:center;justify-items:center;border:1px solid transparent;border-radius:4px;padding:2px 4px;box-sizing:border-box;color:#24292f;cursor:pointer;user-select:none}
.cm-code-ribbon-colour-control:hover{background:#fff;border-color:#d0d7de}
.cm-code-ribbon-colour-control input[type=color]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;border:0;padding:0}
.cm-code-ribbon-font-letter,.cm-code-ribbon-highlight-letter{font:700 21px/1.1 Calibri,Arial,sans-serif;pointer-events:none}
.cm-code-ribbon-highlight-letter{background:linear-gradient(transparent 58%,#fff200 58%);padding:0 3px}
.cm-code-ribbon-colour-mark{width:24px;height:4px;border:1px solid rgba(0,0,0,.18);box-sizing:border-box;pointer-events:none}
.cm-code-ribbon-text-colour-mark{background:#000}
.cm-code-ribbon-highlight-colour-mark{background:#ffff00}
.cm-code-ribbon-colour-control b{font:600 10px/1 Arial,sans-serif;white-space:nowrap;pointer-events:none}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-ribbon-colour-control{color:#ddd}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-ribbon-colour-control:hover{background:#2a2d2e;border-color:#454545}
.cm-code-editor-workspace.cm-code-workspace-dark .cm-code-ribbon-highlight-letter{background:linear-gradient(transparent 58%,#7a7100 58%)}
.cm-vba-datetime-display,.cm-vba-runtime-datetime{justify-content:flex-start}
@media(max-width:520px){.cm-code-ribbon-font-buttons{grid-template-columns:repeat(2,48px);gap:2px}.cm-code-ribbon-colour-control{min-width:48px;padding-left:2px;padding-right:2px}}


/* v1.0.30.249 — installed PWA / ChromeOS window branding */
.cm-code-editor-pwa-brand{align-items:center!important;gap:9px!important}
.cm-code-pwa-mark{
    display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;
    width:28px;height:28px;border-radius:7px;background:#0969da;color:#fff;
    font:800 11px/1 Arial,sans-serif;letter-spacing:.04em;box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)
}
.cm-code-pwa-brand-copy{display:flex;align-items:baseline;gap:9px;min-width:0;overflow:hidden}
.cm-code-pwa-brand-copy strong{font-weight:750;letter-spacing:.01em}
.cm-code-window-overlay .cm-code-editor-pwa-bar{
    position:sticky;top:0;min-height:env(titlebar-area-height,42px);height:env(titlebar-area-height,42px);
    padding-top:0;padding-bottom:0;padding-left:max(12px,env(titlebar-area-x,0px));padding-right:12px;
    -webkit-app-region:drag;app-region:drag
}
.cm-code-window-overlay .cm-code-editor-pwa-actions,
.cm-code-window-overlay .cm-code-editor-pwa-actions *,
.cm-code-window-overlay .cm-code-editor-ribbon button{
    -webkit-app-region:no-drag;app-region:no-drag
}
.cm-code-window-overlay .cm-code-editor-ribbon{top:env(titlebar-area-height,42px)}
.cm-code-window-overlay .cm-code-pwa-mark{box-shadow:inset 0 0 0 1px rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.18)}
@media(max-width:820px){.cm-code-pwa-mark{display:none}.cm-code-pwa-brand-copy{display:block}.cm-code-pwa-brand-copy>span{display:none}}

/* v1.0.30.259 — source-specific Create location action. */
.cm-code-office-location-action[hidden]{display:none!important}
.cm-code-office-location-action{white-space:nowrap}


/* v1.0.30.260 — Office-style New Document / first Save workflow. */
.cm-code-editor-create-dialog.is-cm260-new-document .cm-code-office-sidebar,
.cm-code-editor-create-dialog.is-cm260-new-document .cm-code-office-toolbar,
.cm-code-editor-create-dialog.is-cm260-new-document .cm-code-office-list,
.cm-code-editor-create-dialog.is-cm260-new-document .cm-code-office-empty,
.cm-code-editor-create-dialog.is-cm260-new-document .cm-code-office-status,
.cm-code-editor-create-dialog.is-cm260-new-document .cm-code-office-location-action,
.cm-code-editor-create-dialog.is-cm260-new-document .cm-code-office-create-destination,
.cm-code-editor-create-dialog.is-cm260-new-document .cm-code-office-create-fields label:nth-child(4){display:none!important}
.cm-code-editor-create-dialog.is-cm260-new-document .cm-code-office-body{grid-template-columns:minmax(0,1fr)}
.cm-code-editor-create-dialog.is-cm260-new-document .cm-code-office-browser{min-height:0;padding:8px 0 2px}
.cm-code-editor-create-dialog.is-cm260-new-document .cm-code-office-create-fields{grid-template-columns:minmax(150px,.8fr) minmax(220px,1.2fr) minmax(220px,1.2fr);max-width:920px;width:100%;margin:0 auto;padding-top:12px}
.cm-code-editor-create-dialog.is-cm260-new-document .cm-code-office-create-footer{display:flex;justify-content:flex-end;align-items:center;min-height:58px}
.cm-code-editor-create-dialog.is-cm260-save-new .cm-code-office-create-fields label:nth-child(1),
.cm-code-editor-create-dialog.is-cm260-save-new .cm-code-office-create-fields label:nth-child(2){display:none!important}
.cm-code-editor-create-dialog.is-cm260-save-new .cm-code-office-create-fields{grid-template-columns:minmax(220px,1fr) minmax(220px,1fr)}
@media(max-width:820px){
    .cm-code-editor-create-dialog.is-cm260-new-document .cm-code-office-create-fields{grid-template-columns:1fr 1fr}
    .cm-code-editor-create-dialog.is-cm260-new-document .cm-code-office-create-fields label:nth-child(3){grid-column:1/-1}
}
@media(max-width:560px){
    .cm-code-editor-create-dialog.is-cm260-new-document .cm-code-office-create-fields,
    .cm-code-editor-create-dialog.is-cm260-save-new .cm-code-office-create-fields{grid-template-columns:1fr}
    .cm-code-editor-create-dialog.is-cm260-new-document .cm-code-office-create-fields label:nth-child(3){grid-column:auto}
}


/* v1.0.30.263 — real-device Live Preview uses the full available PWA editor area
   on phones and portrait/narrow tablets, while wide devices keep split view. */
@media(max-width:820px){
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-editor-open .cm-ghfm-code-workbench.is-preview-open{
        height:100%!important;
        min-height:0!important;
    }
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-editor-open .cm-ghfm-code-workbench.is-preview-open .cm-ghfm-code-preview-pane,
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-editor-open .cm-ghfm-code-workbench.is-preview-open .cm-ghfm-code-preview-frame-wrap,
    body.cm-code-editor-pwa-body .cm-code-editor-workspace.is-pwa-view.is-editor-open .cm-ghfm-code-workbench.is-preview-open .cm-ghfm-code-preview-frame{
        min-height:0!important;
        height:100%;
    }
}


/* v1.0.30.264 — all-device feature parity.
   Keep Create/Open/Save/storage/workspace/dialog functions available on laptop,
   desktop, tablet and phone. Mobile changes layout and touch target size only;
   it does not remove actions or replace the desktop workflow. */
@media(max-width:820px), (pointer:coarse){
    .cm-code-editor-workspace .cm-btn,
    .cm-code-editor-workspace a.cm-btn,
    .cm-code-editor-workspace .cm-code-office-source,
    .cm-code-editor-workspace .cm-code-office-row,
    .cm-code-editor-workspace .cm-code-office-crumb,
    .cm-code-editor-workspace .cm-code-office-up,
    .cm-code-editor-workspace .cm-code-office-close,
    .cm-code-editor-workspace .cm-code-ribbon-button{
        touch-action:manipulation;
        -webkit-tap-highlight-color:transparent;
    }
    .cm-code-office-up,.cm-code-office-close,
    .cm-code-editor-save-dialog-actions .cm-btn,
    .cm-code-editor-open-dialog-actions .cm-btn,
    .cm-code-storage-target-card .cm-btn,
    .cm-code-drive-actions .cm-btn,
    .cm-code-workspace-dialog-actions .cm-btn{
        min-height:44px;
    }
    .cm-code-office-breadcrumb,.cm-code-office-search,
    .cm-code-office-footer input,.cm-code-office-footer select,
    .cm-code-office-create-fields input,.cm-code-office-create-fields select{
        min-height:44px;
    }
    .cm-code-office-row{min-height:48px}
    .cm-code-workspace-tree button{min-height:42px;touch-action:manipulation}
    .cm-code-editor-dashboard-link{display:inline-flex!important;align-items:center;min-height:36px}
    .cm-code-editor-pwa-actions{min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
    .cm-code-editor-pwa-actions::-webkit-scrollbar{display:none}
}

/* Phone/tablet Office-style file browser: storage sources become a horizontal
   source strip and the actual browser receives the full width beneath it. */
@media(max-width:600px){
    .cm-code-office-dialog{
        width:100vw;height:100dvh;padding:0!important;place-items:stretch!important;
        padding-top:env(safe-area-inset-top,0px)!important;
        padding-right:env(safe-area-inset-right,0px)!important;
        padding-bottom:env(safe-area-inset-bottom,0px)!important;
        padding-left:env(safe-area-inset-left,0px)!important;
    }
    .cm-code-office-card{width:100%;height:100%;max-height:none!important;border-radius:0!important;border:0!important}
    .cm-code-office-head{flex:0 0 auto;padding:10px 12px}
    .cm-code-office-head h3{font-size:18px}
    .cm-code-office-head p{font-size:11px;line-height:1.35}
    .cm-code-office-body{grid-template-columns:1fr!important;grid-template-rows:auto minmax(0,1fr);min-height:0}
    .cm-code-office-sidebar{
        display:flex!important;align-items:stretch;gap:4px;overflow-x:auto;overflow-y:hidden;
        padding:5px 6px;border-right:0!important;border-bottom:1px solid #d0d7de;
        -webkit-overflow-scrolling:touch;scrollbar-width:none;
    }
    .cm-code-office-sidebar::-webkit-scrollbar{display:none}
    .cm-code-office-local-group{display:contents}
    .cm-code-office-local-group>summary{display:none!important}
    .cm-code-office-local-items{display:flex!important;gap:4px;padding:0!important}
    .cm-code-office-source,.cm-code-office-local-items .cm-code-office-source{
        flex:0 0 auto;width:auto!important;min-width:max-content;min-height:44px;
        padding:7px 11px!important;border-radius:6px;box-shadow:none!important;white-space:nowrap;
    }
    .cm-code-office-source.is-selected{box-shadow:inset 0 -3px 0 #0969da!important}
    .cm-code-office-source .dashicons{display:inline-block!important}
    .cm-code-office-browser{min-height:0;overflow:hidden}
    .cm-code-office-browser-title{padding:9px 10px 5px!important}
    .cm-code-office-toolbar{grid-template-columns:auto minmax(0,1fr)!important;padding:0 8px 8px!important;gap:6px}
    .cm-code-office-search{grid-column:1/-1!important}
    .cm-code-office-list{min-height:0;overscroll-behavior:contain}
    .cm-code-office-status{padding:4px 10px}
    .cm-code-office-create-fields{padding-left:8px!important;padding-right:8px!important}
    .cm-code-office-footer,.cm-code-office-create-footer{
        position:sticky;bottom:0;z-index:5;padding:8px!important;
        padding-bottom:max(8px,env(safe-area-inset-bottom,0px))!important;
        background:inherit;
    }
    .cm-code-office-footer{grid-template-columns:1fr 1fr!important}
    .cm-code-office-footer .cm-code-office-filename{grid-column:1/-1!important}
    .cm-code-office-footer .cm-code-office-filetype{grid-column:1/-1!important}
    .cm-code-office-footer .cm-btn,.cm-code-office-create-footer .cm-btn{min-height:44px;min-width:0}
    .cm-code-office-create-footer{grid-template-columns:minmax(0,1fr) auto auto!important}
    .cm-code-office-create-footer .cm-code-office-create-destination{grid-column:1/-1!important;grid-row:auto!important;white-space:normal}
    .cm-code-office-create-footer .cm-code-office-location-action{grid-column:1!important}

    /* Getting Started remains fully usable rather than squeezing a desktop rail. */
    .cm-code-wizard-dialog{padding:0;place-items:stretch}
    .cm-code-wizard-card{width:100%;height:100dvh;max-height:none;border-radius:0}
    .cm-code-wizard-body{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);min-height:0}
    .cm-code-wizard-nav{display:flex;gap:4px;overflow-x:auto;overflow-y:hidden;border-right:0;border-bottom:1px solid #d0d7de;white-space:nowrap}
    .cm-code-wizard-nav button{width:auto;min-height:44px;flex:0 0 auto}
    .cm-code-wizard-content{padding:16px 14px}
    .cm-code-wizard-actions{padding-bottom:max(12px,env(safe-area-inset-bottom,0px))}
}

/* Compact dialogs use the available phone/tablet viewport and keep their action
   rows reachable above browser/home-indicator chrome. */
@media(max-width:640px){
    .cm-code-editor-save-dialog,
    .cm-code-editor-open-dialog,
    .cm-code-storage-github-target-dialog,
    .cm-code-workspace-recent-dialog,
    .cm-code-find-files-dialog,
    .cm-code-recovery-dialog{
        padding:8px!important;
        padding-top:max(8px,env(safe-area-inset-top,0px))!important;
        padding-bottom:max(8px,env(safe-area-inset-bottom,0px))!important;
        align-items:stretch!important;
    }
    .cm-code-editor-save-dialog-card,.cm-code-editor-open-dialog-card,
    .cm-code-storage-target-card,.cm-code-workspace-dialog-card,.cm-code-find-files-card{
        width:100%!important;max-width:none!important;max-height:100%!important;overflow:auto;border-radius:9px;
    }
    .cm-code-editor-save-dialog-actions,.cm-code-editor-open-dialog-actions,.cm-code-workspace-dialog-actions{
        display:grid!important;grid-template-columns:1fr!important;
    }
    .cm-code-editor-save-dialog-actions .cm-btn,.cm-code-editor-open-dialog-actions .cm-btn,.cm-code-workspace-dialog-actions .cm-btn{width:100%}
}

/* Touch selection is the phone/tablet equivalent of Ctrl/Cmd/Shift selection. */
.cm-code-editor-workspace .cm-ghfm-code-file.is-touch-selected,
.cm-code-editor-workspace .cm-code-workspace-tree button.is-touch-selected{
    box-shadow:inset 0 0 0 2px #0969da;
}
