@font-face {
  font-family: Inter;
  src: url("./assets/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 15px;
  --canvas: #0c0e16;
  --panel: #181b28;
  --line: #32354a;
  --text: #f4f2ff;
  --muted: #b4b4d0;
  --dim: #81819e;
  --accent: #a88bff;
  --purple: #8059ff;
  --radius: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  height: 100dvh;
  overflow: hidden;
  color: var(--text);
  background: var(--canvas);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #c4adff;
  outline-offset: 4px;
}
button:hover {
  filter: brightness(1.15);
}
svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
img {
  object-fit: contain;
}
button > span[data-icon] {
  display: inline-flex;
  align-items: center;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  padding: 12px;
  background: var(--purple);
  border-radius: 8px;
}
.skip-link:focus {
  transform: none;
}
.app-shell {
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--canvas);
}
.app-layout {
  flex: 1;
  min-height: 0;
  display: flex;
}
.sidebar {
  width: 280px;
  flex-shrink: 0;
  border-right: 1px solid #232637;
  display: flex;
  flex-direction: column;
  padding: 22px 12px 20px;
  background: linear-gradient(155deg, #0d0f18, #0b0e14 65%, #0e1119);
  transition:
    width 0.18s,
    padding 0.18s;
}
.brand {
  display: flex;
  position: relative;
  gap: 12px;
  align-items: flex-start;
  padding: 0 7px;
  margin-bottom: 26px;
}
.brand img {
  width: 56px;
  height: 52px;
  filter: drop-shadow(0 0 8px #9364ff44);
}
.brand-name {
  display: block;
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.6px;
  margin: 5px 0;
}
.brand p {
  margin: 0;
  font-size: 0.79rem;
  color: #d6cfff;
  line-height: 1.5;
}
.brand small {
  font-size: 0.78rem;
  color: var(--dim);
}
.collapse-button {
  position: absolute !important;
  right: 2px;
  top: -2px;
  width: 28px !important;
  height: 28px !important;
  border: 1px solid #262a3b !important;
  border-radius: 8px !important;
  font-size: 18px !important;
}
.primary-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(115deg, #3a326380, #262642);
  border: 1px solid #9071ef;
  box-shadow: inset 0 0 10px #956aff18;
  border-radius: 12px;
}
.new-chat {
  width: 100%;
  min-height: 48px;
  color: #d5c0ff;
  font-weight: 550;
  box-shadow:
    inset 0 0 0 2px #9165ff15,
    0 0 14px #8059ff10;
}
.new-chat svg {
  width: 20px;
}
.history {
  flex: 1;
  overflow-y: auto;
  margin: 24px -2px 12px;
  scrollbar-width: thin;
  scrollbar-color: #383248 transparent;
}
.history-group {
  margin: 3px 14px 8px;
  color: #c0bdd7;
  font-size: 0.83rem;
  font-weight: 400;
}
.history-group:not(:first-child) {
  margin-top: 34px;
}
.history-item {
  width: 100%;
  display: flex;
  text-align: left;
  align-items: flex-start;
  gap: 17px;
  padding: 13px 15px;
  min-height: 62px;
  position: relative;
  border-radius: 9px;
}
.history-item svg {
  margin-top: 7px;
  width: 20px;
  height: 20px;
  color: #c2bfdc;
}
.history-item.active {
  background: #242240;
  box-shadow: inset 3px 0 #976aff;
}
.history-item.active strong {
  color: #bb9cff;
}
.history-item strong {
  font-size: 0.88rem;
  font-weight: 500;
  display: block;
  margin: 1px 0 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}
.history-item small {
  color: var(--muted);
  font-size: 0.8rem;
  display: block;
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-item time {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--muted);
  padding-top: 5px;
}
.history-item:hover {
  background: #202033;
}
.history-empty {
  color: var(--dim);
  font-size: 0.85rem;
  line-height: 1.8;
  margin: 12px 15px;
}
.sidebar-account {
  display: flex;
  text-align: left;
  align-items: center;
  gap: 13px;
  padding: 22px 16px 12px;
  border-top: 1px solid #252739;
  border-radius: 14px 14px 0 0;
  min-width: 0;
}
.avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(140deg, #777383, #3b374e);
  color: #e7dbff;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar.small {
  width: 32px;
  height: 32px;
}
.avatar.small svg {
  width: 19px;
}
.account-copy {
  min-width: 0;
}
.account-copy strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 550;
}
.account-copy small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-more {
  margin-left: auto;
  color: var(--muted);
  font-weight: bold;
}
.workspace {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  background:
    radial-gradient(ellipse 63% 28% at 46% 11%, #392b714f, transparent 85%),
    radial-gradient(ellipse 65% 28% at 95% 3%, #302b6536, transparent),
    linear-gradient(110deg, #0d0f18, #0b0e16);
}
.topbar {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 16px 0 30px;
  min-height: 58px;
  flex-shrink: 0;
}
.topbar-spacer {
  flex: 1;
}
.credit-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 13px;
  min-height: 43px;
  border: 1px solid #4a406d;
  border-radius: 13px;
  background: #0b0d1880;
  font-size: 0.82rem;
  white-space: nowrap;
}
.credit-chip svg {
  color: #a388ff;
  width: 21px;
}
.credit-chip strong {
  font-weight: 650;
  color: #a98cff;
}
.new-conversation {
  padding: 10px 14px;
  min-height: 43px;
  font-size: 0.8rem;
  gap: 10px;
}
.new-conversation svg {
  width: 18px;
}
.profile-button {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #303449;
  border-radius: 13px;
  background: #1c202dbb;
  padding: 4px 8px;
}
.profile-button > span[data-icon] > svg {
  width: 14px;
}
.menu-button {
  display: none !important;
}
.conversation-scroll {
  min-height: 0;
  flex: 1;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #42375d transparent;
  padding: 0 25px 0 34px;
  scroll-behavior: smooth;
}
.welcome {
  text-align: center;
  margin: 6px auto 18px;
}
.hero-orbit {
  width: 112px;
  height: 96px;
  filter: drop-shadow(0 0 25px #9459ff75);
  margin: 0 auto 0;
}
.welcome h1 {
  font-size: 2.28rem;
  letter-spacing: -1.25px;
  font-weight: 650;
  margin: 7px 0 8px;
  line-height: 1.25;
}
.welcome > p {
  margin: 0;
  color: #b2aacf;
  font-size: 1.14rem;
  line-height: 1.4;
}
.suggestions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 18px auto 0;
  max-width: 675px;
}
.suggestions button {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  border: 1px solid #33364b;
  background: linear-gradient(120deg, #1b1f2ddd, #1b1d2adb);
  border-radius: 14px;
  text-align: left;
  min-height: 95px;
  flex: 1;
  padding: 17px 18px;
  box-shadow: inset 0 1px 0 #ffffff03;
}
.suggestions svg {
  width: 25px;
  height: 25px;
  color: #d4b0ff;
  margin-top: 1px;
}
.suggestions strong {
  display: block;
  font-size: 0.91rem;
  font-weight: 550;
  margin-bottom: 5px;
}
.suggestions small {
  display: block;
  line-height: 1.65;
  color: var(--muted);
  font-size: 0.8rem;
}
.messages {
  margin: 0 auto;
  max-width: 1080px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 10px;
}
.user-message {
  display: flex;
  align-self: flex-end;
  gap: 12px;
  max-width: 72%;
  padding: 13px 16px 8px 12px;
  border: 1px solid #343050;
  border-radius: 14px;
  background: linear-gradient(130deg, #282347, #25223f);
  font-size: 0.92rem;
  line-height: 1.55;
}
.user-message .avatar {
  width: 32px;
  height: 32px;
  margin-top: 0;
}
.user-message p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message-time {
  text-align: right;
  font-size: 0.7rem;
  color: #bfb3df;
  margin: 3px 0 0;
}
.assistant-message {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  margin: 0 0 6px;
  max-width: 82%;
}
.assistant-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #29293c;
  background: #25213f;
  margin-top: 7px;
}
.assistant-mark img {
  width: 34px;
  height: 30px;
}
.assistant-content {
  min-width: 0;
  flex: 1;
  padding: 12px 15px 9px;
  border: 1px solid #292d3f;
  background: linear-gradient(125deg, #1b1d29, #181b26);
  border-radius: 14px;
}
.assistant-text {
  font-size: 0.92rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.assistant-text p {
  margin: 0 0 12px;
}
.assistant-text p:last-child {
  margin-bottom: 0;
}
.assistant-text h2,
.assistant-text h3 {
  font-size: 1.12rem;
  margin: 18px 0 8px;
}
.assistant-text ul,
.assistant-text ol {
  padding-left: 24px;
}
.assistant-text pre {
  overflow: auto;
  background: #10121c;
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 9px;
  max-width: 100%;
}
.assistant-text code {
  font-size: 0.84rem;
  color: #dbceff;
  white-space: pre-wrap;
}
.assistant-text a {
  color: #c6a6ff;
  text-decoration: underline;
}
.work-progress {
  border: 1px solid #323649;
  border-radius: 12px;
  padding: 5px 14px;
  margin-top: 14px;
  background: #20233077;
}
.progress-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 43px;
  font-size: 0.8rem;
}
.progress-dot {
  position: relative;
  z-index: 1;
  border: 1px solid #cac8e3;
  border-radius: 50%;
  width: 13px;
  height: 13px;
  margin: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #1d2030;
}
.progress-row:not(:last-child):before {
  content: "";
  position: absolute;
  left: 11px;
  top: 25px;
  bottom: -20px;
  width: 1px;
  background: #73668c;
}
.progress-row.done .progress-dot,
.progress-row.current .progress-dot {
  width: 22px;
  height: 22px;
  margin: 0;
  background: #8a60ff;
  border: 1px solid #aa8bff;
  box-shadow: 0 0 10px #7453df30;
  color: #181025;
}
.progress-row.current .progress-dot:after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ede5ff;
  box-shadow: 0 0 5px #211438;
}
.progress-dot svg {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}
.progress-row strong {
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}
.progress-row .progress-description {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}
.progress-time {
  font-size: 0.73rem;
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
}
.message-actions {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 10px;
  font-size: 0.76rem;
  color: #e1def2;
}
.message-actions button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  min-height: 28px;
}
.message-actions svg {
  width: 17px;
  height: 17px;
}
.message-actions .action-spacer {
  flex: 1;
}
.message-actions .selected {
  color: #c7a1ff;
}
.work-details {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.work-details dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
}
.work-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.work-details button {
  margin: 8px 6px 0 0;
}
.file-link {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.83rem;
  border: 1px solid #514073;
  background: #33274744;
  border-radius: 9px;
  padding: 12px;
  margin: 10px 0;
  color: #dbceff;
}
.file-link svg {
  width: 20px;
}
.inline-request {
  border: 1px solid #74608e;
  border-radius: 10px;
  padding: 14px;
  margin-top: 14px;
  font-size: 0.86rem;
  line-height: 1.6;
}
.inline-request textarea {
  width: 100%;
  margin: 8px 0;
}
.inline-request .primary {
  margin: 8px 8px 0 0;
}
.composer-area {
  flex-shrink: 0;
  padding: 0 25px 8px 34px;
}
.composer {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 66px;
  border: 1px solid #8370bf;
  border-radius: 17px;
  padding: 8px;
  background: linear-gradient(110deg, #242536c9, #1f2032);
  box-shadow: inset 0 0 0 2px #a989ff0a;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  flex-shrink: 0;
  border-radius: 9px;
  color: var(--muted);
}
.attach-button {
  width: 40px;
}
.attach-button svg {
  width: 23px;
  height: 23px;
}
.composer textarea {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  resize: none;
  color: var(--text);
  padding: 8px 0;
  max-height: 160px;
  line-height: 1.5;
  font-size: 0.86rem;
  outline: none;
}
.composer textarea::placeholder {
  color: #b7b3d2;
}
.composer:focus-within {
  border-color: #b197fa;
  box-shadow: 0 0 0 2px #9e78ff22;
}
.composer-limit {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #b7a3f7;
  font-size: 0.77rem;
  padding: 9px 12px;
  border-radius: 11px;
  background: #211e37;
  white-space: nowrap;
}
.composer-limit svg {
  width: 16px;
  height: 16px;
}
.send-button {
  width: 54px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b290ff;
  background: linear-gradient(135deg, #9370ff, #7150f8);
  box-shadow:
    inset 0 0 0 2px #c5acff22,
    0 0 20px #8152ff48;
  flex-shrink: 0;
}
.send-button svg {
  width: 23px;
  height: 23px;
  color: white;
}
.composer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.62rem;
  color: #8f89a8;
  margin: 6px 6px 0;
  gap: 8px;
}
.composer-footer > span:last-child {
  display: flex;
  gap: 8px;
}
.composer-footer button {
  font-size: inherit;
  padding: 0;
  color: inherit;
}
.connection-note {
  min-height: 0;
  color: #d7c6ff;
  font-size: 0.8rem;
  margin: 0 0 5px;
}
.connection-note:empty {
  display: none;
}
.empty-chat .welcome {
  margin-top: clamp(40px, 10vh, 160px);
}
.empty-chat .hero-orbit {
  width: 135px;
  height: 120px;
  margin-bottom: 12px;
}
.empty-chat .suggestions {
  margin-top: 28px;
}
.compact-welcome {
  display: none;
}
.drawer-scrim {
  display: none;
}
.sidebar-collapsed .sidebar {
  display: none;
}
.sidebar-collapsed .menu-button {
  display: flex !important;
}
dialog {
  color: var(--text);
  background: linear-gradient(145deg, #202033, #13151f);
  border: 1px solid #675282;
  border-radius: 20px;
  width: min(480px, calc(100vw - 32px));
  padding: 22px;
  box-shadow: 0 20px 100px #000a;
  max-height: 90dvh;
}
dialog::backdrop {
  background: #060511a8;
  backdrop-filter: blur(7px);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.modal-header h2 {
  font-size: 1.35rem;
  margin: 0;
  letter-spacing: -0.4px;
}
.modal-header button {
  width: 32px;
  height: 32px;
}
#modal-body {
  font-size: 0.9rem;
  line-height: 1.65;
}
#modal-body p {
  color: var(--muted);
}
#modal-body h3 {
  font-size: 1rem;
  margin: 20px 0 8px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 16px 0;
}
.field > span {
  font-size: 0.84rem;
  color: #d4cce7;
}
input,
select,
textarea:not(#prompt) {
  border: 1px solid #454059;
  background: #11131e;
  border-radius: 9px;
  padding: 11px 12px;
  color: var(--text);
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: #9290a8;
}
.primary,
.secondary,
.danger {
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 550;
  font-size: 0.86rem;
  min-height: 44px;
}
.primary {
  background: linear-gradient(120deg, #8559ed, #7052d7);
  border: 1px solid #a680fc;
  color: #fff;
}
.secondary {
  background: #29263b;
  border: 1px solid #55466e;
}
.danger {
  background: #402438;
  border: 1px solid #9f5d83;
  color: #ffd5e8;
}
.full-width {
  width: 100%;
}
.text-button {
  color: #c0a2ff;
  text-decoration: underline;
  padding: 3px;
}
.form-note {
  font-size: 0.76rem;
  color: var(--muted);
}
.form-error {
  color: #ffb9d0;
  min-height: 0;
  margin: 8px 0;
  font-size: 0.83rem;
}
.check-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0;
  font-size: 0.82rem;
}
.check-field input {
  accent-color: #9270f5;
  margin-top: 5px;
}
.plan-price {
  font-size: 2.5rem;
  letter-spacing: -1.5px;
  font-weight: 650;
}
.plan-price small {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}
.plan-box,
.balance-grid {
  border: 1px solid #4b3d66;
  background: #2a234233;
  border-radius: 13px;
  padding: 18px;
  margin: 12px 0;
}
.balance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.balance-grid strong {
  font-size: 1.5rem;
  display: block;
}
.balance-grid small {
  color: var(--muted);
}
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.receipt {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #302c41;
  font-size: 0.8rem;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 18px;
  background: #2b2340;
  border: 1px solid #755693;
  border-radius: 12px;
  z-index: 20;
  font-size: 0.85rem;
  max-width: 90vw;
  transition: 0.2s;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1800px) {
  .welcome {
    margin-top: 26px;
  }
  .suggestions {
    margin-top: 25px;
  }
  .conversation-scroll {
    padding-bottom: 20px;
  }
  .messages {
    gap: 18px;
  }
}
@media (max-height: 800px) and (min-width: 1000px) {
  .topbar {
    min-height: 54px;
    padding-top: 9px;
  }
  .hero-orbit {
    width: 90px;
    height: 74px;
  }
  .welcome h1 {
    font-size: 2rem;
  }
  .welcome {
    margin-top: 0;
    margin-bottom: 14px;
  }
  .suggestions {
    margin-top: 12px;
  }
  .suggestions button {
    min-height: 80px;
    padding: 12px 15px;
  }
  .progress-row {
    min-height: 38px;
  }
  .sidebar {
    padding-top: 18px;
  }
  .brand {
    margin-bottom: 22px;
  }
  .history-group:not(:first-child) {
    margin-top: 20px;
  }
}
@media (max-width: 1100px) {
  :root {
    font-size: 14px;
  }
  .sidebar {
    min-width: 222px;
  }
  .topbar {
    gap: 12px;
  }
  .welcome h1 {
    font-size: 1.9rem;
  }
  .conversation-scroll {
    padding: 0 20px;
  }
  .composer-area {
    padding: 0 20px 8px;
  }
  .suggestions {
    gap: 10px;
  }
  .suggestions button {
    padding: 14px 12px;
    gap: 10px;
  }
  .assistant-message {
    max-width: 95%;
  }
  .progress-row {
    gap: 12px;
  }
  .progress-description {
    display: none;
  }
  .brand p {
    font-size: 0.73rem;
  }
  .brand-name {
    font-size: 1.5rem;
  }
  .brand {
    gap: 8px;
  }
  .brand img {
    width: 48px;
  }
  .collapse-button {
    right: -5px !important;
  }
  .history-item {
    gap: 11px;
  }
  .history-item strong {
    max-width: 130px;
  }
}
@media (max-width: 760px) {
  :root {
    font-size: 16px;
  }
  body {
    background: #0d0f18;
  }
  .app-layout {
    position: relative;
  }
  .sidebar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 285px;
    min-width: 0;
    z-index: 5;
    transform: translateX(-101%);
    transition: transform 0.18s;
    background: #10121c;
  }
  .sidebar-open .sidebar {
    transform: translateX(0);
  }
  .sidebar-open .drawer-scrim {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 4;
    background: #05030ab3;
    backdrop-filter: blur(3px);
  }
  .sidebar-collapsed .sidebar {
    display: flex;
  }
  .menu-button {
    display: flex !important;
  }
  .topbar {
    padding: 12px 15px 7px;
    gap: 10px;
    min-height: 65px;
  }
  .new-conversation {
    display: none;
  }
  .credit-chip {
    font-size: 0.77rem;
    min-height: 40px;
    padding: 8px 11px;
  }
  .profile-button {
    gap: 5px;
  }
  .topbar-spacer {
    min-width: 0;
  }
  .welcome {
    margin-top: 24px;
    margin-bottom: 24px;
  }
  .hero-orbit {
    width: 88px;
    height: 80px;
  }
  .welcome h1 {
    font-size: 1.75rem;
    line-height: 1.2;
    max-width: 360px;
    margin: 12px auto;
    letter-spacing: -0.8px;
  }
  .welcome > p {
    font-size: 0.95rem;
  }
  .suggestions {
    margin-top: 24px;
    gap: 8px;
  }
  .suggestions button {
    flex-direction: column;
    gap: 12px;
    padding: 13px 11px;
    min-height: 132px;
  }
  .suggestions svg {
    width: 24px;
    height: 24px;
  }
  .suggestions strong {
    font-size: 0.82rem;
  }
  .suggestions small {
    font-size: 0.68rem;
    line-height: 1.55;
  }
  .suggestions br {
    display: none;
  }
  .conversation-scroll {
    padding: 0 15px;
  }
  .composer-area {
    padding: 0 12px max(9px, env(safe-area-inset-bottom));
  }
  .composer {
    gap: 6px;
    padding: 7px;
    border-radius: 15px;
    min-height: 58px;
  }
  .composer textarea {
    font-size: 16px;
  }
  .attach-button {
    display: none !important;
  }
  .composer-limit {
    padding: 7px;
    font-size: 0.68rem;
    gap: 4px;
  }
  .composer-limit svg {
    display: none;
  }
  .send-button {
    width: 42px;
    height: 42px;
  }
  .composer-footer {
    font-size: 0.53rem;
    line-height: 1.6;
    gap: 4px;
    margin-top: 7px;
  }
  .composer-footer > span:last-child {
    gap: 5px;
  }
  .user-message {
    max-width: 95%;
    font-size: 0.88rem;
    padding: 12px 12px 8px;
    gap: 8px;
  }
  .user-message .avatar {
    width: 27px;
    height: 27px;
  }
  .assistant-message {
    gap: 8px;
    max-width: 100%;
  }
  .assistant-mark {
    width: 28px;
    height: 28px;
    border: 0;
    margin-top: 10px;
  }
  .assistant-mark img {
    width: 27px;
    height: 25px;
  }
  .assistant-content {
    padding: 12px 11px;
  }
  .assistant-text {
    font-size: 0.86rem;
  }
  .work-progress {
    padding: 5px 10px;
  }
  .progress-row {
    gap: 10px;
    min-height: 39px;
  }
  .progress-row strong {
    font-size: 0.7rem;
  }
  .progress-time {
    font-size: 0.63rem;
  }
  .message-actions {
    gap: 12px;
    font-size: 0.68rem;
  }
  .message-actions svg {
    width: 16px;
  }
  .message-actions .copy-label {
    display: none;
  }
  .empty-chat .welcome {
    margin-top: 8dvh;
  }
  .empty-chat .hero-orbit {
    width: 100px;
    height: 90px;
  }
  .message-time {
    font-size: 0.62rem;
  }
  .plan-price {
    font-size: 2.2rem;
  }
  .collapse-button {
    right: 2px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
