/* Approved R7 extraction. Context stylesheet applies only to account/dashboard entry points. */
.app-shell {
  min-height: 100dvh;
}

.app-nav {
  height: 66px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: var(--nav-bg);
  position: relative;
  z-index: 50;
}

.app-brand {
  display: flex;
  align-items: center;
  flex: none;
}

.app-brand .wordmark {
  font-size: 33px;
}

.app-org {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 5px 10px;
  text-align: left;
}

.app-org .lbl {
  color: var(--ai);
  font-size: 10px;
}

.app-org>span:last-of-type {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  font-size: 14px;
}

.app-org:hover {
  border-color: var(--line-strong);
  background: var(--hover);
}

.nav-group {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  gap: 24px;
  flex: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 2px solid transparent;
  color: var(--ink-soft);
  font-size: 15px;
  white-space: nowrap;
}

.nav-link.active {
  border-color: var(--ink);
  color: var(--ink);
}

.nav-link:hover {
  color: var(--ink);
}

.studio-switch {
  display: flex;
  align-items: stretch;
  position: relative;
}

.studio-switch>summary {
  list-style: none;
  cursor: pointer;
}

.studio-switch>summary::-webkit-details-marker {
  display: none;
}

.nav-icon-btn {
  display: grid;
  place-items: center;
  position: relative;
  width: 36px;
  height: 36px;
  color: var(--ink-soft);
  flex: none;
  border-radius: 3px;
}

.nav-icon-btn:hover,.nav-account-trigger:hover {
  background: var(--hover);
  color: var(--ink);
}

.nav-icon-btn svg {
  width: 17px;
  height: 17px;
}

.nav-icon-btn .count {
  position: absolute;
  right: 0;
  top: -1px;
  background: var(--human);
  color: var(--surface);
  padding: 0 3px;
  font: 10px/1.4 var(--mono);
  border-radius: 1px;
}

[data-theme=dark] .nav-icon-btn .count {
  color: #152219;
}

.nav-notes-link,.nav-menu-btn {
  display: none;
}

.conversation-button {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 3px;
  white-space: nowrap;
  font-size: 13px;
}

.conversation-button svg {
  width: 15px;
  height: 15px;
}

.conversation-button:hover {
  background: var(--hover);
  border-color: var(--line-strong);
}

.nav-account {
  position: relative;
  flex: none;
}

.nav-account-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  height: 36px;
}

.nav-avatar {
  height: 30px;
  width: 29px;
  display: grid;
  place-items: center;
  border: 1px solid var(--human-line);
  color: var(--human);
  font: 12px var(--mono);
  background: transparent;
}

.nav-account-label {
  display: none;
}

.nav-account-trigger>svg {
  color: var(--ink-soft);
}

.app-menu,.nav-account-menu,.studio-switch-menu,.proj-menu {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 7px;
  box-shadow: var(--popup-shadow);
  z-index: 80;
  max-height: min(65dvh,560px);
  overflow: auto;
  text-align: left;
}

.app-menu {
  width: 280px;
  top: calc(100% + 10px);
  left: 0;
}

.nav-account-menu {
  width: 290px;
  right: 0;
  top: calc(100% + 10px);
}

.menu-head,.studio-switch-heading,.proj-group {
  padding: 7px 9px 9px;
}

.menu-item,.nav-account-name {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 8px 9px;
  font-size: 14px;
  border-radius: 2px;
  text-align: left;
}

.menu-item:hover,.nav-account-name:hover {
  background: var(--hover);
}

.menu-item.danger {
  color: var(--human);
}

.menu-sep {
  height: 1px;
  background: var(--line);
  margin: 6px 2px;
}

.nav-account-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nav-account-fullname {
  font-size: 14px;
}

.nav-account-email {
  font-size: 12px;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-switch-menu {
  width: 360px;
  top: calc(100% + 6px);
  left: 0;
}

.studio-switch-item {
  display: grid;
  grid-template-columns: 18px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  min-height: 54px;
  font-size: 14px;
}

.studio-switch-item:hover:not([aria-disabled]) {
  background: var(--hover);
}

.studio-switch-item small {
  display: block;
  font-size: 12px;
  color: var(--ink-soft);
}

.studio-switch-item>svg {
  color: var(--ai);
}

.studio-switch-item[aria-disabled] {
  color: var(--ink-soft);
}

.dash {
  max-width: 1408px;
  margin: 0 auto;
  padding: 46px 48px 54px;
  min-width: 0;
}

.dash-hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 36px;
  margin-bottom: 39px;
}

.dash-hero h1 {
  font: 400 clamp(42px,4.5vw,64px)/1.05 var(--serif);
  letter-spacing: -.055em;
  margin-top: 23px;
}

.proj-switch {
  display: block;
  position: relative;
  max-width: 100%;
  width: fit-content;
}

.proj-switch-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  padding: 0;
  border: 0;
  color: var(--ink-soft);
  max-width: 100%;
  text-align: left;
}

.proj-switch-trigger:hover {
  color: var(--ink);
}

.proj-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
}

.proj-dot.shared {
  background: var(--ai);
}

.proj-dot.priv {
  background: var(--human);
}

.proj-space {
  font: 400 10px/1.5 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.proj-sep {
  color: var(--line-strong);
}

.proj-name {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

.proj-name .lbl {
  color: var(--ai);
  font-size: 10px;
}

.proj-title {
  font: 400 10px/1.5 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proj-menu {
  left: 0;
  top: calc(100% + 8px);
  width: 430px;
  max-width: calc(100vw - 32px);
}

.proj-item {
  width: 100%;
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  text-align: left;
  padding: 8px;
  border-radius: 2px;
}

.proj-item:hover,.proj-item.active {
  background: var(--ai-soft);
}

.proj-group {
  font-size: 10px;
}

.dash-command {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%,520px);
  min-height: 42px;
  border-bottom: 1px solid var(--line-strong);
  padding: 7px 0;
  text-align: left;
  margin-top: 19px;
  color: var(--ink-soft);
}

.dash-command:hover {
  color: var(--ink);
  border-color: var(--ink-soft);
}

.dash-command .grow {
  flex: 1;
  font-size: 14px;
}

.dash-command .kbd {
  font: 10px var(--mono);
}

.clock {
  padding-top: 14px;
  text-align: right;
  align-self: start;
}

.clock-cards {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}

.flip-card {
  display: grid;
  place-items: center;
  height: 56px;
  min-width: 55px;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.flip-num {
  font: 300 31px/1 var(--sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

.flip-card.day .flip-num {
  font: 12px/1 var(--mono);
  color: var(--ink-soft);
}

.clock-date {
  font-size: 10px;
  margin-top: 11px;
  letter-spacing: .045em;
}

.band {
  min-width: 0;
}

.band-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.band-head h2 {
  font-size: 27px;
  line-height: 1.12;
  letter-spacing: -.045em;
}

.band-sub {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 300;
}

.band-head .right {
  font: 11px var(--mono);
  margin-left: auto;
  color: var(--ink-soft);
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(0,1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 44px;
}

.work-grid>.band {
  padding: 26px 28px 18px;
  background: var(--surface-high);
}

.work-grid>#section-sessions {
  background: var(--ai-soft);
}

.work-grid .band-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
}

.work-grid .band-sub {
  grid-column: 1;
}

.work-grid .band-head .right {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.desk {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  position: relative;
  min-height: 92px;
}

.desk-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.desk-kind {
  color: var(--human);
  font-size: 10px;
}

.desk-wait {
  color: var(--ink-soft);
  font: 10px/1.5 var(--mono);
}

.desk-title {
  font: 400 20px/1.3 var(--serif);
  letter-spacing: -.025em;
  margin-top: 8px;
  padding-right: 112px;
}

.desk-meta {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: 7px;
  max-width: 36ch;
  padding-right: 8px;
}

.desk-acts {
  position: absolute;
  right: 0;
  bottom: 22px;
}

.desk-acts .btn {
  min-width: 88px;
}

.run {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 16px;
  padding: 19px 0;
  border-top: 1px solid color-mix(in srgb,var(--ai) 16%,var(--line));
  cursor: pointer;
}

.run:hover .run-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.run-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font: 400 10px/1.6 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ai);
}

.run-meta .dot {
  background: var(--ai);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex: none;
}

.run .t {
  font: 10px/1.6 var(--mono);
  color: var(--ink-soft);
}

.run-title {
  grid-column: 1/-1;
  font: 400 19px/1.3 var(--serif);
  letter-spacing: -.022em;
  max-width: 32ch;
}

.run-phase {
  grid-column: 1/-1;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.floor-empty {
  font-size: 16px;
  font-weight: 300;
  color: var(--ink-soft);
  padding: 22px 0;
  line-height: 1.6;
}

.scope-unavailable {
  margin: 26px 0 40px;
  padding: 32px;
  background: var(--ai-soft);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.scope-unavailable h2 {
  margin: 12px 0;
}

.scope-unavailable p {
  color: var(--ink-soft);
  margin-bottom: 22px;
  max-width: 54ch;
}

.studios {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  border-block: 1px solid var(--line-strong);
}

.studio {
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  padding: 21px 18px 20px;
  border-right: 1px solid var(--line);
  min-height: 161px;
}

.studio:first-child {
  padding-left: 0;
}

.studio:last-child {
  border-right: 0;
  padding-right: 0;
}

.studio:not(.dim):hover {
  background: var(--hover);
}

.studio-arrow {
  position: absolute;
  right: 16px;
  top: 24px;
  color: var(--ink-soft);
}

.studio-arrow svg {
  width: 12px;
  height: 12px;
}

.studio-tile {
  margin-bottom: 18px;
  color: var(--ai);
}

.studio-tile svg {
  width: 19px;
  height: 19px;
}

.studio-name {
  font: 400 21px/1.05 var(--serif);
  letter-spacing: -.042em;
  max-width: 13ch;
}

.studio-tag {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 9px;
  margin-bottom: 15px;
  max-width: 19ch;
}

.studio .chip {
  margin-top: auto;
}

.studio.dim {
  color: var(--ink-soft);
}

.studio.dim .studio-tile,.studio.dim .studio-arrow {
  color: var(--ink-soft);
}

.studio.dim .studio-arrow {
  display: none;
}

.secondary-grid {
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(0,1fr);
  gap: 48px;
  margin-top: 15px;
  margin-bottom: 46px;
}

.rooms {
  display: flex;
  flex-direction: column;
}

.room {
  padding: 21px 0 22px;
  border-top: 1px solid var(--line-strong);
}

.room-name {
  display: flex;
  gap: 10px;
  align-items: center;
  font: 400 21px/1.2 var(--serif);
  letter-spacing: -.035em;
}

.room-name svg {
  width: 17px;
  height: 17px;
}

.room-ico.priv {
  color: var(--human);
}

.room-ico.shared {
  color: var(--ai);
}

.room-line {
  font: 300 16px/1.55 var(--sans);
  letter-spacing: -.008em;
  color: var(--ink-soft);
  margin-top: 12px;
  max-width: 45ch;
}

.room-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.room-foot .lbl {
  font-size: 10px;
}

.room-foot .priv {
  color: var(--human);
}

.room-foot .shared {
  color: var(--ai);
}

.room-meta {
  font: 10px/1.5 var(--mono);
  color: var(--ink-soft);
}

.room-open {
  margin-left: auto;
}

.call-sheet {
  background: #25372f;
  color: #e8eee2;
  padding: 27px 28px;
  border-radius: 3px;
}

.call-sheet .band-sub {
  color: #b8c7b9;
}

.call-sheet .band-head {
  display: block;
}

.call-sheet .band-head h2 {
  margin-bottom: 8px;
}

.call-sheet .crew-group {
  font: 10px/1.6 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #adc2b3;
  margin-top: 19px;
  margin-bottom: 6px;
}

.crew-card {
  width: 100%;
  display: grid;
  grid-template-columns: 23px minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 13px 0;
  border-bottom: 1px solid #4d6155;
  color: #e9eee4;
  min-height: 63px;
}

.crew-card:hover {
  background: #30473b;
}

.crew-mono {
  font: 10px/1 var(--mono);
  color: #a5cbba;
}

.crew-name {
  font: 400 16px/1.3 var(--sans);
  color: #e9eee4;
  display: block;
}

.crew-role {
  font-size: 12px;
  line-height: 1.4;
  color: #b4c6b7;
  display: block;
  margin-top: 3px;
}

.crew-cta {
  font-size: 0;
  color: #c4d8c7;
}

.crew-cta>span {
  font-size: 17px;
}

.crew-card:focus-visible {
  outline-color: #a1c9b7;
}

.crew-row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #4d6155;
  font-size: 14px;
  color: #c2d0c3;
}

.crew-row .fill {
  display: none;
}

.crew-row .lbl {
  margin-left: auto;
  color: #b1c0b2;
  font-size: 9px;
  letter-spacing: .015em;
  text-align: right;
}

.crew-more summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  cursor: pointer;
  min-height: 43px;
  color: #c0d1c1;
  font-size: 13px;
}

.crew-more summary:after {
  content: '+';
  font-size: 18px;
}

.crew-more[open] summary:after {
  content: '−';
}

.crew-more summary .num {
  margin-left: auto;
}

.crew-more summary::-webkit-details-marker {
  display: none;
}

.crew-more .crew-group {
  margin-top: 12px;
}

.call-sheet .floor-empty {
  color: #c2d0c3;
}

#section-soundbox .band-head {
  margin-bottom: 15px;
}

#section-soundbox .band-sub {
  font-size: 13px;
}

.sbx {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 14px;
}

.sbx-onair {
  font-size: 9px;
  flex: 1;
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--ink-soft);
}

.sbx-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-soft);
}

.sbx-freq {
  font: 13px/1.4 var(--mono);
}

.sbx-freq small {
  font-size: 9px;
  color: var(--ink-soft);
  margin-left: 3px;
}

.sbx-station {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-align: left;
  flex-basis: calc(100% - 50px);
  order: 2;
  min-width: 0;
}

.sbx-name {
  font-size: 15px;
  flex: none;
}

.sbx-tag {
  font-size: 12px;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.sbx-tag.lost {
  color: var(--error);
}

.sbx-meter-wrap {
  order: 3;
  margin-left: auto;
}

.sbx-meter {
  display: none;
}

.sbx-play {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.sbx-play:hover {
  background: var(--hover);
}

.log {
  border-top: 1px solid var(--line-strong);
}

.log-row {
  display: grid;
  grid-template-columns: 40px minmax(0,1fr) auto;
  gap: 15px;
  align-items: center;
  min-height: 60px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.log-row:hover {
  background: var(--hover);
}

.log-kind {
  color: var(--fc);
  font: 10px/1.5 var(--mono);
  letter-spacing: .04em;
}

.log-path {
  min-width: 0;
}

.log-filename {
  display: block;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-folder {
  display: block;
  font: 10px/1.6 var(--mono);
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}

.log-meta {
  font: 10px/1.5 var(--mono);
  color: var(--ink-soft);
}

.log-meta .by {
  color: var(--ai);
}

.log-meta .by.human {
  color: var(--human);
}

.log-meta .by.system {
  color: var(--ink-soft);
}

.log-row.more {
  display: none;
}

[data-log=expanded] .log-row.more {
  display: grid;
}

.coda {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.coda-line {
  font: italic 400 18px/1.45 var(--serif);
  letter-spacing: -.02em;
  color: var(--ink-soft);
}

.coda>.lbl {
  font-size: 9px;
  white-space: nowrap;
}

.when-loading,.when-empty {
  display: none !important;
}

[data-dash=loading] .when-live,[data-dash=empty] .when-live {
  display: none !important;
}

[data-dash=loading] .when-loading,[data-dash=empty] .when-empty {
  display: block !important;
}

[data-dash=loading] .when-loading.inline,[data-dash=empty] .when-empty.inline {
  display: inline !important;
}

.auth-session-banner {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 13px 22px;
  font-size: 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--human-line);
}

.auth-session-banner a {
  color: var(--human);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-session-banner.is-status {
  border-color: var(--ai-line);
}

[data-shell=expired] .auth-session-banner.is-alert,[data-shell=reconnecting] .auth-session-banner.is-status {
  display: flex;
}

.maintenance-screen {
  display: none;
  min-height: calc(100dvh - 70px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  gap: 20px;
}

.maintenance-screen h1 {
  font-size: 44px;
}

.maintenance-screen p {
  max-width: 50ch;
  color: var(--ink-soft);
}

.maintenance-note {
  font-size: 13px;
}

[data-shell=maintenance] .maintenance-screen {
  display: flex;
}

[data-shell=maintenance] .app-main,[data-shell=maintenance] .auth-session-banner {
  display: none;
}

.chat-notification-toast {
  display: none;
  position: fixed;
  bottom: 65px;
  right: 16px;
  max-width: 360px;
  padding: 15px 19px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  text-align: left;
  box-shadow: var(--popup-shadow);
  z-index: 110;
}

.chat-notification-toast strong {
  display: block;
  font: 700 11px/1.5 var(--identity-font);
  text-transform: uppercase;
  color: var(--ai);
  margin-bottom: 7px;
}

.chat-notification-toast span {
  font-size: 14px;
  color: var(--ink-soft);
}

[data-shell=live] .chat-notification-toast {
  display: block;
}

@media (max-width:1250px) {
  .app-nav {
    gap: 16px;
    padding-inline: 22px;
  }
  .nav-group {
    gap: 18px;
  }
  .nav-icon-btn {
    width: 32px;
  }
  .conversation-button {
    font-size: 0;
    gap: 0;
    width: 36px;
    justify-content: center;
    padding: 0;
  }
  .conversation-button svg {
    width: 17px;
    height: 17px;
  }
  .dash {
    padding-inline: 36px;
  }
  .studio {
    padding-inline: 14px;
  }
  .studio-name {
    font-size: 20px;
  }
  .secondary-grid {
    gap: 36px;
  }
}

@media (max-width:1050px) {
  .app-nav {
    gap: 12px;
  }
  .nav-group {
    gap: 16px;
  }
  .nav-link {
    font-size: 14px;
  }
  .nav-notes-btn {
    display: none;
  }
  .nav-notes-link {
    display: none;
  }
  .nav-account-trigger>svg {
    display: none;
  }
  .dash {
    padding-inline: 28px;
  }
  .work-grid>.band {
    padding: 24px 22px 15px;
  }
  .studios {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .studio {
    min-height: 138px;
    padding: 18px 20px;
    display: grid;
    grid-template-columns: 20px minmax(0,1fr);
    gap: 8px 12px;
  }
  .studio:nth-child(3) {
    border-right: 0;
  }
  .studio:nth-child(n+4) {
    border-top: 1px solid var(--line);
  }
  .studio:first-child,.studio:last-child {
    padding: 18px 20px;
  }
  .studio-tile {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }
  .studio-name {
    grid-column: 2;
    max-width: none;
    padding-right: 20px;
  }
  .studio-tag {
    grid-column: 2;
    max-width: none;
    margin: 0;
  }
  .studio .chip {
    grid-column: 2;
  }
  .studio-arrow {
    top: 18px;
    right: 16px;
  }
  .call-sheet {
    padding: 24px 22px;
  }
  .desk-title {
    font-size: 19px;
    padding-right: 0;
  }
  .desk-acts {
    position: static;
    margin-top: 13px;
  }
  .secondary-grid {
    gap: 30px;
  }
  .room-name {
    font-size: 20px;
  }
}

@media (max-width:900px) {
  .app-nav {
    height: 62px;
  }
  .nav-group {
    display: none;
  }
  .nav-menu-btn {
    display: grid;
    order: 5;
  }
  .nav-notes-btn {
    display: grid;
  }
  .nav-account {
    order: 6;
  }
  .app-nav .conversation-button {
    margin-left: auto;
  }
  .nav-group.is-open {
    position: absolute;
    display: flex;
    top: calc(100% + 1px);
    right: 14px;
    left: auto;
    width: 280px;
    height: auto;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    box-shadow: var(--popup-shadow);
    z-index: 90;
    max-height: 75dvh;
    overflow: auto;
  }
  .nav-group.is-open .nav-link {
    min-height: 44px;
    border: 0;
    padding: 10px;
  }
  .nav-group.is-open .nav-link.active {
    background: var(--ai-soft);
  }
  .nav-group.is-open .nav-notes-link {
    display: flex;
  }
  .studio-switch {
    display: block;
  }
  .studio-switch-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: 0;
    border-top: 1px solid var(--line);
    padding: 0;
  }
  .studio-switch-item {
    grid-template-columns: 18px 1fr;
    gap: 8px;
  }
  .studio-switch-item .chip {
    grid-column: 2;
  }
  .dash-hero {
    gap: 24px;
  }
  .dash-hero h1 {
    font-size: 48px;
  }
  .proj-switch-trigger {
    flex-wrap: wrap;
    gap: 6px;
  }
  .proj-title {
    font-size: 10px;
  }
  .clock {
    padding-top: 0;
  }
  .flip-card {
    min-width: 43px;
    height: 49px;
    padding: 0 8px;
  }
  .flip-num {
    font-size: 26px;
  }
  .clock-date {
    max-width: 170px;
    line-height: 1.7;
  }
  .work-grid {
    grid-template-columns: 1fr;
  }
  .work-grid .desk {
    min-height: 95px;
  }
  .work-grid .desk-acts {
    position: absolute;
    right: 0;
    bottom: 21px;
  }
  .work-grid .desk-title {
    padding-right: 105px;
  }
  .work-grid .desk-meta {
    padding-right: 90px;
    max-width: 45ch;
  }
  .secondary-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .band-head .band-sub {
    flex-basis: 100%;
  }
  .band-head .right {
    margin-left: auto;
  }
  .crew-card {
    grid-template-columns: 22px minmax(0,1fr) 14px;
    gap: 9px;
  }
  .crew-name {
    font-size: 15px;
  }
  .room-foot {
    gap: 9px;
  }
  .sbx-tag {
    display: block;
  }
  .sbx-station {
    display: block;
  }
}

@media (max-width:680px) {
  .app-nav {
    flex-wrap: wrap;
    height: auto;
    min-height: 62px;
    padding: 12px 18px;
    gap: 10px;
  }
  .app-brand .wordmark {
    font-size: 29px;
  }
  .app-org {
    height: 36px;
  }
  .nav-notes-btn {
    display: none;
  }
  .conversation-button {
    margin-left: 0 !important;
  }
  .app-nav .nav-icon-btn,.app-nav .nav-account-trigger {
    height: 36px;
    width: 32px;
  }
  .app-nav .conversation-button {
    width: 36px;
  }
  .app-nav .nav-icon-btn[aria-label=Notifications] {
    margin-left: auto;
  }
  .nav-group.is-open {
    top: 100%;
    right: 12px;
    width: calc(100% - 24px);
  }
  .dash {
    padding: 29px 22px 76px;
  }
  .dash-hero {
    display: flex;
    flex-direction: column-reverse;
    gap: 17px;
    margin-bottom: 27px;
  }
  .clock {
    display: flex;
    gap: 13px;
    align-items: center;
    text-align: left;
  }
  .clock-cards {
    gap: 2px;
  }
  .flip-card {
    height: auto;
    min-width: 0;
    background: none;
    border: 0;
    padding: 0;
  }
  .flip-card.day {
    margin-right: 6px;
  }
  .flip-num {
    font: 400 11px/1.5 var(--mono);
    letter-spacing: 0;
    color: var(--ink-soft);
  }
  .flip-card.day .flip-num {
    font-size: 11px;
  }
  .flip-card:nth-child(2):after {
    content: ':';
    font: 11px var(--mono);
    color: var(--ink-soft);
  }
  .flip-card:nth-child(2) {
    display: flex;
    gap: 2px;
  }
  .clock-date {
    max-width: none;
    margin: 0;
    font-size: 10px;
    letter-spacing: 0;
  }
  .dash-hero h1 {
    font-size: 43px;
    margin-top: 17px;
  }
  .dash-command {
    margin-top: 15px;
  }
  .dash-command .kbd {
    display: none;
  }
  .proj-switch-trigger {
    font-size: 10px;
    min-height: 34px;
    gap: 7px;
  }
  .proj-name {
    flex-basis: auto;
  }
  .proj-menu {
    max-width: calc(100vw - 44px);
    width: 380px;
  }
  .proj-item {
    display: grid;
    grid-template-columns: 7px minmax(0,1fr);
    gap: 3px 9px;
  }
  .proj-item .proj-space {
    grid-column: 2;
  }
  .proj-item .proj-sep {
    display: none;
  }
  .proj-item .proj-name {
    grid-column: 2;
  }
  .work-grid {
    margin-bottom: 31px;
  }
  .work-grid>.band {
    padding: 23px 19px 17px;
  }
  .band-head h2 {
    font-size: 26px;
  }
  .work-grid .desk {
    min-height: auto;
  }
  .work-grid .desk-title {
    padding-right: 0;
  }
  .work-grid .desk-meta {
    padding-right: 0;
  }
  .work-grid .desk-acts {
    position: static;
    margin-top: 12px;
  }
  .desk-wait {
    font-size: 9px;
  }
  .desk-kind {
    font-size: 9px;
  }
  .studios {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .studio,.studio:first-child,.studio:last-child {
    display: flex;
    padding: 17px 15px;
    min-height: 156px;
    gap: 0;
  }
  .studio:nth-child(2n) {
    border-right: 0;
  }
  .studio:nth-child(3) {
    border-right: 1px solid var(--line);
  }
  .studio:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }
  .studio-tile {
    margin-bottom: 16px;
  }
  .studio-name {
    font-size: 22px;
    max-width: 11ch;
    line-height: 1.04;
    padding: 0;
  }
  .studio-tag {
    font-size: 12px;
    margin: 8px 0 12px;
    max-width: 18ch;
  }
  .studio-arrow {
    right: 14px;
  }
  .studio .chip {
    font-size: 9px;
  }
  .band-head .right {
    margin-left: 0;
  }
  .secondary-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 34px;
  }
  .room-name {
    font-size: 24px;
  }
  .room-line {
    font-size: 17px;
  }
  .call-sheet {
    padding: 25px 23px;
  }
  .crew-card {
    grid-template-columns: 24px 1fr auto;
  }
  .crew-name {
    font-size: 17px;
  }
  .crew-role {
    font-size: 13px;
  }
  .crew-cta {
    font-size: 0;
  }
  #section-log .band-head .right {
    flex-basis: auto;
  }
  .log-row {
    grid-template-columns: 34px minmax(0,1fr);
    gap: 3px 10px;
    padding: 13px 0;
  }
  .log-kind {
    grid-row: 1/3;
    align-self: start;
    padding-top: 3px;
  }
  .log-meta {
    grid-column: 2;
    margin-top: 3px;
  }
  .log-folder {
    font-size: 9px;
  }
  .coda {
    display: block;
  }
  .coda>.lbl {
    display: block;
    margin-top: 14px;
  }
  .auth-session-banner {
    font-size: 13px;
    gap: 10px;
    flex-wrap: wrap;
    padding-inline: 18px;
  }
  .maintenance-screen h1 {
    font-size: 36px;
  }
  .chat-notification-toast {
    left: 16px;
    right: 16px;
    max-width: none;
  }
}

@media (max-width:400px) {
  .app-nav {
    padding: 10px 14px;
    gap: 8px;
  }
  .app-brand .wordmark {
    font-size: 29px;
  }
  .app-org {
    gap: 6px;
    padding-inline: 8px;
  }
  .app-org>span:last-of-type {
    font-size: 13px;
  }
  .dash {
    padding-inline: 18px;
  }
  .proj-space {
    font-size: 9px;
  }
  .proj-title {
    max-width: 155px;
  }
  .dash-hero h1 {
    font-size: 40px;
  }
  .work-grid>.band {
    padding-inline: 16px;
  }
  .run-title {
    font-size: 18px;
  }
  .band-head h2 {
    font-size: 25px;
  }
  .studio,.studio:first-child,.studio:last-child {
    padding-inline: 12px;
  }
  .studio-name {
    font-size: 21px;
  }
  .crew-row .lbl {
    font-size: 9px;
  }
  .sbx-tag {
    font-size: 11px;
  }
  .room-foot {
    gap: 7px;
  }
  .room-meta {
    font-size: 9px;
  }
  .clock-date {
    font-size: 9px;
  }
  .clock {
    gap: 10px;
  }
}

/* First live block (Task Cards): the only Dashboard block that is not a demo fixture. */
.live-tag{display:inline-block;padding:0 6px;border:1px solid currentColor;border-radius:4px;font-size:.72em;letter-spacing:.04em;text-transform:uppercase}
.live-tasks-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.live-task{padding:8px 0;border-bottom:1px solid var(--line,rgba(128,128,128,.3))}
.live-meta,.live-next,.live-note{opacity:.8}
