:root {
  color-scheme: light;
  font:
    15px/1.45 "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    sans-serif;
  color: #1b332f;
  background: #e6ebe7;
  --glass: rgba(255, 255, 255, 0.66);
  --ink: #203b34;
  --muted: #52645e;
  --edge: rgba(255, 255, 255, 0.91);
  --shadow: 0 12px 40px -24px #48625696, inset 0 1px 0 #fffffff0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(ellipse at 86% 4%, #e0e9fa 0, transparent 37%),
    radial-gradient(ellipse at 15% 100%, #c9ddcc 0, transparent 47%),
    linear-gradient(112deg, #eef1e8, #e3ede8 64%, #e9e9ee);
}
button,
select,
input,
textarea {
  font: inherit;
  color: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  border: 0;
  background: transparent;
}
a {
  color: #295e4d;
}
button:focus-visible,
select:focus-visible,
textarea:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid #498475;
  outline-offset: 3px;
}
button:disabled,
textarea:disabled {
  opacity: 0.5;
  cursor: default;
}
.spacer {
  flex: 1;
}
.sr {
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
[hidden] {
  display: none !important;
}
.studio-bar {
  height: 80px;
  padding: 0 clamp(16px, 2.4vw, 40px);
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  letter-spacing: -1.6px;
}
.brand img {
  width: 37px;
  height: 37px;
  box-shadow: 0 4px 8px #344c441f;
  border-radius: 12px;
}
.divider {
  height: 23px;
  border-left: 1px solid #9faea760;
}
.picker select,
.route select {
  border: 0;
  background: transparent;
  outline-offset: 1px;
  max-width: 22vw;
}
.picker select {
  font-weight: 550;
  font-size: 14px;
}
.release-state,
.preview-foot,
.compose-foot {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.release-state i,
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 100%;
  background: #60876c;
  box-shadow: 0 0 0 3px #73947c1c;
}
.primary,
.send,
.action-primary {
  background: linear-gradient(145deg, #34574c, #1c3c32);
  color: white;
  box-shadow:
    inset 0 1px 1px #ffffff57,
    0 3px 8px #1a3e3426;
}
.primary {
  border-radius: 16px;
  padding: 10px 16px;
  font-weight: 600;
}
.primary span {
  margin-left: 7px;
}
.workspace {
  height: calc(100dvh - 80px);
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(315px, 29vw, 425px);
  gap: 16px;
  padding: 0 clamp(12px, 1.65vw, 28px) clamp(12px, 1.65vw, 28px);
}
.glass {
  border: 1px solid var(--edge);
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(115%);
  border-radius: 23px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.preview-pane,
.chat-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.pane-toolbar,
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pane-toolbar {
  min-height: 56px;
  padding: 9px 14px;
}
.lights {
  display: flex;
  gap: 4px;
  padding-right: 2px;
}
.lights i {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #afbeb5;
}
.lights i:nth-child(2) {
  opacity: 0.7;
}
.lights i:nth-child(3) {
  opacity: 0.5;
}
.route select {
  font-size: 12px;
  color: var(--muted);
  font-weight: 550;
}
.segment {
  display: flex;
  background: #dce4df;
  border: 1px solid #cbd6d0;
  border-radius: 10px;
  padding: 2px;
}
.segment button {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 7px;
}
.segment button[aria-pressed="true"] {
  background: #fffffff5;
  box-shadow: 0 1px 4px #354a3a26;
  font-weight: 600;
}
.viewport {
  position: relative;
  flex: 1;
  background: #eff1e9;
  min-height: 0;
}
iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #faf9f3;
}
.veil {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #f0f3ea;
  color: var(--muted);
  font-size: 14px;
}
.preview-foot {
  min-height: 34px;
  padding: 0 17px;
  font-size: 11px;
}
.preview-foot a {
  text-decoration: none;
}
.chat-header {
  padding: 18px;
  border-bottom: 1px solid #b6c8be55;
}
.chat-symbol,
.mini-mark {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f9fcf6, #d5e6db);
  border: 1px solid white;
  color: #456e58;
}
.chat-symbol {
  height: 41px;
  width: 41px;
  border-radius: 15px;
  font-size: 23px;
}
.chat-header h1 {
  font-size: 18px;
  margin: 0;
  letter-spacing: -0.7px;
}
.chat-header p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.icon {
  border: 1px solid #b6c8be80;
  min-width: 32px;
  height: 32px;
  border-radius: 11px;
  background: #ffffff75;
  font-weight: bold;
}
.feed {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 21px 17px;
}
.welcome {
  margin: clamp(12px, 7vh, 65px) 2px 18px;
}
.welcome h2 {
  font-size: clamp(22px, 2.2vw, 32px);
  max-width: 11em;
  letter-spacing: -1.4px;
  line-height: 1.13;
  font-weight: 560;
  margin: 0 0 10px;
}
.welcome p {
  font-size: 14px;
  color: var(--muted);
  max-width: 30ch;
  margin: 0 0 23px;
}
.suggestion,
.tool-action {
  display: block;
  text-align: left;
  background: #ffffffac;
  border: 1px solid #c7d4cb;
  border-radius: 13px;
  padding: 10px 12px;
  margin: 7px 0;
  font-size: 13px;
}
.suggestion:hover,
.tool-action:hover {
  background: white;
  border-color: #94b1a2;
}
.entry {
  margin: 14px 0;
  max-width: 94%;
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.entry small {
  color: var(--muted);
  font-size: 10px;
  display: block;
  margin: 0 0 4px;
}
.entry p {
  margin: 0;
}
.entry.me {
  margin-left: auto;
  background: #dcebe1;
  border: 1px solid #cce0d4;
  border-radius: 15px 15px 4px 15px;
  padding: 9px 12px;
}
.entry.bot {
  padding-left: 4px;
}
.composer-area {
  padding: 0 14px 13px;
}
.composer-area #progress {
  min-height: 19px;
  color: #496452;
  font-size: 12px;
}
.composer-area form {
  background: #ffffffd9;
  border: 1px solid #afc5b9;
  padding: 10px 11px 8px;
  border-radius: 17px;
  box-shadow: 0 3px 12px #3857410b;
}
.composer-area textarea {
  display: block;
  resize: vertical;
  min-height: 44px;
  max-height: 160px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  line-height: 1.45;
}
.compose-controls,
.compose-foot {
  display: flex;
  align-items: center;
  gap: 8px;
}
.compose-controls #model,
.compose-foot {
  font-size: 10px;
  color: var(--muted);
}
.attach {
  font-size: 21px;
  line-height: 1;
  padding: 2px 4px;
}
.send {
  font-size: 19px;
  border-radius: 50%;
  height: 30px;
  width: 30px;
  line-height: 1;
}
.compose-foot {
  margin: 8px 3px 0;
  justify-content: space-between;
}
.compose-foot button {
  padding: 0;
  font-size: 11px;
}
.compose-foot span {
  font-size: 10px;
}
.action-primary,
.tool-action {
  padding: 9px 13px;
  border-radius: 11px;
}
.action-primary {
  margin-top: 8px;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
dialog {
  border: 1px solid white;
  border-radius: 20px;
  box-shadow: 0 18px 70px #1d382e45;
  max-width: 440px;
  width: 90vw;
  color: var(--ink);
  background: #f3f7f3;
  padding: 22px;
}
dialog::backdrop {
  background: #223b344d;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 20px;
  margin: 0;
}
dialog p {
  font-size: 14px;
}
dialog input {
  padding: 9px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid #bfcec3;
  margin: 4px 0 8px;
}
#toast {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 15px;
  background: #25453c;
  color: white;
  max-width: 90vw;
  padding: 12px 18px;
  box-shadow: var(--shadow);
  z-index: 5;
  font-size: 13px;
}
#file-chip {
  font-size: 12px;
  background: #e0ede2;
  border-radius: 9px;
  padding: 5px 9px;
  margin: 4px 0;
}
@media (max-width: 780px) {
  .studio-bar {
    height: 58px;
    gap: 10px;
    padding: 0 12px;
  }
  .studio-bar .divider,
  .release-state,
  .lights {
    display: none;
  }
  .brand {
    font-size: 22px;
  }
  .brand img {
    width: 29px;
    height: 29px;
  }
  .picker select {
    max-width: 31vw;
    font-size: 12px;
  }
  .primary {
    font-size: 12px;
    padding: 8px 10px;
  }
  .workspace {
    height: calc(100dvh - 58px);
    min-height: 560px;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(235px, 1.12fr) minmax(270px, 1fr);
    gap: 8px;
    padding: 0 7px 7px;
  }
  .glass {
    border-radius: 16px;
  }
  .pane-toolbar,
  .chat-header {
    min-height: 39px;
    padding: 5px 12px;
  }
  .chat-symbol {
    height: 27px;
    width: 27px;
    border-radius: 8px;
    font-size: 16px;
  }
  .chat-header h1 {
    font-size: 15px;
  }
  .chat-header p {
    font-size: 10px;
  }
  .feed {
    padding: 7px 13px;
  }
  .welcome {
    margin: 2px;
  }
  .welcome h2 {
    font-size: 18px;
    max-width: none;
  }
  .welcome p {
    display: none;
  }
  .suggestion {
    display: inline-block;
    margin: 2px;
    padding: 5px;
    font-size: 11px;
  }
  .preview-foot {
    min-height: 23px;
  }
  .composer-area {
    padding: 0 9px 5px;
  }
  .composer-area textarea {
    min-height: 30px;
  }
  .composer-area #progress {
    min-height: 12px;
  }
  .compose-foot {
    margin-top: 3px;
  }
  .route select {
    max-width: 44vw;
  }
  .entry {
    margin: 6px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: 0s !important;
  }
}
.studio-bar .brand,
.back-projects {
  color: inherit;
  text-decoration: none;
}
.back-projects {
  font-size: 13px;
}
.viewport {
  overflow: hidden;
  background: repeating-linear-gradient(45deg, #d9e3da 0 1px, #e6ece7 1px 9px);
}
.device-bar {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  padding: 6px 14px;
  border-top: 1px solid #bccdc266;
  background: #e6eee8a6;
  color: #415b4b;
  font-size: 11px;
}
.device-bar select,
.model-picker select {
  border: 1px solid #bdcbbf;
  border-radius: 7px;
  background: #f9fcf9;
  padding: 3px 5px;
  color: #284637;
  font-size: 12px;
  max-width: 170px;
}
.device-bar output {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.model-picker {
  min-width: 0;
}
.model-picker select {
  max-width: 100%;
  font-size: 11px;
}
.device-bar button {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.viewport iframe {
  max-width: none;
  max-height: none;
}
.device-bar + .viewport .veil {
  z-index: 1;
}
@media (max-width: 700px) {
  .back-projects {
    display: none;
  }
  .device-bar {
    padding: 3px 8px;
    gap: 3px;
    font-size: 10px;
  }
  .device-bar select {
    font-size: 10px;
  }
  .model-picker select {
    max-width: 130px;
  }
}
.version-list {
  max-height: 62dvh;
  overflow: auto;
}
.version {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid #bdcbbf;
  padding: 12px 0;
}
.version small,
.version span {
  width: 100%;
  font-size: 12px;
}
.version .tool-action {
  padding: 5px 8px;
  margin: 2px;
}
.member-list {
  max-height: 46dvh;
  overflow: auto;
}
