:root {
  color-scheme: light;
  --page: #fafaf9;
  --surface: #ffffff;
  --surface-soft: #f3f3f1;
  --surface-muted: #f7f7f5;
  --text: #151515;
  --text-muted: #777774;
  --text-faint: #aaa9a5;
  --line: #e9e9e6;
  --accent: #317ff0;
  --accent-soft: #eaf2ff;
  --shadow-soft: 0 10px 30px rgba(25, 25, 20, 0.07);
  font-family: Inter, "SF Pro Display", "Segoe UI", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  background: var(--page);
  color: var(--text);
}

body {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(49, 127, 240, 0.28);
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app {
  position: relative;
  height: 100dvh;
  overflow: hidden;
  background: var(--page);
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 82px;
  padding: max(16px, env(safe-area-inset-top)) 20px 10px;
}

.round-button,
.back-button,
.close-button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, background-color 160ms ease;
}

.round-button:active,
.back-button:active,
.close-button:active,
.send-button:active,
.drawer-header-action:active,
.suggestion-card:active {
  transform: scale(0.96);
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 25px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.menu-lines {
  position: relative;
}

.menu-lines::before,
.menu-lines::after {
  position: absolute;
  content: "";
}

.menu-lines::before {
  top: -8px;
}

.menu-lines::after {
  top: 8px;
}

.new-button {
  color: var(--accent);
  font-size: 29px;
  font-weight: 300;
  line-height: 1;
}

.main-content {
  position: relative;
  height: calc(100dvh - 82px);
  overflow: hidden;
}

.home-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 560px);
  height: 100%;
  margin: 0 auto;
  padding: 18px 20px 140px;
  text-align: center;
}

.home-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.home-intro h1 {
  margin: 0;
  font-size: clamp(27px, 7vw, 38px);
  font-weight: 650;
  letter-spacing: -0.04em;
}

.home-description {
  max-width: 320px;
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.suggestion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 34px;
}

.suggestion-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.suggestion-card:hover {
  border-color: #d4d4d0;
  background: var(--surface-muted);
}

.suggestion-mark {
  display: block;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.mark-blue { background: #4f91f6; }
.mark-orange { background: #ec8c3a; }
.mark-green { background: #4da77a; }
.mark-purple { background: #8f75db; }

.chat-view {
  display: flex;
  flex-direction: column;
  width: min(100%, 680px);
  height: 100%;
  margin: 0 auto;
  padding: 0 18px 130px;
}

.chat-heading {
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}

.back-button {
  width: 42px;
  height: 42px;
  background: transparent;
  box-shadow: none;
  font-size: 37px;
  font-weight: 300;
  line-height: 1;
}

.chat-heading-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.chat-heading-copy strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-heading-copy small {
  color: var(--text-muted);
  font-size: 12px;
}

.running-pill {
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid #d7e6ff;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  white-space: nowrap;
}

.message-list {
  flex: 1;
  overflow-y: auto;
  padding: 18px 0 14px;
  scrollbar-width: none;
}

.message-list::-webkit-scrollbar {
  display: none;
}

.message {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 92%;
  margin: 0 0 24px;
}

.message.user {
  align-items: flex-end;
  margin-left: auto;
}

.message-role {
  display: none;
}

.message-body {
  padding: 13px 15px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 5px 18px rgba(25, 25, 20, 0.05);
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message.user .message-body {
  border-bottom-right-radius: 5px;
  background: #ededeb;
}

.message.assistant .message-body {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.generated-image-frame {
  display: block;
  width: 100%;
  min-height: 120px;
  margin: 10px 0 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.generated-image-frame img {
  display: block;
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
}

.generated-image-status {
  display: grid;
  min-height: 120px;
  place-items: center;
  color: var(--text-muted);
  font-size: 13px;
}

.generated-image-status.error {
  color: #b45b5b;
}

.message.tool {
  display: block;
  max-width: 100%;
  margin: 0 0 12px;
}

.message.tool .message-role {
  display: none;
}

.message-body.tool-note {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  box-shadow: none;
}

.turn-process-group {
  width: 100%;
  margin: 0 0 22px;
}

.turn-process-header {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 38px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 12px;
  text-align: left;
}

.turn-process-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.turn-process-arrow {
  display: inline-block;
  color: var(--text-faint);
  font-size: 17px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 160ms ease;
}

.turn-process-group.expanded .turn-process-arrow {
  transform: rotate(90deg);
}

.turn-process-body {
  display: none;
  padding: 12px 0 1px;
}

.turn-process-group.expanded .turn-process-body {
  display: block;
}

.turn-process-group.empty .turn-process-arrow {
  visibility: hidden;
}

.turn-process-group.empty .turn-process-header {
  cursor: default;
}

.turn-process-text {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.turn-process-group.running .turn-process-label,
.turn-process-group.running .turn-process-text,
.turn-process-group.running .turn-tool-row > summary {
  color: transparent;
  background: linear-gradient(100deg, #a1a1a1 20%, #3e82ef 46%, #a1a1a1 72%);
  background-clip: text;
  background-size: 220% 100%;
  animation: process-shimmer 1.8s linear infinite;
}

.turn-tool-row {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 12px;
}

.turn-tool-row > summary {
  padding: 6px 0;
  cursor: pointer;
  list-style-position: inside;
  overflow-wrap: anywhere;
}

.turn-tool-row.failed > summary {
  color: #c45d5d;
}

.turn-tool-detail {
  max-height: 180px;
  margin: 4px 0 8px;
  padding: 10px 12px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text-muted);
  font: 11px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@keyframes process-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -120% 0; }
}

.composer {
  position: fixed;
  z-index: 3;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 16px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  width: min(100% - 32px, 560px);
  min-height: 62px;
  margin: 0 auto;
  padding: 9px 10px 9px 12px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px rgba(25, 25, 20, 0.1);
  backdrop-filter: blur(14px);
}

.skill-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 9px);
  left: 0;
  max-height: min(52vh, 360px);
  padding: 7px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 38px rgba(25, 25, 20, 0.13);
  backdrop-filter: blur(16px);
}

.model-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 9px);
  display: grid;
  grid-template-columns: 108px minmax(122px, 1fr) 88px;
  width: min(366px, calc(100vw - 24px));
  max-height: min(54vh, 340px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 38px rgba(25, 25, 20, 0.13);
  backdrop-filter: blur(16px);
}

.model-menu-section {
  min-width: 0;
  padding: 9px 7px;
  overflow-y: auto;
}

.model-menu-section + .model-menu-section {
  border-left: 1px solid var(--line);
}

.model-menu-title {
  padding: 3px 7px 7px;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 500;
}

.model-menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-height: 34px;
  padding: 0 7px;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  text-align: left;
}

.model-menu-item:hover,
.model-menu-item.selected {
  background: var(--surface-soft);
}

.model-menu-item-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-menu-check {
  width: 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.skill-menu-item {
  display: grid;
  grid-template-columns: minmax(118px, 0.52fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 8px 11px;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.skill-menu-item.selected,
.skill-menu-item:hover {
  background: var(--surface-soft);
}

.skill-menu-item strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill-menu-item small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.composer textarea {
  min-width: 0;
  width: 100%;
  flex: 1 1 auto;
  min-height: 42px;
  max-height: 130px;
  padding: 10px 2px;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
  scrollbar-width: none;
}

.composer textarea::-webkit-scrollbar {
  display: none;
}

.model-button {
  display: flex;
  min-width: 58px;
  min-height: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-bottom: 3px;
  padding: 0 8px;
  border-radius: 18px;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.model-button:hover,
.model-button[aria-expanded="true"] {
  background: var(--surface-soft);
  color: var(--text);
}

.model-button:disabled {
  cursor: default;
  opacity: 0.42;
}

.model-button-chevron {
  position: relative;
  top: -1px;
  font-size: 13px;
  transition: transform 160ms ease;
}

.model-button[aria-expanded="true"] .model-button-chevron {
  transform: rotate(180deg);
}

.composer textarea::placeholder {
  color: var(--text-faint);
}

.message.assistant .message-body p,
.turn-process-text p {
  margin: 0 0 10px;
}

.message.assistant .message-body p:last-child,
.turn-process-text p:last-child {
  margin-bottom: 0;
}

.message.assistant .message-body code,
.turn-process-text code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #efefed;
  color: #30302e;
  font: 0.88em/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
}

.message.assistant .message-body pre,
.turn-process-text pre {
  margin: 8px 0 12px;
  padding: 11px 12px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}

.message.assistant .message-body pre code,
.turn-process-text pre code {
  padding: 0;
  background: transparent;
}

.message.assistant .message-body a,
.turn-process-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.composer-action,
.send-button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
}

.composer-action {
  font-size: 28px;
  font-weight: 300;
}

.composer-action:hover {
  background: var(--surface-soft);
}

.send-button {
  background: var(--accent);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  transition: transform 160ms ease, opacity 160ms ease, background-color 160ms ease;
}

.send-arrow {
  display: block;
  width: 20px;
  height: 20px;
  background: currentColor;
  clip-path: polygon(42% 100%, 42% 36%, 18% 36%, 50% 0, 82% 36%, 58% 36%, 58% 100%);
}

.send-button:disabled {
  cursor: default;
  opacity: 0.4;
}

.stop-button {
  background: #282828;
  font-size: 13px;
}

.drawer-scrim {
  position: fixed;
  z-index: 9;
  inset: 0;
  background: rgba(25, 25, 24, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.drawer-scrim.open {
  opacity: 1;
  pointer-events: auto;
}

.thread-drawer {
  position: fixed;
  z-index: 10;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: min(330px, 88vw);
  flex-direction: column;
  padding: max(22px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  border-right: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 20px 0 45px rgba(25, 25, 20, 0.09);
  transform: translateX(-102%);
  transition: transform 200ms ease;
}

.thread-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.close-button {
  width: 38px;
  height: 38px;
  background: var(--surface-soft);
  box-shadow: none;
  color: var(--text-muted);
  font-size: 24px;
  font-weight: 300;
}

.drawer-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.drawer-header-action {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text);
  transition: background-color 160ms ease, transform 160ms ease;
}

.drawer-header-action:hover,
.drawer-header-action[aria-expanded="true"] {
  background: var(--surface-soft);
}

.drawer-header-action:disabled {
  cursor: default;
  opacity: 0.38;
}

.drawer-header-action img {
  width: 19px;
  height: 19px;
}

.drawer-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  margin: 10px 0 2px;
  padding: 0 13px;
  border-radius: 14px;
  background: var(--surface-soft);
}

.drawer-search > img {
  width: 17px;
  height: 17px;
  opacity: 0.56;
}

.drawer-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.drawer-search input::placeholder {
  color: var(--text-faint);
}

.drawer-section-title {
  margin: 15px 7px 8px;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.thread-list {
  flex: 1;
  min-height: 80px;
  overflow-y: auto;
  scrollbar-width: none;
}

.thread-list::-webkit-scrollbar {
  display: none;
}

.thread-section-title {
  margin: 17px 9px 7px;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.thread-section-title:first-child {
  margin-top: 4px;
}

.mobile-project {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 13px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.mobile-project:hover {
  background: var(--surface-soft);
}

.mobile-project.active {
  background: var(--surface-muted);
}

.mobile-project strong {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-project small {
  color: var(--text-faint);
  font-size: 11px;
}

.mobile-project-folder {
  position: relative;
  display: block;
  width: 17px;
  height: 13px;
  flex: 0 0 auto;
  border: 1.7px solid var(--text-muted);
  border-radius: 3px;
}

.mobile-project-folder::before {
  position: absolute;
  top: -5px;
  left: 1px;
  width: 8px;
  height: 5px;
  border: 1.7px solid var(--text-muted);
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  content: "";
}

.thread-item.project-thread {
  min-height: 57px;
  padding-left: 22px;
}

.thread-item.pinned-thread .thread-icon {
  background: #fff2df;
  color: #dc7a22;
}

.thread-empty {
  padding: 18px 9px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.thread-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 63px;
  padding: 9px 10px;
  border-radius: 15px;
  background: transparent;
  color: var(--text);
  text-align: left;
  transition: background-color 160ms ease;
}

.thread-item:hover,
.thread-item.active {
  background: var(--surface-soft);
}

.thread-item.running:not(.active) {
  background: var(--accent-soft);
}

.thread-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: -0.05em;
}

.thread-copy,
.row-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.thread-copy strong,
.row-copy strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-copy small,
.row-copy small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-state {
  min-width: 0;
  min-height: 20px;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: transparent;
  font-size: 10px;
  font-weight: 650;
  line-height: 20px;
  white-space: nowrap;
}

.thread-state.running {
  min-width: 45px;
  padding: 0 7px;
  background: #fff;
  color: var(--accent);
  text-align: center;
}

.drawer-footer {
  display: flex;
  min-height: 45px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding: 5px 3px 0;
  border-top: 1px solid var(--line);
}

.drawer-toolbar-settings,
.drawer-toolbar-computer {
  display: flex;
  align-items: center;
  min-height: 38px;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
}

.drawer-toolbar-settings:hover,
.drawer-toolbar-computer:hover {
  background: var(--surface-soft);
}

.drawer-toolbar-settings {
  gap: 9px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 500;
}

.drawer-toolbar-computer {
  position: relative;
  width: 40px;
  flex: 0 0 40px;
  justify-content: center;
  padding: 0;
}

.drawer-toolbar-settings img,
.drawer-toolbar-computer img {
  display: block;
  width: 18px;
  height: 18px;
}

.computer-status-dot {
  position: absolute;
  right: 6px;
  bottom: 7px;
  width: 6px;
  height: 6px;
  border: 1.5px solid var(--surface);
  border-radius: 50%;
  background: var(--text-faint);
}

.computer-status-dot.connected {
  background: #3da76d;
}

.pairing-overlay {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(25, 25, 24, 0.25);
}

.pairing-card {
  position: relative;
  width: min(100%, 390px);
  padding: 30px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: var(--surface);
  box-shadow: 0 20px 70px rgba(25, 25, 20, 0.18);
}

.pairing-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.pairing-kicker {
  margin-bottom: 9px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.pairing-card h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.pairing-card > p {
  margin: 10px 0 22px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.pairing-card form {
  display: flex;
  flex-direction: column;
}

.pairing-card label {
  margin: 0 0 7px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.pairing-card input {
  height: 46px;
  margin-bottom: 15px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  background: var(--surface-muted);
  color: var(--text);
}

.pairing-card input:focus {
  border-color: var(--accent);
  background: var(--surface);
}

.pairing-card input#pairingInput {
  font-size: 18px;
  letter-spacing: 0.1em;
  text-align: center;
}

.pairing-button {
  height: 48px;
  margin-top: 3px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 650;
}

.text-button {
  display: block;
  margin: 15px auto 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
}

.pairing-error {
  margin: -4px 0 10px;
  color: #d14d45;
  font-size: 12px;
  line-height: 1.5;
}

.pairing-status {
  margin: -4px 0 10px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.5;
}

.toast {
  position: fixed;
  z-index: 30;
  right: 50%;
  bottom: calc(max(16px, env(safe-area-inset-bottom)) + 82px);
  max-width: calc(100% - 40px);
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #262626;
  color: #fff;
  font-size: 13px;
  box-shadow: var(--shadow-soft);
  transform: translateX(50%);
}

@media (min-width: 721px) {
  .topbar {
    height: 94px;
    padding-right: 32px;
    padding-left: 32px;
  }

  .main-content {
    height: calc(100dvh - 94px);
  }

  .home-view {
    padding-bottom: 150px;
  }

  .composer {
    bottom: 26px;
  }
}

@media (max-width: 390px) {
  .topbar {
    gap: 10px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .suggestion-card {
    padding-right: 10px;
    padding-left: 10px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
