.house-right .cb-tabs button[aria-pressed="true"] {
  color: var(--accent);
}
.house-right .house-tabs .titan-assistant-tab {
  flex: 0 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 0;
}
/* Canvas controls share the side panels' tab track and selected surface. */
.house-main {
  background: var(--panel);
}
/* The shell owns the canvas surface, including its shared glass controls. */
.house-stage .sb.sb-page,
.house-stage .pp.pp-contacts {
  background: transparent;
}
.canvas-tab-bar {
  flex: 1;
  min-width: 0;
  gap: 4px;
  pointer-events: auto;
}
.canvas-tab-bar .house-canvas-btn {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}
.canvas-tab-bar .house-canvas-btn.on {
  color: var(--muted);
  background: transparent;
}
.canvas-tab-bar .house-canvas-btn:hover {
  color: var(--text);
  background: transparent;
}
.canvas-tab-bar .house-canvas-btn svg {
  width: 14px;
  height: 14px;
}
.canvas-tab-bar .house-canvas-title {
  background: transparent;
  color: var(--ink4);
  border-radius: var(--r-full);
  padding: 6px 12px;
  line-height: 20px;
  font-size: var(--t-small);
  font-weight: var(--w-med);
  letter-spacing: 0.02em;
}
.canvas-tab-bar .ws-view {
  flex: 1;
  justify-content: center;
  background: transparent;
  padding: 0;
  border-radius: var(--r-full);
}
.canvas-tab-bar .ws-view button {
  border-radius: var(--r-full);
  padding: 6px 18px;
  line-height: 20px;
  font-size: var(--t-small);
}
.canvas-tab-bar .ws-view button[aria-pressed="true"] {
  background: var(--sel);
  box-shadow: none;
  color: var(--accent);
}
/* The canvas bar sits in the page flow, so nothing scrolls under it, on every page (hygiene,
 * September 27). A page with no background of its own shows the shell's backdrop under the bar and
 * under itself alike. */
.house-main > .house-canvas-header {
  position: relative;
  flex: 0 0 calc(40px + var(--s3) * 2);
}
.house-main > .house-stage {
  padding-top: 0;
}
/* The band behind the bar is the stage's own pane: glass.css and house-shell.css give the bar the
 * stage's frosted pane on a wall. Every page wears it, Contacts and the Portal too: both are on the
 * glass (Mark, September 27), so no page paints the band with a --bg of its own. */
/* A room's own controls in the canvas bar, in place of its title (rooms/shell.js CANVAS_BAR; Mark, October 26, 2026: "WE
 * ARE GOING TO USE THE CANVAS BAR LOSE THE NAME"): its tabs and its views, centred, each group in a track of the compact
 * controls the menu's Work and Personal wear (panel-tools.css .one-scope-tabs). A view's word keeps its width when it
 * is marked (a hidden semibold copy, data-label), so marking one never nudges the others. */
.canvas-tab-bar .house-canvas-tools {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
}
.canvas-tab-bar .house-canvas-tools > :empty,
.canvas-tab-bar .canvas-seg[hidden] {
  display: none;
}
.canvas-tab-bar .inventory-workspace-views {
  display: contents;
}
.canvas-tab-bar .canvas-seg {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--control-edge, var(--edge));
  border-radius: var(--r-9);
  background: color-mix(in srgb, var(--control-fill, var(--panel)) 16%, transparent);
}
.canvas-tab-bar .canvas-seg > :is(a, button) {
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  height: 26px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: var(--r-6);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: calc(13px * var(--t-k));
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.canvas-tab-bar .canvas-seg > :is(a, button):hover {
  color: var(--text);
}
.canvas-tab-bar .canvas-seg > :is([aria-selected="true"], [aria-pressed="true"]) {
  background: var(--tab-selected-fill);
  box-shadow: inset 0 0 0 1px var(--tab-selected-edge);
  color: var(--accent-text);
  font-weight: 600;
}
.canvas-tab-bar .canvas-seg > button > *,
.canvas-tab-bar .canvas-seg > button[data-label]::after {
  grid-area: 1 / 1;
}
.canvas-tab-bar .canvas-seg > button[data-label]::after {
  content: attr(data-label);
  height: 0;
  overflow: hidden;
  visibility: hidden;
  font-weight: 600;
  pointer-events: none;
  user-select: none;
}
.canvas-tab-bar .canvas-seg > button > svg {
  display: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* On a phone the views are their icons, so both groups stay on one line; a bar that still cannot fit wraps onto a second
 * line, and the header grows with it rather than anything scrolling sideways. */
@media (max-width: 600px) {
  .canvas-tab-bar .house-canvas-tools {
    flex-wrap: wrap;
    gap: 4px 6px;
  }
  .canvas-tab-bar .canvas-seg > :is(a, button) {
    padding: 0 8px;
  }
  .canvas-tab-bar .canvas-seg > button > svg {
    display: block;
  }
  .canvas-tab-bar .canvas-seg > button > span,
  .canvas-tab-bar .canvas-seg > button[data-label]::after {
    display: none;
  }
  .house-main:has(.house-canvas-tools) > .house-canvas-header {
    height: auto;
    min-height: calc(40px + var(--s3) * 2);
    flex: 0 0 auto;
  }
  .house-main:has(.house-canvas-tools) > .house-canvas-header .canvas-tab-bar {
    height: auto;
    min-height: 40px;
    border-radius: var(--r-20);
  }
}
