/* Client mode (2026-09-10). Andres screen-shares Watchtower with clients, so every
   financial figure needs to disappear behind one switch.

   The blur is a class on ELEMENTS, applied by js/privacy.js. Nothing rewraps text
   nodes: rewrapping would rebuild innerHTML across 19 tabs and drop the click
   handlers those tabs bind on render. Marking an existing element is inert.

   NOTE: this hides the numbers on screen, it does not remove them from the DOM.
   It is a screen-share shield, not an access control. */

.wt-sens {
  transition: filter 120ms ease;
}

body.wt-client .wt-sens {
  filter: blur(7px);
  -webkit-user-select: none;
  user-select: none;
  /* Chrome paints a blurred element on its own layer; without this the text can
     ghost through at low zoom on some GPUs. */
  will-change: filter;
}

/* Charts carry the same numbers as a picture, so the whole canvas goes. */
body.wt-client .wt-sens-canvas {
  filter: blur(14px);
}

/* Hold-to-peek: Andres presses and holds anywhere to read a value for himself
   without leaving client mode. Driven by body.wt-peek in js/privacy.js. */
body.wt-client.wt-peek .wt-sens,
body.wt-client.wt-peek .wt-sens-canvas {
  filter: none;
}

/* --- the toggle itself --- */

.wt-client-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin-top: 10px;
  padding: 8px 10px;
  background: none;
  border: 1px solid var(--cream-a07);
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.wt-client-toggle:hover { color: var(--text); border-color: var(--line-strong); }
.wt-client-toggle svg { flex-shrink: 0; }

.wt-client-toggle .wt-ct-state {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dim);
}

body.wt-client .wt-client-toggle {
  color: var(--cream-btn-text);
  border-color: var(--orange);
  background: rgba(224, 78, 36, 0.14);
}
body.wt-client .wt-client-toggle .wt-ct-state { color: var(--orange-soft-text); }

/* Standing reminder that the dashboard is lying to him on purpose. Sits on the
   window edge, not in the layout, so no tab shifts when it appears. */
#wt-client-banner {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 400;
  padding: 6px 14px;
  background: var(--orange);
  color: var(--cream-btn-text);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
}
body.wt-client #wt-client-banner { display: block; }

/* Mobile: the sidebar footer is display:none under 900px, so the appbar carries
   its own switch. */
.wt-client-mob {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--cream-a07);
  border-radius: 7px;
  padding: 5px 10px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
body.wt-client .wt-client-mob {
  color: var(--cream-btn-text);
  border-color: var(--orange);
  background: rgba(224, 78, 36, 0.16);
}

@media (max-width: 900px) {
  .wt-client-mob { display: block; }
}
