:root {
  --bg: #202120;
  --panel: #242523;
  --surface: #2d2e2b;
  --hover: #343532;
  --line: #3a3b37;
  --text: #edeeeb;
  --muted: #a4a59e;
  --subtle: #777971;
  --blue: #4468ed;
  --shadow: 0 18px 60px #0005;
  --chat: 374px;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button:not(:disabled):hover {
  background: var(--hover);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #879ffe;
  outline-offset: 3px;
}
button {
  transition:
    background 0.14s,
    color 0.14s,
    opacity 0.14s;
}
a {
  color: inherit;
}
.i {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}
.icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  flex-shrink: 0;
}
.btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.border {
  border: 1px solid var(--line);
}
.primary {
  background: var(--blue);
  color: #fff;
}
.primary:not(:disabled):hover {
  background: #5578fb;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.grow {
  flex: 1;
  min-width: 0;
}
.row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sep {
  height: 20px;
  border-left: 1px solid var(--line);
  margin: 0 4px;
}
.mark {
  width: 22px;
  height: 23px;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}
.mark:before {
  content: "";
  position: absolute;
  left: 1px;
  bottom: 1px;
  width: 20px;
  height: 13px;
  border-radius: 4px 8px 4px 3px;
  background: linear-gradient(160deg, #ff914d 0%, #ed60a1 55%, #7671ef);
}
.mark:after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 12px;
  height: 19px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(150deg, #ffaf5f, #fe6264 48%, #d265ce);
}
[hidden] {
  display: none !important;
}
.topbar {
  height: 54px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 12;
}
.project-controls {
  width: calc(var(--chat) - 12px);
  display: flex;
  gap: 2px;
  align-items: center;
  min-width: 0;
}
.project-name {
  font-size: 13px;
  font-weight: 550;
  gap: 7px;
  padding: 8px;
  max-width: 220px;
}
.project-name span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-name .i {
  width: 13px;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 3px;
}
.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
}
.tab.active {
  background: var(--surface);
  color: var(--text);
}
.top-right {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}
.demo-badge {
  font-size: 10px;
  letter-spacing: 1px;
  color: #c9c9bf;
  padding: 4px 6px;
  border: 1px solid #53564b;
  border-radius: 4px;
  white-space: nowrap;
}
.avatar {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #8079ac;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  font-size: 10px;
  font-weight: 600;
}
.avatars {
  display: flex;
  padding-left: 6px;
}
.avatars .avatar + .avatar {
  margin-left: -6px;
  background: #c79b79;
}
.workspace {
  display: flex;
  height: calc(100dvh - 54px);
  position: relative;
}
.chat {
  width: var(--chat);
  min-width: 300px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.chat-feed {
  flex: 1;
  overflow: auto;
  scroll-behavior: smooth;
  padding: 25px 22px 16px;
  scrollbar-width: thin;
  scrollbar-color: #4d4e49 transparent;
}
.date {
  font-size: 11px;
  color: var(--subtle);
  text-align: center;
  margin-bottom: 25px;
}
.user-message {
  background: var(--surface);
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px 14px 3px 14px;
  margin: 0 0 24px 20px;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.assistant-message {
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 23px;
  animation: appear 0.2s ease;
}
.assistant-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  margin-bottom: 10px;
}
.assistant-head .mark {
  transform: scale(0.7);
  width: 18px;
  height: 20px;
  transform-origin: left center;
}
.thought {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.assistant-message p {
  margin: 7px 0 12px;
}
.assistant-message ul {
  padding-left: 18px;
  margin: 8px 0 14px;
}
.assistant-message li {
  padding: 2px 0;
}
.build-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  margin: 14px 0 9px;
  background: #262723;
}
.build-card .summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 12px;
  font-size: 12px;
  font-weight: 500;
}
.build-card .summary .i {
  color: #b7cbb4;
}
.build-card footer {
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.build-card footer button {
  font-size: 11px;
  padding: 5px 7px;
  border-radius: 4px;
}
.response-actions {
  display: flex;
  color: var(--subtle);
  gap: 2px;
}
.response-actions button {
  width: 27px;
  height: 27px;
}
.response-actions .i {
  width: 13px;
  height: 13px;
}
.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 5px;
}
.suggestions button {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 11px;
  color: #c7c9bf;
}
.composer-wrap {
  padding: 10px 13px 10px;
  background: linear-gradient(transparent, var(--bg) 18px);
}
.composer {
  border: 1px solid #51534a;
  border-radius: 17px;
  background: #2a2b27;
  box-shadow: 0 3px 10px #0002;
  padding: 12px;
  transition: border-color 0.2s;
}
.composer:focus-within {
  border-color: #858779;
}
.composer textarea {
  background: none;
  border: 0;
  outline: 0 !important;
  color: var(--text);
  resize: none;
  width: 100%;
  min-height: 78px;
  max-height: 170px;
  font-size: 13px;
  line-height: 1.55;
  padding: 3px 2px;
}
.composer textarea::placeholder {
  color: #96988c;
}
.composer-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}
.composer-bar .icon {
  width: 29px;
  height: 29px;
}
.composer-bar .btn {
  min-height: 28px;
  font-size: 12px;
  padding: 5px 8px;
}
.send {
  background: #e9eade !important;
  color: #272822;
  border-radius: 50%;
  margin-left: 4px;
}
.send .i {
  width: 15px;
}
.composer-note {
  text-align: center;
  color: var(--subtle);
  font-size: 10px;
  padding-top: 9px;
}
.attachment {
  font-size: 11px;
  background: var(--surface);
  padding: 5px 7px;
  border-radius: 5px;
  display: flex;
  gap: 5px;
  align-items: center;
  margin-bottom: 7px;
}
.chat-hidden .chat {
  display: none;
}
.chat-hidden .project-controls {
  width: auto;
  min-width: 245px;
}
.divider {
  width: 5px;
  cursor: col-resize;
  border-right: 1px solid var(--line);
  flex-shrink: 0;
}
.divider:hover {
  background: #566eaa;
}
.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #1d1e1c;
  padding: 8px 9px 9px 8px;
  position: relative;
}
.preview-controls {
  height: 37px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px 7px;
}
.devices {
  display: flex;
  align-items: center;
  gap: 1px;
}
.devices .icon {
  width: 28px;
  height: 27px;
  color: var(--muted);
}
.devices .icon.active {
  background: var(--surface);
  color: var(--text);
}
.preview-address {
  margin: 0 auto;
  min-width: 180px;
  width: 38%;
  max-width: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  height: 29px;
  border-radius: 5px;
}
.preview-address .i {
  width: 12px;
}
.preview-space {
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: center;
  position: relative;
  border-radius: 9px;
  overflow: hidden;
  background: #191a18;
}
.preview-frame {
  height: 100%;
  width: 100%;
  max-width: 100%;
  border: 1px solid #484b42;
  border-radius: 9px;
  background: #fafbfc;
  transition: width 0.25s ease;
  container-type: inline-size;
  overflow: hidden;
  position: relative;
}
.preview-frame.tablet {
  width: 768px;
}
.preview-frame.mobile {
  width: 390px;
}
.preview-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #f9fafb;
  display: block;
}
.preview-tools {
  position: absolute;
  bottom: 19px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px;
  background: #282a28ed;
  border: 1px solid #55584c;
  border-radius: 11px;
  box-shadow: 0 5px 20px #0003;
  z-index: 3;
}
.preview-tools .icon {
  width: 31px;
  height: 31px;
  color: #d3d5cc;
}
.preview-tools .icon.active {
  color: #fff;
  background: #4969da;
}
.preview-tools .sep {
  height: 16px;
}
.preview-status {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: #242622ee;
  border: 1px solid #6c755c;
  color: #e0e7d7;
  padding: 7px 12px;
  border-radius: 25px;
  font-size: 12px;
  z-index: 4;
  white-space: nowrap;
}
.frame-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafbcc;
  color: #3a3a37;
  z-index: 5;
  backdrop-filter: blur(4px);
}
.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid #858a76;
  border-top-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
}
.panel-view {
  flex: 1;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  overflow: auto;
}
.view-header {
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}
.view-header h2 {
  font-size: 18px;
  font-weight: 550;
  margin: 0 0 5px;
}
.view-header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.view-content {
  padding: 26px;
}
.code-layout {
  display: flex;
  height: 100%;
}
.file-tree {
  width: 200px;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  padding: 17px 10px;
  background: #212320;
}
.file-tree h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 4px 9px 20px;
}
.file-tree button {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px;
  width: 100%;
  font-size: 12px;
  border-radius: 5px;
  text-align: left;
}
.file-tree button.active {
  background: #343a2f;
  color: #deebcf;
}
.code-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.code-toolbar {
  height: 49px;
  border-bottom: 1px solid var(--line);
  padding: 8px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.code-text {
  margin: 0;
  flex: 1;
  background: #1e201d;
  color: #c7d9b8;
  border: 0;
  resize: none;
  padding: 24px;
  font:
    13px/1.85 Consolas,
    monospace;
  tab-size: 2;
  white-space: pre;
  overflow: auto;
  outline: 0;
}
.file-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.file-card {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}
.file-art {
  height: 105px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  margin-bottom: 18px;
}
.file-art .i {
  width: 37px;
  height: 37px;
  color: #bec8b3;
}
.file-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}
.file-card p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.history-panel {
  position: absolute;
  z-index: 8;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--chat);
  background: var(--bg);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.history-list {
  padding: 18px;
  overflow: auto;
}
.version-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px;
  margin: 0 0 12px;
}
.version-row.current {
  border-color: #7b8664;
}
.version-row h4 {
  margin: 0 0 8px;
  font-size: 13px;
}
.version-row p {
  margin: 0 0 12px;
  font-size: 11px;
  color: var(--muted);
}
.version-row .btn {
  font-size: 11px;
  min-height: 29px;
}
.drawer-shade {
  position: fixed;
  inset: 54px 0 0;
  background: #0006;
  z-index: 20;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  background: #242522;
  border-right: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 21;
  padding: 14px;
  display: flex;
  flex-direction: column;
  animation: slide 0.2s ease;
}
.sidebar-head {
  padding: 5px 6px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar button.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  width: 100%;
  font-size: 13px;
  border-radius: 7px;
  text-align: left;
  color: #cbcdc2;
}
.sidebar button.nav.active {
  background: var(--surface);
  color: var(--text);
}
.sidebar label {
  font-size: 11px;
  color: var(--subtle);
  padding: 22px 10px 8px;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.sidebar-note {
  font-size: 11px;
  color: var(--muted);
  padding: 12px;
  line-height: 1.6;
}
.popover {
  position: fixed;
  z-index: 40;
  background: #2a2b27;
  border: 1px solid #494b42;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 6px;
  min-width: 200px;
  max-width: calc(100vw - 20px);
  animation: appear 0.12s ease;
}
.popover button {
  width: 100%;
  padding: 9px 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  font-size: 12px;
  border-radius: 6px;
}
.popover button .i {
  width: 16px;
}
.popover small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.popover hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 5px;
}
.popover .caption {
  font-size: 10px;
  color: var(--muted);
  padding: 9px 10px;
  letter-spacing: 0.6px;
}
.popover kbd {
  margin-left: auto;
  font-size: 10px;
  color: var(--subtle);
}
dialog {
  background: #292b26;
  color: var(--text);
  border: 1px solid #55584c;
  border-radius: 14px;
  padding: 0;
  width: min(480px, calc(100vw - 30px));
  max-height: calc(100dvh - 40px);
  box-shadow: 0 25px 100px #0008;
}
dialog::backdrop {
  background: #080a0988;
  backdrop-filter: blur(3px);
}
.modal-head {
  padding: 21px 22px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 17px;
  font-weight: 550;
  margin: 0;
}
.modal-body {
  padding: 22px;
  overflow: auto;
}
.modal-body p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 20px;
}
.field {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin: 0 0 17px;
}
.field input,
.field textarea,
.field select {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 11px;
  background: #21231e;
  border: 1px solid #505447;
  border-radius: 7px;
  color: var(--text);
  font-size: 13px;
  resize: vertical;
}
.field textarea {
  min-height: 90px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 8px;
}
.notice {
  background: #343c29;
  color: #d2ddc3;
  border: 1px solid #555e45;
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.toggle-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.switch {
  width: 34px;
  height: 21px;
  border-radius: 20px;
  background: #555b4c;
  position: relative;
  flex-shrink: 0;
}
.switch:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #dde2d6;
  transition: transform 0.15s;
}
.switch[aria-checked="true"] {
  background: #516de0;
}
.switch[aria-checked="true"]:after {
  transform: translateX(13px);
}
.toast {
  position: fixed;
  bottom: 23px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid #59614c;
  border-radius: 9px;
  background: #30372b;
  color: #e2eadb;
  padding: 11px 17px;
  z-index: 70;
  max-width: calc(100vw - 26px);
  box-shadow: var(--shadow);
  font-size: 12px;
  transition: all 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.mobile-switch {
  display: none;
}
.intro-screen {
  height: 100dvh;
  overflow: auto;
  background:
    radial-gradient(ellipse at 20% 95%, #c1589650, transparent 48%),
    radial-gradient(ellipse at 80% 100%, #455ddd77, transparent 52%), #20221e;
}
.intro-nav {
  padding: 22px 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.intro-center {
  max-width: 680px;
  margin: 15vh auto 0;
  padding: 24px;
}
.intro-center h1 {
  font-size: 39px;
  text-align: center;
  letter-spacing: -1.5px;
  font-weight: 550;
  margin: 0 0 15px;
}
.intro-center > p {
  text-align: center;
  color: var(--muted);
  margin-bottom: 30px;
  font-size: 14px;
}
.intro-center .composer {
  padding: 18px;
  background: #292b25;
  box-shadow: 0 12px 40px #0003;
}
.intro-center .composer textarea {
  min-height: 95px;
}
.intro-project {
  margin-top: 24px;
  width: 100%;
  border: 1px solid #5c6251;
  border-radius: 10px;
  padding: 15px 18px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 13px;
}
.intro-project strong {
  font-size: 13px;
}
.intro-project small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.error {
  color: #f3a29a;
  font-size: 12px;
  padding: 6px 0;
}
.light {
  --bg: #f5f5f2;
  --panel: #fff;
  --surface: #e9eae4;
  --hover: #e1e3da;
  --line: #d7dacf;
  --text: #262922;
  --muted: #6b7063;
  --subtle: #787f70;
  color-scheme: light;
}
.light .main {
  background: #e9ebe4;
}
.light .composer,
.light .popover,
.light dialog,
.light .sidebar {
  background: #f6f7f2;
}
.light .build-card {
  background: #f1f3ec;
}
.light .field input,
.light .field textarea,
.light .field select {
  background: #fff;
}
.light .suggestions button {
  color: #505745;
}
.light .demo-badge {
  color: #626b54;
}
.light .sidebar button.nav {
  color: #505745;
}
.light .preview-tools {
  background: #f4f6efef;
  border-color: #b4bda7;
}
.light .preview-tools .icon {
  color: #556348;
}
.light .preview-tools .icon.active {
  color: #fff;
}
.light .composer textarea::placeholder {
  color: #7a806f;
}
.light .send {
  background: #2f3727 !important;
  color: #fff;
}
.light .file-tree,
.light .code-text {
  background: #f0f3e9;
}
.light .code-text {
  color: #3c512d;
}
.light .file-tree button.active {
  background: #dce5ce;
  color: #324523;
}
.light .notice {
  background: #e8eedf;
  color: #4e6040;
  border-color: #c7d2b8;
}
.light .sidebar-note {
  color: var(--muted);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slide {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (max-width: 1150px) {
  :root {
    --chat: 340px;
  }
  .top-right .avatars,
  .top-right .demo-badge {
    display: none;
  }
  .topbar {
    padding: 0 8px;
  }
  .tab {
    padding: 6px 8px;
  }
  .project-name {
    max-width: 185px;
  }
  .chat-feed {
    padding: 23px 18px;
  }
  .top-right {
    gap: 3px;
  }
}
@media (max-width: 900px) {
  :root {
    --chat: 305px;
  }
  .tab span {
    display: none;
  }
  .top-right > .icon {
    display: none;
  }
  .project-name {
    max-width: 175px;
  }
  .tabs .tab {
    width: 34px;
  }
  .top-right .btn {
    padding: 7px 9px;
  }
  .preview-address {
    min-width: 90px;
    width: 45%;
  }
  .preview-controls > .row .icon:first-child {
    display: none;
  }
}
@media (max-width: 700px) {
  .topbar {
    height: 52px;
    gap: 1px;
    padding: 0 7px;
  }
  .project-controls {
    width: auto !important;
    flex: 1;
    min-width: 0 !important;
  }
  .project-name {
    max-width: 195px;
    font-size: 12px;
  }
  .topbar > .tabs {
    display: none;
  }
  .top-right {
    margin: 0;
  }
  .top-right .btn {
    font-size: 12px;
    min-height: 30px;
    padding: 6px 10px;
  }
  .top-right .share-button {
    display: none;
  }
  .project-controls > .history-button {
    display: none;
  }
  .project-controls > .collapse-button {
    display: none;
  }
  .workspace {
    height: calc(100dvh - 98px);
  }
  .mobile-switch {
    height: 46px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--line);
    padding: 6px 12px;
  }
  .mobile-switch button {
    flex: 1;
    height: 32px;
    font-size: 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
  }
  .mobile-switch button.active {
    background: var(--surface);
  }
  .mobile-switch button:last-child {
    flex: 0 0 34px;
  }
  .chat {
    width: 100%;
    min-width: 0;
  }
  .divider {
    display: none;
  }
  .main {
    display: none;
    padding: 4px;
  }
  .workspace.show-main .main {
    display: flex;
  }
  .workspace.show-main .chat {
    display: none;
  }
  .chat-hidden .chat {
    display: flex;
  }
  .chat-feed {
    padding: 21px 22px;
  }
  .composer-wrap {
    padding: 7px 12px 12px;
  }
  .composer textarea {
    min-height: 62px;
  }
  .composer-note {
    padding-top: 8px;
  }
  .preview-controls {
    height: 38px;
    padding: 0 5px 5px;
  }
  .preview-frame {
    border-radius: 6px;
  }
  .preview-tools {
    bottom: 14px;
  }
  .history-panel {
    width: 100%;
  }
  .history-list {
    padding: 20px;
  }
  .file-tree {
    width: 135px;
    padding: 15px 5px;
  }
  .file-tree button {
    font-size: 11px;
    padding: 9px 5px;
    gap: 5px;
  }
  .code-text {
    font-size: 11px;
    padding: 17px;
    white-space: pre-wrap;
  }
  .code-toolbar {
    padding: 8px;
    font-size: 10px;
  }
  .code-toolbar .btn {
    font-size: 10px;
    padding: 4px 7px;
  }
  .view-header {
    padding: 18px;
  }
  .view-content {
    padding: 18px;
  }
  .intro-nav {
    padding: 19px;
  }
  .intro-center {
    margin-top: 9vh;
  }
  .intro-center h1 {
    font-size: 31px;
  }
  .intro-center > p {
    font-size: 13px;
  }
  .intro-center .composer {
    padding: 13px;
  }
  .demo-badge {
    font-size: 9px;
  }
  .modal-body {
    padding: 19px;
  }
  .modal-head {
    padding: 16px 18px;
  }
  .popover {
    max-height: 70dvh;
    overflow: auto;
  }
  .top-right .primary {
    padding: 7px 11px;
  }
  .assistant-message {
    font-size: 14px;
  }
  .user-message {
    font-size: 14px;
  }
  .suggestions button {
    font-size: 12px;
    padding: 8px 10px;
  }
  .composer textarea {
    font-size: 14px;
  }
  .icon {
    min-width: 32px;
  }
  .preview-tools .icon {
    min-width: 31px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

#save-indicator {
  font-size: 10px;
  color: var(--subtle);
  white-space: nowrap;
  margin-left: 5px;
}
.message-context {
  font-size: 10px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
  margin-bottom: 8px;
}
.message-context .i {
  width: 12px;
  height: 12px;
}
.plan-steps {
  padding: 0 15px 8px 32px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.liked {
  color: #b5c590 !important;
}
.code-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 15px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.code-footer .i {
  width: 12px;
  height: 12px;
}
.file-tree button span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.dirty-dot {
  color: #c8be84;
}
.file-card small {
  display: block;
  margin-top: 13px;
  font-size: 10px;
}
.version-preview {
  background: #f9fafb;
  border-radius: 10px;
  color: #282b34;
  padding: 25px;
  border-top: 5px solid var(--version-accent);
}
.version-preview > span {
  color: var(--version-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}
.version-preview h3 {
  font-size: 24px;
  letter-spacing: -0.6px;
  margin: 18px 0 8px;
}
.version-preview p {
  font-size: 12px;
  color: #7f838d;
}
.version-preview .row {
  font-size: 11px;
  color: #7f838d;
}
.settings-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 15px;
  margin: -4px 0 20px;
}
.settings-tabs button {
  padding: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.settings-tabs button.active {
  color: var(--text);
  border-bottom-color: #7a8fd6;
}
.color-presets {
  display: flex;
  gap: 10px;
  margin: -2px 0 18px;
}
.color-presets button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff3;
}
.field input[type="color"] {
  height: 42px;
  padding: 5px;
}
.select-input,
.member-row select {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
}
.member-row {
  display: flex;
  gap: 9px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  margin-bottom: 12px;
}
.member-row .grow {
  overflow: hidden;
  text-overflow: ellipsis;
}
.member-row select {
  max-width: 95px;
}
.domain-field {
  display: flex;
  align-items: center;
  border: 1px solid #505447;
  border-radius: 7px;
  background: #21231e;
  margin-top: 8px;
  padding-right: 12px;
}
.field .domain-field input {
  margin: 0;
  border: 0;
  flex: 1;
  min-width: 0;
}
.domain-field > span {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}
.published-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  font-size: 12px;
  margin-bottom: 20px;
}
.published-summary strong {
  font-weight: 400;
  color: var(--muted);
  float: right;
}
.published-summary > span {
  display: block;
  margin-top: 8px;
  color: #aabb96;
}
.qa-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 18px;
}
.check-run {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  margin-top: 16px;
}
.release-url {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  word-break: break-all;
}
.comment-card {
  padding: 12px;
}
.comment-card p {
  margin: 8px 0;
}
.comment-card.resolved {
  opacity: 0.55;
}
.command-result {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border-radius: 6px;
  text-align: left;
  font-size: 13px;
}
.command-result small {
  font-size: 10px;
}
.analytic-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.analytic-cards > div {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.analytic-cards span,
.analytic-cards small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.analytic-cards strong {
  display: block;
  font-size: 32px;
  margin: 15px 0;
  font-weight: 500;
}
.sample-bars {
  display: flex;
  height: 230px;
  gap: 6%;
  padding: 35px 8% 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 20px;
}
.sample-bars > div {
  flex: 1;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.sample-bars i {
  display: block;
  width: 100%;
  background: #7773ba;
  border-radius: 5px 5px 0 0;
  opacity: 0.75;
}
.sample-bars span {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--muted);
}
.data-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 15px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}
.data-table th,
.data-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.data-table th {
  color: var(--muted);
  font-weight: 500;
  background: var(--bg);
}
.data-table tr:last-child td {
  border: 0;
}
.connector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.connector-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.connector-card > .i {
  width: 27px;
  height: 27px;
}
.connector-card h3 {
  font-size: 16px;
  margin: 15px 0 8px;
}
.connector-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 20px;
}
.connection-status {
  display: block;
  color: var(--subtle);
  font-size: 11px;
  margin-bottom: 12px;
}
.security-finding {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px;
  margin: 17px 0;
  font-size: 13px;
}
.security-finding p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #98b78a;
  flex-shrink: 0;
}
.status-dot.amber {
  background: #b9a976;
}
.shortcut-list {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  font-size: 12px;
}
.shortcut-list kbd {
  color: var(--muted);
  font: 11px inherit;
}
.project-actions {
  display: grid;
  gap: 9px;
}
.sidebar #recents {
  overflow: auto;
}
.sidebar .nav .grow {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-note {
  padding-top: 10px;
}
.intro-screen {
  background:
    radial-gradient(ellipse at 30% 0%, #72598c18, transparent 50%), #20221e;
}
.dashboard-main {
  max-width: 1150px;
  margin: auto;
  padding: 20px 38px 0;
}
.dashboard-hero {
  max-width: 680px;
  margin: 35px auto 60px;
  text-align: center;
}
.dashboard-eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #929783;
}
.dashboard-hero h1 {
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -1.6px;
  font-weight: 500;
  margin: 20px 0 16px;
}
.dashboard-hero > p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 28px;
}
.dashboard-hero .composer {
  text-align: left;
  padding: 17px;
  background: #2a2c27;
  box-shadow: 0 15px 35px #0002;
}
.dashboard-hero .composer textarea {
  min-height: 85px;
}
.dash-suggestions {
  justify-content: center;
  margin: 14px 0;
}
.dash-suggestions button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
}
.dash-suggestions .i {
  width: 13px;
  height: 13px;
}
.projects-heading h2 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.4px;
}
.dashboard-search {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 6px;
}
.dashboard-search .i {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.dashboard-search input {
  border: 0;
  background: none;
  outline: 0;
  color: var(--text);
  font-size: 12px;
  width: 145px;
}
.project-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin: 14px 0 24px;
}
.project-filters button {
  padding: 7px 11px;
  font-size: 12px;
  border-radius: 7px;
  color: var(--muted);
}
.project-filters button.active {
  background: var(--surface);
  color: var(--text);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 23px;
}
.project-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: var(--panel);
}
.project-thumbnail {
  width: 100%;
  height: 176px;
  display: flex;
  padding: 17px 15px 0;
  background: linear-gradient(120deg, #34362f, #282b27) !important;
  gap: 0;
  overflow: hidden;
}
.thumb-sidebar {
  width: 20%;
  background: #fff;
  border-radius: 5px 0 0;
  box-shadow: -5px 4px 12px #0002;
  padding: 15px 7px;
  border-right: 1px solid #e9eaf0;
}
.thumb-sidebar i {
  display: block;
  background: var(--thumb-accent);
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-bottom: 20px;
}
.thumb-sidebar b {
  display: block;
  height: 4px;
  background: #e9eaf0;
  margin: 12px 0;
}
.thumb-main {
  padding: 15px 12px;
  background: #f8f9fb;
  flex: 1;
  border-radius: 0 5px 0 0;
  text-align: left;
  min-width: 0;
}
.thumb-main > span {
  color: #373943;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}
.thumb-metrics {
  display: flex;
  gap: 5px;
  margin: 12px 0;
}
.thumb-metrics i {
  display: block;
  height: 27px;
  border: 1px solid #e7e8ed;
  background: white;
  border-radius: 3px;
  flex: 1;
}
.thumb-graph {
  display: flex;
  align-items: flex-end;
  height: 44px;
  background: white;
  border: 1px solid #e7e8ed;
  border-radius: 3px;
  padding: 6px 9px;
  gap: 6px;
}
.thumb-graph i {
  display: block;
  background: var(--thumb-accent);
  opacity: 0.5;
  flex: 1;
  height: 60%;
  border-radius: 2px;
}
.thumb-graph i:nth-child(2) {
  height: 85%;
}
.thumb-graph i:nth-child(3) {
  height: 42%;
}
.thumb-graph i:nth-child(4) {
  height: 100%;
  opacity: 1;
}
.thumb-graph i:nth-child(6) {
  height: 75%;
}
.thumb-lines {
  margin-top: 9px;
}
.thumb-lines i {
  display: block;
  border-bottom: 1px solid #e6e7ec;
  margin: 8px 0;
}
.project-card-detail {
  display: flex;
  align-items: center;
  padding: 13px 10px 14px 14px;
  gap: 1px;
}
.project-card-name {
  text-align: left;
  padding: 0;
}
.project-card-name:hover {
  background: none !important;
}
.project-card-name strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}
.project-card-name small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 7px;
}
.project-card-detail .icon {
  width: 26px;
  height: 27px;
  color: var(--muted);
}
.project-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 40px 10px;
}
.project-empty > .i {
  width: 28px;
  height: 28px;
  color: var(--subtle);
}
.project-empty h3 {
  font-size: 18px;
  font-weight: 500;
}
.dashboard-footer {
  color: var(--subtle);
  text-align: center;
  font-size: 11px;
  padding: 45px 0 25px;
}
.light .intro-screen {
  background: #f5f5f0;
}
.light .dashboard-hero .composer {
  background: white;
}
.light .domain-field {
  background: #fff;
}
.light .dashboard-hero h1 {
  color: var(--text);
}
.light .project-thumbnail {
  background: #e3e5dc !important;
}
.light .connection-status {
  color: #657456;
}
@media (max-width: 1100px) {
  #save-indicator {
    display: none;
  }
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-card-name strong {
    max-width: 210px;
  }
}
@media (max-width: 700px) {
  .dashboard-main {
    padding: 12px 20px 0;
  }
  .dashboard-hero {
    margin: 20px auto 40px;
  }
  .dashboard-hero h1 {
    font-size: 31px;
  }
  .dashboard-hero > p {
    font-size: 12px;
    line-height: 1.7;
  }
  .dashboard-hero .composer {
    padding: 14px;
  }
  .dashboard-eyebrow {
    font-size: 8px;
  }
  .dashboard-search {
    display: none;
  }
  .projects-heading h2 {
    font-size: 18px;
  }
  .project-filters > .small {
    display: none;
  }
  .project-grid {
    gap: 15px;
  }
  .project-thumbnail {
    height: 145px;
    padding: 14px 11px 0;
  }
  .thumb-main {
    padding: 13px 8px;
  }
  .thumb-main > span {
    font-size: 7px;
  }
  .project-card-detail {
    padding: 10px 8px;
  }
  .project-card-name strong {
    font-size: 11px;
    max-width: 110px;
  }
  .project-card-name small {
    font-size: 9px;
    line-height: 1.6;
  }
  .project-card-detail .icon {
    width: 22px;
  }
  .analytic-cards {
    gap: 8px;
  }
  .analytic-cards > div {
    padding: 13px;
  }
  .analytic-cards strong {
    font-size: 23px;
  }
  .analytic-cards small {
    font-size: 9px;
  }
  .connector-grid {
    gap: 12px;
  }
  .connector-card {
    padding: 17px;
  }
  .security-finding {
    padding: 15px;
    flex-wrap: wrap;
  }
  .file-tree {
    width: 145px;
  }
  .code-toolbar .muted {
    display: none;
  }
  .code-footer {
    font-size: 9px;
    padding: 8px;
  }
  .sample-bars {
    height: 190px;
  }
  .preview-status {
    font-size: 10px;
  }
  .dashboard-footer {
    font-size: 9px;
  }
}
@media (max-width: 420px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-thumbnail {
    height: 182px;
  }
  .thumb-main > span {
    font-size: 10px;
  }
  .project-card-name strong {
    max-width: 230px;
  }
  .dashboard-main {
    padding: 8px 18px 0;
  }
  .connector-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-hero .composer .small {
    font-size: 9px;
  }
  .dashboard-hero .composer .btn {
    font-size: 11px;
  }
}
