/* iOES | WEB suite, part of /webapp/index.html (v194 split; was inline at line 20339). */
/* ---- Hub arrangement: tablet style ---- */
#hub{overflow-x:clip}
.logout-btn{width:40px;height:40px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:var(--muted)}
.logout-btn svg{display:block}
html,body{overscroll-behavior-x:none}
#hub{overscroll-behavior-x:none}
@media (max-width:680px){
  #hub .menu{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;justify-items:center;justify-content:center;gap:22px 6px!important;width:min(94vw,380px)!important;height:auto!important;max-width:94vw!important;position:relative!important;top:auto!important;left:auto!important;transform:none!important;margin:0 auto!important;padding:150px 0 120px!important}
  #hub .menu .round{width:min(24vw,88px)!important;height:min(24vw,88px)!important}
  #hub .menu .item{grid-column:auto!important;min-width:0;max-width:100%}
  #hub .menu .cap{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;letter-spacing:.08em}
}
.hub-folder-round{display:flex!important;flex-wrap:wrap;justify-content:center;align-content:center;gap:4px;padding:10px}
.hf-mini{display:flex;align-items:center;justify-content:center;width:calc(50% - 3px);height:calc(50% - 3px)}
.hf-mini svg{width:82%;height:82%}
#hub.hub-edit .menu > .item{cursor:grab;touch-action:none}
#hubSortAZ{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(84px + env(safe-area-inset-bottom,0px));z-index:9000;height:38px;padding:0 18px;border-radius:19px;border:1px solid var(--line,#d4d4d8);background:var(--card,#fff);color:var(--fg,#111);font:600 14px/1 inherit;box-shadow:0 6px 20px rgba(0,0,0,.18);cursor:pointer}
#hubSortAZ[hidden]{display:none}
#hub.hub-edit .menu > .item,#hub.hub-edit .menu > .item *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
#hub.hub-edit .menu > .item .round{animation:hubWiggle .42s ease-in-out infinite alternate}
#hub.hub-edit .menu > .item:nth-child(even) .round{animation-delay:-.2s}
@keyframes hubWiggle{from{transform:rotate(-1.4deg)}to{transform:rotate(1.4deg)}}
.menu > .item.dragging{transition:none;pointer-events:none!important}
.menu > .item.drop-target .round{box-shadow:0 0 0 3px var(--accent)}
.hub-folder-panel{width:min(360px,92vw);max-height:80vh}
/* v138: folder apps must stay inside the folder on phones (3 equal columns that can shrink; the button skin no longer adds 14px of side padding) */
.calc-folder .cf-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
html body .calc-folder .cf-app{min-width:0;width:100%;padding:9px 4px}
.calc-folder .cf-ico{width:min(76px,100%);height:auto;aspect-ratio:1}
.calc-folder .cf-name{max-width:100%;text-align:center;overflow-wrap:anywhere;font-size:clamp(10px,3vw,12px)}
.hf-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:14px;overflow:auto}
.hf-cell{position:relative}
.hf-app{background:none;border:0;display:flex;flex-direction:column;align-items:center;gap:6px;width:100%;cursor:pointer;color:var(--text);font:inherit;padding:0}
.hf-ico{width:72px;height:72px;border-radius:18px;background:var(--panel);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(0,0,0,.12)}
.hf-ico svg{width:60%;height:60%}
.hf-cap{font:700 10px/1.2 var(--display);letter-spacing:.08em;text-transform:uppercase;color:var(--muted);text-align:center}
.hf-rm{position:absolute;top:-6px;right:4px;width:22px;height:22px;border-radius:50%;border:0;background:var(--accent);color:#fff;font-size:16px;line-height:22px;padding:0;cursor:pointer}
#hubStash{display:none}
