:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  --ink: #19201e;
  --muted: #68716e;
  --subtle: #8d9692;
  --paper: #f4f6f3;
  --surface: #ffffff;
  --surface-soft: #eef1ee;
  --line: #dce1dd;
  --line-strong: #c9d0cb;
  --sidebar: #17201d;
  --sidebar-soft: #222c29;
  --sidebar-text: #f2f5f2;
  --teal: #087a73;
  --teal-soft: #dbecea;
  --coral: #c95f48;
  --amber: #c4902f;
  --green: #34845d;
  --shadow: 0 18px 50px rgb(20 32 27 / 12%);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}

button,
textarea,
select,
input {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
textarea:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgb(8 122 115 / 24%);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  width: 100%;
  height: 100dvh;
}

.sidebar {
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100dvh;
  padding: 20px 16px 16px;
  overflow: hidden;
  color: var(--sidebar-text);
  background: var(--sidebar);
  border-right: 1px solid rgb(255 255 255 / 7%);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 0 4px;
}

.brand-mark {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  color: #f5fbfa;
  background: var(--teal);
  border-radius: 7px;
  place-items: center;
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.brand-row > div:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.brand-row strong {
  overflow: hidden;
  font-size: 15px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-row span {
  color: #98a5a0;
  font-size: 12px;
  line-height: 16px;
}

.icon-button {
  display: inline-grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  place-items: center;
}

.icon-button:hover {
  color: var(--ink);
  background: var(--surface-soft);
  border-color: var(--line);
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.sidebar-close {
  display: none;
  margin-left: auto;
  color: #aab5b1;
}

.sidebar-close:hover {
  color: #fff;
  background: var(--sidebar-soft);
  border-color: rgb(255 255 255 / 8%);
}

.new-research-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin: 22px 0 20px;
  padding: 0 14px;
  gap: 9px;
  color: #f8fbf9;
  font-weight: 650;
  background: var(--teal);
  border: 1px solid #159189;
  border-radius: 7px;
}

.new-research-button:hover {
  background: #096d68;
}

.new-research-button svg {
  width: 17px;
  height: 17px;
}

.sidebar-section {
  min-height: 0;
}

.section-label {
  margin: 0 6px 9px;
  color: #84928d;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-transform: uppercase;
}

.history-section {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
}

.history-list {
  min-height: 0;
  overflow: auto;
  scrollbar-color: #46524e transparent;
  scrollbar-width: thin;
}

.history-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  width: 100%;
  min-height: 48px;
  padding: 8px 9px;
  gap: 8px;
  color: #c8d0cd;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
}

.history-row {
  position: relative;
}

.history-row .history-item {
  padding-right: 34px;
}

.history-delete {
  position: absolute;
  top: 7px;
  right: 5px;
  display: none;
  width: 28px;
  height: 28px;
  padding: 0;
  color: #8f9b97;
  background: transparent;
  border: 0;
  border-radius: 5px;
  place-items: center;
}

.history-row:hover .history-delete,
.history-delete:focus-visible {
  display: grid;
}

.history-delete:hover {
  color: #f0a28f;
  background: #382923;
}

.history-delete svg {
  width: 14px;
  height: 14px;
}

.history-item:hover,
.history-item.active {
  color: #fff;
  background: var(--sidebar-soft);
  border-color: rgb(255 255 255 / 7%);
}

.history-item svg {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: #82918c;
}

.history-copy {
  min-width: 0;
}

.history-copy strong,
.history-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-copy strong {
  font-size: 12px;
  font-weight: 560;
  line-height: 17px;
}

.history-copy span {
  margin-top: 2px;
  color: #74837e;
  font-size: 10px;
  line-height: 14px;
}

.empty-history {
  padding: 10px 8px;
  color: #66746f;
  font-size: 12px;
}

.settings-section {
  flex: 0 0 auto;
  padding-top: 15px;
  border-top: 1px solid rgb(255 255 255 / 8%);
}

.setting-block {
  display: block;
  margin-bottom: 14px;
}

.setting-name {
  display: block;
  margin: 0 5px 7px;
  color: #a0aca8;
  font-size: 11px;
  line-height: 16px;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 3px;
  background: #101714;
  border: 1px solid #303a36;
  border-radius: 7px;
}

.segmented-control button {
  min-width: 0;
  min-height: 29px;
  padding: 0 5px;
  overflow: hidden;
  color: #889590;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: transparent;
  border: 0;
  border-radius: 5px;
}

.segmented-control button[aria-pressed="true"] {
  color: #fff;
  background: #33413c;
}

.select-wrap {
  position: relative;
  display: block;
}

.select-wrap select {
  width: 100%;
  height: 36px;
  padding: 0 32px 0 10px;
  color: #d9dfdc;
  appearance: none;
  background: #101714;
  border: 1px solid #303a36;
  border-radius: 6px;
}

.select-wrap svg {
  position: absolute;
  top: 10px;
  right: 9px;
  width: 16px;
  height: 16px;
  color: #7d8a85;
  pointer-events: none;
}

.service-status {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  align-items: center;
  min-height: 48px;
  margin-top: 2px;
  padding: 8px 9px;
  gap: 10px;
  background: #111815;
  border: 1px solid #2a3531;
  border-radius: 7px;
}

.sidebar-account {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  margin: 2px 0 8px;
  padding: 6px 8px;
  gap: 9px;
  color: #dce4e0;
  text-align: left;
  background: transparent;
  border: 1px solid #303b37;
  border-radius: 7px;
}

.sidebar-account:hover {
  background: var(--sidebar-soft);
}

.account-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  color: #d7f2ed;
  background: #295049;
  border-radius: 6px;
  place-items: center;
}

.account-avatar svg,
.sidebar-account > svg {
  width: 15px;
  height: 15px;
}

.sidebar-account > span:nth-child(2) {
  min-width: 0;
}

.sidebar-account strong,
.sidebar-account small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-account strong {
  font-size: 11px;
  line-height: 16px;
}

.sidebar-account small {
  color: #81908a;
  font-size: 9px;
  line-height: 14px;
}

.sidebar-account > svg {
  color: #74827d;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--amber);
  border-radius: 50%;
}

.status-dot.online {
  background: #50a77a;
  box-shadow: 0 0 0 3px rgb(80 167 122 / 14%);
}

.status-dot.offline {
  background: #d7745d;
}

.status-dot.checking {
  animation: pulse 1.4s ease-in-out infinite;
}

.service-status div {
  min-width: 0;
}

.service-status strong,
.service-status span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-status strong {
  font-size: 11px;
  line-height: 16px;
}

.service-status span {
  color: #74827d;
  font-size: 10px;
  line-height: 14px;
}

.sidebar-scrim {
  display: none;
}

.workspace {
  display: grid;
  min-width: 0;
  height: 100dvh;
  grid-template-rows: 72px minmax(0, 1fr) auto;
  background: var(--paper);
}

.topbar {
  z-index: 10;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 28px;
  background: rgb(255 255 255 / 94%);
  border-bottom: 1px solid var(--line);
}

.mobile-menu {
  display: none;
  margin-right: 8px;
}

.topbar-title {
  min-width: 0;
}

.topbar-title span {
  display: block;
  color: var(--teal);
  font-size: 10px;
  font-weight: 760;
  line-height: 14px;
}

.topbar-title h1 {
  margin: 1px 0 0;
  overflow: hidden;
  font-size: 19px;
  line-height: 25px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  min-width: 0;
  margin-left: auto;
  gap: 8px;
}

.capability-pill {
  display: flex;
  align-items: center;
  max-width: 220px;
  height: 34px;
  padding: 0 10px;
  gap: 7px;
  color: #52605b;
  font-size: 11px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 17px;
}

.capability-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capability-pill svg {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  color: var(--teal);
}

.conversation {
  min-width: 0;
  padding: 30px clamp(22px, 5%, 68px) 24px;
  overflow: auto;
  scroll-behavior: smooth;
  scrollbar-color: #bdc5c0 transparent;
  scrollbar-width: thin;
}

.empty-state {
  display: flex;
  width: min(740px, 100%);
  min-height: 100%;
  margin: 0 auto;
  flex-direction: column;
  justify-content: center;
  padding: 20px 0 62px;
}

.empty-symbol {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  color: var(--teal);
  background: var(--teal-soft);
  border: 1px solid #c3dfdc;
  border-radius: 8px;
  place-items: center;
}

.empty-symbol svg {
  width: 23px;
  height: 23px;
}

.empty-state h2 {
  margin: 0;
  font-size: 27px;
  line-height: 35px;
}

.suggestion-list {
  display: grid;
  margin-top: 22px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.suggestion-button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 18px;
  align-items: center;
  min-height: 56px;
  padding: 8px 13px;
  gap: 10px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.suggestion-button:last-child {
  border-bottom: 0;
}

.suggestion-button:hover {
  background: #f8faf8;
}

.suggestion-icon {
  display: grid;
  width: 30px;
  height: 30px;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 6px;
  place-items: center;
}

.suggestion-icon.coral {
  color: var(--coral);
  background: #f6e4df;
}

.suggestion-icon.amber {
  color: #9a6c15;
  background: #f3e9cf;
}

.suggestion-icon svg,
.suggestion-button > svg {
  width: 16px;
  height: 16px;
}

.suggestion-button > span:nth-child(2) {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 570;
  line-height: 19px;
}

.suggestion-button > svg {
  color: #99a39f;
}

.conversation-thread {
  width: min(920px, 100%);
  margin: 0 auto;
}

.message {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 13px;
}

.message + .message {
  margin-top: 26px;
}

.message-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  color: #65716d;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  place-items: center;
}

.message-avatar.agent {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.message-avatar svg {
  width: 17px;
  height: 17px;
}

.message-main {
  min-width: 0;
  padding-top: 4px;
}

.message-role {
  display: flex;
  align-items: center;
  min-height: 22px;
  margin-bottom: 7px;
  gap: 8px;
}

.message-role strong {
  font-size: 12px;
  line-height: 18px;
}

.message-role span {
  color: var(--subtle);
  font-size: 10px;
}

.user-question {
  margin: 0;
  color: #28302d;
  font-size: 15px;
  font-weight: 560;
  line-height: 24px;
  overflow-wrap: anywhere;
}

.research-progress {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.progress-heading {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 10px 14px;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.progress-heading .spinner {
  width: 18px;
  height: 18px;
  color: var(--teal);
  animation: spin 1s linear infinite;
}

.progress-heading div {
  min-width: 0;
}

.progress-heading strong,
.progress-heading span {
  display: block;
}

.progress-heading strong {
  font-size: 12px;
  line-height: 18px;
}

.progress-heading span {
  margin-top: 1px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stop-button {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  margin-left: auto;
  padding: 0 9px;
  gap: 6px;
  color: #8a4c3e;
  font-size: 11px;
  background: #fbf2ef;
  border: 1px solid #efd6cf;
  border-radius: 6px;
}

.stop-button svg {
  width: 13px;
  height: 13px;
}

.progress-native {
  display: block;
  width: 100%;
  height: 4px;
  overflow: hidden;
  appearance: none;
  background: #e9eeea;
  border: 0;
}

.progress-native::-webkit-progress-bar {
  background: #e9eeea;
}

.progress-native::-webkit-progress-value {
  background: var(--teal);
  transition: width 300ms ease;
}

.progress-native::-moz-progress-bar {
  background: var(--teal);
}

.stage-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 14px;
  gap: 6px;
}

.stage-item {
  position: relative;
  min-width: 0;
  padding-top: 18px;
  color: #9aa39f;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
}

.stage-item::before {
  position: absolute;
  top: 4px;
  left: 50%;
  z-index: 2;
  width: 8px;
  height: 8px;
  content: "";
  background: #d2d8d4;
  border: 2px solid var(--surface);
  border-radius: 50%;
  transform: translateX(-50%);
}

.stage-item::after {
  position: absolute;
  top: 8px;
  right: 50%;
  width: 100%;
  height: 1px;
  content: "";
  background: #dde2de;
}

.stage-item:first-child::after {
  display: none;
}

.stage-item.done,
.stage-item.active {
  color: #42615a;
  font-weight: 650;
}

.stage-item.done::before,
.stage-item.active::before {
  background: var(--teal);
}

.stage-item.done::after,
.stage-item.active::after {
  background: #71b1ab;
}

.stage-item.active::before {
  box-shadow: 0 0 0 4px rgb(8 122 115 / 13%);
}

.research-role {
  justify-content: space-between;
}

.research-role > div {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.research-role .stop-button {
  flex: 0 0 auto;
}

.spinner {
  animation: spin 1s linear infinite;
}

.route-pending {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 10px 13px;
  gap: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.route-pending > svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--teal);
}

.route-pending > span {
  min-width: 0;
}

.route-pending strong,
.route-pending small {
  display: block;
}

.route-pending strong {
  font-size: 12px;
  line-height: 18px;
}

.route-pending small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
  line-height: 15px;
}

.research-console {
  width: 100%;
  margin-top: 10px;
  overflow: hidden;
  color: #dbe3df;
  background: #111714;
  border: 1px solid #2d3733;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgb(18 27 23 / 10%);
}

.research-console.complete {
  margin-top: 14px;
}

.research-console.live {
  border-color: #3a5d55;
}

.research-console.failed {
  border-color: #75493f;
}

.console-summary {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto 18px;
  align-items: center;
  min-height: 58px;
  padding: 9px 13px;
  gap: 10px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.console-summary::-webkit-details-marker,
.console-section > summary::-webkit-details-marker {
  display: none;
}

.console-summary:hover {
  background: #171f1b;
}

.console-symbol {
  display: grid;
  width: 32px;
  height: 32px;
  color: #8ed1c7;
  background: #1d2b27;
  border: 1px solid #31443e;
  border-radius: 6px;
  place-items: center;
}

.console-symbol svg {
  width: 16px;
  height: 16px;
}

.console-summary-copy {
  min-width: 0;
}

.console-summary-copy strong,
.console-summary-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-summary-copy strong {
  color: #eff5f1;
  font-size: 12px;
  line-height: 18px;
}

.console-summary-copy span {
  margin-top: 1px;
  color: #84938d;
  font-size: 10px;
  line-height: 15px;
}

.console-progress-value {
  min-width: 34px;
  color: #82b9b0;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  text-align: right;
}

.console-chevron {
  width: 16px;
  height: 16px;
  color: #75827d;
  transition: transform 160ms ease;
}

.research-console[open] > .console-summary .console-chevron,
.console-section[open] > summary .console-chevron {
  transform: rotate(180deg);
}

.console-body {
  border-top: 1px solid #29332f;
}

.console-progress-bar {
  display: block;
  width: 100%;
  height: 3px;
  overflow: hidden;
  appearance: none;
  background: #26312d;
  border: 0;
}

.console-progress-bar::-webkit-progress-bar {
  background: #26312d;
}

.console-progress-bar::-webkit-progress-value {
  background: #3fa499;
  transition: width 300ms ease;
}

.console-progress-bar::-moz-progress-bar {
  background: #3fa499;
}

.console-body .stage-list {
  padding: 13px 14px 11px;
  border-bottom: 1px solid #29332f;
}

.console-body .stage-item {
  color: #63716c;
}

.console-body .stage-item::before {
  background: #3b4742;
  border-color: #111714;
}

.console-body .stage-item::after {
  background: #303b37;
}

.console-body .stage-item.done,
.console-body .stage-item.active {
  color: #9bcac2;
}

.console-body .stage-item.done::before,
.console-body .stage-item.active::before,
.console-body .stage-item.done::after,
.console-body .stage-item.active::after {
  background: #3fa499;
}

.console-log {
  padding: 7px 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.console-event {
  display: grid;
  grid-template-columns: 62px 18px minmax(0, 1fr);
  align-items: start;
  min-height: 46px;
  padding: 7px 14px;
  gap: 9px;
}

.console-event time {
  padding-top: 2px;
  color: #63716c;
  font-size: 9px;
  line-height: 16px;
}

.console-event-icon {
  display: grid;
  width: 18px;
  height: 18px;
  color: #67b8ab;
  place-items: center;
}

.console-event-icon svg {
  width: 13px;
  height: 13px;
}

.console-event.warning .console-event-icon {
  color: #d6a951;
}

.console-event.failed .console-event-icon {
  color: #dc806b;
}

.console-event-copy {
  min-width: 0;
}

.console-event-copy strong,
.console-event-copy span {
  display: block;
  overflow-wrap: anywhere;
}

.console-event-copy strong {
  color: #d8e0dc;
  font-family: ui-sans-serif, system-ui, "Noto Sans SC", sans-serif;
  font-size: 11px;
  line-height: 17px;
}

.console-event-copy span {
  margin-top: 2px;
  color: #7f8d87;
  font-size: 9px;
  line-height: 15px;
}

.console-sections {
  border-top: 1px solid #29332f;
}

.console-section {
  border-bottom: 1px solid #29332f;
}

.console-section:last-child {
  border-bottom: 0;
}

.console-section > summary {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto 16px;
  align-items: center;
  min-height: 54px;
  padding: 8px 14px;
  gap: 9px;
  list-style: none;
  cursor: pointer;
}

.console-section > summary:hover {
  background: #171f1b;
}

.console-section > summary > svg:first-child {
  width: 15px;
  height: 15px;
  color: #70bcb0;
}

.console-section > summary > span:nth-child(2) {
  min-width: 0;
}

.console-section > summary strong,
.console-section > summary small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-section > summary strong {
  color: #d9e1dd;
  font-size: 11px;
  line-height: 17px;
}

.console-section > summary small {
  margin-top: 1px;
  color: #718079;
  font-size: 9px;
  line-height: 14px;
}

.console-count {
  display: grid;
  min-width: 24px;
  height: 20px;
  padding: 0 5px;
  color: #91a29b;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  background: #202a26;
  border: 1px solid #34403b;
  border-radius: 4px;
  place-items: center;
}

.console-query-list,
.console-source-list,
.console-warning-list {
  border-top: 1px solid #29332f;
}

.console-query-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 76px;
  align-items: start;
  min-height: 42px;
  padding: 9px 14px;
  gap: 8px;
  border-bottom: 1px solid #242d29;
}

.console-query-row:last-child {
  border-bottom: 0;
}

.console-query-row > span,
.console-query-row small {
  color: #64716c;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  line-height: 16px;
}

.console-query-row code {
  min-width: 0;
  color: #c7d2cd;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 16px;
  overflow-wrap: anywhere;
}

.console-query-row small {
  text-align: right;
}

.console-source-list .source-button {
  min-height: 58px;
  color: #d9e1dd;
  background: transparent;
  border-color: #242d29;
}

.console-source-list .source-button:hover {
  background: #19221e;
}

.console-source-list .source-id {
  color: #9bd4cb;
  background: #1d302b;
  border-color: #315149;
}

.console-source-list .source-copy span {
  color: #708079;
}

.console-source-list .source-button > svg {
  color: #72817a;
}

.console-source-list .source-preview {
  cursor: default;
}

.console-warning-list {
  padding: 8px 14px;
}

.console-warning-list div {
  padding: 5px 0;
  color: #d4a994;
  font-size: 10px;
  line-height: 17px;
  overflow-wrap: anywhere;
}

.warning-section > summary > svg:first-child {
  color: #d6a951;
}

.answer-section {
  padding: 4px 0 1px 18px;
  border-left: 3px solid var(--teal);
}

.answer-label {
  display: flex;
  align-items: center;
  margin-bottom: 11px;
  gap: 6px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 760;
  line-height: 16px;
}

.answer-label svg {
  width: 14px;
  height: 14px;
}

.direct-route-meta {
  display: flex;
  align-items: center;
  min-height: 34px;
  margin-top: 12px;
  padding-top: 9px;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  border-top: 1px solid var(--line);
}

.direct-route-meta svg {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  color: var(--amber);
}

.direct-route-meta small {
  min-width: 0;
  margin-left: 3px;
  overflow: hidden;
  color: var(--subtle);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.answer-content {
  color: #29312e;
  font-size: 14px;
  line-height: 24px;
}

.answer-content > :first-child {
  margin-top: 0;
}

.answer-content h2,
.answer-content h3 {
  margin: 22px 0 8px;
  color: var(--ink);
  font-size: 16px;
  line-height: 24px;
}

.answer-content p {
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

.answer-content ul,
.answer-content ol {
  margin: 5px 0 14px;
  padding-left: 22px;
}

.answer-content li {
  margin: 4px 0;
}

.answer-content hr {
  height: 1px;
  margin: 18px 0;
  background: var(--line);
  border: 0;
}

.answer-content blockquote {
  margin: 10px 0 15px;
  padding: 9px 12px;
  color: #40514b;
  font-weight: 620;
  background: var(--surface-soft);
  border-left: 3px solid #8abcb7;
}

.answer-content code {
  padding: 2px 5px;
  color: #80503f;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  background: #f4ece8;
  border-radius: 4px;
}

.answer-table-wrap {
  max-width: 100%;
  margin: 12px 0 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.answer-content table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 19px;
}

.answer-content th,
.answer-content td {
  padding: 9px 11px;
  text-align: left;
  vertical-align: top;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.answer-content th:last-child,
.answer-content td:last-child {
  border-right: 0;
}

.answer-content tbody tr:last-child td {
  border-bottom: 0;
}

.answer-content th {
  color: #35413d;
  font-weight: 700;
  background: var(--surface-soft);
}

.citation-button {
  display: inline-flex;
  align-items: center;
  min-width: 27px;
  height: 19px;
  margin: 0 2px;
  padding: 0 5px;
  color: #086d67;
  font-size: 10px;
  font-weight: 750;
  vertical-align: 1px;
  background: var(--teal-soft);
  border: 1px solid #bedbd7;
  border-radius: 4px;
}

.research-facts {
  display: flex;
  flex-wrap: wrap;
  margin: 18px 0 14px;
  padding: 10px 0;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.research-fact {
  display: flex;
  align-items: center;
  min-height: 24px;
  padding: 0 14px;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  border-right: 1px solid var(--line);
}

.research-fact:first-child {
  padding-left: 0;
}

.research-fact:last-child {
  border-right: 0;
}

.research-fact svg {
  width: 14px;
  height: 14px;
  color: var(--teal);
}

.sources-heading {
  display: flex;
  align-items: center;
  margin: 20px 0 9px;
  gap: 8px;
}

.sources-heading h3 {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
}

.source-count {
  display: inline-grid;
  min-width: 22px;
  height: 20px;
  padding: 0 5px;
  color: #52605b;
  font-size: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  place-items: center;
}

.source-list {
  display: grid;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.source-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  min-height: 66px;
  padding: 10px 13px;
  gap: 10px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.source-button:last-child {
  border-bottom: 0;
}

.source-button:hover {
  background: #f8faf8;
}

.source-id {
  display: grid;
  width: 34px;
  height: 26px;
  color: #0a6d68;
  font-size: 10px;
  font-weight: 760;
  background: var(--teal-soft);
  border: 1px solid #c1deda;
  border-radius: 5px;
  place-items: center;
}

.source-copy {
  min-width: 0;
}

.source-copy strong,
.source-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-copy strong {
  font-size: 12px;
  line-height: 17px;
}

.source-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 14px;
}

.source-button > svg {
  width: 16px;
  height: 16px;
  margin-top: 5px;
  color: #9aa39f;
}

.query-details {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
}

.query-details summary {
  width: fit-content;
  padding: 3px 0;
  color: #4f5c57;
  cursor: pointer;
}

.query-list {
  display: flex;
  flex-wrap: wrap;
  margin-top: 8px;
  gap: 6px;
}

.query-chip {
  max-width: 100%;
  padding: 5px 7px;
  overflow: hidden;
  color: #5f6b67;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.warning-list,
.error-state {
  margin-top: 14px;
  padding: 10px 12px;
  color: #805143;
  font-size: 11px;
  line-height: 18px;
  background: #fbf1ee;
  border: 1px solid #efd5cd;
  border-radius: 6px;
}

.composer-wrap {
  z-index: 8;
  padding: 10px clamp(22px, 5%, 68px) 20px;
  background: var(--paper);
}

.composer {
  width: min(920px, 100%);
  margin: 0 auto;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgb(26 38 33 / 8%);
}

.composer:focus-within {
  border-color: #70aaa5;
  box-shadow: 0 0 0 3px rgb(8 122 115 / 9%);
}

.composer textarea {
  display: block;
  width: 100%;
  height: 54px;
  max-height: 180px;
  padding: 15px 16px 7px;
  overflow-y: auto;
  color: var(--ink);
  line-height: 22px;
  resize: none;
  background: transparent;
  border: 0;
  outline: 0;
}

.composer textarea::placeholder {
  color: #9ba4a0;
}

.composer-footer {
  display: flex;
  align-items: center;
  min-height: 43px;
  padding: 4px 7px 7px 12px;
}

.composer-mode {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  color: #68736f;
  font-size: 10px;
}

.composer-mode svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  color: var(--teal);
}

.send-button {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin-left: auto;
  padding: 0;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 7px;
  place-items: center;
}

.send-button:hover {
  background: var(--teal);
}

.send-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.send-button svg {
  width: 17px;
  height: 17px;
}

.evidence-drawer {
  display: none;
  min-width: 0;
  height: 100dvh;
  overflow: hidden;
  background: var(--surface);
  border-left: 1px solid var(--line);
}

.app-shell.evidence-open {
  grid-template-columns: 278px minmax(0, 1fr) minmax(340px, 400px);
}

.app-shell.evidence-open .evidence-drawer {
  display: grid;
  grid-template-rows: 65px minmax(0, 1fr);
}

.evidence-header {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 14px 0 18px;
  border-bottom: 1px solid var(--line);
}

.evidence-header > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.evidence-header span {
  color: var(--muted);
  font-size: 10px;
  line-height: 14px;
}

.evidence-header strong {
  color: var(--teal);
  font-size: 13px;
  line-height: 18px;
}

.evidence-header .icon-button {
  margin-left: auto;
}

.evidence-body {
  min-width: 0;
  padding: 20px 20px 28px;
  overflow: auto;
  scrollbar-color: #bdc5c0 transparent;
  scrollbar-width: thin;
}

.evidence-body h2 {
  margin: 0 0 10px;
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 25px;
}

.evidence-link {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  gap: 6px;
  color: var(--teal);
  font-size: 11px;
  text-decoration: none;
}

.evidence-link:hover {
  text-decoration: underline;
}

.evidence-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evidence-link svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
}

.evidence-meta {
  display: grid;
  grid-template-columns: 1fr;
  margin: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.evidence-meta > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}

.evidence-meta > div:last-child {
  border-bottom: 0;
}

.evidence-meta span {
  color: var(--muted);
  font-size: 10px;
}

.evidence-meta strong {
  min-width: 0;
  overflow: hidden;
  color: #44514c;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evidence-content {
  color: #4a5551;
  font-family: ui-sans-serif, system-ui, "Noto Sans SC", sans-serif;
  font-size: 12px;
  line-height: 20px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: min(360px, calc(100vw - 40px));
  padding: 11px 14px;
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  background: #27322e;
  border: 1px solid #3d4a45;
  border-radius: 7px;
  box-shadow: var(--shadow);
  animation: toast-in 180ms ease-out;
}

.auth-screen {
  display: grid;
  width: 100%;
  min-height: 100dvh;
  padding: 24px;
  background:
    linear-gradient(90deg, #17201d 0, #17201d 37%, transparent 37%),
    var(--paper);
  place-items: center;
}

.auth-panel {
  width: min(430px, 100%);
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgb(18 29 24 / 18%);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.auth-brand > div:last-child {
  min-width: 0;
}

.auth-brand strong,
.auth-brand span {
  display: block;
}

.auth-brand strong {
  font-size: 15px;
  line-height: 20px;
}

.auth-brand span {
  color: var(--muted);
  font-size: 10px;
  line-height: 15px;
}

.auth-heading {
  margin: 40px 0 24px;
}

.auth-heading > span,
.dialog-header > div > span {
  color: var(--teal);
  font-size: 10px;
  font-weight: 760;
  line-height: 16px;
  text-transform: uppercase;
}

.auth-heading h1 {
  margin: 6px 0 8px;
  font-size: 25px;
  line-height: 34px;
}

.auth-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 19px;
}

.auth-form,
.stack-form {
  display: grid;
  gap: 14px;
}

.auth-form label,
.stack-form label {
  display: grid;
  gap: 6px;
}

.auth-form label span,
.stack-form label span {
  color: #4d5854;
  font-size: 11px;
  font-weight: 650;
  line-height: 17px;
}

.auth-form input,
.stack-form input,
.create-user-form input,
.create-user-form select {
  width: 100%;
  height: 42px;
  padding: 0 11px;
  color: var(--ink);
  background: #fafbf9;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.form-error {
  min-height: 18px;
  color: #aa4f3c;
  font-size: 11px;
  line-height: 18px;
}

.primary-button,
.secondary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  gap: 8px;
  font-size: 12px;
  font-weight: 680;
  border-radius: 6px;
}

.primary-button {
  color: #fff;
  background: var(--teal);
  border: 1px solid #0b8b82;
}

.primary-button:hover {
  background: #086d67;
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.secondary-button {
  color: #2b4640;
  background: #f4f7f5;
  border: 1px solid var(--line-strong);
}

.secondary-button:hover {
  background: #e9efec;
}

.primary-button.compact,
.secondary-button.compact {
  min-height: 36px;
  padding: 0 11px;
}

.primary-button svg,
.secondary-button svg,
.danger-button svg {
  width: 15px;
  height: 15px;
}

.auth-status {
  display: flex;
  align-items: center;
  min-height: 18px;
  margin-top: 22px;
  gap: 8px;
  color: var(--subtle);
  font-size: 10px;
}

.workspace-dialog {
  width: min(720px, calc(100vw - 28px));
  max-width: none;
  max-height: min(760px, calc(100dvh - 28px));
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgb(14 25 20 / 24%);
}

.workspace-dialog::backdrop {
  background: rgb(14 22 18 / 48%);
  backdrop-filter: blur(2px);
}

.dialog-shell {
  display: grid;
  max-height: inherit;
  grid-template-rows: auto minmax(0, 1fr);
}

.dialog-header {
  display: flex;
  align-items: center;
  min-height: 70px;
  padding: 12px 18px 12px 22px;
  border-bottom: 1px solid var(--line);
}

.dialog-header > div {
  min-width: 0;
}

.dialog-header h2 {
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 25px;
}

.dialog-header .icon-button {
  margin-left: auto;
}

.dialog-body {
  min-height: 0;
  padding: 20px 22px 24px;
  overflow: auto;
}

.upload-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 62px;
  padding: 10px;
  gap: 10px;
  background: #f7f9f7;
  border: 1px dashed #b8c4bf;
  border-radius: 7px;
}

.upload-box > span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storage-summary {
  min-height: 36px;
  padding: 12px 2px 8px;
  color: var(--muted);
  font-size: 10px;
}

.file-list,
.user-list {
  border-top: 1px solid var(--line);
}

.file-row,
.user-row {
  display: grid;
  align-items: center;
  min-height: 58px;
  padding: 8px 4px;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.file-row {
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
}

.file-icon {
  display: grid;
  width: 32px;
  height: 32px;
  color: #39655d;
  background: var(--teal-soft);
  border-radius: 6px;
  place-items: center;
}

.file-icon svg {
  width: 15px;
  height: 15px;
}

.file-copy,
.user-copy {
  min-width: 0;
}

.file-copy strong,
.file-copy span,
.user-copy strong,
.user-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-copy strong,
.user-copy strong {
  font-size: 11px;
  line-height: 17px;
}

.file-copy span,
.user-copy span {
  color: var(--subtle);
  font-size: 9px;
  line-height: 14px;
}

.file-download {
  display: inline-grid;
  width: 34px;
  height: 34px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  place-items: center;
}

.file-download:hover {
  color: var(--teal);
  background: var(--surface-soft);
}

.file-download svg {
  width: 16px;
  height: 16px;
}

.row-delete {
  display: inline-grid;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #9a5f52;
  background: transparent;
  border: 0;
  border-radius: 6px;
  place-items: center;
}

.row-delete:hover {
  color: #a73d27;
  background: #fbefec;
}

.row-delete svg {
  width: 15px;
  height: 15px;
}

.dialog-empty {
  padding: 28px 4px;
  color: var(--subtle);
  font-size: 11px;
  text-align: center;
}

.account-dialog-body {
  display: grid;
  gap: 24px;
}

.account-section {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.account-section-heading {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  margin-bottom: 16px;
  gap: 10px;
}

.account-section-heading > svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--teal);
}

.account-section-heading h3,
.account-section-heading p {
  margin: 0;
}

.account-section-heading h3 {
  font-size: 13px;
  line-height: 20px;
}

.account-section-heading p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 16px;
}

.stack-form {
  max-width: 390px;
  margin-left: 40px;
}

.stack-form .secondary-button {
  width: fit-content;
}

.create-user-form {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(180px, 1.4fr) 110px auto;
  margin-bottom: 14px;
  gap: 8px;
}

.create-user-form input,
.create-user-form select {
  height: 36px;
  min-width: 0;
  font-size: 11px;
}

.user-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.role-badge {
  min-width: 54px;
  padding: 4px 7px;
  color: #366158;
  font-size: 9px;
  text-align: center;
  background: var(--teal-soft);
  border-radius: 4px;
}

.role-badge.admin {
  color: #765c20;
  background: #f3ead5;
}

.danger-button {
  width: fit-content;
  color: #9f402d;
  background: #fff;
  border: 1px solid #e7c8c0;
}

.danger-button:hover {
  background: #fbefec;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 1240px) {
  .app-shell.evidence-open {
    grid-template-columns: 278px minmax(0, 1fr);
  }

  .app-shell.evidence-open .evidence-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 40;
    width: min(410px, calc(100vw - 278px));
    box-shadow: var(--shadow);
  }
}

@media (max-width: 800px) {
  .auth-screen {
    padding: 14px;
    background: var(--paper);
  }

  .auth-panel {
    padding: 26px 22px;
  }

  .workspace-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }

  .dialog-header {
    padding: 10px 12px 10px 16px;
  }

  .dialog-body {
    padding: 16px;
  }

  .create-user-form {
    grid-template-columns: 1fr 1fr;
  }

  .app-shell,
  .app-shell.evidence-open {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 60;
    width: min(292px, calc(100vw - 44px));
    transform: translateX(-102%);
    transition: transform 180ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close,
  .mobile-menu {
    display: inline-grid;
  }

  .sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: block;
    visibility: hidden;
    background: rgb(14 21 18 / 42%);
    opacity: 0;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  .sidebar-scrim.open {
    visibility: visible;
    opacity: 1;
  }

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

  .topbar {
    padding: 0 12px;
  }

  .topbar-title h1 {
    font-size: 17px;
  }

  .capability-pill {
    max-width: 130px;
  }

  .conversation {
    padding: 22px 14px 18px;
  }

  .composer-wrap {
    padding: 8px 10px 12px;
  }

  .empty-state {
    justify-content: flex-start;
    padding-top: 10vh;
  }

  .empty-state h2 {
    font-size: 23px;
    line-height: 30px;
  }

  .message {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
  }

  .message-avatar {
    width: 30px;
    height: 30px;
  }

  .stage-list {
    grid-template-columns: repeat(5, minmax(48px, 1fr));
    overflow-x: auto;
  }

  .console-summary {
    grid-template-columns: 30px minmax(0, 1fr) auto 16px;
    padding: 8px 10px;
    gap: 8px;
  }

  .console-symbol {
    width: 30px;
    height: 30px;
  }

  .console-event {
    grid-template-columns: 50px 16px minmax(0, 1fr);
    padding: 7px 10px;
    gap: 7px;
  }

  .console-section > summary {
    padding: 8px 10px;
  }

  .console-query-row {
    grid-template-columns: 24px minmax(0, 1fr) 68px;
    padding: 8px 10px;
  }

  .answer-section {
    padding-left: 13px;
  }

  .research-fact {
    padding: 0 8px;
  }

  .app-shell.evidence-open .evidence-drawer {
    left: 0;
    width: 100vw;
  }

  .evidence-body {
    padding: 18px 16px 28px;
  }
}

@media (max-width: 460px) {
  .auth-panel {
    padding: 22px 18px;
  }

  .auth-heading {
    margin-top: 32px;
  }

  .upload-box {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .upload-box > span {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .stack-form {
    margin-left: 0;
  }

  .create-user-form {
    grid-template-columns: 1fr;
  }

  .capability-pill span {
    display: none;
  }

  .capability-pill {
    width: 34px;
    padding: 0;
    justify-content: center;
  }

  .topbar-actions {
    gap: 2px;
  }

  .suggestion-button {
    grid-template-columns: 28px minmax(0, 1fr) 16px;
    padding: 8px 10px;
  }

  .progress-heading {
    align-items: flex-start;
  }

  .stop-button span {
    display: none;
  }

  .stop-button {
    flex: 0 0 31px;
    width: 31px;
    padding: 0;
    justify-content: center;
  }

  .console-progress-value {
    display: none;
  }

  .console-summary {
    grid-template-columns: 30px minmax(0, 1fr) 16px;
  }

  .console-event {
    grid-template-columns: 16px minmax(0, 1fr);
  }

  .console-event time {
    display: none;
  }

  .console-query-row {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .console-query-row small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
