/* BRKTRK Web 0.9.0 — owner-qualified MVP release identity; prior Chain period correction retained. */

.applied-scope-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 6px;
  border: 1px solid rgba(255, 196, 74, 0.34);
  border-radius: 4px;
  color: var(--amber);
  font: 800 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

#scopeSwitch .i1-queued-scope {
  border-color: var(--amber);
  box-shadow: inset 0 -2px 0 var(--amber);
}

#mixer[data-routing-state="quarantined"] .channel:not(.master) { opacity: 0.62; }
#mixer[data-routing-state="quarantined"] input:disabled,
#mixer[data-routing-state="quarantined"] button:disabled { cursor: not-allowed; filter: grayscale(1); }
#mixer[data-routing-state="quarantined"] .channel-header small,
#mixer[data-routing-state="quarantined"] .master-note { color: var(--amber); }

.dock.p301-active-workspace { position: relative; border-color: rgba(255, 63, 146, 0.62); }
.dock.p301-active-workspace::before {
  content: "";
  position: absolute;
  z-index: 9;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--pink);
}

.channel.p301-keyboard-focus,
.track-bus-channel.p301-keyboard-focus,
.parameter-card.p301-keyboard-focus {
  outline: 2px solid var(--pink);
  outline-offset: -2px;
  background: rgba(255, 63, 146, 0.08);
}

@media (max-width: 760px) {
  :root { --topbar-h: 68px; }
  .brand-block {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto 24px;
    align-content: center;
    align-items: center;
    gap: 2px 7px;
  }
  .brand { grid-column: 1; grid-row: 1; }
  .edition {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .project-name {
    grid-column: 1 / -1;
    grid-row: 2;
    display: block;
    width: 100%;
    min-width: 0;
    height: 24px;
    margin: 0;
    padding: 0 3px;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: var(--muted);
    font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
    touch-action: manipulation;
  }
  .project-name:active,
  .project-name:focus-visible {
    border-color: var(--line);
    background: rgba(255, 63, 146, 0.08);
    color: var(--ink);
  }
  .applied-scope-status { display: none; }
}

/* The release marker is a fixed-width ~90px string. Below 480px the brand
   block floor is 112px, so reserving a track for it left the marker itself
   clipped to a "WEB..." stub and, once the marker was given its room, clipped
   the project name to "U." instead. Neither is a top-bar owner the product
   definition asks for, and project identity outranks release identity on a
   phone, so the marker is dropped here and the Settings dialog reports the
   running release instead. */
@media (max-width: 479px) {
  .edition { display: none; }
}
