:root {
  font-family: Arial, "Noto Sans Hebrew", sans-serif;
  color: #182541;
  background: #f5f7fb;
  font-synthesis: none;
  --blue: #245cf5;
  --muted: #64718a;
  --border: #dfe5ef;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
[hidden] {
  display: none !important;
}
header {
  height: 88px;
  max-width: 1260px;
  margin: auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-size: 28px;
  font-weight: 800;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--blue);
  color: white;
  font-weight: 800;
  border-radius: 14px;
  width: 40px;
  height: 40px;
  direction: ltr;
}
.header-note {
  font-size: 14px;
  color: var(--muted);
}
#logout {
  margin-inline-start: auto;
}
.language-switch {
  margin-inline-start: auto;
  width: auto;
  padding: 6px 10px;
  font: inherit;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.language-switch + #logout {
  margin-inline-start: 0;
}
main {
  max-width: 1180px;
  margin: auto;
  min-height: calc(100vh - 170px);
  padding: 64px 40px;
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}
.eyebrow {
  font-size: 14px;
  color: var(--blue);
  font-weight: 700;
  display: block;
  margin-bottom: 18px;
}
h1 {
  font-size: 50px;
  line-height: 1.18;
  letter-spacing: -1.8px;
  margin: 0 0 20px;
}
h2 {
  font-size: 25px;
  line-height: 1.4;
  margin: 12px 0;
}
.intro p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}
.intro .small {
  font-size: 14px;
}
.login-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 36px;
  box-shadow: 0 16px 45px #25385506;
}
.step {
  font-size: 13px;
  color: var(--muted);
}
.muted {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
label:not(.channel) {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 18px 0 8px;
}
input,
select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #ccd5e4;
  border-radius: 9px;
  background: #fff;
  outline: none;
  font-size: 16px;
}
input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #245cf51a;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #789bff;
  outline-offset: 3px;
}
.hint {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 8px 0 20px;
}
.primary,
.secondary,
.quiet {
  border: 0;
  border-radius: 9px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
}
.primary {
  background: var(--blue);
  color: #fff;
}
.primary:hover {
  background: #1748d6;
}
.secondary {
  background: #edf2ff;
  color: #2451bf;
}
.quiet {
  background: transparent;
  color: var(--muted);
}
.full {
  width: 100%;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 22px;
}
.message {
  font-size: 14px;
  line-height: 1.6;
  color: #a33144;
  white-space: pre-wrap;
}
.message:empty {
  display: none;
}
.code {
  text-align: center;
  font-size: 28px;
  letter-spacing: 10px;
}
.workspace-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.workspace-top h1 {
  font-size: 38px;
  margin-bottom: 8px;
}
.workspace-top .eyebrow {
  margin-bottom: 10px;
}
/* One row of pages. It scrolls sideways rather than wrapping, so the bar stays
   one line tall on a phone and the page below it starts where it always does. */
#nav {
  display: flex;
  gap: 4px;
  margin: 24px 0 8px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
#nav::-webkit-scrollbar {
  display: none;
}
#nav a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
#nav a:hover {
  color: #182541;
}
#nav a.on {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
/* A number, not a dot: "3 waiting" is a different decision from "something is
   waiting", and this badge is the only hint the other three pages give. */
.nav-count {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #a33144;
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  direction: ltr;
}
.page > section:first-child > h2:first-child {
  margin-top: 0;
}
.identity {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 28px 0;
}
.avatar {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  background: #e2f6ec;
  color: #216f4c;
  display: grid;
  place-items: center;
}
.identity strong {
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
}
.identity div span {
  display: block;
  font-size: 14px;
  color: var(--muted);
}
.badge {
  margin-inline-start: auto;
  background: #f0f3f9;
  color: #61708c;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 12px;
}
.empty {
  text-align: center;
  border: 1px dashed #bdcbe1;
  border-radius: 16px;
  padding: 56px 24px;
  margin-top: 22px;
}
.empty p {
  color: var(--muted);
  font-size: 16px;
}
.empty-symbol {
  margin: auto;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: #e8efff;
  border-radius: 16px;
  color: var(--blue);
  font-size: 28px;
}
.connection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.connection-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
}
.connection-card h2 {
  font-size: 20px;
  overflow-wrap: anywhere;
}
/* One card per app in the catalog: the switch that allows it, and only where it
   would work, a button that connects it. */
#app-catalog {
  display: grid;
  gap: 12px;
  margin-block: 16px;
}
/* .connection-card's button rule strips inline padding and paints text red -
   correct for its "disconnect" link, wrong for a real connect button. */
#app-catalog .connection-card button.primary {
  padding: 13px 20px;
  color: #fff;
}
.app-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
/* One connected account per line, with its remove button beside it rather than
   under it - .connection-card's button rule pushes buttons onto their own row,
   which is right for a card-wide action and wrong for a per-account one. */
.app-account {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.app-account button {
  margin-top: 0;
}
.app-readonly {
  color: #a3641f;
}
#catalog-note {
  font-size: 13px;
  color: var(--muted);
}
.connection-card p {
  font-size: 14px;
  color: var(--muted);
}
.connection-card button {
  margin-top: 12px;
  padding-inline: 0;
  color: #a33144;
}
.service-tag {
  font-size: 13px;
  color: var(--blue);
  font-weight: 700;
}
.privacy-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 28px;
}
dialog {
  width: min(480px, calc(100% - 32px));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  color: inherit;
}
dialog::backdrop {
  background: #15254080;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
}
.dialog-heading h2 {
  margin: 0 0 20px;
}
.dialog-heading .eyebrow {
  margin-bottom: 8px;
}
.close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 28px;
  align-self: flex-start;
}
footer {
  max-width: 1180px;
  margin: auto;
  padding: 24px 40px;
  color: #8590a2;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (max-width: 900px) {
  .login-layout {
    gap: 36px;
  }
  .login-card {
    padding: 24px;
  }
  h1 {
    font-size: 40px;
  }
  .connection-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 650px) {
  header {
    height: 72px;
    padding: 0 22px;
  }
  .header-note {
    font-size: 12px;
  }
  main {
    padding: 28px 20px;
    min-height: calc(100vh - 140px);
  }
  .login-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .intro {
    display: none;
  }
  .login-card {
    width: 100%;
    max-width: 440px;
  }
  .workspace-top {
    align-items: flex-start;
  }
  .workspace-top h1 {
    font-size: 30px;
  }
  .workspace-top .primary {
    padding: 12px;
    font-size: 14px;
    white-space: nowrap;
  }
  .connection-grid {
    grid-template-columns: 1fr;
  }
  .badge {
    display: none;
  }
  .empty {
    padding: 36px 18px;
  }
  footer {
    padding: 20px;
  }
  .header-note {
    max-width: 160px;
  }
  .brand {
    font-size: 24px;
  }
}

.creating-spinner{width:44px;height:44px;margin:24px auto 12px;border-radius:50%;border:4px solid rgba(127,127,127,.25);border-top-color:currentColor;animation:kubi-spin .9s linear infinite}
.hint.center{text-align:center}
@keyframes kubi-spin{to{transform:rotate(360deg)}}

/* An approval is the one card a user is sent to act on, so its buttons are real
   buttons — .connection-card's rule strips a button's inline padding and paints
   it red, which rendered approve and cancel as two touching words of red text. */
.approval-card {
  padding: 24px;
  border: 2px solid var(--blue);
  border-radius: 14px;
  background: white;
  margin-bottom: 16px;
}
.approval-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  overflow-wrap: anywhere;
}
.approval-card .approval-image {
  display: block;
  max-width: min(100%, 400px);
  height: auto;
  margin: 8px 0;
  border: 1px solid #dddfe2;
  border-radius: 8px;
}
.approval-card .approval-detail {
  font-size: 15px;
  overflow-wrap: anywhere;
  /* Each line takes its direction from its own first letter: a Hebrew email
     on an English card (or the reverse) otherwise reads in the wrong order
     around every Latin name and address (#2484). */
  unicode-bidi: plaintext;
}
.approval-card .approval-notice {
  font-size: 13px;
  color: var(--muted);
}
.approval-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.approval-actions button {
  flex: 1 1 150px;
  min-height: 52px;
}
.approval-card.focused {
  box-shadow: 0 0 0 5px rgba(36, 81, 191, 0.18);
}
#vault-items .connection-card h2 {
  font-size: 17px;
}
/* The live takeover. Full screen on purpose: the user is looking at a real page
   of a site they are logged into, and a small framed picture of it invites
   mis-taps on a challenge that only gets one answer. */
body.takeover-open {
  overflow: hidden;
}
#takeover {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #f5f7fb;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}
#takeover[hidden] {
  display: none;
}
.takeover-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.takeover-bar strong {
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}
.takeover-bar button {
  min-height: 44px;
}
#takeover .hint {
  margin: 0;
}
/* The tick sits in the bar next to "I am done", because that is the moment the
   question is actually being answered. 44px so it is tappable on a phone. */
.takeover-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.95rem;
}
.takeover-remember input {
  width: 20px;
  height: 20px;
  margin: 0;
}
.takeover-zoom {
  display: flex;
  align-items: center;
  gap: 6px;
}
.takeover-zoom button {
  min-width: 44px;
  min-height: 44px;
  font-size: 20px;
  line-height: 1;
  padding: 0;
}
.takeover-zoom output {
  min-width: 34px;
  text-align: center;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.takeover-stage {
  flex: 1 1 auto;
  min-height: 0;
  /* The overlay is RTL for a Hebrew user, but the thing inside it is a
     photograph, not text. Under RTL `scrollLeft` counts from the right (and in
     some engines runs negative), which silently inverts the re-centring maths
     in setZoom and starts an over-wide picture at its right edge. */
  direction: ltr;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  /* `safe` so that a picture wider than the stage starts at its left edge
     instead of overflowing both ways, where half of it cannot be scrolled to. */
  justify-content: safe center;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;

  touch-action: pan-x pan-y pinch-zoom;
  overscroll-behavior: contain;
}
#takeover-frame {
  /* --zoom 1 is "as wide as the stage". A desktop viewport squeezed onto a
     phone lands at about a third of readable size, which is exactly the
     complaint that put this control here. */
  width: calc(100% * var(--zoom, 1));
  max-width: none;
  flex: 0 0 auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: crosshair;
}
/* Drag mode: the finger drags on the page, so the browser must not take the
   same touch for a pan, a pinch or a scroll - iOS Safari decides that before
   any script runs, which is why it lives here and not only in a handler. */
.takeover-stage.drag-mode,
.takeover-stage.drag-mode #takeover-frame {
  touch-action: none;
}
.takeover-stage.drag-mode #takeover-frame {
  cursor: grab;
}
.takeover-drag {
  min-height: 44px;
  white-space: nowrap;
}
.takeover-drag.active {
  background: var(--accent, #2563eb);
  color: #fff;
  border-color: transparent;
}
#takeover-frame:not([src]) {
  display: none;
}
#takeover-status {
  margin: auto;
  color: var(--muted);
}
.takeover-type {
  display: flex;
  gap: 10px;
}
.takeover-type input {
  flex: 1 1 auto;
  margin: 0;
}
.takeover-type button {
  min-height: 44px;
}

/* The team graph: the roster and the feed drawn as who talks to whom. Every
   part of it that moves lives here, so one media query can stop all of it for
   a reader who has asked for less motion. The SVG is forced to ltr because
   text-anchor is geometric - in an rtl page "start" would flip every label to
   the wrong side of its node while the Hebrew inside it still reads correctly. */
#team-graph-canvas svg {
  width: 100%;
  height: auto;
  max-height: 60vh;
  display: block;
  direction: ltr;
  margin: 6px 0 2px;
}
/* #1700 zoom. At fit the page still scrolls vertically through the graph; once
   zoomed every touch belongs to the graph so one finger pans it. */
#team-graph-canvas {
  position: relative;
}
#team-graph-canvas svg {
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
#team-graph-canvas.zoomed svg {
  touch-action: none;
}
#team-graph-canvas svg:active {
  cursor: grabbing;
}
.team-zoom {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  display: flex;
  gap: 4px;
  z-index: 1;
}
.team-zoom button {
  width: 34px;
  height: 34px;
  border: 1px solid #c9d3e6;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #182541;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.team-zoom button:disabled {
  opacity: 0.4;
  cursor: default;
}
.team-zoom button:focus-visible {
  outline: 2px solid #245cf5;
  outline-offset: 2px;
}
.team-edge {
  fill: none;
  stroke-linecap: round;
  opacity: 0.55;
}
.team-edge.out {
  stroke: var(--blue);
}
.team-edge.in {
  stroke: #2f8f7f;
}
.team-edge.fresh {
  opacity: 1;
  stroke-dasharray: 7 6;
  animation: team-flow 0.9s linear infinite;
}
@keyframes team-flow {
  to {
    stroke-dashoffset: -26;
  }
}
.team-node {
  cursor: pointer;
}
.team-node .team-dot {
  fill: #8aa6f7;
}
.team-node.centre .team-dot {
  fill: var(--blue);
}
.team-node.quiet .team-dot {
  fill: white;
  stroke: #bdcbe1;
  stroke-width: 1.5;
}
.team-node.off .team-dot {
  fill: #e6ebf5;
}
.team-node:hover .team-dot {
  fill: #182541;
}
.team-node .team-count {
  fill: white;
  font-size: 12px;
  font-weight: 700;
}
.team-node.centre .team-count {
  font-size: 14px;
}
.team-node.quiet .team-count,
.team-node.off .team-count {
  fill: var(--muted);
}
.team-node .team-name {
  paint-order: stroke;
  stroke: #f5f7fb;
  stroke-width: 4px;
  stroke-linejoin: round;
  fill: #182541;
  font-size: 13px;
  font-weight: 700;
}
/* The tool, under the name. Same halo as the name, because which labels land
   on an edge depends entirely on the data. */
.team-node .team-doing {
  paint-order: stroke;
  stroke: #f5f7fb;
  stroke-width: 4px;
  stroke-linejoin: round;
  fill: var(--blue);
  font-size: 11px;
  font-weight: 600;
}
.team-node .team-pulse {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: team-pulse 1.5s ease-out infinite;
}
@keyframes team-pulse {
  from {
    opacity: 0.8;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.35);
  }
}
/* #1700: the Workers / Issues switch above the graph, and the issue bubbles. */
.team-graph-tabs {
  display: flex;
  gap: 6px;
  margin: 4px 0;
}
.team-graph-tabs button[aria-selected="true"] {
  background: var(--blue);
  color: white;
}
.team-edge.work {
  stroke: #8a5cf5;
}
.team-issue .team-dot {
  fill: #f3edff;
  stroke: #8a5cf5;
  stroke-width: 1.5;
}
.team-issue .team-count {
  fill: #4b2aa8;
  font-size: 11px;
  font-weight: 700;
}
.team-issue .team-name {
  paint-order: stroke;
  stroke: #f5f7fb;
  stroke-width: 4px;
  stroke-linejoin: round;
  fill: #182541;
  font-size: 11px;
}
@media (prefers-reduced-motion: reduce) {
  .team-edge.fresh {
    animation: none;
  }
  .team-node .team-pulse {
    animation: none;
    opacity: 0.7;
  }
}
@media (max-width: 650px) {
  #team-graph-canvas svg {
    max-height: none;
  }
  .team-zoom button {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
  .team-node .team-name {
    font-size: 21px;
  }
  .team-node .team-count {
    font-size: 21px;
  }
  .team-node.centre .team-count {
    font-size: 25px;
  }
  .team-node .team-doing {
    font-size: 18px;
  }
}

/* ---- the team feed --------------------------------------------------------
   "The table down is very messy" was a hundred and sixty white cards at 24px
   padding in one scroll. A feed is a hundred lines, not a hundred boxes: the
   columns line up so the eye can run down the times and the names without
   reading a single message, and a conversation stays one row until opened. */
.feed-day {
  margin: 20px 0 4px;
  font-size: 13px;
  font-weight: bold;
  color: var(--muted);
}
.feed-rows {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  overflow: hidden;
}
.feed-rows > * + * {
  border-top: 1px solid var(--border);
}
.feed-head {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: baseline;
  padding: 9px 14px;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
}
.feed-head::-webkit-details-marker {
  display: none;
}
.feed-head:hover,
.feed-chain[open] > .feed-head {
  background: #f0f4ff;
}
.feed-row {
  display: grid;
  grid-template-columns: 48px 150px 1fr auto;
  gap: 10px;
  align-items: baseline;
  margin: 0;
  padding: 8px 14px;
  font-size: 13px;
}
.feed-chain .feed-row {
  border-top: 1px solid #eef2f9;
  padding-inline-start: 34px;
  background: #fbfcfe;
}
.feed-time {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.feed-who,
.feed-clip {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feed-who {
  color: var(--muted);
}
.feed-meta {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
@media (max-width: 650px) {
  .feed-head {
    grid-template-columns: 44px 1fr;
  }
  .feed-row {
    grid-template-columns: 44px 1fr;
  }
  .feed-head .feed-meta,
  .feed-row .feed-text,
  .feed-row .feed-meta {
    grid-column: 2;
  }
  .feed-meta {
    display: block;
  }
}

/* --- "Talk to Kubi": a phone drawn in CSS ---------------------------------- */
.call { display: grid; justify-items: center; gap: 16px; }
.phone {
  width: min(280px, 78vw);
  aspect-ratio: 9 / 18.5;
  border-radius: 42px;
  background: #111827;
  padding: 12px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .25), inset 0 0 0 2px #374151;
  position: relative;
}
.phone-notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 22px; border-radius: 12px; background: #000; z-index: 1;
}
.phone-screen {
  height: 100%; border-radius: 32px;
  background: linear-gradient(180deg, #1e3a8a 0%, #0f172a 100%);
  color: #fff; display: flex; flex-direction: column; align-items: center;
  padding: 64px 16px 32px; box-sizing: border-box; text-align: center;
}
.call-avatar {
  width: 104px; height: 104px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .85);
  display: grid; place-items: center; margin-bottom: 16px;
}
.phone[data-state="live"] .call-avatar { animation: call-pulse 1.6s ease-in-out infinite; }
.phone[data-state="live"].speaking .call-avatar { background: rgba(34, 197, 94, .35); }
@keyframes call-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .25); }
  50% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
}
.call-name { font-size: 1.6rem; font-weight: 600; }
.call-timer { font-variant-numeric: tabular-nums; opacity: .8; margin-top: 6px; }
.call-status { min-height: 2.6em; margin: 12px 0 0; opacity: .85; font-size: .95rem; }
.call-button {
  margin-top: auto; width: 72px; height: 72px; border-radius: 50%; border: 0;
  background: #16a34a; color: #fff; display: grid; place-items: center;
  cursor: pointer; transition: background .15s, transform .15s;
}
.call-button:hover { transform: scale(1.05); }
.call-button:disabled { opacity: .5; cursor: default; transform: none; }
.phone[data-state="live"] .call-button,
.phone[data-state="connecting"] .call-button { background: #dc2626; }
.phone[data-state="live"] .call-button svg,
.phone[data-state="connecting"] .call-button svg { transform: rotate(135deg); }
.call-note { max-width: 36em; text-align: center; }
.call-transcript-box { width: min(560px, 100%); }
.call-transcript { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; max-height: 40vh; overflow-y: auto; }
.call-transcript li { padding: 6px 10px; border-radius: 10px; background: #f3f4f6; }
.call-transcript li.agent { background: #e0e7ff; }
.call-transcript li.checking { background: transparent; color: #6b7280; font-style: italic; }
@media (prefers-reduced-motion: reduce) {
  .phone[data-state="live"] .call-avatar { animation: none; }
}

/* Kubi companion identity: approved September 2026. */
:root { --brand-midnight:#141e40; --brand-periwinkle:#a8b5ff; --brand-ivory:#f8f6f0; }
.brand { flex-shrink:0; direction:ltr; }
.brand-lockup { display:block; width:168px; height:63px;  }
.primary { background:var(--brand-midnight); }
.primary:hover { background:#303f70; }
@media(max-width:640px) { .brand-lockup { width:132px; height:50px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; transition-duration:.01ms!important; } }

:root { color:#141e40; background:#f8f6f0; --blue:#4655a6; --muted:#62677b; --border:#dedee8; }
.secondary { background:#e9eaff; color:#3d4d99; }

/* The Google connect-time notice (showGoogleNotice in portal.js). */
dialog.google-notice ul { padding-inline-start: 20px; margin: 0 0 12px; }
dialog.google-notice p { margin: 0 0 12px; line-height: 1.5; }
dialog.google-notice .google-notice-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* "Connect Google" (#1977): the one button, and where the walk stands. */
.google-all { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
.google-all p { margin: 0; color: var(--muted, #62677b); }
.google-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--border, #dedee8); border-radius: 10px; }
.google-chain:empty { display: none; }
.google-chain p { margin: 0; }

#family-section form { display: grid; gap: .75rem; margin-block: 1rem; }
#family-section label { display: grid; gap: .35rem; }
#family-section input, #family-section select { box-sizing: border-box; max-width: 100%; width: 100%; padding: .7rem; border: 1px solid var(--line, #ddd); border-radius: .65rem; background: var(--card, #fff); color: inherit; }
#family-section .connection-card { display: grid; align-content: start; gap: .5rem; }
#family-section .connection-card p { margin: 0; }
#family-message { overflow-wrap: anywhere; }

/* Narrow phones (320px): the header carries the brand, the language switch and
   the logout button; the tagline gives way so nothing pushes past the screen. */
@media (max-width: 480px) {
  header { gap: 10px; padding: 0 14px; }
  .header-note { display: none; }
  .brand-lockup { width: 112px; height: 42px; }
  .language-switch { padding: 4px 6px; font-size: 13px; }
}

/* #2176: the live browser view. */
.live-browser { margin: 8px 0 14px; }
.live-browser[hidden] { display: none; }
.live-card { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; background: #fff; }
.live-card + .live-card { margin-top: 8px; }
.live-card img { width: 160px; border-radius: 6px; border: 1px solid var(--border); background: #f5f7fb; }
.live-card .live-meta { flex: 1 1 220px; min-width: 0; }
.live-card h3 { margin: 0 0 4px; font-size: 1rem; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #16a34a; margin-inline-end: 6px; }
.live-dot.idle { background: #9ca3af; }
.live-empty[hidden] { display: none; }
/* #2176: the live page's nav link while an agent browses. */
.nav-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; margin-inline-start: 6px; vertical-align: middle; animation: nav-live-pulse 2s ease-out infinite; }
.nav-live[hidden] { display: none; }
@keyframes nav-live-pulse { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .45); } 70%, 100% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); } }
.live-line { font-family: ui-monospace, monospace; font-size: 0.8rem; color: var(--muted); overflow-wrap: anywhere; }
.live-fails { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.live-fails img { width: 96px; cursor: zoom-in; }
#live-view { position: fixed; inset: 0; z-index: 50; background: #f5f7fb; display: flex; flex-direction: column; gap: 8px; padding: 14px; }
#live-view[hidden] { display: none; }
.live-debug { font-family: ui-monospace, monospace; font-size: 0.8rem; display: flex; gap: 6px 14px; flex-wrap: wrap; }
.live-debug b { font-weight: 600; }
.live-debug .bad { color: #b91c1c; }
.live-body { flex: 1 1 auto; min-height: 0; display: flex; gap: 10px; }
.live-stage { flex: 1 1 auto; }
#live-frame { width: 100%; max-width: none; user-select: none; -webkit-user-select: none; }
#live-view.taken #live-frame { cursor: crosshair; outline: 3px solid #f59e0b; }
/* #2241: a finger on the picture is a finger on the page, watching or taken
   over: the swipe scrolls the agent's page, so the phone must not claim it as
   a pan (iOS decides that before any script runs). */
#live-frame { touch-action: none; -webkit-touch-callout: none; }
#live-frame:not([src]) { display: none; }
#live-status { margin: auto; color: var(--muted); }
.live-steps { flex: 0 0 280px; overflow: auto; margin: 0; padding: 0 0 0 8px; list-style: none; font-family: ui-monospace, monospace; font-size: 0.75rem; }
.live-steps li { margin: 0 0 4px; overflow-wrap: anywhere; }
.live-steps li.err { color: #b91c1c; }
.live-steps li.run { color: #2563eb; }
.live-history { display: flex; gap: 10px; align-items: center; }
.live-history input { flex: 1 1 auto; }
.live-history output { font-family: ui-monospace, monospace; font-size: 0.8rem; color: var(--muted); min-width: 90px; }
@media (max-width: 760px) { .live-body { flex-direction: column; } .live-steps { flex: 0 0 120px; } }

/* The page has the keyboard: say so, since keys now go to it. */
.takeover-stage:focus { outline: none; }
.takeover-stage:focus-visible,
.takeover-stage:focus-within { box-shadow: inset 0 0 0 2px var(--accent, #2563eb); }

/* #3473 shared projects, page redesign #3851: list cards, the one-project page,
   board/list, task side panel (wide) / sheet (phone). Flat surfaces, 1px lines;
   colour only on state (late, waiting, done) and on people's pale identity tints. */
.project-section { margin-block: 0; }
.project-section h2 { font-size: 17px; margin-block: 0 10px; }
.project-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.project-link { display: block; overflow-wrap: anywhere; margin-block: 6px; }
.project-form { display: flex; gap: 8px; margin-block-start: 12px; align-items: flex-start; }
.project-form input, .project-form textarea { flex: 1; min-width: 0; }
.project-form textarea { font: inherit; font-size: 16px; padding: 13px 14px; border: 1px solid #ccd5e4; border-radius: 9px; background: #fff; outline: none; min-height: 52px; resize: vertical; }
.project-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #245cf51a; }
.project-back, .project-link { color: var(--blue); font-weight: 600; text-decoration: none; }
.project-back:hover, .project-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.project-back { display: inline-flex; align-items: center; min-height: 44px; }
.project-status { display: inline-block; vertical-align: middle; margin-inline-start: 14px; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; letter-spacing: 0; line-height: 1.4; }
.project-status.is-open { background: #e3f4e8; color: #1d6b37; }
.project-status.is-closed { background: #eef0f4; color: #61708c; }
/* kept for the business page, which shares the card look */
.project-list { display: grid; gap: 12px; margin-block: 12px; }
a.project-card { display: block; color: inherit; text-decoration: none; }
a.project-card:hover { border-color: var(--blue); }

/* the list of projects */
.pj-list { display: grid; gap: 12px; margin-block: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pj-card { display: grid; gap: 8px; padding: 16px 18px; background: #fff; border: 1px solid var(--border); border-radius: 12px; color: inherit; text-decoration: none; transition: border-color .15s ease-out; }
.pj-card:hover { border-color: var(--blue); }
.pj-card:focus-visible { outline: 3px solid #245cf55c; outline-offset: 2px; }
.pj-card.is-closed { background: transparent; }
.pj-card h2 { font-size: 18px; margin: 0; overflow-wrap: anywhere; }
.pj-card p { margin: 0; }
.pj-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pj-card-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.pj-badge { flex: none; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #eef0f4; color: #4c5870; }
.pj-badge.is-invite { background: #e9eaff; color: #3d4d99; }
.pj-meter { block-size: 6px; border-radius: 99px; background: #e9ebf1; overflow: hidden; }
.pj-meter i { display: block; block-size: 100%; background: #2f8a4c; border-radius: inherit; transition: inline-size .4s cubic-bezier(.2,.8,.2,1); }
.pj-archive { margin-block-start: 20px; }
.pj-archive summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--muted); }
.pj-empty { padding: 28px 20px; border: 1px dashed var(--border); border-radius: 12px; text-align: center; }
.pj-empty h2 { font-size: 18px; margin: 0 0 6px; }
.pj-empty p { margin: 0 auto; max-width: 46ch; }
.is-late { color: #b42318; }

/* the one-project header: goal, people, the numbers */
/* .pj-head is a <header>: drop the page header's fixed height so a wrapped row of people
   on a phone grows the block instead of running under its divider line (#4279 item 13). */
.pj-head { display: grid; gap: 12px; margin-block: 4px 16px; height: auto; padding-block-end: 14px; }
.pj-goal { font-size: 17px; line-height: 1.55; margin: 0; max-width: 70ch; }
.pj-people { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0; padding: 0; }
.pj-people li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.pj-role { font-weight: 400; font-size: 13px; color: var(--muted); }
.pj-avatar { --hue: 215; flex: none; display: inline-grid; place-items: center; inline-size: 32px; block-size: 32px; border-radius: 50%; font-size: 14px; font-weight: 700; background: hsl(var(--hue) 70% 92%); color: hsl(var(--hue) 45% 30%); }
.pj-avatar.is-invited { background: transparent; border: 1.5px dashed hsl(var(--hue) 40% 60%); }
.pj-avatar-sm { inline-size: 22px; block-size: 22px; font-size: 11px; }
.pj-invite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; margin-block-end: 16px; border-radius: 12px; background: #e9eaff; }
.pj-invite p { margin: 0; flex: 1 1 260px; }
.pj-closed-note { padding: 12px 14px; border-radius: 10px; background: #eef0f4; color: #4c5870; }
.pj-bento { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; border: 1px solid var(--border); border-radius: 12px; background: #fff; margin-block-end: 22px; }
.pj-stat { display: grid; align-content: start; gap: 2px; padding: 14px 16px; border-inline-start: 1px solid var(--border); }
.pj-stat:first-child { border-inline-start: 0; }
.pj-stat strong { font-size: 26px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.pj-stat span { font-size: 14px; color: var(--muted); }
.pj-stat.is-lead strong { font-size: 34px; }
.pj-stat.is-lead .pj-meter { margin-block-start: 8px; }
.pj-stat.is-late strong { color: #b42318; }
.pj-stat.is-warn strong { color: #a15c07; }

/* tasks: toolbar, needs-an-owner strip, board, list */
.pj-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-block-end: 12px; }
.pj-toolbar h2 { font-size: 20px; margin: 0; margin-inline-end: auto; }
.pj-switch { display: inline-flex; padding: 3px; border-radius: 10px; background: #e9ebf1; }
.pj-switch button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-weight: 600; }
.pj-switch button[aria-pressed="true"] { background: #fff; color: inherit; box-shadow: 0 1px 2px #14204014; }
.pj-add { min-height: 44px; }
.pj-orphans { padding: 12px 14px; margin-block-end: 14px; border: 1px solid #f1d9b5; border-radius: 12px; background: #fff8ee; }
.pj-orphans h3 { margin: 0 0 6px; font-size: 15px; color: #8a4b06; }
.pj-orphans ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pj-orphans li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pj-linkish { border: 0; background: none; padding: 0; min-height: 44px; color: inherit; font-weight: 600; text-align: start; overflow-wrap: anywhere; }
.pj-linkish:hover { color: var(--blue); }
.pj-take { flex: none; min-height: 36px; padding: 0 14px; border: 0; border-radius: 8px; font-weight: 600; }
.pj-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.pj-col { border-radius: 12px; background: #eef0f5; padding: 10px; min-block-size: 140px; transition: background-color .15s ease-out, box-shadow .15s ease-out; }
.pj-col.is-over { background: #e3e8ff; box-shadow: inset 0 0 0 2px #4655a666; }
.pj-col h3, .pj-group h3, .pj-group summary { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.pj-col h3::before, .pj-group h3::before, .pj-group summary::before { content: ""; inline-size: 8px; block-size: 8px; border-radius: 50%; background: #9aa3b5; }
.s-in_progress > h3::before, .s-in_progress > summary::before { background: #3a63d8; }
.s-blocked > h3::before, .s-blocked > summary::before { background: #d97706; }
.s-done > h3::before, .s-done > summary::before { background: #2f8a4c; }
.pj-count { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.pj-col-body, .pj-rows { display: grid; gap: 8px; }
.pj-col-empty { margin: 4px 0; color: #9aa3b5; text-align: center; }
.pj-task { display: grid; gap: 8px; inline-size: 100%; padding: 12px; text-align: start; font: inherit; color: inherit; background: #fff; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; transition: border-color .15s ease-out, transform .15s ease-out; }
.pj-task:hover { border-color: #b8c0d6; }
.pj-task:active { transform: scale(.985); }
.pj-task:focus-visible { outline: 3px solid #245cf55c; outline-offset: 2px; }
.pj-task.is-dragging { opacity: .5; }
.pj-task.s-done .pj-task-title { color: var(--muted); text-decoration: line-through; text-decoration-color: #b8c0d6; }
.pj-task.s-dropped { opacity: .65; }
.pj-task-top { display: flex; align-items: baseline; gap: 8px; }
.pj-task-title { font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.pj-flag { flex: none; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: #fde7e5; color: #b42318; }
.pj-blocked { font-size: 14px; color: #8a4b06; overflow-wrap: anywhere; }
.pj-task-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.pj-who { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.pj-who > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-who.is-none { color: #a15c07; }
.pj-due { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.pj-due.is-late { color: #b42318; font-weight: 700; }
.pj-group { margin-block-end: 14px; }
.pj-group summary { cursor: pointer; min-height: 44px; margin: 0; }
.pj-rows .pj-task { grid-template-columns: 1fr auto; align-items: center; }
.pj-rows .pj-task-top, .pj-rows .pj-blocked { grid-column: 1; }
.pj-rows .pj-task-meta { grid-column: 1 / -1; }
.pj-dropped { color: var(--muted); }
.pj-none { padding: 18px; border: 1px dashed var(--border); border-radius: 12px; text-align: center; }

/* decisions, notes, files, what changed */
.pj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-block-start: 30px; padding-block-start: 22px; border-block-start: 1px solid var(--border); }
.pj-note { padding-block: 10px; border-block-end: 1px solid var(--border); }
.pj-note p { margin: 0; }
.pj-note .muted { font-size: 14px; margin-block-start: 4px; }
.pj-note-by { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; margin-block-end: 4px !important; }
.pj-changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.pj-changes li { padding-inline-start: 14px; border-inline-start: 2px solid var(--border); }
.pj-hint { font-size: 14px; margin-block: 0 6px; }
.pj-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-block-start: 28px; padding-block-start: 18px; border-block-start: 1px solid var(--border); }
.quiet.pj-danger, .quiet.pj-danger:hover { color: var(--c-bad); text-decoration-color: currentColor; }

/* one task: side panel on a wide screen, full sheet on a phone */
dialog.pj-panel { position: fixed; inset-block: 0; inset-inline-end: 0; inset-inline-start: auto; margin: 0; max-height: none; block-size: 100dvh; inline-size: min(440px, 100vw); max-width: 100vw; padding: 0; border: 0; border-inline-start: 1px solid var(--border); background: #fff; color: inherit; box-shadow: -12px 0 32px #1420401a; animation: pj-in .22s cubic-bezier(.2,.8,.2,1); }
html[dir="rtl"] dialog.pj-panel { box-shadow: 12px 0 32px #1420401a; }
dialog.pj-panel::backdrop { background: #14204033; animation: pj-fade .22s ease-out; }
dialog.pj-panel.is-leaving { animation: pj-out .16s ease-in forwards; }
dialog.pj-panel.is-leaving::backdrop { opacity: 0; transition: opacity .16s ease-in; }
@keyframes pj-in { from { transform: translateX(var(--pj-from, 24px)); opacity: 0; } }
@keyframes pj-out { to { transform: translateX(var(--pj-from, 24px)); opacity: 0; } }
@keyframes pj-fade { from { opacity: 0; } }
html[dir="rtl"] dialog.pj-panel { --pj-from: -24px; }
.pj-panel-body { display: grid; align-content: start; gap: 14px; padding: 16px 20px 28px; block-size: 100%; overflow-y: auto; }
.pj-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pj-panel-top h2 { margin: 0; font-size: 18px; }
.pj-close { inline-size: 44px; block-size: 44px; border: 0; border-radius: 10px; background: #eef0f4; font-size: 24px; line-height: 1; color: inherit; }
.pj-field { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.pj-field[hidden] { display: none; }
.pj-field input, .pj-field select { font: inherit; font-size: 16px; font-weight: 400; min-height: 48px; padding: 0 12px; border: 1px solid #ccd5e4; border-radius: 9px; background: #fff; color: inherit; inline-size: 100%; }
.pj-field input:focus, .pj-field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px #245cf51a; }
.pj-field-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.pj-check { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 600; }
.pj-check input { inline-size: 20px; block-size: 20px; }
.pj-body { padding: 10px 12px; border-radius: 9px; background: #f5f6f9; }
.pj-panel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 6px; }
.pj-panel-actions button { min-height: 48px; padding: 0 20px; }

@media (max-width: 960px) {
  .pj-board { grid-template-columns: repeat(4, minmax(220px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-block-end: 6px; }
  .pj-col { scroll-snap-align: start; }
}
@media (max-width: 720px) {
  .pj-list { grid-template-columns: 1fr; }
  .pj-bento { grid-template-columns: repeat(3, 1fr); }
  .pj-stat.is-lead { grid-column: 1 / -1; border-inline-start: 0; border-block-end: 1px solid var(--border); }
  .pj-stat:nth-child(2) { border-inline-start: 0; }
  .pj-stat { padding: 12px 14px; }
  .pj-stat strong { font-size: 22px; }
  .pj-stat.is-lead strong { font-size: 30px; }
  .pj-grid { grid-template-columns: 1fr; }
  .pj-toolbar h2 { font-size: 18px; }
  .pj-add { order: 3; flex: 1 1 100%; }
  dialog.pj-panel { inset: 0; inline-size: 100vw; block-size: 100dvh; border: 0; border-radius: 0; --pj-from: 0; animation-name: pj-up; }
  html[dir="rtl"] dialog.pj-panel { --pj-from: 0; }
  dialog.pj-panel.is-leaving { animation-name: pj-down; }
  @keyframes pj-up { from { transform: translateY(32px); opacity: 0; } }
  @keyframes pj-down { to { transform: translateY(32px); opacity: 0; } }
}



/* ---- The business screen, "Crisp Console" (#4070, Erik picked it 2026-10-28) ----
   body.biz-console is on only while one business is on screen (public/portal.js showBusiness):
   the portal's own header, title row and tabs step aside and the screen takes the whole window.
   Heebo is served from /fonts (the CSP keeps fonts to 'self'); OFL, like the designed PDFs. */
@font-face { font-family: "Heebo"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/heebo-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/heebo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
body.biz-console { background: #e8eff1; }
body.biz-console > header, body.biz-console > footer, body.biz-console .workspace-top, body.biz-console #nav, body.biz-console #live-browser { display: none !important; }
body.biz-console main { max-width: none; padding: 0; min-height: 100vh; }
body.biz-console #page-business > section { margin: 0; }
.bz {
  --frame:#e8eff1; --sheet:#fff; --ink:#111a1d; --ink-2:#4a585d; --ink-3:#5f6d72; --line:#e3e8ea; --line-2:#d2dadd; --hover:#f5f8f9;
  --teal:#1b6c80; --teal-ink:#145566; --teal-tint:#e4f0f3;
  --paid:#167a4f; --paid-t:#e5f4ec; --open:#b4400d; --open-t:#fcece2; --claim:#1d5bb8; --claim-t:#e6eefb; --none:#5f6d72; --none-t:#eef1f2;
  --ease:cubic-bezier(.23,1,.32,1);
  font-family: "Heebo", system-ui, sans-serif; font-size: 14px; line-height: 1.5; color: var(--ink); -webkit-font-smoothing: antialiased;
  display: grid; min-height: 100vh; grid-template-columns: minmax(0,1fr); background: var(--frame);
}
.bz *, .bz *::before, .bz *::after { box-sizing: border-box; }
.bz :where(h1, h2, p, dl, dd, dt) { margin: 0; padding: 0; } /* :where() keeps the reset at zero weight, so .bz-empty, .bz-kv and .bz-foot keep their padding */
.bz ::selection { background: var(--teal); color: #fff; }
.bz :focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
.bz button, .bz input { font: inherit; color: inherit; }
.bz button { border: 0; background: none; cursor: pointer; padding: 0; }
.bz a { color: inherit; }
.bz .num { font-variant-numeric: tabular-nums; unicode-bidi: isolate; display: inline-block; }
.bz .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width:1024px) { .bz { grid-template-columns: 232px minmax(0,1fr); } }
.bz-side { display: none; padding: 16px 12px; }
@media (min-width:1024px) { .bz-side { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; align-self: start; } }
.bz-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; padding: 6px 8px 18px; text-decoration: none; }
.bz-mark { width: 24px; height: 24px; border-radius: 7px; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.bz .bz-nav { display: flex; align-items: center; gap: 10px; padding: 0 10px; height: 34px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 500; width: 100%; text-align: start; }
.bz .bz-nav:hover { background: rgba(255,255,255,.6); }
.bz .bz-nav[aria-current] { background: var(--sheet); color: var(--ink); }
.bz-nav .bz-c { margin-inline-start: auto; font-size: 12px; color: var(--ink-3); }
.bz-grp { font-size: 12px; color: var(--ink-3); padding: 18px 10px 6px; }
.bz-side svg { flex: none; color: var(--ink-3); }
.bz-col { min-width: 0; }
.bz-mbar { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 16px; }
.bz-mbar .bz-brand { padding: 0; }
@media (min-width:1024px) { .bz-mbar { display: none; } }
.bz-mbar > a:last-child { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); text-decoration: none; min-height: 44px; }
[dir="ltr"] .bz-mbar > a:last-child svg { transform: scaleX(-1); }
/* Back to the portal home: the portal's own project-back link; the chevron points back in either direction. */
.bz a.bz-home { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 20px; color: var(--blue); font-weight: 600; text-decoration: none; }
@media (min-width:1024px) { .bz a.bz-home { padding: 0 32px; } }
[dir="ltr"] .bz a.bz-home svg { transform: scaleX(-1); }
.bz-sheet { background: var(--sheet); margin: 0 8px 8px; border-radius: 16px; min-width: 0; }
@media (min-width:1024px) { .bz-sheet { margin: 8px; margin-inline-start: 0; } }
.bz-ph { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
@media (min-width:1024px) { .bz-ph { padding: 22px 32px 18px; } }
.bz-crumb { font-size: 13px; color: var(--ink-3); }
.bz h1 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.bz-meta { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.bz .bz-btn { height: 36px; padding: 0 12px; border-radius: 8px; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line-2); background: var(--sheet); color: var(--ink); transition: background-color .15s var(--ease), transform .1s var(--ease); white-space: nowrap; }
.bz .bz-btn:hover { background: var(--hover); }
.bz .bz-btn:active { transform: scale(.97); }
.bz .bz-btn.is-pri { background: var(--teal); border-color: var(--teal); color: #fff; }
.bz .bz-btn.is-pri:hover { background: var(--teal-ink); }
.bz .bz-btn:disabled { opacity: .5; cursor: wait; }
@media (pointer:coarse) { .bz .bz-btn { height: 44px; padding: 0 14px; } }
.bz-body { padding: 20px; }
@media (min-width:1024px) { .bz-body { padding: 24px 32px 40px; } }
.bz-kpis { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 12px; }
@media (min-width:760px) { .bz-kpis { grid-template-columns: repeat(4,1fr); } }
.bz-kpi { padding: 14px 16px; min-width: 0; }
.bz-kpi + .bz-kpi { border-inline-start: 1px solid var(--line); }
@media (max-width:759px) { .bz-kpi:nth-child(3) { border-inline-start: 0; } .bz-kpi:nth-child(n+3) { border-top: 1px solid var(--line); } }
.bz-l { font-size: 13px; color: var(--ink-2); }
.bz-v { font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin-top: 2px; line-height: 1.2; }
.bz-v.is-open { color: var(--open); }
.bz-s { font-size: 12px; color: var(--ink-3); }
.bz-fine { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; display: flex; gap: 4px 16px; flex-wrap: wrap; }
.bz-alert { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; background: var(--claim-t); border-radius: 10px; padding: 10px 12px; margin-top: 16px; }
.bz-alert p { flex: 1 1 220px; color: #123d7d; }
.bz-alert b { font-weight: 600; }
.bz-cols { display: grid; gap: 24px; margin-top: 24px; grid-template-columns: minmax(0,1fr); }
.bz-side3 { display: grid; gap: 24px; grid-template-columns: minmax(0,1fr); }
@media (min-width:1024px) { .bz-side3 { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; } }
.bz-panel { border: 1px solid var(--line); border-radius: 12px; min-width: 0; scroll-margin-top: 12px; }
.bz-pt { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); min-height: 50px; flex-wrap: wrap; }
.bz h2 { font-size: 14px; font-weight: 600; line-height: 1.5; }
.bz-pt .bz-c { color: var(--ink-3); font-weight: 400; margin: 0 6px; }
.bz-seg { display: inline-flex; background: var(--frame); border-radius: 8px; padding: 2px; }
.bz .bz-seg button { height: 28px; padding: 0 10px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.bz .bz-seg button[aria-selected="true"] { background: var(--sheet); color: var(--ink); }
@media (pointer:coarse) { .bz .bz-seg button { height: 40px; } }
.bz-tbl { overflow-x: auto; }
.bz table { width: 100%; border-collapse: collapse; }
.bz th { font-size: 12px; font-weight: 500; color: var(--ink-3); text-align: start; padding: 8px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.bz td { padding: 0 14px; height: 48px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.bz tbody tr:last-child td { border-bottom: 0; }
.bz tbody tr { transition: background-color .12s var(--ease); }
.bz tbody tr:hover { background: var(--hover); }
.bz td.bz-end, .bz th.bz-end { text-align: end; }
.bz-who { font-weight: 500; }
.bz-dim { color: var(--ink-3); }
.bz-small { font-size: 12.5px; }
.bz td.bz-dim { white-space: normal; min-width: 120px; }
.bz-pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.bz-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.bz-pill.is-paid { background: var(--paid-t); color: var(--paid); }
.bz-pill.is-open { background: var(--open-t); color: var(--open); }
.bz-pill.is-claim { background: var(--claim-t); color: var(--claim); }
.bz-pill.is-none { background: var(--none-t); color: var(--none); }
.bz-pin { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 7px; height: 30px; padding: 0; padding-inline: 8px 4px; gap: 2px; width: 96px; background: #fff; margin: 0; }
.bz .bz-pin input { flex: 1 1 auto; width: 100%; min-width: 0; height: 100%; min-height: 0; margin: 0; border: 0; outline: 0; box-shadow: none; font-size: 13px; background: transparent; padding: 0; border-radius: 0; -moz-appearance: textfield; }
.bz .bz-pin input::-webkit-outer-spin-button, .bz .bz-pin input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* The workspace's form-submit spacing (#workspace form > button) would push Save price off the price row. */
#workspace .bz form > button[type="submit"] { margin-block-start: 0; }
.bz-pin:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
.bz-cur { color: var(--ink-3); }
.bz .bz-ok { width: 22px; height: 22px; border-radius: 5px; display: grid; place-items: center; color: var(--teal-ink); flex: none; }
.bz .bz-ok:hover { background: var(--teal-tint); }
.bz-rowacts { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.bz .bz-rowacts .bz-btn { height: 30px; font-size: 12.5px; padding: 0 10px; }
.bz-empty { padding: 14px; color: var(--ink-3); }
.bz-mlist { display: none; }
@media (max-width:759px) {
  .bz-tbl { display: none; } .bz-mlist { display: block; }
  .bz-mrow { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .bz-mrow:last-child { border-bottom: 0; }
  .bz-mhead { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 10px; cursor: pointer; }
  .bz-mhead:not([role]) { cursor: default; }
  .bz-a { font-weight: 600; font-size: 15px; }
  .bz-b { font-size: 13px; color: var(--ink-3); }
  .bz-amt { font-weight: 600; text-align: end; }
  /* Row 1: the price box (flexible) + Save price beside it; row 2: Mark paid / unpaid, full width. */
  .bz-acts { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
  .bz-pform { display: flex; align-items: center; gap: 8px; margin: 0; min-width: 0; }
  .bz-pform .bz-pin { flex: 1 1 auto; min-width: 0; width: auto; height: 44px; }
  .bz .bz-pform > .bz-btn { flex: none; height: 44px; margin: 0; }
  .bz .bz-acts > .bz-btn { width: 100%; height: 44px; margin: 0; }
}
.bz-plist .bz-it { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.bz-plist .bz-it:last-child { border-bottom: 0; }
.bz-n { font-weight: 600; }
.bz-m { font-size: 12.5px; color: var(--ink-3); grid-column: 1/-1; }
.bz-q { grid-column: 1/-1; color: var(--ink-2); margin-top: 4px; font-size: 13.5px; }
.bz-debt { color: var(--open); font-weight: 600; font-size: 13px; }
.bz-credit { color: var(--paid); font-size: 13px; }
.bz-kv { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px 16px; padding: 14px; }
.bz-kv dt { color: var(--ink-3); font-size: 13px; }
.bz-conn { display: inline-flex; align-items: center; gap: 6px; margin-inline-end: 12px; }
.bz-conn i { width: 7px; height: 7px; border-radius: 50%; background: var(--paid); }
.bz-conn i.is-off { background: var(--line-2); }
.bz-foot { padding: 0 14px 14px; color: var(--ink-3); font-size: 13px; }
/* The "sending to Kubi" line, as a toast while the console is on. */
body.biz-console #business-message { position: fixed; bottom: 16px; inset-inline-start: 16px; z-index: 50; max-width: min(420px, calc(100vw - 32px)); background: #111a1d; color: #fff; padding: 10px 14px; border-radius: 10px; font: 13px/1.5 "Heebo", system-ui, sans-serif; box-shadow: 0 8px 24px rgba(17,26,29,.18); }
@media (prefers-reduced-motion:reduce) { .bz * { transition-duration: 0s !important; } }

/* ── Crisp design system for the whole portal (#4070, Erik 397276) ──────────
   Same tokens as the business screen (.bz above): Heebo, a teal accent, a
   grey-green frame with one white sheet on it. Visual only - every rule here
   restyles markup that already exists; no page depends on it to work.
   "The app shell" = the signed-in workspace, minus the business screen, which
   draws its own console (body.biz-console). On a desktop the page list is a
   side menu; on a phone it is a row of pills under a slim top bar. */
:root {
  --c-frame: #e8eff1; --c-sheet: #fff; --c-ink: #111a1d; --c-ink-2: #4a585d; --c-ink-3: #5f6d72;
  --c-line: #e3e8ea; --c-line-2: #d2dadd; --c-hover: #f5f8f9;
  --c-teal: #1b6c80; --c-teal-ink: #145566; --c-teal-tint: #e4f0f3;
  --c-open: #b4400d; --c-open-t: #fcece2; --c-paid: #167a4f; --c-paid-t: #e5f4ec; --c-bad: #b42318;
  --c-ease: cubic-bezier(.23, 1, .32, 1);
  --blue: var(--c-teal); --muted: var(--c-ink-3); --border: var(--c-line);
  --brand-midnight: var(--c-teal); --brand-ivory: var(--c-frame);
  font-family: "Heebo", Arial, "Noto Sans Hebrew", system-ui, sans-serif;
  color: var(--c-ink);
  background: var(--c-frame);
}
body { font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
::selection { background: var(--c-teal); color: #fff; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--c-teal); outline-offset: 2px; border-radius: 6px; }

/* Type */
h1 { font-size: 36px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
h2 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.4; }
h3 { font-weight: 600; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--c-teal); margin-bottom: 10px; }
.muted { font-size: 14px; color: var(--c-ink-3); }
.hint, #catalog-note { font-size: 13px; color: var(--c-ink-3); }
.message { font-size: 13px; color: var(--c-bad); }
label:not(.channel, .phone-screen label) { font-size: 13px; font-weight: 500; color: var(--c-ink-2); margin: 16px 0 6px; }
a { color: var(--c-teal); }

/* Buttons */
.primary, .secondary, .quiet {
  border-radius: 8px; padding: 8px 14px; min-height: 38px; font-size: 14px; font-weight: 600;
  transition: background-color .15s var(--c-ease), transform .1s var(--c-ease);
}
.primary:active, .secondary:active { transform: scale(.98); }
.primary { background: var(--c-teal); color: #fff; }
.primary:hover { background: var(--c-teal-ink); }
.secondary { background: var(--c-sheet); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line-2); }
.secondary:hover { background: var(--c-hover); }
.quiet { color: var(--c-ink-2); }
.quiet:hover { background: var(--c-hover); color: var(--c-ink); }
#app-catalog .connection-card button.primary { padding: 8px 14px; }
.connection-card button { color: var(--c-bad); }

/* Fields. :where() keeps these at element weight, so a field's own class
   (the big one-time-code box, for one) still wins. */
input:where(:not([type="checkbox"], [type="radio"], [type="range"], [type="file"])), select, textarea {
  padding: 8px 12px; min-height: 38px; border: 1px solid var(--c-line-2); border-radius: 8px;
  font-size: 14px; background: var(--c-sheet); color: var(--c-ink);
}
textarea { font: inherit; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--c-teal); box-shadow: 0 0 0 3px rgba(27, 108, 128, .15); outline: none; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--c-teal); width: auto; }
.language-switch { min-height: 32px; padding: 4px 8px; font-size: 13px; border-color: var(--c-line-2); border-radius: 8px; width: auto; }

/* Cards */
.login-card, .connection-card, .identity, .approval-card, dialog {
  background: var(--c-sheet); border: 1px solid var(--c-line); border-radius: 12px; box-shadow: none;
}
.login-card { border-radius: 16px; }
.connection-card { padding: 16px 18px; }
.connection-card h2, #vault-items .connection-card h2 { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.connection-card p { font-size: 13px; color: var(--c-ink-3); margin: 4px 0; }
.connection-grid { gap: 12px; }
#usage-items { display: grid; gap: 10px; }
#app-catalog { gap: 10px; }
.identity { padding: 14px 18px; margin: 0 0 24px; }
.avatar { background: var(--c-teal-tint); color: var(--c-teal-ink); font-weight: 600; }
.approval-card { border-inline-start: 3px solid var(--c-teal); padding: 18px 20px; }
.approval-card h3 { font-size: 16px; }
.approval-card.focused { box-shadow: 0 0 0 4px rgba(27, 108, 128, .18); }
.badge { background: var(--c-teal-tint); color: var(--c-teal-ink); border-radius: 999px; padding: 3px 10px; font-weight: 500; }
.service-tag { color: var(--c-teal); font-weight: 600; }
.empty { border: 1px dashed var(--c-line-2); border-radius: 12px; background: var(--c-sheet); padding: 40px 24px; }
.empty p { font-size: 14px; }
.empty-symbol { background: var(--c-teal-tint); color: var(--c-teal); border-radius: 12px; }
dialog { border-radius: 16px; padding: 24px; }
dialog::backdrop { background: rgba(17, 26, 29, .45); }
details > summary { cursor: pointer; color: var(--c-ink-2); font-weight: 500; }
.nav-count { background: var(--c-open); }

/* Plain tables on any page (the business screen has its own). */
#workspace .page table:not(.bz table) { width: 100%; border-collapse: collapse; font-size: 14px; }
#workspace .page table:not(.bz table) th { font-size: 12px; font-weight: 500; color: var(--c-ink-3); text-align: start; padding: 8px 12px; border-bottom: 1px solid var(--c-line); }
#workspace .page table:not(.bz table) td { padding: 10px 12px; border-bottom: 1px solid var(--c-line); }

/* Signed out: the frame, a slim header, a white card. */
body > header { height: 64px; border-bottom: 0; background: var(--c-frame); }
body { font-family: "Heebo", Arial, "Noto Sans Hebrew", system-ui, sans-serif; }
.brand-lockup { width: 120px; height: 45px; filter: brightness(1.06); mix-blend-mode: multiply; } /* the PNG sits on ivory; lift it to white, then let the frame show through */
footer { color: var(--c-ink-3); }

/* ── The app shell ── */
body:has(#workspace:not([hidden])):not(.biz-console) main { max-width: none; background: var(--c-sheet); }
body:has(#workspace:not([hidden])):not(.biz-console) .header-note { display: none; }
body:has(#workspace:not([hidden])):not(.biz-console) .workspace-top { align-items: flex-start; flex-wrap: wrap; border-bottom: 1px solid var(--c-line); }
body:has(#workspace:not([hidden])):not(.biz-console) .workspace-top h1 { font-size: 22px; letter-spacing: -.01em; line-height: 1.25; margin: 0 0 2px; }
body:has(#workspace:not([hidden])):not(.biz-console) .workspace-top .eyebrow { font-size: 13px; font-weight: 400; color: var(--c-ink-3); margin: 0 0 2px; }
body:has(#workspace:not([hidden])):not(.biz-console) .workspace-top .muted { font-size: 13px; margin: 0; }
body:has(#workspace:not([hidden])):not(.biz-console) #workspace h2 { font-size: 15px; font-weight: 600; margin: 20px 0 8px; }
body:has(#workspace:not([hidden])):not(.biz-console) #workspace .connection-card h2 { margin: 0 0 4px; }
body:has(#workspace:not([hidden])):not(.biz-console) #workspace .page > section:first-child > h2:first-child { margin-top: 0; }
body:has(#workspace:not([hidden])):not(.biz-console) #nav { scrollbar-width: none; }
body:has(#workspace:not([hidden])):not(.biz-console) #nav a {
  border: 0; margin: 0; font-weight: 500; color: var(--c-ink-2);
  transition: background-color .12s var(--c-ease), color .12s var(--c-ease);
}

@media (min-width: 1024px) {
  body:has(#workspace:not([hidden])):not(.biz-console) > header {
    position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 5; width: 232px; height: auto; max-width: none;
    margin: 0; padding: 16px 12px; flex-direction: column; align-items: stretch; gap: 6px; border: 0;
  }
  body:has(#workspace:not([hidden])):not(.biz-console) > header .brand { padding: 0 8px; }
  body:has(#workspace:not([hidden])):not(.biz-console) .brand-lockup { width: 104px; height: 39px; }
  body:has(#workspace:not([hidden])):not(.biz-console) .language-switch { margin: auto 0 0; width: 100%; }
  body:has(#workspace:not([hidden])):not(.biz-console) #logout { margin: 0; text-align: start; padding-inline: 10px; }
  body:has(#workspace:not([hidden])):not(.biz-console) #nav {
    position: fixed; top: 76px; inset-inline-start: 0; z-index: 6; width: 232px; max-height: calc(100vh - 76px - 112px);
    overflow-y: auto; overflow-x: hidden; flex-direction: column; gap: 2px; margin: 0; padding: 0 12px; border: 0;
  }
  body:has(#workspace:not([hidden])):not(.biz-console) #nav a { height: 36px; padding: 0 10px; border-radius: 8px; font-size: 14px; flex: none; }
  body:has(#workspace:not([hidden])):not(.biz-console) #nav a:hover { background: rgba(255, 255, 255, .6); color: var(--c-ink); }
  body:has(#workspace:not([hidden])):not(.biz-console) #nav a.on { background: var(--c-sheet); color: var(--c-ink); }
  body:has(#workspace:not([hidden])):not(.biz-console) .nav-count { margin-inline-start: auto; }
  body:has(#workspace:not([hidden])):not(.biz-console) main {
    margin: 8px; margin-inline-start: 232px; padding: 0 32px 32px; border-radius: 16px; min-height: calc(100vh - 16px);
  }
  body:has(#workspace:not([hidden])):not(.biz-console) .workspace-top { margin: 0 -32px 24px; padding: 22px 32px 18px; }
  body:has(#workspace:not([hidden])):not(.biz-console) footer { max-width: none; margin-inline-start: 232px; padding: 4px 40px 16px; }
}
@media (max-width: 1023px) {
  body:has(#workspace:not([hidden])):not(.biz-console) > header { height: 52px; max-width: none; padding: 0 16px; gap: 12px; border: 0; }
  body:has(#workspace:not([hidden])):not(.biz-console) .brand-lockup { width: 88px; height: 33px; }
  body:has(#workspace:not([hidden])):not(.biz-console) main { margin: 0 8px 8px; padding: 0 16px 24px; border-radius: 16px; min-height: 0; }
  body:has(#workspace:not([hidden])):not(.biz-console) .workspace-top { margin: 0 -16px; padding: 18px 16px 14px; }
  body:has(#workspace:not([hidden])):not(.biz-console) #nav {
    position: sticky; top: 0; z-index: 5; background: var(--c-sheet); margin: 0 -16px 16px; padding: 10px 16px;
    gap: 6px; border-bottom: 1px solid var(--c-line); border-radius: 0;
  }
  body:has(#workspace:not([hidden])):not(.biz-console) #nav a {
    height: 34px; padding: 0 12px; border-radius: 999px; font-size: 13px; box-shadow: inset 0 0 0 1px var(--c-line);
  }
  body:has(#workspace:not([hidden])):not(.biz-console) #nav a.on { background: var(--c-teal-tint); color: var(--c-teal-ink); box-shadow: none; }
  body:has(#workspace:not([hidden])):not(.biz-console) footer { padding: 8px 24px 16px; }
}

/* #4279: connections in groups (Google first), each group a card grid. */
.app-group + .app-group { margin-block-start: 20px; }
.app-group > h3 { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--ink, #141e40); }
.app-group .connection-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-inline-size: 0; }
.app-group .connection-card p { margin: 0; }
.app-group .connection-card .app-account { inline-size: 100%; }
/* .connection-card button (later in the file) pushes buttons down 12px; in an
   account row that left "Remove" lower than the address beside it. */
.app-group .connection-card .app-account button { margin-block-start: 0; }
.app-send-status { margin: 0; font-size: 13px; }
.app-send-status:empty { display: none; }
.app-send-status[data-state="busy"] { color: var(--ink-soft, #4f566e); }
.app-send-status[data-state="ok"] { color: var(--ok, #1f7a4d); }
.app-send-status[data-state="error"] { color: var(--err, #a8261b); }
.app-send-status button { display: block; margin-block-start: 6px; }

/* #4279: the home page. Each card is a link to its page. */
.home-cards { margin-block-start: 16px; }
a.home-card { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; }
a.home-card:hover, a.home-card:focus-visible { border-color: var(--accent, #4655a6); }
a.home-card h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink, #141e40); }
a.home-card p { margin: 0; }
.home-card .home-value { font-size: 30px; line-height: 1.15; font-weight: 700; color: var(--ink, #141e40); }

/* #4279: Requests / Ideas on the support page; same look as .team-graph-tabs. */
.portal-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 4px 16px; }
.portal-tabs button { min-block-size: 40px; padding-inline: 18px; border: 1px solid var(--line, #dcdce6); border-radius: 999px; background: var(--card, #fff); color: var(--ink, #141e40); font: inherit; cursor: pointer; }
.portal-tabs button[aria-selected="true"] { background: var(--accent, #4655a6); border-color: var(--accent, #4655a6); color: #fff; }

/* #4279: usage, a few totals and a bar per day. */
.usage-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-block: 16px; }
.usage-stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line, #dcdce6); border-radius: 14px; background: var(--card, #fff); min-inline-size: 0; }
.usage-stat > span:first-child { font-size: 13px; color: var(--ink-soft, #4f566e); }
.usage-stat strong { font-size: 22px; line-height: 1.2; color: var(--ink, #141e40); overflow-wrap: anywhere; }
.usage-stat .muted { font-size: 12px; }
.usage-chart { margin: 0 0 20px; padding: 16px 18px; border: 1px solid var(--line, #dcdce6); border-radius: 14px; background: var(--card, #fff); }
.usage-chart figcaption { display: flex; justify-content: space-between; gap: 12px; margin-block-end: 10px; font-size: 13px; font-weight: 600; color: var(--ink, #141e40); }
.usage-chart figcaption .muted { font-weight: 400; }
.usage-bars { display: flex; align-items: stretch; gap: 2px; block-size: 160px; border-block-end: 1px solid var(--line, #dcdce6); }
.usage-bar { flex: 1 1 0; min-inline-size: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; padding: 0 0 18px; margin: 0; border: 0; background: none; cursor: pointer; position: relative; }
.usage-fill { display: block; border-start-start-radius: 4px; border-start-end-radius: 4px; background: var(--peri, #a8b5ff); }
.usage-bar.on .usage-fill, .usage-bar:hover .usage-fill { background: var(--accent, #4655a6); }
.usage-bar:focus-visible { outline: 2px solid var(--accent, #4655a6); outline-offset: 2px; }
.usage-day { position: absolute; inset-block-end: 0; inset-inline: 0; font-size: 11px; line-height: 16px; text-align: center; color: var(--ink-soft, #4f566e); }
.usage-readout { margin: 10px 0 0; font-size: 14px; color: var(--ink, #141e40); min-block-size: 1.4em; }
@media (max-width: 650px) {
  .usage-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usage-bars { block-size: 130px; }
  .usage-day { font-size: 10px; }
}

/* #4279: the voice list with its play button beside it. */
.voice-pick { display: flex; gap: 8px; align-items: stretch; margin-block-end: 14px; }
.voice-pick select { flex: 1 1 auto; min-inline-size: 0; }
.voice-pick button { flex: 0 0 auto; margin: 0; }
