:root {
  --bg: #f5f3ee;
  --window: #fcfbf7;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-soft: #f4f1eb;
  --line: rgba(17, 17, 17, 0.08);
  --line-strong: rgba(17, 17, 17, 0.14);
  --text: #171717;
  --muted: #737373;
  --brand: #cadbbb;
  --brand-deep: #b9d1a5;
  --brand-soft: rgba(202, 219, 187, 0.24);
  --brand-soft-strong: rgba(202, 219, 187, 0.34);
  --success: #77a25d;
  --shadow: 0 20px 50px rgba(20, 20, 20, 0.06);
  --soft-shadow: 0 10px 24px rgba(20, 20, 20, 0.04);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "PingFang SC", "Microsoft YaHei", "Inter", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8f6f0 0%, #f2f0ea 100%);
}

body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

button,
textarea {
  font: inherit;
}

.desktop-stage {
  width: 100%;
  display: flex;
  justify-content: center;
}

.app-window {
  width: min(1728px, calc(100vw - 32px));
  height: auto;
  min-height: 720px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: visible;
  border-radius: 24px;
  background: #f7f6f4;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.chat-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  position: relative;
  min-height: 100%;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px 8px;
}

.topbar-left {
  min-width: 0;
}

.avatar {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
}

.avatar + .avatar {
  margin-left: -8px;
}

.avatar.dark {
  background: #26201f;
  color: #fff;
}

.avatar.soft {
  background: #ffdcd8;
  color: var(--brand);
  box-shadow: 0 0 0 3px #fffaf9;
}

.conversation-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
}

.conversation-meta {
  margin-top: 8px;
  font-size: 12px;
  color: #767676;
}

.topbar-actions {
  display: flex;
  gap: 10px;
}

.workspace-version-wrap {
  display: flex;
  align-items: center;
}

.topbar-icon-btn {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  color: #555551;
  cursor: pointer;
}

.topbar-credit-pill {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #4a4a46;
  font-size: 12px;
  cursor: pointer;
}

.avatar-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #f6dd85 0%, #e45f3d 100%);
  color: #111111;
  font-weight: 800;
  cursor: pointer;
}

.chat-content {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
  padding: 0 32px 28px;
}

.chat-scroll {
  position: relative;
  height: 100%;
  min-height: 420px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding: 4px 2px 0 0;
}

.chat-scroll::-webkit-scrollbar {
  width: 10px;
}

.chat-scroll::-webkit-scrollbar-track {
  background: rgba(235, 209, 204, 0.28);
  border-radius: 999px;
}

.chat-scroll::-webkit-scrollbar-thumb {
  background: rgba(217, 45, 32, 0.38);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.chat-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(166, 27, 19, 0.5);
  background-clip: padding-box;
}

.route-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  margin: 0 18px 18px;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(217, 45, 32, 0.08), rgba(166, 27, 19, 0.14));
  color: #5d3e38;
  font-size: 13px;
}

.home-start {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 48px 0 4px;
}

.home-start.hidden {
  display: none;
}

.home-hero {
  width: min(880px, 100%);
  display: grid;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.home-hero-copy {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.home-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #7d7d78;
}

.home-headline {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: #22221f;
}

.home-subtitle {
  margin: 0;
  max-width: 560px;
  font-size: 12px;
  line-height: 1.6;
  color: #81817a;
}

.home-model-chip {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #424244;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.home-model-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(119, 162, 93, 0.38);
  box-shadow: 0 12px 24px rgba(20, 20, 20, 0.05);
}

.home-model-chip.active {
  border-color: rgba(37, 99, 235, 0.22);
  background: #eff6ff;
}

.home-model-chip-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  font-size: 11px;
}

.home-model-chip-copy {
  display: grid;
  text-align: left;
}

.home-model-chip-title {
  font-size: 12px;
  font-weight: 600;
  color: #323230;
}

.home-model-chip-meta {
  margin-top: 2px;
  font-size: 10px;
  color: #8a8b86;
}

.recent-sections {
  width: min(880px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "agents"
    "prompts"
    "skills";
  gap: 12px;
  align-items: start;
}

.home-recommendations {
  width: min(880px, 100%);
  margin: 10px auto 0;
}

.home-recommendations.hidden {
  display: none;
}

.recent-section {
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.recent-section-skills {
  grid-area: skills;
  align-self: start;
  min-height: auto;
}

.recent-section-agents {
  grid-area: agents;
  align-self: start;
}

.recent-section-prompts {
  grid-area: prompts;
  align-self: start;
  min-height: auto;
}

.recent-title {
  font-size: 13px;
  font-weight: 600;
  color: #4a4a47;
  letter-spacing: 0;
}

.recent-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.recent-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.recent-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 12px;
  border: 1px solid rgba(17, 17, 17, 0.05);
  border-radius: 14px;
  background: rgba(252, 251, 247, 0.92);
  color: #2d2d2d;
  cursor: pointer;
  text-align: left;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.recent-item:hover {
  background: rgba(255, 255, 255, 0.86);
  transform: translateY(-1px);
  border-color: rgba(119, 162, 93, 0.24);
}

.recent-item-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(180deg, #efe8df 0%, #e3ddd4 100%);
  color: #4d4d4d;
  font-size: 18px;
}

.recent-item-content {
  min-width: 0;
}

.recent-item-title {
  font-size: 14px;
  font-weight: 700;
  color: #1d1d1d;
}

.recent-item-desc {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: #6f6f6f;
}

.recent-prompt-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}

.recent-item.prompt-item {
  grid-template-columns: 1fr;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e5e7eb;
  max-width: 100%;
}

.recent-item.prompt-item .recent-item-icon {
  display: none;
}

.recent-item.prompt-item:hover {
  background: #ffffff;
}

.recent-item.prompt-item .recent-item-title {
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: #5b5c58;
  text-align: left;
}

.recent-item.prompt-item .recent-item-icon {
  display: none;
}

.recent-section-prompts.expanded .recent-prompt-list {
  align-content: start;
}

.recent-section-prompts.expanded .recent-item.prompt-item {
  max-width: 100%;
  width: 100%;
}

.recent-agent-list {
  grid-template-columns: repeat(5, minmax(0, max-content));
  gap: 10px;
  align-items: center;
}

.recent-agent-list .recent-item {
  min-height: 38px;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e5e7eb;
}

.recent-agent-list .recent-item-icon {
  width: 18px;
  height: 18px;
  font-size: 10px;
  border-radius: 999px;
  background: transparent;
}

.recent-agent-list .recent-item-title {
  font-size: 12px;
  font-weight: 500;
}

.recent-agent-list .recent-item-desc {
  display: none;
}

.recent-skill-list {
  gap: 8px;
  grid-template-columns: 1fr;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #e6e9eb;
}

.recent-skill-list .recent-item {
  grid-template-columns: 22px minmax(0, 1fr);
  min-height: 34px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.recent-skill-list .recent-item-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-size: 10px;
  background: rgba(17, 17, 17, 0.05);
}

.recent-skill-list .recent-item-title {
  font-size: 11px;
  font-weight: 500;
}

.recent-skill-list .recent-item-desc {
  font-size: 10px;
  margin-top: 3px;
  color: #878883;
}

@media (max-width: 1100px) {
  .recent-sections {
    grid-template-columns: 1fr;
    grid-template-areas:
      "agents"
      "skills"
      "prompts";
  }

  .recent-section {
    min-height: auto;
  }

  .recent-agent-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recent-prompt-list {
    grid-template-columns: 1fr;
  }
}

.message-row {
  display: flex;
  margin: 0 0 18px;
}

.message-row.user-row {
  justify-content: center;
}

.message-row.assistant-row {
  flex-direction: column;
}

.message {
  max-width: 560px;
  border-radius: 22px;
  padding: 18px 22px;
  line-height: 1.8;
  font-size: 16px;
}

.user-message {
  background: #f5efed;
  color: #302322;
}

.assistant-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 14px 6px;
}

.assistant-badge {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
}

.assistant-name {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #513c39;
  font-weight: 600;
}

.assistant-card {
  max-width: 720px;
  margin-left: 4px;
  padding: 22px 20px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffefe 0%, #fffaf9 100%);
  border: 1px solid rgba(238, 225, 223, 0.9);
  box-shadow: 0 24px 46px rgba(164, 70, 36, 0.08);
}

.compare-card {
  display: grid;
  gap: 12px;
  width: min(100%, 1180px);
  max-width: min(100%, 1180px);
}

.compare-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.compare-title {
  font-size: 13px;
  font-weight: 700;
  color: #6f5b57;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(var(--compare-count, 2), minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.compare-grid.is-scrollable {
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 340px);
  grid-template-columns: none;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 45, 32, 0.35) transparent;
  width: max-content;
  min-width: 100%;
}

.compare-grid.is-scrollable::-webkit-scrollbar {
  height: 8px;
}

.compare-grid.is-scrollable::-webkit-scrollbar-track {
  background: transparent;
}

.compare-grid.is-scrollable::-webkit-scrollbar-thumb {
  background: rgba(217, 45, 32, 0.35);
  border-radius: 999px;
}

.compare-column {
  border: 1px solid rgba(235, 209, 204, 0.74);
  border-radius: 22px;
  background: linear-gradient(180deg, #fffdfc 0%, #fff7f5 100%);
  padding: 18px;
  display: grid;
  gap: 14px;
  min-height: 100%;
}

.compare-column.selected {
  border-color: rgba(217, 45, 32, 0.35);
  box-shadow: inset 0 0 0 1px rgba(217, 45, 32, 0.08);
}

.compare-model {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.compare-model-name {
  font-size: 13px;
  font-weight: 800;
  color: #2d211f;
}

.compare-model-meta {
  margin-top: 2px;
  font-size: 11px;
  color: #8a7875;
}

.compare-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f4e7e3;
  color: #7a625d;
  font-size: 11px;
  font-weight: 700;
}

.compare-column.selected .compare-badge {
  background: #ffe8e3;
  color: var(--brand);
}

.compare-body {
  display: grid;
  gap: 12px;
}

.compare-body-text {
  font-size: 15px;
  color: #473633;
  line-height: 1.78;
}

.compare-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compare-stat {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(244, 231, 227, 0.72);
  color: #6f5b57;
  font-size: 11px;
  font-weight: 700;
}

.compare-note {
  font-size: 12px;
  line-height: 1.6;
  color: #8a7875;
}

.compare-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.compare-pick {
  border: 1px solid rgba(235, 209, 204, 0.95);
  border-radius: 999px;
  min-height: 34px;
  padding: 0 14px;
  background: #fff;
  color: #5a403c;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.compare-column.selected .compare-pick {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(180deg, #e53426 0%, #c9190f 100%);
}

.assistant-text {
  font-size: 16px;
  line-height: 1.85;
}

.message-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.message-meta-row.compact {
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.assistant-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assistant-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f7ecea;
  color: #694d49;
  font-size: 12px;
}

.assistant-status {
  font-size: 12px;
  color: #9a7e79;
  white-space: nowrap;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.inline-output-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.inline-output-label {
  font-size: 12px;
  font-weight: 700;
  color: #775d58;
}

.inline-output-select {
  min-width: 168px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(235, 209, 204, 0.95);
  border-radius: 999px;
  background: #fff;
  color: #644a46;
  outline: none;
  cursor: pointer;
}

.inline-output-select:focus {
  border-color: #f0d3ce;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.08);
}

.asset-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fdeeed 0%, #f9ddd9 100%);
  color: #402422;
}

.asset-icon {
  font-size: 20px;
}

.asset-title {
  font-size: 15px;
  font-weight: 600;
}

.asset-subtitle {
  margin-top: 2px;
  font-size: 12px;
  color: #8e6762;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.quick-action {
  border: 1px solid rgba(235, 209, 204, 0.95);
  border-radius: 999px;
  min-height: 34px;
  padding: 0 14px;
  background: #fff;
  color: #5a403c;
  cursor: pointer;
}

.suggestion-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff4f2 0%, #fde8e4 100%);
  border: 1px solid #efd4d0;
}

.suggestion-title {
  font-size: 14px;
  font-weight: 700;
  color: #5b3531;
}

.suggestion-desc {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.75;
  color: #72514c;
}

.suggestion-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.primary-btn,
.secondary-btn {
  border-radius: 999px;
  min-height: 34px;
  padding: 0 16px;
  cursor: pointer;
}

.primary-btn {
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, #e53426 0%, #c9190f 100%);
}

.secondary-btn {
  border: 1px solid rgba(235, 209, 204, 0.95);
  background: #fff;
  color: #5a403c;
}

.typing-card {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 62px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  animation: typing 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.3s;
}

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

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

.composer-wrap {
  width: 100%;
  margin: 0;
  padding: 10px 0 0;
  border-top: 0;
  background: transparent;
}

.composer-model-bar {
  display: grid;
  gap: 10px;
  width: min(880px, 100%);
  margin: 0 auto 8px;
}

.composer-model-bar-title {
  font-size: 12px;
  font-weight: 600;
  color: #72726d;
}

.composer-model-bar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.composer-intro {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.composer-intro-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f1f1d;
}

.composer-intro-meta {
  font-size: 11px;
  color: #8b8a84;
  line-height: 1.5;
}

.format-picker {
  position: relative;
}

.format-trigger {
  min-width: 148px;
  justify-content: space-between;
}

.format-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 520px;
  max-width: min(520px, calc(100vw - 120px));
  padding: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(32, 26, 20, 0.1);
  box-shadow: 0 24px 46px rgba(32, 26, 20, 0.12);
  z-index: 5;
  overflow: hidden;
}

.format-menu [data-model-id]:focus-visible {
  outline: 2px solid #91ab78;
  outline-offset: 2px;
}

.format-menu.open {
  display: block;
}

.format-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding: 0 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #232323;
  cursor: pointer;
  text-align: left;
  border-bottom: 1px solid rgba(32, 26, 20, 0.08);
}

.format-option:hover,
.format-option.active {
  background: #f3f1ec;
  color: #171717;
}

.format-option:last-child {
  border-bottom: 0;
}

.format-option-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.format-option-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex: 1;
}

.format-option-checkbox {
  width: 34px;
  height: 34px;
  border-radius: 0;
  border: 2px solid rgba(32, 26, 20, 0.48);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #222222;
  font-size: 21px;
  font-weight: 700;
  background: #fff;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(32, 26, 20, 0.02);
}

.format-option-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #eef6ff;
  color: #1595ea;
  font-size: 34px;
  flex: 0 0 auto;
}

.format-option-icon-lite {
  background: #eef6ff;
  color: #1aa0f0;
}

.format-option-icon-pro {
  background: #eef6ff;
  color: #1f97e7;
}

.format-option-icon-advanced {
  background: #fff3ea;
  color: #e6541d;
}

.format-option-title {
  font-size: 20px;
  font-weight: 500;
  color: #2a2a2a;
  letter-spacing: -0.02em;
}

.format-option-subtitle {
  font-size: 14px;
  color: #868686;
  line-height: 1.45;
  white-space: normal;
}

.attached-items {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 45px;
  align-content: flex-start;
  padding: 2px 0;
}

.attachment-support-copy {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: min(560px, calc(100vw - 120px));
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(28, 28, 28, 0.9);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  line-height: 1.45;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.task-context-card {
  display: none;
  gap: 12px;
  margin-bottom: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(17, 17, 17, 0.06);
}

.task-context-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.task-context-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #636363;
}

.task-context-title {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #202020;
}

.task-context-meta {
  margin-top: 4px;
  font-size: 12px;
  color: #5f5f5f;
  line-height: 1.5;
}

.context-toggle-btn {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: #555555;
  cursor: pointer;
}

.task-context-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.task-context-details.hidden {
  display: none;
}

.context-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 10px 0 12px;
  border-radius: 999px;
  background: rgba(244, 241, 235, 0.92);
  border: 1px solid rgba(17, 17, 17, 0.06);
  color: #444444;
  font-size: 12px;
}

.context-chip button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.08);
  color: #4e4e4e;
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
}

.context-chip.source-chip {
  background: rgba(202, 219, 187, 0.24);
  color: #3e4f33;
}

.task-context-expectation {
  font-size: 12px;
  color: #6f6f6f;
  line-height: 1.45;
}

.active-tool-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 17, 17, 0.06);
}

.active-tool-bar.hidden {
  display: none;
}

.workflow-bar {
  background: linear-gradient(180deg, rgba(255, 245, 242, 0.98), rgba(255, 237, 232, 0.98));
}

.active-tool-main,
.active-tool-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.active-tool-main {
  min-width: 0;
}

.active-tool-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(202, 219, 187, 0.38);
  color: #33402c;
  font-size: 16px;
  flex: 0 0 auto;
}

.active-tool-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7d7d7d;
  font-weight: 700;
}

.active-tool-title {
  font-size: 14px;
  font-weight: 800;
  color: #222222;
}

.active-tool-meta {
  margin-top: 2px;
  font-size: 12px;
  color: #767676;
}

.active-tool-btn {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--brand);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.active-tool-btn.ghost {
  background: #fff;
  color: #555555;
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.attached-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 45px;
  padding: 0 10px 0 11px;
  border-radius: 7px;
  background: #eef2ee;
  border: 0;
  color: #272727;
  font-size: 12px;
}

.attached-chip-icon {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  color: #151515;
  font-size: 12px;
  flex: 0 0 auto;
}

.attached-chip-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.attached-chip-title {
  max-width: 224px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  color: #212121;
}

.attached-chip-meta {
  display: none;
}

.attached-chip button {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8d918c;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 17px;
  line-height: 1;
}

.composer {
  display: grid;
  gap: 8px;
  min-height: 236px;
  padding: 13px 11px 11px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.12);
  box-shadow: 0 1px 0 rgba(17, 17, 17, 0.03), 0 12px 32px rgba(17, 17, 17, 0.04);
  position: relative;
}

.composer textarea {
  width: 100%;
  min-height: 84px;
  max-height: 154px;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 13px;
  line-height: 1.6;
  color: #202020;
  padding: 0;
}

.composer textarea::placeholder {
  color: #d0cec9;
}

.composer::before {
  display: none;
  content: "";
}

.composer-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 11px;
  margin-top: auto;
}

.composer-tools,
.composer-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.composer-tools {
  position: relative;
}

.composer-tools:hover .attachment-support-copy,
.composer-tools:focus-within .attachment-support-copy {
  opacity: 1;
  transform: translateY(0);
}

.composer-icon-btn,
.ghost-btn,
.send-btn {
  border: 0;
  cursor: pointer;
}

.composer-icon-btn {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  background: #f2f3ef;
  color: #171717;
  font-size: 25px;
  font-weight: 300;
}

.model-pill {
  min-height: 45px;
  padding: 0 14px;
  border-radius: 10px;
  border: 0;
  background: #f2f3ef;
  color: #222222;
  font-size: 13px;
}

.ghost-btn,
.send-btn {
  border: 0;
  cursor: pointer;
}

.ghost-btn {
  background: transparent;
  color: #202020;
}

.ghost-btn.active {
  background: rgba(202, 219, 187, 0.3);
  color: #33402c;
}

.send-btn {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  color: #ffffff;
  background: #72a36a;
  box-shadow: none;
  font-size: 24px;
}

.send-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

button:focus-visible,
textarea:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid #91ab78;
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .chat-content {
    padding: 0 18px 18px;
  }

  .task-context-head {
    flex-direction: column;
  }

  .context-toggle-btn {
    align-self: flex-start;
  }
}

.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;
}

.context-panel {
  padding: 24px 20px;
  background: linear-gradient(180deg, #f8f3f2 0%, #fdfafa 100%);
  border-left: 1px solid rgba(233, 215, 213, 0.72);
  position: relative;
  overflow: visible;
}
.mini-header,
.token-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-section {
  margin-top: 0;
}

.mini-header {
  font-size: 12px;
  color: #75625e;
}

.text-btn {
  border: 0;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
}

.config-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.config-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(240, 216, 212, 0.95);
  font-size: 12px;
  color: #75625e;
}

.config-row strong {
  color: #342321;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff1ef 0%, #f8e2df 100%);
  border: 1px solid #f0d3ce;
  font-size: 12px;
  color: #6c4f4a;
  cursor: pointer;
}

.skill-chip.off {
  background: #f3efee;
  border-color: transparent;
  color: #887471;
}

.asset-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.panel-section.hidden {
  display: none;
}

.panel-asset {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  color: #3e2c2a;
  border-bottom: 1px solid rgba(233, 215, 213, 0.62);
  font-size: 14px;
}

.panel-asset strong {
  display: block;
  font-size: 13px;
}

.panel-asset small {
  display: block;
  margin-top: 2px;
  color: #8b7470;
}

.download-icon {
  color: #aa9793;
}

.empty-state {
  padding: 8px 0;
  color: #8b7975;
  font-size: 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  min-width: 220px;
  max-width: 420px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(31, 22, 22, 0.9);
  color: #fff;
  font-size: 13px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.toast.show {
  opacity: 1;
}

@media (max-width: 1480px) {
  .app-window {
    grid-template-columns: 176px minmax(0, 1fr);
  }

  .assistant-card {
    max-width: 650px;
  }

  .compare-card {
    width: min(100%, 1080px);
    max-width: min(100%, 1080px);
  }
}

@media (max-width: 1280px) {
  body {
    padding: 0;
  }

  .app-window {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    border-radius: 0;
  }

  .compare-card {
    width: 100%;
    max-width: 100%;
  }
}

/* Hermes-inspired chat-only overrides */
html,
body {
  background: #f7f4ee;
  font-family: "Avenir Next", "PingFang SC", "Noto Sans SC", sans-serif;
}

body {
  padding: 0;
}

.desktop-stage {
  min-height: 100vh;
  padding: 0;
}

.app-window {
  width: 100vw;
  min-height: 100vh;
  grid-template-columns: 304px minmax(0, 1fr);
  border-radius: 32px;
  background: #fcfbf8;
  border: 1px solid rgba(32, 26, 20, 0.08);
  box-shadow: 0 24px 60px rgba(31, 24, 20, 0.08);
}

#sharedSidebar .hubitos-sidebar {
  width: 304px;
  padding: 78px 18px 18px;
  background: #fcfbf8;
  border-right: 1px solid rgba(32, 26, 20, 0.08);
  position: relative;
}

#sharedSidebar .hubitos-sidebar::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 28px 0 0 #febc2e, 56px 0 0 #28c840;
}

#sharedSidebar .hubitos-brand-block {
  margin-bottom: 34px;
}

#sharedSidebar .hubitos-brand-lockup {
  align-items: center;
  gap: 14px;
}

#sharedSidebar .hubitos-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  transform: rotate(0deg);
}

#sharedSidebar .hubitos-brand-mark::before {
  background: #fcfbf8;
}

#sharedSidebar .hubitos-brand-name {
  font-size: 20px;
  letter-spacing: 0.08em;
}

#sharedSidebar .hubitos-brand-subtitle {
  display: none;
}

#sharedSidebar .hubitos-main-nav {
  gap: 8px;
}

#sharedSidebar .hubitos-nav-group {
  margin-bottom: 4px;
}

#sharedSidebar .hubitos-nav-item {
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  color: #151515;
  font-size: 16px;
  font-weight: 600;
}

#sharedSidebar .hubitos-nav-item.is-active {
  background: #f0efeb;
  color: #0f0f0f;
}

#sharedSidebar .hubitos-nav-icon {
  width: 22px;
  font-size: 18px;
  opacity: 1;
}

#sharedSidebar .hubitos-sidebar-section {
  margin-top: 30px;
}

#sharedSidebar .hubitos-sidebar-title {
  margin: 0 0 16px;
  font-size: 14px;
  color: #b0aca6;
}

#sharedSidebar .history-list {
  gap: 10px;
  max-height: calc(100vh - 320px);
  overflow-y: auto;
  padding-right: 4px;
}

#sharedSidebar .history-item {
  justify-content: flex-start;
  padding: 0 14px;
  min-height: 44px;
  color: #a29d97;
  font-size: 15px;
  border-radius: 14px;
}

#sharedSidebar .history-item.active,
#sharedSidebar .history-item:hover {
  background: transparent;
  color: #111111;
}

#sharedSidebar .history-delete {
  display: none;
}

#sharedSidebar .hubitos-sidebar-footer {
  gap: 12px;
}

#sharedSidebar .hubitos-sidebar-meta {
  padding: 14px 16px;
  border: 1px solid rgba(32, 26, 20, 0.08);
  border-radius: 16px;
  background: #fbfaf7;
}

#sharedSidebar .hubitos-profile-chip {
  margin-left: 0;
  width: auto;
  height: auto;
  gap: 12px;
  display: inline-flex;
  align-items: center;
}

#sharedSidebar .hubitos-profile-chip::after {
  content: "kingtintv\Akingtintv@gmail....";
  white-space: pre;
  color: #161616;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
}

#sharedSidebar .hubitos-profile-avatar {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #0d0d0d;
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
}

.chat-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.28));
}

.topbar {
  width: min(1100px, calc(100% - 96px));
  margin: 0 auto;
  padding: 20px 0 8px;
  justify-content: space-between;
}

.topbar-left > div {
  position: static;
  padding-left: 0;
}

.topbar-left > div::before {
  display: none;
}

.conversation-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.conversation-meta {
  display: none;
}

.chat-content {
  width: min(1100px, calc(100% - 96px));
  margin: 0 auto;
  padding: 0 0 48px;
  gap: 12px;
}

.chat-scroll {
  min-height: 0;
  overflow: visible;
  padding: 0;
}

.chat-scroll::-webkit-scrollbar {
  display: none;
}

.home-start {
  justify-items: stretch;
  gap: 18px;
  padding: 72px 0 0;
}

.home-hero {
  width: min(760px, 100%);
  margin: 0 auto 4px;
  padding: 0;
  border-radius: 0;
  display: grid;
  justify-items: center;
  gap: 16px;
}

.home-hero-mark {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(17, 17, 17, 0.06);
  font-size: 18px;
  color: #111111;
  box-shadow: 0 8px 24px rgba(20, 20, 20, 0.05);
}

.home-headline {
  margin-top: 0;
  font-family: "Inter", "PingFang SC", sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.home-subtitle {
  max-width: 420px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: #5f5f5a;
}

.recent-sections {
  width: 100%;
  grid-template-columns: 1fr;
  grid-template-areas: "agents";
  gap: 0;
  align-items: start;
}

.recent-section {
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.recent-section-skills,
.recent-section-agents {
  padding-top: 0;
}

.recent-section-prompts,
.recent-section-skills {
  display: none;
}

.recent-title,
.recent-item.prompt-item .recent-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #4a4a47;
  letter-spacing: 0;
  text-align: left;
}

.recent-list.recent-prompt-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-height: auto;
  justify-items: stretch;
}

.recent-item.prompt-item {
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  grid-template-columns: 1fr;
}

.recent-item.prompt-item .recent-item-title {
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: #5b5c58;
  text-align: left;
}

.recent-item.prompt-item:hover {
  background: #ffffff;
  transform: none;
  box-shadow: none;
}

.recent-agent-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.recent-agent-list .recent-item-desc {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: #5f5f5c;
}

.recent-agent-list .recent-item {
  min-height: 250px;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 0;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 16px 38px rgba(20, 20, 20, 0.05);
}

.recent-agent-list .recent-item-icon {
  width: 100%;
  height: 138px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: linear-gradient(180deg, #e9f1ff 0%, #dbe8ff 100%);
  color: #4c7df1;
  font-size: 36px;
}

.recent-agent-list .recent-item:nth-child(2) .recent-item-icon {
  background: linear-gradient(180deg, #fff3c4 0%, #ffe9a4 100%);
  color: #d97900;
}

.recent-agent-list .recent-item:nth-child(3) .recent-item-icon {
  background: linear-gradient(180deg, #f3e8ff 0%, #eddcff 100%);
  color: #9a4dff;
}

.recent-agent-list .recent-item-content {
  padding: 18px 18px 20px;
}

.recent-agent-list .recent-item-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.composer-wrap {
  border-top: 0;
  padding-top: 0;
  background: transparent;
}

.composer-model-bar {
  width: min(760px, 100%);
  margin: 8px auto 0;
}

.composer-model-bar-title {
  display: none;
}

.composer-model-bar-chips {
  justify-content: center;
  gap: 8px;
}

.home-recommendations {
  width: min(1060px, 100%);
  margin-top: 22px;
}

.composer {
  width: min(760px, 100%);
  min-height: 140px;
  margin: 0 auto;
  padding: 16px 18px 14px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(32, 26, 20, 0.06);
  box-shadow: 0 24px 50px rgba(20, 20, 20, 0.06);
}

.attached-items {
  min-height: 56px;
  gap: 10px;
  padding: 0;
}

.attached-chip {
  min-height: 56px;
  padding: 0 14px;
  border-radius: 12px;
  background: #f2f2ee;
  color: #1d1d1d;
}

.attached-chip-title {
  max-width: 260px;
  font-size: 16px;
}

.composer textarea {
  min-height: 74px;
  max-height: 140px;
  font-size: 16px;
  line-height: 1.55;
  padding: 8px 0 0;
}

.composer textarea::placeholder {
  color: #b6b2aa;
}

.composer-footer {
  gap: 10px;
  justify-content: space-between;
}

.composer-tools,
.composer-actions {
  gap: 12px;
}

.composer-icon-btn,
.model-pill,
.send-btn {
  min-height: 42px;
  border-radius: 999px;
}

.composer-icon-btn {
  width: 40px;
  height: 40px;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  font-size: 17px;
  color: #4b4b48;
}

#cameraBtn {
  font-size: 15px;
}

.model-pill {
  padding: 0 14px;
  background: #111111;
  border: 1px solid #111111;
  color: #ffffff;
  font-size: 12px;
  min-width: 118px;
}

.format-menu {
  border-radius: 20px;
  border: 1px solid rgba(32, 26, 20, 0.08);
  box-shadow: 0 22px 50px rgba(32, 26, 20, 0.09);
}

.send-btn {
  width: 42px;
  height: 42px;
  background: #111111;
  color: #fff;
  font-size: 20px;
}

.send-btn:disabled {
  background: #d9d4ce;
  opacity: 1;
}

.attachment-support-copy {
  bottom: calc(100% + 14px);
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(24, 24, 24, 0.92);
}

.task-context-card,
.active-tool-bar,
.workflow-bar {
  display: none !important;
}

@media (max-width: 1200px) {
  .recent-sections {
    grid-template-columns: 1fr;
    grid-template-areas:
      "agents"
      "skills"
      "prompts";
  }

  .recent-list.recent-prompt-list,
  .recent-agent-list {
    grid-template-columns: 1fr;
  }
}

.message-row.user-row {
  justify-content: flex-start;
}

.message {
  max-width: 760px;
  border-radius: 22px;
  padding: 18px 20px;
}

.user-message {
  background: #f3efe9;
  color: #1c1c1c;
}

.assistant-head {
  margin-left: 0;
}

.assistant-badge {
  background: #111111;
}

.assistant-name {
  color: #6f665d;
}

.assistant-card {
  max-width: 860px;
  margin-left: 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(32, 26, 20, 0.08);
  box-shadow: 0 20px 42px rgba(32, 26, 20, 0.04);
}

@media (max-width: 1200px) {
  .app-window {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  #sharedSidebar .hubitos-sidebar {
    width: 240px;
  }

  .topbar,
  .chat-content {
    width: calc(100% - 48px);
  }

  .recent-list.recent-prompt-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .app-window {
    grid-template-columns: 1fr;
    border-radius: 0;
  }

  #sharedSidebar {
    display: none;
  }

  .topbar {
    width: calc(100% - 32px);
    padding-top: 88px;
  }

  .topbar-left > div {
    padding-left: 70px;
  }

  .chat-content {
    width: calc(100% - 32px);
  }

  .recent-sections {
    grid-template-columns: 1fr;
    grid-template-areas:
      "prompts"
      "skills"
      "agents";
    gap: 14px;
  }

  .recent-section-skills,
  .recent-section-agents {
    padding-top: 0;
  }

  .composer {
    min-height: 220px;
  }
}

/* Commerce conversation home — task-first, using existing Hubitos capabilities only. */
:root {
  --commerce-accent: #7157f6;
  --commerce-accent-dark: #5c43df;
  --commerce-ink: #18191c;
  --commerce-muted: #71747c;
}

body.is-home {
  background: #f4f5f7;
}

.is-home .app-window {
  min-height: calc(100vh - 32px);
  background: #fbfbfc;
}

.is-home .chat-shell {
  background-color: #fafbfc;
  background-image: radial-gradient(rgba(82, 86, 99, 0.075) 1px, transparent 1px);
  background-size: 30px 30px;
}

.is-home .chat-content {
  display: block;
  width: min(1120px, calc(100% - 64px));
  overflow: visible;
  padding-bottom: 40px;
}

.is-home .chat-scroll {
  height: auto;
  min-height: 0;
  overflow: visible;
}

.is-home .home-start {
  padding: clamp(26px, 5vh, 58px) 0 14px;
}

.is-home .home-hero {
  width: min(900px, 100%);
  gap: 14px;
}

.home-hero-mark {
  position: relative;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(145deg, #16171a 0%, #36323f 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(38, 32, 66, 0.18);
}

.home-hero-mark span {
  font-size: 20px;
  font-weight: 850;
}

.home-hero-mark i {
  position: absolute;
  right: -5px;
  bottom: -5px;
  min-width: 22px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #fafbfc;
  border-radius: 6px;
  background: linear-gradient(135deg, #7257f6, #8f6cff);
  color: #fff;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.home-kicker {
  color: var(--commerce-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.is-home .home-headline {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--commerce-ink);
}

.is-home .home-subtitle {
  max-width: 620px;
  font-size: 14px;
  color: var(--commerce-muted);
}

.commerce-scene-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 7px;
}

.commerce-scene-tabs button {
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(28, 29, 33, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #5e6067;
  font-size: 12px;
  cursor: pointer;
  transition: 0.16s ease;
}

.commerce-scene-tabs button:hover,
.commerce-scene-tabs button.is-active {
  border-color: rgba(113, 87, 246, 0.2);
  background: #f0edff;
  color: var(--commerce-accent-dark);
}

.is-home .composer-wrap {
  width: 100%;
}

.is-home .composer {
  width: min(900px, 100%);
  min-height: 132px;
  border: 1px solid rgba(28, 29, 33, 0.07);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(39, 35, 65, 0.1), 0 2px 8px rgba(39, 35, 65, 0.04);
}

.is-home .composer:focus-within {
  border-color: rgba(113, 87, 246, 0.28);
  box-shadow: 0 20px 50px rgba(58, 46, 120, 0.13), 0 0 0 3px rgba(113, 87, 246, 0.06);
}

.is-home .composer textarea {
  min-height: 62px;
  font-size: 14px;
}

.is-home .model-pill {
  border-color: rgba(113, 87, 246, 0.18);
  background: #f4f1ff;
  color: var(--commerce-accent-dark);
}

.is-home .send-btn {
  background: linear-gradient(145deg, #8269fa, #6b50ed);
  box-shadow: 0 8px 18px rgba(113, 87, 246, 0.24);
}

.is-home .send-btn:disabled {
  background: #ddd9ee;
  box-shadow: none;
}

.is-home .composer-model-bar,
.is-home .attachment-support-copy {
  display: none;
}

.is-home .home-recommendations {
  width: min(980px, 100%);
  margin: 26px auto 0;
}

.commerce-shortcuts {
  display: grid;
  gap: 16px;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-kicker {
  color: #91939a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.section-heading-row h3 {
  margin: 4px 0 0;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.supported-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #75787f;
  font-size: 10px;
}

.supported-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #67a259;
  box-shadow: 0 0 0 4px rgba(103, 162, 89, 0.1);
}

.commerce-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.commerce-shortcut {
  min-width: 0;
  min-height: 118px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  padding: 14px 8px;
  border: 1px solid rgba(31, 33, 38, 0.065);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: #25262a;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.commerce-shortcut:hover {
  transform: translateY(-3px);
  border-color: rgba(113, 87, 246, 0.16);
  box-shadow: 0 12px 26px rgba(45, 40, 75, 0.08);
}

.commerce-shortcut strong {
  font-size: 13px;
}

.commerce-shortcut small {
  color: #8a8c93;
  font-size: 9px;
  white-space: nowrap;
}

.shortcut-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 17px;
}

.tone-orange .shortcut-icon { background: #fff0e3; color: #cf762f; }
.tone-green .shortcut-icon { background: #e9f4e9; color: #55905f; }
.tone-purple .shortcut-icon { background: #eeebff; color: #6d58de; }
.tone-pink .shortcut-icon { background: #fbe9ee; color: #c85d79; }
.tone-blue .shortcut-icon { background: #e8f0ff; color: #557ed5; }
.tone-cyan .shortcut-icon { background: #e4f5f4; color: #4b9695; }

.is-home .recent-sections {
  margin-top: 28px;
}

.is-home .recent-title-row {
  margin-bottom: 12px;
}

.is-home .recent-agent-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.is-home .recent-agent-list .recent-item {
  min-height: 104px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  box-shadow: none;
}

.is-home .recent-agent-list .recent-item-icon,
.is-home .recent-agent-list .recent-item:nth-child(2) .recent-item-icon,
.is-home .recent-agent-list .recent-item:nth-child(3) .recent-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #f1effa;
  color: #6d58de;
  font-size: 16px;
}

.is-home .recent-agent-list .recent-item-content {
  padding: 0;
}

.is-home .recent-agent-list .recent-item-title {
  margin: 0 0 5px;
  font-size: 14px;
  line-height: 1.2;
}

.is-home .recent-agent-list .recent-item-desc {
  font-size: 10px;
  line-height: 1.55;
}

.capability-boundary {
  max-width: 820px;
  margin: 18px auto 0;
  color: #92949a;
  font-size: 10px;
  line-height: 1.65;
  text-align: center;
}

@media (max-width: 1180px) {
  .commerce-shortcut-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .is-home .topbar {
    padding-top: 24px;
  }

  .is-home .topbar-left > div {
    padding-left: 0;
  }

  .is-home .chat-content {
    width: calc(100% - 28px);
  }

  .is-home .home-start {
    padding-top: 24px;
  }

  .is-home .home-headline {
    font-size: 30px;
  }

  .is-home .composer {
    min-height: 142px;
  }

  .is-home .recent-agent-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .commerce-shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading-row {
    align-items: start;
  }

  .commerce-scene-tabs {
    flex-wrap: nowrap;
    justify-content: start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

/* Unified AI creation workspace */
body[data-mode="work"] { --mode-accent: #566f99; --mode-soft: #eef2f8; --mode-ink: #31435f; }
body[data-mode="ecommerce"] { --mode-accent: #b8673d; --mode-soft: #f8eee7; --mode-ink: #714328; }
body[data-mode="video"] { --mode-accent: #7658a6; --mode-soft: #f1edf8; --mode-ink: #4e3875; }
body[data-mode="social"] { --mode-accent: #3d806f; --mode-soft: #eaf5f1; --mode-ink: #275d50; }
body[data-mode="commerceAgent"] { --mode-accent: #7654ed; --mode-soft: #f0ebff; --mode-ink: #4d36a8; }

.chat-shell { grid-template-rows: auto auto minmax(0, 1fr); }
.mode-switcher {
  width: min(880px, calc(100% - 64px));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 4px auto 10px;
  padding: 5px;
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 16px;
  background: rgba(235, 233, 228, 0.74);
}
.mode-switcher button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #6f706c;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.mode-switcher button:hover { color: #31312f; transform: translateY(-1px); }
.mode-switcher button span { font-size: 15px; }
.mode-switcher button small { font-size: 9px; font-weight: 600; opacity: 0.68; }
.mode-switcher button.is-active {
  color: var(--mode-ink);
  background: #fff;
  box-shadow: 0 5px 16px rgba(22, 22, 20, 0.08), inset 0 -2px 0 var(--mode-accent);
}
.home-hero { animation: modeEnter 240ms ease both; }
.home-hero-mark { display: none; }
.home-headline { font-size: clamp(30px, 4vw, 46px); }
.mode-capabilities { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.mode-capabilities span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--mode-ink);
  background: var(--mode-soft);
  font-size: 11px;
  font-weight: 650;
}
@keyframes modeEnter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.home-recommendations, .composer-model-bar, .task-context-card { display: none !important; }
.composer-wrap { display: grid; gap: 9px; padding-top: 8px; }
.composer {
  width: min(880px, 100%);
  margin-inline: auto;
  border-color: color-mix(in srgb, var(--mode-accent) 22%, transparent);
  box-shadow: 0 10px 30px rgba(22, 22, 20, 0.07);
}
.composer:focus-within {
  border-color: color-mix(in srgb, var(--mode-accent) 54%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mode-accent) 10%, transparent), 0 14px 32px rgba(22, 22, 20, 0.08);
}
.send-btn { background: var(--mode-accent); }

.template-dock {
  width: min(880px, 100%);
  margin-inline: auto;
  padding: 10px 12px 12px;
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  transition: padding 180ms ease, background 180ms ease;
}
.template-dock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.template-dock-head h3 { margin: 2px 0 0; font-size: 13px; }
.template-dock-actions { display: flex; gap: 5px; }
.template-dock-actions button {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
  background: #fff;
  color: #595956;
  cursor: pointer;
}
.template-dock-actions .template-collapse { min-width: 48px; font-size: 11px; }
.template-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 8px;
  margin-top: 9px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}
.template-strip::-webkit-scrollbar { display: none; }
.template-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px 10px;
  align-content: start;
  padding: 11px;
  border: 1px solid rgba(17, 17, 17, 0.065);
  border-radius: 13px;
  background: #fff;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.template-card:hover, .template-card:focus-visible {
  outline: none;
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--mode-accent) 32%, transparent);
  box-shadow: 0 8px 20px rgba(22, 22, 20, 0.06);
}
.template-card-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--mode-ink);
  background: var(--mode-soft);
  font-size: 15px;
}
.template-card-copy h4 { margin: 1px 0 4px; font-size: 12px; }
.template-card-copy p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #7a7b77;
  font-size: 10px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.template-card-actions { grid-column: 2; display: flex; gap: 5px; }
.template-card-actions button {
  height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-radius: 8px;
  background: #fff;
  color: #64645f;
  font-size: 10px;
  cursor: pointer;
}
.template-card-actions button.use { border-color: transparent; color: #fff; background: var(--mode-accent); }
.template-dock.is-collapsed { padding-block: 8px; }
.template-dock.is-collapsed .template-strip { display: none; }
.template-dock.is-collapsed .template-dock-actions button:not(.template-collapse) { display: none; }

.template-modal { display: none; position: fixed; inset: 0; z-index: 1000; }
.template-modal.is-open { display: grid; place-items: center; }
.template-modal-backdrop { position: absolute; inset: 0; background: rgba(24, 24, 22, 0.36); backdrop-filter: blur(4px); }
.template-modal-panel {
  position: relative;
  width: min(660px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px;
  border-radius: 22px;
  background: #fcfbf8;
  box-shadow: 0 28px 80px rgba(22, 22, 20, 0.2);
  animation: modalEnter 180ms ease both;
}
@keyframes modalEnter { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.template-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(17, 17, 17, .08);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.template-modal-kicker { color: var(--mode-accent); font-size: 11px; font-weight: 750; letter-spacing: .08em; }
.template-modal-panel h2 { margin: 7px 0 8px; font-size: 25px; }
.template-modal-purpose { margin: 0 42px 20px 0; color: #6d6d68; line-height: 1.65; }
.template-preview-block { margin-top: 14px; }
.template-preview-block > span { display: block; margin-bottom: 7px; color: #777772; font-size: 11px; font-weight: 700; }
.template-preview-block pre, .template-preview-block.example div {
  margin: 0;
  padding: 15px;
  border: 1px solid rgba(17, 17, 17, .07);
  border-radius: 13px;
  background: #f4f2ed;
  white-space: pre-wrap;
  color: #373735;
  font: 12px/1.75 "PingFang SC", "Microsoft YaHei", sans-serif;
}
.template-preview-block.example div { background: var(--mode-soft); color: var(--mode-ink); }
.template-placeholder-note { margin: 14px 0; color: #888882; font-size: 11px; }
.template-use-primary {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--mode-accent);
  font-weight: 700;
  cursor: pointer;
}
.modal-open { overflow: hidden; }

@media (max-width: 820px) {
  .app-window { grid-template-columns: 1fr; }
  #sharedSidebar { display: none; }
  .mode-switcher { width: calc(100% - 24px); overflow-x: auto; grid-template-columns: repeat(5, minmax(96px, 1fr)); }
  .chat-content { padding-inline: 14px; }
  .topbar { padding-inline: 16px; }
  .template-strip { grid-auto-columns: minmax(210px, 78vw); }
}

/* Staging-aligned merge: preserve the current Hubitos Assistant shell. */
body,
body.is-home {
  padding: 0;
  overflow: hidden;
  background: #f7f8f5;
}

body[data-mode="work"],
body[data-mode="ecommerce"],
body[data-mode="video"],
body[data-mode="social"] {
  --mode-accent: #8aac52;
  --mode-soft: #f0f6e8;
  --mode-ink: #536b31;
}

.desktop-stage { height: 100vh; }
.app-window,
.is-home .app-window {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  grid-template-columns: 200px minmax(0, 1fr);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fafbf8;
  box-shadow: none;
}
#sharedSidebar { display: block; min-width: 0; }
.hubitos-sidebar [hidden] { display: none !important; }

.hubitos-sidebar {
  height: 100vh;
  padding: 28px 12px 14px;
  overflow: hidden;
  background: #fff;
  backdrop-filter: none;
}
.hubitos-brand-block { margin: 14px 8px 30px; }
.hubitos-brand-subtitle { display: none; }
.hubitos-brand-name { font-size: 19px; letter-spacing: .02em; }
.hubitos-main-nav { gap: 4px; }
.hubitos-nav-item { min-height: 36px; padding-inline: 11px; color: #242521; font-size: 12px; font-weight: 550; }
.hubitos-nav-item.is-active { background: #f0f0ee; }
.hubitos-nav-icon { color: #111; }
.hubitos-nav-group:nth-child(5) { margin-top: 14px; }
.hubitos-history-block { min-height: 0; margin: 4px 0 2px 26px; }
.hubitos-history-title { display: none; }
.hubitos-history-list {
  max-height: 210px;
  display: grid;
  gap: 2px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.hubitos-history-list .history-item { min-height: 30px; padding: 4px 7px; border-radius: 7px; font-size: 10px; }
.hubitos-history-list .history-delete { display: none; }
.hubitos-sidebar-footer { gap: 8px; }
.hubitos-sidebar-meta { padding-top: 0; border: 0; }

.chat-shell,
.is-home .chat-shell {
  background-color: #fbfcf9;
  background-image:
    linear-gradient(rgba(124, 141, 94, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 141, 94, .045) 1px, transparent 1px),
    radial-gradient(circle at 18% 18%, rgba(220, 240, 178, .32), transparent 26%),
    radial-gradient(circle at 82% 66%, rgba(221, 240, 192, .28), transparent 30%);
  background-size: 64px 64px, 64px 64px, auto, auto;
}

.topbar { display: none; }
.chat-shell { grid-template-rows: auto auto minmax(0, 1fr); }
.mode-switcher {
  width: min(620px, calc(100% - 48px));
  margin: clamp(38px, 7vh, 72px) auto 0;
  padding: 4px;
  border-color: rgba(28, 31, 23, .08);
  border-radius: 13px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 8px 28px rgba(45, 55, 33, .05);
  backdrop-filter: blur(12px);
}
.mode-switcher button { min-height: 38px; border-radius: 10px; font-size: 12px; }
.mode-switcher button.is-active {
  color: #20241a;
  box-shadow: 0 5px 15px rgba(45, 55, 33, .09), inset 0 -2px 0 #9fbd65;
}

.work-submode-switcher {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 10px auto 0;
  padding: 3px;
  border: 1px solid rgba(28, 31, 23, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 7px 22px rgba(45, 55, 33, .04);
  transition: opacity .2s ease, transform .2s ease;
}

.work-submode-switcher[hidden] { display: none !important; }

.work-submode-switcher button {
  min-width: 84px;
  min-height: 30px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #7b7f76;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.work-submode-switcher button.is-active {
  color: #26301e;
  background: #eef5e4;
  box-shadow: 0 3px 10px rgba(89, 112, 55, .09);
}

.commerce-submode-switcher,
.video-submode-switcher {
  width: min(900px, calc(100% - 48px));
  display: grid;
  gap: 10px;
  margin: 12px auto 0;
}
.commerce-submode-switcher[hidden],
.video-submode-switcher[hidden] { display: none !important; }
.commerce-submode-switcher { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.commerce-submode-switcher button {
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(28, 31, 23, .08);
  border-radius: 13px;
  background: rgba(255, 255, 255, .78);
  color: #242720;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.commerce-submode-switcher button > span {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f3f4f1;
  color: #73776f;
  font-size: 17px;
}
.commerce-submode-switcher button strong { align-self: end; font-size: 12px; }
.commerce-submode-switcher button small { align-self: start; overflow: hidden; color: #989b94; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.commerce-submode-switcher button.is-active {
  border-color: rgba(92, 187, 95, .5);
  background: rgba(235, 248, 232, .9);
  box-shadow: inset 0 0 0 1px rgba(92, 187, 95, .1);
}
.commerce-submode-switcher button.is-active > span { background: #eef9eb; color: #54b85c; }

.video-submode-switcher { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.video-submode-switcher button {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border: 1px solid rgba(28, 31, 23, .08);
  border-radius: 13px;
  background: rgba(255, 255, 255, .8);
  color: #555a51;
  font-size: 12px;
  cursor: pointer;
}
.video-submode-switcher button.is-active {
  border: 2px solid #91c83f;
  background: #f2f8e9;
  color: #1f241c;
}
.video-submode-switcher button > span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #9bd244;
  color: #1e3510;
}

.chat-content,
.is-home .chat-content {
  width: min(900px, calc(100% - 48px));
  height: 100%;
  margin-inline: auto;
  padding: 0 0 32px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.chat-scroll,
.is-home .chat-scroll { height: auto; min-height: 0; overflow: visible; }
.home-start,
.is-home .home-start { padding: clamp(24px, 5vh, 52px) 0 18px; }
.home-start { display: none !important; }
.home-hero,
.is-home .home-hero { width: min(680px, 100%); gap: 10px; }
.home-hero-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  border: 0;
  border-radius: 15px 20px 14px 19px;
  transform: rotate(-8deg);
  background: linear-gradient(145deg, #d9efaa, #91b946);
  color: #fff;
  box-shadow: 0 14px 32px rgba(115, 151, 58, .2);
}
.home-hero-mark span { font-size: 21px; font-weight: 900; }
.home-hero-mark i { display: none; }
.home-kicker { color: #789d41; font-size: 9px; letter-spacing: .14em; }
.home-headline,
.is-home .home-headline {
  font-family: "PingFang SC", "Microsoft YaHei", "Inter", sans-serif;
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 760;
  letter-spacing: -.035em;
}
.home-subtitle,
.is-home .home-subtitle { font-size: 13px; color: #8c9088; }
.mode-capabilities { margin-top: 5px; }
.mode-capabilities span { min-height: 25px; background: rgba(239, 246, 228, .86); font-size: 10px; }

.composer-wrap,
.is-home .composer-wrap { width: min(660px, 100%); margin-inline: auto; gap: 12px; }
.composer,
.is-home .composer {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 154px;
  border: 1px solid rgba(28, 31, 23, .07);
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 45px rgba(53, 61, 43, .1);
}
.composer:focus-within,
.is-home .composer:focus-within {
  border-color: rgba(130, 168, 72, .34);
  box-shadow: 0 20px 48px rgba(53, 61, 43, .12), 0 0 0 3px rgba(145, 185, 70, .07);
}
.composer textarea,
.is-home .composer textarea { min-height: 78px; padding: 18px 18px 8px; font-size: 13px; }
.scene-context-row {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(41, 56, 35, .09);
  border-radius: 11px;
  background: #fbfcfa;
  color: #242720;
  text-align: left;
  cursor: pointer;
}
.scene-context-row[hidden] { display: none !important; }
.scene-context-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: #f1f8e9; color: #8ccf35; font-size: 19px; }
.scene-context-row > span:last-child { min-width: 0; display: grid; gap: 1px; }
.scene-context-row small { color: #949891; font-size: 9px; }
.scene-context-row strong { color: #7c8079; font-size: 12px; font-weight: 550; }
.scene-context-row em { overflow: hidden; color: #9ca098; font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }

.composer-wrap[hidden],
.social-setup-panel[hidden],
.social-agent-panel[hidden],
.commerce-agent-panel[hidden],
.workbuddy-workbench[hidden],
.workbuddy-active-tool[hidden],
.workbuddy-voice-btn[hidden],
.template-dock[hidden],
.composer-model-bar[hidden] { display: none !important; }

.workbuddy-workbench {
  display: grid;
  justify-items: center;
  padding: clamp(24px, 5vh, 52px) 0 0;
}
.workbuddy-workbench h2 { margin: 0; color: #151515; font-size: clamp(30px, 4vw, 44px); font-weight: 750; letter-spacing: -.045em; }
.workbuddy-workbench h2 span { font-weight: 800; }
body[data-mode="work"] .composer-wrap,
body[data-mode="work"].is-home .composer-wrap { width: min(900px, 100%); }
.composer.is-workbuddy-composer,
.is-home .composer.is-workbuddy-composer { min-height: 224px; padding: 18px; border: 2px solid #ededed; border-radius: 20px; box-shadow: 0 16px 38px rgba(0,0,0,.055); }
.composer.is-workbuddy-composer textarea,
.is-home .composer.is-workbuddy-composer textarea { min-height: 105px; padding: 12px 2px 6px; font-size: 14px; }
.composer.is-workbuddy-composer .composer-footer { padding: 0; }
.workbuddy-active-tool { width: max-content; display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 10px; border-radius: 999px; background: #c9f5ec; color: #183d36; font-size: 11px; }
.workbuddy-active-tool strong { font-weight: 550; }
.workbuddy-active-tool button { border: 0; background: transparent; color: #183d36; font-size: 16px; cursor: pointer; }
.workbuddy-voice-btn { width: 42px; height: 42px; border: 0; border-radius: 10px; background: transparent; color: #202020; font-size: 19px; cursor: pointer; }

.social-setup-panel {
  width: min(900px, 100%);
  display: grid;
  gap: 24px;
  margin: 18px auto 30px;
  color: #20231f;
}
.social-setup-head { display: grid; gap: 6px; }
.social-setup-head h2 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.035em; }
.social-setup-head p { max-width: 760px; margin: 0; color: #7d827a; font-size: 12px; line-height: 1.6; }
.social-setup-step { display: grid; gap: 14px; }
.social-step-heading { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: start; gap: 12px; }
.social-step-heading > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #111; color: #fff; font-size: 10px; font-weight: 700; }
.social-step-heading h3 { margin: 0; font-size: 18px; font-weight: 650; }
.social-step-heading p { margin: 4px 0 0; color: #8b9088; font-size: 10px; }
.social-account-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.social-account-grid button {
  position: relative;
  min-height: 94px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 10px;
  padding: 14px;
  border: 1px solid rgba(28, 31, 23, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .88);
  color: #1e211d;
  text-align: left;
  cursor: pointer;
}
.social-account-grid button.is-selected { border-color: #8fc844; background: #f3f9ea; box-shadow: inset 0 0 0 1px rgba(143, 200, 68, .18); }
.social-account-grid button.is-unavailable { background: rgba(246, 247, 245, .9); color: #747a72; cursor: not-allowed; }
.social-account-grid strong { align-self: end; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.social-account-grid small { align-self: start; grid-column: 2; color: #92978f; font-size: 10px; }
.social-account-grid i { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; display: none; place-items: center; border-radius: 50%; background: #94cc42; color: #23350f; font-size: 10px; font-style: normal; }
.social-account-grid button.is-selected i { display: grid; }
.social-account-grid em { grid-column: 2; margin-top: 5px; color: #299858; font-size: 10px; font-style: normal; }
.social-platform-icon { grid-row: 1 / span 2; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #111; color: #fff; font-size: 12px; font-weight: 800; }
.social-platform-icon.instagram { background: linear-gradient(145deg, #7149f1, #ed286f 55%, #f3ae27); }
.social-platform-icon.facebook, .social-platform-icon.linkedin { background: #1970d2; }
.social-platform-icon.youtube { background: #ff1746; }
.social-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.social-action-grid button {
  min-height: 126px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(28, 31, 23, .1);
  border-radius: 16px;
  background: rgba(255, 255, 255, .9);
  color: #252824;
  text-align: left;
  cursor: pointer;
}
.social-action-grid button:disabled { opacity: .42; cursor: not-allowed; }
.social-action-grid button > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #eff8ed; color: #62ad69; }
.social-action-grid button > div { display: grid; align-content: start; gap: 6px; }
.social-action-grid strong { font-size: 15px; }
.social-action-grid p { margin: 0; color: #8a8f87; font-size: 10px; line-height: 1.5; }
.social-action-grid em { margin-top: 8px; color: #56a96a; font-size: 11px; font-style: normal; font-weight: 650; }
body[data-mode="social"] .home-start { display: none; }

.social-agent-panel {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.agent-task-guide { margin: 0; color: #777f88; font-size: 10px; text-align: center; }
.social-agent-categories { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.social-agent-categories button { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid rgba(31, 45, 59, .1); border-radius: 11px; background: #fff; color: #27313c; font: inherit; font-size: 10px; font-weight: 650; cursor: pointer; }
.social-agent-categories button span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: #eff6fb; color: #1295d0; font-size: 14px; }
.social-agent-categories button.is-active { border-color: #4eb3e4; background: #e9f7ff; }
.social-agent-examples { padding: 16px; border: 1px solid rgba(31,45,59,.09); border-radius: 16px; background: rgba(255,255,255,.92); }
.social-agent-examples h3 { margin: 0; font-size: 16px; }
.social-agent-examples > div:first-child p { margin: 4px 0 10px; color: #838a93; font-size: 9px; }
.social-agent-example-list { display: grid; }
.social-agent-example-list button { min-height: 52px; display: grid; grid-template-columns: 28px minmax(0, 1fr) 20px; align-items: center; gap: 8px; padding: 8px; border: 0; border-top: 1px solid rgba(31,45,59,.08); background: transparent; color: #4a535e; text-align: left; cursor: pointer; }
.social-agent-example-list button span { color: #8a9199; font-size: 9px; }
.social-agent-example-list button strong { font-size: 10px; font-weight: 520; line-height: 1.5; }
.social-agent-example-list button i { font-size: 12px; font-style: normal; }

.commerce-agent-panel { display: grid; gap: 18px; margin-top: 12px; }
.commerce-agent-scenes { display: flex; flex-wrap: wrap; gap: 6px; }
.commerce-agent-scenes button { min-height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: #f3f3f1; color: #555a55; font: inherit; font-size: 9px; cursor: pointer; }
.commerce-agent-scenes button.is-active { background: #efe9ff; color: #7654ed; }
.commerce-agent-divider { display: flex; align-items: center; gap: 10px; color: #aaa; font-size: 9px; }
.commerce-agent-divider::before, .commerce-agent-divider::after { content: ""; height: 1px; flex: 1; background: rgba(31,45,59,.08); }
.commerce-agent-skill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.commerce-agent-skill-grid button { min-width: 0; min-height: 142px; display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; column-gap: 10px; padding: 14px; border: 1px solid rgba(31,45,59,.08); border-radius: 14px; background: rgba(255,255,255,.94); color: #202520; text-align: left; cursor: pointer; transition: transform .16s ease, border-color .16s ease; }
.commerce-agent-skill-grid button:hover { transform: translateY(-2px); border-color: rgba(118,84,237,.28); }
.commerce-agent-skill-grid button > span { width: 32px; height: 32px; display: grid; place-items: center; grid-row: 1 / span 2; border-radius: 8px; background: #f0ebff; color: #7654ed; font-size: 15px; font-weight: 750; }
.commerce-agent-skill-grid strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.commerce-agent-skill-grid small { color: #8f9490; font-size: 8px; }
.commerce-agent-skill-grid p { grid-column: 1 / -1; margin: 10px 0; color: #6f756f; font-size: 9px; line-height: 1.55; }
.commerce-agent-skill-grid em { grid-column: 1 / -1; overflow: hidden; padding-top: 8px; border-top: 1px solid rgba(31,45,59,.07); color: #9b9f9b; font-size: 8px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
body[data-mode="commerceAgent"] .home-start { display: none; }
body[data-mode="commerceAgent"] .composer-wrap,
body[data-mode="commerceAgent"].is-home .composer-wrap,
body[data-mode="social"] .composer-wrap,
body[data-mode="social"].is-home .composer-wrap { width: min(900px, 100%); }
.attached-items:empty { display: none; min-height: 0; }
.composer-footer { padding: 9px 12px 11px; }
.composer-icon-btn { border-radius: 10px; }
.model-pill,
.is-home .model-pill { border-color: rgba(139, 170, 86, .16); background: #fafcf6; color: #596c3c; }
.send-btn,
.is-home .send-btn { background: #9abb63; box-shadow: none; }
.send-btn:disabled,
.is-home .send-btn:disabled { background: #e3e5df; }

.template-dock {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 8px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.template-dock-head { padding: 0 2px; }
.template-dock-head h3 { font-size: 12px; }
.template-dock-actions button { background: rgba(255, 255, 255, .78); }
.template-strip { grid-auto-columns: minmax(190px, 1fr); gap: 10px; }
.web-search-btn { color: #789d41; border-color: rgba(126, 162, 70, .26); background: #f4f8ed; }
.image-settings-wrap { position: relative; }
.image-settings-wrap[hidden],
.image-settings-popover[hidden] { display: none !important; }
.image-settings-trigger {
  min-height: 45px;
  padding: 0 13px;
  border: 1px solid rgba(126, 162, 70, .2);
  border-radius: 10px;
  background: #f4f8ed;
  color: #637b3e;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}
.image-settings-popover {
  position: absolute;
  left: 0;
  bottom: calc(100% + 9px);
  z-index: 20;
  width: 220px;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(28, 31, 23, .09);
  border-radius: 14px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 42px rgba(45, 55, 33, .14);
}
.image-settings-popover label { display: grid; gap: 6px; color: #787c73; font-size: 10px; }
.image-settings-popover select {
  width: 100%;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid rgba(28, 31, 23, .1);
  border-radius: 8px;
  background: #fafbf8;
  color: #252821;
  font: inherit;
}
.format-option-icon-image { background: #eef6e7; color: #78a83e; }
.format-option-icon-commerce { background: #eff8f0; color: #38a96a; }
.model-menu-divider {
  min-height: 30px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid rgba(32, 26, 20, .08);
  background: #fafbf8;
  color: #858981;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

.commerce-settings-wrap { position: relative; }
.commerce-settings-wrap[hidden],
.commerce-settings-popover[hidden] { display: none !important; }
.commerce-settings-trigger {
  min-height: 45px;
  padding: 0 13px;
  border: 1px solid rgba(28, 31, 23, .09);
  border-radius: 10px;
  background: #fff;
  color: #555a52;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.commerce-settings-popover {
  position: absolute;
  left: 0;
  bottom: calc(100% + 9px);
  z-index: 20;
  width: 230px;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(28, 31, 23, .09);
  border-radius: 14px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 42px rgba(45, 55, 33, .14);
}
.commerce-settings-popover label,
.video-options-panel label { display: grid; gap: 5px; color: #858982; font-size: 10px; }
.commerce-settings-popover select,
.video-options-panel select {
  width: 100%;
  min-height: 35px;
  padding: 0 9px;
  border: 1px solid rgba(28, 31, 23, .1);
  border-radius: 8px;
  background: #fff;
  color: #252821;
  font: inherit;
}

.video-asset-actions { display: flex; gap: 6px; }
.video-asset-actions[hidden] { display: none !important; }
.video-asset-actions button {
  min-height: 38px;
  padding: 0 11px;
  border: 0;
  border-radius: 9px;
  background: #f4f5f2;
  color: #4f544c;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}
.video-asset-actions button:first-child { background: #9bd244; color: #1e3510; }
body[data-mode="video"] .composer-tools > .composer-icon-btn,
body[data-mode="video"] .attachment-support-copy { display: none; }
body[data-mode="video"] .video-asset-actions { width: 100%; }
body[data-mode="video"] .video-asset-actions button { flex: 1; min-width: 0; padding-inline: 7px; white-space: nowrap; }

.composer.is-video-composer {
  min-height: 330px;
  grid-template-columns: minmax(0, 1fr) 250px;
  grid-template-rows: auto auto minmax(120px, 1fr) auto;
  column-gap: 18px;
  padding: 16px;
}
.composer.is-video-composer .scene-context-row,
.composer.is-video-composer .attached-items,
.composer.is-video-composer textarea,
.composer.is-video-composer .composer-footer { grid-column: 1; }
.composer.is-video-composer .scene-context-row { grid-row: 1; border-color: rgba(142, 199, 61, .36); background: #f8fced; }
.composer.is-video-composer .attached-items { grid-row: 2; }
.composer.is-video-composer textarea { grid-row: 3; min-height: 130px; padding: 14px 8px; font-size: 14px; }
.composer.is-video-composer .composer-footer { grid-row: 4; }
.video-options-panel {
  grid-column: 2;
  grid-row: 1 / span 4;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  padding-left: 18px;
  border-left: 1px solid rgba(28, 31, 23, .08);
}
.video-options-panel[hidden] { display: none !important; }
.video-mode-toggle { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid rgba(28, 31, 23, .09); border-radius: 999px; background: #fff; }
.video-mode-toggle button { min-height: 34px; border: 0; border-radius: 999px; background: transparent; color: #747970; font: inherit; font-size: 11px; cursor: pointer; }
.video-mode-toggle button.is-active { background: #9bd244; color: #20320e; }
.video-generate-btn { min-height: 44px; border: 1px solid rgba(28, 31, 23, .08); border-radius: 10px; background: #9bd244; color: #20320e; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.video-generate-btn:disabled { background: #f5f6f3; color: #a4a9a0; cursor: not-allowed; }
.video-options-panel p { margin: 0; color: #989d95; font-size: 9px; line-height: 1.45; }
body[data-mode="video"] .composer-wrap,
body[data-mode="video"].is-home .composer-wrap { width: min(900px, 100%); }
body[data-mode="ecommerce"] .composer-wrap,
body[data-mode="ecommerce"].is-home .composer-wrap { width: min(900px, 100%); }
body[data-mode="video"] .composer-model-bar { display: none; }
body[data-mode="ecommerce"] .home-start,
body[data-mode="video"] .home-start { display: none; }
.template-card {
  min-height: 118px;
  border-color: rgba(29, 33, 24, .06);
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 8px 24px rgba(54, 62, 45, .045);
}
.template-card-icon { color: #60783b; background: #edf5e2; }
.template-card-actions button.use,
.template-use-primary { background: #8eae56; }

.template-category-bar[hidden] { display: none !important; }
.template-category-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.template-category-bar::-webkit-scrollbar { display: none; }
.template-category-bar button {
  min-height: 32px;
  flex: 0 0 auto;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f4f5f2;
  color: #696d66;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}
.template-category-bar button.is-active {
  border-color: rgba(139, 183, 71, .45);
  background: #eef8e8;
  color: #559524;
  font-weight: 700;
}
.template-dock.is-visual-gallery { padding-top: 10px; }
.template-strip.is-commerce-gallery { grid-auto-columns: minmax(200px, 1fr); }
.template-strip.is-video-gallery { grid-auto-columns: minmax(150px, 1fr); }
.template-card.has-media {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
}
.template-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f1f2ef;
}
.is-video-gallery .template-card-media { aspect-ratio: 9 / 14; }
.template-card-media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 220ms ease; }
.template-card.has-media:hover .template-card-media img { transform: scale(1.025); }
.template-play-mark {
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(20, 22, 18, .72);
  color: #fff;
  font-size: 10px;
  backdrop-filter: blur(4px);
}
.template-card.has-media .template-card-copy { padding: 10px 10px 7px; }
.template-card.has-media .template-card-copy h4 { margin: 0 0 4px; font-size: 12px; }
.template-card.has-media .template-card-copy p { color: #8a8e86; font-size: 9px; }
.template-card.has-media .template-card-actions { grid-column: 1; padding: 0 10px 10px; }
.template-card.has-media .template-card-actions button { flex: 1; }
.template-dock.is-collapsed .template-category-bar { display: none; }

.message-row { width: min(760px, 100%); margin-inline: auto; }
.assistant-badge { background: #9abb63; }
.assistant-card { border-color: rgba(134, 161, 87, .16); box-shadow: 0 18px 42px rgba(70, 82, 51, .07); }
.user-message { background: rgba(240, 241, 237, .96); }

@media (max-width: 820px) {
  .app-window, .is-home .app-window { grid-template-columns: 1fr; }
  #sharedSidebar { display: none; }
  .mode-switcher { width: calc(100% - 24px); margin-top: 20px; }
  .mode-switcher button { padding-inline: 6px; font-size: 10px; white-space: nowrap; }
  .mode-switcher button small { display: none; }
  .chat-content, .is-home .chat-content { width: calc(100% - 24px); }
}

@media (max-width: 560px) {
  .commerce-submode-switcher { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-submode-switcher { grid-template-columns: 1fr; }
  .composer.is-video-composer { grid-template-columns: 1fr; }
  .video-options-panel { grid-column: 1; grid-row: auto; padding: 14px 0 0; border-left: 0; border-top: 1px solid rgba(28, 31, 23, .08); }
  .social-account-grid,
  .social-action-grid { grid-template-columns: 1fr; }
}

@media (min-width: 561px) and (max-width: 760px) {
  .social-account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

body.is-embedded .desktop-stage { min-height: 100vh; }
body.is-embedded .app-window,
body.is-embedded.is-home .app-window { grid-template-columns: minmax(0, 1fr); }
body.is-embedded #sharedSidebar { display: none !important; }
body.is-embedded .hubitos-assistant-root { display: none !important; }
body.is-embedded .mode-switcher { margin-top: clamp(24px, 5vh, 52px); }
body .workbuddy-workbench + .mode-switcher,
body.is-embedded .workbuddy-workbench + .mode-switcher { margin-top: 14px; }
