:root {
  color-scheme: light;
  --wb-font: "Inter", "Segoe UI", "Noto Sans", "Ubuntu", "Cantarell", "DejaVu Sans", Arial, sans-serif;
  --wb-window: #f7f8fb;
  --wb-header: #eef1f5;
  --wb-header-2: #e8edf3;
  --wb-rail: #edf3f7;
  --wb-panel: #ffffff;
  --wb-panel-soft: #eef3fb;
  --wb-panel-strong: #e4ebf5;
  --wb-line: #dbe2ec;
  --wb-line-strong: #cbd4e2;
  --wb-text: #111827;
  --wb-muted: #5f6978;
  --wb-quiet: #8994a3;
  --wb-accent: #25b9c8;
  --wb-blue: #4aa3f0;
  --wb-success: #44c188;
  --wb-amber: #e7a954;
  --wb-danger: #e06b77;
  --wb-shadow: 0 16px 42px rgba(22, 34, 51, 0.12);
  --wb-shadow-soft: 0 8px 22px rgba(22, 34, 51, 0.08);
  --wb-radius-sm: 8px;
  --wb-radius-md: 12px;
  --wb-radius-lg: 18px;
  font-family: var(--wb-font);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  overflow-x: hidden;
  background: var(--wb-window);
  color: var(--wb-text);
  font-family: var(--wb-font);
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  min-height: 34px;
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-radius-md);
  background: var(--wb-panel);
  color: var(--wb-text);
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

button:hover {
  border-color: var(--wb-line-strong);
  background: #fbfdff;
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.55;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-radius-sm);
  background: var(--wb-panel);
  color: var(--wb-text);
  outline: none;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  border-color: rgba(37, 185, 200, 0.58);
  box-shadow: 0 0 0 3px rgba(37, 185, 200, 0.16);
  outline: none;
}

img {
  display: block;
}

.wb-shell {
  width: 100vw;
  height: 100dvh;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 360px;
  grid-template-rows: 58px minmax(0, 1fr);
  background: var(--wb-window);
}

.wb-titlebar {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(170px, auto) minmax(220px, 1fr) auto auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--wb-line);
  background: var(--wb-header);
}

.wb-back,
.wb-soft-button,
.wb-market {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-radius-md);
  background: var(--wb-panel);
  color: var(--wb-text);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.wb-back {
  padding: 0 13px;
  font-size: 14px;
}

.wb-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wb-brand img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.wb-brand strong {
  overflow: hidden;
  color: var(--wb-text);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wb-token {
  min-width: 0;
  height: 31px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 1px solid var(--wb-line);
  background: var(--wb-panel);
}

.wb-token span {
  color: var(--wb-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.wb-token input {
  min-height: 25px;
  padding: 0;
  border: 0;
}

.wb-soft-button {
  padding: 0 12px;
}

.wb-market {
  justify-self: end;
  gap: 9px;
  padding: 0 12px;
  color: #172033;
  white-space: nowrap;
}

.wb-market i {
  position: relative;
  width: 34px;
  height: 19px;
  border-radius: 999px;
  background: #c7d0dc;
}

.wb-market i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.wb-dots {
  display: flex;
  gap: 10px;
}

.wb-dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c8d1dd;
}

.wb-rail {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 17px 16px;
  border-right: 1px solid var(--wb-line);
  background: var(--wb-rail);
}

.wb-rail button {
  width: 40px;
  height: 40px;
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border-color: transparent;
  background: transparent;
}

.wb-rail button:hover {
  background: var(--wb-panel);
}

.wb-rail img {
  width: 21px;
  height: 21px;
  object-fit: contain;
  opacity: 0.86;
}

.wb-rail span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wb-rail button.is-active {
  background: var(--wb-text);
  color: var(--wb-window);
  box-shadow: var(--wb-shadow-soft);
}

.wb-rail button.is-active img {
  filter: brightness(0) invert(1);
  opacity: 1;
}

.wb-rail img.wb-logo-ticproxy {
  width: 23px;
  height: 23px;
  border-radius: 7px;
  opacity: 1;
}

.wb-rail button.is-active img.wb-logo-ticproxy {
  filter: none;
}

.rail-bottom {
  margin-top: auto;
}

.wb-center {
  min-width: 0;
  min-height: 0;
  display: grid;
  align-content: start;
  justify-items: center;
  overflow: auto;
  padding: 20px 34px 54px;
  background: var(--wb-window);
}

.wb-session {
  width: min(980px, 100%);
  min-height: 42px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) 96px;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-radius-md);
  background: var(--wb-panel);
  box-shadow: var(--wb-shadow-soft);
}

.wb-session span,
.wb-session small {
  color: var(--wb-muted);
  font-size: 12px;
}

.wb-session strong {
  font-size: 13px;
}

.wb-session small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wb-session i {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--wb-panel-strong);
}

.wb-session i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 58%;
  border-radius: inherit;
  background: var(--wb-accent);
}

.wb-copy {
  width: min(920px, 100%);
  margin-bottom: 14px;
  text-align: center;
}

.wb-copy span {
  color: var(--wb-muted);
  font-size: 13px;
}

.wb-copy h1 {
  margin: 8px 0 0;
  color: var(--wb-text);
  font-size: 28px;
  font-weight: 680;
  line-height: 1.22;
  overflow-wrap: break-word;
}

.wb-skill-strip {
  width: min(920px, 100%);
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 14px;
  padding: 8px;
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-radius-lg);
  background: var(--wb-panel-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.wb-skill-pill {
  min-height: 32px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border-radius: var(--wb-radius-md);
  color: var(--wb-muted);
  font-size: 13px;
}

.wb-skill-pill.is-active {
  border: 1px solid var(--wb-line);
  background: var(--wb-panel);
  color: var(--wb-text);
  box-shadow: 0 2px 8px rgba(20, 28, 36, 0.06);
}

.wb-skill-dot {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  background: var(--wb-text);
}

.wb-skill-pill.tone-blue .wb-skill-dot,
.wb-skill-dot.blue {
  background: var(--wb-blue);
}

.wb-skill-pill.tone-green .wb-skill-dot,
.wb-skill-dot.green {
  background: var(--wb-success);
}

.wb-skill-pill.tone-amber .wb-skill-dot,
.wb-skill-dot.amber {
  background: var(--wb-amber);
}

.wb-skill-pill.tone-slate .wb-skill-dot {
  background: var(--wb-text);
}

.wb-skill-pill.is-active.tone-blue {
  border-color: rgba(74, 163, 240, 0.42);
  background: #edf6ff;
  color: #075ca8;
}

.wb-skill-pill.is-active.tone-amber {
  border-color: rgba(231, 169, 84, 0.48);
  background: #fff7e8;
  color: #8a570a;
}

.wb-skill-pill.is-active.tone-green {
  border-color: rgba(68, 193, 136, 0.46);
  background: #edfbf5;
  color: #087a4d;
}

.wb-main-card {
  width: min(1068px, 100%);
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: clamp(520px, calc(100dvh - 258px), 700px);
  overflow: hidden;
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-radius-lg);
  background: var(--wb-panel);
  box-shadow: var(--wb-shadow);
}

.wb-thread-bar {
  min-height: 46px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 14px 0;
}

.wb-thread-bar::-webkit-scrollbar {
  display: none;
}

.wb-thread-pill {
  max-width: 260px;
  min-height: 34px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--wb-panel-soft);
  color: var(--wb-muted);
}

.wb-thread-pill.is-active {
  border-color: var(--wb-line-strong);
  background: var(--wb-text);
  color: #fff;
}

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

.wb-messages {
  min-height: 0;
  max-height: none;
  display: grid;
  gap: 10px;
  overflow: auto;
  scrollbar-color: #aeb8c7 transparent;
  scrollbar-width: thin;
  padding: 12px 18px;
}

.wb-messages::-webkit-scrollbar,
.wb-execution-list::-webkit-scrollbar,
.wb-center::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.wb-messages::-webkit-scrollbar-thumb,
.wb-execution-list::-webkit-scrollbar-thumb,
.wb-center::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #aeb8c7;
}

.wb-messages::-webkit-scrollbar-track,
.wb-execution-list::-webkit-scrollbar-track,
.wb-center::-webkit-scrollbar-track {
  background: transparent;
}

.wb-message {
  max-width: min(760px, 96%);
  padding: 10px 12px;
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-radius-md);
  background: #fbfcfe;
}

.wb-message.is-user {
  justify-self: end;
  background: #eef7fb;
}

.wb-message.is-pending,
.wb-message.is-running,
.wb-message.is-sent {
  border-style: dashed;
}

.wb-message.is-failed {
  border-color: rgba(224, 107, 119, 0.7);
}

.wb-message strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
}

.wb-message-text {
  display: grid;
  gap: 8px;
}

.wb-message p,
.wb-message ul {
  margin: 0;
  color: #324057;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.wb-message ul {
  display: grid;
  gap: 6px;
  padding-left: 18px;
}

.wb-message li {
  padding-left: 2px;
}

.wb-message a {
  color: #0969c8;
  font-weight: 650;
  text-decoration: none;
}

.wb-message a:hover {
  text-decoration: underline;
}

.wb-inline-file-ref {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin: 0 2px;
  padding: 0 7px;
  border: 1px solid #c9d9ef;
  border-radius: 6px;
  background: #edf5ff;
  color: #0a5fb4;
  font-size: 12px;
  font-weight: 750;
  vertical-align: baseline;
}

.wb-attachment-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.wb-attachment-card {
  border: 1px solid #d4e1f1;
  border-radius: 8px;
  background: #f8fbff;
  color: #1c2a3d;
}

.wb-link-card {
  display: block;
  padding: 9px 10px;
  overflow: hidden;
  color: #075fb5;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  text-decoration: none;
  white-space: nowrap;
}

.wb-file-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
}

.wb-file-badge {
  min-width: 42px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #e7f0ff;
  color: #0b66c3;
  font-size: 10px;
  font-weight: 850;
}

.wb-file-body {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.wb-file-body strong,
.wb-file-body span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wb-file-body strong {
  font-size: 12px;
}

.wb-file-body span {
  color: var(--wb-muted);
  font-size: 11px;
}

.wb-attachment-image {
  max-width: min(100%, 360px);
  max-height: 260px;
  border: 1px solid #d4e1f1;
  border-radius: 8px;
  object-fit: contain;
}

.wb-composer {
  min-width: 0;
  display: grid;
  overflow: hidden;
  border-top: 1px solid var(--wb-line);
}

.wb-composer textarea {
  min-width: 0;
  height: 68px;
  min-height: 68px;
  max-height: 128px;
  padding: 10px 14px;
  border: 0;
  color: var(--wb-text);
  font-size: 15px;
  line-height: 1.48;
  resize: vertical;
}

.wb-composer textarea.is-default {
  color: #26384f;
}

.wb-selected-files {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 18px 12px;
}

.wb-selected-files[hidden] {
  display: none;
}

.wb-file-chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0 8px;
  border: 1px solid var(--wb-line);
  border-radius: 999px;
  background: var(--wb-panel-soft);
  color: var(--wb-muted);
  font-size: 12px;
}

.wb-composer-toolbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px;
  border-top: 1px solid var(--wb-line);
}

.wb-composer-toolbar button {
  padding: 0 11px;
  color: var(--wb-muted);
}

.wb-composer-toolbar .wb-send {
  width: 32px;
  height: 32px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: #c8ced9;
  color: #fff;
  font-size: 18px;
}

.wb-composer-toolbar .wb-send:hover {
  background: var(--wb-accent);
}

.wb-business-panel {
  width: min(980px, 100%);
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-radius-lg);
  background: var(--wb-panel);
  box-shadow: var(--wb-shadow-soft);
}

.wb-business-panel[hidden] {
  display: none;
}

.wb-business-panel[data-tone="blue"] {
  border-color: rgba(74, 163, 240, 0.34);
  background: #f4f9ff;
}

.wb-business-panel[data-tone="amber"] {
  border-color: rgba(231, 169, 84, 0.36);
  background: #fffaf0;
}

.wb-business-panel[data-tone="green"] {
  border-color: rgba(68, 193, 136, 0.34);
  background: #f2fbf6;
}

.wb-business-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wb-business-head i {
  width: 13px;
  height: 13px;
  border-radius: 5px;
  background: var(--wb-text);
}

.wb-business-panel[data-tone="blue"] .wb-business-head i {
  background: var(--wb-blue);
}

.wb-business-panel[data-tone="amber"] .wb-business-head i {
  background: var(--wb-amber);
}

.wb-business-panel[data-tone="green"] .wb-business-head i {
  background: var(--wb-success);
}

.wb-business-head strong,
.wb-business-head small {
  display: block;
}

.wb-business-head strong {
  font-size: 16px;
}

.wb-business-head small {
  color: var(--wb-muted);
  font-size: 12px;
}

.wb-business-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.wb-business-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wb-business-stat,
.wb-business-card {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 11px;
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.wb-business-stat strong,
.wb-business-card strong,
.wb-business-card small,
.wb-business-card span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wb-business-stat strong {
  font-size: 18px;
}

.wb-business-stat small,
.wb-business-card small,
.wb-business-card span {
  color: var(--wb-muted);
  font-size: 12px;
}

.wb-business-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.wb-business-cards.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wb-business-card button {
  justify-self: start;
  min-height: 30px;
  padding: 0 10px;
}

.wb-business-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.wb-business-actions button,
.wb-input-action button {
  padding: 0 12px;
}

.wb-business-actions .is-primary,
.wb-input-action button {
  border-color: rgba(37, 185, 200, 0.38);
  background: #152033;
  color: #fff;
}

.wb-business-panel[data-tone="blue"] .is-primary,
.wb-business-panel[data-tone="blue"] .wb-input-action button {
  border-color: rgba(74, 163, 240, 0.44);
  background: #247fd1;
}

.wb-business-panel[data-tone="amber"] .is-primary {
  border-color: rgba(231, 169, 84, 0.5);
  background: #d88a22;
}

.wb-business-panel[data-tone="green"] .is-primary {
  border-color: rgba(68, 193, 136, 0.5);
  background: #199565;
}

.wb-field {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.wb-field span,
.wb-check span {
  color: var(--wb-muted);
  font-size: 12px;
  font-weight: 700;
}

.wb-field input,
.wb-field select,
.wb-field textarea {
  min-height: 36px;
  padding: 7px 9px;
}

.wb-field textarea {
  min-height: 170px;
  resize: vertical;
}

.wb-input-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.wb-check {
  min-width: 0;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-radius-sm);
  background: rgba(255, 255, 255, 0.72);
}

.wb-check input {
  width: auto;
}

.wb-business-pre {
  max-height: 260px;
  overflow: auto;
  margin: 0;
  padding: 11px;
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-radius-md);
  background: #f8fbff;
  color: #243044;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.wb-business-empty {
  margin: 0;
  color: var(--wb-muted);
  font-size: 13px;
}

.wb-execution {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  gap: 14px;
  overflow: hidden;
  padding: 20px 18px;
  border-left: 1px solid var(--wb-line);
  background: var(--wb-header);
}

.wb-execution header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wb-execution header strong {
  font-size: 17px;
}

.wb-execution header button {
  padding: 0 13px;
}

.wb-execution-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.wb-execution-summary span {
  min-width: 0;
  min-height: 56px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-radius-md);
  background: var(--wb-panel);
}

.wb-execution-summary strong {
  font-size: 18px;
}

.wb-execution-summary small {
  color: var(--wb-muted);
  font-size: 11px;
}

.wb-agent-mini {
  display: grid;
  gap: 8px;
}

.wb-agent-row {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-radius-md);
  background: var(--wb-panel);
}

.wb-agent-row i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--wb-success);
}

.wb-agent-row[data-state="warn"] i {
  background: var(--wb-amber);
}

.wb-agent-row[data-state="bad"] i {
  background: var(--wb-danger);
}

.wb-agent-row strong,
.wb-agent-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wb-agent-row strong {
  font-size: 13px;
}

.wb-agent-row small {
  color: var(--wb-muted);
  font-size: 11px;
}

.wb-agent-row b {
  color: var(--wb-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.wb-execution-tabs {
  display: flex;
  gap: 7px;
}

.wb-execution-tabs button {
  min-width: 64px;
  padding: 0 13px;
}

.wb-execution-tabs button.is-active {
  background: var(--wb-text);
  color: #fff;
}

.wb-execution-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
  scrollbar-color: #aeb8c7 transparent;
  scrollbar-width: thin;
  padding-right: 2px;
}

.wb-execution-card {
  display: grid;
  gap: 9px;
  padding: 15px;
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-radius-md);
  background: var(--wb-panel);
  box-shadow: var(--wb-shadow-soft);
}

.wb-execution-card strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.wb-execution-card span {
  color: #3d4a60;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.wb-execution-card i {
  justify-self: start;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #e7f8fa;
  color: #008ea0;
  font-size: 11px;
  font-style: normal;
}

.wb-toast {
  position: fixed;
  left: 108px;
  bottom: 22px;
  z-index: 20;
  max-width: 620px;
  padding: 10px 13px;
  border: 1px solid var(--wb-line-strong);
  border-radius: var(--wb-radius-md);
  background: var(--wb-panel);
  pointer-events: none;
  box-shadow: var(--wb-shadow);
}

@media (max-width: 1180px) {
  .wb-shell {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .wb-execution {
    position: fixed;
    right: 0;
    top: 58px;
    bottom: 0;
    width: min(360px, 92vw);
    box-shadow: var(--wb-shadow);
  }

}

@media (max-width: 760px) {
  body {
    overflow: auto;
    overflow-x: hidden;
  }

  body[data-room="chat"] {
    overflow: hidden;
  }

  .wb-shell {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    min-height: 100dvh;
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  }

  body[data-room="chat"] .wb-shell {
    height: var(--mobile-vh, 100dvh);
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
  }

  .wb-titlebar {
    width: 100%;
    max-width: 100%;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 10px;
  }

  #refreshBtn {
    justify-self: end;
  }

  .wb-token,
  #saveTokenBtn,
  .wb-market,
  .wb-dots {
    display: none;
  }

  .wb-rail {
    position: fixed;
    z-index: 10;
    right: 0;
    bottom: 0;
    left: 0;
    height: calc(58px + env(safe-area-inset-bottom, 0px));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: center;
    gap: 0;
    padding: 5px 4px calc(5px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--wb-line);
    border-right: 0;
  }

  .wb-rail button {
    width: 100%;
    height: 48px;
    min-height: 48px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 2px;
    border-radius: var(--wb-radius-sm);
  }

  .wb-rail img {
    width: 19px;
    height: 19px;
  }

  .wb-rail span {
    position: static;
    width: auto;
    height: auto;
    max-width: 100%;
    clip: auto;
    color: var(--wb-muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .wb-rail button.is-active span {
    color: var(--wb-window);
  }

  .rail-bottom {
    margin-top: 0;
  }

  .wb-center {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding: 10px 10px 18px;
  }

  body[data-room="chat"] .wb-center {
    height: calc(var(--mobile-vh, 100dvh) - 58px - 58px - env(safe-area-inset-bottom, 0px));
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 8px;
  }

  .wb-session {
    inline-size: 100%;
    max-inline-size: 100%;
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    gap: 3px;
    margin-bottom: 10px;
    padding: 7px 9px;
  }

  .wb-session i {
    display: none;
  }

  .wb-copy {
    inline-size: 100%;
    max-inline-size: 100%;
  }

  .wb-copy h1 {
    width: 100%;
    max-width: 320px;
    margin-right: auto;
    margin-left: auto;
    font-size: 19px;
    line-height: 1.28;
  }

  .wb-copy {
    margin-bottom: 10px;
  }

  body[data-room="chat"] .wb-session,
  body[data-room="chat"] .wb-copy,
  body[data-room="chat"] .wb-skill-strip {
    display: none;
  }

  .wb-skill-strip {
    inline-size: 100%;
    max-inline-size: 100%;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    min-height: 46px;
    margin-bottom: 10px;
    padding: 6px;
  }

  .wb-main-card {
    inline-size: 100%;
    max-inline-size: 100%;
    width: 100%;
    max-width: 100%;
    height: min(620px, calc(100dvh - 208px));
    min-height: 440px;
    border-radius: var(--wb-radius-md);
  }

  body[data-room="chat"] .wb-main-card {
    flex: 1 1 auto;
    height: auto;
    max-height: none;
    min-height: 0;
  }

  body[data-room="chat"] .wb-thread-bar {
    min-height: 38px;
    padding: 6px 8px 0;
  }

  body[data-room="chat"] .wb-thread-pill {
    max-width: min(72vw, 260px);
    min-height: 28px;
    padding: 0 9px;
    font-size: 12px;
  }

  .wb-messages {
    inline-size: 100%;
    max-inline-size: 100%;
    min-height: 0;
    max-height: none;
    padding: 9px 12px;
  }

  .wb-message {
    width: 100%;
    max-width: 100%;
  }

  .wb-composer textarea {
    max-width: 100%;
    height: 62px;
    min-height: 62px;
    max-height: 108px;
    padding: 8px 10px;
    font-size: 14px;
  }

  body[data-room="chat"] .wb-composer textarea {
    height: 46px;
    min-height: 46px;
    max-height: min(76px, 22dvh);
    overflow-y: auto;
    resize: none;
  }

  .wb-composer-toolbar {
    flex-wrap: nowrap;
    min-height: 40px;
    gap: 6px;
    overflow-x: auto;
    padding: 6px 9px;
    scrollbar-width: none;
  }

  body[data-room="chat"] .wb-composer-toolbar {
    min-height: 34px;
    padding: 4px 8px;
  }

  .wb-composer-toolbar::-webkit-scrollbar {
    display: none;
  }

  .wb-composer-toolbar button {
    min-width: 0;
    flex: 0 0 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #modelBtn,
  #permissionBtn {
    display: none;
  }

  .wb-composer-toolbar .wb-send {
    flex: 0 0 32px;
    margin-left: 0;
  }

  body[data-room="chat"] .wb-execution {
    display: none;
  }

  .wb-business-panel {
    width: 100%;
    max-width: 100%;
    border-radius: var(--wb-radius-md);
  }

  .wb-business-grid,
  .wb-business-grid.two,
  .wb-business-cards,
  .wb-business-cards.compact {
    grid-template-columns: 1fr;
  }

  .wb-business-actions button {
    min-width: 0;
    flex: 1 1 calc(50% - 8px);
  }

  .wb-input-action {
    grid-template-columns: 1fr;
  }

  .wb-business-pre {
    max-height: 220px;
  }

  .wb-execution {
    position: static;
    width: 100%;
    max-width: 100%;
    max-height: none;
    border-left: 0;
    border-top: 1px solid var(--wb-line);
  }

  .wb-toast {
    top: calc(env(safe-area-inset-top, 0px) + 60px);
    left: auto;
    right: 12px;
    bottom: auto;
    width: max-content;
    max-width: calc(100vw - 24px);
    max-height: 54px;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.35;
  }
}
