.cc-viewer-quick-tools { display:none; }
@media(max-width:760px){
 :root { --cc-mobile-header-height:92px !important; }
 #ccMobileHeader.cc-mobile-header {grid-template-columns:36px minmax(0,1fr) repeat(4,36px)!important;grid-template-rows:40px 26px!important;gap:4px!important;padding:6px 7px!important;}
 #ccMobileHeader .cc-mobile-square-button {width:36px!important;height:36px!important;min-width:0!important;min-height:0!important;}
 #ccMobileHeader .cc-mobile-heading {min-width:0;}
 #ccMobileTitle {font-size:12px!important;}
 #ccMobileSubtitle {display:none!important;}
 #ccMobileBreadcrumbs {grid-column:1/-1;display:flex;align-items:center;gap:5px;overflow:auto;min-width:0;white-space:nowrap;scrollbar-width:none;font-size:11px;}
 #ccMobileBreadcrumbs button {flex:none;border:0;background:transparent;color:var(--cc-text-secondary);font:inherit;padding:3px;}
 #ccMobileBreadcrumbs button[aria-current] {font-weight:700;color:var(--cc-text);}
 #fileContent .gallery-toolbar {display:none!important;}
 #modalBackdrop .cc-mobile-media-viewer .cc-media-viewer-header {position:relative!important;inset:auto!important;display:flex!important;justify-content:flex-end;min-height:44px;padding:5px!important;background:var(--cc-toolbar)!important;}
 #modalBackdrop .cc-mobile-media-viewer {grid-template-rows:auto minmax(0,1fr) auto!important;}
 #modalBackdrop .cc-mobile-media-viewer .cc-media-viewer-actions,.cc-viewer-quick-tools {display:flex;align-items:center;gap:6px;}
 .cc-viewer-quick-tools button,#modalBackdrop .cc-mobile-media-viewer #viewerMore,#modalBackdrop .cc-mobile-media-viewer #viewerClose {width:36px!important;height:36px!important;min-width:36px!important;border-radius:8px!important;background:var(--cc-surface-1)!important;color:var(--cc-text)!important;border:1px solid var(--cc-border)!important;}
 .cc-viewer-quick-tools svg {width:20px;height:20px;}
 body > #infoDrawer.info-drawer.media-info.open {position:fixed!important;inset:0!important;display:flex!important;flex-direction:column!important;width:100vw!important;max-width:none!important;height:var(--cc-mobile-viewport-height,100dvh)!important;max-height:none!important;z-index:200100!important;transform:none!important;opacity:1!important;pointer-events:auto!important;border-radius:0!important;background:var(--cc-surface-1)!important;}
 body > #infoDrawer .info-body {overflow:auto;min-height:0;flex:1;}
 .editor-modal {width:100vw!important;height:var(--cc-mobile-viewport-height,100dvh)!important;max-width:none!important;max-height:none!important;margin:0!important;border-radius:0!important;}
 .editor-modal .editor-workspace,.editor-modal .editor-main,.editor-modal .editor-body {min-width:0!important;min-height:0!important;}
 .editor-modal .editor-toolbar {display:flex!important;flex-wrap:wrap!important;gap:4px!important;padding:5px!important;}
 .editor-modal .editor-statusbar {overflow:auto!important;white-space:nowrap;font-size:10px!important;}
 .editor-modal .editor-actions {display:flex!important;flex-wrap:wrap;gap:6px!important;padding:6px!important;}
 .editor-modal .CodeMirror {font-size:16px!important;}
 .editor-modal .editor-header {min-width:0;gap:5px;}
}

@media(max-width:760px){
 #fileContent .file-card { -webkit-touch-callout:none;user-select:none; }
 #fileContent .file-card img { -webkit-user-drag:none; }
 #fileContent .cc-touch-dragging {opacity:.55;}
}
@media(max-width:760px){
 body > #infoDrawer.media-info .info-header {display:flex!important;align-items:center;justify-content:space-between;flex:none!important;min-height:48px;padding:8px;}
 body > #infoDrawer.media-info #infoClose {display:inline-flex!important;align-items:center;justify-content:center;width:36px;height:36px;}
 .editor-modal .editor-modal-header {padding:6px!important;min-height:44px!important;}
 .editor-modal .editor-title-line h3 {max-width:65vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px!important;}
 .editor-modal .editor-toolbar {max-height:120px;overflow:auto!important;}
}

@media (max-width:760px) {
    #ccMobileHeader .cc-mobile-square-button {border-width:1px!important;box-shadow:none!important;}
    #ccMobileHeader .cc-mobile-square-button svg {width:var(--cc-icon-size,18px)!important;height:var(--cc-icon-size,18px)!important;stroke-width:var(--cc-icon-stroke,1.5)!important;}
    #ccMobileHeader .cc-mobile-heading {margin-left:5px;border:1px solid var(--cc-border);border-radius:8px;padding:6px 8px;overflow:hidden;}
    #ccMobileTitle {font-size:14px!important;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
    #modalBackdrop .cc-mobile-media-viewer .cc-media-viewer-header {background:#000!important;}
    .cc-viewer-quick-tools button {background:#111!important;color:#deded9!important;border-color:#383838!important;}
    .editor-modal .editor-toolbar {position:relative;flex-wrap:nowrap!important;overflow:visible!important;max-height:none;align-items:center;min-height:46px;}
    .editor-modal .editor-toolbar > .editor-tool-group {display:contents!important;}
    .editor-modal .editor-toolbar > .editor-tool-group:empty {display:none!important;}
    .editor-modal .editor-tool-button {min-width:36px!important;min-height:36px!important;height:36px!important;padding:6px 9px!important;}
    .editor-modal .editor-toolbar > .editor-tool-group > .editor-tool-button .editor-tool-label {display:none!important;}
    .editor-modal #editorMore {margin-left:auto;font-size:22px;}
    .editor-modal .cc-editor-tools-menu {position:absolute;right:6px;top:100%;z-index:20;display:flex;flex-direction:column;gap:5px;padding:8px;width:min(270px,calc(100vw - 20px));max-height:50dvh;overflow:auto;background:var(--cc-surface-1);color:var(--cc-text);border:1px solid var(--cc-border);border-radius:10px;box-shadow:0 8px 24px #0003;}
    .editor-modal .cc-editor-tools-menu[hidden] {display:none!important;}
    .editor-modal .cc-editor-tools-menu .editor-tool-button {justify-content:flex-start;width:100%;}
    .editor-modal .cc-editor-tools-menu .editor-tool-label {display:inline!important;}
    .editor-modal .cc-editor-tools-menu .editor-line-group {display:flex;min-width:0;}
    .editor-modal .cc-editor-tools-menu .editor-line-group input {width:120px;min-width:0;}
}
/* Compact route strip and editor actions without overflowing the options panel. */
@media(max-width:760px){
 :root {--cc-mobile-header-height:84px!important;}
 #ccMobileHeader.cc-mobile-header {grid-template-rows:40px 20px!important;row-gap:2px!important;padding-block:4px!important;}
 #ccMobileBreadcrumbs {padding:0!important;line-height:18px;}
 #ccMobileBreadcrumbs button {padding-block:0!important;}
 .editor-modal .cc-editor-tools-menu {box-sizing:border-box;overflow-x:hidden;}
 .editor-modal .cc-editor-tools-menu > .editor-tool-button {flex-shrink:0;min-width:0!important;white-space:normal;text-align:left;}
 .editor-modal .cc-editor-tools-menu .editor-line-group {flex:none;width:100%;min-width:0;}
 .editor-modal .cc-editor-tools-menu .editor-line-group input {flex:1;width:0!important;min-width:0!important;box-sizing:border-box;}
 .editor-modal .cc-editor-tools-menu .editor-line-group .editor-tool-button {flex:0 0 52px;width:52px!important;min-width:0!important;}
 .editor-modal .editor-tool-icon svg {width:18px;height:18px;display:block;}
}

@media(max-width:760px){
 #appView.app-view:not(.hidden).cc-mobile-search-open {grid-template-rows:var(--cc-mobile-header-height) auto minmax(0,1fr)!important;}
 #appView.cc-mobile-search-open > #contentLayout.content-layout {grid-row:3!important;}
 #appView > #ccMobileSearchPanel.cc-mobile-search-panel {position:relative!important;inset:auto!important;grid-column:1!important;grid-row:2!important;width:calc(100% - 16px);margin:6px 8px 0;box-sizing:border-box;grid-template-columns:20px minmax(0,1fr)38px 38px;box-shadow:none;}
 #ccMobileSearchRecursive[aria-pressed="true"] {color:var(--cc-accent);background:var(--cc-accent-soft,#eaf1ff);border:1px solid var(--cc-accent);}
 #ccMobileSearchInput::-webkit-search-cancel-button {display:none;}
 #ccMobileFab.cc-mobile-fab {right:calc(22px + env(safe-area-inset-right,0px))!important;bottom:calc(22px + env(safe-area-inset-bottom,0px))!important;background:var(--cc-surface-0,#fff)!important;color:var(--cc-accent)!important;border:1px solid var(--cc-accent)!important;border-radius:16px!important;box-shadow:0 4px 14px #0002!important;}
 #fileContent.file-content:has(.view-list) .file-list-sort-header {display:grid!important;grid-template-columns:43px minmax(0,1fr) 82px!important;gap:6px!important;padding-inline:7px!important;}
 #fileContent .file-list-sort-header .sort-name,#fileContent .file-list-sort-header .sort-size {display:flex!important;}
 #fileContent .file-list-sort-header .file-list-sort-spacer {display:block!important;}
 #fileContent.file-content:has(.view-list) .view-list {padding-top:10px!important;}
}
@media(max-width:430px){
 #fileContent.file-content:has(.view-list) .file-list-sort-header {grid-template-columns:40px minmax(0,1fr) 72px!important;}
}

@media(max-width:760px){
 :root {--cc-mobile-header-height:60px!important;}
 #ccMobileHeader.cc-mobile-header {grid-template-rows:40px!important;margin:4px 5px!important;padding:5px 6px!important;width:calc(100% - 10px)!important;height:52px!important;border:1px solid var(--cc-border)!important;border-radius:14px!important;box-sizing:border-box;}
 #ccMobileBreadcrumbs {display:none!important;}
 #ccMobileSearchRecursive.cc-mobile-search-close,#ccMobileSearchClose.cc-mobile-search-close {display:flex!important;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid var(--cc-border)!important;border-radius:8px!important;background:var(--cc-surface-0);}
 #ccMobileSearchRecursive[aria-pressed="true"] {border-color:var(--cc-accent)!important;background:var(--cc-accent-soft,#eaf1ff)!important;color:var(--cc-accent)!important;}
}
