:root {
  --bg-page: linear-gradient(138deg, #eff4ff 0%, #f7fbff 46%, #fff7f8 100%);
  --bg-panel: rgba(255, 255, 255, 0.78);
  --bg-panel-strong: rgba(255, 255, 255, 0.94);
  --bg-soft: #f5f8fc;
  --bg-soft-strong: #ebf1f7;
  --bg-soft-accent: #f3f7ff;
  --text-primary: #1b2430;
  --text-secondary: #667389;
  --text-tertiary: #9ba7b8;
  --line: rgba(212, 222, 235, 0.9);
  --line-soft: rgba(227, 234, 242, 0.72);
  --shadow-main: 0 18px 48px rgba(17, 34, 68, 0.08);
  --shadow-soft: 0 10px 28px rgba(17, 34, 68, 0.06);
  --shadow-float: 0 12px 32px rgba(17, 34, 68, 0.07);
  --brand: #4f95ff;
  --brand-dark: #2d63d6;
  --brand-soft: rgba(79, 149, 255, 0.12);
  --accent: #222b36;
  --radius-xl: 20px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --sidebar-width: 280px;
  --sidebar-collapsed-width: 0px;
  --page-padding: 12px;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #f3f7fc;
  color: var(--text-primary);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(214, 227, 255, 0.8), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255, 227, 234, 0.65), transparent 20%),
    #f4f7fb;
}

button,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

.app-shell {
  display: flex;
  min-height: 100vh;
  padding: var(--page-padding);
  gap: 16px;
  background:
    radial-gradient(circle at top right, rgba(214, 229, 255, 0.78), transparent 30%),
    radial-gradient(circle at bottom left, rgba(255, 239, 236, 0.74), transparent 22%),
    linear-gradient(180deg, #f5f8fc 0%, #f8fafc 100%);
}

.sidebar {
  width: var(--sidebar-width);
  flex: 0 0 var(--sidebar-width);
  padding: 18px 14px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 255, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 30px rgba(18, 40, 74, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.24s ease, flex-basis 0.24s ease, padding 0.24s ease, opacity 0.2s ease, margin 0.24s ease;
}

.sidebar.is-collapsed {
  width: var(--sidebar-collapsed-width);
  flex-basis: var(--sidebar-collapsed-width);
  padding: 0;
  opacity: 0;
  margin-right: -16px;
  pointer-events: none;
}

.brand-row,
.sidebar-footer,
.history-row,
.suggestion-chip,
.tool-btn,
.toolbar,
.toggle-chip,
.composer-actions,
.history-label {
  display: flex;
  align-items: center;
}

.brand-row {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.brand-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-left: 2px;
}

.orb {
  position: relative;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 34%, #9de4ff 0%, #68cbff 38%, #6caeea 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.orb::before {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(127, 149, 255, 0.28), transparent 34%),
    radial-gradient(circle at 60% 40%, #5f6a87 0%, #202535 42%, #2f3852 64%, #7f9ddd 100%);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.65),
    inset 0 0 10px rgba(255, 255, 255, 0.18);
}

.orb::after {
  content: "";
  position: absolute;
  inset: 36%;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 35%, rgba(255, 255, 255, 0.6), transparent 28%);
  mix-blend-mode: screen;
}

.orb-sm {
  width: 40px;
  height: 40px;
}

.orb-lg {
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  box-shadow:
    0 20px 40px rgba(88, 160, 255, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.orb-xs {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.brand-copy {
  min-width: 0;
}

.brand-title {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-subtitle {
  margin: 0;
  font-size: 12px;
  line-height: 20px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #748196;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.icon-btn:hover {
  background: rgba(116, 129, 150, 0.1);
  color: var(--accent);
  transform: translateY(-1px);
}

.create-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 13px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(225, 231, 237, 0.72);
  color: var(--accent);
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.create-btn:hover {
  background: white;
  box-shadow:
    inset 0 0 0 1px rgba(214, 225, 240, 0.95),
    0 8px 20px rgba(16, 32, 64, 0.05);
  transform: translateY(-1px);
}

.history-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
  padding: 0 6px;
}

.history-head span {
  font-size: 14px;
}

.history-row {
  gap: 8px;
}

.history-list {
  overflow: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 92%, rgba(0, 0, 0, 0));
}

.history-list::-webkit-scrollbar {
  width: 4px;
}

.history-list::-webkit-scrollbar-thumb {
  background: rgba(154, 168, 188, 0.45);
  border-radius: 999px;
}

.history-group {
  margin-bottom: 10px;
}

.history-label {
  gap: 6px;
  font-size: 12px;
  color: #8f9aad;
  padding: 8px 10px 6px;
  letter-spacing: 0.01em;
}

.history-item {
  width: 100%;
  padding: 10px 10px;
  border-radius: 8px;
  text-align: left;
  font-size: 12px;
  line-height: 18px;
  color: #667389;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  position: relative;
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.64);
  color: var(--accent);
  transform: translateX(1px);
}

.history-item.is-active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94));
  color: var(--accent);
  box-shadow:
    inset 0 0 0 1px rgba(220, 229, 240, 0.95),
    0 6px 16px rgba(18, 40, 74, 0.04);
  font-weight: 500;
}

.history-item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
}

.sidebar-footer {
  gap: 8px;
  padding: 14px 6px 2px;
  border-top: 1px solid var(--line-soft);
  color: #748196;
  font-size: 12px;
  transition: color 0.2s ease;
}

.sidebar-footer:hover {
  color: #d35b67;
}

.workspace {
  flex: 1;
  min-width: 0;
  border-radius: 20px;
  padding: 22px 22px 18px;
  background: var(--bg-page);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 16px 48px rgba(16, 32, 64, 0.05);
  display: flex;
  position: relative;
}

.collapsed-tools {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
}

.collapsed-toggle-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 8px 18px rgba(16, 32, 64, 0.05);
}

.collapsed-new-chat {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid #006bff;
  background: rgba(255, 255, 255, 0.9);
  color: #006bff;
  font-size: 14px;
  line-height: 22px;
  box-shadow: 0 6px 18px rgba(0, 107, 255, 0.08);
  font-weight: 500;
}

.collapsed-new-chat:hover {
  background: #f6faff;
}

.collapsed-new-chat__icon {
  position: relative;
  width: 16px;
  height: 16px;
  display: block;
}

.collapsed-new-chat__icon img {
  position: absolute;
  inset: 0;
  width: 16px;
  height: 16px;
  display: block;
}

.hero-panel {
  width: 100%;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.92)),
    linear-gradient(135deg, rgba(151, 201, 255, 0.12), rgba(236, 204, 255, 0.1));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 72px 42px 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.hero-panel.is-chat {
  padding-top: 14px;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 14%, rgba(126, 186, 255, 0.18), transparent 20%),
    radial-gradient(circle at 82% 4%, rgba(238, 205, 255, 0.18), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 28%);
  pointer-events: none;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 24px 24px auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 68%);
  pointer-events: none;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-content::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -18px;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128, 188, 255, 0.1) 0%, rgba(128, 188, 255, 0) 72%);
  pointer-events: none;
  z-index: -1;
}

.hero-content::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  width: 420px;
  height: 1px;
  background: linear-gradient(90deg, rgba(79, 149, 255, 0), rgba(79, 149, 255, 0.18), rgba(79, 149, 255, 0));
  pointer-events: none;
}

.hero-title {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-desc {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 26px;
  color: var(--text-secondary);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.suggestion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.suggestion-chip {
  gap: 8px;
  min-height: 50px;
  width: min(100%, 492px);
  padding: 13px 16px;
  border-radius: 10px;
  background: rgba(247, 250, 253, 0.94);
  color: var(--accent);
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(232, 238, 246, 0.9);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.suggestion-chip:nth-child(2) {
  background: rgba(241, 245, 250, 0.98);
}

.suggestion-chip .icon {
  color: var(--brand-dark);
}

.suggestion-chip:hover {
  transform: translateY(-1px);
  background: white;
  box-shadow: var(--shadow-soft);
}

.suggestion-text {
  font-size: 16px;
  line-height: 24px;
}

.composer-wrap {
  width: min(100%, 800px);
  margin: 36px auto 0;
  position: relative;
  z-index: 1;
}

.hero-panel.is-chat .composer-wrap {
  margin-top: 16px;
}

.composer {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow:
    0 18px 44px rgba(18, 38, 72, 0.08),
    0 4px 12px rgba(18, 38, 72, 0.03);
  overflow: hidden;
  backdrop-filter: blur(12px);
  position: relative;
}

.composer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(79, 149, 255, 0), rgba(79, 149, 255, 0.16), rgba(79, 149, 255, 0));
  pointer-events: none;
}

.composer-input {
  width: 100%;
  min-height: 68px;
  max-height: 180px;
  padding: 18px 18px 4px;
  border: 0;
  resize: none;
  background: transparent;
  outline: none;
  color: var(--accent);
  font-size: 16px;
  line-height: 28px;
  letter-spacing: 0.01em;
}

.composer-input::placeholder {
  color: var(--text-tertiary);
  opacity: 0.92;
}

.composer-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 14px;
  align-items: flex-end;
  border-top: 1px solid rgba(237, 241, 245, 0.55);
}

.toggle-chip {
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(245, 248, 252, 0.94);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(232, 238, 246, 0.9);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.toggle-chip:hover {
  background: rgba(239, 245, 252, 1);
  transform: translateY(-1px);
}

.toggle-chip strong {
  font-size: 14px;
  font-weight: 400;
}

.composer-actions {
  gap: 16px;
}

.toolbar-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 2px;
}

.toolbar {
  gap: 4px;
}

.tool-btn {
  display: grid;
  place-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  color: #2d3442;
  opacity: 0.9;
  position: relative;
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.tool-btn:hover {
  background: var(--bg-soft-strong);
  opacity: 1;
  transform: translateY(-1px);
}

.tool-btn[data-tooltip]:hover::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 8px;
  background: #1d2531;
  color: #fff;
  white-space: nowrap;
  font-size: 14px;
  line-height: 22px;
  box-shadow: var(--shadow-soft);
  z-index: 2;
}

.tool-btn[data-tooltip]:hover::after {
  content: "";
  position: absolute;
  bottom: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1d2531;
  z-index: 2;
}

.tool-separator {
  width: 1px;
  height: 16px;
  background: var(--line);
}

.send-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #edf1f5;
  color: rgba(195, 205, 220, 0.82);
  display: grid;
  place-items: center;
  cursor: default;
  opacity: 0.96;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  border: 1px solid rgba(214, 223, 234, 0.7);
}

.send-btn.is-active {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  cursor: pointer;
  opacity: 1;
  box-shadow: 0 8px 18px rgba(79, 149, 255, 0.28);
  border-color: rgba(54, 108, 230, 0.7);
}

.send-btn.is-active:hover {
  background: linear-gradient(180deg, #5aa0ff 0%, #346ce6 100%);
  transform: translateY(-1px);
}

.send-btn.is-loading {
  background: #bcd6ff;
  color: #fff;
  cursor: progress;
  opacity: 1;
}

.send-btn.is-loading .icon-send-asset {
  animation: sendPulse 1s ease-in-out infinite;
}

.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  color: currentColor;
}

.icon svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke: currentColor;
}

.icon img {
  display: block;
  max-width: none;
}

.icon-fill svg {
  stroke: none;
  fill: currentColor;
}

.icon-asset,
.icon-phone-asset,
.icon-attachment-asset,
.icon-mic-asset,
.icon-send-asset {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
}

.icon-asset img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.icon-attachment-asset img,
.icon-phone-asset img {
  position: absolute;
}

.icon-attachment-asset img {
  inset: 1.38px 2.63px 1.38px 2.63px;
  width: 14.74px;
  height: 17.24px;
}

.icon-send-asset img {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 13.997px;
  height: 14px;
}

.icon-phone-base {
  inset: 0.41px 0.2px 0.41px 0.2px;
  width: 19.59px;
  height: 19.18px;
}

.icon-phone-stroke {
  inset: 2.51px 2.52px 2.89px 2.88px;
  width: 14.6px;
  height: 13.0px;
}

.icon-mic-asset img {
  position: absolute;
  inset: 0;
  width: 20px;
  height: 20px;
}

.tool-btn .icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
}

.send-btn .icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  transform: none;
}

.chat-stage {
  flex: 1;
  min-height: 0;
  width: min(100%, 820px);
  margin: 0 auto;
  display: flex;
  position: relative;
  z-index: 1;
}

.message-list {
  width: 100%;
  max-height: 100%;
  overflow: auto;
  padding: 8px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scroll-behavior: smooth;
}

.message-list::-webkit-scrollbar {
  width: 6px;
}

.message-list::-webkit-scrollbar-thumb {
  background: rgba(154, 168, 188, 0.38);
  border-radius: 999px;
}

.message {
  width: 100%;
}

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

.message-user-row {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding-bottom: 20px;
}

.message-user-bubble {
  width: fit-content;
  max-width: 560px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, #eef3f7 0%, #eaf0f5 100%);
  color: #1d2531;
  font-size: 16px;
  line-height: 28px;
  box-shadow: inset 0 0 0 1px rgba(228, 235, 242, 0.9);
  letter-spacing: 0.01em;
}

.message-user-avatar {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(144.34deg, rgba(224, 194, 255, 0.6) 4.09%, rgba(151, 224, 255, 0.6) 92.28%);
  overflow: hidden;
}

.message-user-avatar__icon {
  position: relative;
  width: 16.8px;
  height: 16.8px;
  display: block;
}

.message-user-avatar__icon img {
  position: absolute;
  inset: 1.58px 2.1px;
  width: 12.6px;
  height: 13.65px;
  display: block;
  max-width: none;
}

.message--assistant {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 4px;
}

.message-assistant-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 20px;
  padding-left: 2px;
  margin-bottom: 2px;
}

.message-assistant-name {
  color: var(--text-secondary);
}

.message-assistant-body {
  color: var(--text-primary);
  font-size: 14px;
  line-height: 22px;
  white-space: normal;
  max-width: 760px;
  padding-left: 26px;
  position: relative;
  letter-spacing: 0.01em;
}

.message-assistant-body::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, rgba(79, 149, 255, 0.18), rgba(79, 149, 255, 0));
}

.message-assistant-body p {
  margin: 0 0 10px;
}

.message-assistant-body p:last-child {
  margin-bottom: 0;
}

.message-assistant-body strong {
  font-weight: 600;
}

.message-assistant-body .rich-h1,
.message-assistant-body .rich-h2,
.message-assistant-body .rich-h3 {
  margin: 0 0 12px;
  color: #1d2531;
}

.message-assistant-body .rich-h1 {
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
}

.message-assistant-body .rich-h2 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  padding-top: 4px;
}

.message-assistant-body .rich-h3 {
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
}

.message-assistant-body .rich-ol,
.message-assistant-body .rich-ul {
  margin: 0 0 14px 0;
  padding-left: 20px;
}

.message-assistant-body .rich-ol li,
.message-assistant-body .rich-ul li {
  margin-bottom: 8px;
  line-height: 22px;
}

.message-loading-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 24px;
  padding-left: 26px;
  margin-top: 2px;
}

.message-loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a9b4c5;
  animation: pulse 1.2s infinite ease-in-out;
}

.message-loading-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.message-loading-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes pulse {
  0%,
  80%,
  100% {
    opacity: 0.28;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@keyframes sendPulse {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(0.96);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

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

@media (max-width: 1100px) {
  .app-shell {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-basis: auto;
    max-height: 340px;
  }

  .sidebar.is-collapsed {
    width: 0;
    flex-basis: 0;
    max-height: 0;
    margin-right: 0;
  }

  .workspace {
    padding: 16px;
  }

  .hero-panel {
    padding: 48px 20px 18px;
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 8px;
    gap: 8px;
  }

  .sidebar {
    padding: 12px;
    border-radius: 14px;
  }

  .workspace {
    padding: 10px;
    border-radius: 14px;
  }

  .collapsed-tools {
    left: 10px;
    top: 10px;
    gap: 10px;
  }

  .collapsed-new-chat {
    padding: 0 12px;
  }

  .hero-panel {
    padding: 28px 12px 12px;
    border-radius: 16px;
  }

  .hero-title {
    font-size: 18px;
    line-height: 28px;
  }

  .hero-desc,
  .suggestion-text,
  .composer-input {
    font-size: 14px;
    line-height: 22px;
  }

  .composer-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .composer-actions {
    justify-content: space-between;
  }

  .toolbar {
    flex-wrap: wrap;
  }

  .suggestion-chip {
    width: 100%;
  }

  .chat-stage,
  .composer-wrap {
    width: 100%;
  }

  .message-user-bubble {
    max-width: calc(100% - 32px);
  }

  .message-assistant-body,
  .message-loading-dots {
    padding-left: 0;
  }

  .message-assistant-body::before {
    display: none;
  }
}
