:root {
  color-scheme: dark;
  --bg: #121212;
  --sidebar: #171717;
  --surface: #202020;
  --surface-2: #292929;
  --surface-3: #333333;
  --line: #383838;
  --line-soft: #2b2b2b;
  --text: #f3f3f1;
  --muted: #aaa9a5;
  --muted-2: #777773;
  --accent: #4cc9c0;
  --accent-deep: #173f3c;
  --accent-text: #d9fffb;
  --warning: #f1b85b;
  --danger: #f27676;
  --sidebar-width: 260px;
  --content-width: 700px;
  --content-gutter: 32px;
  --app-viewport-height: 100vh;
  --composer-device-scale: 1;
  --composer-device-offset-x: 0px;
  --composer-device-offset-y: 0px;
  --composer-reserved-height: 0px;
  /* Prefer each platform's native body font so Chinese text keeps its intended weight and metrics. */
  font-family: -apple-system-body, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", Arial, sans-serif;
}

@supports (height: 100dvh) {
  :root {
    --app-viewport-height: 100dvh;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  height: var(--app-viewport-height);
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.layout-viewport-probe {
  position: fixed;
  width: 100%;
  height: 100%;
  visibility: hidden;
  pointer-events: none;
}

button,
select,
textarea {
  font: inherit;
}

button,
select {
  letter-spacing: 0;
}

button {
  color: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  width: 100%;
  height: var(--app-viewport-height);
  min-height: 0;
  overflow: hidden;
}

.sidebar {
  position: relative;
  z-index: 30;
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-right: 1px solid var(--line-soft);
  background: var(--sidebar);
  padding: 16px 12px 12px;
}

.brand-row {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  padding: 0 6px 14px;
}

.brand-button {
  display: flex;
  min-width: 0;
  min-height: 44px;
  flex: 1;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 0 4px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.brand-button:hover,
.brand-button:focus-visible {
  background: var(--surface);
  outline: 0;
}

.brand-mark,
.empty-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #202020;
}

.brand-mark svg,
.empty-mark svg {
  width: 18px;
  height: 18px;
}

.brand-mark {
  overflow: hidden;
  width: 42px;
  height: 42px;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.brand-mark img,
.empty-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.sidebar-close {
  display: none;
  margin-left: auto;
}

.new-chat-button {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  padding: 0 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  transition: background 140ms ease, border-color 140ms ease;
}

.new-chat-button:hover {
  border-color: #4c4c4c;
  background: var(--surface-2);
}

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

.sidebar-label {
  margin: 24px 8px 8px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 650;
}

.thread-list {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.thread-button {
  display: flex;
  min-height: 37px;
  align-items: center;
  gap: 9px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 0 9px;
  color: #c8c7c3;
  cursor: pointer;
  text-align: left;
}

.thread-button:hover,
.thread-button.active {
  background: #242424;
  color: var(--text);
}

.thread-button svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.thread-button.busy svg {
  animation: thread-spin 1s linear infinite;
}

.thread-button span {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes thread-spin {
  to { transform: rotate(360deg); }
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 5px;
  border-top: 1px solid var(--line-soft);
  padding: 9px 0 0;
}

.sidebar-footer .account-control {
  position: relative;
  min-width: 0;
  flex: 1;
}

.sidebar-footer .account-trigger {
  display: flex;
  width: 100%;
  height: 48px;
  min-width: 0;
  max-width: none;
  gap: 9px;
  border-color: transparent;
  background: transparent;
  padding: 5px 7px;
  text-align: left;
}

.sidebar-footer .account-trigger:hover,
.sidebar-footer .account-trigger[aria-expanded="true"] {
  border-color: transparent;
  background: var(--surface-2);
}

.account-avatar {
  display: block;
  overflow: hidden;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.account-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.account-trigger-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.account-trigger-copy strong,
.account-trigger-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-trigger-copy strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
}

.account-trigger-copy small {
  color: var(--muted-2);
  font-size: 10px;
}

.sidebar-footer > .icon-button {
  margin: 0;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.icon-button:hover {
  background: var(--surface-2);
  color: var(--text);
}

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

.sidebar-close,
.mobile-menu {
  display: none;
}

@media (min-width: 821px) {
  body.sidebar-collapsed .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  body.sidebar-collapsed .sidebar {
    display: none;
  }

  body.sidebar-collapsed .mobile-menu {
    display: inline-grid;
    border: 1px solid var(--line);
    background: var(--surface);
  }

  body.sidebar-collapsed .mobile-menu:hover,
  body.sidebar-collapsed .mobile-menu:focus-visible {
    border-color: #555552;
    background: var(--surface-2);
    outline: 0;
  }
}

.main-panel {
  display: grid;
  min-width: 0;
  min-height: 0;
  height: var(--app-viewport-height);
  grid-template-rows: 58px minmax(0, 1fr) auto;
  overflow: hidden;
  background: var(--bg);
}

.topbar {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line-soft);
  padding: 0 22px;
}

.mobile-menu {
  display: none;
}

.thread-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.thread-heading > span:first-child {
  overflow: hidden;
  max-width: 360px;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.save-state {
  color: var(--muted-2);
  font-size: 10px;
}

.topbar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.choice-picker {
  position: relative;
}

.picker-trigger {
  display: inline-flex;
  height: 34px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 0 9px 0 10px;
  cursor: pointer;
  text-align: left;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.model-picker .picker-trigger {
  width: 182px;
}

.effort-picker .picker-trigger {
  width: 118px;
}

.picker-trigger:hover,
.picker-trigger[aria-expanded="true"] {
  border-color: #555552;
  background: var(--surface-2);
}

.picker-trigger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.picker-trigger .picker-kicker {
  color: var(--muted-2);
  font-size: 10px;
}

.picker-trigger strong {
  min-width: 0;
  overflow: hidden;
  flex: 1;
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.picker-trigger svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--muted);
  pointer-events: none;
  transition: transform 140ms ease;
}

.picker-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.picker-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  width: 258px;
  gap: 2px;
  border: 1px solid #4a4a47;
  border-radius: 8px;
  background: #222222;
  padding: 5px;
  box-shadow: 0 18px 44px rgb(0 0 0 / 46%);
}

.effort-menu {
  width: 228px;
}

.account-control {
  position: relative;
}

.account-trigger {
  display: inline-flex;
  height: 34px;
  max-width: 178px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 0 9px;
  cursor: pointer;
}

.account-trigger:hover,
.account-trigger[aria-expanded="true"] {
  border-color: #555552;
  background: var(--surface-2);
}

.account-trigger > svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--muted);
}

.account-trigger .account-chevron {
  width: 13px;
  height: 13px;
}

.account-menu {
  position: absolute;
  z-index: 85;
  right: auto;
  bottom: calc(100% + 7px);
  left: 0;
  width: min(300px, calc(100vw - 24px));
  border: 1px solid #4a4a47;
  border-radius: 8px;
  background: #222222;
  padding: 10px;
  box-shadow: 0 18px 44px rgb(0 0 0 / 46%);
}

.account-identity,
.share-access-summary {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-bottom: 1px solid var(--line);
  padding: 2px 3px 10px;
}

.account-identity strong,
.share-access-summary strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-identity span,
.account-identity small,
.share-access-summary span,
.share-access-summary small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-key-field {
  display: grid;
  gap: 6px;
  padding: 11px 3px 8px;
}

.account-key-field span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.account-key-field select {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #191919;
  padding: 0 9px;
  color: var(--text);
  font-size: 12px;
}

.account-menu-link,
.account-menu-action {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 9px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 0 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  text-decoration: none;
}

.account-menu-link:hover,
.account-menu-action:hover {
  background: var(--surface-2);
  color: var(--text);
}

.account-menu-link svg,
.account-menu-action svg {
  width: 15px;
  height: 15px;
}

.picker-option {
  display: flex;
  min-height: 49px;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 7px 9px 7px 11px;
  cursor: pointer;
  text-align: left;
}

.picker-option:hover,
.picker-option.selected {
  background: #30302f;
}

.picker-option.selected {
  color: var(--accent-text);
}

.picker-option > span {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.picker-option strong,
.picker-option small {
  display: block;
  letter-spacing: 0;
}

.picker-option strong {
  color: #f3f3f1;
  font-size: 12px;
  font-weight: 650;
}

.picker-option small {
  color: #8f8f8b;
  font-size: 10px;
}

.picker-option svg {
  visibility: hidden;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--accent);
}

.picker-option.selected svg {
  visibility: visible;
}

.conversation {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: auto;
}

.empty-state {
  display: flex;
  width: min(var(--content-width), calc(100% - var(--content-gutter) - var(--content-gutter)));
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding: 48px 0 72px;
}

.empty-mark {
  overflow: hidden;
  width: 42px;
  height: 42px;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.empty-state h1 {
  margin: 18px 0 8px;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 640;
  letter-spacing: 0;
}

.empty-state > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.starter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 28px;
}

.starter {
  display: flex;
  min-height: 80px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  padding: 13px;
  color: #d1d0cc;
  cursor: pointer;
  text-align: left;
  transition: background 140ms ease, border-color 140ms ease;
}

.starter:hover {
  border-color: #50504e;
  background: var(--surface);
}

.starter:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.starter:disabled:hover {
  border-color: var(--line);
  background: transparent;
}

.starter svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
}

.starter span {
  font-size: 12px;
  line-height: 1.35;
}

.message-stream {
  width: min(var(--content-width), calc(100% - var(--content-gutter) - var(--content-gutter)));
  margin: 0 auto;
  padding: 36px 0 56px;
}

.message-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 30px;
}

.message-row.user {
  grid-template-columns: minmax(0, 1fr);
  row-gap: 0;
}

.message-body {
  min-width: 0;
  padding-top: 3px;
}

.message-row.assistant .message-body {
  width: min(700px, 100%);
  justify-self: center;
}

.message-row.user .message-body {
  justify-self: end;
  max-width: min(620px, 84%);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 11px 14px;
}

.message-row.user.editing .message-body {
  width: min(620px, 84%);
  padding: 10px;
}

.user-message-actions {
  display: flex;
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 2px;
  margin: 5px 0 0;
  color: var(--muted-2);
  transition: opacity 140ms ease, transform 140ms ease;
}

.user-message-actions time {
  margin-right: 2px;
  font-size: 10px;
}

.message-action-button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  padding: 0;
  color: var(--muted);
  cursor: pointer;
}

.message-action-button:hover {
  background: #3a3a38;
  color: var(--text);
}

.message-action-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

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

.user-message-editor {
  display: grid;
  gap: 9px;
}

.user-message-edit-input {
  width: 100%;
  min-height: 112px;
  max-height: 260px;
  resize: none;
  overflow-y: auto;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 2px 3px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

.user-message-edit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.message-edit-cancel,
.message-edit-send {
  min-height: 30px;
  border-radius: 7px;
  padding: 5px 11px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}

.message-edit-cancel {
  border: 1px solid #484846;
  background: transparent;
  color: var(--text);
}

.message-edit-cancel:hover {
  background: #363634;
}

.message-edit-send {
  border: 1px solid #f0f0ed;
  background: #f0f0ed;
  color: #181818;
}

.message-edit-send:hover {
  background: #ffffff;
}

@media (hover: hover) {
  .user-message-actions {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-2px);
  }

  .message-row.user:hover .user-message-actions,
  .message-row.user:focus-within .user-message-actions {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (hover: none) and (pointer: coarse) {
  .user-message-actions {
    min-height: 44px;
  }

  .message-action-button {
    width: 44px;
    height: 44px;
  }
}

.message-files {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}

.message-file-chip {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #444440;
  padding: 0 0 8px;
}

.message-file-chip > svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--accent);
}

.message-file-chip > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.message-file-chip strong,
.message-file-chip small {
  overflow: hidden;
  max-width: 280px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-file-chip strong {
  font-size: 11px;
  font-weight: 650;
}

.message-file-chip small {
  color: var(--muted-2);
  font-size: 9px;
}

.message-copy {
  color: #ececea;
  font-size: 16px;
  line-height: 1.625;
  overflow-wrap: anywhere;
}

.message-copy h1,
.message-copy h2,
.message-copy h3,
.message-copy h4 {
  color: #f5f5f3;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}

.message-copy h1 {
  margin: 28px 0 14px;
  font-size: 24px;
}

.message-copy h2 {
  margin: 25px 0 12px;
  font-size: 20px;
}

.message-copy h3 {
  margin: 22px 0 10px;
  font-size: 18px;
}

.message-copy h4 {
  margin: 20px 0 9px;
  font-size: 16px;
}

.message-copy strong {
  color: #f3f3f1;
  font-weight: 600;
}

.message-row.user .message-copy {
  line-height: 1.5;
}

.message-copy > :first-child {
  margin-top: 0;
}

.message-copy > :last-child {
  margin-bottom: 0;
}

.message-copy p,
.message-copy ul,
.message-copy ol,
.message-copy pre,
.message-copy blockquote {
  margin: 0 0 16px;
}

.message-copy ul,
.message-copy ol {
  padding-left: 22px;
}

.message-copy code {
  border: 1px solid #3d3d3d;
  border-radius: 4px;
  background: #1a1a1a;
  padding: 1px 5px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.875em;
}

.message-copy pre {
  overflow-x: auto;
  border: 1px solid #3b3b3b;
  border-radius: 7px;
  background: #0d0d0d;
  padding: 13px;
}

.message-copy pre code {
  border: 0;
  background: transparent;
  padding: 0;
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 10px;
}

.message-interruption {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: flex-start;
  gap: 7px;
  margin-top: 12px;
  border-left: 2px solid var(--warning);
  background: #24211b;
  padding: 7px 10px;
  color: #d8d4ca;
  font-size: 11px;
  line-height: 1.5;
}

.message-interruption svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--warning);
}

.generated-file {
  display: flex;
  width: min(420px, 100%);
  min-height: 58px;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #1c1c1c;
  padding: 7px 9px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.generated-file:hover {
  border-color: #4f6461;
  background: #222625;
}

.generated-file-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--accent-deep);
  color: var(--accent);
}

.generated-file-icon svg {
  width: 18px;
  height: 18px;
}

.generated-file > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.generated-file strong,
.generated-file small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generated-file strong {
  font-size: 12px;
  font-weight: 650;
}

.generated-file small {
  color: var(--muted-2);
  font-size: 10px;
}

.generated-file-download {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--muted);
}

.activity-panel {
  margin: 0 0 13px;
  color: var(--muted);
}

.activity-panel summary {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  list-style: none;
  user-select: none;
}

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

.activity-panel summary svg {
  width: 14px;
  height: 14px;
  color: #a6a69f;
}

.activity-panel summary .activity-chevron {
  width: 13px;
  height: 13px;
  color: var(--muted-2);
  transition: transform 140ms ease;
}

.reasoning-duration,
.processing-duration {
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  white-space: nowrap;
}

.reasoning-duration {
  font-size: 10px;
}

.activity-count {
  color: #8d8c87;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.activity-panel[open] summary .activity-chevron {
  transform: rotate(180deg);
}

.activity-list {
  display: grid;
  max-width: 700px;
  gap: 9px;
  margin: 10px 0 2px;
}

.activity-row {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  min-width: 0;
}

.activity-row > svg {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: #85857f;
}

.web-activity > svg,
.document-activity > svg {
  color: var(--accent);
}

.activity-text {
  min-width: 0;
  color: #a8a7a2;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.activity-text > :first-child,
.activity-text > :last-child {
  margin-top: 0;
  margin-bottom: 0;
}

.web-activity .activity-text {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.web-activity .activity-text strong {
  flex: 0 0 auto;
  color: #c6c5c0;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.web-activity .activity-text span {
  min-width: 0;
  flex: 1;
  color: #8e8d88;
}

.activity-pulse {
  width: 5px;
  height: 5px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.2s infinite ease-in-out;
}

.message-sources {
  margin-top: 15px;
}

.sources-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 650;
}

.sources-label svg {
  width: 13px;
  height: 13px;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.source-link {
  display: inline-flex;
  min-width: 0;
  max-width: min(320px, 100%);
  height: 30px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #1d1d1d;
  padding: 0 8px 0 6px;
  color: #c4c3be;
  text-decoration: none;
  font-size: 10px;
}

.source-link:hover {
  border-color: #555550;
  background: #252525;
  color: var(--text);
}

.source-link > span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-link > svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  color: var(--muted-2);
}

.source-index {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  border-radius: 4px;
  background: #333331;
  color: #aaa9a4;
  font-size: 9px;
}

.typing-line {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 22px;
}

.typing-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.typing-dots > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
  animation: pulse 1.2s infinite ease-in-out;
}

.typing-dots > span:nth-child(2) {
  animation-delay: 140ms;
}

.typing-dots > span:nth-child(3) {
  animation-delay: 280ms;
}

.processing-duration {
  min-width: 76px;
  font-size: 10px;
}

@keyframes pulse {
  0%, 70%, 100% { opacity: 0.25; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-2px); }
}

.image-result {
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #0d0d0d;
}

.image-result img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  cursor: zoom-in;
}

.image-result-footer {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--line-soft);
  padding: 5px 7px 5px 12px;
}

.image-result-footer > div {
  min-width: 0;
  margin-right: auto;
}

.image-result-footer strong,
.image-result-footer span {
  display: block;
}

.image-result-footer strong {
  font-size: 11px;
}

.image-result-footer span {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 10px;
}

.image-version-chip {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #232323;
  padding: 4px 7px;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
}

.image-version-chip.active {
  border-color: #407b76;
  background: var(--accent-deep);
  color: var(--accent-text);
}

.composer-zone {
  position: relative;
  z-index: 10;
  min-width: 0;
  background: var(--bg);
  padding: 0 var(--content-gutter) 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.composer-zoom-spacer {
  display: none;
}

@media (max-width: 820px) {
  body.viewport-zoomed .composer-zoom-spacer {
    display: block;
    height: var(--composer-reserved-height);
  }

  body.viewport-zoomed .composer-zone {
    position: fixed;
    right: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: translate(var(--composer-device-offset-x), var(--composer-device-offset-y)) scale(var(--composer-device-scale));
    transform-origin: left bottom;
    will-change: transform;
  }
}

.composer,
.active-file-bar,
.active-image-bar {
  width: min(var(--content-width), 100%);
  margin: 0 auto;
}

.active-file-bar,
.active-image-bar {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #1d1d1d;
  padding: 6px 8px;
}

.active-file-bar[hidden],
.active-image-bar[hidden] {
  display: none;
}

.active-file-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  border: 1px solid #3d5653;
  border-radius: 6px;
  background: #17302e;
  color: var(--accent);
}

.active-file-preview {
  display: block;
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  overflow: hidden;
  border: 1px solid #50504d;
  border-radius: 6px;
  background: #161616;
  padding: 0;
  cursor: zoom-in;
}

.active-file-preview[hidden] {
  display: none;
}

.active-file-preview:hover,
.active-file-preview:focus-visible {
  border-color: var(--accent);
  outline: 0;
}

.active-file-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.active-file-icon svg {
  width: 18px;
  height: 18px;
}

.active-file-icon[hidden] {
  display: none;
}

.active-image-bar img {
  width: 39px;
  height: 39px;
  border-radius: 5px;
  object-fit: cover;
}

.active-file-details,
.active-image-bar > div {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.active-file-bar strong,
.active-image-bar strong {
  font-size: 11px;
}

.active-file-bar span,
.active-image-bar span {
  color: var(--muted-2);
  font-size: 10px;
}

.composer {
  overflow: visible;
  border: 1px solid #444441;
  border-radius: 8px;
  background: #242424;
  box-shadow: 0 10px 28px rgb(0 0 0 / 18%);
}

.active-image-bar:not([hidden]) + .composer,
.active-file-bar:not([hidden]) ~ .composer {
  border-radius: 0 0 8px 8px;
}

.mode-tabs {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 3px;
  border-bottom: 1px solid var(--line-soft);
  padding: 6px 8px;
}

.mode-tab {
  display: inline-flex;
  height: 31px;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 0 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.mode-tab:hover,
.mode-tab.active {
  background: #343434;
  color: var(--text);
}

.mode-tab svg {
  width: 15px;
  height: 15px;
}

.image-mode-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: #55c7e9;
  color: #16323a;
}

.image-mode-icon svg {
  width: 13px;
  height: 13px;
}

.mode-caption {
  min-width: 0;
  overflow: hidden;
  margin-left: 5px;
  color: var(--muted-2);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#promptInput {
  display: block;
  width: 100%;
  min-height: 44px;
  max-height: 180px;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  padding: 10px 16px 6px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

#promptInput::placeholder {
  color: #858581;
}

.composer-footer {
  display: flex;
  min-height: 45px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 8px 8px;
}

.composer-actions,
.image-options {
  display: flex;
  align-items: center;
}

.composer-actions {
  min-width: 0;
  gap: 5px;
}

.image-options {
  gap: 6px;
}

.image-options[hidden] {
  display: none;
}

.image-choice-picker .picker-trigger {
  height: 30px;
  padding-inline: 8px 7px;
}

.quality-picker .picker-trigger {
  width: 108px;
}

.size-picker .picker-trigger {
  width: 98px;
}

.image-choice-picker .picker-trigger strong {
  font-size: 11px;
}

.image-choice-picker .picker-menu {
  top: auto;
  bottom: calc(100% + 7px);
  right: auto;
  left: 0;
  width: 226px;
}

.size-picker .picker-menu {
  right: 0;
  left: auto;
}

.send-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 33px;
  height: 33px;
  border: 0;
  border-radius: 7px;
  background: var(--text);
  color: #1d1d1d;
  cursor: pointer;
}

.send-button:hover {
  background: white;
}

.send-button.is-stop {
  background: #b84e4b;
  color: #fff;
}

.send-button.is-stop:hover:not(:disabled) {
  background: #d35c57;
}

.send-button:disabled {
  background: #4a4a48;
  color: #797975;
  cursor: not-allowed;
}

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

.composer-note {
  margin-top: 7px;
  color: #676763;
  font-size: 9px;
  text-align: center;
}

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(0 0 0 / 86%);
  padding: 42px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #252525;
  color: white;
}

.auth-modal {
  position: fixed;
  z-index: 130;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(0 0 0 / 72%);
  padding: 20px;
}

.auth-dialog {
  position: relative;
  width: min(400px, 100%);
  border: 1px solid #464643;
  border-radius: 8px;
  background: #1d1d1d;
  padding: 28px;
  box-shadow: 0 28px 70px rgb(0 0 0 / 55%);
}

.share-dialog {
  width: min(640px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.auth-close {
  position: absolute;
  top: 10px;
  right: 10px;
}

.auth-brand {
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
}

.auth-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-dialog h2 {
  margin: 17px 0 6px;
  font-size: 20px;
  letter-spacing: 0;
}

.auth-dialog > p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.auth-dialog form {
  display: grid;
  gap: 8px;
}

.auth-dialog label {
  margin-top: 5px;
  color: #d3d3d0;
  font-size: 11px;
  font-weight: 650;
}

.auth-dialog input,
.auth-dialog select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  background: #151515;
  padding: 0 11px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.auth-dialog input:focus,
.auth-dialog select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgb(76 201 192 / 12%);
}

.share-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #171717;
  padding: 3px;
}

.share-tab {
  min-height: 35px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}

.share-tab:hover,
.share-tab.active {
  background: var(--surface-2);
  color: var(--text);
}

.share-view {
  padding-top: 14px;
}

.share-view form {
  gap: 7px;
}

.share-field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(120px, 0.7fr);
  gap: 10px;
}

.share-field-grid label {
  display: grid;
  gap: 7px;
}

.share-field-grid label > span {
  color: #d3d3d0;
  font-size: 11px;
  font-weight: 650;
}

.share-toggle {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  margin: 5px 0 0 !important;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 7px 10px;
  cursor: pointer;
}

.share-toggle:hover {
  border-color: var(--line);
  background: #202020;
}

.share-toggle input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.share-toggle > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.share-toggle strong {
  font-size: 11px;
}

.share-toggle small {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
}

.share-result {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.share-result > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.share-result strong {
  font-size: 12px;
}

.share-result span {
  color: var(--muted);
  font-size: 10px;
}

.share-link-row {
  display: flex;
  gap: 6px;
}

.share-link-row input {
  min-width: 0;
  flex: 1;
  font-size: 11px;
}

.share-link-row .icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.share-list {
  display: grid;
}

.share-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 3px;
}

.share-list-row:first-child {
  padding-top: 3px;
}

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

.share-list-copy strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-list-copy span,
.share-list-copy small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.share-status {
  color: #68d59d;
}

.share-status.inactive {
  color: var(--muted-2);
}

.share-revoke {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 0 9px;
  color: var(--danger);
  cursor: pointer;
  font-size: 11px;
}

.share-revoke:hover {
  background: rgb(242 118 118 / 10%);
}

.share-revoke:disabled {
  color: var(--muted-2);
  cursor: default;
}

.share-list-empty {
  padding: 36px 0;
  color: var(--muted-2);
  font-size: 11px;
  text-align: center;
}

.auth-error {
  margin-top: 4px;
  color: var(--danger);
  font-size: 11px;
  line-height: 1.45;
}

.auth-submit {
  height: 40px;
  margin-top: 9px;
  border: 0;
  border-radius: 6px;
  background: var(--text);
  color: #171717;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.auth-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.auth-footer {
  display: flex;
  gap: 6px;
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 11px;
}

.auth-footer a {
  color: var(--accent);
  text-decoration: none;
}

.toast-region {
  position: fixed;
  z-index: 120;
  top: 72px;
  right: 18px;
  display: flex;
  width: min(340px, calc(100% - 36px));
  flex-direction: column;
  gap: 8px;
}

.toast {
  border: 1px solid #4a4a47;
  border-left: 3px solid var(--danger);
  border-radius: 7px;
  background: #242424;
  padding: 10px 12px;
  box-shadow: 0 12px 30px rgb(0 0 0 / 30%);
  color: #ededeb;
  font-size: 12px;
  line-height: 1.45;
}

.toast.success {
  border-left-color: #50c889;
}

.sidebar-scrim {
  display: none;
}

/* iOS automatically zooms focused editable controls below 16px. */
@media (max-width: 820px), (hover: none) and (pointer: coarse) {
  #promptInput,
  .user-message-edit-input,
  .account-key-field select,
  .auth-dialog input:not([type="checkbox"]):not([type="radio"]),
  .auth-dialog select {
    font-size: 16px;
  }
}

@media (max-width: 820px) {
  :root {
    --content-gutter: 24px;
  }

  .conversation {
    scrollbar-width: none;
  }

  .conversation::-webkit-scrollbar {
    display: none;
  }

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

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(320px, calc(100vw - 46px));
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  body.sidebar-open .sidebar {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .sidebar-close,
  .mobile-menu {
    display: inline-grid;
  }

  .icon-button {
    width: 44px;
    height: 44px;
  }

  .mobile-menu {
    border: 1px solid #575754;
    background: #282827;
    color: #f0f0ed;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%);
  }

  .mobile-menu:hover,
  .mobile-menu:focus-visible {
    border-color: var(--accent);
    background: #30302f;
    color: var(--accent-text);
    outline: 0;
  }

  .mobile-menu svg {
    width: 20px;
    height: 20px;
  }

  .sidebar-scrim {
    position: fixed;
    z-index: 25;
    inset: 0;
    display: block;
    visibility: hidden;
    background: rgb(0 0 0 / 58%);
    opacity: 0;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  body.sidebar-open .sidebar-scrim {
    visibility: visible;
    opacity: 1;
  }

  .topbar {
    padding: 0 12px;
  }

  .topbar .picker-trigger {
    height: 44px;
  }

  .new-chat-button,
  .thread-button,
  .account-menu-link,
  .account-menu-action {
    min-height: 44px;
  }

  .account-key-field select {
    height: 44px;
  }

  .thread-heading .save-state,
  .picker-trigger .picker-kicker {
    display: none;
  }

  .starter-grid {
    grid-template-columns: 1fr;
  }

  .starter {
    min-height: 58px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
  }

}

@media (max-width: 560px) {
  .main-panel {
    grid-template-rows: 54px minmax(0, 1fr) auto;
  }

  .topbar {
    gap: 8px;
    padding-inline: 10px;
  }

  .topbar-controls {
    margin-left: auto;
    gap: 4px;
  }

  .model-picker .picker-trigger {
    width: 136px;
  }

  .effort-picker .picker-trigger {
    width: 82px;
  }

  .account-menu {
    position: absolute;
    top: auto;
    right: auto;
    bottom: calc(100% + 7px);
    left: 0;
  }

  .share-field-grid {
    grid-template-columns: 1fr;
  }

  .share-dialog {
    padding: 22px 18px;
  }

  .share-list-row {
    align-items: start;
  }

  .picker-menu {
    position: fixed;
    top: 60px;
    right: 10px;
    left: 10px;
    width: auto;
  }

  .effort-menu {
    left: auto;
    width: min(228px, calc(100vw - 20px));
  }

  .thread-heading {
    display: none;
  }

  .sidebar {
    padding: 16px 16px 12px;
  }

  .brand-row {
    min-height: 48px;
    gap: 6px;
    padding: 0 4px 16px;
  }

  .brand-button {
    min-height: 48px;
    gap: 12px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand-name {
    font-size: 18px;
  }

  .new-chat-button {
    min-height: 48px;
    border-color: #50504d;
    border-radius: 8px;
    background: #242424;
    padding-inline: 13px;
    font-size: 14px;
  }

  .sidebar-label {
    margin: 26px 8px 10px;
    font-size: 12px;
  }

  .thread-list {
    gap: 4px;
  }

  .thread-button {
    min-height: 44px;
    gap: 10px;
    padding-inline: 10px;
  }

  .thread-button span {
    font-size: 13px;
  }

  .sidebar-footer {
    padding-top: 10px;
  }

  .sidebar-footer .account-trigger {
    height: 52px;
    padding-inline: 6px;
  }

  .auth-dialog {
    padding: 24px 20px;
  }

  .message-stream {
    padding: 20px 0 40px;
  }

  .message-row {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 24px;
  }

  .message-row.user .message-body {
    max-width: 94%;
    padding: 9px 11px;
  }

  .message-row.user.has-files .message-body {
    width: 100%;
    max-width: 100%;
    border: 1px solid #373735;
    border-radius: 10px;
    background: #262626;
    padding: 14px;
  }

  .message-row.user.has-files .message-files {
    margin-bottom: 14px;
  }

  .message-row.user.has-files .message-file-chip {
    gap: 10px;
    border-bottom-color: #4a4a47;
    padding-bottom: 12px;
  }

  .message-row.user.has-files .message-file-chip > svg {
    box-sizing: content-box;
    width: 20px;
    height: 20px;
    border: 1px solid #335955;
    border-radius: 6px;
    background: #17302e;
    padding: 6px;
  }

  .message-row.user.has-files .message-file-chip strong {
    max-width: none;
    font-size: 13px;
  }

  .message-row.user.has-files .message-file-chip small {
    font-size: 11px;
  }

  .message-row.user.has-files .message-copy {
    font-size: 16px;
    line-height: 1.5;
  }

  .message-row.user.editing .message-body {
    width: 94%;
  }

  .message-copy {
    font-size: 16px;
    line-height: 1.625;
  }

  .message-copy p,
  .message-copy ul,
  .message-copy ol,
  .message-copy pre,
  .message-copy blockquote {
    margin-bottom: 14px;
  }

  .message-copy ul,
  .message-copy ol {
    padding-left: 20px;
  }

  .message-meta {
    margin-top: 6px;
  }

  .user-message-actions {
    min-height: 44px;
  }

  .message-action-button {
    width: 44px;
    height: 44px;
  }

  .active-file-bar,
  .active-image-bar {
    min-height: 48px;
    padding: 5px 7px;
  }

  .composer {
    border-color: #3d3d3a;
    background: #202020;
    box-shadow: none;
  }

  .mode-tabs {
    min-height: 54px;
    padding: 5px 8px;
  }

  .mode-tab {
    height: 44px;
    padding-inline: 10px;
    font-size: 13px;
  }

  #promptInput {
    min-height: 48px;
    padding: 12px 14px 6px;
    line-height: 1.5;
  }

  .composer-footer {
    min-height: 56px;
    gap: 8px;
    padding: 4px 7px 7px;
  }

  .send-button {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--accent);
    color: #102a28;
  }

  .send-button:hover {
    background: #62d8d0;
  }

  .mode-caption {
    display: none;
  }

  .image-choice-picker .picker-trigger .picker-kicker {
    display: none;
  }

  .image-choice-picker .picker-trigger {
    height: 40px;
  }

  .quality-picker .picker-trigger {
    width: 74px;
  }

  .size-picker .picker-trigger {
    width: 62px;
  }

  .image-choice-picker .picker-menu {
    position: absolute;
    top: auto;
    bottom: calc(100% + 7px);
    right: auto;
    left: 0;
    width: min(226px, calc(100vw - 20px));
  }

  .size-picker .picker-menu {
    right: 0;
    left: auto;
  }

  .composer-note {
    display: none;
  }

  .lightbox {
    padding: 48px 8px 16px;
  }
}

@media (max-width: 360px) {
  :root {
    --content-gutter: 18px;
  }
}

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