.brandon-field {
  --bf-cream: var(--text, var(--ink, #f0efe5));
  --bf-muted: #9da68f;
  --bf-accent: var(--accent, #d8f976);
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  color: var(--bf-cream);
  background: var(--bg, #0e160e);
  border: 1px solid rgba(216, 249, 118, .14);
  border-radius: 4px;
  box-shadow: 0 22px 80px rgba(0, 0, 0, .12);
  overflow: hidden;
  font-family: inherit;
}
.brandon-field *, .brandon-field *::before, .brandon-field *::after { box-sizing: border-box; }
.bf-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
  padding: 22px 25px 0;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .11em;
  color: var(--bf-muted);
}
.bf-topline > span:first-child { display: inline-flex; align-items: center; gap: 9px; }
.bf-topline i { width: 5px; height: 5px; border-radius: 50%; background: var(--bf-accent); box-shadow: 0 0 10px rgba(216,249,118,.35); }
.bf-coordinate { font-size: 9px; letter-spacing: .07em; opacity: .7; }
.bf-stage { position: relative; }
.bf-canvas {
  display: block;
  width: 100%;
  height: clamp(330px, 39vw, 510px);
  cursor: grab;
  touch-action: pan-y;
  outline-offset: -7px;
}
.bf-canvas:focus-visible { outline: 2px solid var(--bf-accent); border-radius: 3px; }
.bf-dragging .bf-canvas { cursor: grabbing; }
.bf-mode-label {
  position: absolute;
  left: 25px;
  bottom: 18px;
  display: flex;
  gap: 12px;
  align-items: baseline;
  pointer-events: none;
  z-index: 2;
}
.bf-index { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; letter-spacing: .05em; color: var(--bf-accent); }
.bf-current { font-size: 12px; color: var(--bf-cream); letter-spacing: -.01em; }
.bf-sidenote {
  position: absolute;
  right: 15px;
  top: 50%;
  writing-mode: vertical-rl;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 8px;
  letter-spacing: .16em;
  color: rgba(216, 230, 194, .32);
  pointer-events: none;
  z-index: 2;
}
.bf-console { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin: 0 24px; border-top: 1px solid rgba(245,231,212,.1); padding-top: 15px; }
.bf-modes { display: flex; gap: 4px; padding: 3px; border: 1px solid rgba(245,231,212,.12); border-radius: 6px; background: rgba(0,0,0,.12); }
.brandon-field button {
  appearance: none;
  font: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .16s, color .16s, border-color .16s;
  -webkit-tap-highlight-color: transparent;
}
.brandon-field button:focus-visible { outline: 2px solid var(--bf-accent); outline-offset: 3px; }
.bf-modes button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; padding: 7px 10px; border-radius: 4px; color: var(--bf-muted); background: transparent; font-size: 11px; line-height: 1; }
.bf-modes button:hover { color: var(--bf-cream); background: rgba(245,231,212,.05); }
.bf-modes button[aria-pressed="true"] { color: var(--bf-cream); background: #28351c; border-color: rgba(216,249,118,.25); }
.bf-mode-icon { color: var(--bf-accent); font-size: 20px; line-height: .9; font-family: Georgia, serif; }
.brandon-field kbd { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; font-weight: 400; line-height: 1.3; border: 1px solid rgba(245,231,212,.17); border-radius: 3px; padding: 2px 4px; color: var(--bf-muted); }
.bf-modes kbd { margin-left: 2px; font-size: 8px; opacity: .65; }
.bf-transport { display: flex; gap: 4px; margin-left: auto; }
.bf-transport button { min-width: 38px; min-height: 42px; border-radius: 4px; color: var(--bf-muted); background: transparent; font-size: 19px; }
.bf-transport button:hover { color: var(--bf-cream); border-color: rgba(245,231,212,.16); background: rgba(245,231,212,.04); }
.bf-pause { font-family: Georgia, serif !important; }
.bf-help { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 14px 25px 20px; color: var(--bf-muted); font-size: 10px; line-height: 1.7; letter-spacing: .005em; }
.bf-key-hint { white-space: nowrap; opacity: .8; }
.bf-key-hint > span { margin: 0 5px; }
.bf-live { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.bf-unavailable .bf-live { position: static; width: auto; height: auto; clip: auto; padding: 30px; white-space: normal; }
@media (max-width: 640px) {
  .bf-topline { padding: 18px 18px 0; font-size: 9px; }
  .bf-coordinate { font-size: 8px; }
  .bf-canvas { height: 360px; }
  .bf-console { margin: 0 17px; gap: 7px; }
  .bf-mode-label { left: 19px; bottom: 16px; gap: 8px; }
  .bf-current { font-size: 11px; }
  .bf-modes { gap: 1px; }
  .bf-modes button { min-height: 41px; padding: 6px 9px; gap: 5px; }
  .bf-modes kbd { display: none; }
  .bf-transport button { min-width: 36px; }
  .bf-help { margin: 13px 19px 17px; font-size: 10px; }
  .bf-sidenote { right: 10px; font-size: 7px; }
}
@media (max-width: 360px) {
  .bf-coordinate { display: none; }
  .bf-modes button { padding-inline: 7px; }
  .bf-mode-icon { font-size: 17px; }
  .bf-transport { gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .brandon-field button { transition: none; }
}
