.thread-filters {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 7px;
  margin: 0 2px 12px;
}
.collaboration-panel {
  flex-shrink: 0;
  margin: 0 15px 6px;
  padding: 10px 12px;
  border: 1px solid #dfe6d5;
  border-radius: 10px;
  background: #f0f4e9;
  font-size: 12px;
}
.collaboration-panel[open] {
  max-height: 28vh;
  overflow-y: auto;
}
.collaboration-agent {
  border-top: 1px solid #dfe6d5;
  padding: 9px 0;
  overflow-wrap: anywhere;
}
.collaboration-agent small {
  display: block;
  margin-top: 5px;
}
.collaboration-agent p {
  margin: 6px 0;
  white-space: pre-wrap;
}
.thread-filters select {
  font-size: 10px;
  padding: 7px 6px;
  background: #f7f9f3;
  color: #78886d;
}
.session-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.session-tools .text-button {
  padding: 5px;
}
.session-tools .icon-button {
  width: 25px;
  height: 25px;
  font-size: 18px;
}
.session-toolbar {
  padding-top: 8px;
  padding-bottom: 8px;
  min-height: 48px;
}
.load-history {
  display: block;
  margin: 0 auto 18px;
}
.composer-area {
  position: relative;
}
.jump-bottom {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 100%;
  display: block;
  margin-bottom: 6px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #dfe7d3;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 12px #294d3514;
}
.queue-panel {
  max-width: 900px;
  margin: 0 auto 8px;
  border: 1px solid #dfe6d5;
  border-radius: 10px;
  background: #f0f4e9;
  padding: 3px 12px 5px;
  max-height: 150px;
  overflow-y: auto;
}
.handoff-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  max-width: 900px;
  margin: 0 auto 8px;
  padding: 8px 12px;
  border: 1px solid #dfe6d5;
  border-radius: 10px;
  background: #f0f4e9;
}
.handoff-banner p {
  flex: 1 1 140px;
  margin: 0;
  color: #4d6650;
  font-size: 12px;
  line-height: 1.6;
}
.handoff-banner .text-button {
  min-height: 44px;
  font-size: 12px;
  font-weight: 600;
}
.queue-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7b8c68;
  font-size: 10px;
}
.queue-heading button {
  padding: 8px 3px;
}
.queue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e1e8d7;
  font-size: 11px;
  color: #6f7f60;
}
.queue-row span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.queue-row .icon-button {
  font-size: 16px;
  width: 25px;
  height: 27px;
}
.steer-button {
  color: #72895f;
  background: #edf3e4;
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 11px;
  white-space: nowrap;
}
.send-actions {
  gap: 6px;
}
.send-actions .icon-button {
  width: 27px;
  font-size: 20px;
}
.attachment-preview {
  display: flex;
  gap: 9px;
  padding: 0 0 12px;
}
.attachment-preview > span {
  position: relative;
  display: inline-flex;
}
.attachment-preview img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid #e3e9da;
}
.attachment-preview button {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 19px;
  height: 19px;
  padding: 0;
  line-height: 19px;
  border-radius: 50%;
  background: #4d6650;
  color: #fff;
}
.message-image {
  display: block;
  margin: 12px 0 0;
  max-width: min(100%, 360px);
  max-height: 300px;
  object-fit: contain;
  border: 1px solid #dfe6d5;
  border-radius: 9px;
}
.message:not(.user) .message-text {
  white-space: normal;
}
.message-text p {
  margin: 0 0 12px;
}
.message-text p:last-child {
  margin-bottom: 0;
}
.message-text h1,
.message-text h2,
.message-text h3,
.message-text h4 {
  font-size: 1.15em;
  font-weight: 600;
  margin: 20px 0 12px;
}
.message-text h1 {
  font-size: 1.4em;
}
.message-text ul,
.message-text ol {
  padding-left: 23px;
}
.message-text blockquote {
  border-left: 3px solid #bbcda4;
  padding: 6px 15px;
  margin-left: 0;
  color: #829174;
}
.message-text a {
  color: #577d44;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.message-text code {
  font-family: "Cascadia Code", Consolas, monospace;
  background: #edf1e7;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.9em;
}
.message-text pre {
  position: relative;
  background: #edf1e8;
  border: 1px solid #dce5d1;
  border-radius: 9px;
  padding: 32px 16px 15px;
  overflow-x: auto;
  white-space: pre;
  max-width: 100%;
  line-height: 1.8;
}
.message-text pre code {
  background: transparent;
  padding: 0;
}
.copy-code {
  position: absolute;
  top: 7px;
  right: 9px;
  background: #e1e9d7;
  color: #748969;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 9px;
}
.message-text table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 12px;
}
.message-text td,
.message-text th {
  border: 1px solid #dfe6d6;
  padding: 8px 11px;
  text-align: left;
}
.thread-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
#rename-form .primary {
  margin-top: 16px;
}
.device-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #e5eadf;
  padding: 14px 0;
}
.preference-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
}
.preference-row strong {
  font-size: 12px;
  font-weight: 500;
}
.preference-row small {
  display: block;
  color: #98a18e;
  font-size: 10px;
  line-height: 1.8;
  margin-top: 7px;
}
.preference-row input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #7d9863;
}
.device-card strong {
  font-size: 12px;
  font-weight: 500;
}
.device-card small {
  display: block;
  margin-top: 6px;
  color: #98a18e;
  font-size: 9px;
}
.usage-body {
  color: #89977c;
  font-size: 12px;
  margin: 20px 0;
}
.quota-card {
  padding: 15px;
  border: 1px solid #e0e7d7;
  border-radius: 11px;
  background: #f3f6ed;
  margin-bottom: 10px;
}
.quota-card > strong {
  color: #637853;
  font-size: 12px;
  font-weight: 550;
}
.quota-window {
  margin-top: 14px;
}
.quota-window > span {
  font-size: 11px;
}
.quota-window small {
  display: block;
  font-size: 9px;
  color: #9ba68e;
  margin-top: 6px;
}
.quota-window progress {
  display: block;
  width: 100%;
  height: 6px;
  margin-top: 8px;
  border: 0;
  border-radius: 5px;
  accent-color: #8da875;
  overflow: hidden;
}
.quota-window progress::-webkit-progress-bar {
  background: #e1e8d7;
}
.quota-window progress::-webkit-progress-value {
  background: #8da875;
}
@media (max-width: 720px) {
  .topbar-actions {
    gap: 0;
  }
  .topbar-actions > .icon-button {
    font-size: 19px;
    width: 27px;
  }
  .topbar-title strong,
  .topbar-title small {
    max-width: 145px;
  }
  .session-toolbar {
    padding-left: 19px;
    padding-right: 17px;
  }
  .session-tools {
    gap: 5px;
  }
  .session-tools .text-button {
    font-size: 10px;
  }
  .composer-bottom {
    gap: 5px;
    align-items: flex-end;
  }
  .composer-bottom > span {
    max-width: 135px;
    line-height: 1.6;
    font-size: 8px;
  }
  .send-actions {
    gap: 4px;
  }
  .stop-button {
    font-size: 10px;
    padding: 8px;
    white-space: nowrap;
  }
  .steer-button {
    font-size: 10px;
    padding: 8px;
  }
  .footer-note {
    gap: 8px;
    font-size: 8px;
  }
  #profile-label {
    max-width: 43%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .queue-panel {
    max-height: 120px;
  }
  .thread-filters select {
    font-size: 12px;
  }
}
.boot-status {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f7f8f5;
  overflow-y: auto;
}
.boot-status[hidden] {
  display: none;
}
.boot-status progress {
  display: block;
  width: 100%;
  margin: 24px 0;
  accent-color: #183e35;
}
.boot-status progress[hidden] {
  display: none;
}
.collaboration-executor {
  display: grid;
  gap: 8px;
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid #dfe5d8;
  border-radius: 12px;
}
