.ͼ1.cm-focused {
  outline: 1px dotted #212121;
}
.ͼ1 {
  position: relative !important;
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column;
}
.ͼ1 .cm-scroller {
  display: flex !important;
  align-items: flex-start !important;
  font-family: monospace;
  line-height: 1.4;
  height: 100%;
  overflow-x: auto;
  position: relative;
  z-index: 0;
  overflow-anchor: none;
}
.ͼ1 .cm-content[contenteditable="true"] {
  -webkit-user-modify: read-write-plaintext-only;
}
.ͼ1 .cm-content {
  margin: 0;
  flex-grow: 2;
  flex-shrink: 0;
  display: block;
  white-space: pre;
  word-wrap: normal;
  box-sizing: border-box;
  min-height: 100%;
  padding: 4px 0;
  outline: none;
}
.ͼ1 .cm-lineWrapping {
  white-space: pre-wrap;
  white-space: break-spaces;
  word-break: break-word;
  overflow-wrap: anywhere;
  flex-shrink: 1;
}
.ͼ2 .cm-content {
  caret-color: black;
}
.ͼ3 .cm-content {
  caret-color: white;
}
.ͼ1 .cm-line {
  display: block;
  padding: 0 2px 0 6px;
}
.ͼ1 .cm-layer > * {
  position: absolute;
}
.ͼ1 .cm-layer {
  position: absolute;
  left: 0;
  top: 0;
  contain: size style;
}
.ͼ2 .cm-selectionBackground {
  background: #d9d9d9;
}
.ͼ3 .cm-selectionBackground {
  background: #222;
}
.ͼ2.cm-focused
  > .cm-scroller
  > .cm-selectionLayer
  .cm-selectionBackground {
  background: #d7d4f0;
}
.ͼ3.cm-focused
  > .cm-scroller
  > .cm-selectionLayer
  .cm-selectionBackground {
  background: #233;
}
.ͼ1 .cm-cursorLayer {
  pointer-events: none;
}
.ͼ1.cm-focused > .cm-scroller > .cm-cursorLayer {
  animation: steps(1) cm-blink 1.2s infinite;
}
@keyframes cm-blink {
  50% {
    opacity: 0;
  }
}
@keyframes cm-blink2 {
  50% {
    opacity: 0;
  }
}
.ͼ1 .cm-cursor,
.ͼ1 .cm-dropCursor {
  border-left: 1.2px solid black;
  margin-left: -0.6px;
  pointer-events: none;
}
.ͼ1 .cm-cursor {
  display: none;
}
.ͼ3 .cm-cursor {
  border-left-color: #ddd;
}
.ͼ1 .cm-selectionHandle {
  background-color: currentColor;
  width: 1.5px;
}
.ͼ1 .cm-selectionHandle-start::before,
.ͼ1 .cm-selectionHandle-end::before {
  content: "";
  background-color: inherit;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  position: absolute;
  left: -3.25px;
}
.ͼ1 .cm-selectionHandle-start::before {
  top: -8px;
}
.ͼ1 .cm-selectionHandle-end::before {
  bottom: -8px;
}
.ͼ1 .cm-dropCursor {
  position: absolute;
}
.ͼ1.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor {
  display: block;
}
.ͼ1 .cm-iso {
  unicode-bidi: isolate;
}
.ͼ1 .cm-announced {
  position: fixed;
  top: -10000px;
}
@media print {
  .ͼ1 .cm-announced {
    display: none;
  }
}
.ͼ2 .cm-activeLine {
  background-color: #cceeff44;
}
.ͼ3 .cm-activeLine {
  background-color: #99eeff33;
}
.ͼ2 .cm-specialChar {
  color: red;
}
.ͼ3 .cm-specialChar {
  color: #f78;
}
.ͼ1 .cm-gutters {
  flex-shrink: 0;
  display: flex;
  height: 100%;
  box-sizing: border-box;
  z-index: 200;
}
.ͼ1 .cm-gutters-before {
  inset-inline-start: 0;
}
.ͼ1 .cm-gutters-after {
  inset-inline-end: 0;
}
.ͼ2 .cm-gutters.cm-gutters-before {
  border-right-width: 1px;
}
.ͼ2 .cm-gutters.cm-gutters-after {
  border-left-width: 1px;
}
.ͼ2 .cm-gutters {
  background-color: #f5f5f5;
  color: #6c6c6c;
  border: 0px solid #ddd;
}
.ͼ3 .cm-gutters {
  background-color: #333338;
  color: #ccc;
}
.ͼ1 .cm-gutter {
  display: flex !important;
  flex-direction: column;
  flex-shrink: 0;
  box-sizing: border-box;
  min-height: 100%;
  overflow: hidden;
}
.ͼ1 .cm-gutterElement {
  box-sizing: border-box;
}
.ͼ1 .cm-lineNumbers .cm-gutterElement {
  padding: 0 3px 0 5px;
  min-width: 20px;
  text-align: right;
  white-space: nowrap;
}
.ͼ2 .cm-activeLineGutter {
  background-color: #e2f2ff;
}
.ͼ3 .cm-activeLineGutter {
  background-color: #222227;
}
.ͼ1 .cm-panels {
  box-sizing: border-box;
  position: sticky;
  left: 0;
  right: 0;
  z-index: 300;
}
.ͼ2 .cm-panels {
  background-color: #f5f5f5;
  color: black;
}
.ͼ2 .cm-panels-top {
  border-bottom: 1px solid #ddd;
}
.ͼ2 .cm-panels-bottom {
  border-top: 1px solid #ddd;
}
.ͼ3 .cm-panels {
  background-color: #333338;
  color: white;
}
.ͼ1 .cm-dialog label {
  font-size: 80%;
}
.ͼ1 .cm-dialog {
  padding: 2px 19px 4px 6px;
  position: relative;
}
.ͼ1 .cm-dialog-close {
  position: absolute;
  top: 3px;
  right: 4px;
  background-color: inherit;
  border: none;
  font: inherit;
  font-size: 14px;
  padding: 0;
}
.ͼ1 .cm-tab {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.ͼ1 .cm-widgetBuffer {
  vertical-align: text-top;
  height: 1em;
  width: 0;
  display: inline;
}
.ͼ1 .cm-placeholder {
  color: #888;
  display: inline-block;
  vertical-align: top;
  user-select: none;
}
.ͼ1 .cm-highlightSpace {
  background-image: radial-gradient(
    circle at 50% 55%,
    #aaa 20%,
    transparent 5%
  );
  background-position: center;
}
.ͼ1 .cm-highlightTab {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>');
  background-size: auto 100%;
  background-position: right 90%;
  background-repeat: no-repeat;
}
.ͼ1 .cm-trailingSpace {
  background-color: #ff332255;
}
.ͼ1 .cm-button {
  vertical-align: middle;
  color: inherit;
  font-size: 70%;
  padding: 0.2em 1em;
  border-radius: 1px;
}
.ͼ2 .cm-button:active {
  background-image: linear-gradient(#b4b4b4, #d0d3d6);
}
.ͼ2 .cm-button {
  background-image: linear-gradient(#eff1f5, #d9d9df);
  border: 1px solid #888;
}
.ͼ3 .cm-button:active {
  background-image: linear-gradient(#111, #333);
}
.ͼ3 .cm-button {
  background-image: linear-gradient(#393939, #111);
  border: 1px solid #888;
}
.ͼ1 .cm-textfield {
  vertical-align: middle;
  color: inherit;
  font-size: 70%;
  border: 1px solid silver;
  padding: 0.2em 0.5em;
}
.ͼ2 .cm-textfield {
  background-color: white;
}
.ͼ3 .cm-textfield {
  border: 1px solid #555;
  background-color: inherit;
}
.ͼ1 .cm-selectionMatch {
  background-color: #99ff7780;
}
.ͼ1 .cm-searchMatch .cm-selectionMatch {
  background-color: transparent;
}
.ͼ1 .cm-tooltip.cm-tooltip-autocomplete > ul > li,
.ͼ1 .cm-tooltip.cm-tooltip-autocomplete > ul > completion-section {
  padding: 1px 3px;
  line-height: 1.2;
}
.ͼ1 .cm-tooltip.cm-tooltip-autocomplete > ul > li {
  overflow-x: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.ͼ1 .cm-tooltip.cm-tooltip-autocomplete > ul > completion-section {
  display: list-item;
  border-bottom: 1px solid silver;
  padding-left: 0.5em;
  opacity: 0.7;
}
.ͼ1 .cm-tooltip.cm-tooltip-autocomplete > ul {
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden auto;
  max-width: 700px;
  max-width: min(700px, 95vw);
  min-width: 250px;
  max-height: 10em;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ͼ2 .cm-tooltip-autocomplete ul li[aria-selected] {
  background: #17c;
  color: white;
}
.ͼ2 .cm-tooltip-autocomplete-disabled ul li[aria-selected] {
  background: #777;
}
.ͼ3 .cm-tooltip-autocomplete ul li[aria-selected] {
  background: #347;
  color: white;
}
.ͼ3 .cm-tooltip-autocomplete-disabled ul li[aria-selected] {
  background: #444;
}
.ͼ1 .cm-completionListIncompleteTop:before,
.ͼ1 .cm-completionListIncompleteBottom:after {
  content: "···";
  opacity: 0.5;
  display: block;
  text-align: center;
}
.ͼ1 .cm-tooltip.cm-completionInfo {
  position: absolute;
  padding: 3px 9px;
  width: max-content;
  max-width: 400px;
  box-sizing: border-box;
  white-space: pre-line;
}
.ͼ1 .cm-completionInfo.cm-completionInfo-left {
  right: 100%;
}
.ͼ1 .cm-completionInfo.cm-completionInfo-right {
  left: 100%;
}
.ͼ1 .cm-completionInfo.cm-completionInfo-left-narrow {
  right: 30px;
}
.ͼ1 .cm-completionInfo.cm-completionInfo-right-narrow {
  left: 30px;
}
.ͼ2 .cm-snippetField {
  background-color: #00000022;
}
.ͼ3 .cm-snippetField {
  background-color: #ffffff22;
}
.ͼ1 .cm-snippetFieldPosition {
  vertical-align: text-top;
  width: 0;
  height: 1.15em;
  display: inline-block;
  margin: 0 -0.7px -0.7em;
  border-left: 1.4px dotted #888;
}
.ͼ1 .cm-completionMatchedText {
  text-decoration: underline;
}
.ͼ1 .cm-completionDetail {
  margin-left: 0.5em;
  font-style: italic;
}
.ͼ1 .cm-completionIcon {
  font-size: 90%;
  width: 0.8em;
  display: inline-block;
  text-align: center;
  padding-right: 0.6em;
  opacity: 0.6;
  box-sizing: content-box;
}
.ͼ1 .cm-completionIcon-function:after,
.ͼ1 .cm-completionIcon-method:after {
  content: "ƒ";
}
.ͼ1 .cm-completionIcon-class:after {
  content: "○";
}
.ͼ1 .cm-completionIcon-interface:after {
  content: "◌";
}
.ͼ1 .cm-completionIcon-variable:after {
  content: "𝑥";
}
.ͼ1 .cm-completionIcon-constant:after {
  content: "𝐶";
}
.ͼ1 .cm-completionIcon-type:after {
  content: "𝑡";
}
.ͼ1 .cm-completionIcon-enum:after {
  content: "∪";
}
.ͼ1 .cm-completionIcon-property:after {
  content: "□";
}
.ͼ1 .cm-completionIcon-keyword:after {
  content: "🔑︎";
}
.ͼ1 .cm-completionIcon-namespace:after {
  content: "▢";
}
.ͼ1 .cm-completionIcon-text:after {
  content: "abc";
  font-size: 50%;
  vertical-align: middle;
}
.ͼ1 .cm-tooltip {
  z-index: 500;
  box-sizing: border-box;
}
.ͼ2 .cm-tooltip {
  border: 1px solid #bbb;
  background-color: #f5f5f5;
}
.ͼ2 .cm-tooltip-section:not(:first-child) {
  border-top: 1px solid #bbb;
}
.ͼ3 .cm-tooltip {
  background-color: #333338;
  color: white;
}
.ͼ1 .cm-tooltip-arrow:before,
.ͼ1 .cm-tooltip-arrow:after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
}
.ͼ1 .cm-tooltip-above .cm-tooltip-arrow:before {
  border-top: 7px solid #bbb;
}
.ͼ1 .cm-tooltip-above .cm-tooltip-arrow:after {
  border-top: 7px solid #f5f5f5;
  bottom: 1px;
}
.ͼ1 .cm-tooltip-above .cm-tooltip-arrow {
  bottom: -7px;
}
.ͼ1 .cm-tooltip-below .cm-tooltip-arrow:before {
  border-bottom: 7px solid #bbb;
}
.ͼ1 .cm-tooltip-below .cm-tooltip-arrow:after {
  border-bottom: 7px solid #f5f5f5;
  top: 1px;
}
.ͼ1 .cm-tooltip-below .cm-tooltip-arrow {
  top: -7px;
}
.ͼ1 .cm-tooltip-arrow {
  height: 7px;
  width: 14px;
  position: absolute;
  z-index: -1;
  overflow: hidden;
}
.ͼ3 .cm-tooltip .cm-tooltip-arrow:before {
  border-top-color: #333338;
  border-bottom-color: #333338;
}
.ͼ3 .cm-tooltip .cm-tooltip-arrow:after {
  border-top-color: transparent;
  border-bottom-color: transparent;
}
.ͼ1.cm-focused .cm-matchingBracket {
  background-color: #328c8252;
}
.ͼ1.cm-focused .cm-nonmatchingBracket {
  background-color: #bb555544;
}
.ͼ1 .cm-foldPlaceholder {
  background-color: #eee;
  border: 1px solid #ddd;
  color: #888;
  border-radius: 0.2em;
  margin: 0 1px;
  padding: 0 1px;
  cursor: pointer;
}
.ͼ1 .cm-foldGutter span {
  padding: 0 1px;
  cursor: pointer;
}
.ͼ17 {
  background: #0d1117;
}
.ͼ17 .cm-gutters {
  background: #0d1117;
  border-right: 1px solid #21262d;
}
.ͼ17 .cm-activeLineGutter {
  background: #0d1117;
}
.ͼ16 {
  background: #0d1117;
}
.ͼ16 .cm-gutters {
  background: #0d1117;
  border-right: 1px solid #21262d;
}
.ͼ16 .cm-activeLineGutter {
  background: #0d1117;
}
.ͼ15 {
  background: #0d1117;
}
.ͼ15 .cm-gutters {
  background: #0d1117;
  border-right: 1px solid #21262d;
}
.ͼ15 .cm-activeLineGutter {
  background: #0d1117;
}
.ͼp {
  color: #c678dd;
}
.ͼq {
  color: #e06c75;
}
.ͼr {
  color: #61afef;
}
.ͼs {
  color: #d19a66;
}
.ͼt {
  color: #abb2bf;
}
.ͼu {
  color: #e5c07b;
}
.ͼv {
  color: #56b6c2;
}
.ͼw {
  color: #7d8799;
}
.ͼx {
  font-weight: bold;
}
.ͼy {
  font-style: italic;
}
.ͼz {
  text-decoration: line-through;
}
.ͼ10 {
  color: #7d8799;
  text-decoration: underline;
}
.ͼ11 {
  font-weight: bold;
  color: #e06c75;
}
.ͼ12 {
  color: #d19a66;
}
.ͼ13 {
  color: #98c379;
}
.ͼ14 {
  color: #ffffff;
}
.ͼo {
  color: #abb2bf;
  background-color: #282c34;
}
.ͼo .cm-content {
  caret-color: #528bff;
}
.ͼo .cm-cursor,
.ͼo .cm-dropCursor {
  border-left-color: #528bff;
}
.ͼo.cm-focused
  > .cm-scroller
  > .cm-selectionLayer
  .cm-selectionBackground,
.ͼo .cm-selectionBackground,
.ͼo .cm-content ::selection {
  background-color: #3e4451;
}
.ͼo .cm-panels {
  background-color: #21252b;
  color: #abb2bf;
}
.ͼo .cm-panels.cm-panels-top {
  border-bottom: 2px solid black;
}
.ͼo .cm-panels.cm-panels-bottom {
  border-top: 2px solid black;
}
.ͼo .cm-searchMatch {
  background-color: #72a1ff59;
  outline: 1px solid #457dff;
}
.ͼo .cm-searchMatch.cm-searchMatch-selected {
  background-color: #6199ff2f;
}
.ͼo .cm-activeLine {
  background-color: #6699ff0b;
}
.ͼo .cm-selectionMatch {
  background-color: #aafe661a;
}
.ͼo.cm-focused .cm-matchingBracket,
.ͼo.cm-focused .cm-nonmatchingBracket {
  background-color: #bad0f847;
}
.ͼo .cm-gutters {
  background-color: #282c34;
  color: #7d8799;
  border: none;
}
.ͼo .cm-activeLineGutter {
  background-color: #2c313a;
}
.ͼo .cm-foldPlaceholder {
  background-color: transparent;
  border: none;
  color: #ddd;
}
.ͼo .cm-tooltip {
  border: none;
  background-color: #353a42;
}
.ͼo .cm-tooltip .cm-tooltip-arrow:before {
  border-top-color: transparent;
  border-bottom-color: transparent;
}
.ͼo .cm-tooltip .cm-tooltip-arrow:after {
  border-top-color: #353a42;
  border-bottom-color: #353a42;
}
.ͼo .cm-tooltip-autocomplete > ul > li[aria-selected] {
  background-color: #2c313a;
  color: #abb2bf;
}
.ͼ5 {
  color: #404740;
}
.ͼ6 {
  text-decoration: underline;
}
.ͼ7 {
  text-decoration: underline;
  font-weight: bold;
}
.ͼ8 {
  font-style: italic;
}
.ͼ9 {
  font-weight: bold;
}
.ͼa {
  text-decoration: line-through;
}
.ͼb {
  color: #708;
}
.ͼc {
  color: #219;
}
.ͼd {
  color: #164;
}
.ͼe {
  color: #a11;
}
.ͼf {
  color: #e40;
}
.ͼg {
  color: #00f;
}
.ͼh {
  color: #30a;
}
.ͼi {
  color: #085;
}
.ͼj {
  color: #167;
}
.ͼk {
  color: #256;
}
.ͼl {
  color: #00c;
}
.ͼm {
  color: #940;
}
.ͼn {
  color: #f00;
}
.ͼ4 .cm-line ::selection,
.ͼ4 .cm-line::selection {
  background-color: transparent !important;
}
.ͼ4 .cm-line {
  caret-color: transparent !important;
}
.ͼ4 .cm-content :focus::selection,
.ͼ4 .cm-content :focus ::selection {
  background-color: Highlight !important;
}
.ͼ4 .cm-content :focus {
  caret-color: initial !important;
}
.ͼ4 .cm-content {
  caret-color: transparent !important;
}


/* TODO This was a seperate <style> in the original vibe code. Why? */ 
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0d1117;
  color: #c9d1d9;
  min-height: 100vh;
}

/* ── Header ── */
header {
  background: #161b22;
  border-bottom: 1px solid #30363d;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 50;
}

#size-bar-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #21262d;
}
#size-bar {
  height: 100%;
  width: 0%;
  background: #3fb950;
  transition:
    width 0.2s,
    background-color 0.2s;
}

#name-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

#notebook-name {
  font-size: 1rem;
  font-weight: 600;
  color: #c9d1d9;
  font-family: inherit;
  outline: none;
  border-radius: 4px;
  padding: 2px 4px;
  min-width: 40px;
  max-width: 240px;
  cursor: text;
  transition: background 0.15s, color 0.15s;
}
#notebook-name:hover,
#notebook-name:focus {
  background: #21262d;
  color: #ffffff;
}

#name-pencil {
  font-size: 0.72rem;
  color: #484f58;
  pointer-events: none;
}

#toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.tb-btn {
  background: #21262d;
  color: #c9d1d9;
  border: 1px solid #30363d;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  white-space: nowrap;
  transition:
    background 0.1s,
    border-color 0.1s;
}
.tb-btn:hover {
  background: #30363d;
  border-color: #8b949e;
}
.tb-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.tb-btn.primary {
  border-color: #1f6feb;
  color: #58a6ff;
}
.tb-btn.primary:hover {
  background: #1f6feb22;
}


.lang-link {
  font-size: 0.75rem;
  color: #8b949e;
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid #30363d;
  white-space: nowrap;
  transition:
    color 0.1s,
    border-color 0.1s;
}
.lang-link:hover {
  color: #c9d1d9;
  border-color: #8b949e;
}

#status {
  margin-left: auto;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}
#status.loading {
  color: #e3b341;
  border-color: #e3b34140;
  background: #e3b34110;
}
#status.ready {
  color: #3fb950;
  border-color: #3fb95040;
  background: #3fb95010;
}
#status.running {
  color: #58a6ff;
  border-color: #58a6ff40;
  background: #58a6ff10;
}
#status.error {
  color: #f85149;
  border-color: #f8514940;
  background: #f8514910;
}

/* ── Cells ── */
#cells-container {
  max-width: 860px;
  margin: 24px auto 80px;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cell {
  border: 1px solid #30363d;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.cell:focus-within {
  border-color: #388bfd;
}
.cell.running {
  border-color: #58a6ff;
}
.cell.has-error {
  border-color: #f85149;
}

.cell-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: #161b22;
  border-bottom: 1px solid #21262d;
}

.cell-num {
  font-family: monospace;
  font-size: 0.72rem;
  color: #58a6ff;
  min-width: 28px;
}

.run-btn {
  background: none;
  border: none;
  color: #3fb950;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}
.run-btn:hover {
  color: #56d364;
}
.run-btn:disabled {
  color: #30363d;
  cursor: not-allowed;
}

.del-btn {
  background: none;
  border: none;
  color: #484f58;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0 2px;
  margin-left: auto;
  line-height: 1;
}
.del-btn:hover {
  color: #f85149;
}

.cell-editor {
  background: #0d1117;
}

/* CodeMirror overrides */
.cm-editor {
  background: #0d1117 !important;
}
.cm-editor.cm-focused {
  outline: none !important;
}
.cm-scroller {
  min-height: 42px;
}

/* ── Output ── */
.cell-output {
  display: none;
  padding: 10px 14px;
  border-top: 1px solid #21262d;
  background: #0d1117;
  font-size: 0.82rem;
  gap: 6px;
  flex-direction: column;
}
.cell-output.visible {
  display: flex;
}

.out-text,
.out-error {
  font-family: "SFMono-Regular", Consolas, monospace;
  white-space: pre-wrap;
  line-height: 1.55;
}
.out-text {
  color: #c9d1d9;
}
.out-error {
  color: #f85149;
}

/* TODO .out-repr's styles were removed from the R file by vibe, but I'm not sure why */
.out-repr {
  font-family: monospace;
  color: #79c0ff;
}

.out-figure img {
  max-width: 100%;
  border-radius: 4px;
  display: block;
}

/* ── Loading overlay ── */
#overlay {
  position: fixed;
  inset: 0;
  background: #0d1117ee;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 200;
}
#overlay.hidden {
  display: none;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #21262d;
  border-top-color: #58a6ff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.overlay-text {
  color: #58a6ff;
  font-size: 0.9rem;
}

/* ── Interact widget ── */
.iw-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 10px 12px;
  background: #161b22;
  border-radius: 4px;
  margin-bottom: 4px;
}
.iw-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}
.iw-name {
  min-width: 40px;
  color: #8b949e;
}
.iw-label input[type="range"] {
  width: 120px;
  accent-color: #58a6ff;
}
.iw-label select {
  background: #21262d;
  color: #c9d1d9;
  border: 1px solid #30363d;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.8rem;
}
.iw-val {
  min-width: 38px;
  text-align: right;
  color: #58a6ff;
  font-size: 0.78rem;
  font-family: monospace;
}

/* ── History ── */
#history-section {
  max-width: 860px;
  margin: 0 auto 40px;
  padding: 0 16px;
}
.hist-header {
  font-size: 0.7rem;
  font-weight: 600;
  color: #484f58;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.hist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}
.hist-current .hist-name {
  color: #c9d1d9;
}
.hist-current .hist-hash {
  color: #8b949e;
}
.hist-name {
  color: #8b949e;
}
.hist-hash {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  color: #484f58;
  background: #21262d;
  padding: 1px 6px;
  border-radius: 3px;
}

/* ── Toast ── */
#toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: #3fb950;
  color: #0d1117;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
#toast.show {
  opacity: 1;
}

