[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.studio-body {
  background: #f8f8f6;
  font-size: 12px;
}
.studio-header {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 25px;
  border-bottom: 1px solid #ddd;
  background: white;
}
.studio-header .brand {
  margin-right: 20px;
}
.studio-header #identity {
  margin-left: auto;
  color: #888;
  font: 10px var(--mono);
}
.studio-body button,
.studio-body select,
.studio-body input {
  padding: 9px 11px;
  border: 1px solid #d7d7d7;
  background: white;
  border-radius: 0;
  font:
    11px Inter,
    sans-serif;
}
.studio-body button.primary {
  background: #181a1c;
  color: white;
  border-color: #181a1c;
}
.studio-header a:not(.brand) {
  font-size: 10px;
}
.studio-layout {
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}
.project-sidebar {
  border-right: 1px solid #ddd;
  padding: 23px 15px;
  background: #f1f1ef;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-heading h1 {
  font: 400 22px "Funnel Display";
  margin: 0;
}
.project-sidebar #import-project {
  font-size: 10px;
  text-align: left;
}
.project-item {
  display: block;
  width: 100%;
  text-align: left !important;
  border: 0 !important;
  background: transparent !important;
  padding: 12px 8px !important;
  overflow-wrap: anywhere;
}
.project-item.active {
  background: #fff !important;
  box-shadow: inset 2px 0 #151515;
}
.project-item small {
  display: block;
  margin-top: 6px;
  color: #999;
  font: 9px var(--mono);
}
.space-meter {
  margin-top: auto;
  padding-top: 30px;
}
.space-meter > span {
  font: 7px var(--mono);
  color: #929298;
  letter-spacing: 0.7px;
}
.space-meter strong {
  display: block;
  font: 18px "Funnel Display";
  margin: 12px 0;
}
.space-meter progress {
  width: 100%;
  height: 4px;
  accent-color: #b8785b;
}
.space-meter small {
  display: block;
  font-size: 9px;
  color: #999;
  line-height: 1.8;
  margin-top: 10px;
}
.studio-main {
  min-width: 0;
  background: white;
}
#studio-empty {
  text-align: center;
  padding: 18vh 30px;
}
.studio-eyebrow {
  font: 9px var(--mono);
  letter-spacing: 1.2px;
  color: #999;
}
#studio-empty h2 {
  font: 400 58px/1.05 "Funnel Display";
  letter-spacing: -2px;
  margin: 22px;
}
#studio-empty p {
  color: #888;
  line-height: 1.9;
}
.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 24px;
  gap: 15px;
  border-bottom: 1px solid #ddd;
}
.project-top h2 {
  font: 400 24px "Funnel Display";
  margin-bottom: 5px;
}
#project-meta {
  color: #999;
  font: 9px var(--mono);
}
.project-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.project-actions button {
  font-size: 10px;
  padding: 9px;
}
.studio-panels {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(380px, 1.3fr);
  min-height: calc(100vh - 160px);
}
.conversation-panel {
  border-right: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.studio-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}
.studio-panel-heading h3 {
  font-weight: 500;
  margin: 0;
}
.studio-panel-heading button {
  font-size: 9px;
  border: 0;
  color: #999;
}
#conversation {
  flex: 1;
  padding: 20px;
  max-height: 45vh;
  overflow: auto;
}
.conversation-item {
  margin-bottom: 24px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.75;
}
.conversation-item strong {
  display: block;
  font: 8px var(--mono);
  color: #949499;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.conversation-item.user {
  background: #f4f4f2;
  padding: 14px;
}
.conversation-item button {
  display: block;
  margin-top: 10px;
  font: 9px var(--mono);
}
#prompt-form {
  padding: 20px;
  border-top: 1px solid #eee;
  margin-top: auto;
}
#prompt-form > label {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
}
#instruction {
  width: 100%;
  resize: vertical;
  min-height: 95px;
  border: 1px solid #ccc;
  padding: 12px;
  font:
    12px/1.7 Inter,
    sans-serif;
}
#prompt-form small {
  display: block;
  font-size: 9px;
  color: #999;
  line-height: 1.7;
  margin-top: 12px;
}
#prompt-form .primary {
  width: 100%;
  margin-top: 14px;
}
.run-limits {
  margin-top: 12px;
  font-size: 10px;
  color: #777;
}
.run-limits > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.run-limits label {
  display: grid;
  gap: 6px;
  font-size: 9px;
}
.run-limits input {
  width: 100%;
  min-width: 0;
}
#run-status {
  font: 10px/1.7 var(--mono);
  padding: 0 20px;
  color: #8e633f;
  overflow-wrap: anywhere;
}
#run-actions {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  flex-wrap: wrap;
}
.editor-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.studio-tabs {
  display: flex;
  border-bottom: 1px solid #ddd;
  overflow-x: auto;
}
.studio-tabs button {
  border: 0;
  border-right: 1px solid #eee;
  white-space: nowrap;
  padding: 20px 16px;
}
.studio-tabs button[aria-selected="true"] {
  background: #f5f5f3;
  box-shadow: inset 0 -2px #1a1a1a;
}
.editor-view {
  flex: 1;
  padding: 20px;
  min-width: 0;
}
#view-files {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  padding: 0;
  min-height: 570px;
}
.file-tree {
  padding: 10px 8px;
  border-right: 1px solid #eee;
  overflow: auto;
}
.file-tree > div:first-child {
  display: flex;
  gap: 4px;
  margin-bottom: 15px;
}
.file-tree > div:first-child button {
  font-size: 8px;
  padding: 7px;
}
.file-button {
  display: block;
  width: 100%;
  font: 9px/1.6 var(--mono) !important;
  text-align: left;
  border: 0 !important;
  overflow-wrap: anywhere;
  padding: 7px !important;
}
.file-button.active {
  background: #eee !important;
}
.code-editor {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
#file-name {
  font: 10px var(--mono);
  padding: 15px;
  background: #fafafa;
  border-bottom: 1px solid #eee;
  overflow-wrap: anywhere;
}
#file-content {
  flex: 1;
  min-height: 500px;
  width: 100%;
  resize: vertical;
  border: 0;
  padding: 20px;
  font: 12px/1.8 var(--mono);
  background: #fff;
  color: #30343b;
  tab-size: 2;
}
#file-content:focus {
  outline: 1px solid #bbb;
  outline-offset: -1px;
}
#editor-status {
  font: 9px var(--mono);
  color: #999;
  padding: 10px 15px;
  border-top: 1px solid #eee;
}
.studio-note {
  font-size: 10px;
  color: #999;
  line-height: 1.8;
}
#live-preview {
  width: 100%;
  height: 65vh;
  border: 1px solid #ddd;
  background: white;
}
#preview-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  font-size: 10px;
}
#preview-controls a {
  border-bottom: 1px solid #888;
}
#patch-view {
  font: 10px/1.7 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 45vh;
  overflow: auto;
  background: #f6f6f4;
  padding: 20px;
}
#event-log {
  max-height: 40vh;
  overflow: auto;
  font: 10px/1.7 var(--mono);
}
#event-log details {
  border-top: 1px solid #ddd;
  padding: 10px 0;
}
#event-log pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.history-item {
  border-bottom: 1px solid #ddd;
  padding: 16px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
}
.history-item span {
  flex: 1;
  overflow-wrap: anywhere;
}
.history-item small {
  display: block;
  color: #999;
  margin-top: 6px;
}
.history-item a {
  border-bottom: 1px solid #777;
}
.studio-body dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: 85vh;
  overflow: auto;
  padding: 28px;
  border: 1px solid #333;
}
.studio-body dialog::backdrop {
  background: #0006;
}
.studio-body dialog form {
  display: grid;
  gap: 18px;
}
.studio-body dialog label {
  display: grid;
  gap: 8px;
  font-size: 11px;
}
.studio-body dialog input,
.studio-body dialog select {
  width: 100%;
  min-width: 0;
}
.studio-body dialog .check-label {
  display: flex;
  align-items: center;
}
.check-label input {
  width: auto !important;
}
.studio-body dialog p,
.studio-body dialog small {
  font-size: 11px;
  line-height: 1.8;
  color: #888;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.dialog-heading h2 {
  font: 400 26px "Funnel Display";
}
.dialog-heading button {
  border: 0;
  font-size: 20px;
}
.settings-dialog form,
.settings-dialog section {
  border-top: 1px solid #ddd;
  padding-top: 23px;
  margin-top: 23px;
}
.settings-dialog h3 {
  font: 400 21px "Funnel Display";
  margin: 0 0 10px;
}
.settings-dialog #invite-result {
  margin-top: 15px;
}
.settings-dialog #invite-result input {
  font: 10px var(--mono);
}
#connection-status {
  font: 10px/2 var(--mono);
  color: #777;
}
.studio-alert {
  padding: 12px 25px;
  background: #fff3df;
  color: #85612f;
  font-size: 11px;
  border-bottom: 1px solid #ecdcbf;
}
#studio-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #181a1c;
  color: white;
  padding: 14px 22px;
  max-width: 90vw;
  z-index: 30;
  font-size: 12px;
  box-shadow: 4px 4px #bbb;
  line-height: 1.6;
}
#signin-error {
  color: #a33;
}
#signin-mode {
  margin-top: 25px;
  border: 0;
  background: transparent;
  text-decoration: underline;
  font: 11px Inter;
  cursor: pointer;
}
.login-shell #signin-form {
  gap: 17px;
}
@media (max-width: 1100px) {
  .studio-layout {
    grid-template-columns: 175px minmax(0, 1fr);
  }
  .studio-panels {
    grid-template-columns: 1fr;
  }
  .conversation-panel {
    border-right: 0;
    border-bottom: 1px solid #ddd;
  }
  #conversation {
    max-height: 30vh;
  }
  .project-top {
    align-items: flex-start;
    flex-direction: column;
  }
  .studio-header {
    gap: 10px;
    padding: 15px;
  }
  .studio-header .brand {
    margin-right: 0;
  }
  #legacy-link {
    display: none;
  }
  .studio-tabs button {
    padding: 16px;
  }
}
@media (max-width: 600px) {
  .studio-header {
    flex-wrap: wrap;
    height: auto;
  }
  .studio-header #identity {
    display: none;
  }
  .studio-header select {
    max-width: 155px;
  }
  .studio-layout {
    display: block;
  }
  .project-sidebar {
    border-right: 0;
    border-bottom: 1px solid #ddd;
    padding: 16px;
  }
  #project-list {
    display: flex;
    overflow: auto;
    gap: 5px;
  }
  .project-item {
    min-width: 150px;
    max-width: 190px;
  }
  .space-meter {
    padding-top: 10px;
  }
  .space-meter small {
    display: none;
  }
  .space-meter strong {
    margin: 7px 0;
  }
  .project-top {
    padding: 17px;
  }
  .studio-tabs button {
    padding: 16px 10px;
    font-size: 10px;
  }
  #view-files {
    grid-template-columns: 105px minmax(0, 1fr);
  }
  .file-tree {
    padding: 8px 5px;
  }
  .file-tree > div:first-child {
    flex-wrap: wrap;
  }
  #file-content {
    padding: 12px;
    font-size: 11px;
  }
  #studio-empty {
    padding: 70px 20px;
  }
  #studio-empty h2 {
    font-size: 43px;
  }
  .editor-view {
    padding: 15px;
  }
}

.trial-banner {
  padding: 13px 26px;
  background: #edf7dc;
  border-bottom: 1px solid #dbe8c6;
  color: #435331;
  font-size: 12px;
  line-height: 1.6;
}
