/*
 * Student App Beta — unified commercial theme.
 * Loaded last and scoped to /app so the production /app UI remains untouched.
 */

:root {
  --beta-font: Inter, "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --beta-control-height: 42px;
  --beta-control-radius: 12px;
  --beta-control-font: 0.82rem;
  --beta-dock-content-height: 70px;
  --beta-sidebar-dock-height: calc(var(--beta-dock-content-height) + var(--beta-safe-bottom));
  --beta-primary: #087cf0;
  --beta-primary-strong: #1468d8;
  --beta-primary-dark: #0d4fae;
  --beta-danger: #b42318;
  --beta-danger-soft: #fff0ef;
}

html {
  font-size: clamp(16px, calc(15.6px + 0.12vw), 17.2px);
}

html,
body,
button,
input,
select,
textarea {
  font-family: var(--beta-font);
}

body,
body.beta-page,
.beta-auth-page {
  font-weight: 400;
  letter-spacing: -0.004em;
}

:where(
  .beta-header__title,
  .beta-chat-heading h1,
  .beta-feature-header h1,
  .beta-section-heading h2,
  .beta-thread__name,
  .beta-account-heading,
  .beta-auth-page h1,
  .beta-auth-page h2,
  .beta-auth-page h3
) {
  font-weight: 600;
}

:where(.beta-muted, .beta-account-copy, .beta-thread__preview, .beta-feature-header p) {
  font-weight: 400;
}

/* One button language: compact geometry, stable contrast and icon-first labels. */
.beta-app :where(.beta-button, .beta-service-action, .beta-tool-action, .beta-brain-load),
.beta-auth-page :where(.beta-button, button[type="submit"]) {
  min-width: 0;
  min-height: var(--beta-control-height);
  border-radius: var(--beta-control-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  font-family: var(--beta-font);
  font-size: var(--beta-control-font);
  font-weight: 500;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.beta-app .beta-brain-load {
  min-height: var(--beta-control-height) !important;
  border-radius: var(--beta-control-radius) !important;
  gap: 8px !important;
  padding: 0 15px !important;
  font-family: var(--beta-font) !important;
  font-size: var(--beta-control-font) !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
}

.beta-app .beta-button > .beta-fa-icon,
.beta-auth-page button > .beta-fa-icon,
.beta-auto-control-icon {
  width: 1em;
  min-width: 1em;
  height: 1em;
  flex: 0 0 1em;
  font-size: 0.96em;
  line-height: 1;
}

.beta-app :where(.beta-button--primary, .beta-button:not(.beta-button--secondary):not(.beta-button--quiet):not(.beta-button--danger):not(.beta-button--success):not(.is-secondary):not(.is-quiet):not(.is-danger):not(.is-success)),
.beta-auth-page button[type="submit"] {
  border-color: transparent;
  background: var(--beta-primary-strong);
  color: #fff;
  box-shadow: 0 7px 16px rgba(20, 104, 216, 0.18);
}

.beta-app :where(.beta-button--secondary, .beta-button.is-secondary) {
  border-color: var(--beta-line-strong);
  background: #fff;
  color: #17314f;
  box-shadow: none;
}

.beta-app :where(.beta-button--quiet, .beta-button.is-quiet) {
  border-color: transparent;
  background: var(--beta-primary-soft);
  color: var(--beta-primary-dark);
  box-shadow: none;
}

.beta-app :where(.beta-button--danger, .beta-button.is-danger) {
  border-color: transparent;
  background: var(--beta-danger);
  color: #fff;
  box-shadow: 0 7px 16px rgba(180, 35, 24, 0.17);
}

.beta-app :where(.beta-button--success, .beta-button.is-success) {
  border-color: transparent;
  background: var(--beta-success);
  color: #fff;
}

.beta-app :where(.beta-button, .beta-service-action, .beta-tool-action):hover {
  filter: brightness(0.97);
}

.beta-app :where(.beta-button, .beta-service-action, .beta-tool-action):disabled {
  box-shadow: none;
  filter: grayscale(0.12);
  opacity: 0.5;
}

.beta-app .beta-drawer .beta-account-actions {
  gap: 8px;
}

.beta-app .beta-drawer .beta-account-actions .beta-button {
  width: auto !important;
  min-width: 0 !important;
  min-height: var(--beta-control-height) !important;
  border-radius: var(--beta-control-radius) !important;
  padding-inline: 14px !important;
  font-family: var(--beta-font) !important;
  font-size: var(--beta-control-font) !important;
  font-weight: 600 !important;
}

.beta-app .beta-drawer .beta-account-actions .beta-button--danger {
  background: var(--beta-danger) !important;
  color: #fff !important;
}

/* Search: every magnifier lives inside its field. */
.beta-search {
  position: relative;
  display: block;
}

.beta-search > :where(.beta-fa-icon, svg),
.beta-search-submit {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 13px;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--beta-muted-strong);
  padding: 0;
  transform: translateY(-50%);
}

.beta-search > .beta-fa-icon {
  pointer-events: none;
}

.beta-search-submit {
  width: 30px;
  height: 30px;
  left: 8px;
  border-radius: 9px;
  cursor: pointer;
}

.beta-search-submit:hover,
.beta-search-submit:focus-visible {
  background: #dfeeff;
  color: var(--beta-primary-dark);
}

.beta-search > input,
.beta-search__field {
  padding-left: 43px !important;
  font-weight: 500;
}

.beta-chat-contact-search {
  display: block;
}

.beta-chat-contact-search .beta-search {
  width: 100%;
}

/* Conversation filters are controls of the section, not a second navigation bar. */
.beta-section-heading__actions {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.beta-section-filter,
.beta-section-heading__actions .beta-small-icon-button {
  position: relative;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  border: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--beta-muted-strong);
  padding: 0;
  cursor: pointer;
}

.beta-section-filter:hover,
.beta-section-filter:focus-visible,
.beta-section-heading__actions .beta-small-icon-button:hover {
  background: var(--beta-primary-soft);
  color: var(--beta-primary-dark);
}

.beta-section-filter.is-active,
.beta-section-filter[aria-pressed="true"] {
  background: var(--beta-primary-strong);
  color: #fff;
}

.beta-section-filter .beta-fa-icon,
.beta-section-heading__actions .beta-small-icon-button .beta-fa-icon {
  font-size: 0.88rem;
}

/* The navigation dock also belongs to desktop, but stays in the thread column. */
.beta-mobile-dock {
  position: fixed;
  z-index: 70;
  bottom: 0;
  left: max(0px, calc((100vw - var(--beta-content-max)) / 2));
  width: min(var(--beta-sidebar-width), 100vw);
  height: var(--beta-sidebar-dock-height);
  min-height: var(--beta-sidebar-dock-height);
  max-height: var(--beta-sidebar-dock-height);
  border-top: 1px solid var(--beta-line);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -6px 18px rgba(15, 27, 45, 0.07);
  padding:
    5px
    calc(8px + var(--beta-safe-right))
    calc(5px + var(--beta-safe-bottom))
    calc(8px + var(--beta-safe-left));
}

.beta-app[data-access-mode="staff"][data-staff-chat="false"] .beta-mobile-dock {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.beta-thread-scroll {
  padding-bottom: var(--beta-sidebar-dock-height);
}

.beta-mobile-dock-button {
  position: relative;
  justify-self: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--beta-muted-strong);
  padding: 0;
  cursor: pointer;
}

.beta-mobile-dock-button .beta-fa-icon {
  font-size: 1.05rem;
}

.beta-mobile-dock-button.is-active:not(.beta-mobile-dock-compose) {
  background: var(--beta-primary-soft);
  color: var(--beta-primary-strong);
}

.beta-mobile-dock-compose {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--beta-primary-strong);
  color: #fff;
  box-shadow: 0 8px 20px rgba(20, 104, 216, 0.25);
}

.beta-mobile-dock-compose .beta-fa-icon {
  color: #fff;
}

/* Chat metadata stays visually inside its bubble. */
.beta-chat-message-bubble {
  display: flow-root;
}

.beta-chat-message-time,
.beta-chat-message-meta {
  float: none;
  width: fit-content;
  max-width: 100%;
  margin: 6px 0 0 auto;
  color: #617890;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.1;
}

.beta-chat-message-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.beta-chat-message-delivery {
  display: inline-flex;
  align-items: center;
  color: #6d8196;
  font-size: inherit;
  font-weight: 600;
  white-space: nowrap;
}

.beta-chat-message-delivery.is-sending::before {
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border: 1.5px solid rgba(24, 105, 216, 0.22);
  border-top-color: #1869d8;
  border-radius: 50%;
  content: "";
  animation: beta-message-sending-spin 0.72s linear infinite;
}

.beta-chat-message-retry {
  min-height: 24px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #fff0ee !important;
  color: #bd291f !important;
  padding: 3px 8px !important;
  gap: 4px !important;
  font-size: 0.62rem !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.beta-chat-message-retry:hover {
  background: #ffe3df !important;
  color: #9e1c14 !important;
  transform: none !important;
}

@keyframes beta-message-sending-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Brain Viewer must remain inside the available feature viewport. */
.beta-feature-content:has(.beta-brain-explorer) {
  overflow: hidden;
  padding: 12px;
}

.beta-brain-explorer {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
}

.beta-brain-library,
.beta-brain-workspace,
.beta-brain-stage,
.beta-brain-stage canvas {
  min-height: 0;
  max-height: 100%;
}

.beta-brain-workspace {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

.beta-brain-stage,
.beta-brain-stage canvas {
  height: 100%;
}

/* Cal.com uses the same full-canvas pattern as the other Student App tools. */
.beta-feature-panel[data-beta-feature="appointment"] {
  --beta-appointment-brand: #3166d1;
  --beta-appointment-brand-strong: #2857b8;
  --beta-appointment-brand-soft: #edf2fc;
}

.beta-feature-panel[data-beta-feature="appointment"] .beta-feature-mark {
  background: var(--beta-appointment-brand-soft);
  color: var(--beta-appointment-brand);
  box-shadow: inset 0 0 0 1px rgba(49, 102, 209, 0.14);
}

.beta-feature-panel[data-beta-feature="appointment"] .beta-feature-content {
  overflow: hidden;
  padding: 12px;
}

.beta-appointment-tool {
  width: min(100%, 1120px);
  height: 100%;
  min-height: 0;
  margin-inline: auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 7px;
}

/* Cal draws its own scheduling card. Keep the Student App wrapper flat so
   the embed never reads as a box inside another box. */
.beta-appointment-intro {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 3px 4px 2px;
  box-shadow: none;
}

.beta-appointment-intro > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.beta-appointment-intro strong {
  color: var(--beta-text);
  font-size: 0.81rem;
  font-weight: 600;
  line-height: 1.25;
}

.beta-appointment-intro p {
  margin: 0;
  color: var(--beta-muted);
  font-size: 0.69rem;
  font-weight: 400;
  line-height: 1.35;
}

.beta-appointment-external {
  flex: 0 0 auto;
  border-color: rgba(49, 102, 209, 0.28) !important;
  color: var(--beta-appointment-brand) !important;
  white-space: nowrap;
}

.beta-appointment-external:hover {
  border-color: var(--beta-appointment-brand) !important;
  background: var(--beta-appointment-brand-soft) !important;
  color: var(--beta-appointment-brand-strong) !important;
}

.beta-appointment-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.beta-appointment-embed {
  width: 100%;
  min-width: 0;
  min-height: 100%;
}

.beta-appointment-embed > div {
  width: 100%;
  min-width: 0;
  min-height: 100%;
}

.beta-appointment-embed iframe {
  width: 100% !important;
  min-height: 100% !important;
  display: block;
  border: 0 !important;
}

.beta-appointment-status {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  background:
    radial-gradient(circle at 50% 18%, rgba(49, 102, 209, 0.1), transparent 34%),
    #ffffff;
  color: var(--beta-muted-strong);
  padding: 24px;
  text-align: center;
}

.beta-appointment-status[hidden] {
  display: none;
}

.beta-appointment-status strong {
  color: var(--beta-text);
  font-size: 0.88rem;
  font-weight: 600;
}

.beta-appointment-status p {
  max-width: 430px;
  margin: 0;
  color: var(--beta-muted);
  font-size: 0.73rem;
  font-weight: 400;
  line-height: 1.45;
}

.beta-appointment-status.is-error .beta-state-icon {
  color: var(--beta-danger);
}

.beta-appointment-status-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

@media (max-width: 760px) {
  .beta-feature-panel[data-beta-feature="appointment"] .beta-feature-content {
    padding: 0;
  }

  .beta-appointment-tool {
    gap: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .beta-appointment-intro {
    border-bottom: 1px solid var(--beta-line);
    border-radius: 0;
    background: #ffffff;
    padding:
      8px
      calc(9px + var(--beta-safe-right))
      8px
      calc(10px + var(--beta-safe-left));
    box-shadow: none;
  }

  .beta-appointment-intro p {
    display: none;
  }

  .beta-appointment-stage {
    border: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
  }

  /* Keep Cal as the single touch scroller: wheel/touch events inside a
     cross-origin iframe do not reliably scroll its parent on iOS. */
  .beta-appointment-embed,
  .beta-appointment-embed > div {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .beta-appointment-embed iframe {
    height: 100% !important;
    min-height: 100% !important;
  }
}

@media (max-width: 390px) {
  .beta-appointment-external span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .beta-appointment-external {
    width: 42px;
    min-width: 42px;
    padding-inline: 0;
  }
}

/* QR viewer: large, high-contrast and intentionally free of drawer clipping. */
body.beta-qr-viewer-open {
  overflow: hidden;
}

.beta-account-qr {
  font-family: var(--beta-font);
  cursor: zoom-in;
}

.beta-qr-viewer {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  background: rgba(4, 13, 25, 0.94);
  padding:
    calc(24px + env(safe-area-inset-top, 0px))
    calc(24px + env(safe-area-inset-right, 0px))
    calc(24px + env(safe-area-inset-bottom, 0px))
    calc(24px + env(safe-area-inset-left, 0px));
  backdrop-filter: blur(16px);
}

.beta-qr-viewer__close {
  position: fixed;
  z-index: 2;
  top: calc(18px + env(safe-area-inset-top, 0px));
  right: calc(18px + env(safe-area-inset-right, 0px));
  background: #fff;
  color: #0f1b2d;
}

.beta-qr-viewer__content {
  width: min(92vw, 820px);
  display: grid;
  justify-items: center;
  gap: 9px;
  color: #fff;
  text-align: center;
}

.beta-qr-viewer__content p,
.beta-qr-viewer__content strong,
.beta-qr-viewer__content span {
  margin: 0;
}

.beta-qr-viewer__content p {
  font-size: clamp(0.78rem, 1.8vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.beta-qr-viewer__content strong {
  font-size: clamp(1.1rem, 3vw, 1.7rem);
  font-weight: 600;
}

.beta-qr-viewer__content span {
  color: #cdd9e7;
  font-size: clamp(0.75rem, 2vw, 0.94rem);
  font-weight: 500;
}

.beta-qr-viewer__code {
  width: min(74vmin, 720px);
  aspect-ratio: 1;
  border: clamp(12px, 2vmin, 24px) solid #fff;
  border-radius: clamp(18px, 3vmin, 32px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
}

.beta-qr-viewer__code > :where(svg, img, canvas) {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 820px) {
  .beta-brain-explorer,
  .beta-brain-explorer.is-library-collapsed {
    height: 100%;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(116px, 28%) minmax(0, 1fr);
  }

  .beta-brain-explorer.is-library-collapsed {
    grid-template-rows: 0 minmax(0, 1fr);
  }

  .beta-brain-library {
    max-height: none;
  }

  .beta-brain-workspace {
    min-height: 0;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  }
}

@media (max-width: 760px) {
  .beta-mobile-dock {
    right: 0;
    left: 0;
    width: 100%;
    height: var(--beta-sidebar-dock-height);
    min-height: var(--beta-sidebar-dock-height);
    max-height: var(--beta-sidebar-dock-height);
    gap: 4px;
    padding:
      8px
      calc(10px + var(--beta-safe-right))
      calc(8px + var(--beta-safe-bottom))
      calc(10px + var(--beta-safe-left));
  }

  .beta-app[data-route-kind="chat"] .beta-mobile-dock {
    display: none;
  }

  .beta-mobile-dock-button {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .beta-mobile-dock-compose {
    width: 58px;
    height: 58px;
    margin-top: -24px;
  }

  .beta-thread-scroll {
    padding-bottom: 0;
  }

  .beta-feature-content:has(.beta-brain-explorer) {
    padding: 0;
  }
}

@media (max-width: 620px) {
  .beta-brain-explorer {
    min-height: 0;
  }

  .beta-brain-library {
    max-height: none;
  }

  .beta-brain-stage,
  .beta-brain-stage canvas {
    min-height: 0;
  }

  .beta-app .beta-drawer .beta-account-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .beta-app .beta-drawer .beta-account-actions .beta-button {
    width: 100% !important;
  }
}

/* July flat-system pass: one rhythm for lists, controls and account surfaces. */

:root {
  --beta-workspace-head-height: 70px;
}

.beta-mobile-back:not([hidden]) {
  display: inline-flex;
}

@media (min-width: 761px) {
  .beta-sidebar-tools,
  .beta-chat-header {
    height: var(--beta-workspace-head-height);
    min-height: var(--beta-workspace-head-height);
  }
}

@media (max-width: 760px) {
  .beta-app[data-view="list"] .beta-mobile-dock {
    display: grid;
  }
}

.beta-thread-scroll {
  background: #fff;
  overscroll-behavior-y: contain;
}

.beta-thread-section[hidden] {
  display: none !important;
}

.beta-thread-section[hidden] + .beta-thread-section {
  border-top: 0;
}

.beta-thread-section + .beta-thread-section {
  border-top: 1px solid var(--beta-line);
}

.beta-section-heading {
  min-height: 38px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: none;
}

.beta-section-heading h2 {
  color: #647a92;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.065em;
}

.beta-thread-item,
.beta-thread--real {
  min-height: 68px;
  gap: 11px;
  padding: 10px 13px;
  box-shadow: none;
}

.beta-thread-item:hover,
.beta-thread--real:hover {
  background: #f7faff;
}

.beta-service-pin {
  width: 29px;
  height: 29px;
  min-width: 29px;
  border: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #8296aa;
  padding: 0;
  cursor: pointer;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.beta-service-pin:hover,
.beta-service-pin:focus-visible {
  background: #e9f3ff;
  color: var(--beta-primary-strong);
  transform: translateY(-1px);
}

.beta-service-pin.is-active {
  background: transparent;
  color: var(--beta-primary-strong);
  box-shadow: none;
}

.beta-service-pin.is-locked {
  cursor: default;
}

.beta-service-pin .beta-fa-icon,
.beta-service-pin svg {
  width: 14px !important;
  height: 14px !important;
  color: currentColor;
  font-size: 0.78rem;
}

.beta-service-pin[aria-busy="true"] {
  opacity: 0.65;
}

.beta-service-pin.is-limit-reached {
  background: transparent;
  color: #9aa8b6;
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.beta-thread--real {
  grid-template-columns: 46px minmax(0, 1fr) !important;
}

.beta-thread--real > .beta-auto-control-icon {
  display: none !important;
}

.beta-thread--real .beta-chat-avatar {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}

.beta-thread--real .beta-thread-body {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  text-align: left;
}

.beta-thread--real .beta-thread-top,
.beta-thread--real .beta-thread-bottom {
  width: 100%;
  justify-content: flex-start;
}

.beta-thread-title-line > strong,
.beta-thread-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.beta-thread-preview,
.beta-thread-bottom .beta-thread-preview {
  font-size: 0.69rem;
  font-weight: 500;
}

.beta-thread-time,
.beta-service-time {
  font-weight: 500;
}

:where(
  .beta-chat-heading h1,
  .beta-feature-header h1,
  .beta-drawer-header h2,
  .beta-service-card h2,
  .beta-file-row strong,
  .beta-account-heading,
  .beta-account-identity strong
) {
  font-weight: 600 !important;
  letter-spacing: -0.014em;
}

:where(
  .beta-chat-heading p,
  .beta-feature-header p,
  .beta-service-card p,
  .beta-account-copy,
  .beta-account-identity span,
  .beta-file-row span
) {
  font-weight: 400 !important;
}

/* All labelled actions use the same type, geometry and icon baseline. */
.beta-app :where(
  .beta-button,
  .beta-service-action,
  .beta-tool-action,
  .beta-exam-entry__submit,
  .beta-exam-entry__secondary
) {
  min-height: 42px !important;
  border-radius: 12px !important;
  gap: 8px !important;
  padding: 0 14px !important;
  font-family: var(--beta-font) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.008em;
}

.beta-app :where(
  .beta-button,
  .beta-service-action,
  .beta-tool-action,
  .beta-exam-entry__submit,
  .beta-exam-entry__secondary
) > :where(span, strong) {
  font: inherit !important;
  color: inherit;
  line-height: inherit !important;
}

.beta-app :where(
  .beta-button,
  .beta-service-action,
  .beta-tool-action,
  .beta-exam-entry__submit,
  .beta-exam-entry__secondary
) > :where(.beta-fa-icon, svg) {
  width: 1em;
  min-width: 1em;
  height: 1em;
  flex: 0 0 1em;
  font-size: 1em;
}

.beta-service-action.is-disabled,
.beta-service-action:disabled {
  border-color: var(--beta-line) !important;
  background: #f3f6f9 !important;
  color: #8a99aa !important;
  box-shadow: none !important;
  cursor: not-allowed;
  opacity: 1;
}

.beta-exam-entry__actions {
  align-items: stretch;
}

.beta-exam-entry__secondary {
  width: 100%;
}

/* Exam access is deliberately calm: labels and values do not compete with the action. */
.beta-exam-entry-card .beta-service-eyebrow {
  font-weight: 500 !important;
  letter-spacing: 0.045em;
}

.beta-exam-entry-card .beta-service-card-heading h2 {
  font-weight: 500 !important;
  letter-spacing: -0.012em;
}

.beta-exam-entry-card .beta-service-card > p {
  font-weight: 400 !important;
}

.beta-exam-entry .beta-field > span {
  font-size: 0.72rem !important;
  font-weight: 500 !important;
}

.beta-exam-entry input {
  font-size: 0.84rem !important;
  font-weight: 400 !important;
  letter-spacing: -0.008em;
}

.beta-exam-entry input::placeholder {
  font-weight: 400;
}

.beta-exam-entry :where(.beta-exam-entry__submit, .beta-exam-entry__secondary) {
  font-weight: 500 !important;
}

.beta-avatar-editor {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.beta-avatar-editor__preview {
  width: 58px;
  height: 58px;
  border: 2px solid #fff;
  box-shadow:
    0 5px 14px rgba(15, 47, 82, 0.12),
    0 0 0 1px var(--beta-line);
}

.beta-avatar-editor .beta-account-actions {
  min-width: 0;
}

@media (max-width: 390px) {
  .beta-avatar-editor {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 8px;
  }

  .beta-avatar-editor__preview {
    width: 50px;
    height: 50px;
  }
}

.beta-service-pagination {
  display: grid !important;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: 8px;
}

.beta-service-pagination .beta-service-action {
  width: 100% !important;
  min-width: 0 !important;
}

.beta-service-pagination .beta-inline-status {
  min-width: 96px;
  font-family: var(--beta-font);
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
}

/* Search scope lives inside a single compact material-search control. */
.beta-feature-panel[data-beta-feature="materials"] .beta-feature-header {
  grid-template-columns: auto minmax(150px, 0.55fr) minmax(390px, 1.45fr);
  gap: 12px;
  box-shadow: none;
}

.beta-feature-panel[data-beta-feature="materials"] .beta-feature-actions {
  width: 100%;
  min-width: 0;
  display: block !important;
}

.beta-feature-panel[data-beta-feature="materials"] .beta-feature-content {
  padding-top: 6px;
}

.beta-material-searchbar {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 13px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  background: #eef4fa;
  padding: 3px;
  box-shadow: none;
}

.beta-material-searchbar__field {
  min-width: 0;
}

.beta-material-searchbar__field > input {
  min-height: 40px;
  border: 0 !important;
  background: transparent;
  padding-right: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  box-shadow: none !important;
}

.beta-material-searchbar__field > input:focus {
  border: 0 !important;
  background: transparent;
  box-shadow: none !important;
}

.beta-material-searchbar__scope {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border-radius: 11px;
  background: #e6eef7;
  padding: 3px;
}

.beta-material-scope {
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: #4d647d;
  padding: 0 10px;
  font-family: var(--beta-font);
  font-size: 0.68rem;
  font-weight: 500;
  cursor: pointer;
}

.beta-material-scope[aria-pressed="true"] {
  background: #fff;
  color: var(--beta-primary-dark);
  box-shadow: 0 1px 4px rgba(15, 27, 45, 0.1);
}

.beta-material-scope .beta-fa-icon {
  font-size: 0.8rem;
}

.beta-breadcrumbs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--beta-font);
  font-size: 0.7rem;
  font-weight: 500;
}

/* Profile rewards: a compact, animated premium pass with a scan-stable QR. */
.beta-account-reward-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 0;
  border: 1px solid rgba(93, 165, 235, 0.46);
  border-radius: 20px;
  grid-template-columns: minmax(0, 1fr) 154px;
  align-items: center;
  gap: 18px;
  background:
    radial-gradient(circle at 86% 4%, rgba(72, 178, 255, 0.25), transparent 33%),
    radial-gradient(circle at 14% 110%, rgba(36, 108, 231, 0.11), transparent 42%),
    linear-gradient(125deg, #f9fcff 0%, #edf7ff 48%, #e5f3ff 100%);
  background-size: 130% 130%;
  color: var(--beta-text);
  padding: 12px 14px 12px 18px;
  box-shadow:
    0 14px 36px rgba(28, 103, 177, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  animation: beta-reward-aurora 10s ease-in-out infinite alternate;
}

.beta-account-reward-hero::before {
  position: absolute;
  z-index: 0;
  top: -80%;
  left: -26%;
  width: 34%;
  height: 260%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.72),
    transparent
  );
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: rotate(18deg) translate3d(-120%, 0, 0);
  animation: beta-reward-sheen 7.5s ease-in-out infinite;
}

.beta-account-reward-hero::after {
  z-index: 0;
  display: block;
  right: -54px;
  bottom: -112px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(25, 120, 218, 0.13);
  box-shadow:
    0 0 0 22px rgba(42, 147, 240, 0.035),
    0 0 0 56px rgba(42, 147, 240, 0.025);
  pointer-events: none;
  animation: beta-reward-orbit 9s ease-in-out infinite;
}

.beta-account-reward-hero > * {
  position: relative;
  z-index: 1;
}

.beta-account-reward-score {
  min-width: 0;
  align-content: center;
  gap: 4px;
}

.beta-account-reward-score > span,
.beta-account-reward-score > small {
  color: #476986;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.beta-account-reward-score > strong {
  display: block;
  overflow: visible;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding-inline: 0.02em 0.1em;
  background: linear-gradient(115deg, #0751b5 0%, #0d75db 55%, #16a4eb 100%);
  background-clip: text;
  color: transparent;
  font-size: clamp(4.8rem, 11vw, 7.1rem);
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.045em;
  line-height: 0.95;
  white-space: nowrap;
  filter: drop-shadow(0 5px 14px rgba(27, 117, 211, 0.11));
}

.beta-account-reward-score > strong[data-balance-size="medium"] {
  font-size: clamp(3.5rem, 8vw, 5.5rem);
}

.beta-account-reward-score > strong[data-balance-size="long"] {
  font-size: clamp(2.35rem, 5.5vw, 4rem);
}

.beta-account-reward-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}

.beta-account-reward-score > .beta-account-reward-chips > .beta-account-reward-chip {
  min-height: 26px;
  border: 1px solid rgba(83, 151, 220, 0.24);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: #244e79;
  padding: 4px 10px;
  font-size: 0.61rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  box-shadow:
    0 5px 14px rgba(38, 105, 170, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(9px);
}

.beta-account-reward-score > .beta-account-reward-chips > .beta-account-reward-chip .beta-fa-icon {
  color: #1574d2;
  font-size: 0.68rem;
}

.beta-account-reward-score > .beta-account-reward-chips > .beta-account-reward-chip--level {
  border-color: rgba(17, 126, 220, 0.28);
  background: linear-gradient(135deg, rgba(232, 246, 255, 0.94), rgba(255, 255, 255, 0.82));
}

.beta-account-reward-score > .beta-account-reward-chips > .beta-account-reward-chip--multiplier {
  border-color: rgba(55, 164, 206, 0.27);
  background: linear-gradient(135deg, rgba(232, 251, 255, 0.94), rgba(255, 255, 255, 0.82));
}

.beta-account-reward-score > .beta-account-reward-chips > .beta-account-reward-chip--multiplier .beta-fa-icon {
  color: #078eaa;
}

.beta-account-qr {
  position: relative;
  width: 154px;
  min-height: 0;
  aspect-ratio: 1;
  overflow: visible;
  border: 1px solid rgba(83, 157, 230, 0.72);
  border-radius: 20px;
  background: #fff;
  color: #124e8c;
  padding: 10px;
  box-shadow:
    0 14px 30px rgba(29, 110, 190, 0.13),
    0 0 0 7px rgba(89, 163, 235, 0.075),
    inset 0 1px 0 #fff;
  animation: none;
}

.beta-account-qr:hover,
.beta-account-qr:focus-visible {
  transform: translateY(-3px) scale(1.015);
  border-color: #69a7e6;
  box-shadow:
    0 18px 34px rgba(29, 110, 190, 0.18),
    0 0 0 8px rgba(89, 163, 235, 0.12);
}

.beta-account-qr__code {
  width: 132px;
  height: 132px;
}

@keyframes beta-reward-aurora {
  0% {
    background-position: 0% 20%;
    box-shadow:
      0 14px 36px rgba(28, 103, 177, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.92);
  }
  100% {
    background-position: 100% 70%;
    box-shadow:
      0 18px 42px rgba(28, 119, 204, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.96);
  }
}

@keyframes beta-reward-sheen {
  0%,
  67% {
    left: -26%;
    opacity: 0;
    transform: rotate(18deg) translate3d(-120%, 0, 0);
  }
  75% {
    opacity: 0.64;
  }
  92%,
  100% {
    left: 116%;
    opacity: 0;
    transform: rotate(18deg) translate3d(120%, 0, 0);
  }
}

@keyframes beta-reward-orbit {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-18px, -12px, 0) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .beta-account-reward-hero,
  .beta-account-reward-hero::before,
  .beta-account-reward-hero::after {
    animation: none;
  }
}

/* Account action groups use balanced grids, never scattered rows or scrolling. */
.beta-app .beta-drawer .beta-account-actions {
  display: grid !important;
  grid-template-columns: minmax(0, max-content);
  align-items: stretch;
  overflow: visible;
  gap: 7px;
}

.beta-app .beta-drawer .beta-account-actions .beta-button {
  width: 100% !important;
  min-width: 0 !important;
  white-space: nowrap;
}

.beta-app .beta-drawer .beta-account-actions:has(> :nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.beta-app .beta-drawer .beta-account-actions:has(> :nth-child(3):last-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.beta-app .beta-drawer .beta-account-actions:has(> :nth-child(4):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.beta-app .beta-drawer .beta-account-actions:has(> :nth-child(5):last-child) {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.beta-app .beta-drawer .beta-account-actions:has(> :nth-child(6):last-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.beta-account-card,
.beta-account-progress {
  box-shadow: none !important;
}

.beta-account-card--legal .beta-account-actions {
  overflow: visible;
}

.beta-account-card--legal .beta-account-actions .beta-button {
  width: 100% !important;
  white-space: nowrap;
}

@media (max-width: 390px) {
  .beta-app .beta-drawer .beta-account-actions:has(> :nth-child(3):last-child) .beta-button,
  .beta-app .beta-drawer .beta-account-actions:has(> :nth-child(5):last-child) .beta-button {
    gap: 0;
    font-size: 0 !important;
  }

  .beta-app .beta-drawer .beta-account-actions:has(> :nth-child(3):last-child) .beta-button .beta-fa-icon,
  .beta-app .beta-drawer .beta-account-actions:has(> :nth-child(5):last-child) .beta-button .beta-fa-icon {
    font-size: 0.84rem;
  }
}

/* The central Home control is always a circle, including narrow layouts. */
.beta-mobile-dock-compose {
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  padding: 0 !important;
}

@media (max-width: 760px) {
  .beta-mobile-dock-compose {
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
  }

  .beta-feature-panel[data-beta-feature="materials"] .beta-feature-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .beta-feature-panel[data-beta-feature="materials"] .beta-feature-actions {
    grid-column: 1 / -1;
  }

  .beta-material-searchbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .beta-material-searchbar__scope {
    justify-self: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .beta-service-pagination {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .beta-account-reward-hero {
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 11px;
    padding: 10px 11px 10px 13px;
  }

  .beta-account-qr {
    width: 132px;
    min-height: 0;
    border-radius: 17px;
    padding: 8px;
  }

  .beta-account-qr__code {
    width: 114px;
    height: 114px;
  }

  .beta-account-reward-score > strong {
    font-size: clamp(4.25rem, 22vw, 5.75rem);
  }

  .beta-account-reward-score > strong[data-balance-size="medium"] {
    font-size: clamp(3.1rem, 16vw, 4.4rem);
  }

  .beta-account-reward-score > strong[data-balance-size="long"] {
    font-size: clamp(2.15rem, 10.5vw, 3.25rem);
  }

  .beta-account-reward-score > .beta-account-reward-chips > .beta-account-reward-chip {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 0.56rem;
  }

  .beta-service-pagination {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .beta-service-pagination .beta-inline-status {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

/* In compact windows the bottom sheet stays optically centred. */
@media (max-width: 760px) {
  .beta-drawer {
    right: auto;
    left: 50%;
    width: calc(100% - 20px);
    max-width: 720px;
    transform: translate(-50%, 102%);
  }

  .beta-overlay.is-open .beta-drawer,
  .beta-overlay[aria-hidden="false"] .beta-drawer,
  .beta-drawer:not([hidden]),
  .beta-drawer[aria-hidden="false"] {
    transform: translate(-50%, 0);
  }
}

/*
 * Light typography pass.
 * The native Inter/SF/Segoe/Roboto stack stays crisp on every platform.
 * Bold is emphasis, never the default.
 */
body,
body.beta-page,
.beta-app {
  font-weight: 400;
}

:where(
  .beta-header-context strong,
  .beta-header__title,
  .beta-sidebar__title,
  .beta-chat-heading h1,
  .beta-chat-header__title,
  .beta-feature-header h1,
  .beta-drawer-header h2,
  .beta-panel-header h2,
  .beta-account-heading,
  .beta-service-card h2
) {
  font-weight: 600 !important;
  letter-spacing: -0.012em !important;
}

:where(
  .beta-header-context span,
  .beta-header__subtitle,
  .beta-chat-heading p,
  .beta-chat-header__subtitle,
  .beta-feature-header p,
  .beta-drawer-header p,
  .beta-panel-header p,
  .beta-account-copy,
  .beta-service-card p
) {
  font-weight: 400 !important;
}

:where(
  .beta-thread-title-line > strong,
  .beta-thread-title,
  .beta-thread__name,
  .beta-file-row strong,
  .beta-account-identity strong,
  .beta-section-heading h2
) {
  font-weight: 500 !important;
}

:where(
  .beta-thread-preview,
  .beta-thread__preview,
  .beta-thread-time,
  .beta-thread__time,
  .beta-service-time,
  .beta-file-row span,
  .beta-account-identity span
) {
  font-weight: 400 !important;
}

.beta-app :where(
  .beta-button,
  .beta-service-action,
  .beta-tool-action,
  .beta-exam-entry__submit,
  .beta-exam-entry__secondary
) {
  font-weight: 500 !important;
}

.beta-announcement-detail,
.beta-announcement-detail p,
.beta-announcement-detail__prose {
  font-weight: 400 !important;
}

.beta-announcement-detail__prose :where(strong, b) {
  font-weight: 500 !important;
}

.beta-announcement-detail__prose :where(h2, h3, h4) {
  font-weight: 500 !important;
}

.beta-announcement-detail__prose a {
  font-weight: 500 !important;
}

/* Modal headings need the same breathing room as their content cards. */
.beta-app .beta-drawer .beta-drawer-header {
  min-height: 76px;
  gap: 14px;
  padding: 13px 20px 14px;
}

.beta-app .beta-drawer .beta-drawer-header > div {
  padding-inline: 2px;
}

.beta-brain-explorer {
  font-weight: 400;
}

.beta-brain-explorer :where(strong, h2, h3, h4) {
  font-weight: 500 !important;
}

.beta-brain-explorer :where(
  button,
  label,
  small,
  .beta-brain-count,
  .beta-brain-dataset__copy > span
) {
  font-weight: 400 !important;
}

.beta-brain-explorer :where(.beta-button, .beta-brain-toolbar button) {
  font-weight: 500 !important;
}

/*
 * Final typography contract.
 * One family, three deliberate weights: body 400, controls 500, emphasis 600.
 * This block is intentionally last so feature-local prototypes cannot restore
 * the former 700–900 weights.
 */
.beta-app,
.beta-app :where(
  button,
  input,
  select,
  textarea,
  label,
  summary
) {
  font-family: var(--beta-font) !important;
  font-synthesis: none;
}

.beta-app {
  font-weight: 400 !important;
}

.beta-app :where(h1, h2, h3, h4, h5, h6, strong, b) {
  font-weight: 600 !important;
  letter-spacing: -0.012em;
}

.beta-app :where(
  button,
  .beta-button,
  .beta-service-action,
  .beta-tool-action,
  .beta-exam-entry__submit,
  .beta-exam-entry__secondary,
  .beta-brain-load
) {
  font-weight: 500 !important;
}

.beta-app :where(
  p,
  small,
  time,
  .beta-chat-status,
  .beta-account-copy,
  .beta-account-empty,
  .beta-account-empty-copy,
  .beta-account-document-row span,
  .beta-account-status,
  .beta-thread-preview,
  .beta-thread-time,
  .beta-service-time,
  .beta-state p,
  .beta-state > span:not(.beta-state-icon):not(.beta-spinner)
) {
  font-weight: 400 !important;
}

.beta-app :where(
  .beta-account-details summary,
  .beta-account-document-row strong,
  .beta-state strong,
  .beta-chat-status strong
) {
  font-weight: 500 !important;
}

.beta-app [data-tooltip]::after,
.beta-app [data-tooltip]::before {
  font-family: var(--beta-font) !important;
}

/* LIVE is a persistent state, with a stronger but finite activation cue. */
@keyframes beta-live-home-pulse {
  0%,
  100% {
    background-position: 0% 50%;
    box-shadow: 0 12px 30px rgba(0, 122, 255, .28);
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 0 15px 38px rgba(0, 181, 255, .42);
  }
}

@keyframes beta-live-home-ring {
  0% {
    opacity: .7;
    transform: scale(.88);
  }
  75%,
  100% {
    opacity: 0;
    transform: scale(1.34);
  }
}

@keyframes beta-live-home-activation {
  0%,
  100% {
    transform: translateY(-8px) scale(1);
  }
  28% {
    transform: translateY(-8px) scale(1.13) rotate(-4deg);
  }
  58% {
    transform: translateY(-8px) scale(1.07) rotate(3deg);
  }
}

.beta-mobile-dock-compose.is-live {
  isolation: isolate;
  overflow: visible !important;
  background: linear-gradient(135deg, #075fdb, #00b9f5, #087cf0) !important;
  background-size: 220% 220% !important;
  box-shadow: 0 12px 30px rgba(0, 122, 255, .28) !important;
  animation: beta-live-home-pulse 2.6s ease-in-out infinite;
}

.beta-mobile-dock-compose.is-live::before {
  position: absolute;
  z-index: -1;
  inset: -6px;
  border: 2px solid rgba(0, 166, 255, .48);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  animation: beta-live-home-ring 2s ease-out infinite;
}

.beta-mobile-dock-compose.is-live-just-activated {
  animation:
    beta-live-home-activation .76s ease-in-out 3,
    beta-live-home-pulse 2.6s ease-in-out infinite;
}

.beta-mobile-dock-live-badge {
  position: absolute;
  z-index: 4;
  top: -10px;
  left: 50%;
  min-width: 34px;
  padding: 3px 6px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ed2939;
  color: #fff;
  font-family: var(--beta-font);
  font-size: .48rem;
  font-weight: 500;
  letter-spacing: .09em;
  line-height: 1;
  text-align: center;
  transform: translateX(-50%);
  box-shadow: 0 5px 13px rgba(149, 20, 33, .25);
  pointer-events: none;
}

.beta-mobile-dock-live-badge[hidden] {
  display: none !important;
}

/*
 * In narrow Brain Viewer layouts the dataset library is a compact horizontal
 * rail. A percentage-based row used to leave a large empty white band.
 */
@media (max-width: 820px) {
  .beta-brain-explorer {
    grid-template-rows: 126px minmax(0, 1fr) !important;
  }

  .beta-brain-explorer.is-library-collapsed {
    grid-template-rows: 0 minmax(0, 1fr) !important;
  }

  .beta-brain-library {
    height: 126px !important;
    min-height: 0 !important;
    max-height: 126px !important;
  }

  .beta-brain-explorer.is-library-collapsed .beta-brain-library {
    height: 0 !important;
  }
}

@media (max-width: 620px) {
  .beta-brain-explorer {
    grid-template-rows: 116px minmax(0, 1fr) !important;
  }

  .beta-brain-library {
    height: 116px !important;
    max-height: 116px !important;
    grid-template-rows: 42px 74px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .beta-mobile-dock-compose.is-live,
  .beta-mobile-dock-compose.is-live::before,
  .beta-mobile-dock-compose.is-live-just-activated {
    animation: none !important;
  }
}

/*
 * Final conversation contract.
 * Direct chats mirror a mature private messenger: the participant identity is
 * already in the header, so repeating avatar and author on every bubble only
 * wastes space. Group conversations retain both.
 */
.beta-chat-timeline[data-conversation-type="direct"] .beta-chat-message:not(.is-mine):not(.is-system) {
  grid-template-columns: minmax(0, 1fr) !important;
}

.beta-chat-timeline[data-conversation-type="direct"] .beta-chat-message-avatar,
.beta-chat-timeline[data-conversation-type="direct"] .beta-chat-message-author {
  display: none !important;
}

.beta-chat-message-text,
.beta-chat-message-author,
.beta-chat-message-meta,
.beta-chat-message-time,
.beta-chat-message-quote,
.beta-chat-reaction {
  font-family: var(--beta-font) !important;
}

.beta-chat-message-text {
  font-weight: 400 !important;
}

.beta-chat-mention {
  color: var(--beta-primary-strong, #1468d8);
  font: inherit;
  font-weight: 600 !important;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.beta-chat-mention.is-broadcast,
.beta-chat-mention.is-own-mention {
  color: var(--beta-primary-dark, #0d4fae);
  font-weight: 600 !important;
}

.beta-chat-message-author,
.beta-chat-message-quote strong,
.beta-chat-reaction {
  font-weight: 500 !important;
}

.beta-chat-message-meta,
.beta-chat-message-time {
  font-weight: 400 !important;
}

/* LIVE materials open inside the app when the browser can render them. */
body.beta-material-preview-open {
  overflow: hidden;
}

.beta-material-preview-layer {
  position: fixed;
  z-index: 1800;
  inset: 0;
  display: grid;
  place-items: center;
  padding:
    calc(18px + var(--beta-safe-top))
    calc(18px + var(--beta-safe-right))
    calc(18px + var(--beta-safe-bottom))
    calc(18px + var(--beta-safe-left));
  background: rgba(8, 20, 36, 0.66);
  opacity: 0;
  transition: opacity 180ms ease;
  -webkit-backdrop-filter: blur(12px) saturate(112%);
  backdrop-filter: blur(12px) saturate(112%);
}

.beta-material-preview-layer.is-open {
  opacity: 1;
}

.beta-material-preview-dialog {
  width: min(1080px, 100%);
  max-height: min(880px, calc(100dvh - 36px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(3, 18, 35, 0.34);
  transform: translateY(12px) scale(0.985);
  transition: transform 180ms ease;
}

.beta-material-preview-layer.is-open .beta-material-preview-dialog {
  transform: translateY(0) scale(1);
}

.beta-material-preview-header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--beta-line);
  padding: 13px 15px 13px 18px;
}

.beta-material-preview-header > div {
  min-width: 0;
}

.beta-material-preview-eyebrow {
  display: block;
  margin-bottom: 2px;
  color: var(--beta-primary-strong);
  font-size: 0.61rem;
  font-weight: 500;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.beta-material-preview-header h2 {
  overflow: hidden;
  margin: 0;
  color: var(--beta-text);
  font-family: var(--beta-font);
  font-size: clamp(0.92rem, 1.8vw, 1.15rem);
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.beta-material-preview-stage {
  min-height: 240px;
  display: grid;
  place-items: center;
  overflow: auto;
  background:
    radial-gradient(circle at 50% 0, rgba(39, 132, 233, 0.13), transparent 38%),
    #07111e;
  padding: 12px;
}

.beta-material-preview-stage :where(img, video) {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 190px);
  display: block;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.beta-material-preview-stage video {
  width: min(100%, 960px);
}

.beta-material-preview-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--beta-line);
  padding: 10px 14px;
}

.beta-material-preview-footer .beta-button {
  min-width: 128px;
}

/* One contemporary weight and scale for the material-search scope control. */
.beta-material-scope {
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  letter-spacing: -0.006em;
}

/* Confirmation dialogs follow the same restrained typography as the app. */
.beta-confirm-copy h2 {
  font-family: var(--beta-font);
  font-weight: 500 !important;
  letter-spacing: -0.012em;
}

.beta-confirm-copy p {
  font-family: var(--beta-font);
  font-weight: 400 !important;
}

.beta-confirm-actions .beta-button {
  font-family: var(--beta-font);
  font-size: var(--beta-control-font) !important;
  font-weight: 500 !important;
}

@media (max-width: 640px) {
  .beta-material-preview-layer {
    place-items: end center;
    padding:
      calc(8px + var(--beta-safe-top))
      calc(8px + var(--beta-safe-right))
      calc(8px + var(--beta-safe-bottom))
      calc(8px + var(--beta-safe-left));
  }

  .beta-material-preview-dialog {
    max-height: calc(100dvh - 16px);
    border-radius: 22px;
  }

  .beta-material-preview-stage :where(img, video) {
    max-height: calc(100dvh - 174px);
  }

  .beta-material-preview-footer .beta-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .beta-material-preview-layer,
  .beta-material-preview-dialog {
    transition: none;
  }
}

/*
 * Messaging density.
 * The conversation keeps the Student App palette but adopts the compact,
 * predictable rhythm of a native messaging client.
 */
.beta-thread--real {
  min-height: 54px !important;
  grid-template-columns: 36px minmax(0, 1fr) !important;
  gap: 8px !important;
  padding: 6px 10px !important;
  touch-action: pan-y;
}

.beta-thread--real .beta-chat-avatar {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  font-size: 0.7rem;
}

.beta-thread--real .beta-thread-body {
  gap: 1px;
}

.beta-thread--real .beta-thread-top,
.beta-thread--real .beta-thread-bottom {
  min-height: 17px;
  gap: 6px;
  line-height: 1.18;
}

.beta-thread--real :where(.beta-thread-title, .beta-thread-title-line > strong) {
  font-size: 0.82rem;
  font-weight: 500 !important;
  letter-spacing: -0.008em;
}

.beta-thread--real :where(.beta-thread-preview, .beta-thread-bottom .beta-thread-preview) {
  font-size: 0.72rem;
  font-weight: 400 !important;
  line-height: 1.2;
}

.beta-thread--real :where(.beta-thread-time, .beta-thread-meta) {
  font-size: 0.66rem;
  font-weight: 400 !important;
}

.beta-chat-timeline {
  gap: 2px !important;
  padding: 7px clamp(8px, 1.8vw, 20px) 9px !important;
  scroll-padding-block: 10px;
}

.beta-chat-message-stream {
  gap: 2px !important;
}

.beta-chat-date-divider {
  margin-block: 4px;
  padding: 4px 9px !important;
  font-size: 0.66rem !important;
  font-weight: 500 !important;
  line-height: 1.15;
}

.beta-chat-message {
  max-width: min(72%, 520px) !important;
  gap: 4px !important;
}

.beta-chat-message.is-continuation {
  margin-top: -1px !important;
}

.beta-chat-message-avatar {
  width: 24px !important;
  height: 24px !important;
  flex-basis: 24px !important;
  font-size: 0.59rem !important;
}

.beta-chat-message-bubble {
  --beta-chat-bubble-bg: #ffffff;
  --beta-chat-bubble-border: rgba(191, 211, 232, 0.72);
  min-width: 48px !important;
  border-color: var(--beta-chat-bubble-border) !important;
  border-radius: 12px !important;
  background: var(--beta-chat-bubble-bg);
  padding: 5px 7px 4px !important;
  font-size: 0.84rem !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  box-shadow: none !important;
}

.beta-chat-message.is-mine .beta-chat-message-bubble {
  --beta-chat-bubble-bg: #dff0ff;
  --beta-chat-bubble-border: rgba(10, 132, 255, 0.15);
  background: var(--beta-chat-bubble-bg);
}

/*
 * WhatsApp-style bubble tails. A thin outer shape continues the bubble border,
 * while the inner shape continues its fill. The fourth corner becomes the tail;
 * the other three stay rounded. Continuations and system notices remain neutral.
 */
.beta-chat-message:not(.is-mine):not(.is-system):not(.is-continuation)
  > .beta-chat-message-bubble {
  border-radius: 12px 12px 12px 2px !important;
}

.beta-chat-message.is-mine:not(.is-continuation)
  > .beta-chat-message-bubble {
  border-radius: 12px 12px 2px 12px !important;
}

.beta-chat-message:not(.is-system):not(.is-continuation)
  > .beta-chat-message-bubble::before,
.beta-chat-message:not(.is-system):not(.is-continuation)
  > .beta-chat-message-bubble::after {
  content: "";
  position: absolute;
  bottom: -1px;
  display: block;
  pointer-events: none;
}

.beta-chat-message:not(.is-mine):not(.is-system):not(.is-continuation)
  > .beta-chat-message-bubble::before {
  inset-inline-start: -9px;
  width: 10px;
  height: 12px;
  background: var(--beta-chat-bubble-border);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.beta-chat-message:not(.is-mine):not(.is-system):not(.is-continuation)
  > .beta-chat-message-bubble::after {
  inset-inline-start: -7px;
  width: 8px;
  height: 10px;
  background: var(--beta-chat-bubble-bg);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.beta-chat-message.is-mine:not(.is-continuation)
  > .beta-chat-message-bubble::before {
  inset-inline-end: -9px;
  width: 10px;
  height: 12px;
  background: var(--beta-chat-bubble-border);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.beta-chat-message.is-mine:not(.is-continuation)
  > .beta-chat-message-bubble::after {
  inset-inline-end: -7px;
  width: 8px;
  height: 10px;
  background: var(--beta-chat-bubble-bg);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.beta-chat-message.is-system .beta-chat-message-bubble {
  padding: 5px 8px !important;
  font-size: 0.69rem !important;
  font-weight: 500 !important;
}

.beta-chat-message-author {
  margin-bottom: 1px !important;
  font-size: 0.64rem !important;
  font-weight: 500 !important;
}

.beta-chat-message :where(
  .beta-chat-message-meta,
  .beta-chat-message-time,
  .beta-chat-message-meta .beta-chat-message-time
) {
  margin-top: 2px;
  font-size: 0.61rem !important;
  font-weight: 400 !important;
  line-height: 1;
}

.beta-chat-message-meta {
  gap: 3px !important;
  margin-inline-start: auto !important;
  margin-inline-end: 0 !important;
  justify-content: flex-end;
  text-align: right;
}

.beta-chat-message-time {
  white-space: nowrap;
}

.beta-chat-message-quote {
  margin-bottom: 4px !important;
  border-left-width: 2px !important;
  border-radius: 5px !important;
  padding: 4px 6px !important;
  font-size: 0.68rem !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
}

.beta-chat-message-quote strong {
  font-weight: 500 !important;
}

:is(.beta-chat-message-reactions, .beta-chat-action-reactions) {
  gap: 2px !important;
  margin: 0 !important;
}

.beta-chat-reaction {
  min-height: 17px !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 3px !important;
  font-size: 0.64rem !important;
  font-weight: 450 !important;
  line-height: 1 !important;
}

.beta-chat-message-bubble {
  position: relative;
  overflow: visible;
}

.beta-chat-message:has(
  > .beta-chat-message-bubble
  > :is(.beta-chat-message-reactions, .beta-chat-action-reactions)
) {
  margin-bottom: 11px !important;
}

.beta-chat-message-bubble:has(
  > :is(.beta-chat-message-reactions, .beta-chat-action-reactions)
) {
  padding-bottom: 12px !important;
}

.beta-chat-message-bubble
  > :is(.beta-chat-message-reactions, .beta-chat-action-reactions) {
  position: absolute !important;
  inset-inline-start: 6px;
  bottom: -10px;
  z-index: 3;
  max-width: calc(100% - 12px);
  border: 1px solid rgba(184, 207, 231, 0.9);
  border-radius: 999px;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  background: #ffffff;
  padding: 1px 3px !important;
  box-shadow: none !important;
}

.beta-chat-message.is-mine
  > .beta-chat-message-bubble
  > :is(.beta-chat-message-reactions, .beta-chat-action-reactions) {
  inset-inline-start: auto;
  inset-inline-end: 6px;
  background: #f6fbff;
}

.beta-chat-message.is-system
  > .beta-chat-message-bubble
  > :is(.beta-chat-message-reactions, .beta-chat-action-reactions) {
  inset-inline-start: 50%;
  transform: translateX(-50%);
}

.beta-chat-message-bubble > .beta-chat-poll {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.beta-chat-message-bubble:has(> .beta-chat-poll) {
  width: min(440px, 100%);
  min-width: 0 !important;
  max-width: 100%;
}

.beta-chat-poll-options,
.beta-chat-poll-option,
.beta-chat-poll-vote,
.beta-chat-poll-option-label {
  min-width: 0;
  max-width: 100%;
}

.beta-chat-poll-option-label {
  overflow-wrap: anywhere;
}

.beta-chat-attachment {
  margin-top: 4px !important;
}

.beta-chat-composer-form {
  gap: 3px;
}

.beta-chat-composer-row {
  align-items: center;
  gap: 6px !important;
}

.beta-chat-composer-input {
  min-height: 38px;
  max-height: min(112px, 22vh);
  border-radius: 19px;
  padding: 8px 11px;
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.32;
}

.beta-chat-composer-send {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  box-shadow: 0 5px 14px rgba(20, 104, 216, 0.2);
}

.beta-chat-composer-status {
  font-size: 0.69rem;
  font-weight: 400;
}

@media (max-width: 760px) {
  .beta-chat-message {
    max-width: 86% !important;
  }

  .beta-chat-timeline {
    padding: 6px 6px 8px !important;
  }

  .beta-chat-composer-input {
    font-size: 16px;
  }
}

/* Teacher contact: one calm Student App form, with live chat availability. */
.beta-feature-panel[data-beta-feature="teacher-email"] {
  --beta-teacher-contact-brand: #3166d1;
  --beta-teacher-contact-soft: #edf2fc;
}

.beta-feature-panel[data-beta-feature="teacher-email"] .beta-feature-mark {
  background: var(--beta-teacher-contact-soft);
  color: var(--beta-teacher-contact-brand);
  box-shadow: inset 0 0 0 1px rgba(49, 102, 209, 0.14);
}

.beta-feature-panel[data-beta-feature="teacher-email"] .beta-feature-content {
  overflow: auto;
  padding: clamp(12px, 2vw, 24px);
  background:
    radial-gradient(circle at 50% 0%, rgba(49, 102, 209, 0.065), transparent 34%),
    var(--beta-bg-soft);
}

.beta-teacher-contact {
  width: min(100%, 720px);
  min-width: 0;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.beta-teacher-contact__chat,
.beta-teacher-contact__card {
  min-width: 0;
  border: 1px solid rgba(184, 207, 231, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(31, 67, 105, 0.06);
}

.beta-teacher-contact__chat {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
}

.beta-teacher-contact__chat-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.beta-teacher-contact__chat-copy > div {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 3px;
}

.beta-teacher-contact__chat-icon,
.beta-teacher-contact__heading-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--beta-teacher-contact-soft);
  color: var(--beta-teacher-contact-brand);
  font-size: 1rem;
}

.beta-teacher-contact__chat-icon.is-muted {
  background: #f2f5f8;
  color: var(--beta-muted);
}

.beta-teacher-contact__chat-copy strong {
  color: var(--beta-text);
  font-size: 0.78rem;
  line-height: 1.25;
}

.beta-teacher-contact__chat-copy p {
  margin: 0;
  color: var(--beta-muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.beta-teacher-contact__chat > .beta-button {
  flex: 0 0 auto;
  min-width: 126px;
}

.beta-teacher-contact__card {
  padding: clamp(18px, 3vw, 28px);
}

.beta-teacher-contact__form {
  display: grid;
  gap: 17px;
}

.beta-teacher-contact__heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.beta-teacher-contact__heading > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.beta-teacher-contact__heading h2 {
  margin: 0;
  color: var(--beta-text);
  font-size: 1rem;
  line-height: 1.25;
}

.beta-teacher-contact__heading h2:focus {
  outline: none;
}

.beta-teacher-contact__heading p {
  margin: 0;
  color: var(--beta-muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.beta-teacher-contact__identity {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 10px;
  border: 1px solid rgba(49, 102, 209, 0.14);
  border-radius: 13px;
  background: var(--beta-teacher-contact-soft);
  padding: 10px 12px;
}

.beta-teacher-contact__identity span,
.beta-teacher-contact__identity small {
  color: var(--beta-muted);
  font-size: 0.64rem;
  line-height: 1.35;
}

.beta-teacher-contact__identity strong {
  min-width: 0;
  overflow: hidden;
  color: var(--beta-text);
  font-size: 0.72rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.beta-teacher-contact__identity small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.beta-teacher-contact .beta-field {
  gap: 7px;
}

.beta-teacher-contact .beta-field__label {
  color: var(--beta-text-soft);
  font-size: 0.73rem;
  font-weight: 600;
}

.beta-teacher-contact .beta-field__control {
  min-height: 46px;
  border-color: #c8daeb;
  border-radius: 13px;
  background: #fbfdff;
  font-size: 0.82rem;
  font-weight: 400;
}

.beta-teacher-contact textarea.beta-field__control {
  min-height: 156px;
  resize: vertical;
}

.beta-teacher-contact .beta-field__control:focus {
  border-color: var(--beta-teacher-contact-brand);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(49, 102, 209, 0.13);
}

.beta-teacher-contact .beta-field__control[aria-invalid="true"] {
  border-color: var(--beta-danger);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.09);
}

.beta-teacher-contact__field-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.beta-teacher-contact .beta-field__help,
.beta-teacher-contact .beta-field__error {
  font-size: 0.64rem;
  font-weight: 400;
}

.beta-teacher-contact__feedback {
  min-height: 0;
  margin: 0;
  border-radius: 11px;
  color: var(--beta-muted-strong);
  font-size: 0.69rem;
  line-height: 1.4;
}

.beta-teacher-contact__feedback:empty {
  display: none;
}

.beta-teacher-contact__feedback.is-error {
  border: 1px solid rgba(180, 35, 24, 0.2);
  background: var(--beta-danger-soft);
  color: var(--beta-danger);
  padding: 9px 11px;
}

.beta-teacher-contact__actions {
  display: flex;
  justify-content: flex-end;
}

.beta-teacher-contact__actions .beta-button {
  min-width: 156px;
}

.beta-teacher-contact__success {
  width: 100%;
  min-height: 300px;
  place-content: center;
}

@media (max-width: 700px) {
  .beta-feature-panel[data-beta-feature="teacher-email"] .beta-feature-content {
    padding: 10px;
  }

  .beta-teacher-contact {
    gap: 9px;
  }

  .beta-teacher-contact__chat,
  .beta-teacher-contact__card {
    border-radius: 15px;
  }

  .beta-teacher-contact__chat {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .beta-teacher-contact__chat > .beta-button,
  .beta-teacher-contact__actions .beta-button {
    width: 100%;
  }

  .beta-teacher-contact__card {
    padding: 16px 14px;
  }

  .beta-teacher-contact__identity {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .beta-teacher-contact__identity small {
    grid-column: 2;
  }

  .beta-teacher-contact .beta-field__control {
    font-size: 16px;
  }
}

/* Every workspace starts on the same visual baseline as Student Space. */
.beta-chat-header,
.beta-feature-panel[data-beta-feature-panel] .beta-feature-header {
  border-bottom: 1px solid var(--beta-line);
  background: rgba(248, 251, 254, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.beta-feature-panel[data-beta-feature-panel] .beta-feature-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: var(--beta-primary-soft);
  color: var(--beta-primary-strong);
  box-shadow: none;
}

.beta-feature-panel[data-beta-feature-panel] .beta-feature-mark .beta-fa-icon {
  font-size: 0.84rem;
}

.beta-feature-panel[data-beta-feature-panel] .beta-feature-header h1 {
  font-size: 0.9rem;
}

.beta-chat-heading h1:focus {
  outline: none;
}

@media (min-width: 761px) {
  .beta-sidebar-tools,
  .beta-chat-header,
  .beta-feature-panel[data-beta-feature-panel] .beta-feature-header {
    height: var(--beta-workspace-head-height);
    min-height: var(--beta-workspace-head-height);
    max-height: var(--beta-workspace-head-height);
  }
}

@media (max-width: 760px) {
  .beta-chat-header,
  .beta-feature-panel[data-beta-feature-panel] .beta-feature-header {
    min-height: 64px;
    padding-block: 9px;
  }
}
