:root {
  color-scheme: dark;
  --bg: #090a0e;
  --surface: #0e1016;
  --surface-2: #13161e;
  --surface-3: #191c25;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #f4f4f5;
  --muted: #979aa5;
  --muted-2: #6d707b;
  --accent: #8c7cff;
  --accent-2: #b0a5ff;
  --accent-soft: rgba(140, 124, 255, 0.13);
  --success: #64d49b;
  --danger: #ff7b83;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --sidebar-width: 260px;
  --inspector-width: 330px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 45% -20%, rgba(109, 92, 230, 0.12), transparent 36rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

[hidden] {
  display: none !important;
}

.login-screen {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 24px;
}

.login-card {
  display: flex;
  width: min(390px, 100%);
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 34px;
  background: rgba(17, 19, 26, 0.92);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
}

.login-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(140, 124, 255, 0.28);
  border-radius: 15px;
  color: #d4ceff;
  background: var(--accent-soft);
  font-size: 20px;
}

.login-card > p,
.workspace-panel > header p,
.form-card header p {
  margin: 22px 0 7px;
  color: var(--accent-2);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.login-card h1 {
  margin: 0;
  font-family: ui-serif, "Songti SC", Georgia, serif;
  font-size: 30px;
  font-weight: 480;
}

.login-card > small {
  margin: 9px 0 24px;
  color: var(--muted);
  font-size: 10px;
}

.login-card label,
.form-card label {
  display: grid;
  gap: 8px;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.login-card input,
.form-card input,
.form-card select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: none;
  padding: 0 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
}

.login-card input:focus,
.form-card input:focus,
.form-card select:focus {
  border-color: rgba(140, 124, 255, 0.55);
}

.login-card > button {
  height: 44px;
  border: 0;
  border-radius: 11px;
  color: white;
  background: linear-gradient(135deg, #7868e6, #9889ff);
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
}

.login-card > button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.login-error {
  margin-top: 14px;
  border-radius: 9px;
  padding: 10px;
  color: #ffb3b7;
  background: rgba(255, 123, 131, 0.09);
  font-size: 9px;
  line-height: 1.5;
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
  pointer-events: none;
}

.ambient-one {
  top: -220px;
  left: 28%;
  width: 520px;
  height: 420px;
  background: #5846c4;
}

.ambient-two {
  right: -180px;
  bottom: -240px;
  width: 440px;
  height: 440px;
  background: #2f5c67;
}

.app-shell {
  display: grid;
  height: 100dvh;
  grid-template-columns: var(--sidebar-width) minmax(460px, 1fr) var(--inspector-width);
}

.sidebar,
.inspector {
  min-height: 0;
  background: rgba(12, 14, 19, 0.9);
  backdrop-filter: blur(24px);
}

.sidebar {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  padding: 22px 16px 16px;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand-glyph {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(158, 144, 255, 0.21), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-glyph i {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--accent-2);
  border-radius: 3px;
  transform: rotate(45deg);
}

.brand-glyph i:nth-child(1) { transform: translate(-5px, 3px) rotate(45deg); }
.brand-glyph i:nth-child(2) { transform: translate(5px, 3px) rotate(45deg); opacity: 0.75; }
.brand-glyph i:nth-child(3) { transform: translate(0, -5px) rotate(45deg); opacity: 0.48; }

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 14px;
  font-weight: 690;
  letter-spacing: -0.01em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.new-chat-button {
  display: flex;
  width: 100%;
  min-height: 43px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 12px;
  font-weight: 620;
  transition: 160ms ease;
}

.new-chat-button > span {
  color: var(--accent-2);
  font-size: 18px;
  font-weight: 300;
}

.new-chat-button kbd {
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 5px;
  color: var(--muted-2);
  background: rgba(0, 0, 0, 0.14);
  font-family: inherit;
  font-size: 8px;
}

.new-chat-button:hover {
  border-color: rgba(140, 124, 255, 0.38);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.search-field {
  position: relative;
  display: block;
  margin-top: 12px;
}

.search-field svg {
  position: absolute;
  top: 50%;
  left: 11px;
  width: 14px;
  height: 14px;
  color: var(--muted-2);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 9px;
  outline: none;
  padding: 0 12px 0 33px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  font-size: 11px;
}

.search-field input::placeholder {
  color: #60636d;
}

.search-field input:focus {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.workspace-nav {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.workspace-nav button {
  display: grid;
  min-height: 40px;
  grid-template-columns: 27px 1fr auto;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0 9px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.workspace-nav button:hover {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.workspace-nav span {
  color: var(--accent-2);
  font-size: 15px;
}

.workspace-nav b {
  font-size: 10px;
  font-weight: 580;
}

.workspace-nav small {
  color: var(--muted-2);
  font-size: 8px;
}

.retention-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  border: 1px solid rgba(140, 124, 255, 0.16);
  border-radius: 11px;
  padding: 12px;
  color: var(--muted);
  background: rgba(140, 124, 255, 0.055);
}

.retention-note > span {
  color: var(--accent-2);
  font-size: 17px;
}

.retention-note strong,
.retention-note small {
  display: block;
}

.retention-note strong {
  color: #d7d3f8;
  font-size: 10px;
  font-weight: 620;
}

.retention-note small {
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.6;
}

.history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 25px 7px 9px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.history-heading span:last-child {
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 8px;
}

.chat-list {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.chat-item {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  padding: 9px 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: 140ms ease;
}

.chat-item:hover {
  color: #d7d8de;
  background: rgba(255, 255, 255, 0.035);
}

.chat-item[data-active="true"] {
  color: var(--text);
  background: linear-gradient(90deg, rgba(140, 124, 255, 0.16), rgba(140, 124, 255, 0.06));
  box-shadow: inset 0 0 0 1px rgba(140, 124, 255, 0.12);
}

.chat-thumb {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: #a9a0ee;
  background: #20222c;
  font-size: 10px;
}

.chat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-copy {
  min-width: 0;
  flex: 1;
}

.chat-copy strong,
.chat-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-copy strong {
  font-size: 11px;
  font-weight: 550;
}

.chat-copy small {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 9px;
}

.delete-chat-button {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 6px;
  padding: 0;
  color: var(--muted-2);
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  opacity: 0;
}

.chat-item:hover .delete-chat-button,
.chat-item:focus-within .delete-chat-button {
  opacity: 1;
}

.delete-chat-button:hover {
  color: var(--danger);
  background: rgba(255, 123, 131, 0.09);
}

.empty-history {
  margin: 34px 10px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.7;
  text-align: center;
}

.sidebar-footer {
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.connection {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 7px;
}

.connection-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #d4ac5e;
  box-shadow: 0 0 0 4px rgba(212, 172, 94, 0.09);
}

.connection[data-state="ready"] .connection-dot {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(100, 212, 155, 0.08), 0 0 14px rgba(100, 212, 155, 0.2);
}

.connection[data-state="missing"] .connection-dot,
.connection[data-state="error"] .connection-dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 123, 131, 0.08);
}

.connection strong,
.connection small {
  display: block;
}

.connection strong {
  font-size: 10px;
  font-weight: 570;
}

.connection small {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 8px;
}

.studio-main {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  background:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    rgba(9, 10, 14, 0.78);
  background-size: 32px 32px, 32px 32px, auto;
}

.studio-header {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: 74px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 0 28px;
  background: rgba(9, 10, 14, 0.72);
  backdrop-filter: blur(16px);
}

.header-leading,
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-kicker {
  margin: 0 0 4px;
  color: var(--accent-2);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.studio-header h1 {
  max-width: min(46vw, 560px);
  overflow: hidden;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-pill {
  display: inline-flex;
  height: 28px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0 10px;
  color: #b4b6be;
  background: rgba(255, 255, 255, 0.025);
  font-size: 9px;
  font-weight: 600;
}

.model-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(140, 124, 255, 0.8);
}

.account-menu-wrap {
  position: relative;
}

.account-chip {
  display: inline-flex;
  height: 34px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 9px 0 5px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.account-chip > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  color: #d1cbff;
  background: var(--accent-soft);
  font-size: 9px;
}

.account-chip b {
  max-width: 90px;
  overflow: hidden;
  font-size: 9px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: 190px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 6px;
  background: rgba(24, 26, 34, 0.98);
  box-shadow: var(--shadow);
}

.account-menu > div {
  padding: 9px 9px 10px;
  border-bottom: 1px solid var(--line);
}

.account-menu strong,
.account-menu small {
  display: block;
}

.account-menu strong { font-size: 10px; }
.account-menu small { margin-top: 4px; color: var(--muted-2); font-size: 8px; }

.account-menu button {
  width: 100%;
  border: 0;
  border-radius: 7px;
  padding: 9px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  text-align: left;
}

.account-menu button:hover { color: var(--text); background: var(--accent-soft); }

.workspace-panel {
  position: fixed;
  inset: 18px;
  z-index: 70;
  display: flex;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(13, 15, 21, 0.98);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(26px);
}

.workspace-panel::before,
.form-modal::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(3, 4, 7, 0.72);
  content: "";
}

.workspace-panel > header {
  display: flex;
  min-height: 82px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
}

.workspace-panel > header p,
.form-card header p {
  margin: 0 0 5px;
}

.workspace-panel > header h2,
.form-card header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 620;
}

.workspace-panel > header small {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 8px;
}

.panel-close,
.form-card header > button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  font-size: 19px;
}

.accounts-content {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding: 22px;
}

.panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.panel-toolbar > div:last-child { display: flex; gap: 7px; }
.panel-toolbar h3 { margin: 0; font-size: 14px; font-weight: 620; }
.panel-toolbar small { display: block; margin-top: 5px; color: var(--muted-2); font-size: 8px; }

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 0 12px;
  color: #d6d7dc;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-size: 9px;
  font-weight: 600;
}

.primary-action { border-color: transparent; color: white; background: linear-gradient(135deg, #7464df, #9283f5); }
.secondary-action.danger { color: #ff9ca2; }
.primary-action:disabled, .secondary-action:disabled { cursor: wait; opacity: 0.55; }

.accounts-panel { inset: max(18px, 4vh) max(18px, 5vw); }
.account-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
.account-table { width: 100%; border-collapse: collapse; font-size: 9px; }
.account-table th { color: var(--muted-2); background: rgba(255,255,255,.025); font-size: 8px; font-weight: 650; text-align: left; }
.account-table th, .account-table td { border-bottom: 1px solid var(--line); padding: 13px; white-space: nowrap; }
.account-table tbody tr:last-child td { border-bottom: 0; }
.account-table td strong, .account-table td small { display: block; }
.account-table td small { margin-top: 4px; color: var(--muted-2); font-size: 8px; }
.role-badge { border-radius: 99px; padding: 4px 7px; color: #c9c2ff; background: var(--accent-soft); font-size: 8px; }
.table-actions { display: flex; justify-content: flex-end; gap: 5px; }
.table-actions button { border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; color: var(--muted); background: transparent; cursor: pointer; font-size: 8px; }
.table-actions button:last-child { color: #ff989e; }

.form-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
}

.form-card {
  width: min(440px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 20px;
  background: #171921;
  box-shadow: var(--shadow);
}

.account-form-card { width: min(600px, 100%); }
.form-card header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.form-card header > button { border: 0; background: transparent; }
.form-card select { appearance: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-card footer { display: flex; justify-content: flex-end; gap: 7px; margin-top: 20px; }
.form-help { display: block; margin-top: -4px; color: var(--muted-2); font-size: 8px; line-height: 1.6; }
@media (max-width: 720px) {
  .workspace-panel { inset: 0; border: 0; border-radius: 0; }
  .panel-toolbar { align-items: flex-start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .model-pill { display: none; }
  .account-chip b { display: none; }
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  font-size: 20px;
}

.icon-button svg {
  width: 17px;
  height: 17px;
}

.conversation {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 42px clamp(24px, 4vw, 62px) 28px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.welcome {
  display: flex;
  width: min(680px, 100%);
  min-height: 100%;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding: 18px 0 28px;
  text-align: center;
}

.welcome-orbit {
  position: relative;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  margin-bottom: 21px;
}

.welcome-orbit::before {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(158, 144, 255, 0.26);
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(140, 124, 255, 0.16), rgba(255, 255, 255, 0.02));
  box-shadow: 0 0 38px rgba(140, 124, 255, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  content: "";
  transform: rotate(45deg);
}

.welcome-orbit span {
  position: absolute;
  border: 1px solid rgba(140, 124, 255, 0.12);
  border-radius: 50%;
}

.welcome-orbit span:nth-child(1) { inset: -8px; }
.welcome-orbit span:nth-child(2) { inset: -16px; opacity: 0.55; }
.welcome-orbit span:nth-child(3) { inset: -24px; opacity: 0.24; }

.welcome-orbit b {
  position: relative;
  z-index: 1;
  color: #d8d2ff;
  font-size: 24px;
  font-weight: 400;
}

.welcome-label {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.24em;
}

.welcome h2 {
  margin: 0;
  font-family: ui-serif, "Songti SC", Georgia, serif;
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 420;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.welcome h2 em {
  color: #aaa0f3;
  font-style: normal;
}

.welcome-copy {
  max-width: 540px;
  margin: 18px auto 28px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.welcome-copy b {
  color: #c4bcff;
  font-weight: 560;
}

.quick-scenes {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.quick-scene {
  position: relative;
  min-height: 88px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.013));
  cursor: pointer;
  text-align: left;
  transition: 170ms ease;
}

.quick-scene::after {
  position: absolute;
  right: -20px;
  bottom: -26px;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(140, 124, 255, 0.16);
  border-radius: 50%;
  content: "";
}

.quick-scene:hover {
  border-color: rgba(140, 124, 255, 0.35);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.quick-scene span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  margin-bottom: 11px;
  border-radius: 7px;
  color: #b7adff;
  background: rgba(140, 124, 255, 0.11);
  font-family: ui-serif, Georgia, serif;
  font-size: 11px;
}

.quick-scene strong,
.quick-scene small {
  display: block;
}

.quick-scene strong {
  font-size: 10px;
  font-weight: 590;
}

.quick-scene small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.how-to-reference {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 13px;
  color: inherit;
  background: rgba(255, 255, 255, 0.012);
  cursor: pointer;
  text-align: left;
}

.how-to-reference:hover {
  border-color: rgba(140, 124, 255, 0.3);
  background: rgba(140, 124, 255, 0.05);
}

.how-to-reference > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.how-to-reference strong,
.how-to-reference small {
  display: block;
}

.how-to-reference strong {
  font-size: 9px;
  font-weight: 600;
}

.how-to-reference small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.how-to-reference > b {
  color: var(--accent-2);
  font-size: 14px;
}

.mini-reference-stack {
  position: relative;
  width: 34px;
  height: 28px;
  flex: 0 0 auto;
}

.mini-reference-stack i {
  position: absolute;
  width: 23px;
  height: 23px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  background: #232631;
}

.mini-reference-stack i:first-child { top: 0; left: 0; }
.mini-reference-stack i:last-child { right: 0; bottom: 0; background: #392f59; }

.message-list {
  width: min(820px, 100%);
  margin: 0 auto;
}

.message-row {
  margin-bottom: 28px;
}

.message-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.message-label i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.user-message .message-label {
  justify-content: flex-end;
}

.user-bubble {
  width: fit-content;
  max-width: min(620px, 92%);
  margin-left: auto;
  border: 1px solid rgba(140, 124, 255, 0.16);
  border-radius: 16px 16px 5px 16px;
  padding: 14px 16px;
  background: linear-gradient(140deg, rgba(140, 124, 255, 0.14), rgba(140, 124, 255, 0.075));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.user-bubble p {
  margin: 0;
  font-size: 12px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.message-mentions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin: 8px 0 0;
}

.message-mentions span {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  padding: 4px 7px;
  color: #bdb5f5;
  background: rgba(0, 0, 0, 0.15);
  font-size: 8px;
}

.assistant-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(18, 20, 27, 0.76);
  box-shadow: var(--shadow);
}

.assistant-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  color: var(--muted);
  font-size: 8px;
}

.assistant-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.assistant-meta i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
}

.result-image-wrap {
  position: relative;
  display: grid;
  min-height: 340px;
  overflow: hidden;
  place-items: center;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.018) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.018) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.018) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.018) 75%),
    #0c0e13;
  background-position: 0 0, 12px 12px;
  background-size: 24px 24px;
}

.result-image-wrap img {
  display: block;
  max-width: 100%;
  max-height: min(66vh, 680px);
  object-fit: contain;
  cursor: zoom-in;
}

.assistant-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px;
}

.assistant-actions p {
  margin: 0;
  color: var(--muted-2);
  font-size: 8px;
}

.assistant-buttons {
  display: flex;
  gap: 7px;
}

.assistant-buttons a,
.assistant-buttons button {
  display: inline-flex;
  height: 29px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 9px;
  color: #c7c8cf;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  text-decoration: none;
  font-size: 8px;
}

.assistant-buttons svg {
  width: 12px;
  height: 12px;
}

.assistant-buttons a:hover,
.assistant-buttons button:hover {
  border-color: rgba(140, 124, 255, 0.3);
  color: #fff;
  background: var(--accent-soft);
}

.loading-card,
.error-card {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: rgba(18, 20, 27, 0.72);
}

.loading-visual {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(140, 124, 255, 0.22);
  border-radius: 12px;
  overflow: hidden;
}

.loading-visual::after {
  position: absolute;
  inset: -50% 0;
  background: linear-gradient(transparent, rgba(140, 124, 255, 0.45), transparent);
  content: "";
  animation: scan 1.35s linear infinite;
}

@keyframes scan {
  from { transform: translateY(-35%); }
  to { transform: translateY(35%); }
}

.loading-card strong,
.loading-card small,
.error-card strong,
.error-card small {
  display: block;
}

.loading-card strong,
.error-card strong {
  font-size: 11px;
  font-weight: 590;
}

.loading-card small,
.error-card small {
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.5;
}

.error-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--danger);
  background: rgba(255, 123, 131, 0.09);
  font-size: 18px;
}

.composer-wrap {
  position: relative;
  z-index: 6;
  flex: 0 0 auto;
  padding: 0 clamp(20px, 4vw, 58px) 14px;
  background: linear-gradient(transparent, rgba(9, 10, 14, 0.97) 22%);
}

.composer {
  width: min(820px, 100%);
  margin: 0 auto;
  overflow: visible;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(20, 22, 29, 0.94);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(24px);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.composer:focus-within {
  border-color: rgba(140, 124, 255, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(140, 124, 255, 0.06);
}

.reference-tray {
  padding: 12px 13px 3px;
  border-bottom: 1px solid var(--line);
}

.reference-tray-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.reference-tray-header button {
  border: 0;
  padding: 0;
  color: var(--muted-2);
  background: none;
  cursor: pointer;
  font-size: 8px;
}

.reference-tray-header button:hover {
  color: var(--danger);
}

.reference-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 9px;
}

.reference-card {
  position: relative;
  width: 64px;
  flex: 0 0 64px;
}

.reference-preview {
  position: relative;
  display: block;
  width: 64px;
  height: 52px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0;
  background: #090a0e;
  cursor: pointer;
}

.reference-preview:hover {
  border-color: var(--accent);
}

.reference-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reference-card > span {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #b4adf0;
  font-size: 7px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remove-reference {
  position: absolute;
  top: -5px;
  right: -5px;
  z-index: 2;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  padding: 0;
  color: #e7e7e9;
  background: #242630;
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
}

.composer-input-wrap {
  position: relative;
}

.composer textarea {
  display: block;
  width: 100%;
  min-height: 84px;
  max-height: 210px;
  resize: none;
  border: 0;
  outline: none;
  padding: 16px 16px 8px;
  color: var(--text);
  background: transparent;
  font-size: 12px;
  line-height: 1.7;
}

.composer textarea::placeholder {
  color: #686b75;
}

.prompt-ratio-notice {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 12px 2px;
  border: 1px solid rgba(139, 124, 255, 0.2);
  border-radius: 8px;
  padding: 7px 9px;
  color: #c2bafc;
  background: rgba(125, 108, 232, 0.08);
  font-size: 8px;
  line-height: 1.45;
}

.prompt-ratio-notice::before {
  content: "↔";
  color: var(--accent-2);
  font-size: 11px;
}

.prompt-ratio-notice[data-state="invalid"] {
  border-color: rgba(255, 123, 131, 0.25);
  color: #ffadb3;
  background: rgba(255, 123, 131, 0.07);
}

.prompt-ratio-notice[data-state="invalid"]::before {
  content: "!";
  color: var(--danger);
}

.mention-menu {
  position: absolute;
  bottom: calc(100% - 7px);
  left: 14px;
  z-index: 20;
  width: min(270px, calc(100% - 28px));
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 6px;
  background: rgba(25, 27, 35, 0.98);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.mention-option {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 8px;
  padding: 7px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.mention-option:hover {
  background: var(--accent-soft);
}

.mention-option img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  object-fit: cover;
}

.mention-option strong,
.mention-option small {
  display: block;
}

.mention-option strong {
  color: #d2cdf6;
  font-size: 9px;
}

.mention-option small {
  max-width: 175px;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 10px 10px 12px;
}

.composer-tools,
.send-group {
  display: flex;
  align-items: center;
  gap: 7px;
}

.tool-button {
  display: inline-flex;
  height: 30px;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 8px;
}

.tool-button:hover:not(:disabled) {
  border-color: var(--line);
  color: #d9d9de;
  background: rgba(255, 255, 255, 0.03);
}

.tool-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.tool-button svg {
  width: 14px;
  height: 14px;
}

.tool-button > span {
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 500;
}

.prompt-count {
  color: var(--muted-2);
  font-size: 8px;
}

.prompt-count b {
  color: var(--muted);
  font-weight: 550;
}

.generate-button {
  display: inline-flex;
  min-width: 104px;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 0 13px;
  color: white;
  background: linear-gradient(135deg, #7868e6, #9889ff);
  box-shadow: 0 8px 24px rgba(118, 101, 232, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: pointer;
  font-size: 9px;
  font-weight: 650;
  transition: 150ms ease;
}

.generate-button svg {
  width: 13px;
  height: 13px;
}

.generate-button:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.generate-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.composer-note {
  margin: 7px auto 0;
  color: #555862;
  font-size: 7px;
  letter-spacing: 0.02em;
  text-align: center;
}

.inspector {
  position: relative;
  z-index: 10;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  padding: 22px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.inspector-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 3px 22px;
  border-bottom: 1px solid var(--line);
}

.inspector-header span {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-2);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.inspector-header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 620;
}

.setting-section {
  padding: 22px 1px 0;
}

.setting-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}

.setting-title > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.setting-title span {
  color: var(--accent-2);
  font-family: ui-serif, Georgia, serif;
  font-size: 9px;
  font-style: italic;
}

.setting-title h3 {
  margin: 0;
  font-size: 10px;
  font-weight: 650;
}

.setting-title small {
  color: var(--muted-2);
  font-size: 7px;
}

.scene-list {
  display: grid;
  gap: 6px;
}

.scene-option {
  display: flex;
  width: 100%;
  min-height: 47px;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 7px 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.018);
  cursor: pointer;
  text-align: left;
  transition: 140ms ease;
}

.scene-option:hover {
  color: #d6d7dc;
  background: rgba(255, 255, 255, 0.035);
}

.scene-option[data-selected="true"] {
  border-color: rgba(140, 124, 255, 0.22);
  color: var(--text);
  background: linear-gradient(90deg, rgba(140, 124, 255, 0.14), rgba(140, 124, 255, 0.04));
}

.scene-symbol {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #aaa1ee;
  background: rgba(140, 124, 255, 0.09);
  font-family: ui-serif, Georgia, serif;
  font-size: 10px;
}

.scene-option span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.scene-option strong,
.scene-option small {
  display: block;
}

.scene-option strong {
  font-size: 9px;
  font-weight: 580;
}

.scene-option small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-check {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: transparent;
  font-size: 8px;
}

.scene-option[data-selected="true"] .scene-check {
  border-color: var(--accent);
  color: white;
  background: var(--accent);
}

.ratio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.ratio-option {
  display: flex;
  min-height: 48px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 5px;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.015);
  cursor: pointer;
  font-size: 7px;
}

.ratio-option:hover {
  border-color: var(--line-strong);
  color: #c7c8cf;
}

.ratio-option[data-selected="true"] {
  border-color: rgba(140, 124, 255, 0.38);
  color: #d9d4ff;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(140, 124, 255, 0.06);
}

.ratio-shape {
  display: block;
  height: 17px;
  max-width: 24px;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: 0.7;
}

.locked-settings {
  display: grid;
  gap: 6px;
}

.locked-settings > div {
  display: flex;
  min-height: 49px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.015);
}

.locked-icon {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #b5acf3;
  background: rgba(140, 124, 255, 0.09);
  font-size: 7px;
  font-weight: 750;
}

.locked-settings > div > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.locked-settings small,
.locked-settings strong {
  display: block;
}

.locked-settings small {
  color: var(--muted-2);
  font-size: 7px;
}

.locked-settings strong {
  margin-top: 3px;
  font-size: 8px;
  font-weight: 570;
}

.locked-settings b {
  border-radius: 99px;
  padding: 3px 6px;
  color: #7e818b;
  background: rgba(255, 255, 255, 0.035);
  font-size: 6px;
  font-weight: 650;
}

.reference-tip {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  border: 1px solid rgba(140, 124, 255, 0.13);
  border-radius: 11px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(140, 124, 255, 0.09), rgba(140, 124, 255, 0.025));
}

.reference-tip > span {
  color: var(--accent-2);
  font-family: ui-serif, Georgia, serif;
  font-size: 18px;
}

.reference-tip strong {
  display: block;
  font-size: 8px;
  font-weight: 620;
}

.reference-tip p {
  margin: 5px 0 0;
  color: var(--muted-2);
  font-size: 7px;
  line-height: 1.65;
}

.toast {
  position: fixed;
  right: calc(var(--inspector-width) + 22px);
  bottom: 22px;
  z-index: 80;
  max-width: 330px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 13px;
  color: #d8d9de;
  background: rgba(29, 31, 40, 0.96);
  box-shadow: var(--shadow);
  font-size: 9px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 34px;
  background: rgba(3, 4, 6, 0.92);
  backdrop-filter: blur(18px);
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.55);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  font-size: 21px;
}

.mobile-only {
  display: none;
}

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.not-found {
  display: grid;
  min-height: 100vh;
  place-content: center;
  padding: 30px;
  text-align: center;
}

.not-found h1 {
  margin: 0;
  font-family: ui-serif, "Songti SC", Georgia, serif;
  font-size: clamp(48px, 8vw, 100px);
  font-weight: 400;
}

.not-found p {
  color: var(--muted);
}

.not-found .generate-button {
  margin: 28px auto 0;
  text-decoration: none;
}

@media (max-width: 1180px) {
  :root {
    --sidebar-width: 230px;
    --inspector-width: 300px;
  }

  .quick-scenes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-scene:nth-child(n + 5) {
    display: none;
  }
}

@media (max-width: 920px) {
  .mobile-only {
    display: grid;
  }

  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar,
  .inspector {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 50;
    width: min(330px, calc(100vw - 48px));
    box-shadow: var(--shadow);
    transition: transform 210ms ease;
  }

  .sidebar {
    left: 0;
    transform: translateX(-105%);
  }

  .inspector {
    right: 0;
    transform: translateX(105%);
  }

  .sidebar[data-open="true"],
  .inspector[data-open="true"] {
    transform: translateX(0);
  }

  .toast {
    right: 18px;
  }
}

@media (max-width: 620px) {
  .studio-header {
    min-height: 64px;
    padding: 0 14px;
  }

  .studio-header h1 {
    max-width: 50vw;
    font-size: 13px;
  }

  .model-pill {
    display: none;
  }

  .conversation {
    padding: 24px 13px 22px;
  }

  .welcome {
    justify-content: flex-start;
    padding-top: 52px;
  }

  .welcome h2 {
    font-size: 37px;
  }

  .welcome-copy {
    font-size: 10px;
  }

  .quick-scenes {
    grid-template-columns: 1fr 1fr;
  }

  .quick-scene {
    min-height: 78px;
  }

  .composer-wrap {
    padding: 0 9px 9px;
  }

  .composer {
    border-radius: 14px;
  }

  .composer textarea {
    min-height: 78px;
    padding: 13px 13px 6px;
  }

  .composer-actions {
    gap: 6px;
    padding: 7px 7px 8px;
  }

  .tool-button {
    width: 31px;
    padding: 0;
    justify-content: center;
  }

  .tool-button:not(#insertMentionButton) {
    font-size: 0;
  }

  #insertMentionButton {
    width: 31px;
    font-size: 0;
  }

  .prompt-count {
    display: none;
  }

  .generate-button {
    min-width: 90px;
  }

  .composer-note {
    display: none;
  }

  .result-image-wrap {
    min-height: 260px;
  }

  .assistant-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .lightbox {
    padding: 16px;
  }
}

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