/* Sandbox layer. Kept separate from the site's own styles. */
.sb-wordmark { font-family: Georgia, 'Times New Roman', serif; font-size: 1.5rem; line-height: 1; color: #30273C; letter-spacing: -0.01em; white-space: nowrap; }
.sb-wordmark b { color: #0273C2; }
footer .sb-wordmark, .bg-\[\#30273C\] .sb-wordmark { color: inherit; }

/* Sandbox tab: bottom-left (the chat bubble sits bottom-right). Collapsed by default. */
.tsb-banner {
  position: fixed; left: 16px; bottom: 16px; z-index: 2147483000;
  display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 8px;
  font: 500 13px/1.4 system-ui, -apple-system, 'Segoe UI', sans-serif; color: #30273C;
}
.tsb-toggle {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px;
  padding: 7px 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: #F7B107; color: #30273C; font: 700 13px/1 system-ui, -apple-system, 'Segoe UI', sans-serif;
  box-shadow: 0 4px 14px rgba(48, 39, 60, .22); opacity: .92; transition: opacity .15s;
}
.tsb-toggle:hover, .tsb-banner.open .tsb-toggle { opacity: 1; }
.tsb-toggle:focus-visible { outline: 2px solid #0273C2; outline-offset: 2px; }
.tsb-dot { width: 7px; height: 7px; border-radius: 50%; background: #30273C; }
.tsb-caret { font-size: 10px; transition: transform .15s; }
.tsb-banner.open .tsb-caret { transform: rotate(180deg); }
.tsb-panel {
  width: min(260px, calc(100vw - 32px)); padding: 12px 14px; border-radius: 12px;
  background: #fff; border: 1px solid #F7B107; box-shadow: 0 8px 24px rgba(48, 39, 60, .18);
}
.tsb-panel[hidden] { display: none; }
.tsb-panel p { margin: 0 0 10px; }
.tsb-panel { width: min(330px, calc(100vw - 32px)); }
.tsb-demo { display: grid; gap: 4px; padding-top: 8px; border-top: 1px solid #F3E2B3; }
.tsb-demo .tsb-role { display: inline-block; min-width: 52px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #6B7280; }
.tsb-panel .tsb-copy { color: #30273C; font-weight: 500; text-decoration: none; word-break: break-all; text-align: left; }
.tsb-panel .tsb-copy:hover { color: #0273C2; text-decoration: underline; }
.tsb-panel .tsb-links { display: flex; gap: 14px; flex-wrap: wrap; }
.tsb-panel a, .tsb-panel button { color: #0273C2; font: inherit; font-weight: 700; text-decoration: underline; background: none; border: 0; cursor: pointer; padding: 0; }

.tsb-note {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); z-index: 2147483001;
  max-width: min(92vw, 520px); padding: 10px 14px; border-radius: 10px;
  background: #30273C; color: #fff; font: 500 14px/1.4 system-ui, -apple-system, 'Segoe UI', sans-serif;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.tsb-note.show { opacity: 1; transform: translate(-50%, 0); }
