/* App Hub v1.4 – compact workspace, visual cards, accessible settings */
body[data-screen="dashboard"] .header{min-height:88px;display:flex;align-items:center;gap:clamp(10px,1.4vw,26px);flex-wrap:nowrap}
body[data-screen="dashboard"] .brand{flex:none}
.header-headline{display:flex;flex-direction:column;min-width:180px;margin-right:auto;gap:1px}
.header-headline strong{font-size:17px;letter-spacing:-.35px;color:#1e3758}
.header-headline span{font-size:11px;color:#8190a5}
.header-sync{min-width:unset;width:auto;box-shadow:none;border:0;border-left:1px solid #e3eaf3;border-radius:0;padding:3px 14px 2px;display:grid;gap:3px;background:transparent}
.header-sync .sync-head{font-size:11px}.header-sync .sync-time{margin:0 0 0 15px;font-size:10px}.header-sync .button{font-size:11px;min-height:27px;justify-self:start;padding:4px 10px}
.header-settings{flex:none}
body[data-screen="dashboard"] .intro{display:none!important}
body[data-screen="dashboard"] #dashboard{padding-top:16px}
body:not([data-screen="dashboard"]) .header-headline,body:not([data-screen="dashboard"]) .header-sync,body:not([data-screen="dashboard"]) .header-settings{display:none!important}
body[data-screen="dashboard"] .section-heading{margin-top:18px}
/* Banner backgrounds are generated deterministically, with no requests to external sites. */
.app-card{position:relative;overflow:hidden;border-color:#d9e5f2;transition:transform .16s,box-shadow .16s}
.app-card:hover{transform:translateY(-1px)}
.app-card::before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:var(--hub-accent,#5676a4)}
.app-card[data-category="business"]{--hub-accent:#3277ba;--hub-start:#16477d;--hub-end:#7bb3eb;--hub-tint:#edf6ff}
.app-card[data-category="private"]{--hub-accent:#238e76;--hub-start:#136e66;--hub-end:#95d9bf;--hub-tint:#eefaf4}
.app-card[data-category="both"]{--hub-accent:#6858af;--hub-start:#443888;--hub-end:#b7a5ee;--hub-tint:#f4effe}
.app-card[data-category="new"]{--hub-accent:#b78032;--hub-start:#89612c;--hub-end:#ebc886;--hub-tint:#fff8ec}
body[data-hub-colors="false"] .app-card{--hub-accent:#66829c;--hub-start:#365574;--hub-end:#c3d5e9;--hub-tint:#f3f7fc}
.app-cover{min-height:94px;height:105px;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 17px;margin-bottom:1px;color:#fff;background:linear-gradient(118deg,var(--hub-start,#345987),var(--hub-end,#93b9e2));position:relative;overflow:hidden}
.app-cover::after{content:"";position:absolute;right:-20px;top:-46px;width:130px;height:130px;border-radius:30px;transform:rotate(31deg);border:2px solid #ffffff29;background:#ffffff15;pointer-events:none}
.app-cover .cover-monogram{font-size:38px;font-weight:850;line-height:1;letter-spacing:-2.3px;text-shadow:0 2px 10px #0002}
.app-cover small{font-size:11px;font-weight:700;max-width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;z-index:1;color:#ffffffe6}
.app-cover.custom-cover{padding:0;background:#edf2f8}
.app-cover.custom-cover::after{display:none}
.app-cover.custom-cover img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
body[data-hub-previews="false"] .app-cover{display:none}
body[data-hub-density="compact"] .app-card{padding:12px;gap:8px}
body[data-hub-density="compact"] .app-cover{height:65px;min-height:65px;padding:9px}
body[data-hub-density="compact"] .app-cover .cover-monogram{font-size:26px}
.cards.list-view .app-cover{display:none}
.cards.list-view .app-card{overflow:visible}
.app-card[data-category] .app-logo{background:var(--hub-tint,#edf3fa);color:var(--hub-accent,#385b86)}
/* Modal: independent scrolling, friendly to narrow mobile screens. */
.hub-settings{width:min(710px,calc(100vw - 24px));max-height:calc(100dvh - 35px);overflow:auto;overscroll-behavior:contain;padding:0;border:0;border-radius:20px;box-shadow:0 24px 90px #071b3955;color:#193351;background:#fff}
.hub-settings::backdrop{background:#0c203a88}
.hub-settings-content{padding:24px;display:grid;gap:14px}
.hub-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding-bottom:12px;border-bottom:1px solid #e9edf3}
.hub-dialog-head h2{margin:4px 0 0;font-size:22px}
.hub-settings section{border:1px solid #e4eaf3;background:#f9fbfe;border-radius:13px;padding:17px;display:grid;gap:12px}
.hub-settings h3{font-size:15px;margin:0 0 1px;letter-spacing:-.25px}
.hub-settings p{margin:0;color:#63758e;font-size:12px;line-height:1.55}
.hub-setting-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.hub-setting-grid label{display:grid;gap:5px;font-size:12px;font-weight:700;color:#49627e}
.hub-setting-grid select{width:100%;min-height:39px;border:1px solid #d7e2ee;border-radius:9px;background:#fff;color:#1d3555;padding:6px 9px}
.hub-switch{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:600;color:#445d78;cursor:pointer}
.hub-switch input{width:17px;height:17px;accent-color:#27558b}
.hub-sync-info{display:grid;gap:7px;font-size:12px;color:#526b87}
.hub-sync-info strong{color:#173f68}
.hub-action-row{display:flex;gap:9px;flex-wrap:wrap}
.hub-settings-status{font-size:11px!important;color:#6c7c91!important}
.hub-thumb-field{padding:13px;border:1px solid #e0e8f2;border-radius:12px;background:#f8fbff;display:grid;gap:8px}
.hub-thumb-title{font-size:13px;font-weight:800;color:#2c4b6f}
.hub-thumb-field p{font-size:11px;color:#7083a0;line-height:1.45;margin:0}
.hub-thumb-row{display:flex;align-items:center;gap:12px}
.hub-thumb-preview{width:150px;height:72px;background:linear-gradient(112deg,#31649d,#b5cfee);color:white;font-weight:800;border-radius:9px;display:grid;place-items:center;overflow:hidden;flex:none}
.hub-thumb-preview img{width:100%;height:100%;object-fit:cover}
.hub-thumb-row>div:last-child{display:grid;justify-items:start;gap:7px}
.hub-upload-label{display:inline-flex!important;align-items:center;cursor:pointer}
.hub-thumb-status{font-size:11px;color:#4d6b89;min-height:15px}
@media(min-width:1500px){.cards{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}}
@media(max-width:1024px){body[data-screen="dashboard"] .header{flex-wrap:wrap;padding:10px 0;gap:9px 15px}.header-headline{order:3;flex:1 1 100%;margin:0}.header-sync{order:4;border:0;padding:0;display:flex;align-items:center;gap:10px;flex:1 1 auto}.header-sync .sync-time{margin:0}.header-sync .button{margin-left:auto}.header-settings{margin-left:auto}.top-right{margin-left:0}}
@media(max-width:650px){body[data-screen="dashboard"] .header{min-height:unset;gap:8px}.brand strong{font-size:16px}.header-headline{display:none}.header-settings{font-size:0;padding:8px 11px;min-height:37px}.header-settings::before{content:'⚙';font-size:19px}.header-sync{order:5;flex-basis:100%;background:#fff;border:1px solid #e5ecf4;border-radius:11px;padding:6px 10px;gap:7px}.header-sync .sync-head{font-size:10px}.header-sync .sync-time{font-size:10px}.header-sync .button{font-size:10px}.app-cover{height:86px;min-height:86px}.hub-settings{width:100%;max-height:95dvh;margin:auto auto 0;border-radius:18px 18px 0 0}.hub-settings-content{padding:20px 15px}.hub-setting-grid{grid-template-columns:1fr}.hub-thumb-row{align-items:flex-start}.hub-thumb-preview{width:118px;height:76px}.hub-thumb-row>div:last-child .button{font-size:11px;padding:7px}}