/* The app builder (app.html). Loaded after base.css and device.css. */

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---- top bar ------------------------------------------------------------ */

.topbar {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--topbar-h);
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
}

/* A moving highlight along the bottom edge while a build is running. */
body.is-busy .topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent) 0 0 / 40% 100% no-repeat;
  animation: sweep 1.3s linear infinite;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.topbar-project {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.crumb {
  color: var(--text-faint);
}

.project-name {
  width: 240px;
  min-width: 80px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  font-weight: 550;
  text-overflow: ellipsis;
}

.project-name:hover {
  border-color: var(--line);
}

.project-name:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-0);
}

.save-state {
  font-size: 12px;
  color: var(--text-faint);
  white-space: nowrap;
}

.save-state[data-state="failed"] {
  color: var(--danger);
}

.topbar-spacer {
  flex: 1;
}

/* How many credits the user has, shown only while a build costs some. */
.credits-pill {
  flex: none;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 550;
  white-space: nowrap;
}

/* Not enough left for another build. */
.credits-pill.is-short {
  border-color: rgba(251, 191, 36, 0.4);
  color: var(--warn);
}

/* Nothing but the top bar shows until we know who is signed in. */
body.is-booting main,
body.is-booting .banner {
  visibility: hidden;
}

/* The account menu: an avatar that opens a small panel. */
.user-menu {
  position: relative;
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.user-avatar::-webkit-details-marker {
  display: none;
}

.user-avatar:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.user-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
  max-width: 300px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.user-label {
  color: var(--text-faint);
  font-size: 12px;
}

.user-email {
  margin-bottom: 10px;
  overflow: hidden;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.banner {
  flex: none;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.09);
  color: #f6d48a;
  font-size: 13px;
}

.banner code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
  font-family: var(--mono);
  font-size: 12px;
}

/* ---- home --------------------------------------------------------------- */

.home {
  flex: 1;
  overflow-y: auto;
  padding: 9vh 24px 64px;
  background: radial-gradient(900px 420px at 50% -90px, rgba(124, 108, 255, 0.2), transparent 70%), var(--bg-0);
}

.hero {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.hero-sub {
  max-width: 540px;
  margin: 0 auto 28px;
  color: var(--text-dim);
  font-size: 16px;
}

.idea-form {
  padding: 14px 14px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--bg-1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.idea-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 20px 60px rgba(0, 0, 0, 0.35);
}

.idea-form textarea {
  display: block;
  width: 100%;
  min-height: 84px;
  padding: 2px;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  font-size: 16px;
  line-height: 1.5;
}

.idea-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.hint {
  color: var(--text-faint);
  font-size: 12px;
}

.idea-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.chip-btn {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-1);
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.chip-btn:hover {
  border-color: var(--line-strong);
  background: var(--bg-2);
  color: var(--text);
}

.projects {
  max-width: 960px;
  margin: 56px auto 0;
}

.projects h2 {
  margin: 0 0 12px;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.project-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-1);
  transition: background 0.15s, border-color 0.15s;
}

.project-card:hover {
  border-color: var(--line-strong);
  background: var(--bg-2);
}

.project-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 44px 14px 14px;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}

.project-card-name {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card-time {
  color: var(--text-faint);
  font-size: 12px;
}

.project-card .icon-btn {
  position: absolute;
  top: 9px;
  right: 9px;
  opacity: 0;
}

.project-card:hover .icon-btn,
.project-card .icon-btn:focus-visible {
  opacity: 1;
}

.project-card .icon-btn:hover {
  color: var(--danger);
}

/* ---- workspace ---------------------------------------------------------- */

.workspace {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: var(--chat-w) minmax(0, 1fr);
}

.workspace[data-view="split"] {
  grid-template-columns: var(--chat-w) minmax(260px, var(--code-w, 46%)) 5px minmax(260px, 1fr);
}

.workspace[data-view="preview"] .code-pane,
.workspace[data-view="preview"] .splitter,
.workspace[data-view="code"] .preview-pane,
.workspace[data-view="code"] .splitter {
  display: none;
}

/* ---- chat --------------------------------------------------------------- */

.chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--line);
  background: var(--bg-1);
}

.chat-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-empty {
  margin: 0;
  padding: 48px 20px;
  color: var(--text-faint);
  font-size: 13px;
  text-align: center;
}

.msg-user {
  align-self: flex-end;
  max-width: 88%;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 14px 14px 4px 14px;
  background: var(--bg-3);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.msg-ai {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.ai-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.thinking {
  padding-left: 10px;
  border-left: 2px solid var(--line-strong);
  color: var(--text-dim);
  font-size: 12.5px;
}

.thinking summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-faint);
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.thinking summary::-webkit-details-marker {
  display: none;
}

.thinking summary .icon {
  width: 12px;
  height: 12px;
  transition: transform 0.15s;
}

.thinking[open] summary .icon {
  transform: rotate(90deg);
}

.thinking-body {
  max-height: 170px;
  margin-top: 6px;
  overflow-y: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.file-chips {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.file-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-0);
  font-family: var(--mono);
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s;
}

.file-chip:hover {
  border-color: var(--line-strong);
}

.file-chip .icon {
  width: 14px;
  height: 14px;
  color: var(--text-faint);
}

.file-chip.is-writing .icon {
  color: var(--accent);
  animation: spin 0.9s linear infinite;
}

.file-chip.is-done .icon {
  color: var(--ok);
}

.file-chip.is-deleted {
  cursor: default;
}

.file-chip.is-deleted .chip-path {
  color: var(--text-faint);
  text-decoration: line-through;
}

.chip-path {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip-note {
  color: var(--text-faint);
  font-family: var(--font);
  font-size: 12px;
  white-space: nowrap;
}

.msg-meta {
  color: var(--text-faint);
  font-size: 12px;
}

.msg-note {
  color: var(--warn);
  font-size: 12.5px;
}

.msg-error {
  padding: 8px 10px;
  border: 1px solid rgba(251, 113, 133, 0.35);
  border-radius: 8px;
  background: rgba(251, 113, 133, 0.08);
  color: #fda4b4;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.typing {
  display: inline-flex;
  gap: 4px;
  padding: 4px 0;
}

.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  animation: pulse 1.2s ease-in-out infinite both;
}

.typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.typing i:nth-child(3) {
  animation-delay: 0.3s;
}

.composer {
  flex: none;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 0 12px;
  padding: 7px 7px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--bg-0);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.composer:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.composer textarea {
  flex: 1;
  min-width: 0;
  max-height: 160px;
  padding: 5px 0;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  line-height: 1.45;
}

.composer-send {
  width: 32px;
  flex: none;
  padding: 0;
  border-radius: 9px;
}

.composer-send.is-stop {
  border-color: var(--line-strong);
  background: var(--bg-3);
  color: var(--text);
}

.composer-meta {
  flex: none;
  padding: 6px 16px 10px;
  color: var(--text-faint);
  font-size: 11.5px;
  text-align: center;
}

/* ---- code --------------------------------------------------------------- */

.code-pane {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  background: var(--bg-1);
}

.file-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--line);
}

.file-panel-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 6px 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.file-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px;
  overflow-y: auto;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 5px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.file-item:hover {
  background: var(--bg-2);
  color: var(--text);
}

.file-item.is-active {
  background: var(--accent-soft);
  color: var(--text);
}

.file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-kind {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 2px;
  background: var(--text-faint);
}

.kind-html { background: #f0834d; }
.kind-css { background: #4fa3ff; }
.kind-js { background: #f2cc4d; }
.kind-json { background: #34d399; }
.kind-md { background: #a2abbd; }
.kind-svg { background: #d68cf0; }

.file-dot {
  display: none;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--warn);
}

.file-item.is-dirty .file-dot {
  display: block;
}

.file-new input {
  width: 100%;
  padding: 4px 8px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  outline: 0;
  background: var(--bg-0);
  font-size: 13px;
}

.editor-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.editor-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 6px 0 14px;
  border-bottom: 1px solid var(--line);
}

.editor-path {
  overflow: hidden;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #b9b0ff;
  font-size: 11.5px;
  font-weight: 550;
}

.live-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.2s ease-in-out infinite;
}

.editor {
  flex: 1;
  min-height: 0;
}

.editor-empty {
  position: absolute;
  inset: 42px 0 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg-1);
  color: var(--text-faint);
  text-align: center;
}

.editor-empty p {
  max-width: 280px;
  margin: 0;
}

.splitter {
  background: var(--line);
  cursor: col-resize;
  touch-action: none;
  transition: background 0.15s;
}

.splitter:hover,
body.is-resizing .splitter {
  background: var(--accent);
}

body.is-resizing {
  cursor: col-resize;
  user-select: none;
}

body.is-resizing iframe,
body.is-resizing .editor {
  pointer-events: none;
}

/* ---- preview ------------------------------------------------------------ */

.preview-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--bg-0);
  /* Lets the bar below adapt to the pane's width rather than the window's. */
  container-type: inline-size;
}

.pane-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 42px;
  padding: 0 8px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
}

/* In a narrow preview pane the device buttons keep their pictures and drop their words. */
@container (max-width: 540px) {
  #deviceSwitch button {
    gap: 0;
    padding: 0 8px;
    font-size: 0;
  }
}

/* On the narrowest phones "Send To Device" gives up its picture to stay on the bar. */
@container (max-width: 372px) {
  .pane-btn .icon {
    display: none;
  }
}

/* Narrower still (a slim side-by-side pane): the picture alone, and everything closer together. */
@container (max-width: 340px) {
  .pane-bar {
    gap: 2px;
    padding: 0 4px;
  }

  #deviceSwitch button {
    padding: 0 6px;
  }

  /* By id, so the button's own styles further down do not undo this. */
  #phoneBtn {
    gap: 0;
    padding: 0 9px;
    font-size: 0;
  }

  #phoneBtn .icon {
    display: block;
  }
}

.stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 28px;
  overflow: hidden;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 18px 18px;
}

@media (max-width: 1100px) {
  :root {
    --chat-w: 300px;
  }

  .project-name {
    width: 160px;
  }

  .code-pane {
    grid-template-columns: 150px minmax(0, 1fr);
  }
}

/* ---- send to device ----------------------------------------------------- */

.pane-btn {
  height: 30px;
  margin-left: 6px;
  padding: 0 12px;
  font-size: 13px;
}

.phone-dialog {
  width: min(430px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 24px;
}

.phone-dialog h3 {
  font-size: 19px;
}

.phone-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.dialog .phone-lead {
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}

.phone-lead b {
  color: var(--text);
  font-weight: 600;
}

.dialog .phone-warning {
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.1);
  color: #fde68a;
  font-size: 13px;
}

.phone-install {
  width: 100%;
  height: 44px;
  justify-content: center;
  font-size: 15px;
}

/* A line across the dialog with its words in the middle. */
.dialog .phone-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 16px;
  color: var(--text-faint);
  font-size: 12.5px;
}

.phone-or::before,
.phone-or::after {
  flex: 1;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.phone-qr {
  display: grid;
  place-items: center;
  width: 228px;
  height: 228px;
  margin: 0 auto 16px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}

.qr {
  display: block;
  width: 100%;
  height: 100%;
}

.phone-link-row {
  display: flex;
  gap: 8px;
}

.phone-link {
  flex: 1;
  min-width: 0;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: 0;
  background: var(--bg-0);
  font-family: var(--mono);
  font-size: 12.5px;
}

.phone-link:focus {
  border-color: var(--accent);
}

.phone-devices {
  display: flex;
  margin-top: 18px;
}

.phone-devices button {
  flex: 1;
  justify-content: center;
}

.phone-steps .icon {
  width: 16px;
  height: 16px;
  color: var(--text);
  vertical-align: -3px;
}

.phone-steps {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--text-dim);
}

.phone-steps b {
  color: var(--text);
  font-weight: 600;
}

.dialog .phone-note {
  margin: 14px 0 0;
  color: var(--text-faint);
  font-size: 12.5px;
}

.phone-qr .phone-note {
  margin: 0;
  padding: 16px;
  color: #444;
  text-align: center;
}

/* ---- phones ---------------------------------------------------------------
   One pane at a time: Chat, Preview or Code, picked from a row of tabs under
   the top bar. The width here matches narrowScreen in app.js. */

/* The Chat tab only exists where the chat is not always in view. */
#viewSwitch [data-view="chat"] {
  display: none;
}

/* Nothing to hover with on a touch screen, so the delete button is always there. */
@media (hover: none) {
  .project-card .icon-btn {
    opacity: 1;
  }
}

@media (max-width: 820px) {
  body {
    height: 100dvh;
  }

  .topbar {
    flex-wrap: wrap;
    row-gap: 8px;
    height: auto;
    min-height: var(--topbar-h);
    padding: 8px 12px;
  }

  /* The logo alone leads home, which is also what "New app" does. */
  .brand span,
  .crumb,
  #newAppBtn {
    display: none;
  }

  .topbar > .topbar-spacer {
    display: none;
  }

  .topbar-project {
    flex: 1;
  }

  .project-name {
    flex: 1;
    width: 0;
  }

  .user-menu {
    margin-left: auto;
  }

  #viewSwitch {
    display: flex;
    flex: 0 0 100%;
    order: 1;
  }

  #viewSwitch button {
    flex: 1;
    justify-content: center;
    height: 34px;
  }

  #viewSwitch [data-view="chat"] {
    display: inline-flex;
  }

  #viewSwitch [data-view="split"] {
    display: none;
  }

  .workspace,
  .workspace[data-view="split"] {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace:not([data-view="chat"]) .chat,
  .workspace[data-view="chat"] .code-pane,
  .workspace[data-view="chat"] .preview-pane,
  .workspace .splitter {
    display: none;
  }

  .chat {
    border-right: 0;
  }

  /* Phones zoom the page in on a field whose text is smaller than 16px. */
  .project-name,
  .composer textarea,
  .file-new input,
  .phone-link {
    font-size: 16px;
  }

  .composer-send {
    width: 38px;
    height: 38px;
  }

  .home {
    padding: 6vh 16px 48px;
  }

  .hint {
    display: none;
  }

  .idea-actions {
    justify-content: flex-end;
  }

  /* Code: the files become a strip along the top, the editor gets the rest. */
  .code-pane {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .file-panel {
    flex-direction: row;
    align-items: center;
    min-width: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .file-panel-head {
    gap: 4px;
    border-bottom: 0;
  }

  .file-list {
    flex-direction: row;
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .file-item {
    flex: none;
    padding: 8px 10px;
  }

  .file-new {
    flex: none;
    width: 170px;
  }

  /* Preview: the bar's buttons get finger-sized, the device gets the room. */
  .pane-bar {
    overflow-x: auto;
  }

  .pane-bar .icon-btn,
  .editor-bar .icon-btn,
  .file-panel-head .icon-btn {
    flex: none;
    width: 32px;
    height: 34px;
  }

  #deviceSwitch button {
    height: 30px;
  }

  .pane-btn {
    flex: none;
    height: 34px;
    padding: 0 10px;
  }

  .stage {
    gap: 16px;
    padding: 12px;
  }

  .phone-dialog {
    padding: 20px 18px;
  }
}
