/* Phone-only refinements; desktop layout and authored scenes retain their own rules. */
@media(max-width:650px){
 #dock>#settings-task063{font-size:0;min-width:42px;width:42px;padding:0}
 #dock>#settings-task063:before{content:'';display:block;width:26px;height:26px;margin:auto;background:url('/computer/icons/themes004-art.png') center/contain no-repeat}
 #dock>#gougar-recall104{font-size:0;min-width:42px;width:42px;padding:0}
 #dock>#gougar-recall104>span{display:none}
 #dock>#gougar-recall104:before{content:'';display:block;width:29px;height:31px;margin:auto;background:url('/computer/gougar104/patch105.webp') center/contain no-repeat}
 #tasks{min-width:0;overscroll-behavior-x:contain}#tasks button{max-width:160px}
 .win-body input:not([type=range]):not([type=color]):not([type=checkbox]),.win-body textarea,.win-body select{font-size:16px}
 .win-body input,.win-body textarea{scroll-margin-block:12px}
 .win[data-program=notes] .win-body{overflow:hidden}
 .note-editor119{height:100%;min-height:0;gap:7px;padding:10px}
 .note-editor119>input{min-height:40px;flex:0 0 auto}
 .note-editor119 .note{height:0;min-height:80px;flex:1 1 auto;resize:none;padding:12px;font-size:18px;line-height:27px}
 .note-editor119 .note-tools119{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .note-editor119 .note-tools119 button{min-height:42px;padding:6px 4px;font-size:16px}
 .note-editor119 .note-more119{font-size:16px;margin:0}
 .note-editor119:has(.note-more119[open]){height:auto;min-height:100%}
 .win[data-program=notes] .win-body:has(.note-more119[open]){overflow:auto}
 .note-editor119 .note-status119{font-size:14px;line-height:1.2;margin:0}
 .note-editor119 .note-related119:not(:empty){max-height:26dvh;overflow:auto;flex-shrink:1}
 .mail-form120>.mail-actions120:last-child{position:sticky;bottom:-12px;padding:8px 0;margin:0;background:var(--paper);z-index:1}
 .mail-form120 .mail-actions120 button{min-height:42px}
 .mail-form120 input,.mail-form120 select{min-height:42px}.mail-form120 textarea{min-height:150px}
 .mail-tabs120{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .mail-tabs120 button{min-height:42px;padding:5px 3px}
 .file-entry{min-width:0}.file-entry strong{overflow-wrap:anywhere}
 .settings-easy119 input:not([type=checkbox]),.settings-easy119 select{min-height:42px}
 .settings-easy119 .overlay-field126{gap:8px}
 .keeps137-editor button,.capture137 button{min-height:42px}
 dialog.keeps137-editor{max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);overflow:auto}
 .apps-menu132{overscroll-behavior:contain}
}
@media(max-width:360px){
 .mini-music132 .mini-title132{max-width:48px}
 #clock{font-size:12px!important}
 #menubar{gap:3px!important;padding-inline:4px}
 #menubar #mail-quick120{margin-left:0;padding-inline:3px}
}
@media(max-width:650px) and (max-height:500px){
 .titlebar{height:38px}.titlebar button{height:32px;min-height:32px}
 .note-editor119 .note-tools119{grid-template-columns:repeat(4,minmax(0,1fr))}
 .note-editor119 .note-tools119 button{font-size:14px;min-height:36px}
 .note-editor119 .note-more119>summary{min-height:28px;padding:3px}
 .note-editor119 .note-related119:not(:empty){max-height:15dvh}
 .art-pad-body>.play-tray:not(.folded){max-height:42dvh}
}

@media(max-width:650px),(pointer:coarse) and (max-height:500px){.mini-visual163{display:none!important}}
