/* Hod-Gee App Hub (/app/) — HG Optimisation design. No theme, no WordPress toolbar. */
:root{--hub-navy:#001d6e;--hub-blue:#2271b1;--hub-blue-dark:#135e96;--hub-bg:#f4f6fb;--hub-line:#dfe3ec;--hub-text:#1d2433;--hub-muted:#5f6b7f;--hub-side:272px;--hub-top:64px}
*{box-sizing:border-box}
.hg-hub [hidden]{display:none!important}
html,body{margin:0;height:100%}
body.hg-hub{background:var(--hub-bg);color:var(--hub-text);font:15px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.hg-hub a{color:var(--hub-blue)}
.hg-hub-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:8px 16px;border:1px solid var(--hub-line);border-radius:9px;background:#fff;color:var(--hub-text);font-weight:600;font-size:14px;line-height:1.2;font-family:inherit;text-decoration:none;cursor:pointer;white-space:nowrap}
.hg-hub-btn:hover,.hg-hub-btn:focus-visible{border-color:var(--hub-blue);color:var(--hub-blue);outline:0}
.hg-hub-btn--primary{background:var(--hub-navy);border-color:var(--hub-navy);color:#fff}
.hg-hub-btn--primary:hover,.hg-hub-btn--primary:focus-visible{background:var(--hub-blue-dark);border-color:var(--hub-blue-dark);color:#fff}
.hg-hub-btn--small{min-height:30px;padding:4px 10px;font-size:13px}

/* Top bar */
.hg-hub-top{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:18px;height:var(--hub-top);padding:0 20px;background:#fff;border-bottom:1px solid var(--hub-line)}
.hg-hub-brand{display:flex;align-items:center;gap:10px;color:var(--hub-navy)!important;text-decoration:none;font-weight:800;letter-spacing:.08em}
.hg-hub-brand img{background:#fff;border-radius:50%}
.hg-hub-site{display:flex;gap:4px;flex:1;overflow-x:auto;scrollbar-width:none}
.hg-hub-site a{padding:8px 12px;border-radius:8px;color:var(--hub-text)!important;text-decoration:none;font-weight:600;white-space:nowrap}
.hg-hub-site a:hover{background:var(--hub-bg);color:var(--hub-navy)!important}
.hg-hub-me{display:flex;align-items:center;gap:8px;padding:4px 10px 4px 4px;border:1px solid var(--hub-line);border-radius:999px;color:var(--hub-text)!important;text-decoration:none;font-weight:600}
.hg-hub-me img{border-radius:50%;display:block}
.hg-hub-menu{display:none;width:40px;height:40px;border:1px solid var(--hub-line);border-radius:9px;background:#fff;cursor:pointer;position:relative}
.hg-hub-menu span,.hg-hub-menu span::before,.hg-hub-menu span::after{position:absolute;left:10px;right:10px;height:2px;background:var(--hub-navy);content:""}
.hg-hub-menu span{top:19px}.hg-hub-menu span::before{top:-6px;left:0;right:0}.hg-hub-menu span::after{top:6px;left:0;right:0}

/* Shell */
.hg-hub-body{display:grid;grid-template-columns:var(--hub-side) minmax(0,1fr);min-height:calc(100vh - var(--hub-top))}
.hg-hub-side{position:sticky;top:var(--hub-top);height:calc(100vh - var(--hub-top));overflow-y:auto;display:flex;flex-direction:column;gap:2px;padding:14px 12px;background:#fff;border-right:1px solid var(--hub-line)}
.hg-hub-side-title{margin:14px 10px 6px;color:var(--hub-muted);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.hg-hub-home,.hg-hub-plat-btn{display:flex;align-items:center;gap:10px;width:100%;padding:10px;border:0;border-radius:9px;background:none;color:var(--hub-text);font-weight:600;font-size:15px;line-height:1.2;font-family:inherit;text-align:left;cursor:pointer}
.hg-hub-home:hover,.hg-hub-plat-btn:hover{background:var(--hub-bg)}
.hg-hub-home.is-active,.hg-hub-plat.is-active>.hg-hub-plat-btn{background:#e8eefb;color:var(--hub-navy)}
.hg-hub-plat-btn span{flex:1}
.hg-hub-plat-btn i{width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);transition:transform .15s;opacity:.6}
.hg-hub-plat-btn[aria-expanded="true"] i{transform:rotate(45deg)}
.hg-hub-plat.is-off .hg-hub-plat-btn{opacity:.55}
.hg-hub-sub{display:grid;gap:1px;margin:2px 0 6px 20px;padding-left:10px;border-left:2px solid var(--hub-line)}
.hg-hub-sub[hidden]{display:none}
.hg-hub-sub a,.hg-hub-sub p{display:block;padding:7px 10px;border-radius:7px;color:var(--hub-text);text-decoration:none;font-size:14px}
.hg-hub-sub a:hover{background:var(--hub-bg);color:var(--hub-navy)}
.hg-hub-sub a.is-active{background:#e8eefb;color:var(--hub-navy);font-weight:600}
.hg-hub-sub p{margin:0;color:var(--hub-muted)}
.hg-hub-sub .hg-hub-sub-group{padding:8px 10px 2px;color:var(--hub-muted);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.hg-hub-side-foot{margin-top:auto;display:grid;gap:2px;padding-top:12px;border-top:1px solid var(--hub-line)}
.hg-hub-side-foot a{padding:9px 10px;border-radius:8px;color:var(--hub-text);text-decoration:none;font-weight:600}
.hg-hub-side-foot a:hover{background:var(--hub-bg)}
.hg-hub-main{min-width:0}
.hg-hub-dash{max-width:1100px;padding:32px 28px}
.hg-hub-dash h1{margin:0 0 6px;color:var(--hub-navy);font-size:30px}
.hg-hub-lead{margin:0 0 24px;color:var(--hub-muted)}
.hg-hub-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}
.hg-hub-card{display:flex;flex-direction:column;gap:8px;padding:20px;background:#fff;border:1px solid var(--hub-line);border-radius:14px}
.hg-hub-card h3{margin:0;font-size:17px}
.hg-hub-card p{margin:0;color:var(--hub-muted);flex:1}
.hg-hub-card .hg-hub-btn{align-self:flex-start}
.hg-hub-card-ic{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#e8eefb;color:var(--hub-navy)}
.hg-hub-card.is-off{opacity:.7}
.hg-hub-plat.is-off .hg-hub-plat-btn{opacity:.5;filter:grayscale(1)}
.hg-hub-plat.is-off .hg-hub-plat-btn i{display:none}
.hg-hub-na[hidden],.hg-hub-profile[hidden],.hg-hub-dash[hidden]{display:none}
/* My space overview */
.hg-hub-stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
.hg-hub-stat{display:flex;gap:14px;align-items:flex-start;padding:18px;background:#fff;border:1px solid var(--hub-line);border-radius:14px}
.hg-hub-stat p{margin:0}
.hg-hub-stat-label{color:var(--hub-muted);font-size:13px;font-weight:600}
.hg-hub-stat-value{color:var(--hub-navy);font-size:26px;font-weight:800;line-height:1.2}
.hg-hub-stat-note{color:var(--hub-muted);font-size:13px}
.hg-hub-empty{padding:18px;border:1px dashed var(--hub-line);border-radius:14px;color:var(--hub-muted)}
/* Profile */
.hg-hub-profile{max-width:640px}
.hg-hub-profile-head{display:flex;gap:16px;align-items:center;margin-bottom:18px}
.hg-hub-profile-head img{border-radius:50%}
.hg-hub-profile-head h1{margin:0}
.hg-hub-profile-head .hg-hub-lead{margin:0}
.hg-hub-profile-form{padding:20px;background:#fff;border:1px solid var(--hub-line);border-radius:14px}
.hg-hub-profile-form input:disabled{background:var(--hub-bg);color:var(--hub-muted)}
.hg-hub-profile-form .hg-hub-btn{align-self:flex-start}
.hg-hub-grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.hg-hub-pw{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px;padding:16px 20px;background:#fff;border:1px solid var(--hub-line);border-radius:14px}
.hg-hub-pw p{margin:0}
button.hg-hub-me{background:#fff;font-weight:600;font-size:15px;line-height:1.2;font-family:inherit;cursor:pointer}
.hg-hub-side-foot button{padding:9px 10px;border:0;border-radius:8px;background:none;color:var(--hub-text);font-weight:600;font-size:15px;line-height:1.2;font-family:inherit;text-align:left;cursor:pointer}
.hg-hub-side-foot button:hover{background:var(--hub-bg)}
.hg-hub-sub .hg-hub-sub-wait{font-size:13px}
@media (max-width:600px){.hg-hub-grid2{grid-template-columns:1fr}}
.hg-hub-na .hg-hub-card-ic{margin-bottom:14px;font-weight:800;font-size:20px}
.hg-hub-off{font-size:13px}
.hg-hub-view{display:flex;flex-direction:column;height:calc(100vh - var(--hub-top));height:calc(100dvh - var(--hub-top))}
.hg-hub-view[hidden]{display:none}
.hg-hub-viewbar{display:flex;align-items:center;gap:8px;padding:8px 14px;background:#fff;border-bottom:1px solid var(--hub-line)}
.hg-hub-grow{flex:1}
.hg-hub-view iframe{flex:1;width:100%;border:0;background:#fff}
.hg-hub-backdrop{display:none}

/* Login / Create Account / Forgot Password */
.hg-auth{display:grid;place-items:start center;padding:48px 16px}
.hg-auth-card{width:min(440px,100%);padding:28px;background:#fff;border:1px solid var(--hub-line);border-radius:16px;box-shadow:0 10px 30px rgba(0,29,110,.06)}
.hg-auth-card h1{margin:0;color:var(--hub-navy);font-size:26px}
.hg-auth-sub{margin:6px 0 18px;color:var(--hub-muted)}
.hg-auth-tabs{display:flex;gap:4px;padding:4px;margin-bottom:18px;background:var(--hub-bg);border-radius:10px}
.hg-auth-tabs button{flex:1;padding:8px 6px;border:0;border-radius:8px;background:none;color:var(--hub-muted);font-weight:600;font-size:13px;line-height:1.2;font-family:inherit;cursor:pointer}
.hg-auth-tabs button.is-active{background:#fff;color:var(--hub-navy);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.hg-auth-form{display:none;flex-direction:column;gap:12px}
.hg-auth-form.is-active{display:flex}
.hg-auth-or{display:flex;align-items:center;gap:10px;color:#6b7280;font-size:13px}.hg-auth-or::before,.hg-auth-or::after{content:"";flex:1;height:1px;background:var(--hub-line)}
.hg-google-btn{gap:10px;min-height:42px;border-color:#dadce0;color:#3c4043;font-weight:600}.hg-google-btn svg{flex:none}
.hg-google-btn:hover,.hg-google-btn:focus-visible{background:#f8faff;border-color:#c6d4f5;color:#3c4043}
.hg-auth-form label{display:grid;gap:5px;font-weight:600;font-size:14px}
.hg-auth-form input:not([type=checkbox]){min-height:42px;padding:8px 12px;border:1px solid var(--hub-line);border-radius:9px;font-size:15px;font-family:inherit;color:var(--hub-text);background:#fff}
.hg-auth-form input:focus{outline:0;border-color:var(--hub-blue);box-shadow:0 0 0 2px rgba(34,113,177,.2)}
.hg-auth-check{display:flex!important;align-items:center;gap:8px;font-weight:500!important}
.hg-auth-note{margin:0;color:var(--hub-muted);font-size:13px}
.hg-auth-msg{margin:0 0 14px;padding:10px 12px;border-radius:9px;font-weight:600;font-size:14px}
.hg-auth-msg.is-ok{background:#e3f5e8;color:#17643a}
.hg-auth-msg.is-bad{background:#fcf0f1;color:#b42318}
.hg-hub-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* Mobile: sidebar becomes a side panel */
@media (max-width:900px){
  .hg-hub-top{gap:10px;padding:0 12px}
  .hg-hub-menu{display:block}
  .hg-hub-site{display:none}
  .hg-hub-brand span{display:none}
  .hg-hub-me{margin-left:auto}
  .hg-hub-me{max-width:min(52vw,220px);min-width:0}
  .hg-hub-body{grid-template-columns:1fr}
  .hg-hub-side{position:fixed;z-index:40;left:0;top:var(--hub-top);width:min(300px,86vw);transform:translateX(-105%);transition:transform .2s;box-shadow:0 0 30px rgba(0,0,0,.15)}
  .hg-hub-body.is-open .hg-hub-side{transform:none}
  .hg-hub-body.is-open .hg-hub-backdrop{display:block;position:fixed;inset:var(--hub-top) 0 0 0;z-index:35;background:rgba(0,0,0,.35)}
  .hg-hub-dash{padding:22px 16px}
  .hg-hub-dash h1{font-size:24px}
  .hg-hub-auth-top .hg-hub-site{display:none}
}
@media (max-width:900px){body.hg-hub:not(:has(.hg-hub-body)) .hg-hub-site{display:flex}}

/* Agreements */
.hg-hub-agr[hidden],.hg-hub-doc[hidden]{display:none}
.hg-hub-count{margin-left:auto;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#d7263d;color:#fff;font-size:12px;line-height:22px;text-align:center}
.hg-agr-list{display:grid;gap:10px;max-width:820px}
.hg-agr-row{display:flex;justify-content:space-between;align-items:center;gap:14px;width:100%;padding:16px 18px;background:#fff;border:1px solid var(--hub-line);border-radius:14px;text-align:left;font-family:inherit;color:var(--hub-text);cursor:pointer}
.hg-agr-row:hover{border-color:var(--hub-blue)}
.hg-agr-row strong{display:block;font-size:15px}
.hg-agr-row small{display:block;color:var(--hub-muted);font-size:13px}
.hg-agr-state{flex:none;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:700}
.hg-agr-state.is-ok{background:#e3f5e8;color:#17643a}
.hg-agr-state.is-todo{background:#fff4dc;color:#8a5a00}
.hg-hub-doc{display:flex;flex-direction:column;height:calc(100vh - var(--hub-top));height:calc(100dvh - var(--hub-top))}
.hg-agr-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 14px;background:#fff;border-bottom:1px solid var(--hub-line)}
.hg-hub-doc iframe{flex:1;width:100%;border:0;background:#f5f8fd}
.hg-agr-accept{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:14px 18px;background:#fff;border-top:1px solid var(--hub-line)}
.hg-agr-accept .hg-auth-check{max-width:760px}
.hg-agr-done{margin:0;padding:12px 18px;background:#e3f5e8;color:#17643a;font-weight:600}
.hg-agr-done[hidden]{display:none}
.hg-auth-legal{align-items:flex-start!important;font-size:14px}
.hg-auth-legal input{margin-top:4px}
.hg-hub-btn--danger{border-color:#f3c7c7;color:#b42318}
.hg-hub-btn--danger:hover{border-color:#b42318;color:#b42318}
/* Blocking re-consent */
.hg-legal-modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:16px;background:rgba(7,19,61,.66)}
.hg-legal-card{width:min(560px,100%);padding:26px;background:#fff;border-radius:18px;box-shadow:0 30px 80px rgba(0,0,0,.35)}
.hg-legal-card h2{margin:0 0 8px;color:var(--hub-navy)}
.hg-legal-links{display:flex;flex-wrap:wrap;gap:16px;font-weight:700}
.hg-legal-card .hg-auth-check{display:flex;align-items:flex-start;gap:10px;margin:16px 0;font-weight:500}
.hg-legal-card .hg-auth-check input{margin-top:4px}
.hg-legal-actions{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
/* Install as an app */
.hg-install{position:fixed;left:16px;right:16px;bottom:16px;z-index:60;display:flex;align-items:center;gap:12px;max-width:520px;margin:0 auto;padding:12px 14px;background:#fff;border:1px solid var(--hub-line);border-radius:16px;box-shadow:0 18px 40px rgba(0,29,110,.25)}
.hg-install[hidden]{display:none}
.hg-install img{width:40px;height:40px;border-radius:10px}
.hg-install p{margin:0;flex:1;font-size:14px}
.hg-install p strong{display:block;color:var(--hub-navy)}
.hg-install button.hg-install-x{border:0;background:none;font-size:20px;line-height:1;color:var(--hub-muted);cursor:pointer}.hg-agr-entity{margin:0;padding:8px 18px;background:#f5f7fc;border-bottom:1px solid var(--hub-line);font-size:13px;color:var(--hub-muted)}
/* Top right: photo + name on every screen; long names end with an ellipsis, never overflow */
.hg-hub-me{min-width:0;max-width:280px}.hg-hub-me img{flex:none;width:32px;height:32px;object-fit:cover}.hg-hub-me-name{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:360px){.hg-hub-me{max-width:46vw}.hg-hub-me-name{font-size:13px}}
/* Top right corner: name first, then the photo */
.hg-hub-me{flex-direction:row-reverse;padding:4px 4px 4px 12px;margin-left:auto}

/* Owner 2026-11-25: sidebar
   - computer: the ☰ button is always there and folds the sidebar away / back (remembered per device);
   - phone/tablet: no scrollbar in the slide-in menu (it still scrolls), the page behind does not scroll while it is open. */
.hg-hub-menu{display:block;flex:none}
.hg-hub-side{transition:padding .2s,opacity .2s}
@media (min-width:901px){
  .hg-hub-body{transition:grid-template-columns .2s}
  .hg-hub-body.is-collapsed{grid-template-columns:0 minmax(0,1fr)}
  .hg-hub-body.is-collapsed .hg-hub-side{visibility:hidden;opacity:0;padding-left:0;padding-right:0;border-right:0;overflow:hidden}
}
@media (max-width:900px){
  .hg-hub-side{scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior:contain}
  .hg-hub-side::-webkit-scrollbar{display:none;width:0;height:0}
  body.hg-hub:has(.hg-hub-body.is-open){overflow:hidden}
}
/* Sign-up: First / Last name side by side, short hint under Username (owner 2026-11-28). */
.hg-auth-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.hg-auth-row>label{min-width:0}.hg-auth-row input{width:100%;min-width:0;box-sizing:border-box}
@media (max-width:420px){.hg-auth-row{grid-template-columns:1fr}}
.hg-auth-hint{font-weight:400;font-size:12px;color:#5a6f88}
