[data-hyos-host] .hyof-app{height:100%;overflow:auto;padding:clamp(12px,2vw,24px);background:radial-gradient(ellipse at 0 0,#193c62,#070c18 65%);color:#e9f8ff}
[data-hyos-host] .hyof-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;border-bottom:1px solid #6ddafa45;padding-bottom:15px}
[data-hyos-host] .hyof-head small{font-size:10px;letter-spacing:.2em;color:#73e7ff}
[data-hyos-host] .hyof-head h2{font-size:clamp(24px,3vw,34px);margin:5px 0;background:linear-gradient(90deg,#74e9ff,#b99bff);color:transparent;background-clip:text}
[data-hyos-host] .hyof-head p,[data-hyos-host] .hyof-status{font-size:12px;color:#b2c9dc}
[data-hyos-host] .hyof-toolbar{display:flex;flex-wrap:wrap;gap:9px;padding:16px 0}
[data-hyos-host] .hyof-search{flex:1 1 180px;min-width:0;background:#0b1e30;color:#fff;border:1px solid #59bde777;border-radius:10px;padding:10px}
[data-hyos-host] .hyof-button{cursor:pointer;border:1px solid #65d9f788;border-radius:10px;background:linear-gradient(135deg,#133a53,#172849);color:#f3fbff;padding:9px 12px}
[data-hyos-host] .hyof-button:hover{box-shadow:0 0 14px #5bcbff55}
[data-hyos-host] .hyof-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:12px}
[data-hyos-host] .hyof-file{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:17px;border-radius:15px;border:1px solid #5ebfff66;background:linear-gradient(135deg,#13304a,#111a30)}
[data-hyos-host] .hyof-file strong{font-size:14px;overflow-wrap:anywhere}
[data-hyos-host] .hyof-file small{color:#9bb8cd}
[data-hyos-host] .hyof-file-icon{font-size:30px;color:#82e7ff}
[data-hyos-host] .hyof-empty{font-size:13px;color:#a7c0d3}
[data-hyos-host] .hyof-editor{height:clamp(360px,70vh,850px);margin-top:14px;border:1px solid #64e0fa88;border-radius:12px;overflow:hidden;background:#fff}
[data-hyos-host] .hyof-editor[hidden]{display:none}
[data-hyos-host] .hyof-editor iframe{height:100%;width:100%;border:0}

/* R47 editor-first layout: the editor occupies the OS window instead of appearing below the file grid. */
[data-hyos-host] .hyof-app{display:flex;flex-direction:column;min-height:0;min-width:0;overflow:auto}
[data-hyos-host] .hyof-app.hyof-editing{overflow:hidden;padding:clamp(8px,1vw,14px)}
[data-hyos-host] .hyof-editing .hyof-head{flex:0 0 auto;padding-bottom:6px}
[data-hyos-host] .hyof-editing .hyof-head h2{font-size:18px}
[data-hyos-host] .hyof-editing .hyof-head p,[data-hyos-host] .hyof-editing .hyof-head small{display:none}
[data-hyos-host] .hyof-editing .hyof-toolbar{flex:0 0 auto;padding:7px 0}
[data-hyos-host] .hyof-editing .hyof-toolbar .hyof-search,[data-hyos-host] .hyof-editing .hyof-toolbar .hyof-button:not(:first-child){display:none}
[data-hyos-host] .hyof-editing .hyof-list{display:none}
[data-hyos-host] .hyof-editing .hyof-editor{display:block;flex:1 1 0;min-height:0;height:auto;margin-top:4px;border-radius:8px}
[data-hyos-host] .hyof-editing .hyof-editor>div{height:100%!important;width:100%!important;min-height:0}
@media(max-width:600px){[data-hyos-host] .hyof-head{gap:5px}[data-hyos-host] .hyof-head h2{font-size:21px}[data-hyos-host] .hyof-toolbar{gap:6px}[data-hyos-host] .hyof-button{padding:8px;font-size:12px}}

[data-hyos-host] .hyof-app.hyof-editing .hyof-editor{display:flex!important;flex:1 1 auto;min-height:260px;height:calc(100% - 110px);max-height:none;overflow:hidden}
[data-hyos-host] .hyof-app.hyof-editing .hyof-editor[hidden]{display:none!important}
