/* ==========================================================================
   layout.css — 应用外壳、顶栏、三栏、拖拽、响应式
   ========================================================================== */

.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  background: var(--bg);
}

/* ---------- 顶栏 ---------- */

.appbar {
  flex: 0 0 auto;
  height: var(--appbar-h);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0 12px 0 8px;
  background: linear-gradient(180deg, #0d1e39 0%, var(--navy) 100%);
  color: var(--nav-text);
  border-bottom: 1px solid rgba(0, 0, 0, 0.28);
  box-shadow: 0 1px 0 rgba(200, 161, 90, 0.18);
  position: relative;
  z-index: var(--z-nav-toggle);
}

.appbar-menu {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding-right: 12px;
  border-right: 1px solid var(--nav-line);
}

/* The brand is decorative; it must never capture clicks in the stage bar,
   including while the later visual refinement stylesheet is loading. */
.appbar .brand-logo-window {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 72px;
  height: 28px;
  overflow: hidden;
  pointer-events: none;
}
.appbar .brand-logo-window img {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: auto;
  transform: translateY(-50%);
  pointer-events: none;
}
@media (max-width: 759.98px) {
  .appbar .brand-logo-window { width: 56px; height: 24px; }
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: linear-gradient(160deg, var(--gold) 0%, #a67f36 100%);
  color: var(--navy);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-text strong {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-text small {
  font-size: 10px;
  color: var(--gold-soft);
  letter-spacing: 0.06em;
  opacity: 0.9;
  white-space: nowrap;
}

.appbar-context {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 12.5px;
  color: var(--nav-text-dim);
}

.appbar-context .ctx-ent {
  color: var(--nav-text);
  font-weight: 500;
  white-space: nowrap;
}

.appbar-context .ctx-dec {
  color: var(--gold-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 32vw;
}

.ctx-sep {
  opacity: 0.4;
}

.appbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.appbar-logout {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--nav-line-strong);
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--nav-text);
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}

.appbar-logout:hover {
  border-color: var(--gold);
  background: rgba(200, 161, 90, 0.1);
}

.appbar-logout .icon {
  width: 15px;
  height: 15px;
}

.appbar-logout:disabled {
  opacity: 0.55;
  cursor: wait;
}

@media (max-width: 759.98px) {
  .appbar-logout { padding: 0 6px; }
  .appbar-logout .icon { display: none; }
  .app .appbar .brand { flex: none; gap: 0; }
}

@media (max-width: 420px) {
  .app .appbar { gap: 6px; padding-inline: 6px; }
  .app .appbar .brand { padding-left: 0; }
  .appbar-logout-long { display: none; }
}

@media (max-width: 380px) {
  .app .appbar { gap: 4px; padding-inline: 6px; }
  .app .appbar .brand { flex: 0 0 auto; gap: 0; padding-left: 0; }
  .app .appbar .brand-logo-window { width: 46px; }
  .appbar .appbar-right { gap: 3px; }
  .appbar-right .segmented button, .appbar-right .model-chip { padding-inline: 6px; }
}

@media (max-width: 359px) {
  .appbar-logout > span { display: none; }
  .appbar-logout .icon { display: block; }
}

/* 移动端「对话 / 驾驶舱」分段开关 */
.segmented {
  display: none;
  border: 1px solid var(--nav-line-strong);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
  background: rgba(255, 255, 255, 0.04);
}

.segmented button {
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 5px;
  color: var(--nav-text-dim);
  line-height: 1.5;
}

.segmented button[aria-pressed="true"] {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
}

/* ---------- 三栏 ---------- */

.panes {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns:
    minmax(200px, var(--w-nav))
    var(--resizer-w)
    minmax(340px, var(--w-chat))
    var(--resizer-w)
    minmax(var(--w-cockpit-min), 1fr);
  background: var(--bg);
  position: relative;
}

.pane {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 左栏 */
.pane--nav {
  background: var(--nav-surface);
  color: var(--nav-text);
  border-right: 1px solid rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.pane--nav::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 1px;
  background: linear-gradient(180deg, rgba(200, 161, 90, 0.35), rgba(200, 161, 90, 0) 55%);
  pointer-events: none;
}

/* 中栏 */
.pane--chat {
  background: var(--bg);
  border-right: 1px solid var(--line);
}

/* 右栏 */
.pane--cockpit {
  background: var(--bg);
  min-width: 0;
}

/* ---------- 拖拽条 ---------- */

.resizer {
  position: relative;
  z-index: var(--z-resizer);
  cursor: col-resize;
  touch-action: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 -3px;
  width: calc(var(--resizer-w) + 6px);
  outline-offset: -3px;
}

.resizer-grip {
  width: 2px;
  height: 26px;
  border-radius: 2px;
  background: var(--line-strong);
  transition: background var(--dur-1) var(--ease), height var(--dur-2) var(--ease);
}

.resizer:hover .resizer-grip,
.resizer:focus-visible .resizer-grip,
.resizer[data-dragging="true"] .resizer-grip {
  background: var(--gold);
  height: 44px;
}

.resizer:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -4px;
}

body[data-resizing="true"] {
  cursor: col-resize;
  user-select: none;
}

/* ---------- 左栏内部 ---------- */

.ent-card {
  flex: 0 0 auto;
  padding: 13px 13px 11px;
  border-bottom: 1px solid var(--nav-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
}

.ent-card-top {
  display: flex;
  gap: 9px;
  align-items: center;
}

.ent-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(200, 161, 90, 0.13);
  border: 1px solid rgba(200, 161, 90, 0.3);
}

.ent-id {
  min-width: 0;
}

.ent-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ent-meta {
  font-size: 10.5px;
  color: var(--nav-text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ent-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.ent-stat {
  padding: 5px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--nav-line);
}

.ent-stat b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--nav-text);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.ent-stat span {
  display: block;
  font-size: 9.5px;
  color: var(--nav-text-dim);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ent-bar {
  margin-top: 9px;
}

.ent-bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--nav-text-dim);
  margin-bottom: 4px;
}

.ent-bar-head b {
  color: var(--gold-soft);
  font-variant-numeric: tabular-nums;
}

.ent-bar-track {
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.ent-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #a67f36, var(--gold));
}

.navlist {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 8px 6px;
}

.navitem {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 9px;
  border-radius: 7px;
  color: var(--nav-text-dim);
  font-size: 12.5px;
  text-align: left;
  position: relative;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}

.navitem .icon {
  width: 15px;
  height: 15px;
  opacity: 0.85;
}

.navitem:hover {
  background: var(--nav-hover);
  color: var(--nav-text);
}

.navitem[aria-pressed="true"] {
  background: var(--nav-active);
  color: #fff;
  font-weight: 550;
}

.navitem[aria-pressed="true"]::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 7px;
  bottom: 7px;
  width: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.navitem[aria-pressed="true"] .icon {
  color: var(--gold);
  opacity: 1;
}

.nav-badge {
  margin-left: auto;
  font-size: 9.5px;
  color: var(--gold-soft);
  border: 1px solid rgba(200, 161, 90, 0.35);
  border-radius: 999px;
  padding: 0 5px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.navpanel {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 12px 14px;
  border-top: 1px solid var(--nav-line);
  font-size: 12px;
  color: var(--nav-text);
}

.nav-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-top: 1px solid var(--nav-line);
  background: rgba(0, 0, 0, 0.14);
}

.nav-help {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  color: var(--nav-text-dim);
  font-size: 12px;
  white-space: nowrap;
}

.nav-help .icon { width: 15px; height: 15px; }
.nav-help:hover, .nav-help:focus-visible { color: var(--nav-text); background: var(--nav-hover); }
.nav-help[hidden] { display: none; }

.nav-foot .iconbtn--sm {
  display: none;
  margin-left: auto;
  color: var(--nav-text-dim);
}

/* ---------- 中栏内部 ---------- */

.chat-head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px 9px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.chat-title {
  min-width: 0;
  flex: 1 1 auto;
}

.chat-title h1 {
  font-size: var(--fs-lg);
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-title p {
  font-size: var(--fs-xs);
  line-height: 1.45;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chat-model-notice {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px 10px;
  flex-wrap: wrap;
  padding: 5px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--gold-wash);
  color: var(--navy);
  font-size: var(--fs-xs);
}

.chat-model-notice p {
  flex: 1 1 180px;
}

.chat-head-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 1px;
}

.stages {
  flex: 0 0 auto;
  display: flex;
  padding: 0 8px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.stages::-webkit-scrollbar {
  display: none;
}

.stage {
  flex: 1 1 0;
  min-width: 62px;
  padding: 7px 6px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 0;
  border-bottom: 2px solid transparent;
  text-align: left;
  color: var(--text-3);
  position: relative;
  transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}

.stage:hover {
  background: var(--surface-2);
  color: var(--text-2);
}

.stage-idx {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

.stage-name {
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.stage-track {
  height: 3px;
  border-radius: 2px;
  background: var(--surface-3);
  overflow: hidden;
}

.stage-fill {
  height: 100%;
  background: var(--line-strong);
  border-radius: 2px;
}

.stage[data-status="completed"] .stage-fill {
  background: var(--success);
}

.stage[data-status="active"] {
  color: var(--text);
  border-bottom-color: var(--gold);
}

.stage[data-status="active"] .stage-idx,
.stage[data-status="active"] .stage-name {
  color: var(--navy);
  font-weight: 600;
}

.stage[data-status="active"] .stage-fill {
  background: var(--gold);
}

.stage[data-status="active"] .stage-track {
  background: var(--gold-wash);
}

.stage[data-status="needs_evidence"] .stage-fill {
  background: var(--warn);
}

.stage[data-status="ready_for_review"] .stage-fill {
  background: var(--info);
}

.stage-gap-dot {
  position: absolute;
  top: 6px;
  right: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--warn);
}

.stage-detail {
  flex: 0 0 auto;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  padding: 8px 14px;
  font-size: var(--fs-xs);
}

.chat-log {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 14px 6px;
  scroll-behavior: auto;
}

.msg-bubble .msg-receipt {
  color: inherit;
  font-size: var(--fs-xs);
  line-height: 1.5;
}

.msg-receipt {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.adviser-evidence-details {
  margin-top: 6px;
  font-size: var(--fs-xs);
}

.adviser-evidence-details summary {
  cursor: pointer;
}

.adviser-evidence {
  padding: 8px 12px 8px 28px;
  overflow-wrap: anywhere;
}

.adviser-evidence li + li {
  margin-top: 6px;
}

.adviser-evidence-source {
  color: var(--text-2);
}

.question-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 108px), 1fr));
  gap: 6px;
  margin-top: 10px;
}

.quick .question-choices {
  width: 100%;
}

.current-question-fallback {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  background: var(--surface);
  font-size: var(--fs-sm);
}

.question-choices button {
  min-height: 40px;
  padding: 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--navy);
  text-align: left;
  line-height: 1.35;
  cursor: pointer;
}

.question-choices button:hover:not(:disabled) {
  border-color: var(--gold);
  background: var(--gold-wash);
}

.question-choices button:disabled {
  opacity: 0.58;
}

.question-choices [data-action="answer-other"] {
  border-style: dashed;
}

@media (pointer: coarse) {
  .question-choices button { min-height: 44px; }
}

.chat-foot {
  flex: 0 0 auto;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 8px 12px 9px;
}

.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 8px;
}

.quick:empty {
  display: none;
}

.quick-label {
  font-size: 10.5px;
  color: var(--text-3);
  align-self: center;
  margin-right: 2px;
}

.quick-chip {
  font-size: 11.5px;
  line-height: 1.6;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text-2);
  transition: border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease),
    background var(--dur-1) var(--ease);
}

.quick-chip:hover {
  border-color: var(--gold);
  color: var(--navy);
  background: var(--gold-wash);
}

.composer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 7px 8px 6px;
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}

.composer:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-wash);
}

.composer-input {
  width: 100%;
  min-height: 24px;
  max-height: 132px;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  font-size: var(--fs-md);
  line-height: 1.55;
  padding: 1px 2px;
}

.composer-input::placeholder {
  color: var(--text-3);
}

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.composer-actions .btn {
  white-space: nowrap;
}

@media (pointer: coarse) {
  .composer-actions .btn { min-height: 44px; }
}

.composer-hint {
  font-size: 10.5px;
  color: var(--text-3);
  margin-top: 5px;
  line-height: 1.4;
}

/* ---------- 右栏内部 ---------- */

.cockpit-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.cockpit-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.cockpit-tabs::-webkit-scrollbar {
  display: none;
}

.cockpit-tabs button {
  position: relative;
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--text-2);
  white-space: nowrap;
  transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}

.cockpit-tabs button:hover {
  background: var(--surface-2);
  color: var(--text);
}

.cockpit-tabs button[aria-selected="true"] {
  color: var(--navy);
  font-weight: 600;
  background: var(--gold-wash);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.tab-count {
  display: inline-block;
  margin-left: 5px;
  font-size: 9.5px;
  font-family: var(--font-mono);
  padding: 0 4px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text-2);
  vertical-align: 1px;
}

.cockpit-tabs button[aria-selected="true"] .tab-count {
  background: rgba(200, 161, 90, 0.25);
  color: var(--navy);
}

.cockpit-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.meta-item {
  font-size: 10.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cockpit-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 14px 28px;
  background: var(--bg);
}

/* ---------- 抽屉 / 遮罩（窄屏） ---------- */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 26, 51, 0.5);
  z-index: calc(var(--z-drawer) - 1);
  border: 0;
  backdrop-filter: blur(1px);
}

/* ---------- 启动兜底 ---------- */

.boot-fallback {
  position: fixed;
  inset: 0;
  z-index: var(--z-boot);
  display: grid;
  place-items: center;
  background: rgba(11, 26, 51, 0.92);
  padding: 24px;
}

.boot-fallback[hidden] {
  display: none;
}

.boot-fallback-card {
  max-width: 520px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-3);
  border-top: 3px solid var(--gold);
}

.boot-fallback-card h2 {
  font-size: var(--fs-lg);
  margin-bottom: 10px;
}

.boot-fallback-card p {
  font-size: var(--fs-sm);
  color: var(--text-2);
  margin-bottom: 8px;
  line-height: 1.65;
}

.boot-fallback-card pre {
  background: var(--navy);
  color: var(--gold-soft);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  margin: 8px 0;
  overflow-x: auto;
}

.boot-fallback-card code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: var(--surface-3);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ==========================================================================
   响应式：<1100px 双视图切换；<760px 单列
   ========================================================================== */

@media (max-width: 1099.98px) {
  .appbar-menu {
    display: inline-flex;
  }

  .brand-text small {
    display: none;
  }

  .appbar-context .ctx-dec {
    max-width: 26vw;
  }

  .segmented {
    display: flex;
  }

  .panes {
    display: block;
    position: relative;
  }

  .resizer {
    display: none;
  }

  .pane--nav {
    position: fixed;
    top: var(--appbar-h);
    bottom: 0;
    left: 0;
    width: min(88vw, 330px);
    transform: translateX(-103%);
    transition: transform var(--dur-2) var(--ease);
    box-shadow: var(--shadow-3);
    z-index: var(--z-drawer);
  }

  .app[data-nav-open="true"] .pane--nav {
    transform: none;
  }

  .nav-help { min-height: 44px; }

  .nav-foot .iconbtn--sm {
    display: inline-flex;
  }

  .pane--chat,
  .pane--cockpit {
    height: 100%;
    border-right: 0;
  }

  .app[data-mview="chat"] .pane--cockpit {
    display: none;
  }

  .app[data-mview="cockpit"] .pane--chat {
    display: none;
  }

  .app[data-mview="chat"] .pane--chat {
    display: flex;
  }

  .app[data-mview="cockpit"] .pane--cockpit {
    display: flex;
  }
}

@media (max-width: 759.98px) {
  :root {
    --appbar-h: 50px;
  }

  .view-head {
    flex-direction: column;
    gap: 7px;
  }

  .view-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .brand-text {
    display: none;
  }

  .appbar {
    padding: 0 8px 0 6px;
    gap: 6px;
  }

  .segmented {
    flex: 0 0 auto;
  }

  .segmented button {
    white-space: nowrap;
    padding: 3px 8px;
  }

  #data-status-chip {
    display: none;
  }

  .cockpit-meta .btn--ghost {
    display: none;
  }

  .comp-counts {
    justify-content: space-between;
    gap: 4px;
  }

  .comp-counts span {
    white-space: nowrap;
  }

  .appbar-context {
    display: none;
  }

  .appbar-right {
    gap: 5px;
  }

  .badge--mock {
    font-size: 9.5px;
    padding: 1px 5px;
  }

  .chat-head {
    padding: 8px 12px;
  }

  .chat-title h1 {
    font-size: 14px;
  }

  .chat-log {
    padding: 12px 10px 4px;
  }

  .chat-foot {
    padding: 7px 10px 8px;
  }

  .cockpit-body {
    padding: 10px 10px 24px;
  }

  .cockpit-head {
    padding: 5px 8px;
  }

  .cockpit-tabs button {
    padding: 6px 8px;
    font-size: 12px;
  }

  .meta-item {
    display: none;
  }
}
