/* The hub (app.hybridrenovations.com/hub): one sign-in, then one button per app the person may open.
   Sign-in = option 3 "code boxes" (the user's pick, 2026-10-29); the hub = 3D models on a dark wall (the user's pick, 4A, 2026-11-02).
   Mockup: my-website/hubspot-preview/hub-options/redesign/4a-workshop-plus.html. Tokens and fonts come from /theme/colors_and_type.css. */
.hb {
  --blue: var(--hr-blue, #1C75BC); --blue7: var(--hr-blue-700, #14528A); --blue1: var(--hr-blue-50, #EAF4FC); --blue2: #D4E8F7;
  --navy: var(--hr-navy, #0F2537); --red: #B42318; --redBg: #FEF3F2; --redLine: #FECDCA; --amberBg: #FEF3C7; --amberInk: #8A3B07;
  --bg: #F3F5F8; --line: #DCE3EA; --soft: #EBEFF3; --text: #1F2D3D; --muted: #5F6E7F; --label: #4A5D72; --field: #B8C3CE;
  --sh: 0 1px 2px rgba(15, 37, 55, 0.06), 0 4px 14px rgba(15, 37, 55, 0.06); --focus: 0 0 0 3px rgba(28, 117, 188, 0.35);
}
body { margin: 0; background: #F3F5F8; color: #1F2D3D; font: 400 14.5px/1.45 var(--font-sans, "Open Sans", system-ui, sans-serif); }
.hb * { box-sizing: border-box; }
.hb button, .hb input { font: inherit; color: inherit; }
.hb button { cursor: pointer; }
.hb button:disabled { cursor: default; }
.hb svg { display: block; flex: 0 0 auto; }
.hb :focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
.hb-wrap { max-width: 1216px; margin: 0 auto; padding: 0 24px; }
.hb-msgpage { max-width: 520px; margin: 72px auto; padding: 0 20px; color: var(--label); }
.hb-msgpage button { margin: 12px 8px 0 0; }
/* the hub's own greeting is white, for the dark wall */
.hb-msgpage .hb-hello { color: var(--navy); font-size: 26px; }
.hb-msgpage .hb-offline-form { margin: 12px 0 0 8px; text-decoration: none; }

/* the bar */
.hb-bar { background: #fff; border-bottom: 1px solid var(--line); }
/* every app's top bar is 64 px, its line included (user, 2026-10-30: "the same height no matter which application") */
.hb-bar { height: 64px; box-sizing: border-box; }
.hb-bar .hb-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; }
.hb-brand { display: flex; align-items: center; gap: 10px; font: 800 16px var(--font-display, Montserrat, sans-serif); color: var(--navy); min-width: 0; }
.hb-brand span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the company logo (the user's, 2026-10-30), where the HR square was */
.hb-logo { display: block; width: 40px; height: 40px; flex: 0 0 auto; }
/* who's signed in and Sign out: /shared/me.css, the same in every app (2026-10-30). .hb-out stays for Try again. */
.hb-out { border: 1px solid var(--line); background: #fff; min-height: 44px; padding: 0 12px; border-radius: 10px; display: inline-flex; align-items: center; gap: 6px; font: 700 13px var(--font-display, Montserrat, sans-serif); color: var(--label); white-space: nowrap; }
.hb-out:hover { border-color: var(--blue); color: var(--blue7); }

/* the hub: a dark wall, each button a tile with its own 3D model (hub/models.js). Rows of different sizes that always fill: a tile's --w is
   its share of the row, a row's --h its height (hub.js). Hover changes colour only (user, 2026-10-17). */
body.hb-dark { background: #0A1825; }
.hb-wall { min-height: calc(100vh - 64px); background-color: #0A1825; background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.4px); background-size: 22px 22px; }
.hb-main { max-width: 1216px; margin: 0 auto; padding: 32px 24px 56px; }
.hb-wall.few .hb-main { max-width: 860px; }
.hb-hi { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 18px; margin: 0 0 22px; }
.hb-hello { margin: 0; font: 800 36px/1.12 var(--font-display, Montserrat, sans-serif); color: #fff; }
.hb-date { margin: 0; font: 600 14px var(--font-sans, "Open Sans", sans-serif); color: #A9BCCD; }
.hb-list { display: flex; flex-direction: column; gap: 16px; }
.hb-row { display: flex; gap: 16px; height: var(--h); }
.hb .hb-app, .hb .hb-ppl { position: relative; display: block; margin: 0; padding: 0; border: 0; overflow: hidden; border-radius: 26px; color: #fff; text-align: left; text-decoration: none; cursor: pointer; background-color: #12283B;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035), transparent 45%), radial-gradient(90% 90% at 70% 76%, var(--g, rgba(28, 117, 188, 0.3)), transparent 68%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 14px 30px rgba(0, 0, 0, 0.28); transition: background-color 140ms ease; }
/* .hb .hb-app outranks .hb button's font: inherit, so Pay (a button; the rest are links) is bold like the others */
.hb .hb-app { flex: var(--w) 1 0; min-width: 0; font: 800 22px/1.16 var(--font-display, Montserrat, sans-serif); }
.hb .hb-app:hover, .hb .hb-app:focus, .hb .hb-ppl:hover, .hb .hb-ppl:focus { color: #fff; text-decoration: none; }
.hb .hb-app:hover, .hb .hb-ppl:hover { background-color: #1A3852; }
.hb .hb-app:focus-visible, .hb .hb-ppl:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 26px; }
.hb-app > svg { position: absolute; right: 10px; bottom: 10px; width: calc(100% - 20px); height: calc(100% - 64px); }
.hb-lab { position: absolute; z-index: 1; left: 22px; top: 18px; right: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.hb-t { display: block; }
.hb-pd { fill: #fff; }
.hb-pk { fill: #0F2537; }
/* each tile's own light behind its model */
.hb-o-planner { --g: rgba(28, 117, 188, 0.55); }
.hb-o-planner .hb-t { font-size: 26px; }
.hb-o-reports { --g: rgba(140, 198, 63, 0.28); }
.hb-o-myday { --g: rgba(226, 88, 62, 0.36); }
.hb-o-lineitems { --g: rgba(140, 198, 63, 0.34); }
.hb-o-newdeal { --g: rgba(226, 88, 62, 0.24); }
.hb-o-joblead { --g: rgba(28, 117, 188, 0.36); }
.hb-o-guide { --g: rgba(28, 117, 188, 0.3); }
.hb-o-contracts { --g: rgba(28, 117, 188, 0.36); }
.hb-o-canvassform { --g: rgba(140, 198, 63, 0.3); }
.hb-o-leads { --g: rgba(191, 224, 247, 0.28); }
.hb-o-engage { --g: rgba(214, 69, 69, 0.3); }
.hb-o-pay { --g: rgba(245, 158, 11, 0.36); }
.hb-o-results { --g: rgba(47, 125, 50, 0.45); }
.hb-o-notify { --g: rgba(249, 178, 51, 0.45); }
.hb-o-assign { --g: rgba(140, 198, 63, 0.26); }
.hb-o-builder { --g: rgba(245, 158, 11, 0.24); }
/* the red count: jobs missing something, new leads, appointments with no rep */
.hb-badge { min-width: 30px; height: 30px; box-sizing: border-box; border-radius: 999px; background: var(--red); color: #fff; display: inline-grid; place-items: center; flex: 0 0 auto; }
/* Projects' second count: new tags, blue beside the red one (phase 8, 2026-11-13; the approved mock-up) */
.hb-badge.is-tag { background: var(--blue); }
.hb-badge + .hb-badge { margin-left: -4px; }
/* the digits are shapes in the exact middle of the circle: hub.js badgeNum */
.hb-n { display: block; fill: currentColor; }
.hb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hb-app[aria-busy="true"], .hb-ppl[aria-busy="true"] { opacity: 0.6; }
.hb-none { margin: 0; padding: 18px; border-radius: 16px; border: 1px dashed var(--field); color: var(--label); background: #fff; }
.hb-err { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--redBg); color: #7a1a12; font-weight: 600; font-size: 13.5px; }
/* this browser keeps nothing (cookies and website data blocked): it will ask for the code every visit */
.hb-keep { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; background: var(--amberBg); color: var(--amberInk); font-size: 13.5px; line-height: 1.5; }
.hb-keep svg { margin-top: 1px; }
.hb-keep b { color: inherit; }
/* the saved tiles with no fresh answer: what's going on, and Try again */
.hb-line { align-items: center; flex-wrap: wrap; }
.hb-line > span { flex: 1 1 220px; min-width: 0; }
/* door leads still on this phone: tapping opens the form */
.hb-waiting { align-items: center; min-height: 44px; text-decoration: none; }
.hb-waiting.is-late { background: var(--redBg); color: #7a1a12; }

/* sign-in, option 3 "code boxes": phone-first on full-bleed navy. The code looks like eight boxes in two groups of
   four, but it is one real input laid over them (paste, autofill and screen readers all see a normal field). */
.o3 { min-height: 100vh; background: var(--navy); display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.o3-col { width: min(440px, 100%); display: flex; flex-direction: column; gap: 24px; }
.o3-top { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.o3-logo { width: 92px; height: 92px; margin-bottom: 8px; border-radius: 24px; background: #fff; display: grid; place-items: center; }
.o3-logo img { width: 72px; height: auto; }
.o3-top h1 { margin: 0; font: 800 30px/1.15 var(--font-display, Montserrat, sans-serif); color: #fff; }
.o3-top p { margin: 0; color: #a9bccd; }
.o3-sheet { background: #fff; border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28); }
.o3-sheet label { margin-bottom: -6px; font-size: 13px; font-weight: 700; color: var(--label); }
.o3-code { position: relative; }
/* .hb .o3-input outranks .hb input's font: inherit: under 16 px an iPhone zooms the page when the box is tapped (the words are see-through, so this changes nothing you can see) */
.hb .o3-input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: transparent; -webkit-text-fill-color: transparent; caret-color: transparent; font-size: 16px; letter-spacing: 0; }
.o3-input::placeholder { color: transparent; -webkit-text-fill-color: transparent; }
.o3-input::selection { background: transparent; }
.o3-input:focus, .o3-input:focus-visible { outline: none; box-shadow: none; }
.o3-input:disabled { cursor: not-allowed; }
.o3-input:-webkit-autofill { transition: background-color 600000s 0s, color 600000s 0s; }
.o3-boxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 14px repeat(4, minmax(0, 1fr)); gap: 7px; align-items: center; }
.o3-bx { min-width: 0; height: 58px; border: 1.5px solid var(--field); border-radius: 12px; background: #fff; display: grid; place-items: center; font: 800 24px var(--font-display, Montserrat, sans-serif); color: var(--navy); }
.o3-bx:not(:empty) { border-color: var(--label); }
.o3-bx:empty::after { content: ""; width: 10px; height: 2px; border-radius: 2px; background: var(--field); }
.o3-dash { height: 2px; border-radius: 2px; background: var(--muted); }
.o3-code:focus-within .o3-bx.cur { border-color: var(--blue); box-shadow: var(--focus); }
.o3-code:focus-within .o3-bx.cur:empty::after { width: 2px; height: 26px; background: var(--blue); animation: o3-blink 1s steps(1) infinite; }
@keyframes o3-blink { 50% { opacity: 0; } }
.o3-code.bad .o3-bx { border-color: var(--red); background: var(--redBg); }
.o3-code.off .o3-bx { border-color: var(--line); background: var(--bg); }
/* .hb .o3-btn outranks .hb button's font: inherit and color: inherit, which left the words dark and thin on the blue (user, 2026-11-02) */
.hb .o3-btn { min-height: 56px; border: 0; border-radius: 14px; padding: 0 20px; background: var(--blue); color: #fff; font: 800 16px var(--font-display, Montserrat, sans-serif); display: flex; align-items: center; justify-content: center; gap: 8px; }
.hb .o3-btn:hover:not(:disabled) { background: var(--blue7); }
.hb .o3-btn:disabled { background: #6F8CA6; }
.o3-msg { display: flex; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--redBg); border: 1px solid var(--redLine); color: #7a1a12; font-size: 13.5px; }
.o3-msg span { min-width: 0; }
.o3-msg svg { color: var(--red); margin-top: 1px; }
.o3-msg.wait { background: var(--amberBg); border-color: #f1d48a; color: var(--amberInk); }
.o3-msg.wait svg { color: var(--amberInk); }
.o3-notes { list-style: none; margin: 4px 0 0; padding: 16px 0 0; border-top: 1px solid var(--soft); display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: var(--label); }
.o3-notes li { display: flex; gap: 10px; }
.o3-notes svg { color: var(--muted); margin-top: 2px; }
.o3-notes b { color: var(--text); }

@media (max-width: 767px) {
  .hb-wrap { padding: 0 16px; }
  .o3 { flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 0; }
  .o3-col { width: 100%; flex: 1 0 auto; gap: 0; }
  .o3-top { padding: 30px 16px 44px; }
  .o3-logo { width: 76px; height: 76px; border-radius: 20px; }
  .o3-logo img { width: 60px; }
  .o3-top h1 { font-size: 26px; }
  .o3-sheet { flex: 1 0 auto; margin-top: -20px; padding: 26px 16px 40px; border-radius: 24px 24px 0 0; box-shadow: none; }
  .o3-boxes { grid-template-columns: repeat(4, minmax(0, 1fr)) 10px repeat(4, minmax(0, 1fr)); gap: 5px; }
  .o3-bx { height: 54px; font-size: 22px; border-radius: 10px; }
}
@media (max-width: 480px) {
  .hb-brand > span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hb * { transition: none !important; animation: none !important; } }

/* People at the very bottom, under Team admin: the place where the office sets people up (the user's pick, option 1, 2026-10-30), its model
   the crew in hard hats */
.hb-adm { margin-top: 28px; }
.hb-adm-h { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font: 700 12px var(--font-display, Montserrat, sans-serif); letter-spacing: 0.14em; text-transform: uppercase; color: #A9BCCD; }
.hb-adm-h::after { content: ""; flex: 1 1 auto; height: 1px; background: rgba(255, 255, 255, 0.18); }
/* flex, so the words sit in the vertical middle whether it's a button (People) or a link (View as employee; user, 2026-11-04): only a button does that by itself */
.hb .hb-ppl { display: flex; align-items: center; width: 100%; min-height: 200px; padding: 26px 350px 26px 26px; background-image: radial-gradient(60% 150% at 88% 60%, rgba(28, 117, 188, 0.36), transparent 70%); }
.hb-ppl > svg { position: absolute; right: 10px; bottom: 8px; width: 320px; height: calc(100% - 16px); }
.hb-ppl-t { position: relative; display: block; flex: 1 1 auto; min-width: 0; }
.hb-ppl-t b { display: block; font: 800 26px/1.16 var(--font-display, Montserrat, sans-serif); }
.hb-ppl-t span { display: block; margin-top: 6px; font: 400 14.5px/1.4 var(--font-sans, "Open Sans", sans-serif); color: #C2D1DE; }
/* View as employee next to People (the user's pick, 2026-11-02): side by side on a wide screen, one above the other below that */
.hb-adm-row { display: flex; flex-direction: column; gap: 16px; }
.hb .hb-o-viewas { background-image: radial-gradient(60% 150% at 88% 60%, rgba(245, 158, 11, 0.3), transparent 70%); }
@media (min-width: 1100px) {
  .hb-adm-row { flex-direction: row; }
  .hb-adm-row .hb-ppl { flex: 1 1 0; min-width: 0; padding-right: 258px; }
  .hb-adm-row .hb-ppl > svg { width: 240px; }
}

/* a phone or a small tablet: the rows melt into one two-across list; the Room planner and Assign reps run full width, and a tile left alone
   stretches to fill its line, so there is never a hole */
@media (max-width: 899px) {
  .hb-main { padding: 20px 16px 40px; }
  .hb-hello { font-size: 28px; }
  .hb-date { font-size: 13px; }
  .hb-list { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .hb-row { display: contents; }
  .hb .hb-app { flex: 1 1 calc(50% - 6px); height: 208px; font-size: 17px; border-radius: 20px; }
  .hb-lab { left: 14px; top: 12px; right: 10px; }
  .hb-app > svg { right: 6px; bottom: 6px; width: calc(100% - 12px); height: calc(100% - 66px); }
  .hb .hb-o-planner { flex-basis: 100%; height: 284px; }
  .hb-o-planner .hb-t { font-size: 22px; }
  .hb .hb-o-assign { flex-basis: 100%; height: 244px; }
  .hb .hb-o-canvassform { flex-basis: 100%; height: 244px; }
  .hb .hb-ppl { min-height: 170px; padding: 18px 146px 18px 18px; border-radius: 20px; }
  .hb-ppl > svg { right: 6px; bottom: 6px; width: 136px; height: calc(100% - 12px); }
  .hb-ppl-t b { font-size: 22px; }
  .hb-ppl-t span { font-size: 13.5px; }
  .hb .hb-app:focus-visible, .hb .hb-ppl:focus-visible { border-radius: 20px; }
}
