/* Light Bosi application chrome lives only inside the dark desktop reveal. */
.bw-window {
  --bw-ink: #19191d;
  --bw-muted: #525360;
  --bw-line: #dddde2;
  --bw-rail: #f9f9fb;
  --bw-select: #e4f7e3;
  color-scheme: light;
  container-type: inline-size;
  display: grid;
  grid-template-columns: clamp(116px, 26%, 184px) minmax(0, 1fr);
  height: 100%;
  background: #fff;
  color: var(--bw-ink);
  border: 1px solid var(--bw-line);
  border-radius: 9px;
  overflow: clip;
  font: 400 14px/1.45 var(--sans);
}
.bw-rail,
.bw-chat {
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.bw-rail {
  background: var(--bw-rail);
  border-right: 1px solid var(--bw-line);
  padding: 8px 4px 4px;
}
.bw-traffic {
  display: flex;
  gap: 4px;
  align-items: center;
  min-height: 16px;
  padding-left: 6px;
}
.bw-traffic i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ec5551;
}
.bw-traffic i:nth-child(2) {
  background: #f7bc42;
}
.bw-traffic i:nth-child(3) {
  background: #51ba59;
}
.bw-org,
.bw-list-label,
.bw-account {
  padding: 4px 6px;
}
.bw-org {
  font-size: 12px;
  color: var(--bw-muted);
}
.bw-org strong {
  color: var(--bw-ink);
}
.bw-list-label {
  font-size: 11px;
  color: var(--bw-muted);
  margin: 0;
}
.bw-agents {
  min-height: 0;
  flex: 1;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #cccdd2 transparent;
}
.bw-agent {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--bw-ink);
  text-align: left;
  border-radius: 7px;
  padding: 4px;
  min-height: 38px;
  cursor: pointer;
}
.bw-agent[aria-pressed='true'] {
  background: var(--bw-select);
}
.bw-agent img,
.bw-profile img {
  display: block;
  aspect-ratio: 1;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.bw-agent img {
  width: 26px;
  flex: none;
  border-radius: 50%;
}
.bw-agent span {
  display: grid;
  min-width: 0;
}
.bw-agent b,
.bw-agent small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bw-agent b {
  font: 600 12px/1.5 var(--sans);
}
.bw-agent small {
  color: var(--bw-muted);
  font-size: 10px;
}
.bw-account {
  display: flex;
  gap: 6px;
  align-items: center;
  border-top: 1px solid var(--bw-line);
  font-size: 12px;
}
.bw-account b {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  background: #202023;
  color: white;
  border-radius: 50%;
  font-size: 11px;
}
.bw-chat {
  padding: 8px clamp(8px, 2.5cqw, 24px) 8px;
  align-items: stretch;
}
.bw-profile {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.bw-profile img {
  width: clamp(28px, 5.2cqw, 42px);
}
.bw-profile div {
  padding: 2px 8px;
  border: 1px solid var(--bw-line);
  border-radius: 6px;
  box-shadow: 0 1px 3px #14141a14;
}
.bw-profile strong,
.bw-profile small {
  display: block;
}
.bw-profile strong {
  font-size: 12px;
}
.bw-profile small {
  font-size: 10px;
  color: var(--bw-muted);
}
.bw-welcome {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8px 0 clamp(8px, 2.6cqw, 24px);
  text-align: center;
}
.bw-welcome label {
  font: 650 clamp(17px, 3.4cqw, 28px)/1.3 var(--sans);
  letter-spacing: -0.035em;
}
.bw-writer {
  margin: 0 0 clamp(8px, 5cqw, 44px);
  flex: none;
}
.bw-paper {
  border: 1px solid var(--bw-line);
  border-radius: 10px;
  padding: 8px 8px 4px;
  background: white;
}
.bw-paper:focus-within {
  border-color: #557959;
}
.bw-paper textarea {
  display: block;
  resize: none;
  width: 100%;
  height: 2.9em;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--bw-ink);
  font: 400 14px/1.45 var(--sans);
  outline: none;
}
.bw-paper textarea::placeholder {
  color: var(--bw-muted);
}
.bw-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bw-tools > span {
  font-size: 20px;
}
.bw-tools small {
  margin-inline-start: auto;
  font-size: 10px;
  color: var(--bw-muted);
}
.bw-window .mode-send {
  width: 32px;
  height: 32px;
  background: #232426;
  color: white;
}
.bw-window .mode-send:disabled {
  background: #969698;
  color: white;
}
.bw-window .mode-send .od-icon {
  --od-icon-size: 16px;
}
.bw-shelf {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0 6px;
  padding: 4px 8px;
  border-radius: 0 0 6px 6px;
  background: #f5f5f6;
  color: var(--bw-muted);
  font-size: 11px;
}
.bw-shelf span::after {
  content: '⌄';
  padding-left: 4px;
}
.bw-window :is(button, .mode-history):focus-visible {
  outline: 2px solid #456849;
  outline-offset: -2px;
}
.bw-chat.is-chatting .bw-profile {
  flex-direction: row;
  align-self: stretch;
  gap: 6px;
  border-bottom: 1px solid var(--bw-line);
  padding-bottom: 4px;
  text-align: left;
}
.bw-chat.is-chatting .bw-profile img {
  width: 26px;
}
.bw-chat.is-chatting .bw-profile div {
  border: none;
  box-shadow: none;
  padding: 0;
}
.bw-chat.is-chatting .bw-profile small {
  display: none;
}
.bw-chat.is-chatting .bw-writer {
  margin-bottom: 0;
}
.bw-chat .mode-history {
  color: var(--bw-ink);
  scrollbar-color: #b4b4bc transparent;
}
.bw-chat .mode-messages:not(:empty) {
  padding: 8px 0;
  gap: 8px;
}
.bw-chat .mode-msg small {
  color: var(--bw-muted);
}
.bw-chat .mode-msg p {
  color: var(--bw-ink);
  background: #f3f3f5;
  font-size: 14px;
}
.bw-chat .mode-msg.mine p {
  background: var(--bw-select);
}
.bw-result .tiny-footer {
  color: var(--bw-muted);
  border-color: var(--bw-line);
}
.bw-result .tiny-footer button {
  color: #33503a;
}
.bw-window .bw-result .report-grid {
  grid-template-columns: 1fr;
}
@container (max-width:470px) {
  .bw-rail {
    width: 48px;
    align-items: stretch;
  }
  .bw-chat {
    grid-column: 2;
  }
  .bw-rail .bw-org,
  .bw-rail .bw-list-label,
  .bw-rail .bw-agent span,
  .bw-account span {
    display: none;
  }
  .bw-agent {
    min-height: 44px;
    justify-content: center;
  }
  .bw-account {
    justify-content: center;
  }
  .bw-window .bw-writer {
    margin-bottom: 4px;
  }
  .bw-paper textarea {
    font-size: 16px;
  }
  .bw-window .mode-send {
    width: 44px;
    height: 44px;
  }
  .bw-chat .bw-profile img {
    width: 28px;
  }
}
/* A container cannot query its own inline size; query the fixed-size reveal instead. */
.mode-clip {
  container-type: inline-size;
}
@container (max-width:470px) {
  .bw-window {
    grid-template-columns: 48px minmax(0, 1fr);
  }
}
