.bart-widget .bart-portrait {
  display: block;
  width: min(100%, 176px);
  height: auto;
  margin: 0 auto -1px;
}

.bart-widget .bart-board {
  padding: 10px;
  border: 5px solid #99613c;
  border-radius: 3px;
  color: #fffbed;
  background: #173f35;
}

.bart-widget .bart-line {
  margin: 0 0 10px;
  font: 700 13px/1.5 "Courier New", monospace;
  overflow-wrap: anywhere;
}

.bart-widget .bart-line:last-child { margin-bottom: 0; }
.bart-widget .bart-controls { margin-top: 10px; }
.bart-widget [hidden] { display: none; }
.bart-widget .bart-controls > .button { width: 100%; }
.bart-widget .bart-write { margin-top: 10px; }
.bart-widget summary { cursor: pointer; font-size: 13px; }

.bart-widget form {
  display: grid;
  min-width: 0;
  gap: 8px;
  margin-top: 10px;
}

.bart-widget label { font-size: 13px; }

.bart-widget input {
  width: 100%;
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--aero-line, #555);
  border-radius: 3px;
  color: var(--ink);
  font: inherit;
  background: var(--paper);
}

.bart-widget .bart-note,
.bart-widget .bart-credit {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.5;
}

.bart-widget .bart-credit { text-align: center; }

@media (forced-colors: active) {
  .bart-widget .bart-board { border-color: CanvasText; color: CanvasText; background: Canvas; }
}
