/* src/projects/projects.css */
.project-dialog {
  width: min(580px, calc(100vw - 32px));
  max-height: min(720px, calc(100dvh - 48px));
  padding: 0;
  border: 1px solid #3a4352;
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 24px 100px #0008;
}
.project-dialog::backdrop {
  background: #05080dbb;
}
.header-project-selector {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 260px;
}
.header-project-selector select {
  min-width: 0;
  max-width: 100%;
  border: 1px solid transparent;
  border-radius: 4px;
  background: #10141b;
  color: #cbd2de;
  padding: 6px 24px 6px 8px;
  font-size: 13px;
  font-weight: 550;
  text-overflow: ellipsis;
  cursor: pointer;
}
.header-project-selector select:hover {
  background: #202631;
  border-color: #343d4d;
}
.header-project-selector option,
.header-project-selector optgroup {
  background: #1e232d;
  color: var(--ink);
}
.new-project-dialog .project-create-form {
  border-bottom: 0;
}
.project-dialog-heading {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 18px;
}
.project-dialog h2 {
  font-size: 21px;
  letter-spacing: -.6px;
  margin: 0;
  font-weight: 650;
}
.project-dialog-heading p {
  color: var(--muted);
  font-size: 12px;
  margin: 8px 0 0;
  line-height: 1.7;
}
.project-create-form {
  display: grid;
  gap: 9px;
  padding: 0 24px 24px;
  border-bottom: 1px solid var(--line);
}
.project-create-form label {
  font-size: 12px;
}
.project-create-form > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.project-create-form input {
  flex: 1;
  min-width: 0;
  min-height: 38px;
  background: var(--bg);
  border: 1px solid #424d60;
  border-radius: 5px;
  padding: 8px 10px;
  color: var(--ink);
  font-size: 13px;
}
.project-create-form .button {
  height: 38px;
}
.project-create-form > p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin: 2px 0;
}
.project-dialog-error {
  padding: 14px 24px;
  color: #ffaaa2;
  font-size: 12px;
  line-height: 1.7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.new-file-dialog {
  max-width: 520px;
}
.new-file-dialog .project-create-form {
  border: 0;
}
.new-file-dialog .button {
  justify-self: end;
}
.project-error-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  background: #2a1e23;
  color: #ffb2aa;
  border-bottom: 1px solid #714746;
  font-size: 11px;
  line-height: 1.6;
}
.project-error-bar > span {
  flex: 1;
}
.project-file-tree {
  padding: 10px 7px;
  overflow: auto;
  scrollbar-width: thin;
  flex: 1;
  font-size: 11px;
}
.project-file-tree ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.project-file-tree details > ul {
  padding-left: 13px;
  border-left: 1px solid #252c37;
  margin-left: 5px;
}
.project-file-tree summary {
  cursor: pointer;
  padding: 6px 3px;
  color: #aeb9ca;
  white-space: nowrap;
}
.project-file-tree button {
  display: block;
  border: 0;
  border-radius: 3px;
  width: 100%;
  min-width: max-content;
  padding: 6px 8px;
  text-align: left;
  background: transparent;
  color: #9daac0;
  font-size: 11px;
}
.project-file-tree button:hover {
  background: #202733;
  color: #eef1f6;
}
.project-file-tree button.selected {
  background: #2a3342;
  color: #f1f4fa;
}
.editor-file-tab {
  flex-shrink: 0;
  min-height: 33px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border-bottom: 1px solid #293140;
  color: #acb9cc;
  font-size: 10px;
}
.editor-file-tab > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.unsaved-dot {
  width: 6px;
  height: 6px;
  background: #ec968a;
  border-radius: 50%;
  flex-shrink: 0;
}
.source-editor {
  flex: 1;
  min-width: 0;
  min-height: 0;
  resize: none;
  border: 0;
  border-radius: 0;
  background: #12161e;
  color: #d4dfef;
  padding: 16px;
  font:
    12px/1.8 Consolas,
    "Cascadia Code",
    monospace;
  tab-size: 2;
  scrollbar-width: thin;
  scrollbar-color: #3a4557 transparent;
}
.source-editor:focus-visible {
  outline-offset: -2px;
}
.editor-footer > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.preview-surface > iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: white;
}
.preview-diagnostics {
  flex-shrink: 0;
  padding: 10px 12px;
  border-bottom: 1px solid #714746;
  color: #ffb2aa;
  background: #2a1e23;
  font-size: 11px;
}
.preview-diagnostics pre {
  max-height: 130px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  font: 11px/1.6 Consolas, monospace;
}
.preview-address select {
  min-width: 0;
  max-width: 150px;
  color: #c5cede;
  background: #202631;
  border: 1px solid #3b4658;
  border-radius: 3px;
  font-size: 10px;
}
.preview-address > span:last-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
@media (max-width: 500px) {
  .project-dialog-heading {
    padding: 20px 18px 16px;
  }
  .project-create-form {
    padding: 0 18px 20px;
  }
  .project-create-form > div {
    align-items: stretch;
    flex-direction: column;
  }
  .project-error-bar {
    flex-wrap: wrap;
  }
}
@media (max-width: 850px) {
  .header-project-selector {
    max-width: 160px;
  }
  .header-project-selector select {
    font-size: 11px;
    padding-left: 2px;
    padding-right: 14px;
  }
}

/* src/auth/auth.css */
.auth-screen {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--bg);
}
.auth-brand {
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
}
.auth-panel {
  align-self: center;
  width: min(100% - 40px, 396px);
  margin: 52px auto;
}
.auth-panel h1 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(27px, 5vw, 34px);
  font-weight: 700;
  letter-spacing: -1.3px;
  line-height: 1.22;
}
.auth-panel > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 30px;
}
.auth-switch {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin: 28px 0;
}
.auth-switch button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 10px 0;
  font-size: 13px;
}
.auth-switch button[aria-pressed=true] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.auth-panel form {
  display: grid;
  gap: 20px;
}
.auth-panel label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: #cbd2de;
}
.auth-panel input {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: 1px solid #3b4351;
  background: #151921;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 5px;
  font-size: 15px;
}
.auth-submit {
  min-height: 44px;
  width: 100%;
  border: 1px solid #ef786e;
  border-radius: 5px;
  background: #c83e36;
  color: white;
  font-size: 14px;
  font-weight: 650;
}
.auth-submit:not(:disabled):hover {
  background: #b9362e;
}
.auth-panel .auth-guidance {
  color: var(--muted);
  margin: -12px 0 0;
  font-size: 12px;
}
.auth-error {
  margin: 0;
  color: #ffaaa2;
  font-size: 13px;
  line-height: 1.6;
}
.auth-footer {
  padding: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}
.account-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.account-controls .workspace-account {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-error {
  position: fixed;
  bottom: 32px;
  right: 16px;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  background: #322025;
  border: 1px solid #9b504e;
  color: #ffb2aa;
  font-size: 13px;
  border-radius: 6px;
}
@media (max-width: 500px) {
  .auth-brand {
    padding: 18px 20px;
  }
  .account-controls .workspace-account {
    display: none;
  }
}

/* src/shell/shell.css */
@font-face {
  font-family: Manrope;
  src: url(./manrope.woff2) format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0e1117;
  --panel: #151921;
  --raised: #1e232d;
  --line: #2b313d;
  --ink: #e9edf3;
  --muted: #939eaf;
  --accent: #e75249;
  color: var(--ink);
  background: var(--bg);
  font-family:
    Manrope,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  transition: background .12s, color .12s;
}
button:disabled {
  cursor: default;
  opacity: .4;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[role=separator]:focus-visible {
  outline: 2px solid #fb998f;
  outline-offset: 2px;
}
button svg {
  flex-shrink: 0;
}
[hidden] {
  display: none !important;
}
.studio-workspace {
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}
.workspace-header {
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 17px;
  background: #10141b;
  border-bottom: 1px solid var(--line);
}
.studio-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  color: #f1f3f6;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.5px;
}
.studio-brand img {
  flex-shrink: 0;
}
.studio-brand strong {
  font-weight: 800;
}
.header-divider {
  height: 20px;
  width: 1px;
  background: var(--line);
  margin: 0 4px;
}
.header-spacer {
  flex: 1;
}
.project-name {
  font-size: 13px;
  color: #cbd2de;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 550;
}
.workspace-account {
  font-size: 11px;
  color: var(--muted);
}
.workspace-toolbar {
  min-height: 43px;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--line);
  background: #10141b;
}
.pane-tools {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}
.pane-tools button {
  display: flex;
  gap: 7px;
  align-items: center;
  height: 29px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 5px;
  padding: 0 10px;
  color: #8793a6;
  font-size: 11px;
  white-space: nowrap;
}
.pane-tools button.selected {
  background: #252b36;
  color: #e2e7f0;
  border-color: #343d4d;
}
.pane-tools button:hover {
  background: #262e3b;
  color: #fff;
}
.pane-tools button > span {
  font-size: 15px;
  line-height: 1;
}
.pane-tools .reset-layout {
  font-size: 18px;
  padding: 0 8px;
  margin-left: 6px;
  border-left: 1px solid var(--line);
  border-radius: 0;
}
.button {
  height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #343c4a;
  border-radius: 5px;
  background: #202631;
  color: #d2d9e5;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.button:not(:disabled):hover {
  background: #2b3442;
}
.button.primary {
  background: #db5148;
  color: #fff;
  border-color: #e56c64;
}
.button.quiet {
  background: transparent;
  border-color: transparent;
  color: #a0aabb;
}
.project-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
}
.pane-scroll {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #3a4352 #10141b;
}
.workspace-panes {
  height: 100%;
  min-height: 0;
  display: grid;
  position: relative;
  padding: 6px;
  gap: 0;
  background: var(--bg);
}
.workspace-pane {
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: var(--panel);
  display: flex;
  flex-direction: column;
}
.pane-divider {
  touch-action: none;
  cursor: col-resize;
  outline-offset: -1px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
}
.pane-divider > span {
  width: 2px;
  height: 28px;
  border-radius: 2px;
  background: #303846;
}
.pane-divider:hover,
.pane-divider:focus-visible {
  background: #e7524919;
}
.pane-divider:hover > span,
.pane-divider:focus-visible > span {
  background: #e8756e;
}
.resizing-panes {
  cursor: col-resize;
  user-select: none;
}
.resizing-panes iframe {
  pointer-events: none;
}
.all-panes-closed {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
  padding: 25px;
}
.all-panes-closed h2 {
  font-size: 21px;
  color: #c8d0dd;
  letter-spacing: -.5px;
}
.all-panes-closed p {
  font-size: 12px;
  line-height: 1.9;
}
.pane-heading {
  height: 39px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  background: #1a1f29;
  border-bottom: 1px solid var(--line);
  color: #d5dce7;
  font-size: 11px;
}
.pane-heading strong {
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pane-heading > div {
  display: flex;
  align-items: center;
  gap: 7px;
}
.pane-close {
  border: 0;
  width: 23px;
  height: 25px;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border-radius: 4px;
  color: #8793a6;
  font-size: 19px;
  flex-shrink: 0;
}
.pane-close:hover {
  color: #fff;
  background: #303846;
}
.icon-button {
  border: 0;
  background: transparent;
  color: #8b98ac;
  width: 25px;
  height: 27px;
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  padding: 0;
}
.icon-button:not(:disabled):hover {
  background: #303846;
  color: #fff;
}
.file-sidebar {
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  overflow: auto;
  flex: 1;
  color: #a8b2c3;
}
.files-empty {
  padding: 30px 15px;
  color: #667386;
  font-size: 11px;
  line-height: 1.8;
}
.files-empty p {
  color: #b0b9c8;
  margin: 13px 0 3px;
}
.files-empty span {
  font-size: 10px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 11px;
  border-top: 1px solid var(--line);
}
.packages-toggle {
  background: none;
  border: 0;
  color: #a0adbf;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  padding: 5px 0;
}
.editor-panel,
.preview-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  background: #12161e;
  overflow: hidden;
}
.editor-footer,
.preview-footer {
  height: 26px;
  flex-shrink: 0;
  border-top: 1px solid #252d3b;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8694aa;
  font-size: 9px;
  background: #141922;
  white-space: nowrap;
}
.editor-footer {
  justify-content: space-between;
}
.preview-footer > span:last-child {
  margin-left: auto;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workspace-empty {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 16px;
  color: #637086;
}
.workspace-empty h2 {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -.4px;
  color: #abb5c6;
  margin: 19px 0 8px;
  font-weight: 600;
}
.workspace-empty p {
  font-size: 11px;
  line-height: 1.9;
  margin: 0 0 20px;
  color: #8996ac;
  max-width: 230px;
}
.empty-code-mark {
  font: 38px/1 Consolas, monospace;
  color: #3b4658;
  letter-spacing: -6px;
  padding-right: 5px;
}
.empty-preview-mark {
  font-size: 30px;
  color: #465166;
}
.workspace-empty .button {
  color: #b7c2d3;
  background: #212936;
  border-color: #354154;
}
.preview-address {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  height: 33px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
  color: #8996ac;
  font-size: 10px;
  background: #141922;
}
.address-dot {
  width: 5px;
  height: 5px;
  background: #66758a;
  border-radius: 50%;
}
.preview-surface {
  flex: 1;
  min-height: 0;
  background: #11151c;
  display: flex;
  overflow: hidden;
}
.studio-footer {
  height: 26px;
  min-height: 26px;
  padding: 0 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 17px;
  background: #10141b;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: #8996aa;
}
.agent-panel {
  width: 100%;
  background: var(--panel);
  color: #c8d1e0;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.agent-spark {
  font-size: 17px;
  color: #e58a80;
}
.agent-body {
  flex: 1;
  min-height: 0;
  padding: 20px 16px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #3a4557 transparent;
}
.agent-chat-empty {
  padding: 27px 6px;
}
.chat-empty-spark {
  font-size: 28px;
  line-height: 1;
  color: #ed8a7e;
  display: block;
  margin-bottom: 21px;
}
.agent-chat-empty h1 {
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -.8px;
  line-height: 1.35;
  color: #e4e9f2;
  margin: 0 0 12px;
}
.agent-chat-empty p {
  font-size: 12px;
  line-height: 1.9;
  color: #8996ac;
  margin: 0;
}
.agent-compose-area {
  padding: 10px 10px 0;
  flex-shrink: 0;
}
.agent-composer {
  background: #202631;
  border: 1px solid #3a4556;
  border-radius: 10px;
  padding: 10px;
}
.agent-composer:focus-within {
  border-color: #bd776e;
  box-shadow: 0 0 0 1px #bd776e30;
}
.agent-composer textarea {
  width: 100%;
  min-height: 75px;
  max-height: 150px;
  resize: vertical;
  color: #d9e2f0;
  font-size: 11px;
  background: none;
  border: 0;
  padding: 0;
  outline: none;
}
.agent-composer textarea::placeholder {
  color: #8390a5;
}
.agent-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.agent-composer-actions select {
  color: #9eacc2;
  font-size: 10px;
  background: transparent;
  border: 0;
  max-width: calc(100% - 38px);
}
.agent-composer-actions option {
  background: #202631;
}
.agent-send {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #e05d53;
  color: #fff;
  border: 1px solid #ed7b72;
  font-size: 22px;
  display: grid;
  place-items: center;
  padding: 0;
}
.agent-disclosure {
  font-size: 9px;
  color: #8996ac;
  line-height: 1.8;
  text-align: center;
  margin: 8px 0 10px;
}
@media (max-width: 850px) {
  .workspace-header {
    gap: 8px;
    padding: 0 10px;
    height: 48px;
  }
  .workspace-account {
    display: none;
  }
  .studio-brand {
    font-size: 12px;
    gap: 6px;
  }
  .studio-brand img {
    width: 24px;
    height: 24px;
  }
  .project-name {
    max-width: 160px;
    font-size: 11px;
  }
  .workspace-toolbar {
    gap: 8px;
    flex-wrap: wrap;
    padding: 7px 9px;
  }
  .pane-tools button {
    font-size: 10px;
    padding: 0 7px;
    gap: 5px;
  }
  .project-actions {
    margin-left: auto;
  }
  .button {
    font-size: 10px;
    padding: 0 8px;
  }
  .studio-footer {
    font-size: 8px;
    gap: 9px;
    padding: 0 9px;
  }
  .workspace-panes {
    padding: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
/*# sourceMappingURL=app.css.map */
