.mobile-editor-more,.mobile-editor-step{display:none}
@media(max-width:800px){
 .mobile-editor-clean .mobile-editor-more{display:block;position:relative}
 .mobile-editor-clean .sheet-actions{gap:7px;align-items:center}
 .mobile-editor-more>summary{display:flex;align-items:center;justify-content:center;list-style:none;min-height:42px;padding:0 11px;border:1px solid var(--ui-border);border-radius:9px;background:var(--ui-raised);font-family:inherit;font-size:12px;line-height:1.2;font-weight:600;color:var(--ui-text);cursor:pointer;touch-action:manipulation;user-select:none}
 .mobile-editor-more>summary::-webkit-details-marker{display:none}
 .mobile-editor-more>summary:focus-visible,.mobile-swipe-hint button:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}
 .mobile-editor-menu{position:absolute;right:0;top:calc(100% + 10px);width:min(310px,calc(100vw - 36px));max-height:min(520px,65dvh);overflow:auto;box-sizing:border-box;overscroll-behavior:contain;padding:18px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:12px;z-index:30}
 .mobile-editor-more[open]{z-index:30}
 .mobile-editor-more .editor-mode{margin:0;padding:0 0 14px}
 .mobile-editor-more .editor-mode p{display:none}
 .mobile-editor-more .editor-mode>a{margin-top:12px;min-height:38px;display:flex;align-items:center;line-height:1.5}
 .mobile-editor-more .studio-editor-tools{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:12px}
 .mobile-editor-more .controls-title{display:contents}
 .mobile-editor-more .controls-title>div{display:none}
 .mobile-editor-more .editor-tour-launch,.mobile-editor-more #reset{font-size:12px;min-height:42px}
 .mobile-editor-clean .sheet-head>strong{font-size:16px;max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .mobile-editor-clean .mobile-editor-step{display:block;margin-right:auto;margin-left:9px;color:var(--ui-secondary);font-size:11px;white-space:nowrap}
 .mobile-editor-clean .sheet-resize{font-size:0!important;width:40px!important;min-width:40px;padding:0!important}
 .mobile-editor-clean .sheet-resize::before{content:'';display:block;width:9px;height:9px;border-right:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform:rotate(45deg);margin:0 auto 4px}
 .mobile-editor-clean .sheet-resize[aria-expanded=false]::before{transform:rotate(225deg);margin:4px auto 0}
 .controls-col.mobile-editor-clean>.studio-settings-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:3px;padding:8px 12px;overflow:hidden}
 .controls-col.mobile-editor-clean>.studio-settings-nav [data-studio-section=appearance]{display:none!important}
 .controls-col.mobile-editor-clean>.studio-settings-nav button{padding:8px 3px;font-size:12px;text-align:center;justify-content:center;min-width:0}
 .mobile-editor-clean .controls-scroll{padding-top:16px!important;padding-bottom:100px!important}
 .mobile-editor-clean .simple-flow{display:none!important}
 .mobile-editor-clean .export-dock{padding:12px 16px calc(12px + env(safe-area-inset-bottom))!important;gap:0!important}
 .mobile-editor-clean .export-dock>div:first-child{display:none}
 .mobile-editor-clean .export-dock .action-pair{width:100%;gap:10px}
 .mobile-editor-clean .export-dock .action-pair>button{min-height:44px}
 html[data-editor-mode=full] .mobile-editor-clean .mobile-appearance-inline{display:block!important;padding-top:22px!important;margin-top:22px!important;border-top:1px solid var(--ui-border)!important}
 .mobile-editor-clean .mobile-appearance-inline>.card-title{display:none!important}
 .mobile-editor-clean .mobile-appearance-inline>.settings-section-body{display:block!important}
 .mobile-editor-clean .studio-current-section>.settings-section-body{min-width:0}
 .mobile-swipe-hint{display:flex;align-items:center;gap:10px;margin:0 0 18px;font-size:11px;line-height:1.5;color:var(--ui-secondary)}
 .mobile-swipe-hint span{flex:1}
 .mobile-swipe-hint button{display:grid;place-items:center;min-width:36px;min-height:36px;padding:8px;border:0;background:transparent;color:inherit;border-radius:7px}
 .mobile-swipe-hint svg{width:15px;height:15px}
}
@media(max-width:800px){
 .mobile-editor-more .mobile-editor-menu button{position:static!important;inset:auto!important;height:auto!important;min-height:44px;transform:none!important;font-size:12px;line-height:1.4;white-space:normal}
 .mobile-editor-more .mobile-editor-menu .editor-mode-switch button{width:100%!important;min-width:0;display:flex;align-items:center;justify-content:center}
 .mobile-editor-more .mobile-editor-menu .studio-editor-tools button{width:auto!important;min-width:0;padding:8px 10px!important;display:flex;align-items:center;justify-content:center}
}
@media(max-width:800px){
 .mobile-editor-photo-links{margin-top:14px;border-top:1px solid var(--ui-border);padding-top:12px}
 .mobile-editor-photo-links>summary{font-size:12px;min-height:42px;cursor:pointer;color:var(--ui-text);line-height:1.5}
 .mobile-editor-photo-links .photo-community{margin:0;padding:10px 0 0;border:0}
 .mobile-editor-photo-links .photo-community h4{display:none}
 .mobile-editor-photo-links .photo-community p{font-size:12px;line-height:1.5}
}

/* Desktop uses the same compact navigation with an independent settings column. */
@media(min-width:801px){
 .desktop-editor-clean .mobile-editor-more{display:block;position:relative}
 .desktop-editor-clean .sheet-actions{gap:7px;align-items:center}
 .mobile-editor-more>summary{display:flex;align-items:center;justify-content:center;list-style:none;min-height:42px;padding:0 11px;border:1px solid var(--ui-border);border-radius:9px;background:var(--ui-raised);font-family:inherit;font-size:12px;line-height:1.2;font-weight:600;color:var(--ui-text);cursor:pointer;touch-action:manipulation;user-select:none}
 .mobile-editor-more>summary::-webkit-details-marker{display:none}
 .mobile-editor-more>summary:focus-visible,.mobile-swipe-hint button:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}
 .mobile-editor-menu{position:absolute;right:0;top:calc(100% + 10px);width:min(310px,calc(100vw - 36px));max-height:min(520px,65dvh);overflow:auto;box-sizing:border-box;overscroll-behavior:contain;padding:18px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:12px;z-index:30}
 .mobile-editor-more[open]{z-index:30}
 .mobile-editor-more .editor-mode{margin:0;padding:0 0 14px}
 .mobile-editor-more .editor-mode p{display:none}
 .mobile-editor-more .editor-mode>a{margin-top:12px;min-height:38px;display:flex;align-items:center;line-height:1.5}
 .mobile-editor-more .studio-editor-tools{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:12px}
 .mobile-editor-more .controls-title{display:contents}
 .mobile-editor-more .controls-title>div{display:none}
 .mobile-editor-more .editor-tour-launch,.mobile-editor-more #reset{font-size:12px;min-height:42px}
 .desktop-editor-clean .sheet-head>strong{font-size:16px;max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .desktop-editor-clean .mobile-editor-step{display:block;margin-right:auto;margin-left:9px;color:var(--ui-secondary);font-size:11px;white-space:nowrap}
 .desktop-editor-clean .sheet-resize{font-size:0!important;width:40px!important;min-width:40px;padding:0!important}
 .desktop-editor-clean .sheet-resize::before{content:'';display:block;width:9px;height:9px;border-right:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform:rotate(45deg);margin:0 auto 4px}
 .desktop-editor-clean .sheet-resize[aria-expanded=false]::before{transform:rotate(225deg);margin:4px auto 0}
 .controls-col.desktop-editor-clean>.studio-settings-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:3px;padding:8px 12px;overflow:hidden}
 .controls-col.desktop-editor-clean>.studio-settings-nav [data-studio-section=appearance]{display:none!important}
 .controls-col.desktop-editor-clean>.studio-settings-nav button{padding:8px 3px;font-size:12px;text-align:center;justify-content:center;min-width:0}
 .desktop-editor-clean .controls-scroll{padding-top:16px!important;padding-bottom:100px!important}
 .desktop-editor-clean .simple-flow{display:none!important}
 .desktop-editor-clean .export-dock{padding:12px 16px calc(12px + env(safe-area-inset-bottom))!important;gap:0!important}
 .desktop-editor-clean .export-dock>div:first-child{display:none}
 .desktop-editor-clean .export-dock .action-pair{width:100%;gap:10px}
 .desktop-editor-clean .export-dock .action-pair>button{min-height:44px}
 html[data-editor-mode=full] .desktop-editor-clean .mobile-appearance-inline{display:block!important;padding-top:22px!important;margin-top:22px!important;border-top:1px solid var(--ui-border)!important}
 .desktop-editor-clean .mobile-appearance-inline>.card-title{display:none!important}
 .desktop-editor-clean .mobile-appearance-inline>.settings-section-body{display:block!important}
 .desktop-editor-clean .studio-current-section>.settings-section-body{min-width:0}
 .mobile-swipe-hint{display:flex;align-items:center;gap:10px;margin:0 0 18px;font-size:11px;line-height:1.5;color:var(--ui-secondary)}
 .mobile-swipe-hint span{flex:1}
 .mobile-swipe-hint button{display:grid;place-items:center;min-width:36px;min-height:36px;padding:8px;border:0;background:transparent;color:inherit;border-radius:7px}
 .mobile-swipe-hint svg{width:15px;height:15px}
}
@media(min-width:801px){
 .mobile-editor-more .mobile-editor-menu button{position:static!important;inset:auto!important;height:auto!important;min-height:44px;transform:none!important;font-size:12px;line-height:1.4;white-space:normal}
 .mobile-editor-more .mobile-editor-menu .editor-mode-switch button{width:100%!important;min-width:0;display:flex;align-items:center;justify-content:center}
 .mobile-editor-more .mobile-editor-menu .studio-editor-tools button{width:auto!important;min-width:0;padding:8px 10px!important;display:flex;align-items:center;justify-content:center}
}
@media(min-width:801px){
 .mobile-editor-photo-links{margin-top:14px;border-top:1px solid var(--ui-border);padding-top:12px}
 .mobile-editor-photo-links>summary{font-size:12px;min-height:42px;cursor:pointer;color:var(--ui-text);line-height:1.5}
 .mobile-editor-photo-links .photo-community{margin:0;padding:10px 0 0;border:0}
 .mobile-editor-photo-links .photo-community h4{display:none}
 .mobile-editor-photo-links .photo-community p{font-size:12px;line-height:1.5}
}

@media(min-width:801px){
 body:not(.studio-home) .controls-col.desktop-editor-clean{width:clamp(360px,34vw,480px)!important}
 body:not(.studio-home) .preview-col{left:clamp(360px,34vw,480px)!important}
 .desktop-editor-clean .sheet-head{height:64px!important;min-height:64px!important;display:flex;align-items:center;padding:0 22px}
 .desktop-editor-clean .sheet-actions{display:flex!important;margin-left:auto}
 .desktop-editor-clean #sheetResizeToggle,.desktop-editor-clean #sheetToggle{display:none!important}
 .controls-col.desktop-editor-clean>.studio-settings-nav{position:absolute;top:64px;left:0;right:0;height:57px;box-sizing:border-box;margin:0;border-bottom:1px solid var(--ui-border);background:var(--ui-surface);z-index:5}
 .desktop-editor-clean>.studio-settings-nav svg{display:none}
 .controls-col.desktop-editor-clean .controls-scroll{inset:121px 0 80px!important;height:auto!important;width:100%;padding:20px 22px 28px!important}
 .desktop-editor-clean .export-dock{height:80px!important;min-height:80px;box-sizing:border-box;display:flex;align-items:center;justify-content:center}
 .desktop-editor-clean .export-dock .action-pair{margin:0}
 .desktop-editor-clean .mobile-editor-step{margin-right:0}
 .desktop-editor-clean .mobile-editor-more>summary{min-width:60px}
 .desktop-editor-clean .mobile-editor-menu{top:calc(100% + 8px)}
 .editor-tour-active .controls-col .controls-scroll{inset:64px 0 122px!important;height:auto!important}
}
@media(min-width:801px){
 .desktop-editor-clean .sheet-head{z-index:10}
 .editor-tour-active .preview-col{left:clamp(360px,35vw,500px)!important}
}

/* Компактные ссылки на обои и обратную связь в меню редактора. */
.photo-community-actions{display:grid;gap:8px;margin-top:12px}
.photo-community-actions a{display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 12px;box-sizing:border-box;border:1px solid var(--ui-border,#566174);border-radius:12px;color:var(--ui-text,#eef1f7);text-decoration:none;font-size:13px;line-height:1.4}
.photo-community-actions a:visited{color:var(--ui-text,#eef1f7)}
.photo-community-actions a:hover{background:var(--ui-surface-raised,rgba(150,170,220,.1))}
.photo-community-actions a svg{display:block;width:20px!important;height:20px!important;min-width:20px;max-width:20px;flex:0 0 20px}
.photo-community-actions a span{min-width:0;overflow-wrap:anywhere}
.mobile-editor-menu .photo-community strong{font-size:14px;line-height:1.4}
.mobile-editor-menu .photo-community p{margin:8px 0;font-size:12px;line-height:1.5}
