@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;800&display=swap");
:root {
  font-family: "DM Sans", sans-serif;
  color: #252830;
  background: #f8f9fb;
  font-synthesis: none;
  --muted: #92959f;
  --line: #e9eaee;
  --accent: #6268dc;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button:hover {
  filter: brightness(0.94);
}
header {
  height: 80px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 25px;
}
.brand {
  font-family: "Manrope", sans-serif;
  font-size: 35px;
  font-weight: 800;
  letter-spacing: -3px;
  text-decoration: none;
  color: #282b33;
}
.brand-dot {
  color: var(--accent);
}
.divider {
  height: 23px;
  width: 1px;
  background: var(--line);
}
.project-name {
  font-weight: 550;
  font-size: 14px;
}
.project-name span {
  margin-left: 20px;
  color: #9699a4;
}
.local-label {
  font-size: 12px;
  color: #999da7;
  margin-left: 4px;
}
.header-actions {
  margin-left: auto;
  display: flex;
  gap: 22px;
  align-items: center;
}
.quiet {
  font-size: 14px;
}
.dark {
  background: #292c35;
  color: white;
  border-radius: 9px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 500;
}
.dark span {
  margin-left: 18px;
}
main {
  display: grid;
  grid-template-columns: 190px minmax(360px, 1fr) 355px;
  height: calc(100dvh - 80px);
  min-height: 720px;
}
.screens-panel {
  background: white;
  border-right: 1px solid var(--line);
  padding: 29px 20px;
  display: flex;
  flex-direction: column;
}
.section-title {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.6px;
  color: #8f939e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title button {
  font-size: 21px;
  color: #828693;
  padding: 0;
}
.screen-tile {
  padding: 10px;
  width: 100%;
  border-radius: 11px;
  text-align: left;
  border: 1px solid transparent;
  margin-bottom: 12px;
}
.screen-tile.active {
  background: #f0f0fb;
  border-color: #dbdcf7;
}
.screen-thumb {
  height: 133px;
  overflow: hidden;
  background: #f1f2f5;
  border: 1px solid #e8e9ef;
  border-radius: 7px;
  display: flex;
  justify-content: center;
  padding-top: 10px;
}
.screen-thumb img {
  width: 64px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 2px 6px #0001;
}
.screen-tile .tile-label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 10px;
  font-size: 12px;
  font-weight: 500;
}
.tile-label span {
  font-size: 10px;
  color: #a1a4b0;
}
.screen-tile.active .tile-label {
  color: #6268c6;
}
.import-link {
  font-size: 11px;
  color: #858995;
  text-align: left;
  padding: 10px;
}
.sidebar-foot {
  margin-top: auto;
  padding-top: 25px;
}
.tiny-logo {
  font-size: 25px;
  color: #c5c7d0;
  font-weight: 700;
  letter-spacing: -2px;
}
.sidebar-foot p {
  font-size: 11px;
  line-height: 1.7;
  color: #9da1aa;
}
.studio {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: #f7f8fa;
  background-image: radial-gradient(#d7dae3 0.7px, transparent 0.7px);
  background-size: 18px 18px;
}
.studio-top {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  background: linear-gradient(#f7f8fa, #f7f8fae8);
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
}
.tag {
  border: 1px solid #dddfe5;
  color: #9397a0;
  border-radius: 4px;
  padding: 3px 5px;
  font-size: 8px;
  letter-spacing: 1px;
}
.mode-switch {
  display: flex;
  padding: 3px;
  background: #eceef2;
  border-radius: 8px;
}
.mode-switch button {
  font-size: 11px;
  padding: 8px 11px;
  color: #9397a0;
  border-radius: 6px;
}
.mode-switch button.active {
  background: white;
  color: #444854;
  box-shadow: 0 1px 5px #0000000a;
}
.canvas-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px 24px;
  min-height: 0;
}
.canvas-note {
  font-size: 9px;
  letter-spacing: 2px;
  color: #a0a4af;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
}
.note-line {
  width: 18px;
  height: 1px;
  background: #aeb1bd;
}
.phone {
  width: 282px;
  aspect-ratio: 390/844;
  position: relative;
  background: #16181d;
  border: 6px solid #27292e;
  outline: 1px solid #4b4d52;
  border-radius: 43px;
  box-shadow:
    0 25px 45px -18px #3b425b45,
    0 6px 12px #3b425b12;
  overflow: hidden;
  flex-shrink: 0;
}
.phone-island {
  position: absolute;
  width: 80px;
  height: 21px;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: #191b1d;
  border-radius: 20px;
  z-index: 4;
  pointer-events: none;
}
#viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 35px;
  touch-action: none;
  cursor: crosshair;
}
#screenImage {
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
  display: block;
}
.home-indicator {
  position: absolute;
  bottom: 7px;
  width: 85px;
  height: 3px;
  background: #252723;
  border-radius: 10px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
#selection {
  position: absolute;
  border: 1.5px solid #7379f3;
  background: #777bf224;
  display: none;
  pointer-events: none;
  box-shadow: 0 0 0 1px #fff8;
}
#selection:after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 6px;
  height: 6px;
  background: white;
  border: 1px solid #7379f3;
}
#hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hotspot {
  position: absolute;
  pointer-events: auto;
  background: transparent;
}
.hotspot:hover {
  background: #6b6ee622;
  border: 1px dashed #7379f3;
}
.phone-caption {
  display: flex;
  gap: 15px;
  font-size: 9px;
  color: #a0a4ae;
  margin-top: 24px;
}
.phone-caption span:first-child {
  color: #696e7b;
}
.studio-bottom {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: #f7f8faf2;
  font-size: 10px;
  color: #969ba6;
}
.studio-bottom i {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #a9adb9;
  border-radius: 50%;
  margin-right: 6px;
}
.studio-bottom button {
  font-size: 11px;
  color: #757b88;
}
.assistant {
  background: white;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.assistant-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 23px 24px;
  border-bottom: 1px solid #f0f1f4;
}
.orb {
  background: #f0effb;
  color: #7a75c5;
  border: 1px solid #e6e3f7;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 29px;
}
.assistant h1 {
  font-size: 13px;
  margin: 0 0 5px;
  font-weight: 600;
}
.assistant-heading p {
  font-size: 11px;
  color: #a1a4ae;
  margin: 0;
}
.help {
  border: 1px solid #e1e3e9;
  border-radius: 50%;
  font-size: 11px;
  color: #9c9fa8;
  margin-left: auto;
  width: 20px;
  height: 20px;
  padding: 0;
}
#messages {
  padding: 26px 23px;
  flex: 1;
  overflow: auto;
  scroll-behavior: smooth;
  min-height: 140px;
}
.message {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 23px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message.agent {
  color: #7b808c;
}
.message.agent strong {
  display: block;
  color: #444954;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
}
.message.user {
  background: #f3f3fa;
  border-radius: 12px 12px 2px 12px;
  padding: 12px 14px;
  color: #555969;
  margin-left: 18px;
}
.suggestions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  margin-top: 20px;
}
.suggestions button {
  font-size: 11px;
  border: 1px solid #e8e9ef;
  border-radius: 7px;
  padding: 9px 12px;
  background: #fff;
  color: #737987;
}
.suggestions button span {
  margin-right: 8px;
  color: #a2a4c4;
}
.message-caption {
  font-size: 10px;
  color: #afb2ba;
  line-height: 1.7;
  margin-top: 26px;
}
.composer-area {
  padding: 16px 19px 14px;
}
#chatForm {
  border: 1px solid #e4e6ed;
  border-radius: 12px;
  padding: 12px 12px 8px;
  box-shadow: 0 3px 9px #20254103;
}
textarea {
  width: 100%;
  resize: none;
  border: 0;
  outline: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #535968;
  background: none;
}
textarea::placeholder {
  color: #a7abb5;
}
.composer-tools {
  display: flex;
  align-items: center;
  gap: 9px;
}
.composer-tools button {
  font-size: 20px;
  color: #969aa7;
  padding: 2px;
}
.composer-tools span {
  font-size: 9px;
  color: #b1b4bd;
}
.composer-tools .send {
  margin-left: auto;
  background: #7478cf;
  color: #fff;
  width: 29px;
  height: 29px;
  border-radius: 7px;
  font-size: 19px;
}
.composer-foot {
  text-align: center;
  font-size: 9px;
  color: #b2b5be;
  margin: 12px 0 0;
}
#selectionInfo {
  font-size: 11px;
  background: #f0f0fc;
  color: #7776ad;
  padding: 9px;
  border-radius: 7px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}
#selectionInfo[hidden] {
  display: none;
}
#selectionInfo button {
  margin-left: auto;
}
#proposal {
  margin: 0 20px;
  max-height: 230px;
  overflow: auto;
  border: 1px solid #e1e1f3;
  border-radius: 10px;
  padding: 13px;
  background: #fafaff;
  font-size: 12px;
  color: #737887;
}
#proposal img {
  max-height: 100px;
  max-width: 100%;
  display: block;
  margin: 10px auto;
}
#proposal button {
  padding: 8px;
  font-size: 11px;
}
#proposal .approve {
  background: #7378d1;
  color: #fff;
  border-radius: 6px;
}
dialog {
  border: 1px solid #e4e5ec;
  border-radius: 18px;
  padding: 28px;
  width: 470px;
  max-width: calc(100% - 32px);
  max-height: 85dvh;
  color: #444a56;
  box-shadow: 0 30px 100px #252a4320;
}
dialog::backdrop {
  background: #22263a55;
  backdrop-filter: blur(4px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-head h2 {
  font-family: Manrope, sans-serif;
  font-size: 20px;
  margin: 0;
}
.dialog-head button {
  font-size: 25px;
  color: #979ba6;
}
dialog > p {
  font-size: 13px;
  color: #969ba6;
  line-height: 1.6;
}
.export-option {
  display: block;
  text-align: left;
  border: 1px solid #e7e8ef;
  border-radius: 9px;
  padding: 15px;
  width: 100%;
  margin-top: 12px;
  font-size: 14px;
}
.export-option small {
  display: block;
  color: #9b9faa;
  font-size: 11px;
  margin-top: 7px;
}
.version-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  font-size: 12px;
}
.version-row small {
  display: block;
  color: #9b9faa;
  margin-top: 5px;
}
.version-row button {
  margin-left: auto;
  color: var(--accent);
  font-size: 11px;
}
.wide {
  width: 100%;
  margin-top: 20px;
}
select {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  background: white;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #2b303c;
  color: white;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 12px;
  z-index: 20;
  transition: transform 0.2s;
  max-width: 90vw;
}
#toast.show {
  transform: translateX(-50%) translateY(0);
}
.screen-enter {
  animation: screenIn 0.3s ease;
}
@keyframes screenIn {
  from {
    opacity: 0.3;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@media (min-height: 950px) and (min-width: 1000px) {
  .phone {
    width: 320px;
  }
}
@media (max-width: 1150px) {
  main {
    grid-template-columns: 145px minmax(320px, 1fr) 310px;
  }
  .screens-panel {
    padding: 25px 14px;
  }
  .studio-top {
    padding: 0 18px;
  }
  .local-label {
    display: none;
  }
  .assistant-heading {
    padding: 24px 18px;
  }
  .phone-caption {
    gap: 10px;
    font-size: 8px;
  }
}
@media (max-width: 850px) {
  header {
    padding: 0 20px;
    height: 65px;
    gap: 16px;
  }
  main {
    height: auto;
    min-height: calc(100dvh - 65px);
    grid-template-columns: 85px minmax(280px, 1fr);
  }
  .assistant {
    grid-column: 1/-1;
    border-top: 1px solid var(--line);
    border-left: 0;
    min-height: 370px;
  }
  .screens-panel {
    padding: 24px 8px;
  }
  .section-title {
    font-size: 8px;
    letter-spacing: 0.8px;
  }
  .screen-tile {
    padding: 5px;
  }
  .screen-thumb {
    height: 85px;
    padding-top: 5px;
  }
  .screen-thumb img {
    width: 45px;
  }
  .screen-tile .tile-label {
    font-size: 9px;
    gap: 3px;
  }
  .tile-label span {
    display: none;
  }
  .sidebar-foot {
    display: none;
  }
  .import-link {
    font-size: 9px;
    padding: 5px;
  }
  .studio {
    min-height: 710px;
  }
  .assistant-heading {
    padding: 20px 24px;
  }
  #messages {
    max-height: 350px;
  }
  .suggestions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .composer-area {
    padding: 0 22px 18px;
  }
  #proposal {
    margin-bottom: 20px;
  }
  .studio-bottom {
    padding: 0 14px;
  }
  .studio-bottom span {
    font-size: 8px;
  }
}
@media (max-width: 430px) {
  header {
    padding: 0 14px;
    gap: 12px;
  }
  .header-actions {
    gap: 10px;
  }
  .quiet span {
    display: none;
  }
  .dark {
    padding: 10px 12px;
  }
  .dark span {
    margin-left: 5px;
  }
  .project-name {
    font-size: 12px;
  }
  .project-name span {
    margin-left: 5px;
  }
  main {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .screens-panel {
    padding: 20px 4px;
  }
  .section-title {
    font-size: 7px;
    padding: 0 3px;
  }
  .section-title button {
    font-size: 18px;
  }
  .screen-thumb {
    height: 73px;
  }
  .screen-thumb img {
    width: 36px;
  }
  .studio-top {
    height: 85px;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 10px;
  }
  .studio {
    min-height: 685px;
  }
  .phone {
    width: min(252px, calc(100vw - 91px));
    border-radius: 36px;
  }
  .phone-caption {
    font-size: 8px;
    gap: 10px;
  }
  .phone-caption span:last-child {
    display: none;
  }
  .canvas-area {
    padding: 10px 12px 18px;
  }
  .canvas-note {
    font-size: 7px;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
  }
  .studio-bottom span {
    display: none;
  }
  .studio-bottom {
    justify-content: center;
  }
  .breadcrumbs {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (min-width: 851px) {
  .phone {
    width: clamp(230px, calc((100dvh - 290px) * 0.462), 320px);
  }
}

.icon {
  width: 15px;
  height: 15px;
  vertical-align: -3px;
  flex-shrink: 0;
}
.composer-tools .icon {
  width: 18px;
  height: 18px;
}
