.sb {
  background: var(--card, #151b2b);
  border: 1px solid rgba(232, 236, 245, .14);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  padding: 16px;
}
.sb-bar, .sb-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}
.sb-bar label, .sb-foot span {
  display: grid;
  gap: 8px;
  color: var(--muted, #9aa4b8);
  font-size: 14px;
}
.sb-bar select { min-width: 160px; }
.sb [data-ai] { margin-left: auto; }
.sb-ghost {
  background: transparent;
  color: var(--ink, #e8ecf5);
  border: 1px solid rgba(232, 236, 245, .14);
}
.sb-ghost:hover { background: var(--bg, #0b0f1a); }
.sb-status, .sb-help {
  color: var(--muted, #9aa4b8);
  font-size: 14px;
}
.sb-screen {
  position: relative;
  margin: 16px 0;
  padding: 32px 36px 36px 48px;
  background: #f4efe4;
  border-radius: 2px 10px 10px 2px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  min-height: 360px;
}
.sb-burn {
  position: absolute;
  left: 32px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: rgba(138, 86, 18, .45);
}
.sb-line { margin: 0 0 8px; }
.sb-text {
  min-height: 28px;
  outline: none;
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  line-height: 1.6;
  color: #3f362c;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sb-text:focus { box-shadow: inset 0 -2px 0 #8a5612; }
.sb-scene { margin-top: 14px; }
.sb-screen .sb-line:first-child { margin-top: 0; }
.sb-scene .sb-text {
  color: #1c1712;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sb-character .sb-text {
  margin-left: 28%;
  color: #1c1712;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.sb-paren .sb-text { margin-left: 22%; color: #5c5346; font-style: italic; }
.sb-dialogue .sb-text { margin-left: 16%; margin-right: 12%; color: #1c1712; }
.sb-transition .sb-text { text-align: right; text-transform: uppercase; letter-spacing: .06em; color: #5c5346; }
@media (max-width: 640px) {
  .sb-screen { padding: 24px 16px 24px 28px; }
  .sb-burn { left: 16px; }
  .sb [data-ai], .sb-ghost { width: 100%; margin-left: 0; }
  .sb-character .sb-text { margin-left: 12px; }
  .sb-paren .sb-text { margin-left: 12px; }
  .sb-dialogue .sb-text { margin-left: 12px; margin-right: 0; }
}
