/* =========================================================================
   INNOWORK Home Hub  (route: /home-hub)
   All selectors are prefixed .hh- so nothing leaks into style.max.css / Bootstrap 3.
   Brand colours come from the INNOWORK brand guide (navy / magenta / lavender).
   Font: inherits Roboto from the platform.
   ========================================================================= */
.hh,.hh-modal{
  --navy:#150F3F; --mag:#7D1675; --soft:#93478F; --lav:#EBC4F9; --lilac:#E3E7F3;
  --cream:#F3F1F4; --body:#2A2350; --line:#E5E0EA;
}
.hh{
  position:relative; min-height:100vh; background:var(--cream); color:var(--body);
  line-height:1.45; overflow:hidden; display:flex; flex-direction:column;
  font-family:Roboto,"Helvetica Neue",Arial,sans-serif;
}
.hh *,.hh *:before,.hh *:after{box-sizing:border-box}
.hh a{color:inherit;text-decoration:none}
.hh a:hover,.hh a:focus{color:inherit;text-decoration:none}
.hh button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;text-align:left;padding:0}
.hh button:focus{outline:2px solid var(--mag);outline-offset:2px}

/* ---- decorative background ---- */
.hh-bg{position:fixed;inset:0;overflow:hidden;z-index:0;pointer-events:none}
.hh-blob{position:absolute}
.hh-top,.hh-tools,.hh-main,.hh-foot{position:relative;z-index:1}

/* ---- company background image (set in Home page appearance settings) ---- */
.hh-bgimg{position:absolute;inset:0;background-size:cover;background-position:center;background-repeat:no-repeat}
.hh-bgimg:after{content:"";position:absolute;inset:0;background:rgba(243,241,244,var(--hh-overlay,.85))}  /* keeps text readable */
.hh-bg.custom .hh-blob{display:none}

/* ---- header ---- */
.hh-top{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 32px 6px}
.hh-top img{height:44px;max-width:240px;object-fit:contain;display:block}
.hh-title{text-align:center;flex:1}
.hh-eyebrow{font-size:12px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:var(--mag)}
.hh-title h1{margin:0;font-size:clamp(22px,2.6vw,32px);color:var(--navy);font-weight:800;line-height:1.15}
.hh-actions{display:flex;gap:8px}
.hh-pill{display:inline-flex;align-items:center;gap:7px;padding:8px 16px;border-radius:999px;border:2px solid var(--navy);
  color:var(--navy)!important;font-weight:700;font-size:14px;background:rgba(255,255,255,.75);transition:.2s}
.hh-pill:hover{background:var(--navy);color:#fff!important}

/* ---- toolbar (nudges + view switch) ---- */
.hh-tools{display:flex;gap:10px;align-items:flex-start;flex-wrap:wrap;padding:6px 32px 0}
.hh-nudges{display:flex;gap:10px;flex:1;min-width:0;flex-wrap:wrap}
.hh-view{margin-left:auto;display:inline-flex;background:#fff;border:1.5px solid var(--line);border-radius:999px;padding:3px}
.hh-view button{padding:7px 16px;border-radius:999px;font-weight:800;font-size:13.5px;color:var(--navy);text-align:center}
.hh-view button.on{background:var(--navy);color:#fff}
.hh-scope{font-size:12.5px;color:var(--soft);font-weight:700;display:flex;align-items:center;gap:6px;margin:0 8px}
.hh-scope input{margin:0}

.hh-nudge{display:flex;gap:11px;align-items:flex-start;background:#fff;border:1.5px solid var(--line);border-left:4px solid var(--mag);
  border-radius:16px;padding:9px 12px;max-width:430px;flex:1 1 300px;box-shadow:0 10px 24px -20px rgba(21,15,63,.5);position:relative}
.hh-nudge.gift{border-left-color:var(--soft);background:linear-gradient(135deg,#fff 50%,#F7E3FB);max-width:640px;flex:1 1 420px}
.hh-ni{width:34px;height:34px;border-radius:50%;background:var(--lav);display:grid;place-items:center;flex-shrink:0;font-size:17px;color:var(--mag)}
.hh-nt{font-size:12.5px;line-height:1.35;color:var(--body);padding-right:16px}
.hh-nt b{display:block;color:var(--navy);font-size:13.5px}
.hh-nt small{display:inline-block;font-size:9.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--mag);background:var(--lav);border-radius:999px;padding:1px 7px;margin-bottom:3px}
.hh-go{display:inline-block;margin-top:4px;color:var(--mag);font-weight:800;font-size:12.5px}
.hh-go:hover{text-decoration:underline}
.hh-chips{display:flex;flex-wrap:wrap;gap:2px 16px;margin-top:3px}
.hh-x{position:absolute;top:5px;right:7px;color:var(--soft);font-size:16px;line-height:1;cursor:pointer}

/* ---- lanes + tiles ---- */
.hh-main{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:10px;padding:8px 32px 10px}
.hh-tip{font-size:12.5px;color:var(--soft);font-weight:600;padding:0 4px}
.hh-lane{background:rgba(255,255,255,.72);border-radius:22px;padding:12px 14px;display:grid;grid-template-columns:190px 1fr;
  gap:4px 16px;align-items:center;box-shadow:0 16px 36px -28px rgba(21,15,63,.45);border:1px solid #fff;flex-shrink:0}
.hh-tag{font-size:11px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--mag)}
.hh-lhead h2{margin:1px 0;font-size:23px;font-weight:800;color:var(--navy);line-height:1.1}
.hh-lhead p{margin:0;font-size:12.5px;color:var(--soft);font-weight:600;line-height:1.3}
.hh-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.hh-tile{display:flex;align-items:center;gap:11px;background:#fff;border:1.5px solid var(--line);border-radius:16px;
  padding:10px 12px;min-height:64px;position:relative;transition:.2s;cursor:pointer}
.hh-tile:hover{border-color:var(--lav);box-shadow:0 10px 22px -16px rgba(125,22,117,.55);transform:translateY(-2px)}
.hh-tile.open{border-color:var(--mag);box-shadow:0 12px 26px -16px rgba(125,22,117,.6)}
.hh-tile.open:after{content:"";position:absolute;left:50%;bottom:-11px;width:12px;height:12px;background:#fff;
  border-right:1.5px solid var(--mag);border-bottom:1.5px solid var(--mag);transform:translateX(-50%) rotate(45deg);z-index:2}
.hh-tile.soon{background:rgba(255,255,255,.55);border-style:dashed;border-color:var(--soft)}
.hh-tile.locked{background:rgba(255,255,255,.7)}
.hh-tile.locked .hh-ico{background:var(--lilac)}
.hh-tile.gift{background:linear-gradient(135deg,#fff 40%,#F7E3FB);border-color:var(--soft)}
.hh-ico{width:40px;height:40px;border-radius:50%;background:var(--lav);display:grid;place-items:center;flex-shrink:0;transition:.2s}
.hh-tile.open .hh-ico{background:var(--mag)}
.hh-ico svg{width:22px;height:22px;stroke:var(--navy);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hh-ico svg .m{stroke:var(--mag)}
.hh-tile.open .hh-ico svg,.hh-tile.open .hh-ico svg .m{stroke:#fff}
.hh-tx{flex:1;min-width:0;padding-right:18px}
.hh-nm{display:block;font-weight:800;font-size:13.5px;line-height:1.2;color:var(--navy)}
.hh-st{display:block;font-size:11px;font-weight:700;color:var(--soft);margin-top:2px}
.hh-st.on{color:var(--mag)}
.hh-st.on:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--mag);margin-right:5px}

.hh-pin{position:absolute;top:7px;right:7px;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;
  color:var(--soft);opacity:0;transition:.18s;z-index:3}
.hh-pin svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hh-tile:hover .hh-pin,.hh-pin.on,.hh-allmode .hh-pin{opacity:1}
.hh-pin:hover{background:var(--lav);color:var(--mag)}
.hh-pin.on{color:var(--mag)}
.hh-pin.on svg{fill:var(--mag)}

.hh-newb{position:absolute;top:-8px;left:-8px;width:24px;height:24px;border-radius:50%;background:var(--mag);display:grid;place-items:center;
  z-index:4;animation:hhpulse 2s infinite;cursor:pointer}
.hh-newb svg{width:13px;height:13px;fill:#fff}
@keyframes hhpulse{0%{box-shadow:0 0 0 0 rgba(125,22,117,.5)}70%{box-shadow:0 0 0 9px rgba(125,22,117,0)}100%{box-shadow:0 0 0 0 rgba(125,22,117,0)}}

/* ---- drawer (expanded product) ---- */
.hh-drawer{grid-column:1 / -1;margin-top:10px;background:#fff;border:1.5px solid var(--mag);border-radius:16px;padding:14px 18px;
  display:grid;grid-template-columns:minmax(220px,.8fr) 2fr;gap:18px;align-items:start;animation:hhfade .25s ease}
@keyframes hhfade{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.hh-drawer h3{margin:0;font-size:17px;color:var(--navy);font-weight:800;line-height:1.2}
.hh-drawer .hh-d{font-size:14px;margin:5px 0 0}
.hh-btns{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.hh-note{flex-basis:100%;font-size:12.5px;font-weight:700;color:var(--soft);margin-top:2px}
.hh .hh-btn,.hh-modal .hh-btn{display:inline-flex;align-items:center;gap:8px;margin-top:10px;padding:8px 16px;border-radius:999px;background:var(--mag);
  color:#fff!important;font-weight:700;font-size:13.5px;transition:.2s;border:2px solid var(--mag)}
.hh .hh-btn:hover,.hh-modal .hh-btn:hover{background:var(--navy);border-color:var(--navy)}
.hh .hh-btn.ghost,.hh-modal .hh-btn.ghost{background:transparent;color:var(--navy)!important;border-color:var(--navy)}
.hh .hh-btn.ghost:hover,.hh-modal .hh-btn.ghost:hover{background:var(--navy);color:#fff!important}
.hh .hh-vote{display:inline-flex;align-items:center;gap:7px;margin-top:10px;padding:6px 14px;border-radius:999px;border:2px solid var(--mag);
  color:var(--mag);font-weight:800;font-size:13.5px;transition:.18s}
.hh .hh-vote:hover,.hh .hh-vote.on{background:var(--mag);color:#fff}

.hh-mods{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:7px}
.hh-mod{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:12px;background:var(--cream);font-size:13.5px;
  font-weight:700;color:var(--navy)!important;border:1px solid transparent;transition:.18s}
a.hh-mod:hover{background:#fff;border-color:var(--mag);color:var(--mag)!important}
.hh-mod .t{flex:1}
.hh-mod i{display:block;font-style:normal;font-weight:500;font-size:11.5px;color:var(--soft)}
.hh-mod.full{background:var(--navy);color:#fff!important}
.hh-mod.full i{color:var(--lav)}
a.hh-mod.full:hover{background:var(--mag);border-color:var(--mag);color:#fff!important}
.hh-mod.dim{opacity:.6}
.hh-mod.gift{background:linear-gradient(135deg,#fff 30%,#F7E3FB);border:1.5px dashed var(--soft)}
.hh .hh-mod .hh-btn{margin:0;padding:6px 14px}

.hh-empty{background:rgba(255,255,255,.75);border:1.5px dashed var(--soft);border-radius:18px;padding:22px;text-align:center;color:var(--navy);font-weight:600}
.hh-empty b{color:var(--mag)}
.hh-loading{padding:60px;text-align:center;color:var(--soft);font-weight:700}

/* ---- footer ---- */
.hh-foot{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;padding:8px 32px 10px;font-size:12.5px;color:var(--navy);font-weight:600}
.hh-foot a{color:var(--mag);font-weight:800;margin-left:8px}

/* ---- modals (rendered by $uibModal, so NOT inside .hh: scoped by .hh-modal) ---- */
.hh-modal .modal-content{border-radius:24px;border:0;box-shadow:0 30px 70px -20px rgba(21,15,63,.6);font-family:Roboto,Arial,sans-serif}
.hh-modal .modal-body{padding:26px 26px 22px;color:#2A2350}
.hh-modal h3{margin:0;font-size:22px;color:#150F3F;font-weight:800;line-height:1.2}
.hh-modal .sub{color:#93478F;font-weight:600;font-size:14px;margin:4px 0 14px}
.hh-modal .fld{margin-bottom:11px}
.hh-modal label{font-size:12.5px;font-weight:800;color:#150F3F;margin-bottom:4px}
.hh-modal .form-control{height:auto;padding:10px 12px;border:1.5px solid #E5E0EA;border-radius:12px;box-shadow:none;font-size:14.5px;color:#150F3F}
.hh-modal .form-control:focus{border-color:#7D1675;box-shadow:0 0 0 3px rgba(125,22,117,.12)}
.hh-modal .auto{background:#F3F1F4;border-radius:14px;padding:10px 12px;font-size:12.5px;margin-bottom:12px}
.hh-modal .err{color:#7D1675;font-weight:700;font-size:13px;min-height:18px}
.hh-modal .row2{display:flex;gap:10px;justify-content:flex-end;margin-top:6px}
.hh-modal .hh-btn{margin-top:0;cursor:pointer}
.hh-modal .ok{text-align:center;padding:10px 4px}
.hh-modal .tick{width:64px;height:64px;border-radius:50%;background:#EBC4F9;display:grid;place-items:center;margin:0 auto 12px}
.hh-modal .tick svg{width:32px;height:32px;stroke:#7D1675;fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.hh-modal .news{list-style:none;padding:0;margin:0}
.hh-modal .news li{display:flex;gap:11px;padding:10px 0;border-top:1px solid #E5E0EA}
.hh-modal .news li:first-child{border-top:0}
.hh-modal .news b{display:block;color:#150F3F;font-size:14.5px}
.hh-modal .news .dot{flex-shrink:0;width:26px;height:26px;border-radius:50%;background:#EBC4F9;display:grid;place-items:center}
.hh-modal .news .dot svg{width:13px;height:13px;fill:#7D1675}

/* ---- responsive ---- */
@media (max-width:980px){
  .hh{overflow:auto}
  .hh-main{overflow:visible;padding:10px 16px}
  .hh-lane{grid-template-columns:1fr}
  .hh-strip{grid-template-columns:repeat(2,1fr)}
  .hh-drawer{grid-template-columns:1fr}
  .hh-top{flex-wrap:wrap;justify-content:center;padding:12px 16px 4px}
  .hh-tools{padding:6px 16px}
  .hh-foot{padding:8px 16px 12px;justify-content:center;text-align:center}
}
@media (max-width:620px){.hh-strip{grid-template-columns:1fr}}

/* ---- Home page appearance (settings screen) ---- */
.hh-set{max-width:760px;margin:6px auto 30px;padding:0 20px;position:relative;z-index:1}
.hh-card{background:#fff;border-radius:22px;padding:22px 24px;margin-bottom:16px;box-shadow:0 16px 36px -28px rgba(21,15,63,.45);border:1px solid #fff}
.hh-card h2{margin:0;font-size:20px;color:var(--navy);font-weight:800}
.hh-card .hint{margin:4px 0 14px;font-size:13px;color:var(--soft);font-weight:600}
.hh-up{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.hh-pv{width:200px;height:96px;border-radius:14px;background:var(--cream);border:1px solid var(--line);display:grid;place-items:center;overflow:hidden;flex-shrink:0}
.hh-pv img{max-width:100%;max-height:100%;object-fit:contain}
.hh-pv.bgp img{width:100%;height:100%;object-fit:cover}
.hh-pv span{font-size:12px;font-weight:700;color:var(--soft)}
.hh-set .hh-btn{margin-top:0}
.hh-set input[type=file]{display:none}
.hh-rng{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:700;color:var(--navy);margin-top:14px}
.hh-rng input{flex:1}
.hh-err{color:var(--mag);font-weight:700;font-size:13px;min-height:18px;margin-top:6px}
.hh-ok{color:var(--navy);font-weight:700;font-size:13px}

/* ---- 2026-11-26 platform adaptations ---- */
/* One screen on desktop: the lanes scroll inside, the page does not (handout 4.1). The settings screen keeps normal scrolling. */
.hh.hh-home{height:100vh;min-height:0}
@media (max-width:980px){.hh.hh-home{height:auto;min-height:100vh}}
/* icons inside the header pills and the Pinned switch (inline SVG, no icon font needed) */
.hh .hh-pi{display:inline-flex;width:16px;height:16px}
.hh .hh-pi svg{width:16px;height:16px}
.hh-view .hh-pi svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hh-view button{display:inline-flex;align-items:center;gap:7px}
/* the hub's global button rules must not reach the page */
.hh .hh-pin,.hh .hh-x{box-shadow:none}
@media (prefers-reduced-motion:reduce){.hh *,.hh *:before,.hh *:after{animation:none!important;transition:none!important}}
.hh-ni svg{width:18px;height:18px}
/* 2026-11-26: medium screens get three tiles per row so long product names stay readable */
@media (min-width:981px) and (max-width:1200px){.hh-strip{grid-template-columns:repeat(3,1fr)}.hh-lane{grid-template-columns:170px 1fr}}
/* phones: header stacks, the Pinned / All switch gets its own row above the cards, cards use the full width */
@media (max-width:620px){
  .hh-top{flex-direction:column;gap:10px}
  .hh-title h1{font-size:22px}
  .hh-eyebrow{letter-spacing:.12em}
  .hh-tools{flex-direction:column;align-items:stretch;gap:10px}
  .hh-view{order:-1;margin:0 auto}
  .hh-scope{order:-1;justify-content:center}
  .hh-nudges{flex-direction:column}
  .hh-nudge,.hh-nudge.gift{flex:1 1 auto;max-width:none}
  .hh-lane{padding:12px}
  .hh-foot{flex-direction:column;gap:4px}
}

/* ---- 2026-11-27 manager's review of /home-v2: bigger, aligned tiles; previous illustration on the right; no empty band ---- */
/* body = lanes (left) + illustration (right); it takes all the height between the tools row and the footer */
.hh-body{position:relative;z-index:1;flex:1;min-height:0;display:flex;gap:28px;padding:8px 32px 10px}
.hh-body .hh-main{flex:1 1 auto;min-width:0;padding:0 4px 0 0}
/* lanes share the height, content centred, so the page has no empty band under them (they still scroll when there are many) */
.hh-body .hh-lane{flex:1 0 auto;align-content:center;padding:16px 20px;grid-template-columns:210px 1fr}
.hh-lhead h2{font-size:26px}
.hh-lhead p{font-size:13.5px}
.hh-tag{font-size:12px}
/* two equal columns: tiles line up from lane to lane whatever the product count */
.hh-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.hh-tile{min-height:84px;padding:14px 16px;gap:14px;border-radius:18px}
.hh-ico{width:52px;height:52px}
.hh-ico svg{width:28px;height:28px}
.hh-nm{font-size:16.5px;line-height:1.25}
.hh-st{font-size:13px;margin-top:4px}
.hh-st.on:before{width:8px;height:8px}
.hh-tx{padding-right:24px}
/* the illustration of the previous home page (company "left image", or the default) */
.hh-art{flex:0 0 34%;max-width:560px;display:flex;align-items:center;justify-content:center;min-height:0}
.hh-art img{max-width:100%;max-height:100%;object-fit:contain;display:block}
/* All products: many lanes, keep them compact and give the width to the tiles */
.hh-allmode .hh-body .hh-lane{flex:0 0 auto}
.hh-allmode .hh-strip{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}
.hh-allmode .hh-art{flex-basis:26%}
/* medium screens: no illustration, tiles keep two columns */
@media (max-width:1200px){.hh-art{display:none}.hh-body .hh-lane{grid-template-columns:180px 1fr}}
@media (max-width:980px){
  .hh-body{display:block;padding:10px 16px}
  .hh-body .hh-main{overflow:visible;padding:0}
  .hh-body .hh-lane{grid-template-columns:1fr}
}
@media (max-width:620px){.hh-strip{grid-template-columns:1fr}.hh-nm{font-size:15px}}
/* 2026-11-27 b: a little tighter so four lanes fit a laptop screen; thin scrollbar when they do not */
.hh-body .hh-lane{padding:12px 18px}
.hh-tile{min-height:76px;padding:12px 14px}
.hh-body .hh-main{scrollbar-width:thin;scrollbar-color:rgba(147,71,143,.35) transparent}
.hh-body .hh-main::-webkit-scrollbar{width:6px}
.hh-body .hh-main::-webkit-scrollbar-thumb{background:rgba(147,71,143,.35);border-radius:3px}
