/* The Hub1 Labs operator portal. Lifted from the approved mock-up (docs/superpowers/specs/operator-portal-mockup:
   Main.dc.html, Customer.dc.html, Health.dc.html, 5 Dec 2026): its helmet rules are copied unchanged, and its inline
   styles become the classes below, value for value. The Hub1 Labs look only (accent #0F5DB6). Additions for the real
   page (the font served from this site, loading, empty and error states, the pager, focus rings) are marked. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(fonts/plus-jakarta-sans-latin.woff2) format("woff2"); }

/* ── the mock-up's helmet rules ── */
body { margin: 0; background: #EEF1F5; }
a { color: #0F5DB6; } a:hover { color: #0B3770; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 9px; white-space: nowrap; background: #EEF3F9; color: #3A4652; }
.tag.ok { background: #E7F8EF; color: #1E7F4E; } .tag.warn { background: #FFF4D6; color: #9A5B00; } .tag.bad { background: #FDECEA; color: #B42318; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill { border: 1px solid #D5E0EE; background: #fff; border-radius: 999px; font: 600 13px 'Plus Jakarta Sans', sans-serif; padding: 8px 14px; min-height: 36px; cursor: pointer; color: #3A4652; }
.pill.on { background: #101A26; border-color: #101A26; color: #fff; }
.nav { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: #C9D6EA; text-decoration: none; font-weight: 600; font-size: 13.5px; }
.nav:hover { background: rgba(143,180,255,.09); color: #fff; } .nav.cur { background: rgba(143,180,255,.16); color: #fff; }
.list th { text-align: left; font-size: 11.5px; font-weight: 600; color: #6A7785; padding: 9px 14px; background: #FAFCFF; border-top: 1px solid #E4ECF5; white-space: nowrap; }
.list td { padding: 12px 14px; border-top: 1px solid #E4ECF5; vertical-align: middle; font-size: 13px; }
.list thead th { border-top: 0; }
tr.r:hover td { background: #FAFCFF; }
.seg { display: inline-block; width: 18px; height: 6px; border-radius: 3px; background: #E4ECF5; margin-right: 2px; } .seg.on { background: #0F5DB6; }
.card { background: #fff; border: 1px solid #E4ECF5; border-radius: 14px; box-shadow: 0 10px 30px -22px rgba(11,55,112,.35); min-width: 0; overflow-x: auto; }
.card h2 { margin: 0; padding: 14px 18px 10px; font-size: 15px; font-weight: 800; }
.card th { text-align: left; font-size: 11.5px; font-weight: 600; color: #6A7785; padding: 8px 18px; background: #FAFCFF; border-top: 1px solid #E4ECF5; white-space: nowrap; }
.card td { padding: 10px 18px; border-top: 1px solid #E4ECF5; font-size: 13px; vertical-align: top; }
.s { font-size: 12px; color: #6A7785; }

/* ── the shell (the mock-up's root, nav and main) ── */
.shell { min-height: 100vh; display: flex; flex-wrap: wrap; font-family: 'Plus Jakarta Sans', -apple-system, sans-serif; color: #101A26; font-size: 14px; line-height: 1.5; }
.rail { flex: 1 1 232px; max-width: 100%; background: radial-gradient(120% 60% at 0% 0%, #0E2A55 0%, #050B18 62%); color: #C9D6EA; padding: 18px 12px; display: flex; flex-direction: column; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px; color: #fff; font-weight: 800; }
.mark { width: 28px; height: 28px; border-radius: 8px; background: #0F5DB6; display: grid; place-items: center; font-size: 12px; }
.brand .sub { display: block; font-size: 11px; font-weight: 600; color: #8FB4FF; }
.navs { display: flex; flex-direction: column; gap: 2px; }
.nav .n { margin-left: auto; font-size: 11px; color: #8FB4FF; } .nav .n.w { color: #FFC766; }
.railnote { margin: 0 8px; font-size: 12px; color: #8FA3C0; }
.me { margin-top: auto; padding: 10px; border-top: 1px solid rgba(143,180,255,.14); font-size: 12px; } .me b { color: #fff; display: block; }
.signout { display: block; margin-top: 8px; padding: 0; border: 0; background: none; font: 600 12px 'Plus Jakarta Sans', sans-serif; color: #8FA3C0; cursor: pointer; }
.signout:hover { color: #fff; } .signout[hidden] { display: none; } .signout:focus-visible { outline-color: #8FB4FF; }
.page { flex: 999 1 560px; min-width: 0; background: #F6F9FD; padding: 26px 28px 40px; display: flex; flex-direction: column; gap: 16px; }
.page.one { padding-top: 22px; }
h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.foot { margin: 0; font-size: 12.5px; color: #6A7785; max-width: 90ch; }

/* ── Customers ── */
.head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.lede { color: #6A7785; font-size: 13px; }
.grow { flex: 1; }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #D5E0EE; border-radius: 10px; padding: 0 12px; min-height: 40px; }
.search input { border: 0; outline: 0; font: 500 16px 'Plus Jakarta Sans', sans-serif; width: 200px; background: none; color: #101A26; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.filters { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.group { display: flex; flex-wrap: wrap; gap: 6px; }
.stagepick { font-size: 13px; font-weight: 600; color: #3A4652; display: flex; gap: 8px; align-items: center; }
.stagepick select { font: 600 14px 'Plus Jakarta Sans', sans-serif; border: 1px solid #D5E0EE; border-radius: 9px; padding: 7px 10px; background: #fff; color: #101A26; min-height: 36px; }
.tablecard { background: #fff; border: 1px solid #E4ECF5; border-radius: 14px; box-shadow: 0 10px 30px -22px rgba(11,55,112,.35); overflow-x: auto; }
.list { width: 100%; border-collapse: collapse; min-width: 1040px; }
.cname { font-weight: 700; color: #0B3770; text-decoration: none; }
.sub { display: block; font-size: 12px; color: #6A7785; }
.sub.stage { color: #3A4652; }
.sub.why { max-width: 22ch; }
.meter { white-space: nowrap; }
.list td.num { text-align: right; }
.list td.last { white-space: nowrap; color: #3A4652; }
.none { margin: 0; padding: 16px 18px; color: #3A4652; border-top: 1px solid #E4ECF5; }

/* ── One customer ── */
.back { font-size: 13px; font-weight: 600; text-decoration: none; color: #0F5DB6; }
.title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
h1.big { font-size: 26px; }
.recorded { margin: 0; padding: 10px 14px; border-radius: 10px; background: #EDF5FE; color: #18559B; font-size: 13px; font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 0 18px 16px; min-width: 560px; }
.step { border-radius: 10px; border: 1px solid #E4ECF5; padding: 10px 12px; background: #FFFFFF; } .step.done { background: #E7F8EF; } .step.cur { background: #FFF4D6; }
.step .n { display: block; font-size: 11.5px; color: #6A7785; } .step b { display: block; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 16px; }
.card table { width: 100%; border-collapse: collapse; }
.card h2.next { padding-top: 18px; }
.card td.r, .card th.r { text-align: right; }
.card td.nw { white-space: nowrap; }
.card td.any { overflow-wrap: break-word; } /* the mock-up says anywhere; break-word keeps an address whole unless it cannot fit */
.card b { font-weight: 700; }
.cnote { margin: 0; padding: 10px 18px 14px; font-size: 12px; color: #6A7785; } .cnote.top0 { padding-top: 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 18px 12px; }
.stats b { font-size: 24px; display: block; } .stats .s { display: inline; }
.setting { margin: 0; padding: 0 18px 10px; font-size: 13px; }
.days { display: flex; flex-direction: column; gap: 6px; padding: 0 18px 12px; }
/* the count column is wider than the mock-up's 92px: it reads "recorded calls", which needs the room */
.day { display: grid; grid-template-columns: 64px minmax(0, 1fr) 150px; gap: 10px; align-items: center; font-size: 12.5px; }
.day .d { color: #6A7785; }
.bar { height: 10px; border-radius: 5px; background: #EEF3F9; overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; } .bar i.ok { background: #0F5DB6; } .bar i.f { background: #E5533D; }
.day .c { text-align: right; white-space: nowrap; }

/* ── Health ── */
.head.base { align-items: baseline; gap: 6px 14px; }
.summary { color: #3A4652; font-size: 14px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.tile { text-decoration: none; color: #101A26; background: #fff; border: 1px solid #E4ECF5; border-top: 3px solid #1E9A5C; border-radius: 12px; padding: 12px 14px; display: block; }
.tile.has { border-top-color: #E5533D; } .tile:hover { color: #101A26; }
.tile b { font-size: 26px; display: block; line-height: 1.1; } .tile span { font-size: 13px; color: #3A4652; }
.hcard { background: #fff; border: 1px solid #E4ECF5; border-radius: 14px; box-shadow: 0 10px 30px -22px rgba(11,55,112,.35); min-width: 0; scroll-margin-top: 16px; }
.ghead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 14px 18px 10px; }
.ghead h2 { margin: 0; font-size: 15px; font-weight: 800; }
.allclear { margin: 0; padding: 12px 18px 16px; border-top: 1px solid #E4ECF5; color: #1E7F4E; font-weight: 600; font-size: 13px; }
.hscroll { overflow-x: auto; }
.hrows { width: 100%; border-collapse: collapse; min-width: 620px; }
.hrows td { padding: 11px 18px; border-top: 1px solid #E4ECF5; font-size: 13px; vertical-align: top; }
.hrows td.who { width: 26%; } .hrows td.since { white-space: nowrap; width: 20%; }

/* ── additions for the real page ── */
:is(a, button, select, input):focus-visible { outline: 2px solid #0F5DB6; outline-offset: 2px; }
.nav:focus-visible { outline-color: #8FB4FF; }
.search:focus-within { border-color: #0F5DB6; }
.pill:disabled { opacity: .45; cursor: default; }
.pager { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #3A4652; } .pager:empty { display: none; }
.card td.emptyrow { color: #3A4652; }
.errc { border-top: 3px solid #E5533D; padding: 0 0 16px; } .errc p { margin: 0; padding: 0 18px 12px; font-size: 13px; color: #3A4652; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px; }
/* loading: grey blocks in the shape of each screen (the customer portal's skeleton) */
.sk { display: block; height: 12px; border-radius: 8px; margin: 8px 0; background: linear-gradient(90deg, #EEF3F9 0%, #F6F9FD 50%, #EEF3F9 100%); background-size: 200% 100%; animation: sk 1.3s ease-in-out infinite; }
.sk.w10 { width: 10%; } .sk.w15 { width: 15%; } .sk.w20 { width: 20%; } .sk.w30 { width: 30%; } .sk.w50 { width: 50%; } .sk.w70 { width: 70%; }
.skwrap { padding: 6px 0; } .skrow { display: flex; gap: 24px; padding: 8px 14px; border-top: 1px solid #E4ECF5; } .skrow:first-child { border-top: 0; }
.skcard { min-height: 140px; padding: 14px 18px; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

/* ── Website (no mock-up: built from the pieces above, same tokens) ── */
.tag.info { background: #EDF5FE; color: #18559B; }
.visits { display: flex; flex-direction: column; gap: 16px; }
.visits[aria-busy="true"] > :not(.cards) { opacity: .6; }
.vstrip { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.vtile { flex: 1 1 120px; max-width: 228px; background: #fff; border: 1px solid #E4ECF5; border-top: 3px solid #0F5DB6; border-radius: 12px; padding: 12px 14px; }
.vtile b { font-size: 26px; display: block; line-height: 1.1; } .vtile span { font-size: 13px; color: #3A4652; }
.vnote { align-self: flex-end; padding-bottom: 4px; }
.visits .cards { align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.day.v { grid-template-columns: 64px minmax(0, 1fr) 190px; }
.emptyline { margin: 0; padding: 12px 18px 16px; border-top: 1px solid #E4ECF5; color: #3A4652; font-size: 13px; }
.unavail { border-top: 3px solid #F2B23A; padding: 0 0 16px; } .unavail p { margin: 0; padding: 0 18px; font-size: 13px; color: #3A4652; }
.chead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 18px 12px; }
.card .chead h2 { padding: 0; }
.elist { min-width: 0; }
.etable { width: 100%; border-collapse: collapse; min-width: 1060px; }
.card .etable td { vertical-align: middle; padding: 10px 12px; } .card .etable th { padding: 8px 12px; }
.card .etable td:first-child, .card .etable th:first-child { padding-left: 18px; } .card .etable td:last-child, .card .etable th:last-child { padding-right: 18px; }
.card td.quiet { color: #6A7785; }
.estatus { font: 600 13px 'Plus Jakarta Sans', sans-serif; border: 1px solid #D5E0EE; border-radius: 9px; padding: 6px 8px; background: #fff; color: #101A26; min-height: 34px; }
.estatus:disabled { opacity: .6; }
.enote:empty { display: none; } .enote { margin-top: 4px; }
.card .pager { padding: 0 18px 10px; }
@media (max-width: 520px) {
  .day.v { grid-template-columns: 54px minmax(0, 1fr) 150px; }
  .vnote { flex-basis: 100%; }
}
