/* Desktop presentation polish. Keep touch targets large and scope content rules. */
@media(min-width:701px) and (pointer:fine){
 html:not(.touch-device) .conhya-toolbar{min-height:42px;padding:2px 6px;gap:3px}
 html:not(.touch-device) .toolbar-channels{gap:3px;padding:0}
 html:not(.touch-device) .toolbar-channels>button,html:not(.touch-device) .conhya-toolbar>.toolbar-customize{min-height:36px;min-width:49px;padding:2px 4px;gap:1px}
 html:not(.touch-device) .conhya-toolbar .toolbar-icon{height:23px;width:23px}
 html:not(.touch-device) .toolbar-channels>button span,html:not(.touch-device) .toolbar-customize span{font-size:10px;line-height:1}
 html:not(.touch-device) .retro-window:not(.immersive-frame)>.retro-titlebar{height:26px;min-height:26px;padding:2px 5px!important;gap:5px;box-sizing:border-box}
 html:not(.touch-device) .retro-window:not(.immersive-frame)>.retro-titlebar button{height:21px;min-height:21px;line-height:1;padding:2px 6px;font-size:11px}
}
.retro-titlebar .retro-window-title{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.retro-titlebar .retro-window-icon,.retro-titlebar .retro-window-controls,.retro-titlebar .channel-back,.retro-titlebar .game-mode-toggle,.retro-titlebar .game-exit{flex:none;white-space:nowrap}
.retro-titlebar .channel-back{margin:0;line-height:1.15}
body.immersive-game .immersive-frame>.retro-titlebar{min-height:32px;padding:3px 7px!important;gap:6px}
body.immersive-game .immersive-frame .retro-window-title{font-size:13px}
body.immersive-game .immersive-frame .game-exit,body.immersive-game .immersive-frame .game-mode-toggle,body.immersive-game .immersive-frame .channel-back{min-height:26px;padding:4px 8px;font-size:12px;border-radius:4px;margin:0}
body.immersive-game .immersive-frame .channel-back{display:inline-flex!important;align-items:center}
body.immersive-game.immersive-hide-toolbar .immersive-frame:not(.immersive-toolbar-revealed)>.retro-titlebar{display:none!important}
.immersive-reveal{display:none}
body.immersive-game.immersive-hide-toolbar .immersive-frame>.immersive-reveal:not([hidden]){position:absolute;top:0;right:0;z-index:25;display:block;min-width:38px;min-height:27px;padding:2px 7px;margin:0;background:#162435cc;color:white;border:1px solid #8096ae;border-radius:0 0 0 6px;opacity:.17;font:700 17px system-ui}
body.immersive-game.immersive-hide-toolbar .immersive-frame>.immersive-reveal:hover,body.immersive-game.immersive-hide-toolbar .immersive-frame>.immersive-reveal:focus-visible,body.immersive-game.immersive-hide-toolbar .immersive-toolbar-revealed>.immersive-reveal{opacity:1}
body.immersive-game.immersive-hide-toolbar .immersive-toolbar-revealed>.immersive-reveal{top:32px}
html.arcade-console-root .immersive-reveal{display:none!important}
@media(pointer:coarse),(max-width:700px){body.immersive-game .immersive-frame>.retro-titlebar{min-height:44px}body.immersive-game .immersive-frame :is(.game-exit,.game-mode-toggle,.channel-back){min-height:40px}body.immersive-game.immersive-hide-toolbar .immersive-frame>.immersive-reveal:not([hidden]){opacity:.7;min-width:44px;min-height:36px}body.immersive-game.immersive-hide-toolbar .immersive-toolbar-revealed>.immersive-reveal{top:44px}}
.appearance-fullscreen-pref{display:flex;align-items:center;gap:7px;margin:5px 0;padding:7px;background:color-mix(in srgb,var(--ap-paper,#e9f0fa) 85%,#8eacd1);border:1px solid #91a9c5;border-radius:5px}.appearance-fullscreen-pref input{width:auto;margin:0}
.kid-appearance-intro{padding:12px;background:#374b83;color:white;border-radius:10px;margin:0 0 12px}.kid-appearance-intro h2{color:white!important;margin:0 0 5px}.kid-appearance-intro p{margin:0}
.kid-appearance-grid{grid-template-columns:repeat(auto-fill,minmax(min(135px,100%),1fr));gap:10px}.kid-appearance-grid .appearance-choice{border-radius:8px;min-height:90px;justify-content:flex-start}.kid-appearance-grid .appearance-choice small{font:700 12px system-ui;white-space:normal}
.kid-wall-preview{height:66px;border-radius:5px;border:1px solid #718ab3}
[data-kid-wallpaper="default"].kid-wall-preview{background:linear-gradient(145deg,#a0caef,#ded3f8,#92d2bc)}
[data-kid-wallpaper="kid-space"]{--kid-wall:radial-gradient(circle at 20% 25%,#fff 0 1px,transparent 2px),radial-gradient(circle at 65% 55%,#ffe4a0 0 2px,transparent 3px),radial-gradient(ellipse at 70% 15%,#6551ab,#20284f 70%);--kid-size:43px 43px,79px 79px,cover}
[data-kid-wallpaper="kid-ocean"]{--kid-wall:radial-gradient(circle at 20% 30%,#e7ffff70 0 4px,transparent 5px),radial-gradient(circle at 70% 70%,#a4fbef75 0 6px,transparent 7px),linear-gradient(160deg,#9ce8f0,#479fc6,#176b9b);--kid-size:62px 62px,91px 91px,cover}
[data-kid-wallpaper="kid-jungle"]{--kid-wall:radial-gradient(ellipse at 20% 50%,#447e4d75 0 20%,transparent 22%),radial-gradient(ellipse at 75% 0%,#c8e495 0 26%,transparent 28%),linear-gradient(155deg,#c9e7ae,#6fb982);--kid-size:75px 64px,100px 80px,cover}
[data-kid-wallpaper="kid-candy"]{--kid-wall:radial-gradient(circle,#f7a0c7 0 4px,transparent 5px),radial-gradient(circle,#aeadee 0 4px,transparent 5px),linear-gradient(145deg,#fff2c7,#f8d7ed);--kid-size:40px 40px,57px 57px,cover}
[data-kid-wallpaper="kid-arcade"]{--kid-wall:repeating-linear-gradient(0deg,#fff0 0 19px,#ffffff24 20px 21px),repeating-linear-gradient(90deg,#fff0 0 19px,#ffffff24 20px 21px),linear-gradient(135deg,#554a9f,#ab91e0);--kid-size:auto,auto,cover}
[data-kid-wallpaper="kid-sun"]{--kid-wall:radial-gradient(ellipse at 24% 40%,#fff 0 12%,transparent 14%),radial-gradient(ellipse at 60% 45%,#fff8de 0 17%,transparent 19%),linear-gradient(#9fdaff,#fce4a7);--kid-size:120px 90px,170px 125px,cover}
.kid-wall-preview[data-kid-wallpaper^="kid-"],.child-session #portal-view[data-kid-wallpaper^="kid-"]{background-image:var(--kid-wall)!important;background-size:var(--kid-size)!important;background-repeat:repeat!important}
.child-session #portal-view[data-kid-wallpaper^="kid-"] #kids-home-panel .kids-world{background:color-mix(in srgb,var(--ap-paper,#f5f8ff) 86%,transparent)!important}
.child-session #kids-quickbar{background:var(--ap-bar,#244e87);gap:4px}.kids-quickbar button{flex:1 1 auto;white-space:nowrap}
.child-session .kids-launch button{min-height:88px;padding:9px;line-height:1.2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}
.child-session .kids-launch button>span{font-size:24px}
#learning-results.connected-results{display:block;min-width:0}
#learning-results .academy-nav{display:flex;flex-wrap:wrap;gap:6px}
#learning-results :is(.academy-nav,.academy-arcade,.academy-lesson-row,.academy-recommend) button{width:auto!important;max-width:100%;height:auto!important;min-height:38px;flex:0 1 auto!important;align-self:flex-start;margin:0;padding:7px 11px;white-space:normal;overflow-wrap:anywhere}
#learning-results .academy-report-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));align-items:start;gap:10px}
#learning-results .academy-subject{border-radius:9px;border-top:4px solid #658fba}
#learning-results .academy-subject:nth-child(4n+2){border-top-color:#72a67b}#learning-results .academy-subject:nth-child(4n+3){border-top-color:#b58bc9}#learning-results .academy-subject:nth-child(4n){border-top-color:#d0a44d}
#learning-results .academy-lesson-row{display:grid;grid-template-columns:minmax(0,1fr);gap:3px}
#learning-results .academy-arcade{display:flex;flex-wrap:wrap;gap:7px;align-items:center;border-radius:9px}
#learning-results .academy-arcade h3{flex:1 0 100%}
#learning-results .academy-question button{height:auto!important;min-height:44px;max-width:100%;margin:5px 0;text-align:left;white-space:normal}
#accessories-content{min-width:0}
#accessories-content .accessory-nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(118px,100%),1fr));gap:6px;margin:6px 0 16px}
#accessories-content .accessory-nav button{display:flex;align-items:center;justify-content:flex-start;gap:7px;min-height:38px;width:100%;height:auto;margin:0;padding:6px 9px;text-align:left;white-space:normal;font-size:12px;border-radius:5px}
#accessories-content .accessory-nav button[aria-pressed=true]{background:var(--ap-bar,#31567d);color:white;outline:2px solid #9cacc8;outline-offset:0}
.accessory-nav [data-accessory]::before{font-size:16px;flex:none;content:"✦"}
.accessory-nav [data-accessory="notes"]::before{content:"✎"}.accessory-nav [data-accessory="sticky"]::before{content:"▤"}.accessory-nav [data-accessory="journal"]::before{content:"▧"}.accessory-nav [data-accessory="calc"]::before{content:"▦"}.accessory-nav [data-accessory="convert"]::before{content:"⇄"}.accessory-nav [data-accessory="clock"]::before{content:"◷"}.accessory-nav [data-accessory="watch"]::before{content:"◴"}.accessory-nav [data-accessory="widgets"]::before{content:"▣"}.accessory-nav [data-accessory="drawing"]::before{content:"🎨"}
#accessories-content .accessory-editor{min-height:180px;line-height:1.55;padding:10px;display:block}
#accessories-content .accessory-calculator{width:min(100%,320px);margin:8px 0}
.accessory-converter{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:520px}.accessory-converter>*{min-width:0;width:100%;box-sizing:border-box}.accessory-conversion-result{grid-column:1/-1;padding:12px;border:1px solid #91a9c5;border-radius:5px;font:700 20px system-ui}
@media(max-width:500px){#learning-results :is(.academy-nav,.academy-arcade) button{min-height:44px}#accessories-content .accessory-nav{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Editorial desk colors and optional publisher-provided images. */
#news-list.information-front{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px!important;align-items:stretch}
#news-list.information-front>li.info-story{--desk:#577caa;--desk-bg:#e8f0fa;border-top:4px solid var(--desk);border-radius:7px;background:color-mix(in srgb,var(--ap-paper,#fff) 92%,var(--desk-bg));box-shadow:0 2px 5px #172e4615}
#news-list .info-story[data-desk="us"]{--desk:#a84b58;--desk-bg:#fae8eb}#news-list .info-story[data-desk="tech"]{--desk:#6558ae;--desk-bg:#efebff}#news-list .info-story[data-desk="science"]{--desk:#368775;--desk-bg:#e4f5ec}#news-list .info-story[data-desk="business"]{--desk:#ab7b35;--desk-bg:#fff1d8}#news-list .info-story[data-desk="culture"]{--desk:#a35286;--desk-bg:#fae6f1}#news-list .info-story[data-desk="gaming"]{--desk:#486fa0;--desk-bg:#e7edff}
#news-list .info-kicker{align-self:flex-start;background:var(--desk-bg);color:#24384f!important;border-left:3px solid var(--desk);padding:4px 6px;letter-spacing:.04em;font-size:10px;line-height:1.3}
#news-list .info-actions{margin-top:auto;padding-top:5px}
.info-story-image{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:4px;background:#dce5ee}
#news-list .info-lead .info-story-image{max-height:230px;object-fit:cover;object-position:center}
#information-reader-content .info-story-image{max-height:340px;object-fit:contain}
body[data-theme="dark"] #news-list.information-front>li.info-story{background:color-mix(in srgb,var(--ap-paper,#253747) 92%,var(--desk));color:#edf2f9}
@media(max-width:500px){#news-list.information-front{grid-template-columns:1fr}}

/* Real workspaces consume the whole desktop, not a document reading column. */
.retro-window[data-window-id="resona-studio"]>.retro-window-content{display:flex!important;flex:1 1 0!important;min-height:0!important;min-width:0!important;padding:0!important;overflow:hidden!important}
html body #retro-desktop>.retro-window[data-window-id="resona-studio"]>.retro-window-content>#resona-studio-panel{display:flex!important;flex-direction:column;width:100%!important;height:100%!important;max-width:none!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important}
#resona-studio-panel .cartographer-window-header{flex:0 0 auto;flex-wrap:nowrap;gap:8px;padding:3px 8px;min-width:0;overflow:hidden}
#resona-studio-panel .cartographer-window-header button{flex:none;font-size:11px;padding:3px 7px;min-height:24px;margin:0}
#resona-studio-panel .cartographer-window-header small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}
#cartographer-frame{flex:1 1 0!important;display:block;width:100%!important;height:0!important;min-height:0!important;max-height:none!important;border:0}
.retro-window[data-window-id="resona-studio"]>.retro-window-foot{display:none}
body.immersive-game #retro-desktop>.immersive-frame[data-window-id="resona-studio"]>.retro-titlebar{min-height:30px;height:30px;padding:2px 7px!important}
body.immersive-game #retro-desktop>.immersive-frame[data-window-id="resona-studio"] .game-mode-toggle,body.immersive-game #retro-desktop>.immersive-frame[data-window-id="resona-studio"] .game-exit{min-height:24px;height:24px;padding:2px 7px;font-size:12px}
@media(min-width:701px) and (pointer:fine){
 html:not(.touch-device) body:has(>#portal-view:not([hidden])){display:flex;flex-direction:column;height:100vh;height:100dvh;min-height:0;overflow:hidden}
 html:not(.touch-device) body:has(>#portal-view:not([hidden]))>.top{height:28px;min-height:28px;flex:0 0 28px;padding:1px 9px;gap:8px}
 html:not(.touch-device) body:has(>#portal-view:not([hidden]))>.top .brand{font-size:14px;line-height:1;gap:5px}
 html:not(.touch-device) body:has(>#portal-view:not([hidden]))>.top .conhya-logo{width:24px;height:24px}
 html:not(.touch-device) body:has(>#portal-view:not([hidden]))>.top .connection-indicator{min-height:0;height:24px;padding:1px 6px;font-size:10px;line-height:1.05}
 html:not(.touch-device) body:has(>#portal-view:not([hidden]))>.retro-menubar{flex:0 0 23px;height:23px;min-height:23px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;flex-wrap:nowrap}
 html:not(.touch-device) body:has(>#portal-view:not([hidden]))>.conhya-toolbar{flex:0 0 auto}
 html:not(.touch-device) body:has(>#portal-view:not([hidden]))>#portal-view{flex:1 1 0;height:auto!important;min-height:0!important;max-height:none!important;width:100%}
 html:not(.touch-device) body:has(>#portal-view:not([hidden]))>.footer{flex:0 0 auto;min-height:26px;height:26px}
}
