:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #1f1f1f;
  --muted: #9b9b9b;
  --hair: #e9e9e9;
  --font-ui: Verdana, Tahoma, Arial, sans-serif;
  --font-display: "Trebuchet MS", Verdana, Tahoma, sans-serif;
  --font-mono: "Lucida Console", Monaco, monospace;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: min(100% - 56px, 1000px);
  margin: 0 auto;
  padding: 64px 0 96px;
}

.topline {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: -14px 0 30px;
  padding: 14px 0 10px;
  border-bottom: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

.brand {
  flex: 0 0 auto;
  display: inline-block;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;
}

.tagline {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  overflow: hidden;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

.hair {
  display: none;
}

.post-frame {
  min-width: 0;
}

.reader {
  min-width: 0;
}

.post-head {
  max-width: 720px;
  margin: 0 auto 38px;
}

.title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 12px;
}

.title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: 0;
}

.post-date {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0;
}

.version-control {
  position: relative;
  width: 205px;
  margin: 0 0 0 auto;
}

.version-control::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 4px;
  height: 4px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.version-select {
  appearance: none;
  width: 100%;
  min-height: 23px;
  margin: 0;
  padding: 0 22px 0 7px;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
}

.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 720px;
  margin: 56px auto 0;
}

.post-nav a {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0;
  line-height: 1.5;
  text-decoration: none;
  text-transform: uppercase;
}

.post-nav a:hover,
.post-nav a:focus-visible {
  color: var(--ink);
  outline: none;
}

.post-nav span {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.post-nav__next {
  text-align: right;
}

.version-select:hover,
.version-select:focus-visible {
  border-color: var(--ink);
  outline: none;
}

.md-body {
  display: grid;
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
  counter-reset: md-section;
}

.md-body h1 {
  counter-increment: md-section;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 34px 0 2px;
  padding-top: 18px;
  border-top: 1px solid #dcdcdc;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.22;
  letter-spacing: 0;
}

.md-body h1::before {
  content: counter(md-section, decimal-leading-zero);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.25;
}

.md-body h2 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0;
}

.md-body h3 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0;
}

.md-body p,
.md-body ul,
.md-body ol {
  margin: 0;
  color: #3f3f3f;
  font-size: 15px;
  line-height: 1.82;
}

.md-body .md-lede::first-letter {
  float: left;
  margin: 0.1em 0.16em 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 3.15em;
  font-weight: 700;
  line-height: 0.82;
}

.md-body ul,
.md-body ol {
  padding-left: 18px;
}

.md-body code {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
}

.md-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.md-footnote-ref {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 1.4em;
  padding: 0 0.18em;
  border-radius: 3px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.76em;
  line-height: 1;
  text-decoration: none;
  vertical-align: super;
}

.md-footnote-ref:hover,
.md-footnote-ref:focus-visible {
  background: #efefef;
  outline: none;
}

.md-footnote-ref:hover::after,
.md-footnote-ref:focus-visible::after {
  content: attr(data-preview);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 24;
  width: min(280px, 72vw);
  padding: 9px 10px;
  border: 1px solid #3c3c3c;
  background: #202020;
  color: #f4f4f4;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
  text-align: left;
  text-transform: none;
  transform: translateX(-50%);
}

.md-footnote-ref:hover::before,
.md-footnote-ref:focus-visible::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  z-index: 25;
  width: 8px;
  height: 8px;
  border-right: 1px solid #3c3c3c;
  border-bottom: 1px solid #3c3c3c;
  background: #202020;
  transform: translateX(-50%) rotate(45deg);
}

.md-body blockquote {
  margin: 4px 0;
  padding-left: 14px;
  border-left: 1px solid var(--hair);
  color: #555;
  font-size: 15px;
  line-height: 1.75;
}

.md-footnote {
  scroll-margin-top: 88px;
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
}

.md-footnotes {
  display: grid;
  gap: 16px;
  margin-top: 34px;
  padding: 18px 18px 20px;
  border-top: 2px solid var(--ink);
  background: #f4f4f1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.md-footnotes-head {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.md-footnotes-head::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--hair);
}

.md-footnotes .md-footnote:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.md-footnote:target {
  background: linear-gradient(90deg, rgba(31, 31, 31, 0.045), transparent 70%);
}

.md-footnote h3 {
  display: flex;
  gap: 7px;
  align-items: baseline;
  margin: 0;
}

.md-footnote-marker {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
}

.md-figure {
  display: grid;
  place-items: center;
  margin: 8px 0 10px;
}

.md-figure img {
  width: min(100%, 560px);
  max-height: 320px;
  object-fit: contain;
}

.md-figure figcaption,
.md-code-block figcaption,
.md-body .md-caption {
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0;
  text-align: center;
}

.md-body .md-caption {
  margin: -10px 0 6px;
  line-height: 1.55;
}

.md-code-block {
  margin: 4px 0;
}

.md-code-block pre {
  overflow-x: auto;
  margin: 0;
  padding: 14px;
  background: #f7f7f7;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.65;
}

.md-table-wrap {
  overflow-x: auto;
  margin: 4px 0;
}

.md-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.md-table-wrap th,
.md-table-wrap td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--hair);
  text-align: left;
  vertical-align: top;
}

.md-table-wrap th {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

.md-rule {
  width: 100%;
  height: 0;
  margin: 8px 0;
  border: 0;
  border-top: 1px solid var(--hair);
}

.embed {
  padding: 10px 0;
}

.embed-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.embed-label {
  min-width: 120px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.embed button,
.embed input[type="range"] {
  accent-color: var(--ink);
}

.embed button {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
}

.embed button[aria-pressed="true"],
.embed button:hover,
.embed button:focus-visible {
  color: var(--ink);
  outline: none;
}

.led-preview {
  width: 48px;
  height: 48px;
  background: radial-gradient(circle at center, hsla(var(--led-hue, 210), 95%, 62%, var(--led-alpha, 0.45)) 0 35%, transparent 56%);
}

.pin-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.voice-wave {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 3px;
  width: min(100%, 330px);
  height: 54px;
  align-items: center;
}

.voice-wave span {
  display: block;
  height: var(--h);
  border-left: 1px solid #aaa;
}

.voice-wave[data-live="true"] span:nth-child(odd) {
  border-color: var(--ink);
  transform: scaleY(1.28);
}

.check-meter {
  flex: 1;
  min-width: 170px;
  height: 4px;
  background: #ededed;
}

.check-meter span {
  display: block;
  width: var(--done, 0%);
  height: 100%;
  background: var(--ink);
  transition: width 0.16s ease;
}

.vibe-interaction {
  --vibe-line: #dedede;
}

.vibe-interaction code,
.vibe-interaction pre {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0;
}

.vibe-interaction pre {
  margin: 0;
  white-space: pre-wrap;
}

.vibe-flow,
.vibe-formula-row,
.vibe-prompt-row {
  align-items: center;
  gap: 10px;
}

.vibe-node {
  display: grid;
  gap: 5px;
  min-width: 156px;
  padding: 8px 0;
  border-top: 1px solid var(--vibe-line);
  border-bottom: 1px solid var(--vibe-line);
}

.vibe-node-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.vibe-node[data-node="mcp"] {
  min-width: 220px;
}

.vibe-arrow {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.vibe-controls {
  gap: 12px;
}

.vibe-controls code {
  min-width: 78px;
  color: var(--muted);
}

.vibe-photo-motion {
  display: grid;
  gap: 9px;
  padding: 8px 0 14px;
}

.vibe-photo-stage {
  --device-top: 6.43%;
  --device-height: 85.71%;
  --device-right: 41.43%;
  --device-mid: 49.29%;
  --power-left: 36%;
  --power-top: 79%;
  --power-size: 34px;
  --mcp-right: 18px;
  --mcp-widget-width: min(300px, calc(50% - 26px));
  --mcp-line-end: calc(var(--mcp-right) + var(--mcp-widget-width));
  --mcp-line-overlap: 124px;
  --mcp-signal-idle-width: 46px;
  --mcp-signal-send-width: 104px;
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f7f7f7;
}

.vibe-photo-stage canvas {
  display: block;
  width: 100%;
  height: auto;
}

.vibe-power-led {
  position: absolute;
  left: var(--power-left);
  top: var(--power-top);
  z-index: 1;
  width: var(--power-size);
  height: var(--power-size);
  border-radius: 999px;
  background:
    radial-gradient(circle at 43% 35%, rgba(232, 255, 229, 0.34) 0 8%, rgba(111, 244, 122, 0.24) 18%, rgba(36, 178, 54, 0.18) 38%, rgba(26, 118, 36, 0.08) 58%, rgba(26, 118, 36, 0) 76%);
  filter: saturate(0.96);
  opacity: 0.86;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.vibe-power-led::after {
  content: "";
  position: absolute;
  left: 42%;
  top: 35%;
  width: 16%;
  height: 16%;
  border-radius: 999px;
  background: rgba(235, 255, 232, 0.14);
  transform: translate(-50%, -50%);
}

.vibe-photo-stage::before,
.vibe-photo-stage::after {
  content: "";
  position: absolute;
  top: var(--device-mid);
  z-index: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.vibe-photo-stage::before {
  left: var(--device-right);
  right: calc(var(--mcp-line-end) - var(--mcp-line-overlap));
  height: 14px;
  background:
    linear-gradient(90deg, rgba(10, 10, 12, 0.62), rgba(14, 14, 16, 0.7) 34%, rgba(255, 255, 255, 0.66) 88%, rgba(255, 255, 255, 0.78)) 0 50% / 100% 2px no-repeat,
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14) 72%, rgba(255, 255, 255, 0.28)) 0 50% / 100% 4px no-repeat;
  opacity: 0.94;
}

.vibe-photo-stage::after {
  left: var(--device-right);
  width: var(--mcp-signal-idle-width);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12) 18%, rgba(255, 255, 255, 0.94) 48%, rgba(255, 255, 255, 0.36) 70%, transparent);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.42);
  opacity: 0;
  animation: vibe-mcp-signal-idle 5.2s cubic-bezier(0.42, 0, 0.2, 1) infinite;
}

.vibe-photo-stage.is-mcp-sending::after {
  width: var(--mcp-signal-send-width);
  height: 3px;
  box-shadow: 0 0 11px rgba(255, 255, 255, 0.6);
  animation: vibe-mcp-signal-send 0.82s cubic-bezier(0.16, 0.82, 0.2, 1) 1;
}

.vibe-mcp-widget {
  position: absolute;
  top: var(--device-top);
  right: var(--mcp-right);
  z-index: 2;
  display: grid;
  align-content: start;
  gap: 10px;
  width: var(--mcp-widget-width);
  min-width: 252px;
  height: var(--device-height);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 255, 255, 0.16), transparent 36%),
    linear-gradient(145deg, rgba(8, 8, 10, 0.82), rgba(24, 24, 28, 0.62)),
    rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.88);
}

.vibe-mcp-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.vibe-mcp-topline span,
.vibe-mcp-topline code {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.vibe-mcp-topline span {
  color: rgba(255, 255, 255, 0.94);
}

.vibe-mcp-topline code {
  color: rgba(255, 255, 255, 0.5);
}

.vibe-mcp-widget[data-valid="false"] .vibe-mcp-topline code {
  color: rgba(255, 116, 102, 0.82);
}

.vibe-mcp-section {
  display: grid;
  gap: 7px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.vibe-mcp-section-head {
  color: rgba(255, 255, 255, 0.48);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.vibe-mcp-table {
  display: grid;
  gap: 5px;
  margin: 0;
}

.vibe-mcp-table div,
.vibe-mcp-input-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 9px;
  align-items: baseline;
}

.vibe-mcp-table dt,
.vibe-mcp-input-row span {
  color: rgba(255, 255, 255, 0.44);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: uppercase;
}

.vibe-mcp-table dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.45;
}

.vibe-mcp-input-row input {
  appearance: none;
  width: 100%;
  min-width: 0;
  height: 25px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  caret-color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-mono);
  font-size: 10px;
  outline: none;
}

.vibe-mcp-input-row input:focus {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.09);
}

.vibe-mcp-widget[data-valid="false"] .vibe-mcp-input-row input {
  border-color: rgba(255, 74, 61, 0.6);
}

.vibe-mcp-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-left: 83px;
}

.vibe-mcp-examples button {
  appearance: none;
  height: 21px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.52);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0;
  cursor: pointer;
}

.vibe-mcp-examples button:hover,
.vibe-mcp-examples button:focus-visible,
.vibe-mcp-examples button[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.9);
  outline: none;
}

.vibe-mcp-examples button[data-invalid-example="true"] {
  color: rgba(255, 145, 132, 0.64);
}

.vibe-formula-widget .vibe-formula-table div,
.vibe-formula-widget .vibe-formula-var {
  grid-template-columns: 38px minmax(0, 1fr);
}

.vibe-formula-widget .vibe-formula-table dd {
  min-width: 0;
}

.vibe-formula-widget .vibe-formula-table code {
  display: block;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-size: 8px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vibe-formula-widget .vibe-formula-examples {
  padding-left: 47px;
}

.vibe-formula-widget .vibe-formula-var {
  align-items: center;
}

.vibe-formula-widget .vibe-formula-var[hidden] {
  display: none;
}

.vibe-formula-widget .vibe-formula-var input[type="range"] {
  appearance: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: rgba(255, 255, 255, 0.72);
}

.vibe-formula-map-widget {
  gap: 8px;
}

.vibe-formula-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.vibe-formula-map-head span,
.vibe-formula-map-head code {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.vibe-formula-map-head span {
  color: rgba(255, 255, 255, 0.94);
}

.vibe-formula-map-head code {
  color: rgba(255, 255, 255, 0.52);
}

.vibe-formula-equations,
.vibe-formula-probe {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-top: 8px;
}

.vibe-formula-presets {
  margin-top: 1px;
  padding: 8px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.vibe-formula-presets button {
  height: 23px;
  padding: 0 8px;
  font-size: 9px;
}

.vibe-formula-probe {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.vibe-formula-equations div,
.vibe-formula-probe div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.vibe-formula-equations dt,
.vibe-formula-probe dt {
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
}

.vibe-formula-equations dd,
.vibe-formula-probe dd {
  min-width: 0;
  margin: 0;
}

.vibe-formula-equations code,
.vibe-formula-probe code {
  display: block;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.84);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vibe-formula-samples {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 3px;
  padding-top: 2px;
}

.vibe-formula-samples button {
  appearance: none;
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background:
    radial-gradient(circle at 50% 42%, var(--sample-hot, rgba(255, 255, 255, 0.28)) 0 12%, var(--sample-fill, rgba(255, 255, 255, 0.12)) 36%, rgba(255, 255, 255, 0.04) 72%),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 10px var(--sample-glow, rgba(255, 255, 255, 0));
  cursor: pointer;
  outline: none;
}

.vibe-formula-samples button[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.48);
}

.vibe-formula-samples button span {
  position: absolute;
  right: 2px;
  bottom: 1px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 1;
}

.vibe-formula-probe {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  padding-top: 8px;
}

.vibe-formula-probe div {
  grid-template-columns: 38px minmax(0, 1fr);
}

.vibe-sensor-photo .vibe-photo-stage {
  --mcp-widget-width: min(360px, calc(61% - 22px));
  overflow: visible;
}

.vibe-sensor-widget {
  box-sizing: border-box;
  top: 8px;
  z-index: 12;
  gap: 7px;
  height: calc(100% - 16px);
  overflow: visible;
  padding: 10px;
  border-color: rgba(160, 226, 255, 0.24);
  background:
    linear-gradient(160deg, rgba(12, 16, 20, 0.9), rgba(13, 18, 24, 0.72)),
    rgba(0, 0, 0, 0.58);
}

.vibe-sensor-widget .vibe-formula-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding-top: 7px;
}

.vibe-sensor-widget .vibe-formula-presets button {
  width: 100%;
  min-width: 0;
  height: 26px;
  padding: 0 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vibe-sensor-equations {
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding-top: 6px;
}

.vibe-sensor-equations div {
  grid-template-columns: 22px minmax(0, 1fr);
}

.vibe-sensor-panels {
  display: grid;
  min-height: 66px;
  padding: 7px;
  border: 1px solid rgba(210, 238, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
}

.vibe-sensor-panel {
  display: grid;
  gap: 7px;
  align-content: center;
}

.vibe-sensor-panel[hidden] {
  display: none;
}

.vibe-sensor-voice-strip {
  display: grid;
  min-width: 0;
}

.vibe-sensor-slider span,
.vibe-sensor-slider code {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.vibe-sensor-wave-button {
  appearance: none;
  display: grid;
  align-items: center;
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 10px;
  border: 1px solid rgba(160, 226, 255, 0.22);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(160, 226, 255, 0.06), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.vibe-sensor-wave-button:hover,
.vibe-sensor-wave-button:focus-visible,
.vibe-sensor-wave-button.is-playing {
  border-color: rgba(160, 226, 255, 0.42);
  background:
    linear-gradient(90deg, rgba(160, 226, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.045);
  outline: none;
}

.vibe-sensor-waveform {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: 4px;
  align-items: center;
  height: 34px;
}

.vibe-sensor-waveform span {
  display: block;
  width: 100%;
  height: var(--wave-h);
  min-height: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(235, 248, 255, 0.92), rgba(160, 226, 255, 0.38));
  box-shadow: 0 0 9px rgba(160, 226, 255, 0.18);
  opacity: 0.58;
  transform-origin: 50% 50%;
}

.vibe-sensor-wave-button.is-playing .vibe-sensor-waveform span {
  animation: vibe-sensor-wave 0.82s ease-out 1;
  animation-delay: var(--wave-d);
}

.vibe-sensor-slider {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 52px;
  gap: 8px;
  align-items: center;
}

.vibe-sensor-slider span {
  color: rgba(190, 226, 255, 0.62);
}

.vibe-sensor-slider code {
  color: rgba(255, 255, 255, 0.82);
  text-align: right;
}

.vibe-sensor-slider input[type="range"] {
  width: 100%;
  min-width: 0;
  accent-color: rgba(160, 226, 255, 0.78);
}

.vibe-sensor-probe {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px 8px;
  padding-top: 7px;
}

.vibe-sensor-probe div {
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}

.vibe-sensor-probe dt {
  font-size: 8px;
}

.vibe-sensor-probe code {
  font-size: 8px;
}

.vibe-photo-status {
  gap: 10px;
}

.vibe-photo-status code {
  color: var(--muted);
}

.vibe-led-ring {
  position: relative;
  width: 90px;
  height: 90px;
  flex: 0 0 90px;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--led-soft, rgba(31, 31, 31, 0.08)) 0 31%, transparent 33%);
}

.vibe-led-ring::after {
  content: "";
  position: absolute;
  inset: 34px;
  border: 1px solid var(--vibe-line);
  border-radius: 50%;
}

.vibe-led-ring span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot-color, #d9d9d9);
  box-shadow: 0 0 0 1px rgba(31, 31, 31, 0.08), 0 0 12px var(--dot-color, transparent);
  opacity: var(--dot-alpha, 1);
  transform: translate(-50%, -50%) scale(var(--dot-scale, 1));
}

.vibe-interaction[data-stage="thinking"] .vibe-node[data-node="llm"],
.vibe-interaction[data-stage="validating"] .vibe-node[data-node="mcp"],
.vibe-interaction[data-stage="accepted"] .vibe-led-ring {
  border-color: var(--ink);
}

.vibe-interaction[data-stage="accepted"] .vibe-led-ring span {
  animation: vibe-led-blip 0.38s ease-out 1;
}

.vibe-formula-row input[type="range"],
.vibe-prompt-row input[type="range"] {
  width: min(190px, 100%);
}

.vibe-led-ring--formula,
.vibe-led-ring--sensor {
  width: 74px;
  height: 74px;
  flex-basis: 74px;
}

.vibe-led-ring--formula::after,
.vibe-led-ring--sensor::after {
  inset: 28px;
}

.vibe-prompt-row pre {
  min-width: min(100%, 270px);
  padding: 8px 0;
  border-top: 1px solid var(--vibe-line);
  border-bottom: 1px solid var(--vibe-line);
}

.vibe-prompt-lab {
  display: grid;
  gap: 10px;
  padding: 8px 0 14px;
}

.vibe-prompt-photo .vibe-photo-stage {
  --device-top: 0.8%;
  --device-height: 98.5%;
  --mcp-widget-width: min(360px, calc(61% - 22px));
  overflow: visible;
}

.vibe-prompt-widget {
  box-sizing: border-box;
  top: 8px;
  z-index: 12;
  gap: 8px;
  height: calc(100% - 16px);
  overflow: visible;
  padding: 10px;
  border-color: rgba(160, 226, 255, 0.24);
  background:
    linear-gradient(160deg, rgba(12, 16, 20, 0.9), rgba(13, 18, 24, 0.72)),
    rgba(0, 0, 0, 0.58);
}

.vibe-prompt-widget .vibe-formula-map-head {
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.vibe-prompt-widget .vibe-formula-map-head code {
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.vibe-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.vibe-prompt-actions button {
  appearance: none;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--vibe-line);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
}

.vibe-prompt-actions button:hover,
.vibe-prompt-actions button:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
  outline: none;
}

.vibe-prompt-panel {
  display: grid;
  gap: 12px;
}

.vibe-prompt-panel[hidden] {
  display: none;
}

.vibe-prompt-field {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.vibe-prompt-field span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.vibe-prompt-field input,
.vibe-prompt-lab textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--vibe-line);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  outline: none;
}

.vibe-prompt-field input {
  height: 28px;
  padding: 0 8px;
}

.vibe-prompt-lab textarea {
  resize: vertical;
  padding: 9px;
}

.vibe-prompt-field input:focus,
.vibe-prompt-lab textarea:focus {
  border-color: var(--ink);
}

.vibe-prompt-actions code {
  min-width: 78px;
  color: var(--muted);
}

.vibe-prompt-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid var(--vibe-line);
}

.vibe-prompt-summary div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.vibe-prompt-summary dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.vibe-prompt-summary dd {
  min-width: 0;
  margin: 0;
}

.vibe-prompt-summary code {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vibe-prompt-lab [data-normalized] {
  min-height: 84px;
  padding: 8px 0;
  border-top: 1px solid var(--vibe-line);
  border-bottom: 1px solid var(--vibe-line);
}

.vibe-prompt-bars {
  width: 132px;
  height: 42px;
}

.vibe-prompt-widget .vibe-prompt-tabs {
  display: none;
}

.vibe-prompt-widget .vibe-prompt-actions button {
  min-height: 32px;
  padding: 0 12px;
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
}

.vibe-prompt-widget .vibe-prompt-actions button:hover,
.vibe-prompt-widget .vibe-prompt-actions button:focus-visible {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.92);
}

.vibe-prompt-widget .vibe-prompt-panel {
  gap: 7px;
  min-height: 0;
}

.vibe-prompt-widget .vibe-prompt-field {
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.vibe-prompt-widget .vibe-prompt-field span {
  color: rgba(190, 226, 255, 0.62);
  font-size: 9px;
}

.vibe-prompt-widget .vibe-prompt-field input,
.vibe-prompt-widget textarea {
  border-color: rgba(210, 238, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.92);
  caret-color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  line-height: 1.42;
  outline: none;
}

.vibe-prompt-widget .vibe-prompt-field input {
  height: 32px;
  padding: 0 11px;
}

.vibe-prompt-widget textarea {
  min-height: 68px;
  max-height: 68px;
  overflow: auto;
  resize: none;
  padding: 11px;
}

.vibe-prompt-widget .vibe-prompt-paste {
  align-items: start;
}

.vibe-prompt-widget .vibe-prompt-field input:focus,
.vibe-prompt-widget textarea:focus {
  border-color: rgba(255, 255, 255, 0.34);
}

.vibe-prompt-widget .vibe-prompt-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vibe-prompt-widget .vibe-prompt-actions button {
  width: 100%;
  min-height: 36px;
  border-color: rgba(160, 226, 255, 0.3);
  background: rgba(160, 226, 255, 0.1);
  color: rgba(235, 248, 255, 0.9);
}

.vibe-prompt-sample {
  display: grid;
  gap: 0;
  padding: 7px;
  border: 1px solid rgba(210, 238, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
}

.vibe-prompt-sample-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.vibe-prompt-sample-head span,
.vibe-prompt-sample-head button,
.vibe-prompt-sample code {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0;
}

.vibe-prompt-sample-head span {
  min-width: 0;
  overflow: hidden;
  color: rgba(190, 226, 255, 0.62);
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}

.vibe-prompt-sample-head button {
  appearance: none;
  flex: 0 0 auto;
  min-height: 23px;
  padding: 0 8px;
  border: 1px solid rgba(160, 226, 255, 0.24);
  border-radius: 999px;
  background: rgba(160, 226, 255, 0.08);
  color: rgba(235, 248, 255, 0.78);
  text-transform: uppercase;
  cursor: pointer;
}

.vibe-prompt-sample-head button:hover,
.vibe-prompt-sample-head button:focus-visible {
  border-color: rgba(160, 226, 255, 0.42);
  color: rgba(255, 255, 255, 0.94);
  outline: none;
}

.vibe-prompt-sample code {
  display: block;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.74);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vibe-prompt-popover {
  position: absolute;
  inset: 14px;
  z-index: 5;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(190, 226, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(8, 11, 15, 0.96), rgba(18, 25, 32, 0.94)),
    rgba(0, 0, 0, 0.88);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.vibe-prompt-popover[hidden] {
  display: none;
}

.vibe-prompt-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vibe-prompt-popover-head span,
.vibe-prompt-popover-head button {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.vibe-prompt-popover-head span {
  color: rgba(235, 248, 255, 0.9);
}

.vibe-prompt-popover-head button {
  appearance: none;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
}

.vibe-prompt-popover-head button:hover,
.vibe-prompt-popover-head button:focus-visible {
  border-color: rgba(190, 226, 255, 0.34);
  color: rgba(255, 255, 255, 0.9);
  outline: none;
}

.vibe-prompt-widget .vibe-prompt-popover textarea {
  min-height: 0;
  max-height: none;
  height: 100%;
  overflow: auto;
  resize: none;
}

.vibe-prompt-widget .vibe-prompt-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 8px;
  padding-top: 7px;
  border-color: rgba(255, 255, 255, 0.12);
}

.vibe-prompt-widget .vibe-prompt-summary div {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 6px;
}

.vibe-prompt-widget .vibe-prompt-summary dt {
  color: rgba(255, 255, 255, 0.42);
  font-size: 8px;
}

.vibe-prompt-widget .vibe-prompt-summary code,
.vibe-prompt-widget [data-normalized] {
  color: rgba(255, 255, 255, 0.84);
  font-size: 8px;
}

.vibe-prompt-widget [data-normalized] {
  min-height: 0;
  max-height: 38px;
  overflow: hidden;
  padding: 6px 0;
  border-color: rgba(255, 255, 255, 0.12);
}

.vibe-prompt-widget .vibe-prompt-bars {
  width: 100%;
  height: 24px;
}

.vibe-prompt-widget .vibe-prompt-bars span {
  border-color: rgba(255, 255, 255, 0.72);
}

.vibe-bars {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  align-items: end;
  width: 96px;
  height: 40px;
}

.vibe-bars span {
  display: block;
  height: var(--h);
  border-left: 1px solid var(--ink);
  opacity: 0.72;
}

@keyframes vibe-led-blip {
  0% {
    transform: translate(-50%, -50%) scale(0.82);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes vibe-sensor-wave {
  0%,
  100% {
    opacity: 0.5;
    transform: scaleY(0.72);
  }

  34% {
    opacity: 1;
    transform: scaleY(1.42);
  }

  62% {
    opacity: 0.76;
    transform: scaleY(0.9);
  }
}

@keyframes vibe-mcp-signal-idle {
  0% {
    left: calc(100% - var(--mcp-line-end) - var(--mcp-signal-idle-width) + var(--mcp-line-overlap));
    opacity: 0;
  }

  18%,
  56% {
    opacity: 0.32;
  }

  100% {
    left: var(--device-right);
    opacity: 0;
  }
}

@keyframes vibe-mcp-signal-send {
  0% {
    left: calc(100% - var(--mcp-line-end) - var(--mcp-signal-send-width) + var(--mcp-line-overlap));
    opacity: 0;
  }

  10%,
  78% {
    opacity: 0.9;
  }

  100% {
    left: var(--device-right);
    opacity: 0;
  }
}

@media (max-width: 500px) {
  .page {
    width: min(100% - 36px, 1000px);
    padding-top: 44px;
  }

  .topline {
    margin-bottom: 22px;
  }

  .title {
    font-size: 28px;
  }

  .post-head {
    margin-bottom: 32px;
  }

  .version-control {
    width: min(100%, 205px);
    margin-left: auto;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

  .post-nav__next {
    text-align: left;
  }

  .vibe-node,
  .vibe-node[data-node="mcp"],
  .vibe-prompt-row pre {
    width: 100%;
    min-width: 0;
  }

  .vibe-arrow {
    display: none;
  }
}

@media (max-width: 760px) {
  .vibe-photo-stage {
    display: grid;
  }

  .vibe-photo-stage::before,
  .vibe-photo-stage::after {
    display: none;
  }

  .vibe-mcp-widget {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    height: auto;
    margin: 0;
    border-right: 0;
    border-left: 0;
  }

}
