:root {
  color-scheme: dark;
  --page: #141b26;
  --panel: #19212f;
  --panel-soft: #1e2a3c;
  --sidebar: #111722;
  --text: #dce6f0;
  --muted: #8b9db5;
  --faint: #5a708b;
  --line: #29364a;
  --brand: #3b82f6;
  --brand-soft: #1d3454;
  --cyan: #38bdf8;
  --danger: #f87171;
  --shadow: 0 20px 70px #0005;
}
html[data-theme='light'] {
  color-scheme: light;
  --page: #f2f5f9;
  --panel: #fff;
  --panel-soft: #eef2fb;
  --sidebar: #1e2a3a;
  --text: #1a2638;
  --muted: #697b91;
  --faint: #8493a7;
  --line: #dce4ef;
  --brand: #2563eb;
  --brand-soft: #dbeafe;
  --cyan: #0284c7;
  --danger: #dc2626;
  --shadow: 0 20px 70px #263b5424;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font:
    14px/1.6 'Microsoft YaHei UI',
    'PingFang SC',
    system-ui,
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: none;
}
input,
textarea,
select {
  width: 100%;
  background: var(--page);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px #3b82f61b;
}
textarea {
  resize: vertical;
}
input[type='checkbox'] {
  width: auto;
  accent-color: var(--brand);
}
label {
  display: block;
  margin: 14px 0 7px;
  font-size: 13px;
}
label > input,
label > textarea,
label > select {
  display: block;
  margin-top: 7px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: 19px;
  font-weight: 650;
}
h3 {
  font-size: 14px;
}
small {
  font-size: 11px;
}
strong {
  font-weight: 600;
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.tiny {
  font-size: 11px;
}
.full {
  width: 100%;
}
.primary,
.secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  border-radius: 9px;
  padding: 9px 16px;
  font-weight: 500;
  transition: background 0.15s;
}
.primary {
  background: var(--brand);
  color: white;
}
.primary:hover {
  filter: brightness(1.09);
}
.secondary {
  border: 1px solid var(--line);
  background: var(--panel);
}
.secondary:hover {
  background: var(--panel-soft);
}
.small {
  font-size: 12px;
  padding: 6px 10px;
  min-height: 32px;
}
.icon {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 20px;
  color: var(--muted);
}
.icon:hover {
  background: var(--panel-soft);
  color: var(--text);
}
.text-button {
  color: var(--cyan);
  font-size: 12px;
  padding: 4px 0;
}
.danger-button {
  color: var(--danger);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 12px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--cyan);
  font-weight: 600;
}
.workspace {
  display: flex;
  height: 100dvh;
  overflow: hidden;
}
.sidebar {
  width: 258px;
  min-width: 258px;
  background: var(--sidebar);
  color: #dce6f0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #243044;
}
.brand {
  padding: 27px 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #38bdf86b;
}
.brand strong {
  display: block;
  font-size: 16px;
  letter-spacing: 0.3px;
}
.brand small {
  font-size: 8px;
  color: #38bdf8;
  letter-spacing: 1.2px;
  display: block;
  margin-top: 3px;
}
.brand i {
  width: 5px;
  height: 5px;
  display: inline-block;
  background: #34d399;
  border-radius: 50%;
  margin-right: 4px;
}
.workspace-nav {
  margin: 0 14px 24px;
  display: flex;
  padding: 4px;
  background: #ffffff04;
  border: 1px solid #263449;
  border-radius: 10px;
  gap: 3px;
}
.workspace-nav a {
  flex: 1;
  border-radius: 6px;
  padding: 8px 6px;
  font-size: 12px;
  text-align: center;
  color: #849ab5;
}
.workspace-nav a span {
  font-size: 9px;
  margin-left: 5px;
}
.workspace-nav a.active {
  color: #9cdbff;
  background: #1e344d;
}
.list-heading {
  padding: 0 18px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8197b2;
  font-size: 11px;
  letter-spacing: 1px;
}
.list-heading > div {
  display: flex;
  gap: 1px;
}
.sidebar .icon:hover {
  background: #233147;
  color: #dce6f0;
}
.group-list {
  padding: 0 10px 16px;
  overflow: auto;
  flex: 1;
}
.group-item {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  text-align: left;
  padding: 12px 10px;
  margin: 3px 0;
  border-radius: 9px;
  border: 1px solid transparent;
}
.group-item:hover {
  background: #ffffff05;
}
.group-item.active {
  background: #1e2c40;
  border-color: #27435c;
}
.group-item-symbol {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #1c3047;
  color: #70cfff;
  display: grid;
  place-items: center;
  font-size: 19px;
}
.group-item-copy {
  overflow: hidden;
  flex: 1;
}
.group-item-copy strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
}
.group-item-copy small {
  display: block;
  color: #6f89a7;
  font-size: 10px;
  margin-top: 3px;
}
.badge {
  font-size: 10px;
  line-height: 19px;
  min-width: 19px;
  height: 19px;
  background: #2563eb;
  color: white;
  border-radius: 12px;
  text-align: center;
  padding: 0 5px;
}
.sidebar-bottom {
  padding: 17px 16px;
  border-top: 1px solid #243044;
  display: flex;
  gap: 10px;
  align-items: center;
}
.user-avatar {
  display: grid;
  place-items: center;
  border-radius: 10px;
  width: 34px;
  height: 34px;
  background: #273c55;
  color: #a7d8ff;
}
.identity {
  flex: 1;
  overflow: hidden;
}
.identity strong {
  display: block;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.identity small {
  display: block;
  color: #6f89a7;
  font-size: 10px;
}
.main-panel {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 79px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 27px;
  background: var(--panel);
}
.group-symbol {
  color: var(--cyan);
  font-size: 25px;
  font-weight: 300;
}
.heading {
  flex: 1;
  min-width: 0;
}
.heading h1 {
  font-size: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.heading p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.connection {
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px 7px;
  border-radius: 6px;
}
.connection.online {
  color: #34b98e;
}
.welcome {
  margin: auto;
  text-align: center;
  max-width: 920px;
  padding: 45px 35px;
}
.welcome-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 22px;
  border: 1px solid #3b82f64f;
  background: linear-gradient(135deg, #3b82f623, #38bdf80b);
  color: var(--cyan);
  font-size: 28px;
  margin-bottom: 24px;
}
.welcome-mark span {
  position: absolute;
  font-size: 19px;
  right: -8px;
  top: -9px;
  color: #7cc4ff;
}
.welcome .eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
}
.welcome h2 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 1px;
  margin: 13px 0 15px;
}
.welcome-copy {
  font-size: 13px;
  color: var(--muted);
  line-height: 2;
}
.welcome-actions {
  margin: 28px 0 52px;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: left;
}
.feature-grid article {
  border: 1px solid var(--line);
  padding: 22px 20px;
  border-radius: 12px;
  background: var(--panel);
}
.feature-grid article > span {
  font-size: 8px;
  color: var(--faint);
  letter-spacing: 1.2px;
}
.feature-grid h3 {
  margin: 12px 0 7px;
  font-size: 12px;
}
.feature-grid p {
  font-size: 11px;
  color: var(--muted);
}
.chat {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.announcement {
  font-size: 12px;
  color: var(--muted);
  background: var(--panel);
  padding: 9px 28px;
  border-bottom: 1px solid var(--line);
  max-height: 85px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.assistant-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 26px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.assistant-bar > span {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
}
.assistant-bar img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}
.assistant-bar small {
  color: var(--faint);
  font-size: 10px;
}
.assistant-bar > div {
  display: flex;
  gap: 7px;
}
.message-scroll {
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px 7% 20px;
  scrollbar-gutter: stable;
}
.history-button {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin: 0 auto 20px;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.messages:empty::before {
  content: '还没有消息，先和大家打个招呼吧。';
  display: block;
  text-align: center;
  color: var(--muted);
  padding: 80px 0;
  font-size: 12px;
}
.message {
  display: flex;
  gap: 11px;
  margin: 0 0 23px;
  scroll-margin-top: 15px;
}
.message-avatar {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--cyan);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 13px;
}
.message-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.message-body {
  max-width: min(84%, 760px);
  min-width: 0;
}
.message-meta {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 7px;
}
.message-meta strong {
  color: var(--text);
  font-size: 11px;
}
.message-meta time {
  font-size: 9px;
  color: var(--faint);
}
.bot-badge {
  font-size: 8px;
  border: 1px solid #3b82f64d;
  background: var(--brand-soft);
  color: var(--cyan);
  padding: 0 5px;
  border-radius: 4px;
}
.message-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.9;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 11px 15px;
  border-radius: 0 11px 11px;
}
.message.own {
  flex-direction: row-reverse;
}
.message.own .message-meta {
  justify-content: flex-end;
}
.message.own .message-text {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
  border-radius: 11px 0 11px 11px;
}
.message.bot .message-text {
  background: var(--panel-soft);
}
.source-chip {
  display: inline-block;
  margin: 0 3px;
  color: var(--cyan);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--page);
  font-size: 10px;
  padding: 1px 6px;
  vertical-align: middle;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.message.own .source-chip {
  color: white;
  background: #fff2;
}
.message.highlight .message-text {
  outline: 2px solid var(--cyan);
}
.source-buttons {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 7px;
}
.bot-draft {
  border-left: 2px solid var(--brand);
  padding: 9px 14px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bot-draft strong {
  display: block;
  color: var(--cyan);
  font-size: 10px;
  margin-bottom: 6px;
}
.composer-area {
  padding: 10px 6% 12px;
}
.composer {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  padding: 10px 14px 9px;
  box-shadow: 0 3px 20px #00000008;
}
.composer:focus-within {
  border-color: #3b82f68a;
}
.composer textarea {
  background: transparent;
  border: 0;
  box-shadow: none;
  resize: none;
  min-height: 45px;
  max-height: 160px;
  padding: 2px;
  font-size: 13px;
}
.composer-bottom {
  display: flex;
  gap: 10px;
  align-items: center;
}
.composer-bottom small {
  font-size: 9px;
  color: var(--faint);
  flex: 1;
}
.mention-button {
  color: var(--cyan);
  font-size: 11px;
  border-radius: 5px;
  padding: 3px 6px;
  background: var(--brand-soft);
}
.send {
  min-height: 30px;
  padding: 5px 13px;
  font-size: 12px;
}
.composer-note {
  text-align: center;
  font-size: 9px;
  color: var(--faint);
  margin-top: 7px;
}
.unseen-banner {
  text-align: center;
  font-size: 11px;
  padding: 6px;
  background: var(--brand-soft);
  color: var(--cyan);
}
.details {
  width: 310px;
  min-width: 310px;
  border-left: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
}
.details-heading {
  height: 79px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding: 0 15px;
}
.tabs button {
  flex: 1;
  padding: 13px 6px;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.tabs button.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.detail-panel {
  padding: 0 18px 22px;
  overflow: auto;
  flex: 1;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 23px 0 13px;
}
.section-heading h2 {
  font-size: 12px;
}
.section-heading > span {
  font-size: 11px;
}
.detail-panel > p.muted {
  font-size: 11px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.field-label {
  font-size: 10px;
  color: var(--muted);
  margin-top: 18px;
}
.copy-row {
  display: flex;
  gap: 6px;
}
.copy-row input {
  min-width: 0;
  padding: 7px;
  font-size: 10px;
}
.member {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 13px 0;
}
.member .message-avatar {
  width: 30px;
  height: 30px;
  font-size: 11px;
  border-radius: 9px;
}
.member-copy {
  flex: 1;
  min-width: 0;
}
.member strong {
  font-size: 11px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.member small {
  font-size: 9px;
  color: var(--muted);
}
.member .icon {
  font-size: 15px;
}
.upload-area {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  padding: 22px 9px;
  background: var(--page);
  border: 1px dashed var(--line);
  border-radius: 10px;
  cursor: pointer;
  margin-top: 20px;
  text-align: center;
}
.upload-area:hover {
  border-color: var(--brand);
}
.upload-area > span {
  font-size: 26px;
  color: var(--cyan);
  line-height: 1.2;
}
.upload-area strong {
  font-size: 12px;
}
.upload-area small {
  font-size: 9px;
  color: var(--muted);
}
#uploadState {
  margin: 7px 0 15px;
}
.file-search {
  display: flex;
  gap: 5px;
}
.file-search input {
  min-width: 0;
  font-size: 11px;
  padding: 7px;
}
.file-card,
.todo-card,
.task-card,
.source-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  margin: 10px 0;
  background: var(--page);
  overflow-wrap: anywhere;
}
.file-card h3,
.todo-card h3,
.task-card h3 {
  font-size: 12px;
  line-height: 1.7;
  font-weight: 500;
  white-space: pre-wrap;
}
.card-meta {
  color: var(--muted);
  font-size: 9px;
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
}
.card-actions {
  display: flex;
  gap: 11px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.card-actions button {
  font-size: 10px;
  color: var(--cyan);
  padding: 2px 0;
}
.card-actions button.danger {
  color: var(--danger);
}
.status-pill {
  display: inline-block;
  font-size: 9px;
  color: var(--muted);
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.status-pill.READY,
.status-pill.COMPLETED {
  color: #34b98e;
}
.status-pill.FAILED {
  color: var(--danger);
}
.status-pill.RUNNING,
.status-pill.PROCESSING {
  color: var(--cyan);
}
.empty-note {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  text-align: center;
  padding: 24px 8px;
}
#todoFilter {
  font-size: 11px;
  padding: 8px;
}
dialog {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 17px;
  box-shadow: var(--shadow);
  padding: 28px;
  width: min(420px, calc(100vw - 32px));
  max-height: 88dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #070e1bb8;
  backdrop-filter: blur(4px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.dialog-heading h2 {
  font-size: 18px;
}
.dialog-heading .eyebrow {
  margin-bottom: 4px;
  font-size: 8px;
}
.dialog-heading .icon {
  font-size: 23px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.auth-dialog {
  width: 420px;
  padding: 34px;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 25px;
}
.auth-brand img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
.auth-dialog > h2 {
  font-size: 25px;
  margin-bottom: 5px;
}
.auth-dialog > p {
  font-size: 12px;
}
.auth-tabs {
  margin: 22px 0 16px;
  padding: 0;
}
.auth-dialog form > button {
  margin-top: 12px;
}
.auth-back {
  display: block;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 20px;
}
.form-error {
  color: var(--danger);
  font-size: 11px;
  min-height: 18px;
  margin-top: 10px;
}
.wide-dialog {
  width: min(720px, calc(100vw - 32px));
}
.range-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.range-form label {
  margin: 0;
  font-size: 10px;
}
.range-form .primary {
  font-size: 12px;
}
.task-state {
  color: var(--cyan);
  font-size: 12px;
  margin: 18px 0;
  white-space: pre-wrap;
}
.task-summary {
  font-size: 13px;
  white-space: pre-wrap;
  line-height: 2;
  overflow-wrap: anywhere;
}
.task-result-meta {
  font-size: 10px;
  color: var(--muted);
  margin: 14px 0;
}
.draft-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  margin: 12px 0;
}
.draft-title {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.draft-title input[type='checkbox'] {
  margin-top: 13px;
}
.draft-title textarea {
  font-size: 12px;
  min-height: 65px;
}
.draft-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-left: 25px;
}
.draft-fields label {
  font-size: 10px;
}
.draft-fields input,
.draft-fields select {
  font-size: 11px;
  padding: 8px;
}
.draft-card .source-buttons {
  margin-left: 25px;
}
.source-card h3 {
  font-size: 12px;
}
.source-card p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  white-space: pre-wrap;
  line-height: 1.8;
}
.source-full-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.9;
  font-size: 13px;
  padding: 17px 0;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.check-row input {
  margin: 0;
}
.toast-region {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast {
  font-size: 12px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  padding: 11px 20px;
  border-radius: 9px;
  box-shadow: var(--shadow);
  max-width: calc(100vw - 32px);
}
.toast.error {
  color: var(--danger);
}
.mobile-menu {
  display: none;
}
.shade {
  position: fixed;
  inset: 0;
  background: #0008;
  z-index: 25;
}
.group-list .empty-note {
  color: #6f89a7;
  font-size: 11px;
}
.loading-dot::after {
  content: ' ···';
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}
@media (min-width: 1500px) {
  .details {
    width: 340px;
    min-width: 340px;
  }
  .message-scroll {
    padding-left: 10%;
    padding-right: 10%;
  }
  .composer-area {
    padding-left: 9%;
    padding-right: 9%;
  }
}
@media (max-width: 1120px) {
  .sidebar {
    width: 230px;
    min-width: 230px;
  }
  .details {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 325px;
    z-index: 20;
    box-shadow: -15px 0 45px #0003;
  }
  .welcome h2 {
    font-size: 25px;
  }
  .feature-grid {
    gap: 10px;
  }
  .feature-grid article {
    padding: 16px 13px;
  }
  .assistant-bar small {
    display: none;
  }
  .message-scroll {
    padding-left: 25px;
    padding-right: 25px;
  }
}
@media (max-width: 720px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 30;
    transform: translateX(-100%);
    transition: transform 0.18s;
    width: 258px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-menu {
    display: grid;
  }
  .topbar {
    height: 65px;
    padding: 0 14px;
    gap: 9px;
  }
  .heading h1 {
    font-size: 15px;
  }
  .heading p {
    font-size: 10px;
  }
  .group-symbol {
    display: none;
  }
  .connection {
    font-size: 8px;
    padding: 2px 4px;
  }
  .welcome {
    padding: 25px 22px;
    overflow: auto;
  }
  .welcome h2 {
    font-size: 23px;
  }
  .welcome .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .welcome-copy {
    font-size: 12px;
  }
  .welcome-actions {
    margin-bottom: 30px;
    gap: 8px;
  }
  .welcome-actions button {
    font-size: 11px;
    padding: 9px 12px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid article {
    padding: 12px 16px;
  }
  .feature-grid h3 {
    margin: 5px 0;
  }
  .feature-grid article > span {
    font-size: 7px;
  }
  .assistant-bar {
    padding: 9px 12px;
    gap: 5px;
  }
  .assistant-bar > span {
    font-size: 10px;
    gap: 5px;
  }
  .assistant-bar img {
    width: 19px;
    height: 19px;
  }
  .assistant-bar .small {
    font-size: 10px;
    padding: 5px 7px;
    min-height: 29px;
  }
  .message-scroll {
    padding: 16px 14px;
  }
  .message-body {
    max-width: 84%;
  }
  .message-text {
    padding: 9px 12px;
    font-size: 12px;
  }
  .message-avatar {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }
  .message {
    gap: 8px;
  }
  .composer-area {
    padding: 8px 12px 10px;
  }
  .composer-note {
    font-size: 8px;
  }
  .composer-bottom small {
    font-size: 8px;
  }
  .details {
    width: min(340px, 100vw);
  }
  .range-form {
    grid-template-columns: 1fr 1fr;
  }
  .range-form button {
    grid-column: span 2;
  }
  .draft-fields {
    grid-template-columns: 1fr;
    margin-left: 0;
  }
  .draft-card {
    padding: 10px;
  }
  .auth-dialog {
    padding: 26px;
  }
  .dialog-heading {
    margin-bottom: 14px;
  }
  .message-meta time {
    font-size: 8px;
  }
  .message-meta {
    gap: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
