.project-page-lingbot {
  background:
    radial-gradient(circle at 15% 12%, rgba(99, 230, 190, 0.1), transparent 30%),
    radial-gradient(circle at 86% 16%, rgba(138, 247, 255, 0.1), transparent 28%),
    radial-gradient(circle at 48% 92%, rgba(247, 178, 103, 0.07), transparent 36%),
    linear-gradient(180deg, #07111a 0%, #071812 54%, #08111a 100%);
}

.project-lingbot {
  background:
    radial-gradient(circle at 18% 14%, rgba(99, 230, 190, 0.12), transparent 36%),
    radial-gradient(circle at 88% 70%, rgba(138, 247, 255, 0.09), transparent 40%),
    radial-gradient(circle at 54% 90%, rgba(247, 178, 103, 0.07), transparent 42%),
    var(--panel);
}

.lingbot-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  min-height: 100vh;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.lingbot-hero h1 {
  max-width: 10.8ch;
  margin: 0.85rem 0 0;
  color: var(--surface-text);
  font-size: clamp(2.65rem, 5.6vw, 5.45rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-shadow: var(--text-shadow-strong);
}

.lingbot-credit {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: var(--surface-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.lingbot-app-panel,
.lingbot-prose,
.lingbot-note,
.lingbot-flow-panel,
.lingbot-source-panel,
.lingbot-roadmap-panel,
.lingbot-teaser-frame {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.lingbot-app-panel {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
  padding: 1rem;
  border-radius: 1.4rem;
  background:
    radial-gradient(circle at 20% 12%, rgba(99, 230, 190, 0.1), transparent 40%),
    radial-gradient(circle at 88% 88%, rgba(138, 247, 255, 0.08), transparent 42%),
    var(--panel);
}

.lingbot-app-top,
.lingbot-endpoint-row,
.lingbot-control-row,
.lingbot-metrics,
.lingbot-command-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.lingbot-app-top {
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.22);
  color: var(--surface-text);
  font-family: var(--font-kicker);
  font-size: 0.82rem;
}

.lingbot-app-top span:last-child,
.lingbot-ready-dot {
  color: var(--accent);
}

.lingbot-endpoint-row {
  justify-content: flex-start;
}

.lingbot-endpoint-field {
  display: grid;
  flex: 1 1 18rem;
  gap: 0.35rem;
  min-width: min(100%, 18rem);
  color: var(--surface-muted);
  font-family: var(--font-kicker);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.lingbot-token-field {
  flex: 0 1 12rem;
  min-width: min(100%, 12rem);
}

.lingbot-endpoint-field input {
  width: 100%;
  min-height: 2.65rem;
  min-width: 0;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(233, 244, 255, 0.14);
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.2);
  color: var(--surface-text);
  font: inherit;
  font-family: var(--font-body);
  font-size: 0.88rem;
  text-transform: none;
}

.lingbot-endpoint-field input::placeholder {
  color: rgba(215, 228, 240, 0.48);
}

.lingbot-endpoint-mode {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  padding: 0.62rem 0.75rem;
  border: 1px solid rgba(233, 244, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--surface-muted);
  font-size: 0.84rem;
}

.lingbot-endpoint-mode.is-cloud {
  color: var(--accent);
}

.lingbot-endpoint-contract {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.2rem, 1fr));
  gap: 0.55rem;
  padding: 0.65rem;
  border: 1px solid rgba(233, 244, 255, 0.1);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.035);
}

.lingbot-endpoint-contract[hidden] {
  display: none;
}

.lingbot-endpoint-contract span {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.55rem 0.6rem;
  border: 1px solid rgba(233, 244, 255, 0.08);
  border-radius: 0.78rem;
  background: rgba(0, 0, 0, 0.12);
}

.lingbot-endpoint-contract strong {
  overflow-wrap: anywhere;
  color: var(--surface-text);
  font-size: 0.82rem;
}

.lingbot-endpoint-contract em {
  overflow-wrap: anywhere;
  color: var(--surface-muted);
  font-size: 0.72rem;
  font-style: normal;
  line-height: 1.3;
}

.lingbot-runtime-diagnostics {
  display: grid;
  gap: 0.65rem;
  padding: 0.72rem;
  border: 1px solid rgba(138, 247, 255, 0.14);
  border-radius: 0.95rem;
  background: rgba(138, 247, 255, 0.045);
}

.lingbot-runtime-diagnostics[hidden] {
  display: none;
}

.lingbot-runtime-diagnostics-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: space-between;
}

.lingbot-runtime-diagnostics-top span {
  color: var(--surface-muted);
  font-family: var(--font-kicker);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.lingbot-runtime-diagnostics-top strong {
  overflow-wrap: anywhere;
  color: var(--surface-text);
  font-size: 0.9rem;
}

.lingbot-runtime-diagnostics-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.8rem, 1fr));
  gap: 0.5rem;
}

.lingbot-runtime-diagnostics-list span {
  display: grid;
  min-width: 0;
  gap: 0.25rem;
  padding: 0.58rem 0.64rem;
  border: 1px solid rgba(233, 244, 255, 0.1);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
}

.lingbot-runtime-diagnostics-list span.is-ready {
  border-color: rgba(99, 230, 190, 0.22);
  background: rgba(99, 230, 190, 0.07);
}

.lingbot-runtime-diagnostics-list span.is-blocked {
  border-color: rgba(255, 114, 114, 0.26);
  background: rgba(255, 114, 114, 0.08);
}

.lingbot-runtime-diagnostics-list strong {
  overflow-wrap: anywhere;
  color: var(--surface-text);
  font-size: 0.8rem;
}

.lingbot-runtime-diagnostics-list em {
  overflow-wrap: anywhere;
  color: var(--surface-muted);
  font-size: 0.72rem;
  font-style: normal;
  line-height: 1.35;
}

.lingbot-phone-handoff {
  display: grid;
  gap: 0.65rem;
  padding: 0.7rem;
  border: 1px solid rgba(99, 230, 190, 0.18);
  border-radius: 0.95rem;
  background: rgba(99, 230, 190, 0.055);
}

.lingbot-phone-handoff[hidden] {
  display: none;
}

.lingbot-phone-handoff-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: space-between;
}

.lingbot-phone-handoff-top span {
  color: var(--accent);
  font-family: var(--font-kicker);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.lingbot-phone-handoff-top a {
  color: var(--surface-text);
  font-size: 0.82rem;
  font-weight: 700;
}

.lingbot-phone-qr {
  display: grid;
  width: min(13.6875rem, 100%);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(246, 252, 249, 0.18);
  background: #fff;
  color: #071113;
}

.lingbot-phone-qr:empty {
  display: none;
}

.lingbot-phone-qr svg {
  display: block;
  width: 100%;
  height: 100%;
  shape-rendering: crispEdges;
}

.lingbot-phone-url-field {
  flex-basis: 100%;
}

.lingbot-phone-url-field input {
  overflow: hidden;
  text-overflow: ellipsis;
}

.lingbot-phone-handoff em {
  overflow-wrap: anywhere;
  color: var(--surface-muted);
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.35;
}

.lingbot-profile-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  padding: 0.45rem;
  border: 1px solid rgba(233, 244, 255, 0.1);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.035);
}

.lingbot-profile-row > span {
  padding: 0 0.3rem;
  color: var(--surface-muted);
  font-family: var(--font-kicker);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.lingbot-profile-toggle {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid rgba(233, 244, 255, 0.1);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
}

.lingbot-profile-toggle button {
  min-height: 2.25rem;
  padding: 0.5rem 0.8rem;
  border: 0;
  background: transparent;
  color: var(--surface-muted);
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}

.lingbot-profile-toggle button.is-active {
  background: rgba(99, 230, 190, 0.15);
  color: var(--surface-text);
}

.lingbot-profile-row em {
  flex: 1 1 14rem;
  min-width: 0;
  color: var(--surface-muted);
  font-size: 0.8rem;
  font-style: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.lingbot-room-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  padding: 0.45rem;
  border: 1px solid rgba(233, 244, 255, 0.1);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.035);
}

.lingbot-room-row > span {
  padding: 0 0.3rem;
  color: var(--surface-muted);
  font-family: var(--font-kicker);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.lingbot-room-list {
  display: flex;
  flex: 1 1 28rem;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 0;
}

.lingbot-room-list label {
  display: inline-flex;
  min-height: 2.2rem;
  align-items: center;
  gap: 0.42rem;
  padding: 0.46rem 0.62rem;
  border: 1px solid rgba(233, 244, 255, 0.11);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  color: var(--surface-muted);
  font-size: 0.82rem;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

.lingbot-room-list label:has(input:checked) {
  border-color: rgba(99, 230, 190, 0.34);
  background: rgba(99, 230, 190, 0.13);
  color: var(--surface-text);
}

.lingbot-room-list input {
  width: 0.95rem;
  height: 0.95rem;
  accent-color: var(--accent);
}

.lingbot-room-row em {
  flex: 1 1 14rem;
  min-width: 0;
  color: var(--surface-muted);
  font-size: 0.8rem;
  font-style: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.lingbot-route-plan {
  display: grid;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 1px solid rgba(233, 244, 255, 0.1);
  border-radius: 0.95rem;
  background:
    linear-gradient(135deg, rgba(138, 247, 255, 0.06), transparent 45%),
    rgba(255, 255, 255, 0.035);
}

.lingbot-route-plan-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: space-between;
}

.lingbot-route-plan-top span {
  color: var(--surface-muted);
  font-family: var(--font-kicker);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.lingbot-route-plan-top strong {
  color: var(--surface-text);
  font-size: 0.9rem;
}

.lingbot-route-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.4rem, 1fr));
  gap: 0.5rem;
}

.lingbot-route-step {
  display: grid;
  min-width: 0;
  gap: 0.22rem;
  padding: 0.62rem 0.68rem;
  border: 1px solid rgba(233, 244, 255, 0.1);
  border-radius: 0.82rem;
  background: rgba(255, 255, 255, 0.045);
  color: var(--surface-muted);
}

.lingbot-route-step-top {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.lingbot-route-step strong {
  overflow-wrap: anywhere;
  color: var(--surface-text);
  font-size: 0.82rem;
}

.lingbot-route-step-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.22rem;
}

.lingbot-route-step-actions:empty {
  display: none;
}

.lingbot-route-step-actions button {
  display: inline-flex;
  width: 1.55rem;
  height: 1.55rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(233, 244, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--surface-text);
  font: inherit;
  font-size: 0.82rem;
  line-height: 1;
  cursor: pointer;
}

.lingbot-route-step-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.36;
}

.lingbot-route-step em {
  overflow-wrap: anywhere;
  font-size: 0.76rem;
  font-style: normal;
  line-height: 1.35;
}

.lingbot-route-step.is-current {
  border-color: rgba(138, 247, 255, 0.28);
  background: rgba(138, 247, 255, 0.075);
}

.lingbot-route-step.is-covered {
  border-color: rgba(99, 230, 190, 0.22);
  background: rgba(99, 230, 190, 0.07);
}

.lingbot-stage {
  position: relative;
  overflow: hidden;
  min-height: clamp(22rem, 49vw, 33rem);
  border: 1px solid rgba(233, 244, 255, 0.12);
  border-radius: 1.1rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #06100f;
  background-size: 34px 34px;
}

#house-scan-canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.lingbot-capture-preview {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #06100f;
}

.lingbot-capture-preview[hidden] {
  display: none;
}

.lingbot-scan-overlay {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.35rem;
  max-width: min(18rem, calc(100% - 2rem));
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(233, 244, 255, 0.12);
  border-radius: 0.95rem;
  background: rgba(2, 8, 15, 0.62);
  color: var(--surface-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.lingbot-scan-overlay strong {
  color: var(--surface-text);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.lingbot-control-row {
  justify-content: flex-start;
}

.lingbot-file-button,
.lingbot-action-button {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(233, 244, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--surface-text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
}

.lingbot-file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.lingbot-action-button.secondary {
  color: var(--surface-muted);
  font-weight: 560;
}

.lingbot-action-button.danger {
  border-color: rgba(255, 126, 126, 0.34);
  background: rgba(255, 126, 126, 0.1);
  color: #ffd3d3;
}

.lingbot-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.lingbot-action-button[hidden] {
  display: none;
}

.lingbot-file-name {
  color: var(--surface-muted);
  font-size: 0.88rem;
}

.lingbot-upload-progress {
  display: grid;
  gap: 0.5rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(233, 244, 255, 0.1);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
}

.lingbot-upload-progress[hidden] {
  display: none;
}

.lingbot-upload-progress-top {
  display: flex;
  min-height: 1.35rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  color: var(--surface-muted);
  font-size: 0.82rem;
}

.lingbot-upload-progress-top span {
  overflow-wrap: anywhere;
}

.lingbot-upload-progress-top strong {
  flex: 0 0 3.5rem;
  color: var(--surface-text);
  text-align: right;
}

.lingbot-upload-track {
  overflow: hidden;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
}

.lingbot-upload-track span {
  display: block;
  width: var(--upload-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #8af7ff);
  transition: width 160ms ease;
}

.lingbot-metrics {
  justify-content: flex-start;
}

.lingbot-metrics span {
  display: grid;
  gap: 0.22rem;
  min-width: 7.6rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(233, 244, 255, 0.1);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.045);
  color: var(--surface-muted);
  font-family: var(--font-kicker);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.lingbot-metrics strong {
  color: var(--surface-text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  text-transform: none;
}

.lingbot-readiness,
.lingbot-capture-coach {
  display: grid;
  gap: 0.7rem;
  padding: 0.75rem;
  border: 1px solid rgba(233, 244, 255, 0.1);
  border-radius: 0.95rem;
  background:
    radial-gradient(circle at 86% 10%, rgba(99, 230, 190, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.035);
}

.lingbot-capture-coach {
  background:
    radial-gradient(circle at 12% 10%, rgba(247, 178, 103, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.035);
}

.lingbot-capture-coach[hidden] {
  display: none;
}

.lingbot-readiness-top,
.lingbot-capture-coach-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: space-between;
}

.lingbot-readiness-top span,
.lingbot-capture-coach-top span {
  color: var(--surface-muted);
  font-family: var(--font-kicker);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.lingbot-readiness-top strong,
.lingbot-capture-coach-top strong {
  color: var(--surface-text);
  font-size: 0.9rem;
}

.lingbot-check-list,
.lingbot-coach-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.lingbot-check-list span,
.lingbot-coach-list span {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(233, 244, 255, 0.1);
  border-radius: 0.82rem;
  background: rgba(255, 255, 255, 0.045);
}

.lingbot-check-list strong,
.lingbot-coach-list strong {
  color: var(--surface-text);
  font-size: 0.82rem;
}

.lingbot-check-list em,
.lingbot-coach-list em {
  overflow-wrap: anywhere;
  color: var(--surface-muted);
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.35;
}

.lingbot-check-list .is-ready,
.lingbot-coach-list .is-ready {
  border-color: rgba(99, 230, 190, 0.22);
  background: rgba(99, 230, 190, 0.07);
}

.lingbot-check-list .is-warning,
.lingbot-coach-list .is-warning {
  border-color: rgba(247, 178, 103, 0.24);
  background: rgba(247, 178, 103, 0.07);
}

.lingbot-check-list .is-blocked,
.lingbot-coach-list .is-blocked {
  border-color: rgba(255, 114, 114, 0.25);
  background: rgba(255, 114, 114, 0.07);
}

.lingbot-artifacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  min-height: 2.7rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(233, 244, 255, 0.1);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.035);
}

.lingbot-artifacts span,
.lingbot-artifacts a {
  color: var(--surface-muted);
  font-size: 0.84rem;
}

.lingbot-artifacts a {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: 0.42rem 0.6rem;
  border: 1px solid rgba(233, 244, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--surface-text);
  font-weight: 650;
}

.lingbot-output-viewer {
  display: grid;
  gap: 0.7rem;
  padding: 0.75rem;
  border: 1px solid rgba(233, 244, 255, 0.1);
  border-radius: 0.95rem;
  background:
    radial-gradient(circle at 18% 10%, rgba(138, 247, 255, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.035);
}

.lingbot-scan-history {
  display: grid;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 1px solid rgba(233, 244, 255, 0.1);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.035);
}

.lingbot-scan-history[hidden] {
  display: none;
}

.lingbot-scan-history-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: space-between;
}

.lingbot-scan-history-top span {
  color: var(--surface-text);
  font-weight: 700;
}

.lingbot-scan-history-top button,
.lingbot-scan-history-actions button {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.6rem;
  border: 1px solid rgba(233, 244, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--surface-text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}

.lingbot-scan-history-list {
  display: grid;
  gap: 0.5rem;
}

.lingbot-scan-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid rgba(233, 244, 255, 0.1);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
}

.lingbot-scan-history-item.is-current {
  border-color: rgba(138, 247, 255, 0.24);
  background: rgba(138, 247, 255, 0.055);
}

.lingbot-scan-history-main {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.lingbot-scan-history-main strong,
.lingbot-scan-history-main span,
.lingbot-scan-history-main em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.lingbot-scan-history-main strong {
  color: var(--surface-text);
  font-size: 0.86rem;
}

.lingbot-scan-history-main span {
  color: var(--surface-muted);
  font-size: 0.78rem;
}

.lingbot-scan-history-main em {
  color: rgba(233, 244, 255, 0.62);
  font-size: 0.74rem;
  font-style: normal;
}

.lingbot-scan-history-status {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  padding: 0.18rem 0.42rem;
  border: 1px solid rgba(138, 247, 255, 0.18);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--font-kicker);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.lingbot-scan-history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.lingbot-scan-history-actions [data-scan-history-open] {
  color: var(--accent);
}

.lingbot-job-receipt {
  display: grid;
  gap: 0.7rem;
  padding: 0.75rem;
  border: 1px solid rgba(233, 244, 255, 0.1);
  border-radius: 0.95rem;
  background:
    radial-gradient(circle at 12% 12%, rgba(247, 178, 103, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.035);
}

.lingbot-job-receipt[hidden] {
  display: none;
}

.lingbot-receipt-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
}

.lingbot-receipt-top span {
  color: var(--surface-text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lingbot-receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.lingbot-receipt-actions a,
.lingbot-receipt-actions button {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: 0.42rem 0.6rem;
  border: 1px solid rgba(233, 244, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--surface-text);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
}

.lingbot-receipt-actions button[hidden] {
  display: none;
}

.lingbot-receipt-actions button.danger,
.lingbot-receipt-actions #scan-delete {
  border-color: rgba(255, 126, 126, 0.3);
  background: rgba(255, 126, 126, 0.08);
  color: #ffd3d3;
}

.lingbot-receipt-actions a:first-child {
  color: var(--accent);
}

.lingbot-receipt-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
}

.lingbot-receipt-grid div {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(233, 244, 255, 0.1);
  border-radius: 0.82rem;
  background: rgba(255, 255, 255, 0.045);
}

.lingbot-receipt-grid dt {
  color: var(--surface-muted);
  font-family: var(--font-kicker);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.lingbot-receipt-grid dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--surface-text);
  font-size: 0.84rem;
  line-height: 1.35;
}

.lingbot-receipt-events {
  display: grid;
  gap: 0.45rem;
  min-height: 2.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lingbot-receipt-events li {
  display: grid;
  grid-template-columns: minmax(4.2rem, 0.22fr) minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  min-width: 0;
  color: var(--surface-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.lingbot-receipt-events strong {
  overflow-wrap: anywhere;
  color: var(--accent);
  font-family: var(--font-kicker);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.lingbot-viewer-share {
  display: grid;
  gap: 0.65rem;
  padding: 0.7rem;
  border: 1px solid rgba(138, 247, 255, 0.16);
  border-radius: 0.82rem;
  background: rgba(138, 247, 255, 0.05);
}

.lingbot-viewer-share[hidden] {
  display: none;
}

.lingbot-viewer-share-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: space-between;
}

.lingbot-viewer-share-top span {
  color: var(--accent);
  font-family: var(--font-kicker);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.lingbot-viewer-share-top button {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: 0.42rem 0.6rem;
  border: 1px solid rgba(233, 244, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--surface-text);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
}

.lingbot-viewer-share em {
  overflow-wrap: anywhere;
  color: var(--surface-muted);
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.35;
}

.lingbot-output-viewer[hidden] {
  display: none;
}

.lingbot-viewer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
}

.lingbot-viewer-top span {
  color: var(--surface-text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lingbot-viewer-top a {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: 0.42rem 0.6rem;
  border: 1px solid rgba(233, 244, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--surface-text);
  font-size: 0.84rem;
  font-weight: 650;
}

.lingbot-viewer-controls {
  display: grid;
  gap: 0.55rem;
  padding: 0.65rem;
  border: 1px solid rgba(233, 244, 255, 0.1);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
}

.lingbot-viewer-controls[hidden] {
  display: none;
}

.lingbot-viewer-controls p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--surface-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.lingbot-viewer-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.lingbot-viewer-action-row button {
  min-height: 2rem;
  padding: 0.38rem 0.58rem;
  border: 1px solid rgba(233, 244, 255, 0.13);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.055);
  color: var(--surface-text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.lingbot-viewer-action-row button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

#scan-model-viewer,
#scan-video-viewer {
  display: block;
  width: 100%;
  height: clamp(18rem, 38vw, 30rem);
  overflow: hidden;
  border: 1px solid rgba(233, 244, 255, 0.12);
  border-radius: 0.9rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #06100f;
  background-size: 28px 28px;
}

#scan-model-viewer[hidden],
#scan-video-viewer[hidden] {
  display: none;
}

#scan-video-viewer {
  object-fit: contain;
}

#scan-viewer-note {
  margin: 0;
  color: var(--surface-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.lingbot-essay {
  padding-top: 0;
}

.lingbot-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
  gap: 1rem;
}

.lingbot-prose,
.lingbot-note,
.lingbot-flow-panel,
.lingbot-source-panel,
.lingbot-roadmap-panel {
  border-radius: 1.5rem;
  padding: 1.5rem;
}

.lingbot-prose h2,
.lingbot-source-panel h2,
.lingbot-roadmap-panel h2 {
  max-width: 18ch;
  margin: 0.65rem 0 1rem;
  color: var(--surface-text);
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.lingbot-prose p,
.lingbot-note p,
.lingbot-source-panel p,
.lingbot-roadmap-panel p {
  margin: 0;
  color: var(--surface-muted);
  font-size: 1.02rem;
  line-height: 1.78;
}

.lingbot-prose p + p,
.lingbot-source-panel p + p {
  margin-top: 1rem;
}

.lingbot-note {
  display: grid;
  align-content: start;
  gap: 1rem;
  background:
    radial-gradient(circle at 88% 10%, rgba(247, 178, 103, 0.08), transparent 36%),
    var(--panel);
}

.lingbot-note p span,
.lingbot-roadmap-panel strong {
  color: var(--surface-text);
}

.lingbot-flow-panel,
.lingbot-source-panel,
.lingbot-roadmap-panel,
.lingbot-teaser-frame {
  margin-top: 1.2rem;
}

.lingbot-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.lingbot-flow article,
.lingbot-command-card,
.lingbot-roadmap-grid article {
  border: 1px solid rgba(233, 244, 255, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.045);
}

.lingbot-flow article {
  display: grid;
  gap: 0.55rem;
  min-height: 12rem;
  align-content: start;
  padding: 1rem;
}

.lingbot-flow span,
.lingbot-command-card span {
  width: fit-content;
  padding: 0.28rem 0.45rem;
  border-radius: 999px;
  background: rgba(99, 230, 190, 0.12);
  color: var(--accent);
  font-family: var(--font-kicker);
  font-size: 0.75rem;
}

.lingbot-flow h3,
.lingbot-roadmap-grid h3 {
  margin: 0;
  color: var(--surface-text);
  letter-spacing: -0.02em;
}

.lingbot-flow h3 {
  font-size: 1.12rem;
}

.lingbot-flow p,
.lingbot-roadmap-grid p {
  margin: 0;
  color: var(--surface-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.lingbot-source-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
  gap: 1.5rem;
  background:
    radial-gradient(circle at 85% 12%, rgba(138, 247, 255, 0.08), transparent 36%),
    var(--panel);
}

.lingbot-source-panel > *,
.lingbot-command-card,
.lingbot-code-block {
  min-width: 0;
}

.lingbot-command-stack {
  display: grid;
  gap: 0.75rem;
}

.lingbot-command-card {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
}

.lingbot-command-card code,
.lingbot-code-block code {
  color: var(--surface-text);
  font-family: var(--font-kicker);
  font-size: 0.84rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.lingbot-code-block {
  overflow-x: auto;
  margin: 1rem 0 0;
  padding: 1rem;
  border: 1px solid rgba(233, 244, 255, 0.1);
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.24);
}

.lingbot-teaser-frame {
  display: grid;
  gap: 0.85rem;
  margin-left: 0;
  margin-right: 0;
  padding: 0.8rem;
  border-radius: 1.4rem;
}

.lingbot-teaser-frame img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(233, 244, 255, 0.11);
  border-radius: 1rem;
  background: #080a0f;
}

.lingbot-teaser-frame figcaption {
  margin: 0;
  color: var(--surface-muted);
  font-size: 0.92rem;
  line-height: 1.58;
}

.lingbot-roadmap-panel {
  background:
    radial-gradient(circle at 12% 18%, rgba(247, 178, 103, 0.08), transparent 36%),
    var(--panel);
}

.lingbot-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.lingbot-roadmap-grid article {
  display: grid;
  gap: 0.65rem;
  min-height: 11rem;
  align-content: start;
  padding: 1rem;
}

@media (max-width: 900px) {
  .lingbot-hero,
  .lingbot-article-grid,
  .lingbot-flow,
  .lingbot-source-panel,
  .lingbot-roadmap-grid {
    grid-template-columns: 1fr;
  }

  .lingbot-hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .lingbot-hero h1 {
    max-width: 12ch;
  }

  .lingbot-stage {
    min-height: 23rem;
  }

  .lingbot-flow article,
  .lingbot-roadmap-grid article {
    min-height: auto;
  }

  .lingbot-check-list,
  .lingbot-coach-list,
  .lingbot-endpoint-contract {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lingbot-receipt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lingbot-receipt-events li {
    grid-template-columns: 1fr;
    gap: 0.18rem;
  }

  .lingbot-scan-history-item {
    grid-template-columns: 1fr;
  }

  .lingbot-scan-history-actions {
    justify-content: flex-start;
  }

  .lingbot-file-button,
  .lingbot-action-button,
  .lingbot-file-name,
  .lingbot-endpoint-field,
  .lingbot-endpoint-mode,
  .lingbot-room-row {
    width: 100%;
  }

  .lingbot-room-list,
  .lingbot-room-row em {
    flex-basis: 100%;
  }

  .lingbot-room-list label {
    flex: 1 1 6rem;
    justify-content: center;
  }

  .lingbot-action-button[hidden] {
    display: none;
  }

  .lingbot-receipt-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .lingbot-metrics span {
    flex: 1 1 8rem;
  }
}
