.repo-explorer{background:var(--bg);width:100%;min-width:0;height:100%;min-height:0;color:var(--text);flex-direction:column;display:flex;position:relative;overflow:hidden;container-type:inline-size}.repo-explorer button,.repo-explorer input,.repo-explorer select{font:inherit}.repo-explorer button{cursor:pointer}.repo-explorer button:disabled{cursor:default}.repo-explorer button:focus-visible,.repo-explorer summary:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.repo-explorer .error-notice{flex-shrink:0;margin:8px 14px;font-size:12px}.repo-explorer .button{min-height:34px;font-size:12px}.repo-explorer-toolbar{border-bottom:1px solid var(--line);flex-wrap:wrap;flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;min-height:65px;padding:14px 20px;display:flex}.repo-storage-switch{flex-wrap:wrap;gap:6px;min-width:0;display:flex}.repo-storage-switch>button{border:1px solid var(--line);background:var(--bg);color:var(--muted);text-align:left;border-radius:9px;align-items:center;gap:10px;padding:9px 14px;display:flex}.repo-storage-switch>button:hover{background:var(--soft)}.repo-storage-switch>button[aria-pressed=true]{border-color:var(--accent);background:var(--tint);color:var(--accent)}.repo-storage-switch strong,.repo-storage-switch small{line-height:1.5;display:block}.repo-storage-switch strong{font-size:13px;font-weight:600}.repo-storage-switch small{color:var(--muted);font-size:11px}.repo-explorer .button[data-density=compact]{min-height:var(--control-button-height);font-size:var(--control-button-font)}.repo-explorer[data-density=compact] .repo-explorer-toolbar{gap:6px;min-height:0;padding:6px 8px}.repo-explorer[data-density=compact] .repo-storage-switch{flex:270px;gap:4px;width:auto}.repo-explorer[data-density=compact] .repo-storage-switch>button{min-width:0;padding:var(--control-button-padding-block) var(--control-button-padding-inline);flex:auto;gap:6px}.repo-explorer[data-density=compact] .repo-storage-switch strong{white-space:nowrap;line-height:var(--control-button-line)}.repo-explorer[data-density=compact] .repo-storage-switch small{display:none}.repo-repository{min-width:0;color:var(--muted);align-items:center;gap:9px;display:flex}.repo-repository select{color:var(--text);background:0 0;border:0;min-width:0;max-width:200px;padding:7px 22px 7px 2px;font-weight:500}.repo-top-actions{align-items:center;gap:5px;display:flex}.repo-upload{cursor:pointer;position:relative;overflow:hidden}.repo-upload input{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.repo-upload.disabled{opacity:.6}.repo-upload:focus-within{outline:2px solid var(--accent);outline-offset:2px}.repo-upload-drop{z-index:6;border:2px dashed var(--accent);background:var(--bg);color:var(--text);pointer-events:none;overflow-wrap:anywhere;border-radius:12px;justify-content:center;align-items:center;gap:12px;padding:20px;display:flex;position:absolute;bottom:20px;left:20px;right:20px;box-shadow:0 8px 24px #0002}.repo-upload-drop svg{color:var(--accent);flex-shrink:0}.repo-upload-hint{color:var(--muted);margin:0 0 12px;font-size:12px}.repo-explorer-body{grid-template-columns:var(--repo-tree-width) 6px minmax(0, 1fr);flex:1;min-width:0;min-height:0;display:grid;overflow:hidden}.repo-tree-pane{background:var(--shell);flex-direction:column;min-width:0;min-height:0;display:flex}.repo-tree{flex:1;min-height:0;padding:18px 0;overflow:auto}.repo-tree-heading{letter-spacing:.09em;text-transform:uppercase;color:var(--muted);justify-content:space-between;align-items:center;padding:0 16px 14px;font-size:10px;font-weight:600;display:flex}.repo-tree-root{width:100%;color:var(--text);text-align:left;background:0 0;border:0;align-items:center;gap:8px;padding:10px 14px;display:flex;font-size:12px!important}.repo-tree ul{margin:0;padding:0;list-style:none}.repo-tree-row{align-items:center;min-width:0;height:34px;padding-right:9px;display:flex}.repo-tree-row.current,.repo-tree-root.current{background:var(--tint)}.repo-tree-row:hover{background:var(--soft)}.repo-tree-toggle{width:20px;height:30px;color:var(--muted);background:0 0;border:0;flex-shrink:0;place-items:center;padding:0;display:grid}.repo-tree-spacer{flex-shrink:0;width:20px}.repo-tree-entry{text-align:left;min-width:0;height:34px;color:var(--text);background:0 0;border:0;flex:1;align-items:center;gap:8px;padding:0;display:flex;font-size:12px!important}.repo-tree-entry span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.repo-tree-error{padding:10px}.repo-tree-footer{border-top:1px solid var(--line);color:var(--muted);gap:2px;padding:16px;font-size:11px;display:grid}.repo-tree-footer small{font-size:10px;line-height:1.5}.repo-explorer-body>.panel-resize-handle{background:var(--shell);border-right:1px solid var(--line);z-index:3;width:6px;height:100%;position:relative;inset:auto;transform:none}.repo-main{flex-direction:column;min-width:0;min-height:0;display:flex;overflow:hidden}.repo-file-tabs{border-bottom:1px solid var(--line);background:var(--shell);scrollbar-width:thin;flex-shrink:0;min-width:0;max-width:100%;min-height:43px;display:flex;overflow:auto}.repo-files-tab,.repo-file-tab{border:0;border-right:1px solid var(--line);color:var(--muted);background:0 0;flex-shrink:0;align-items:center;gap:5px;max-width:260px;padding:0 12px;display:flex;position:relative;font-size:11px!important}.repo-file-tabs .selected{background:var(--bg);color:var(--text);box-shadow:inset 0 2px var(--accent)}.repo-files-tab{gap:7px}.repo-file-tab{padding:0 4px 0 12px}.repo-file-tab>button{color:inherit;background:0 0;border:0;align-items:center;gap:7px;min-width:0;height:42px;padding:0 3px;font-size:11px;display:flex}.repo-file-tab>button>span:not(.repo-dirty-dot){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.repo-tab-close{flex-shrink:0;justify-content:center;width:26px}.repo-tab-close:hover{color:var(--text)}.repo-dirty-dot{background:var(--accent);border-radius:50%;flex-shrink:0;width:6px;height:6px}.repo-directory{flex-direction:column;flex:1;min-width:0;min-height:0;padding:0 22px 24px;display:flex;overflow:auto}.repo-location{flex-shrink:0;align-items:center;gap:8px;min-width:0;padding:16px 0 12px;display:flex}.repo-location>.button{min-width:30px;padding:5px}.repo-location nav{white-space:nowrap;scrollbar-width:thin;align-items:center;min-width:0;font-size:12px;display:flex;overflow:auto}.repo-location nav>span{color:var(--muted);align-items:center;display:flex}.repo-location nav button{color:var(--muted);text-overflow:ellipsis;background:0 0;border:0;max-width:250px;padding:6px 7px;font-size:12px;overflow:hidden}.repo-location nav>span:last-child button{color:var(--text);font-weight:500}.repo-filter-bar{flex-wrap:wrap;flex-shrink:0;align-items:center;gap:7px;padding-bottom:18px;display:flex}.repo-search{border:1px solid var(--line);background:var(--bg);min-width:170px;height:36px;color:var(--muted);border-radius:7px;flex:220px;align-items:center;gap:8px;padding:0 11px;display:flex}.repo-explorer .repo-filter-bar .repo-search input{width:100%;min-width:0;height:100%;color:var(--text);background:0 0;border:0;outline:none;padding:0;font-size:12px}.repo-search:focus-within{border-color:var(--accent)}.repo-search button{color:var(--muted);background:0 0;border:0;place-items:center;width:22px;height:30px;padding:0;display:grid}.repo-filter-bar>select{border:1px solid var(--line);background:var(--bg);min-height:36px;color:var(--muted);border-radius:7px;min-width:0;max-width:170px;padding:0 8px;font-size:11px}.repo-layout-switch{border:1px solid var(--line);border-radius:7px;display:flex;overflow:hidden}.repo-layout-switch .button{min-height:34px;color:var(--muted);background:0 0;border:0;border-radius:0;padding:7px}.repo-layout-switch .selected{background:var(--soft);color:var(--text)}.repo-list-meta{min-height:35px;color:var(--muted);flex-shrink:0;align-items:center;gap:10px;margin-bottom:5px;font-size:11px;display:flex}.repo-list-meta label{align-items:center;gap:10px;margin-right:auto;display:flex}.repo-list-meta input,.repo-file-select{accent-color:var(--accent);flex-shrink:0;width:14px;height:14px}.repo-list-meta .button{min-height:28px;font-size:11px}.repo-file-browser{min-width:0;padding-bottom:30px}.repo-list-columns{color:var(--muted);border-bottom:1px solid var(--line);grid-template-columns:minmax(0,1fr) 90px 65px;padding:7px 38px 9px 58px;font-size:10px;display:grid}.repo-list-columns span:last-child{text-align:right}.repo-file-item{-webkit-user-select:none;user-select:none;border-bottom:1px solid var(--line);align-items:center;gap:10px;min-width:0;padding:0 8px 0 0;display:flex;position:relative}.repo-file-item:hover{background:var(--shell)}.repo-file-item.checked{background:var(--tint)}.repo-file-item.drop-target,.repo-tree-row.drop-target,.repo-tree-root.drop-target{background:var(--tint);outline:2px solid var(--accent);outline-offset:-2px}.repo-directory.drop-target{box-shadow:inset 0 0 0 2px var(--accent)}.repo-tree-row{-webkit-user-select:none;user-select:none}.repo-move-status{color:var(--muted);flex-shrink:0;margin:8px 20px;font-size:12px}.repo-file-select{margin:0 0 0 2px}.repo-file-open{min-width:0;color:var(--text);text-align:left;background:0 0;border:0;flex:1;grid-template-columns:22px minmax(0,1fr) 90px 65px;align-items:center;gap:10px;min-height:62px;padding:12px 0;display:grid}.repo-file-name{gap:2px;min-width:0;display:grid}.repo-file-name strong{white-space:nowrap;text-overflow:ellipsis;font-size:12px;font-weight:500;overflow:hidden}.repo-file-name small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}.repo-file-date,.repo-file-size{color:var(--muted);font-size:10px}.repo-file-size{text-align:right}.repo-file-thumbnail{place-items:center;min-width:0;display:grid}.repo-file-menu{flex-shrink:0;position:relative}.repo-file-menu>summary{cursor:pointer;width:28px;height:34px;color:var(--muted);border-radius:5px;place-items:center;list-style:none;display:grid}.repo-file-menu>summary::-webkit-details-marker{display:none}.repo-file-menu>summary:hover{background:var(--soft)}.repo-file-menu>div{z-index:15;border:1px solid var(--line);background:var(--bg);min-width:175px;box-shadow:var(--shadow);border-radius:8px;padding:5px;position:absolute;top:32px;right:0}.repo-file-menu button,.repo-file-menu a{color:var(--text);text-align:left;background:0 0;border:0;border-radius:5px;align-items:center;gap:8px;width:100%;padding:9px 10px;text-decoration:none;display:flex;font-size:11px!important}.repo-file-menu button:hover,.repo-file-menu a:hover{background:var(--soft)}.repo-file-menu button.danger{color:var(--danger)}.repo-file-browser.grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px;display:grid}.grid .repo-list-columns{display:none}.grid .repo-file-item{border:1px solid var(--line);border-radius:9px;min-width:0;padding:0;transition:border-color .15s;display:block}.grid .repo-file-item:hover{border-color:var(--accent)}.grid .repo-file-select{z-index:1;margin:0;position:absolute;top:11px;left:10px}.grid .repo-file-open{flex-direction:column;align-items:stretch;gap:10px;width:100%;min-width:0;padding:0 0 14px;display:flex}.grid .repo-file-thumbnail{background:var(--shell);border-radius:8px 8px 0 0;height:115px;overflow:hidden}.grid .repo-file-thumbnail img{object-fit:contain;width:100%;height:100%;padding:12px}.grid .repo-file-name{padding:0 12px}.grid .repo-file-name strong{font-size:11px}.grid .repo-file-date{display:none}.grid .repo-file-size{text-align:left;margin-top:-6px;padding:0 12px}.grid .repo-file-menu{position:absolute;bottom:8px;right:5px}.grid .repo-file-menu>div{top:25px}.repo-search-note{color:var(--muted);padding:12px 0;font-size:12px}.repo-search .repo-regex-toggle{border-radius:4px;flex:0 0 28px;font-family:monospace;font-size:15px}.repo-search .repo-regex-toggle[aria-pressed=true]{background:var(--soft);color:var(--accent)}.repo-search-pagination{color:var(--muted);justify-content:center;align-items:center;gap:12px;padding:12px 0;font-size:12px;display:flex}.repo-material-dock{border-top:1px solid var(--line);background:var(--bg);flex-shrink:0;padding:9px 16px}.repo-material-dock .material-actions-toolbar .button{min-height:32px;font-size:11px}.repo-preview{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex;overflow:hidden}.repo-preview-header{border-bottom:1px solid var(--line);flex-shrink:0;align-items:center;gap:12px;min-height:78px;padding:17px 22px;display:flex}.repo-preview-identity{flex:1;gap:3px;min-width:0;display:grid}.repo-preview-identity strong{text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600;overflow:hidden}.repo-preview-identity span{color:var(--muted);font-size:10px}.repo-preview-header>.button{flex-shrink:0}.repo-editor-toolbar{border-bottom:1px solid var(--line);flex-shrink:0;justify-content:space-between;align-items:center;gap:8px;padding:9px 22px;display:flex}.repo-view-switch{background:var(--shell);border-radius:7px;gap:3px;padding:3px;display:flex}.repo-view-switch>.button{box-shadow:none;min-height:29px;color:var(--muted);background:0 0;border:0;padding:4px 10px;font-size:11px}.repo-view-switch>.selected{background:var(--bg);color:var(--text);box-shadow:0 1px 3px #0000000c}.repo-preview-body{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex;position:relative;overflow:auto}.repo-document{box-sizing:border-box;width:100%;max-width:1100px;color:var(--text);margin:0 auto;padding:26px clamp(20px,5%,72px) 50px;font-size:14px;line-height:1.8}.repo-document>:first-child{margin-top:0}.repo-document h1{letter-spacing:-.03em;font-family:Manrope,sans-serif;font-size:28px;line-height:1.35}.repo-document h2{margin-top:1.7em;font-family:Manrope,sans-serif;font-size:21px}.repo-document pre{font-size:12px;overflow:auto}.repo-document .mermaid-view iframe{min-height:180px}.repo-code-editor{flex:1;min-width:0;height:100%;min-height:300px;overflow:hidden}.repo-plain-editor{resize:none;background:var(--bg);width:100%;min-height:320px;color:var(--text);outline:none;flex:1;padding:20px;display:block;border:0!important;border-radius:0!important;font:13px/1.7 Consolas,monospace!important}.repo-text-preview{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--text);margin:0;padding:24px;font:12px/1.8 Consolas,monospace}.repo-editor-status{border-top:1px solid var(--line);color:var(--muted);background:var(--bg);flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;min-height:42px;padding:10px 18px;font-size:10px;display:flex}.repo-editor-status>div{flex-shrink:0;align-items:center;gap:4px;display:flex}.repo-editor-status .button{min-height:30px;padding:4px 9px;font-size:11px}.repo-conflict{border:1px solid var(--danger);background:var(--danger-bg);border-radius:8px;flex-shrink:0;margin:12px 18px;padding:14px;font-size:12px}.repo-conflict p{margin:5px 0 12px}.repo-conflict .button{margin-bottom:4px;margin-right:5px}.repo-image-tools{z-index:2;pointer-events:none;justify-content:center;align-items:center;gap:4px;padding:15px;display:flex;position:sticky;top:0}.repo-image-tools .button{pointer-events:auto;background:var(--bg)}.repo-image-tools .button[aria-pressed=true]{background:var(--tint);border-color:var(--accent);color:var(--accent)}.repo-image-stage{background-color:var(--shell);background-image:linear-gradient(45deg, var(--line) 25%, transparent 25%), linear-gradient(-45deg, var(--line) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--line) 75%), linear-gradient(-45deg, transparent 75%, var(--line) 75%);background-position:0 0,0 10px,10px -10px,-10px 0;background-size:20px 20px;flex:1;place-items:center;min-height:250px;padding:25px;display:grid;overflow:auto}.repo-image-stage img{object-fit:contain;width:auto;max-width:100%;height:auto;max-height:55vh}.repo-image-stage.actual{display:block}.repo-image-stage.actual img{max-width:none;max-height:none}.repo-media-stage,.repo-binary-stage{text-align:center;background:var(--shell);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:24px;min-height:300px;padding:32px;display:flex}.repo-media-stage audio{width:min(100%,480px)}.repo-media-stage video{background:#111;width:100%;max-height:65vh}.repo-binary-stage h3{overflow-wrap:anywhere;margin:0;font-size:16px}.repo-binary-stage p{max-width:320px;color:var(--muted);margin:0;font-size:12px}.repo-dialog-path{overflow-wrap:anywhere}.repo-recursive{align-items:flex-start;gap:10px;margin:15px 0;font-size:13px;display:flex}.repo-recursive input{margin-top:5px}@container (width<=900px){.repo-file-date,.repo-list-columns span:nth-child(2){display:none}.repo-file-open{grid-template-columns:22px minmax(0,1fr) 55px}.repo-list-columns{grid-template-columns:minmax(0,1fr) 55px}.repo-directory{padding:0 16px 20px}.repo-filter-bar>select{max-width:145px}.repo-preview-header{padding:14px 16px}.repo-editor-toolbar{padding:8px 14px}.repo-editor-toolbar>.button{font-size:10px}}@container (width<=699px){.repo-explorer-body{grid-template-columns:minmax(0,1fr)}.repo-tree-pane,.repo-explorer-body>.panel-resize-handle{display:none;position:relative;inset:auto;transform:none}.repo-explorer-toolbar{flex-wrap:wrap;gap:8px;min-height:58px;padding:10px 12px}.repo-top-actions{margin-left:auto}.repo-storage-switch{width:100%}.repo-storage-switch>button{flex:1;gap:7px;padding:8px 10px}.repo-repository select{max-width:140px;font-size:12px}.repo-repository{gap:4px}.repo-directory{padding:0 14px 20px}.repo-preview-header{gap:8px}.repo-preview-identity strong{font-size:13px}.repo-filter-bar{gap:6px}.repo-search{flex-basis:100%}.repo-filter-bar>select{flex:1;max-width:none;padding:0 6px}.repo-filter-bar>select[aria-label=Сортировка\ файлов]{flex-basis:110px}.repo-location{padding-top:10px}.repo-file-browser.grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}.repo-editor-status{flex-wrap:wrap;gap:5px;padding:8px 12px}.repo-editor-status>div{margin-left:auto}.repo-document{padding:22px 18px 40px}.repo-document h1{font-size:25px}.repo-preview-header>.repo-file-icon{display:none}.repo-material-dock{padding:8px 10px}.repo-editor-toolbar{flex-wrap:wrap;gap:2px}.repo-preview-header a span{display:none}.repo-preview-header a{padding:8px}.repo-file-tabs{min-height:45px}.repo-file-tab>button{height:44px}.repo-top-actions .button{padding:7px 9px}.repo-top-actions .icon-button{padding:7px}.repo-preview-body .repo-plain-editor{font-size:14px!important}.repo-file-name strong{font-size:12px}.repo-file-open{min-height:65px}.repo-list-meta{flex-wrap:wrap}.repo-file-menu>summary{width:36px;height:44px}.repo-file-menu>div{top:42px}.grid .repo-file-menu>div{top:40px}}@container (width<=599px){.repo-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:7px;display:grid}.repo-filter-bar>.repo-search{grid-column:1/-1;min-width:0;min-height:44px}.repo-filter-bar>select{width:100%;max-width:none;min-height:44px;padding:0 10px;font-size:13px}.repo-filter-bar>.repo-layout-switch{place-self:stretch end}.repo-filter-bar .repo-layout-switch .button{width:44px;min-width:44px;min-height:44px}}@media (pointer:coarse),(width<=800px){.repo-explorer .button,.repo-explorer select,.repo-explorer .repo-search,.repo-explorer .repo-file-menu button,.repo-explorer .repo-file-menu a{min-height:44px}.repo-tab-close{min-width:36px}.repo-view-switch>.button{padding:6px 9px}.repo-explorer .repo-file-select,.repo-list-meta input{width:18px;height:18px}.repo-material-dock .material-actions-toolbar .button{min-height:44px}.repo-file-menu>summary{min-width:44px}.repo-explorer .repo-file-menu a,.repo-explorer .repo-file-menu button{font-size:12px!important}.repo-location nav button{min-height:44px}.repo-filter-bar{padding-bottom:10px}.repo-explorer .repo-search button{width:32px;height:42px}}.repo-quote-action{background:var(--tint);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:8px 18px;font-size:11px;display:flex}.repo-explorer .repo-code-editor .cm-panel input{background:var(--bg);width:auto;max-width:100%;color:var(--text);border-radius:4px;padding:3px 6px;font:12px/1.5 Consolas,monospace}.repo-explorer .repo-code-editor .cm-panel{font-size:12px}.repo-tree-toggle svg{transition:transform var(--motion-panel,.26s) var(--motion-ease,ease)}.repo-tree-toggle[aria-expanded=true] svg{transform:rotate(90deg)}@media (width<=800px),(pointer:coarse){:root[data-virtual-keyboard=open] .repo-explorer{overscroll-behavior-y:contain;scroll-padding-block:12px 72px;overflow-y:auto}:root[data-virtual-keyboard=open] .repo-explorer-toolbar{min-height:44px;padding-block:6px}:root[data-virtual-keyboard=open] .repo-explorer-body{flex:1 0 auto;overflow:visible}:root[data-virtual-keyboard=open] :is(.repo-main,.repo-preview,.repo-directory){overflow:visible}:root[data-virtual-keyboard=open] .repo-preview-header{min-height:44px;padding-block:6px}:root[data-virtual-keyboard=open] .repo-editor-toolbar{padding-block:4px}:root[data-virtual-keyboard=open] .repo-preview-body{height:clamp(120px, calc(var(--app-viewport-height,100dvh) * .45), 220px);flex:none}:root[data-virtual-keyboard=open] :is(.repo-code-editor,.repo-plain-editor){height:100%;min-height:0}:root[data-virtual-keyboard=open] .repo-editor-status{z-index:2;background:var(--bg);padding-block:6px;position:sticky;bottom:0}}
