/* IMB Digital Hub · Home for HiWis, Supervisors and Coordinators (V3.25)
   Apps first: a slim greeting, then one large tile per app (open + install), then locked apps.
   Account, access by app and guides follow. Hub Managers are not affected (#home.v325 is only
   set in member mode). */

/* ── page order ───────────────────────────────────────────────────────── */
/* V3.30: the Home layout applies only while Home is the open page */
:is(html,#q325#q325#q325) body #home#home.v325:not(.active-view){display:none!important}
:is(html,#q325#q325#q325) body #home#home.v325.active-view{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:22px!important;align-items:start!important}
:is(html,#q325#q325#q325) body #home#home.v325>*{grid-column:1/-1;order:20;margin:0!important;min-width:0}
:is(html,#q325#q325#q325) body #home#home.v325>.home-intro{order:1}
:is(html,#q325#q325#q325) body #home#home.v325>#homeLaunchV325{order:3}
:is(html,#q325#q325#q325) body #home#home.v325>#homeAccessHowProd{order:4;display:none!important}
:is(html,#q325#q325#q325) body #home#home.v325.v325-how-open>#homeAccessHowProd{display:flex!important}
:is(html,#q325#q325#q325) body #home#home.v325>#homeGridV150,
:is(html,#q325#q325#q325) body #home#home.v325 #homeMainV150{display:contents!important}
:is(html,#q325#q325#q325) body #home#home.v325 #homeMainV150>*{grid-column:1/-1;order:2;margin:0!important}
:is(html,#q325#q325#q325) body #home#home.v325 #homeMainV150>:is(#homeAppsHeadProd,#appCardsV147,#appCards,#noApps,#homeMoreV150,.h147-label,.prod-apps-head){display:none!important}
:is(html,#q325#q325#q325) body #home#home.v325 #homeSideV150,
:is(html,#q325#q325#q325) body #home#home.v325>#homeRoleInfoProd{display:none!important}
:is(html,#q325#q325#q325) body #home#home.v325>#homeAccountV326{order:5}
:is(html,#q325#q325#q325) body #home#home.v325>#homeGuidesProd{order:8}
:is(html,#q325#q325#q325) body #home#home.v325{row-gap:30px!important}
:is(html,#q325#q325#q325) body #home#home.v325>.home-intro{margin-bottom:-6px!important}

/* ── slim greeting ─────────────────────────────────────────────────────── */
:is(html,#q325#q325#q325) body #home#home.v325>.home-intro.prod-home-hero{min-height:0!important;padding:24px 30px!important}
:is(html,#q325#q325#q325) body #home#home.v325>.home-intro.prod-home-hero>div{min-height:0!important;justify-content:center!important}
:is(html,#q325#q325#q325) body #home#home.v325>.home-intro.prod-home-hero h1{font-size:clamp(24px,2.3vw,30px)!important;margin:4px 0 6px!important}
:is(html,#q325#q325#q325) body #home#home.v325>.home-intro.prod-home-hero .prod-hero-description{margin-top:4px!important}
@media (max-width:700px){
  :is(html,#q325#q325#q325) body #home#home.v325>.home-intro.prod-home-hero{padding:0!important;min-height:0!important;height:auto!important;grid-template-rows:auto!important;background:#0b3b69!important}
  :is(html,#q325#q325#q325) body #home#home.v325>.home-intro.prod-home-hero::before,
  :is(html,#q325#q325#q325) body #home#home.v325>.home-intro.prod-home-hero::after{display:none!important}
  :is(html,#q325#q325#q325) body #home#home.v325>.home-intro.prod-home-hero>*{position:relative;z-index:2}
  :is(html,#q325#q325#q325) body #home#home.v325>.home-intro.prod-home-hero .prod-hero-description,
  :is(html,#q325#q325#q325) body #home#home.v325>.home-intro.prod-home-hero .prod-hero-location{display:none!important}
  :is(html,#q325#q325#q325) body #home#home.v325>.home-intro.prod-home-hero h1{font-size:23px!important;margin:2px 0 4px!important}
  :is(html,#q325#q325#q325) body #home#home.v325>.home-intro.prod-home-hero .prod-hero-meta{margin:0!important}
}

/* ── Your apps ─────────────────────────────────────────────────────────── */
#homeLaunchV325{--app:var(--h7-blue,#00549f);--app-on:#fff;--app-tint:var(--h7-blue-tint,#e7f0fa)}
#homeLaunchV325 .v325-head{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title how" "text how";align-items:center;column-gap:16px;margin:0 0 14px}
#homeLaunchV325 .v325-head>div{display:contents}
#homeLaunchV325 .v325-head h2{grid-area:title}
#homeLaunchV325 .v325-head p{grid-area:text}
#homeLaunchV325 .v325-how-btn{grid-area:how}
@media (max-width:560px){#homeLaunchV325 .v325-head{grid-template-areas:"title how" "text text"}#homeLaunchV325 .v325-how-btn{height:32px;padding:0 11px;font-size:12.5px}#homeLaunchV325 .v325-head p{font-size:13.5px}}
#homeLaunchV325 .v325-head h2{margin:0!important;font-size:22px!important;line-height:1.2!important;font-weight:750!important;color:var(--h7-ink)!important;letter-spacing:-.01em}
#homeLaunchV325 .v325-head p{margin:4px 0 0!important;font-size:14.5px;line-height:1.45;color:var(--h7-muted)}
#homeLaunchV325 .v325-how-btn{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 13px;border-radius:999px;border:1px solid var(--h7-line);background:var(--h7-panel);color:var(--h7-ink-2,var(--h7-ink));font:600 13.5px/1 inherit;cursor:pointer;white-space:nowrap}
#homeLaunchV325 .v325-how-btn svg{width:17px;height:17px;color:var(--h7-blue)}
#homeLaunchV325 .v325-how-btn:hover,#homeLaunchV325 .v325-how-btn[aria-expanded="true"]{border-color:var(--h7-blue);background:var(--h7-blue-tint)}
#homeLaunchV325 :focus-visible{outline:3px solid color-mix(in srgb,var(--h7-blue) 45%,transparent);outline-offset:2px}

/* one column grid shared by app tiles, account cards and guides, so their edges line up */
#home.v325 .v326-grid{display:grid;grid-template-columns:repeat(var(--v326-cols,1),minmax(0,1fr));gap:20px;align-items:stretch}
#homeLaunchV325 .v325-tiles[data-count="1"]>.v325-tile{grid-column:1/-1}

/* one tile */
#homeLaunchV325 .v325-tile{container:v325tile/inline-size;position:relative;display:flex;flex-direction:column;min-width:0;overflow:hidden;
  border:1px solid var(--h7-line);border-radius:20px;background:var(--h7-panel);box-shadow:var(--h7-shadow);
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
#homeLaunchV325 .v325-tile::before{content:"";position:absolute;inset:0 0 auto 0;height:5px;background:var(--app)}
#homeLaunchV325 .v325-tile:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--app) 45%,var(--h7-line));box-shadow:0 2px 4px rgba(15,31,51,.06),0 16px 34px rgba(15,31,51,.12)}
#homeLaunchV325 .v325-tile[data-app="hiwilog"]{--app:#3b4cca;--app-tint:#ebedfc}
#homeLaunchV325 .v325-tile[data-app="event_navigator"]{--app:#0a5dbb;--app-tint:#e3effb}

#homeLaunchV325 .v325-tile-link{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:14px;padding:26px 24px 22px;color:inherit!important;text-decoration:none!important;flex:1}
#homeLaunchV325 .v325-tile-link:focus-visible{outline-offset:-4px;border-radius:20px}
#homeLaunchV325 .v325-tile-top{display:flex;align-items:center;gap:16px;min-width:0}
#homeLaunchV325 .v325-ic{flex:none;display:grid;place-items:center;width:62px;height:62px;border-radius:16px;background:var(--app-tint)}
#homeLaunchV325 .v325-ic :is(img,svg){width:40px;height:40px;display:block}
#homeLaunchV325 .v325-titles{display:flex;flex-direction:column;gap:6px;min-width:0}
#homeLaunchV325 .v325-name{font-size:22px;line-height:1.15;font-weight:750;color:var(--h7-ink);letter-spacing:-.01em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#homeLaunchV325 .v325-role{align-self:flex-start;display:inline-flex;align-items:center;max-width:100%;padding:4px 10px;border-radius:999px;background:var(--app-tint);color:var(--app);font-size:12.5px;line-height:1.2;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#homeLaunchV325 .v325-role b{font-weight:750;margin-left:3px}
#homeLaunchV325 .v325-desc{font-size:14.5px;line-height:1.5;color:var(--h7-muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
#homeLaunchV325 .v325-open{justify-self:start;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 22px;border-radius:13px;
  background:var(--app);color:var(--app-on);font-size:15.5px;font-weight:680;white-space:nowrap;box-shadow:0 1px 2px rgba(15,31,51,.12),0 6px 16px color-mix(in srgb,var(--app) 30%,transparent);transition:background .15s ease}
#homeLaunchV325 .v325-open svg{width:19px;height:19px;transition:transform .16s ease}
#homeLaunchV325 .v325-tile:hover .v325-open{background:color-mix(in srgb,var(--app) 86%,#000)}
#homeLaunchV325 .v325-tile:hover .v325-open svg{transform:translateX(3px)}

/* install row */
#homeLaunchV325 .v325-install{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;padding:12px 24px 14px;border-top:1px solid var(--h7-line-soft);background:var(--h7-soft)}
#homeLaunchV325 .v325-install-btn{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 14px;border-radius:11px;border:1px solid color-mix(in srgb,var(--app) 35%,var(--h7-line));background:var(--h7-panel);color:var(--app);font:650 14px/1 inherit;cursor:pointer;white-space:nowrap;transition:background .15s ease,border-color .15s ease}
#homeLaunchV325 .v325-install-btn svg{width:19px;height:19px}
#homeLaunchV325 .v325-install-btn:hover{background:var(--app-tint);border-color:var(--app)}
#homeLaunchV325 .v325-install-hint{font-size:12.5px;line-height:1.35;color:var(--h7-muted)}
#homeLaunchV325 .v325-done{display:inline-flex;align-items:center;gap:7px;min-height:40px;font-size:13.5px;font-weight:600;color:var(--h7-green,#11795a)}
#homeLaunchV325 .v325-done svg{width:18px;height:18px}

/* a wide tile (one app on a computer): name and text on the left, Open on the right */
@container v325tile (min-width:800px){
  #homeLaunchV325 .v325-tile-link{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"top open" "desc open";column-gap:28px;row-gap:12px;align-items:center;padding:26px 28px 24px}
  #homeLaunchV325 .v325-tile-top{grid-area:top}
  #homeLaunchV325 .v325-desc{grid-area:desc;padding-left:78px;-webkit-line-clamp:3;max-width:70ch}
  #homeLaunchV325 .v325-open{grid-area:open;align-self:center;min-height:52px;padding:0 26px;font-size:16px}
  #homeLaunchV325 .v325-install{padding:12px 28px 14px 106px}
}
/* narrow tiles (small phones): Open fills the width */
@container v325tile (max-width:380px){
  #homeLaunchV325 .v325-tile-link{padding:22px 18px 18px;gap:12px}
  #homeLaunchV325 .v325-ic{width:54px;height:54px;border-radius:14px}
  #homeLaunchV325 .v325-ic :is(img,svg){width:34px;height:34px}
  #homeLaunchV325 .v325-name{font-size:20px}
  #homeLaunchV325 .v325-open{justify-self:stretch}
  #homeLaunchV325 .v325-install{padding:10px 18px 12px}
  #homeLaunchV325 .v325-install-btn{flex:1 1 auto;justify-content:center}
  #homeLaunchV325 .v325-install-hint{display:none}
}

/* ── apps not in your access: same tile, quiet ──────────────────────────── */
#homeLaunchV325 .v326-locked{background:var(--h7-soft);border-style:dashed;box-shadow:none}
#homeLaunchV325 .v326-locked::before{background:var(--h7-line)}
#homeLaunchV325 .v326-locked:hover{transform:none;box-shadow:none;border-color:var(--h7-line)}
#homeLaunchV325 .v326-locked .v325-ic{background:var(--h7-panel);border:1px solid var(--h7-line-soft)}
#homeLaunchV325 .v326-locked .v325-ic :is(img,svg){filter:grayscale(1);opacity:.6}
#homeLaunchV325 .v326-locked .v325-name{color:var(--h7-ink-2,var(--h7-ink))}
#homeLaunchV325 .v326-lock-chip{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;border:1px solid var(--h7-line);background:var(--h7-panel);color:var(--h7-muted);font-size:12.5px;font-weight:600;white-space:nowrap}
#homeLaunchV325 .v326-lock-chip svg{width:14px;height:14px}
#homeLaunchV325 .v326-ask-btn{justify-self:start;display:inline-flex;align-items:center;gap:9px;min-height:48px;padding:0 20px;border-radius:13px;border:1px solid var(--h7-line);background:var(--h7-panel);color:var(--h7-ink-2,var(--h7-ink));font-size:15px;font-weight:650;text-decoration:none!important;white-space:nowrap;transition:border-color .15s ease,background .15s ease}
#homeLaunchV325 .v326-ask-btn svg{width:18px;height:18px;color:var(--h7-muted)}
#homeLaunchV325 .v326-ask-btn:hover{border-color:var(--h7-blue);color:var(--h7-blue);background:var(--h7-blue-tint)}
@container v325tile (max-width:380px){#homeLaunchV325 .v326-ask-btn{justify-self:stretch;justify-content:center}}
#homeLaunchV325 .v326-ask{background:transparent;border-top-style:dashed;color:var(--h7-muted);font-size:13px;line-height:1.4;margin-top:auto;min-height:66px}
#homeLaunchV325 .v326-ask>span{display:flex;align-items:flex-start;gap:8px}
#homeLaunchV325 .v326-ask svg{flex:none;width:17px;height:17px;margin-top:1px;color:var(--h7-muted)}
#homeLaunchV325 .v325-install{margin-top:auto;min-height:66px}

/* ── Your account ──────────────────────────────────────────────────────── */
#homeAccountV326 .v325-head{display:block;margin:0 0 14px}
#homeAccountV326 .v325-head h2{margin:0!important;font-size:22px!important;line-height:1.2!important;font-weight:750!important;color:var(--h7-ink)!important;letter-spacing:-.01em}
#homeAccountV326 .v325-head p{margin:4px 0 0!important;font-size:14.5px;line-height:1.45;color:var(--h7-muted)}
/* V3.39: the account grid carries its own column count */
#homeAccountV326 .v326-acc-grid[data-cols="3"] .v326-access{grid-column:span 2}
#homeAccountV326 .v326-acc-grid[data-cols="4"]>.v326-card{grid-column:span 2}
#homeAccountV326 .v326-card{display:flex;flex-direction:column;min-width:0;padding:22px 24px 0;border:1px solid var(--h7-line);border-radius:20px;background:var(--h7-panel);box-shadow:var(--h7-shadow)}
#homeAccountV326 .v326-card-head{display:flex;align-items:center;gap:14px;min-width:0;margin-bottom:16px}
#homeAccountV326 .v326-card-head h3{margin:0!important;font-size:17px!important;line-height:1.25!important;font-weight:720!important;color:var(--h7-ink)!important}
#homeAccountV326 .v326-card-head p{margin:3px 0 0!important;font-size:13.5px;line-height:1.45;color:var(--h7-muted)}
#homeAccountV326 .v326-avatar{flex:none;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--h7-blue-tint);color:var(--h7-blue);font-weight:750;font-size:15px}
#homeAccountV326 .v326-who{display:flex;flex-direction:column;gap:2px;min-width:0}
#homeAccountV326 .v326-who>span{font-size:13.5px;color:var(--h7-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#homeAccountV326 .v326-label{margin:0 0 4px!important;font-size:11.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--h7-muted)}
#homeAccountV326 :is(.v326-ways,.v326-accs){list-style:none;margin:0;padding:0}
#homeAccountV326 .v326-way{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px 14px;padding:13px 0;border-top:1px solid var(--h7-line-soft)}
#homeAccountV326 .v326-way:first-child{border-top:0}
#homeAccountV326 .v326-way-ic{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--h7-soft);color:var(--h7-blue)}
#homeAccountV326 .v326-way-ic svg{width:19px;height:19px}
#homeAccountV326 .v326-way.is-off .v326-way-ic{background:var(--h7-blue-tint)}
#homeAccountV326 .v326-way-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
#homeAccountV326 .v326-way-copy strong{font-size:14.5px;font-weight:650;color:var(--h7-ink)}
#homeAccountV326 .v326-way-copy small{font-size:12.8px;line-height:1.4;color:var(--h7-muted)}
#homeAccountV326 .v326-state{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:999px;font-size:12.5px;font-weight:650;white-space:nowrap}
#homeAccountV326 .v326-state.on{background:var(--h7-green-tint,#e3f4ec);color:var(--h7-green,#11795a)}
#homeAccountV326 .v326-state svg{width:14px;height:14px}
#homeAccountV326 .v326-btn{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 14px;border-radius:10px;border:1px solid var(--h7-line);background:var(--h7-panel);color:var(--h7-blue);font:650 13.5px/1 inherit;white-space:nowrap;cursor:pointer;transition:background .15s ease,border-color .15s ease}
#homeAccountV326 .v326-btn:hover{border-color:var(--h7-blue);background:var(--h7-blue-tint)}
#homeAccountV326 .v326-btn.primary{background:var(--h7-blue);border-color:var(--h7-blue);color:#fff}
#homeAccountV326 .v326-btn.primary:hover{background:var(--h7-blue-ink)}
#homeAccountV326 .v326-btn:disabled{opacity:.6;cursor:progress}
#homeAccountV326 .v326-card-foot{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;margin:auto -24px 0;padding:13px 24px 15px;border-top:1px solid var(--h7-line-soft);background:var(--h7-soft);border-radius:0 0 20px 20px;min-height:66px}
#homeAccountV326 .v326-device{display:flex;align-items:flex-start;gap:8px;min-width:0;flex:1 1 220px;font-size:13px;line-height:1.45;color:var(--h7-muted)}
#homeAccountV326 .v326-device svg{flex:none;width:17px;height:17px;margin-top:1px}
#homeAccountV326 .v326-device a{color:var(--h7-blue);font-weight:650;text-decoration:none}
#homeAccountV326 .v326-device a:hover{text-decoration:underline}
#homeAccountV326 .v326-link{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:0 12px;border-radius:10px;border:1px solid var(--h7-line);background:var(--h7-panel);color:var(--h7-blue);font:650 13.5px/1 inherit;cursor:pointer;white-space:nowrap}
#homeAccountV326 .v326-link svg{width:16px;height:16px}
#homeAccountV326 .v326-link svg:last-child{width:14px;height:14px;margin-left:-2px}
#homeAccountV326 .v326-link:hover{border-color:var(--h7-blue);background:var(--h7-blue-tint)}
#homeAccountV326 .v326-acc{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:14px;padding:14px 0;border-top:1px solid var(--h7-line-soft)}
#homeAccountV326 .v326-acc:first-child{border-top:0;padding-top:4px}
#homeAccountV326 .v326-acc-ic{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--h7-soft)}
#homeAccountV326 .v326-acc-ic :is(img,svg){width:28px;height:28px}
#homeAccountV326 .v326-acc-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
#homeAccountV326 .v326-acc-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#homeAccountV326 .v326-acc-top strong{font-size:15px;font-weight:680;color:var(--h7-ink)}
#homeAccountV326 .v326-acc-role{display:inline-flex;padding:3px 9px;border-radius:999px;background:var(--h7-blue-tint);color:var(--h7-blue);font-size:12px;font-weight:700}
#homeAccountV326 .v326-acc-role[data-app="hiwilog"]{background:#ebedfc;color:#3b4cca}
#homeAccountV326 .v326-acc-role[data-app="event_navigator"]{background:#e3effb;color:#0a5dbb}
#homeAccountV326 .v326-acc-copy small{font-size:13px;line-height:1.45;color:var(--h7-muted)}
#homeAccountV326 .v326-empty{margin:0 0 18px;color:var(--h7-muted)}
#homeAccountV326 .v326-card>ul{margin-bottom:12px}
/* a taller neighbour: the sign-in rows spread out instead of leaving a gap above the footer */
#homeAccountV326 .v326-signin .v326-ways{flex:1 0 auto;display:flex;flex-direction:column;justify-content:space-evenly}
#homeAccountV326 .v326-access .v326-how{margin-top:auto}
#homeAccountV326 .v326-signin .v326-how{margin-top:8px}
#homeAccountV326 :focus-visible{outline:3px solid color-mix(in srgb,var(--h7-blue) 45%,transparent);outline-offset:2px}
@media (max-width:420px){
  #homeAccountV326 .v326-card{padding:18px 16px 0}
  #homeAccountV326 .v326-card-foot{margin:auto -16px 0;padding:12px 16px 14px}
  #homeAccountV326 .v326-way{grid-template-columns:auto minmax(0,1fr);row-gap:8px}
  #homeAccountV326 .v326-way>:is(.v326-btn,.v326-state){grid-column:2;justify-self:start}
  #homeAccountV326 .v326-link{width:100%;justify-content:center}
}

#homeAccountV326 .v326-how{margin:6px 0 20px;padding:14px 16px;border-radius:14px;background:var(--h7-soft);border:1px solid var(--h7-line-soft)}
#homeAccountV326 .v326-how ol{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:8px}
#homeAccountV326 .v326-how li{display:grid;grid-template-columns:22px minmax(0,1fr);gap:10px;align-items:start;font-size:13px;line-height:1.45;color:var(--h7-ink-2,var(--h7-ink))}
#homeAccountV326 .v326-how li b{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--h7-panel);border:1px solid var(--h7-line);color:var(--h7-blue);font-size:11.5px;font-weight:750}
#homeAccountV326 .v326-access .v326-accs{margin-bottom:6px}

/* ── User guides: same section head and grid as above ─────────────────── */
:is(html,#q325#q325#q325) body #home#home.v325>#homeGuidesProd{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important}
:is(html,#q325#q325#q325) body #home#home.v325>#homeGuidesProd .prod-guides-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 0 14px!important;padding:0!important}
:is(html,#q325#q325#q325) body #home#home.v325>#homeGuidesProd .prod-guides-head h2{margin:0!important;font-size:22px!important;line-height:1.2!important;font-weight:750!important;color:var(--h7-ink)!important;letter-spacing:-.01em}
:is(html,#q325#q325#q325) body #home#home.v325>#homeGuidesProd .prod-guides-head p{margin:4px 0 0!important;font-size:14.5px!important;line-height:1.45;color:var(--h7-muted)!important;max-width:70ch}
:is(html,#q325#q325#q325) body #home#home.v325>#homeGuidesProd .prod-guides-grid{display:grid!important;grid-template-columns:repeat(var(--v326-cols,1),minmax(0,1fr))!important;gap:20px!important;align-items:start!important}
:is(html,#q325#q325#q325) body #home#home.v325>#homeGuidesProd .prod-guide{display:flex!important;align-items:flex-start!important;gap:14px!important;padding:18px 20px!important;border:1px solid var(--h7-line)!important;border-radius:20px!important;background:var(--h7-panel)!important;box-shadow:var(--h7-shadow)!important;min-height:0!important;transition:transform .16s ease,border-color .16s ease}
:is(html,#q325#q325#q325) body #home#home.v325>#homeGuidesProd .prod-guide:hover{transform:translateY(-2px);border-color:var(--h7-blue)!important}
:is(html,#q325#q325#q325) body #home#home.v325>#homeGuidesProd .prod-guide img{width:40px!important;height:40px!important;flex:none}

/* ── dark mode: slate surfaces, light app colours ──────────────────────── */
html[data-theme="dark"] #homeLaunchV325 .v325-tile[data-app="hiwilog"]{--app:#8794ff;--app-tint:#232a52;--app-on:#0e111b}
html[data-theme="dark"] #homeLaunchV325 .v325-tile[data-app="event_navigator"]{--app:#63b7ed;--app-tint:#14304a;--app-on:#08131f}
html[data-theme="dark"] #homeLaunchV325 .v325-tile:not([data-app="hiwilog"]):not([data-app="event_navigator"]){--app-on:#08131f}
html[data-theme="dark"] #homeLaunchV325 .v325-tile:hover{box-shadow:0 2px 4px rgba(0,0,0,.3),0 16px 34px rgba(0,0,0,.35)}
html[data-theme="dark"] #homeLaunchV325 .v325-tile:hover .v325-open{background:color-mix(in srgb,var(--app) 86%,#fff)}

html[data-theme="dark"] #homeAccountV326 .v326-acc-role[data-app="hiwilog"]{background:#232a52;color:#a3adff}
html[data-theme="dark"] #homeAccountV326 .v326-acc-role[data-app="event_navigator"]{background:#14304a;color:#8cc8f2}
html[data-theme="dark"] #homeAccountV326 .v326-btn.primary{color:#08131f}
html[data-theme="dark"] #homeLaunchV325 .v326-locked{background:transparent}
@media (prefers-reduced-motion:reduce){#homeLaunchV325 .v325-tile,#homeLaunchV325 .v325-open svg{transition:none}#homeLaunchV325 .v325-tile:hover{transform:none}}

/* ── V3.26 · sign-in windows on phones: as tall as their content, not the whole screen ── */
@media (max-width:700px){
  :is(html,#q326#q326#q326#q326) .modal-backdrop.auth-win>.modal{height:auto!important;max-height:calc(100dvh - 12px)!important}
  :is(html,#q326#q326#q326#q326) .modal-backdrop.auth-win>.modal>.w150-body{flex:0 1 auto!important;overflow:auto!important}
}

/* ── V3.27 · User guides: same head, grid and card language as the sections above ── */
:is(html,#q325#q325#q325) body #home#home.v325>#homeGuidesProd{display:none!important}
:is(html,#q325#q325#q325) body #home#home.v325>#homeGuidesV327{order:8}
#homeGuidesV327{--g:var(--h7-blue);--g-tint:var(--h7-blue-tint)}
#homeGuidesV327 .v327-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;column-gap:16px;margin:0 0 14px}
#homeGuidesV327 .v327-head h2{margin:0!important;font-size:22px!important;line-height:1.2!important;font-weight:750!important;color:var(--h7-ink)!important;letter-spacing:-.01em}
#homeGuidesV327 .v327-head p{margin:4px 0 0!important;font-size:14.5px;line-height:1.45;color:var(--h7-muted)}
#homeGuidesV327 .v327-all{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px 0 14px;border-radius:999px;border:1px solid var(--h7-line);background:var(--h7-panel);color:var(--h7-blue);font-size:13.5px;font-weight:650;text-decoration:none!important;white-space:nowrap}
#homeGuidesV327 .v327-all svg{width:15px;height:15px}
#homeGuidesV327 .v327-all:hover{border-color:var(--h7-blue);background:var(--h7-blue-tint)}
#homeGuidesV327 .v327-grid>[data-span="2"]{grid-column:span 2}
#homeGuidesV327 .v327-grid>[data-span="3"]{grid-column:span 3}
#homeGuidesV327 .v327-guide{container:v327g/inline-size;position:relative;display:flex;flex-direction:column;min-width:0;overflow:hidden;padding:24px 24px 0;border:1px solid var(--h7-line);border-radius:20px;background:var(--h7-panel);box-shadow:var(--h7-shadow);color:inherit!important;text-decoration:none!important;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
#homeGuidesV327 .v327-guide::before{content:"";position:absolute;inset:0 0 auto 0;height:5px;background:var(--g)}
#homeGuidesV327 .v327-guide[data-guide="hiwilog"]{--g:#3b4cca;--g-tint:#ebedfc}
#homeGuidesV327 .v327-guide[data-guide="eventscope"]{--g:#0a5dbb;--g-tint:#e3effb}
#homeGuidesV327 .v327-guide[data-guide="getting-started"]{--g:#b3261e;--g-tint:#fbe9e7}
#homeGuidesV327 .v327-guide:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--g) 45%,var(--h7-line));box-shadow:0 2px 4px rgba(15,31,51,.06),0 16px 34px rgba(15,31,51,.12)}
#homeGuidesV327 .v327-guide:focus-visible{outline:3px solid color-mix(in srgb,var(--h7-blue) 45%,transparent);outline-offset:2px}
#homeGuidesV327 .v327-g-top{display:flex;align-items:center;gap:14px;min-width:0}
#homeGuidesV327 .v327-g-ic{flex:none;display:grid;place-items:center;width:52px;height:52px;border-radius:14px;background:var(--g-tint)}
#homeGuidesV327 .v327-g-ic :is(img,svg){width:32px;height:32px;border-radius:8px}
#homeGuidesV327 .v327-g-titles{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
#homeGuidesV327 .v327-g-kicker{font-size:11.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--g)}
#homeGuidesV327 .v327-g-title{font-size:18px;line-height:1.25;font-weight:720;color:var(--h7-ink)}
#homeGuidesV327 .v327-g-badge{flex:none;align-self:flex-start;padding:4px 10px;border-radius:999px;background:var(--h7-green-tint,#e3f4ec);color:var(--h7-green,#11795a);font-size:12px;font-weight:700;white-space:nowrap}
#homeGuidesV327 .v327-g-desc{margin:14px 0 18px;font-size:14px;line-height:1.5;color:var(--h7-muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
#homeGuidesV327 .v327-g-foot{display:flex;align-items:center;justify-content:space-between;gap:8px 14px;flex-wrap:wrap;margin:auto -24px 0;padding:12px 24px 13px;min-height:52px;border-top:1px solid var(--h7-line-soft);background:var(--h7-soft)}
#homeGuidesV327 .v327-g-for{font-size:13px;color:var(--h7-muted)}
#homeGuidesV327 .v327-g-for b{color:var(--h7-ink-2,var(--h7-ink));font-weight:700}
#homeGuidesV327 .v327-g-read{display:inline-flex;align-items:center;gap:7px;font-size:14px;font-weight:680;color:var(--g);white-space:nowrap}
#homeGuidesV327 .v327-g-read svg{width:17px;height:17px;transition:transform .16s ease}
#homeGuidesV327 .v327-guide:hover .v327-g-read svg{transform:translateX(3px)}
/* a wide card (closing a row): text beside the icon, like a wide app tile */
@container v327g (min-width:720px){
  #homeGuidesV327 .v327-g-desc{padding-left:66px;-webkit-line-clamp:2;max-width:80ch}
  #homeGuidesV327 .v327-g-foot{padding-left:90px}
}
@container v327g (max-width:340px){
  #homeGuidesV327 .v327-g-ic{width:46px;height:46px}
  #homeGuidesV327 .v327-g-ic :is(img,svg){width:28px;height:28px}
}
@media (max-width:420px){#homeGuidesV327 .v327-guide{padding:20px 18px 0}#homeGuidesV327 .v327-g-foot{margin:auto -18px 0;padding:11px 18px 12px}}
@media (max-width:560px){#homeGuidesV327 .v327-head{grid-template-columns:minmax(0,1fr);row-gap:10px}#homeGuidesV327 .v327-all{justify-self:start}}
html[data-theme="dark"] #homeGuidesV327 .v327-guide[data-guide="hiwilog"]{--g:#8794ff;--g-tint:#232a52}
html[data-theme="dark"] #homeGuidesV327 .v327-guide[data-guide="eventscope"]{--g:#63b7ed;--g-tint:#14304a}
html[data-theme="dark"] #homeGuidesV327 .v327-guide[data-guide="getting-started"]{--g:#ff8a80;--g-tint:rgba(255,138,128,.14)}
html[data-theme="dark"] #homeGuidesV327 .v327-guide:hover{box-shadow:0 2px 4px rgba(0,0,0,.3),0 16px 34px rgba(0,0,0,.35)}
@media (prefers-reduced-motion:reduce){#homeGuidesV327 .v327-guide,#homeGuidesV327 .v327-g-read svg{transition:none}#homeGuidesV327 .v327-guide:hover{transform:none}}

/* ── V3.28 · Hub Managers get the same Home: apps, Hub at a glance, account, guides ── */
:is(html,#q325#q325#q325) body #home#home.v325 :is(#homeAppsHeadProd,#appCardsV147,#appCards,#noApps,#homeMoreV150,#passkeyInviteV149){display:none!important}
/* V3.29: Hub at a glance removed from Home (People shows the same figures) */
:is(html,#q325#q325#q325) body #home#home.v325>#hubOverviewV147{display:none!important}
#home.v325 .v326-foot-links{display:flex;gap:8px;flex-wrap:wrap}
#home.v325 a.v326-link{text-decoration:none!important}
/* Hub at a glance: section head and stat cards in the same language and on the same grid */
:is(html,#q325#q325#q325) body #home#home.v325 #hubOverviewV147 .h147-overview{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;border-radius:0!important}
:is(html,#q325#q325#q325) body #home#home.v325 #hubOverviewV147 .h147-sec-head{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:12px!important;margin:0 0 14px!important;padding:0!important;flex-wrap:wrap}
:is(html,#q325#q325#q325) body #home#home.v325 #hubOverviewV147 .h147-sec-head h2{margin:0!important;font-size:22px!important;line-height:1.2!important;font-weight:750!important;color:var(--h7-ink)!important;letter-spacing:-.01em!important;text-transform:none!important}
:is(html,#q325#q325#q325) body #home#home.v325 #hubOverviewV147 .h149-sec-links{display:flex!important;gap:8px!important}
:is(html,#q325#q325#q325) body #home#home.v325 #hubOverviewV147 .h149-sec-links a{display:inline-flex!important;align-items:center!important;height:36px!important;padding:0 14px!important;border-radius:999px!important;border:1px solid var(--h7-line)!important;background:var(--h7-panel)!important;color:var(--h7-blue)!important;font-size:13.5px!important;font-weight:650!important;text-decoration:none!important}
:is(html,#q325#q325#q325) body #home#home.v325 #hubOverviewV147 .h149-sec-links a:hover{border-color:var(--h7-blue)!important;background:var(--h7-blue-tint)!important}
:is(html,#q325#q325#q325) body #home#home.v325 #hubOverviewV147 .h147-tiles{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:20px!important}
:is(html,#q325#q325#q325) body #home#home.v325[data-v326-cols="1"] #hubOverviewV147 .h147-tiles{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
:is(html,#q325#q325#q325) body #home#home.v325[data-v326-cols="3"] #hubOverviewV147 .h147-tiles{grid-template-columns:repeat(3,minmax(0,1fr))!important}
:is(html,#q325#q325#q325) body #home#home.v325 #hubOverviewV147 .h147-tile{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:4px!important;min-height:0!important;margin:0!important;padding:18px 20px!important;border:1px solid var(--h7-line)!important;border-radius:20px!important;background:var(--h7-panel)!important;box-shadow:var(--h7-shadow)!important;text-align:left!important;cursor:pointer;transition:transform .16s ease,border-color .16s ease}
:is(html,#q325#q325#q325) body #home#home.v325 #hubOverviewV147 .h147-tile:hover{transform:translateY(-2px);border-color:var(--h7-blue)!important}
:is(html,#q325#q325#q325) body #home#home.v325 #hubOverviewV147 .h147-tile>span{font-size:11.5px!important;font-weight:700!important;letter-spacing:.08em!important;text-transform:uppercase!important;color:var(--h7-muted)!important}
:is(html,#q325#q325#q325) body #home#home.v325 #hubOverviewV147 .h147-tile>b{font-size:30px!important;line-height:1.1!important;font-weight:750!important;color:var(--h7-ink)!important;font-variant-numeric:tabular-nums}
:is(html,#q325#q325#q325) body #home#home.v325 #hubOverviewV147 .h147-tile>small{font-size:13px!important;color:var(--h7-muted)!important}
@media (max-width:420px){:is(html,#q325#q325#q325) body #home#home.v325 #hubOverviewV147 .h147-tile{padding:14px 14px!important;border-radius:16px!important}:is(html,#q325#q325#q325) body #home#home.v325 #hubOverviewV147 .h147-tile>b{font-size:24px!important}}

#homeAccountV326 .v328-manage{margin:0 0 12px!important}
#homeAccountV326 .v328-manage>li{border-top:1px solid var(--h7-line-soft)}
#homeAccountV326 .v328-manage>li:first-child{border-top:0}
#homeAccountV326 a.v328-go{border-top:0!important;color:inherit!important;text-decoration:none!important;margin:0 -10px;padding:12px 10px;border-radius:12px;transition:background .15s ease}
#homeAccountV326 a.v328-go:hover{background:var(--h7-soft)}
#homeAccountV326 a.v328-go>svg:last-child{width:16px;height:16px;color:var(--h7-muted)}
#homeAccountV326 .v328-manage-label{margin-top:8px!important}
/* managers: both lists may spread a little when the other card is taller */
#home.v328-manager #homeAccountV326 .v326-access .v328-manage{flex:1 0 auto;display:flex;flex-direction:column;justify-content:space-between}
/* long role names (for example "Hub Manager · full HiwiLog") wrap instead of being cut on small phones */
#homeLaunchV325 .v325-role{white-space:normal!important;overflow:visible!important;line-height:1.3}

/* V3.34 · "Installed on this device" with a quiet way to install again */
#homeLaunchV325 .v325-install.is-done{justify-content:space-between}
#homeLaunchV325 .v325-again{border:0;background:none;padding:6px 2px;color:var(--h7-muted);font:600 12.5px/1.2 inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
#homeLaunchV325 .v325-again:hover{color:var(--app)}

/* V3.35 · Install the Digital Hub (next to "Your apps") */
#homeLaunchV325 .v325-head h2{white-space:nowrap}
#homeLaunchV325 .v335-hub .v335-short{display:none}
@media (max-width:400px){#homeLaunchV325 .v335-hub .v335-long{display:none}#homeLaunchV325 .v335-hub .v335-short{display:inline}#homeLaunchV325 .v335-hub{padding:0 11px}}
/* V3.39: in narrower cards a long role wraps as one sentence (inline-flex split "Your role:" and the role into two columns) */
#homeLaunchV325 .v325-role{display:inline-block!important;border-radius:12px}
#homeLaunchV325 .v325-role b{margin-left:2px}
