/* [project]/src/app/globals.css [app-client] (css) */
:root {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  --bg: #101115;
  --surface: #17181e;
  --panel: #14151a;
  --line: #292b34;
  --text: #e9eaf0;
  --muted: #9295a4;
  --accent: #b8a3fb;
  --accent-bg: #272234;
  --green: #91bca5;
  --danger: #f19da7;
  --sidebar: 246px;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Segoe UI, system-ui, -apple-system, sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

button, input, textarea, select {
  font: inherit;
}

button, a, input, textarea, select {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button, a {
  transition: background .15s, color .15s, border-color .15s;
}

button {
  color: inherit;
  background: none;
  border: 0;
}

button:disabled {
  cursor: not-allowed;
  opacity: .4;
}

a {
  color: var(--accent);
  text-decoration: none;
}

input, textarea, select {
  color: var(--text);
  border: 1px solid var(--line);
  background: #191a20;
  border-radius: 8px;
  outline: none;
}

input, textarea {
  padding: 10px 12px;
}

select {
  max-width: 100%;
  padding: 9px 12px;
}

textarea {
  resize: vertical;
}

input::placeholder, textarea::placeholder {
  color: #727583;
}

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

button:hover:not(:disabled) {
  color: #fff;
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

h4 {
  margin-bottom: 12px;
  font-size: 14px;
}

pre, code {
  font-family: Consolas, SFMono-Regular, monospace;
  font-size: 12px;
}

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

::-webkit-scrollbar {
  width: 6px;
  height: 5px;
}

::-webkit-scrollbar-thumb {
  background: #373944;
  border-radius: 8px;
}

::-webkit-scrollbar-track {
  background: none;
}

.row {
  align-items: center;
  gap: 8px;
  display: flex;
}

.spread {
  justify-content: space-between;
}

.push {
  margin-left: auto;
}

.accent {
  color: var(--accent);
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

.icon-button {
  width: 29px;
  height: 29px;
  color: var(--muted);
  border-radius: 7px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.icon-button:hover, .icon-button.active {
  color: var(--accent);
  background: #282a35;
}

.primary, .secondary {
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
}

.primary {
  background: var(--accent);
  color: #211a32;
}

.primary:hover:not(:disabled) {
  color: #17121f;
  background: #c6b6fc;
}

.secondary {
  color: #d3d4dd;
  background: #22232a;
  border: 1px solid #363841;
}

.secondary:hover {
  background: #2a2b34;
}

.text-button {
  color: var(--accent);
  align-items: center;
  gap: 4px;
  padding: 0;
  font-size: 11px;
  display: inline-flex;
}

.status-dot {
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  display: inline-block;
}

.status-dot.warning {
  background: #d7a66c;
}

.badge {
  color: var(--muted);
  white-space: nowrap;
  border: 1px solid #343641;
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 10px;
  display: inline-block;
}

.badge.measured, .badge.observed {
  color: #a4cfb5;
  background: #1d2c25;
  border-color: #324b40;
}

.badge.inferred {
  color: #c3a7ff;
  background: #282032;
  border-color: #483b5f;
}

.badge.unavailable {
  color: #ddb890;
}

.spinner {
  border: 1.5px solid #5c536f;
  border-top-color: var(--accent);
  border-radius: 50%;
  width: 14px;
  height: 14px;
  animation: .9s linear infinite spin;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.app-shell {
  width: 100vw;
  height: 100dvh;
  display: flex;
}

.sidebar {
  width: var(--sidebar);
  border-right: 1px solid var(--line);
  background: #14151a;
  flex-direction: column;
  flex-shrink: 0;
  padding: 23px 15px 13px;
  display: flex;
}

.brand {
  align-items: center;
  gap: 10px;
  padding: 0 5px 25px;
  display: flex;
}

.brand-mark {
  color: #21172f;
  background: linear-gradient(135deg, #b8a3fb, #8975bc);
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  width: 33px;
  height: 33px;
  display: flex;
  box-shadow: 0 0 24px #a18adb10;
}

.brand strong {
  letter-spacing: -1.1px;
  font-size: 23px;
  font-weight: 650;
}

.brand strong span {
  color: var(--accent);
}

.new-investigation {
  color: #d5c7f8;
  background: #26212f;
  border: 1px solid #463853;
  border-radius: 9px;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 11px 12px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
}

.new-investigation:hover {
  background: #332a40;
}

.new-investigation > span {
  color: #93829e;
  margin-left: auto;
  font-size: 12px;
}

.search {
  color: #717583;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 0 8px;
  display: flex;
}

.search input {
  background: none;
  border: 0;
  width: 100%;
  min-width: 0;
  padding: 6px 0;
  font-size: 11px;
}

.sidebar-heading {
  color: #696d7b;
  letter-spacing: 1.1px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
  padding: 0 8px;
  font-size: 9px;
  font-weight: 650;
  display: flex;
}

.history-list {
  flex: 1;
  overflow: auto;
}

.project-group {
  margin-bottom: 18px;
}

.project-heading {
  color: #9194a2;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  padding: 4px 9px;
  font-size: 11px;
  display: flex;
}

.history-item {
  border-radius: 7px;
  min-height: 37px;
  margin-bottom: 3px;
  display: flex;
  position: relative;
}

.history-item > button {
  color: #9ea1ae;
  text-align: left;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  font-size: 11px;
  display: flex;
}

.history-item > button span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.history-item.selected {
  background: #28242f;
}

.history-item.selected > button {
  color: #d6c9f0;
}

.history-item:hover {
  background: #212229;
}

.history-actions {
  background: inherit;
  border-radius: 6px;
  gap: 0;
  display: none;
  position: absolute;
  top: 3px;
  right: 0;
}

.history-item:hover .history-actions, .history-item:focus-within .history-actions {
  display: flex;
}

.history-empty {
  color: #5e6271;
  padding: 12px 11px;
  font-size: 11px;
  line-height: 1.8;
}

.sidebar-bottom {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.local-badge {
  color: #9298a5;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  font-size: 10px;
  display: flex;
}

.local-badge small {
  color: #727888;
  letter-spacing: .9px;
  margin-left: auto;
  font-size: 8px;
}

.settings-button {
  color: #b0b3c1;
  border-radius: 7px;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 8px;
  font-size: 11px;
  display: flex;
}

.settings-button svg:last-child {
  margin-left: auto;
}

.settings-button:hover {
  background: #22242d;
}

.sidebar-collapsed .sidebar {
  display: none;
}

.main-shell {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: #111217;
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 24px;
  display: flex;
}

.topbar .breadcrumb {
  color: #848897;
  font-size: 11px;
}

.topbar strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
  font-size: 11px;
  font-weight: 500;
  overflow: hidden;
}

.topbar svg {
  flex-shrink: 0;
}

.provider-pill {
  color: #aaaebd;
  white-space: nowrap;
  background: #1b1c22;
  border: 1px solid #30313b;
  border-radius: 20px;
  align-items: center;
  gap: 6px;
  max-width: 200px;
  padding: 5px 9px;
  font-size: 9px;
  display: flex;
  overflow: hidden;
}

.provider-pill.needs-setup .status-dot {
  background: #c3a470;
}

.work-area {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
}

.conversation {
  background: radial-gradient(ellipse at 48% 23%, #1d18222b, transparent 55%), var(--bg);
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
}

.conversation-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.welcome {
  text-align: center;
  max-width: 650px;
  margin: auto;
  padding: 70px 36px 36px;
}

.welcome-symbol {
  width: 65px;
  height: 65px;
  color: var(--accent);
  background: linear-gradient(135deg, #24202d, #1b1922);
  border: 1px solid #3b3348;
  border-radius: 19px;
  justify-content: center;
  align-items: center;
  margin: 0 auto 26px;
  display: flex;
  position: relative;
  transform: rotate(-5deg);
}

.welcome-symbol svg {
  transform: rotate(5deg);
}

.orbit-dot {
  background: #b9a5fd;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  position: absolute;
  top: 10px;
  right: -5px;
  box-shadow: 0 0 12px #b9a5fd44;
}

.eyebrow {
  letter-spacing: 2px;
  color: #898095;
  margin-bottom: 17px;
  font-size: 8px;
  font-weight: 600;
}

.welcome h1 {
  letter-spacing: -1.4px;
  margin-bottom: 18px;
  font-size: clamp(27px, 2.7vw, 44px);
  font-weight: 550;
  line-height: 1.2;
}

.welcome h1 span {
  color: #bbb0cb;
}

.welcome > p {
  color: #9093a3;
  margin-bottom: 30px;
  font-size: 11px;
  line-height: 1.85;
}

.suggestions {
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  max-width: 410px;
  margin: auto;
  display: grid;
}

.suggestions button {
  text-align: left;
  color: #b9b8c7;
  background: #17171dcc;
  border: 1px solid #2c2b34;
  border-radius: 9px;
  align-items: center;
  gap: 11px;
  padding: 15px 12px;
  font-size: 10px;
  display: flex;
}

.suggestions button svg:first-child {
  color: #9985bb;
  flex-shrink: 0;
}

.suggestions button svg:last-child {
  color: #656070;
  margin-left: auto;
}

.suggestions button:hover {
  background: #231d2d;
  border-color: #554563;
}

.welcome-note {
  color: #636775;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 29px;
  font-size: 8px;
  display: flex;
}

.composer-area {
  flex-shrink: 0;
  padding: 15px 25px 12px;
}

.composer {
  background: #1b1c22;
  border: 1px solid #383640;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 12px 40px #0002;
}

.url-input {
  color: #858999;
  border-bottom: 1px solid #2e2f38;
  align-items: center;
  gap: 9px;
  padding: 5px 15px;
  display: flex;
}

.url-input input {
  background: none;
  border: none;
  flex: 1;
  min-width: 0;
  padding: 9px 0;
  font-size: 10px;
}

.url-label {
  color: #706c7d;
  letter-spacing: 1px;
  font-size: 7px;
}

.composer textarea {
  resize: none;
  background: none;
  border: 0;
  border-radius: 0;
  width: 100%;
  min-height: 82px;
  max-height: 190px;
  padding: 14px 16px 7px;
  font-size: 11px;
  line-height: 1.75;
  display: block;
}

.composer textarea:focus-visible {
  outline: 0;
}

.composer-footer {
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  display: flex;
}

.composer-mode {
  color: #85808f;
  align-items: center;
  gap: 6px;
  font-size: 8px;
  display: flex;
}

.send-button {
  color: #241c34;
  background: #b8a3f6;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  display: flex;
}

.send-button:hover:not(:disabled) {
  color: #241c34;
  background: #c9b5ff;
}

.send-button:disabled {
  color: #8c7ba9;
  opacity: 1;
  background: #3b3448;
}

.send-button.stop {
  color: #f4dbea;
  background: #504354;
}

.reinspect {
  color: #9f9aa8;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  display: flex;
}

.reinspect input {
  accent-color: var(--accent);
  width: 12px;
  height: 12px;
}

.composer-note {
  text-align: center;
  color: #626572;
  margin: 9px 0 0;
  font-size: 8px;
}

.error-banner {
  color: #f2b0bd;
  overflow-wrap: anywhere;
  background: #35222a;
  border: 1px solid #623440;
  border-radius: 9px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 9px 12px;
  font-size: 11px;
  display: flex;
}

.error-banner span {
  flex: 1;
}

.retry-button {
  color: #c9b2f4;
  padding: 5px 0 10px;
  font-size: 10px;
}

.messages {
  padding: 30px 25px;
}

.message {
  gap: 13px;
  max-width: 850px;
  margin-bottom: 27px;
  display: flex;
}

.message-avatar {
  color: #c9b4f0;
  background: #282031;
  border: 1px solid #45384e;
  border-radius: 8px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  font-size: 10px;
  display: flex;
}

.message-user .message-avatar {
  color: #bac4cf;
  background: #262a31;
  border-color: #39404a;
}

.message-content {
  flex: 1;
  min-width: 0;
}

.message-label {
  align-items: center;
  gap: 8px;
  margin: 4px 0 11px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
}

.message-label time {
  color: #646878;
  margin-left: auto;
  font-size: 8px;
  font-weight: 400;
}

.markdown {
  color: #c8c9d4;
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.85;
}

.markdown p {
  margin-bottom: 12px;
}

.markdown h3 {
  color: #e0d9ed;
  margin: 20px 0 8px;
  font-size: 12px;
}

.markdown ul {
  padding-left: 18px;
}

.markdown code {
  background: #25242e;
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 10px;
}

.markdown pre {
  border: 1px solid var(--line);
  background: #181923;
  border-radius: 8px;
  padding: 14px;
  overflow: auto;
}

.markdown table {
  border-collapse: collapse;
  display: block;
  overflow: auto;
}

.markdown td, .markdown th {
  border: 1px solid var(--line);
  padding: 7px;
}

.message-copy {
  color: #6d7281;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  font-size: 8px;
  display: flex;
}

.working-label {
  color: var(--accent);
  font-size: 8px;
  font-weight: 400;
}

.progress-card {
  color: #c8bddb;
  background: #1c1923;
  border: 1px solid #37303f;
  border-radius: 9px;
  padding: 12px;
}

.progress-card strong {
  font-size: 10px;
  font-weight: 500;
}

.progress-card details {
  color: #837991;
  margin-top: 7px;
  font-size: 9px;
}

.progress-card details p {
  gap: 6px;
  margin: 5px 0;
  display: flex;
}

.streaming-text {
  color: #c3bbce;
  margin-top: 13px;
  font-size: 11px;
  line-height: 1.8;
}

.panel-resizer {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: #111217;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 8px;
  display: flex;
}

.panel-resizer input {
  writing-mode: vertical-lr;
  appearance: none;
  cursor: col-resize;
  direction: rtl;
  background: none;
  border: 0;
  border-radius: 6px;
  outline: 0;
  width: 6px;
  height: 90px;
  margin: 0;
  padding: 0;
}

.panel-resizer input::-webkit-slider-thumb {
  appearance: none;
  background: #45434e;
  border-radius: 4px;
  width: 3px;
  height: 30px;
}

.panel-resizer:hover input::-webkit-slider-thumb {
  background: var(--accent);
}

.artifact-panel {
  width: var(--artifact-width);
  background: var(--panel);
  flex-direction: column;
  flex-shrink: 0;
  min-width: 0;
  display: flex;
}

.artifact-heading {
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  height: 61px;
  padding: 17px 19px;
  display: flex;
}

.artifact-heading strong {
  font-size: 11px;
  font-weight: 500;
}

.artifact-icon {
  color: #a795c4;
  display: flex;
}

.artifact-tabs {
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  gap: 3px;
  padding: 0 14px;
  display: flex;
  overflow: auto;
}

.artifact-tabs button {
  white-space: nowrap;
  color: #7b7e8d;
  border-bottom: 2px solid #0000;
  align-items: center;
  gap: 6px;
  padding: 11px 9px 12px;
  font-size: 9px;
  display: flex;
}

.artifact-tabs button.active {
  border-bottom-color: var(--accent);
  color: #cbb5f7;
}

.artifact-content {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.workspace-footer {
  color: #656877;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 11px 17px;
  font-size: 8px;
  display: flex;
}

.workspace-footer > span:first-child {
  align-items: center;
  gap: 6px;
  display: flex;
}

.workspace-footer > span:last-child {
  letter-spacing: 1.1px;
  color: #535765;
  font-size: 7px;
}

.artifact-welcome {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 35px 18px;
  display: flex;
}

.ghost-window {
  opacity: .8;
  background: linear-gradient(140deg, #1c1923, #18181f);
  border: 1px solid #34303f;
  border-radius: 10px;
  width: 280px;
  max-width: 85%;
  height: 176px;
  margin-bottom: 38px;
  transform: rotate(-3deg);
  box-shadow: 0 15px 45px #0002;
}

.ghost-window > div {
  border-bottom: 1px solid #322d3b;
  gap: 4px;
  padding: 10px;
  display: flex;
}

.ghost-window > div span {
  background: #655770;
  border-radius: 50%;
  width: 4px;
  height: 4px;
}

.ghost-window section {
  height: calc(100% - 25px);
  display: flex;
}

.ghost-code {
  border-right: 1px solid #322d3b;
  flex-direction: column;
  gap: 10px;
  width: 47%;
  padding: 22px 16px;
  display: flex;
}

.ghost-code i {
  background: #6e568657;
  border-radius: 2px;
  width: 90%;
  height: 4px;
}

.ghost-code i:nth-child(2) {
  background: #997ca368;
  width: 70%;
  margin-left: 6px;
}

.ghost-code i:nth-child(3) {
  background: #65959357;
  width: 50%;
  margin-left: 13px;
}

.ghost-code i:nth-child(4) {
  width: 75%;
  margin-left: 6px;
}

.ghost-code i:last-child {
  width: 40%;
}

.ghost-preview {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 53%;
  padding: 15px;
  display: flex;
}

.ghost-preview span {
  background: #64507755;
  border: 1px solid #79658944;
  border-radius: 8px;
  width: 42px;
  height: 35px;
  margin-bottom: 13px;
}

.ghost-preview strong {
  background: #7c688b55;
  border-radius: 3px;
  width: 85px;
  height: 5px;
}

.ghost-preview p {
  background: #54475e55;
  border-radius: 3px;
  width: 55px;
  height: 4px;
  margin: 8px 0;
}

.artifact-welcome .eyebrow {
  letter-spacing: 1.7px;
  margin-bottom: 14px;
  font-size: 7px;
}

.artifact-welcome h2 {
  letter-spacing: -.7px;
  color: #c7c2d2;
  margin-bottom: 13px;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.25;
}

.artifact-welcome > p {
  color: #7c7f8f;
  font-size: 10px;
  line-height: 1.8;
}

.artifact-flow {
  color: #625c70;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin: 14px 0 27px;
  display: flex;
}

.artifact-flow span {
  color: #93879f;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  display: flex;
}

.scratch-button {
  background: #1c1c24;
  border-color: #33313d;
  margin-bottom: 9px;
  padding: 8px 11px;
  font-size: 9px;
}

.artifact-welcome > small {
  font-size: 8px;
}

.panel-empty {
  text-align: center;
  color: #8d809e;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 40px;
  display: flex;
}

.panel-empty h3 {
  color: #bbb3ca;
  margin: 20px 0 10px;
  font-size: 18px;
  font-weight: 500;
}

.panel-empty p {
  color: #888596;
  max-width: 320px;
  font-size: 11px;
  line-height: 1.8;
}

.artifact-focused .conversation, .artifact-focused .panel-resizer {
  display: none;
}

.artifact-focused .artifact-panel {
  width: 100%;
}

.artifact-hidden .conversation {
  max-width: 100%;
}

.artifact-hidden .welcome {
  padding-top: 90px;
}

.artifact-hidden .composer-area {
  align-self: center;
  width: 100%;
  max-width: 860px;
}

.artifact-hidden .messages {
  max-width: 860px;
  margin: auto;
}

.mobile-switch {
  display: none;
}

.artifact-workspace {
  flex-direction: column;
  height: 100%;
  min-height: 0;
  display: flex;
  position: relative;
}

.artifact-toolbar {
  border-bottom: 1px solid var(--line);
  color: #9394a6;
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  font-size: 10px;
  display: flex;
}

.artifact-toolbar .row:first-child {
  min-width: 0;
}

.artifact-toolbar span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.implementation-split {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.code-pane, .preview-pane {
  flex-direction: column;
  width: 50%;
  min-width: 0;
  display: flex;
  position: relative;
}

.code-pane {
  border-right: 1px solid var(--line);
}

.mode-code .code-pane, .mode-preview .preview-pane {
  width: 100%;
}

.pane-toolbar {
  border-bottom: 1px solid var(--line);
  color: #9693a5;
  background: #191a21;
  flex-shrink: 0;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 5px 8px;
  font-size: 9px;
  display: flex;
}

.pane-toolbar select {
  background: none;
  border: none;
  flex: 1;
  min-width: 0;
  padding: 2px;
  font-size: 9px;
}

.pane-toolbar .row {
  gap: 1px;
}

.pane-toolbar .icon-button {
  width: 23px;
  height: 25px;
}

.pane-toolbar .push {
  margin-left: auto;
}

.editor-container {
  background: #1e1e1e;
  flex: 1;
  min-height: 0;
}

.editor-loading {
  color: var(--muted);
  padding: 24px;
  font-size: 11px;
}

.preview-surface {
  background: #23242b;
  flex: 1;
  justify-content: center;
  min-height: 0;
  padding: 0;
  display: flex;
  overflow: auto;
}

.preview-surface iframe {
  background: #fff;
  border: 0;
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.preview-surface.size-tablet iframe {
  width: 768px;
  max-width: 100%;
}

.preview-surface.size-mobile {
  padding: 12px;
}

.preview-surface.size-mobile iframe {
  border-radius: 10px;
  width: 390px;
  max-width: 100%;
  height: calc(100% - 5px);
  min-height: 0;
}

.artifact-status {
  color: #797d8a;
  border-top: 1px solid var(--line);
  background: #191a21;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 8px;
  display: flex;
}

.compile-errors {
  color: #eca1b2;
  background: #2a1b22;
  border-top: 1px solid #63323c;
  flex-shrink: 0;
  max-height: 145px;
  padding: 10px 13px;
  overflow: auto;
}

.compile-errors pre {
  margin: 0 0 5px;
  font-size: 9px;
}

.runtime-error {
  color: #efb0bf;
  background: #321e27;
  border: 1px solid #6f3d4a;
  border-radius: 8px;
  max-height: 200px;
  padding: 12px;
  font-size: 10px;
  position: absolute;
  inset: auto 10px 10px;
  overflow: auto;
}

.runtime-error p {
  margin: 8px 0;
}

.revision-popover {
  z-index: 5;
  background: #24232e;
  border: 1px solid #454052;
  border-radius: 9px;
  width: 260px;
  max-height: 300px;
  padding: 12px;
  position: absolute;
  top: 45px;
  right: 15px;
  overflow: auto;
  box-shadow: 0 10px 30px #0005;
}

.revision-popover h4 {
  font-size: 12px;
}

.revision-popover button {
  border-bottom: 1px solid var(--line);
  text-align: left;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 8px 4px;
  display: flex;
}

.revision-popover small {
  color: var(--muted);
  font-size: 8px;
}

.scroll-panel {
  height: 100%;
  padding: 24px 22px;
  overflow: auto;
}

.section-heading {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  display: flex;
}

.section-heading small {
  letter-spacing: 1.4px;
  color: #86748f;
  font-size: 7px;
}

.section-heading h3 {
  letter-spacing: -.4px;
  margin: 7px 0 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
}

.evidence-grid {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
  display: grid;
}

.evidence-card {
  text-align: left;
  background: #1b1b23;
  border: 1px solid #33313e;
  border-radius: 8px;
  min-width: 0;
  padding: 0 0 10px;
  overflow: hidden;
}

.evidence-card:hover {
  border-color: #68517c;
}

.evidence-card img {
  aspect-ratio: 1.6;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--line);
  width: 100%;
  margin-bottom: 9px;
  display: block;
}

.evidence-card span, .evidence-card small {
  padding: 0 10px;
  font-size: 10px;
  display: block;
}

.evidence-card small {
  color: #717282;
  margin-top: 3px;
  font-size: 8px;
}

.evidence-view > select, .motion-view > select {
  width: 100%;
  margin-bottom: 15px;
  font-size: 11px;
}

.measurement-card {
  background: #1b1b23;
  border: 1px solid #33313d;
  border-radius: 9px;
  margin-bottom: 12px;
  padding: 16px;
  font-size: 11px;
}

.measurement-card p {
  color: #b1afc2;
  margin: 9px 0;
  line-height: 1.8;
}

.measurement-card code {
  color: #b8a2e4;
  overflow-wrap: anywhere;
  font-size: 10px;
}

.measurement-card h4 {
  margin: 15px 0 10px;
}

.measurement-card h4:first-child {
  margin-top: 0;
}

.measurement-card ul {
  color: #9b9aaa;
  padding-left: 17px;
  font-size: 10px;
}

.measurement-card details {
  color: #9b9aaa;
}

.metrics {
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
  margin: 16px 0;
  display: grid;
}

.metrics div {
  min-width: 0;
}

.metrics dt {
  color: #7e7d8e;
  margin-bottom: 4px;
  font-size: 8px;
}

.metrics dd {
  color: #d3c5e4;
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 11px;
}

.evidence-link {
  padding: 5px 0;
  font-size: 10px;
  display: block;
}

.recording-meta {
  color: #80818f;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 9px;
  display: flex;
}

.motion-view > .row {
  margin-bottom: 16px;
}

.motion-chart {
  border: 1px solid var(--line);
  background: #181820;
  border-radius: 8px;
  margin: 16px 0;
  padding: 13px;
}

.motion-chart figcaption {
  color: #a098b3;
  margin-bottom: 8px;
  font-size: 10px;
}

.motion-chart svg {
  width: 100%;
  height: auto;
}

.explanation section {
  margin-bottom: 22px;
}

.explanation section h4 {
  color: #cec0e2;
  margin-bottom: 8px;
}

.explanation section p, .explanation li {
  color: #a4a3b4;
  font-size: 11px;
  line-height: 1.9;
}

.explanation ul {
  padding-left: 18px;
}

.codex-form {
  gap: 13px;
  margin: 20px 0;
  display: grid;
}

.codex-form label, .settings-dialog > label {
  color: #a6a1b5;
  flex-direction: column;
  gap: 7px;
  font-size: 10px;
  display: flex;
}

.codex-form input, .codex-form textarea {
  background: #1a1a22;
  font-size: 10px;
}

.codex-output {
  color: #bfb1d6;
  background: #1a1922;
  border: 1px solid #383141;
  border-radius: 9px;
  margin-top: 20px;
  padding: 17px;
  font-size: 10px;
  line-height: 1.8;
}

.modal-backdrop {
  z-index: 30;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  background: #08080cb8;
  justify-content: center;
  align-items: center;
  padding: 24px;
  display: flex;
  position: fixed;
  inset: 0;
}

.settings-dialog {
  background: #1c1b25;
  border: 1px solid #494051;
  border-radius: 16px;
  width: 470px;
  max-width: 100%;
  max-height: 90vh;
  padding: 28px;
  overflow: auto;
  box-shadow: 0 25px 80px #0006;
}

.settings-dialog h2 {
  margin-bottom: 14px;
  font-size: 21px;
  font-weight: 500;
}

.settings-dialog > .muted {
  line-height: 1.8;
}

.settings-dialog > label {
  margin: 20px 0;
}

.settings-dialog input, .settings-dialog select {
  font-size: 12px;
}

.configuration-status {
  color: #b8a9cd;
  border: 1px solid #3a3545;
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
  padding: 10px 12px;
  font-size: 10px;
  display: flex;
}

.settings-dialog details {
  color: #9c91ad;
  margin-bottom: 22px;
  font-size: 11px;
  line-height: 1.8;
}

.settings-dialog details p {
  margin: 10px 0;
}

.settings-dialog pre {
  color: #c3acdd;
  background: #14141b;
  border-radius: 7px;
  padding: 14px;
  font-size: 10px;
}

.settings-message {
  color: #c8b5e5;
  margin: 16px 0 0;
  font-size: 11px;
  line-height: 1.8;
}

.settings-footer {
  border-top: 1px solid var(--line);
  color: #7d748d;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  padding-top: 14px;
  font-size: 9px;
  display: flex;
}

.settings-footer .local-badge {
  padding: 0;
}

.image-modal {
  background: #191920;
  border: 1px solid #46404d;
  border-radius: 12px;
  width: 1000px;
  max-width: 95vw;
  max-height: 94vh;
  padding: 18px;
  overflow: auto;
}

.image-modal h3 {
  margin: 0;
  font-size: 14px;
}

.image-modal img {
  width: 100%;
  margin-top: 14px;
}

.image-modal pre {
  color: #9b90ae;
  font-size: 10px;
}

.fatal-error {
  height: 100vh;
  padding: 80px;
  overflow: auto;
}

.fatal-error h1 {
  font-size: 32px;
}

@media (min-width: 1650px) {
  .welcome {
    padding-top: 100px;
  }

  .composer-area {
    padding: 20px 38px 15px;
  }

  .welcome > p {
    font-size: 13px;
  }

  .suggestions button {
    font-size: 12px;
  }

  .artifact-welcome h2 {
    font-size: 28px;
  }

  .artifact-welcome > p {
    font-size: 12px;
  }

  .ghost-window {
    width: 330px;
    height: 210px;
  }

  .topbar strong {
    max-width: 500px;
  }

  .markdown {
    font-size: 13px;
  }

  .messages {
    padding: 35px;
  }

  .message-label {
    font-size: 13px;
  }

  .artifact-tabs button {
    padding: 13px 10px;
    font-size: 10px;
  }
}

@media (max-width: 1150px) {
  :root {
    --sidebar: 210px;
  }

  .topbar {
    padding: 0 15px;
  }

  .topbar .breadcrumb {
    display: none;
  }

  .topbar strong {
    max-width: 180px;
  }

  .welcome {
    padding: 65px 23px 30px;
  }

  .welcome h1 {
    font-size: 29px;
  }

  .welcome > p {
    font-size: 10px;
  }

  .suggestions button {
    gap: 7px;
    padding: 12px 10px;
    font-size: 9px;
  }

  .suggestions button svg:last-child {
    display: none;
  }

  .composer-area {
    padding: 13px 16px 10px;
  }

  .artifact-tabs {
    padding: 0 7px;
  }

  .artifact-tabs button {
    padding: 10px 7px;
    font-size: 8px;
  }

  .artifact-tabs button svg, .pane-toolbar > span {
    display: none;
  }

  .pane-toolbar .row {
    gap: 0;
  }

  .pane-toolbar .icon-button {
    width: 21px;
  }

  .artifact-toolbar span {
    max-width: 100px;
  }

  .artifact-status .push {
    display: none;
  }

  .ghost-window {
    width: 230px;
    height: 150px;
  }

  .artifact-welcome h2 {
    font-size: 20px;
  }
}

@media (max-width: 850px) {
  .sidebar {
    z-index: 20;
    width: 205px;
    position: fixed;
    inset: 0 auto 0 0;
    box-shadow: 20px 0 60px #0006;
  }

  .app-shell:not(.sidebar-collapsed) .main-shell {
    margin-left: 205px;
  }

  .mobile-switch {
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
    gap: 8px;
    padding: 8px 15px;
    display: flex;
  }

  .mobile-switch button {
    color: #8d829f;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 11px;
  }

  .mobile-switch button.active {
    color: #d0b8f6;
    background: #282030;
  }

  .panel-resizer, .mobile-conversation .artifact-panel, .mobile-artifact .conversation {
    display: none;
  }

  .artifact-panel, .conversation {
    width: 100%;
  }

  .artifact-focused .mobile-switch {
    display: flex;
  }

  .topbar strong {
    max-width: 180px;
  }

  .provider-pill {
    max-width: 110px;
  }

  .welcome {
    padding-top: 55px;
  }

  .welcome h1 {
    font-size: 34px;
  }

  .artifact-heading {
    height: 50px;
  }

  .artifact-tabs button {
    padding: 12px 9px;
    font-size: 10px;
  }

  .artifact-welcome h2 {
    font-size: 25px;
  }

  .artifact-welcome > p {
    font-size: 12px;
  }

  .code-pane, .preview-pane {
    width: 50%;
  }

  .mode-code .code-pane, .mode-preview .preview-pane {
    width: 100%;
  }

  .artifact-status .push {
    display: inline;
  }

  .workspace-footer {
    font-size: 9px;
  }
}

@media (max-width: 600px) {
  .app-shell:not(.sidebar-collapsed) .main-shell {
    margin-left: 0;
  }

  .sidebar {
    width: 246px;
  }

  .topbar {
    height: 54px;
    padding: 0 12px;
  }

  .topbar .row:first-child {
    gap: 5px;
  }

  .topbar strong {
    max-width: 150px;
    font-size: 10px;
  }

  .topbar .provider-pill {
    display: none;
  }

  .welcome {
    padding: 38px 22px 25px;
  }

  .welcome h1 {
    letter-spacing: -1px;
    font-size: 31px;
  }

  .welcome-symbol {
    width: 55px;
    height: 55px;
    margin-bottom: 22px;
  }

  .eyebrow {
    font-size: 7px;
  }

  .suggestions {
    gap: 8px;
  }

  .suggestions button {
    font-size: 9px;
  }

  .welcome-note {
    font-size: 7px;
  }

  .wide-only {
    display: none;
  }

  .composer textarea {
    font-size: 12px;
  }

  .url-input input {
    font-size: 11px;
  }

  .messages {
    padding: 22px 17px;
  }

  .markdown {
    font-size: 12px;
  }

  .artifact-heading {
    padding: 12px;
  }

  .artifact-heading strong {
    font-size: 11px;
  }

  .artifact-tabs button {
    padding: 10px 7px;
    font-size: 8px;
  }

  .artifact-toolbar {
    padding: 8px;
  }

  .artifact-toolbar span {
    font-size: 9px;
  }

  .artifact-toolbar .icon-button {
    width: 26px;
  }

  .pane-toolbar .icon-button {
    width: 20px;
  }

  .code-pane {
    width: 48%;
  }

  .preview-pane {
    width: 52%;
  }

  .scroll-panel {
    padding: 20px 15px;
  }

  .settings-dialog {
    padding: 22px;
  }

  .modal-backdrop {
    padding: 14px;
  }

  .settings-dialog h2 {
    font-size: 20px;
  }

  .workspace-footer > span:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, :before, :after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

.retained-implementation {
  height: 100%;
  min-height: 0;
}

.retained-implementation[hidden] {
  display: none;
}

/*# sourceMappingURL=src_app_globals_162hn9oqc8uss.css.map*/