:root {
  --bg: #eef2f7;
  --panel: #ffffff;
  --surface: #f7f9fc;
  --surface-blue: #ebf1ff;
  --chip-bg: rgba(20, 60, 160, 0.07);
  --ink: #121826;
  --muted: #526074;
  --line: rgba(18, 40, 80, 0.1);
  --line-strong: rgba(18, 40, 80, 0.18);
  --accent: #1f5eff;
  --accent-strong: #1548d6;
  --accent-soft: #e8efff;
  --indigo: #2f6bff;
  --teal: #1f7a8c;
  --pink: #c45b7a;
  --success: #147a5f;
  --warn: #9a6322;
  --danger: #c64b55;
  --shadow: 0 22px 40px -18px rgba(18, 40, 80, 0.22), 0 10px 18px -12px rgba(18, 40, 80, 0.12);
  --shadow-soft: 0 1px 2px rgba(18, 40, 80, 0.06), 0 8px 24px rgba(18, 40, 80, 0.06);
  --font-sans: "Noto Sans SC", "Manrope", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    linear-gradient(135deg, rgba(31, 94, 255, 0.08), transparent 42%),
    linear-gradient(205deg, rgba(31, 122, 140, 0.07), transparent 46%),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 48%, #e8eef6 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
textarea,
input,
select {
  font: inherit;
}

button {
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease,
    box-shadow 0.16s ease;
}

button:hover {
  background: var(--chip-bg);
}

button:active {
  transform: translateY(1px);
}

button:focus-visible,
textarea:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(95, 143, 199, 0.22);
  outline-offset: 2px;
}

.app-shell {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  min-height: 100vh;
}

.app-shell.home-mode {
  grid-template-columns: 1fr;
}

.app-shell.home-mode .sidebar {
  display: none;
}

.app-shell.home-mode .mobile-projects-button {
  display: none;
}

.doubao-shell {
  background: var(--bg);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100vh;
  padding: 16px 14px 12px;
  border-right: 1px solid var(--line);
  background: #f3f6f8;
}

.search-box {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #dfe4ea;
  border-radius: 12px;
  background: #eef2f6;
  color: #8a93a1;
}

.search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

kbd {
  color: #98a1af;
  font-size: 12px;
  font-family: inherit;
}

.assistant-entry,
.user-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 10px;
}

.assistant-entry {
  display: grid;
  align-items: start;
  justify-items: start;
  gap: 8px;
  min-height: 0;
  padding: 4px 4px 10px;
}

.avatar,
.user-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dceeff;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
}

.side-nav {
  display: grid;
  gap: 4px;
}

.side-action {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  text-align: left;
  color: #1f2933;
}

.side-action.active {
  border-left: 3px solid var(--accent);
  padding-left: 7px;
  background: var(--chip-bg);
  color: var(--accent-strong);
}

.history-section {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
  flex: 1;
  padding-top: 8px;
}

.sidebar-title,
.project-meta,
.hint,
.risk {
  color: var(--muted);
  font-size: 13px;
}

.sidebar-title {
  padding: 0 10px;
}

.project-list {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 0;
  overflow: auto;
}

.project-item {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 8px 10px;
  text-align: left;
  color: #26313f;
}

.project-item:hover {
  border-color: transparent;
  background: #eef3f8;
}

.project-item strong,
.project-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-item strong {
  font-size: 14px;
  font-weight: 500;
}

.user-entry {
  width: 100%;
  justify-content: flex-start;
  margin-top: auto;
}

.mobile-projects-button {
  display: none;
}

.workspace {
  min-width: 0;
  background: #f7f9fc;
}

.app-view.hidden {
  display: none;
}

::view-transition-old(root) {
  pointer-events: none;
  animation: view-page-exit 160ms cubic-bezier(0.55, 0, 1, 0.45) both;
}

::view-transition-new(root) {
  pointer-events: none;
  animation: view-page-enter 300ms cubic-bezier(0.16, 1, 0.3, 1) 40ms both;
}

@keyframes view-page-exit {
  to {
    opacity: 0;
    transform: translateY(var(--view-exit-y, -8px)) scale(0.995);
  }
}

@keyframes view-page-enter {
  from {
    opacity: 0;
    transform: translateY(var(--view-enter-y, 12px)) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.interface-entering {
  animation: interface-content-enter 280ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes interface-content-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tool-card:active,
.recent-project-card:active,
.header-primary-button:active,
.section-action:active,
.side-action:active,
.primary:active,
.send-button:active {
  transform: scale(0.98);
  transition-duration: 120ms;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root),
  .interface-entering {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.toolbox-page,
.prompt-library-page {
  min-height: 100vh;
  padding: 56px 40px;
  background: #f8fafc;
}

.toolbox-inner,
.prompt-library-content {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.toolbox-inner {
  display: grid;
  gap: 38px;
  padding: 8px 0 36px;
}

.toolbox-homebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  color: var(--muted);
  font-size: 13px;
}

.toolbox-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #1a2a3b;
  font-size: 16px;
}

.toolbox-brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  color: #315e8e;
  background: #dcecff;
  font-size: 11px;
  font-weight: 700;
}

.toolbox-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.toolbox-heading p {
  margin: 0;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.toolbox-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.toolbox-heading-sub {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 500;
}

.toolbox-home-heading {
  gap: 12px;
  margin: 32px 0 0;
}

.toolbox-home-heading h1 {
  font-size: 36px;
}

.toolbox-home-heading > span {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

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

.tool-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 286px;
  padding: 26px;
  border-color: #cfdfed;
  border-radius: 8px;
  background: #eaf3fb;
  text-align: left;
}

.tool-card:hover {
  border-color: #a9c8e5;
  background: #e2effa;
  box-shadow: var(--shadow-soft);
}

.tool-card:nth-child(1) {
  background: #eaf3fb;
}

.tool-card:nth-child(2) {
  border-color: #d3e2da;
  background: #eef5f1;
}

.tool-card:nth-child(2):hover {
  border-color: #b5d1c2;
  background: #e6f0ea;
}

.tool-card-index {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}

.tool-card:nth-child(2) .tool-card-index,
.tool-card:nth-child(2) .tool-card-action {
  color: #3f7460 !important;
}

.tool-card strong {
  color: #1c2c3e;
  font-size: 20px;
}

.tool-card > span:last-child {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.tool-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.tool-card-meta span,
.workflow-preview span {
  min-height: 25px;
  padding: 4px 7px;
  border-radius: 5px;
  color: #506275;
  background: #edf2f7;
  font-size: 12px;
  line-height: 17px;
}

.tool-card:nth-child(2) .workflow-preview span {
  color: #4b6e60;
  background: #dfeee7;
}

.workflow-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.workflow-preview i {
  color: #8da5bb;
  font-size: 12px;
  font-style: normal;
}

.tool-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #e4eaf1;
  color: var(--accent-strong) !important;
  font-weight: 600;
}

.tool-card-action b {
  font-size: 18px;
  font-weight: 400;
}

.prompt-library-empty {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 320px;
}

.prompt-library-state {
  padding: 18px 0;
  color: var(--muted);
  font-size: 15px;
}

.back-link {
  width: fit-content;
  min-height: 34px;
  padding: 0 10px;
  color: var(--accent-strong);
}

.prompt-library-layout {
  display: grid;
  gap: 18px;
}

.prompt-library-layout .toolbox-heading {
  margin-bottom: 4px;
}

.prompt-search {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #64748b;
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-size: 16px;
}

.prompt-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
}

.prompt-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.prompt-filter-option {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #334155;
  background: #eef2f6;
  font-size: 14px;
  font-weight: 600;
}

.prompt-filter-option:hover,
.prompt-filter-option.active {
  border-color: rgba(31, 94, 255, 0.28);
  color: #fff;
  background: var(--accent);
}

.prompt-count {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

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

.prompt-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f4f7fa;
  box-shadow: var(--shadow-soft);
}

.prompt-card:hover {
  border-color: rgba(31, 94, 255, 0.28);
  background: #edf3f9;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.prompt-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.prompt-category {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 700;
}

.prompt-copy-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #475569;
  background: #f1f5f9;
}

.prompt-copy-icon .icon {
  width: 18px;
  height: 18px;
}

.prompt-copy-icon:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.prompt-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.4;
  font-weight: 800;
}

.prompt-meta {
  display: grid;
  gap: 10px;
  margin: 0;
}

.prompt-meta > div {
  display: grid;
  gap: 4px;
}

.prompt-meta dt {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.prompt-meta dd {
  margin: 0;
  color: #1e293b;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 500;
}

.prompt-scene {
  display: grid;
  gap: 4px;
  margin: 0;
  color: #1e293b;
  font-size: 15px;
  line-height: 1.65;
}

.prompt-scene span,
.prompt-fields > span {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.prompt-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.prompt-fields i {
  padding: 5px 10px;
  border-radius: 999px;
  color: #334155;
  background: #eef2f6;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
}

.prompt-details summary {
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.prompt-text {
  margin: 10px 0 0;
  padding: 14px;
  border-radius: 12px;
  color: #334155;
  background: #f8fafc;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.prompt-card-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.prompt-start {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.prompt-start:hover {
  background: var(--accent-strong);
}

.prompt-details {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.prompt-details summary {
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 13px;
  list-style: none;
}

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

.prompt-card-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}

.prompt-start {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 2px;
  color: var(--accent-strong);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}

.prompt-start:hover {
  color: #2f6397;
  background: transparent;
}

.prompt-start span {
  font-size: 17px;
  font-weight: 400;
}

.prompt-text {
  max-height: 360px;
  margin: 10px 0 0;
  overflow: auto;
  padding: 12px;
  border: 1px solid #e1e8f0;
  border-radius: 6px;
  color: #384858;
  background: #f6f8fb;
  font: 13px/1.65 "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  white-space: pre-wrap;
}

.prompt-empty {
  grid-column: 1 / -1;
  padding: 28px 0;
  color: var(--muted);
  text-align: center;
}

.prompt-notice {
  min-height: 18px;
  margin: 0;
}

.chat-stage {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100vh;
  overflow: hidden;
}

.conversation-scroll {
  min-height: 0;
  overflow: auto;
  padding: 42px 32px 168px;
}

.welcome-screen {
  position: absolute;
  inset: 0 0 140px;
  display: grid;
  place-items: center;
  padding: 48px 32px 24px;
  pointer-events: none;
}

.welcome-screen.hidden {
  display: none;
}

.welcome-inner {
  display: grid;
  justify-items: center;
  gap: 28px;
  width: min(100%, 980px);
}

.welcome-inner h1 {
  margin: 0;
  color: #000;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
}

.example-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 850px;
}

.example-line {
  min-height: 38px;
  padding: 9px 18px;
  border-radius: 12px;
  background: #f3f6fa;
  color: #243244;
  font-size: 15px;
  line-height: 1.35;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(100%, 900px);
  margin: 0 auto;
}

.message {
  max-width: min(720px, 92%);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  background: #fff;
}

.message.user {
  align-self: flex-end;
  border-color: #d8e7f7;
  background: var(--accent-soft);
}

.message.assistant {
  align-self: flex-start;
  border-color: transparent;
  background: #f7f8fa;
}

.dynamic-panel {
  width: min(100%, 900px);
  margin: 14px auto 0;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fbfcfe;
  box-shadow: 0 1px 0 rgba(39, 64, 94, 0.02);
}

.panel h2,
.panel h3 {
  margin: 0 0 14px;
  color: #1f2d3d;
  font-size: 17px;
  line-height: 1.35;
}

.workflow-panel {
  display: grid;
  gap: 14px;
}

.workflow-panel h2 {
  margin: 0;
}

.workflow-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.workflow-stage {
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 6px;
  color: var(--muted);
  background: #eef1f5;
  font-size: 12px;
}

.workflow-stage.active {
  color: var(--accent-strong);
  background: var(--chip-bg);
}

.workflow-quality {
  padding: 10px 12px;
  border-left: 3px solid var(--warn);
  color: #77572a;
  background: #f7f2e9;
  font-size: 13px;
  line-height: 1.55;
}

.workflow-version-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.workflow-version {
  min-height: 30px;
  padding: 0 9px;
  border-color: #d6e1ec;
  color: #5d6d7d;
  background: #edf2f7;
  font-size: 12px;
}

.workflow-version.active {
  border-color: #9fc1e5;
  color: var(--accent-strong);
  background: var(--chip-bg);
  font-weight: 600;
}

.workflow-revision {
  display: grid;
  gap: 9px;
  padding-top: 4px;
}

.workflow-revision summary {
  color: #667788;
  cursor: pointer;
  font-size: 13px;
}

.workflow-revision p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.workflow-revision > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.workflow-revision button {
  min-height: 30px;
  padding: 0 9px;
  color: #5b6b7b;
  background: #edf2f7;
  font-size: 12px;
}

.workflow-revision button:hover {
  color: var(--accent-strong);
  background: var(--chip-bg);
}

.workflow-questions {
  display: grid;
  gap: 16px;
}

.workflow-question {
  display: grid;
  gap: 9px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.workflow-question:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.question-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #223548;
}

.question-heading span {
  color: var(--accent-strong);
  font-weight: 700;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.choice-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 10px;
  border-color: #dbe6f2;
  border-radius: 6px;
  background: #f3f7fb;
  text-align: left;
}

.choice-option:hover,
.choice-option.selected {
  border-color: #9fc1e5;
  background: #e7f1fb;
}

.choice-key {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d9e9fa;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}

.recommendation {
  color: var(--muted);
  font-size: 12px;
}

.intent-options {
  display: grid;
  gap: 10px;
}

.intent-option {
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: 64px;
  padding: 12px 14px;
  border-color: #dbe6f2;
  background: var(--chip-bg);
  text-align: left;
}

.intent-option:hover {
  border-color: #b9d2ef;
  background: #e5f0fb;
}

.intent-option strong {
  color: #1f2d3d;
  font-size: 15px;
}

.intent-option span {
  color: var(--muted);
  font-size: 13px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ink);
  background: #fff;
}

.requirement-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.requirement-summary div {
  display: grid;
  gap: 5px;
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.requirement-summary span {
  color: var(--muted);
  font-size: 13px;
}

.requirement-summary strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.actions button {
  min-height: 36px;
  padding: 0 12px;
  border-color: transparent;
  background: var(--chip-bg);
  color: #27405e;
}

.actions button:hover {
  background: #e4f0fb;
}

.primary {
  border-color: var(--accent);
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600;
}

.primary:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong) !important;
  color: #fff;
}

.secondary {
  color: var(--accent-strong);
}

.composer-dock {
  position: sticky;
  bottom: 0;
  display: grid;
  justify-items: center;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.94);
}

.composer-card {
  display: grid;
  gap: 8px;
  width: min(100%, 960px);
  min-height: 112px;
  padding: 16px 18px 12px;
  border: 1px solid #bfd8f6;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(95, 143, 199, 0.18);
}

#messageInput {
  width: 100%;
  min-height: 42px;
  max-height: 120px;
  resize: none;
  border: 0;
  outline: 0;
  padding: 0 6px;
  color: var(--ink);
  line-height: 1.55;
  background: transparent;
}

#messageInput::placeholder {
  color: #a2aab6;
}

.composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tool-group {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tool-group::-webkit-scrollbar {
  display: none;
}

.composer-note {
  color: var(--muted);
  font-size: 13px;
}

.send-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-height: 36px;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  flex: 0 0 auto;
}

.send-button:hover {
  background: var(--accent-strong);
  color: #fff;
}

.result {
  max-height: 46vh;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #263747;
  font-size: 15px;
  line-height: 1.75;
}

.result h1 {
  margin: 0 0 12px;
  font-size: 22px;
}

.result h2 {
  margin: 18px 0 8px;
  color: #223548;
  font-size: 18px;
}

.result table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 14px;
}

.result th,
.result td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.result th {
  background: var(--surface-blue);
  color: #223548;
}

.risk {
  margin-top: 10px;
  color: var(--warn);
}

.notice {
  min-height: 22px;
  margin-top: 10px;
  color: var(--success);
  font-size: 13px;
}

.notice.error {
  color: var(--danger);
}

.version-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.version-pill {
  min-height: 30px;
  padding: 0 10px;
  border-color: var(--line);
  color: var(--muted);
}

.version-pill.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}

.result p {
  margin: 8px 0;
}

.result ul {
  margin: 8px 0;
  padding-left: 22px;
}

.result li + li {
  margin-top: 5px;
}

.diagram-figure {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbfe;
}

.mermaid-diagram {
  display: grid;
  justify-items: center;
  min-height: 80px;
  overflow-x: auto;
}

.mermaid-diagram svg {
  max-width: 100%;
  height: auto;
}

.diagram-figure figcaption,
.diagram-fallback {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.diagram-fallback {
  padding: 10px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: 2;
    min-height: 0;
    max-height: 260px;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .workspace {
    min-height: 100dvh;
  }

  .toolbox-page,
  .prompt-library-page {
    min-height: 100dvh;
    padding: 72px 16px 28px;
  }

  .toolbox-heading h1 {
    font-size: 26px;
  }

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

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

  .mobile-projects-button {
    position: fixed;
    z-index: 5;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-color: var(--line);
    background: var(--chip-bg);
    box-shadow: var(--shadow-soft);
  }

  .conversation-scroll {
    padding: 52px 12px 150px;
  }

  .welcome-screen {
    inset: 36px 0 136px;
    padding: 20px 14px;
  }

  .welcome-inner {
    gap: 20px;
  }

  .welcome-inner h1 {
    font-size: 28px;
  }

  .example-list {
    justify-content: flex-start;
  }

  .example-line {
    flex: 1 1 auto;
    min-width: 142px;
    font-size: 14px;
  }

  .composer-dock {
    padding: 10px;
  }

  .composer-card {
    min-height: 104px;
    padding: 14px 14px 10px;
    border-radius: 22px;
  }

  .field-grid,
  .requirement-summary,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .actions button {
    flex: 1 1 auto;
  }
}

/* Unified creation home: one task entry, progressive disclosure after submit. */
.app-shell.home-mode .workspace,
.toolbox-page {
  background: #f7f8fb;
}

.toolbox-page {
  min-height: 100dvh;
  padding: 0;
}

.home-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100dvh;
  padding: 20px 28px 40px;
}

.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 960px);
  min-height: 48px;
  margin: 0 auto;
}

.home-brand {
  display: grid;
  justify-items: start;
  gap: 6px;
  color: var(--ink);
}

.home-brand-wordmark {
  height: auto;
  width: min(168px, 42vw);
  max-height: 34px;
  display: block;
  object-fit: contain;
  background: transparent;
}

.home-brand-tagline {
  display: block;
  padding-left: 2px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.home-history-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-color: var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: #fff;
}

.home-history-button:hover {
  border-color: rgba(31, 94, 255, 0.35);
  color: var(--accent);
  background: var(--accent-soft);
}

.home-history-button .icon {
  width: 20px;
  height: 20px;
}

.home-stage {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 22px;
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 28px 0 72px;
}

.home-intro {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 6px;
  text-align: center;
}

.home-intro .home-kicker,
.home-intro p {
  margin: 0;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: none;
}

.home-intro h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.home-intro .home-sub {
  max-width: 28em;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 500;
}

.home-composer {
  display: grid;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(18, 40, 80, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.home-composer:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(31, 94, 255, 0.14), var(--shadow);
}

.home-composer textarea {
  min-height: 112px;
  max-height: 240px;
  padding: 20px 22px 12px;
  resize: vertical;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
  line-height: 1.7;
}

.home-composer textarea::placeholder {
  color: #6b7280;
}

.home-composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  padding: 8px 12px 8px 20px;
  border-top: 1px solid #e8edf5;
  color: var(--muted);
  font-size: 14px;
}

.home-notice {
  margin-top: 12px;
  text-align: left;
}

.home-notice[hidden] {
  display: none !important;
}

.home-send-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 8px 16px rgba(31, 94, 255, 0.28);
}

.home-send-button:hover {
  background: var(--accent-strong);
}

.home-send-button .icon {
  width: 18px;
  height: 18px;
}

.home-prompt-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.home-prompt-shortcut {
  min-height: 46px;
  padding: 0 12px;
  border-color: var(--line);
  border-radius: 12px;
  color: #1f2937;
  background: #eef2f6;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-prompt-shortcut:hover {
  border-color: rgba(31, 94, 255, 0.35);
  color: var(--accent-strong);
  background: #e5eef8;
}

.home-more-prompts {
  min-height: 36px;
  padding: 0 8px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}

.home-more-prompts:hover {
  color: var(--accent-strong);
  background: transparent;
}

.prompt-editor-modal[hidden] {
  display: none;
}

.prompt-editor-modal {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(35, 47, 63, 0.42);
}

.prompt-editor-dialog {
  display: grid;
  grid-template-rows: auto minmax(280px, 1fr) auto;
  gap: 18px;
  width: min(680px, 100%);
  max-height: min(760px, calc(100dvh - 48px));
  padding: 22px;
  border: 1px solid #d5e0eb;
  border-radius: 10px;
  background: #f8fafc;
  box-shadow: 0 24px 64px rgba(24, 38, 56, 0.26);
}

.prompt-editor-header,
.prompt-editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.prompt-editor-header h2,
.prompt-editor-scene {
  margin: 0;
}

.prompt-editor-header h2 {
  color: #1c2b3b;
  font-size: 20px;
}

.prompt-editor-scene {
  margin-bottom: 5px;
  color: #6b7d90;
  font-size: 13px;
}

.prompt-editor-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-color: #dbe4ed;
  border-radius: 8px;
  color: #64758a;
  background: #edf2f6;
}

.prompt-editor-close:hover,
.prompt-editor-cancel:hover {
  color: #2a618f;
  background: #e5eef8;
}

.prompt-editor-input,
#promptEditorInput {
  width: 100%;
  min-height: 280px;
  resize: vertical;
  padding: 15px;
  border: 1px solid #cfdbe7;
  border-radius: 8px;
  outline: 0;
  color: #223246;
  background: #ffffff;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.65;
}

#promptEditorInput:focus {
  border-color: #77a7d7;
  box-shadow: 0 0 0 3px rgba(75, 135, 201, 0.14);
}

.prompt-editor-actions {
  justify-content: flex-end;
}

.prompt-editor-cancel,
.prompt-editor-import {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 8px;
}

.prompt-editor-cancel {
  color: #64758a;
  background: transparent;
}

.prompt-editor-import {
  color: #ffffff;
  background: #3679bd;
}

.prompt-editor-import:hover {
  background: #2869aa;
}

@media (max-width: 680px) {
  .home-shell {
    padding: 14px 16px 28px;
  }

  .home-stage {
    align-content: start;
    padding: 84px 0 36px;
  }

  .home-intro h1 {
    font-size: 28px;
  }

  .home-prompt-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-composer textarea {
    min-height: 116px;
  }

  .prompt-editor-modal {
    align-items: end;
    padding: 12px;
  }

  .prompt-editor-dialog {
    grid-template-rows: auto minmax(240px, 1fr) auto;
    max-height: calc(100dvh - 24px);
    padding: 18px;
  }

  #promptEditorInput {
    min-height: 240px;
  }
}

/* Fulcrum AI Assistant UI Kit theme */
.icon {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

button {
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease,
    box-shadow 160ms ease;
}

button:focus-visible,
textarea:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(36, 56, 230, 0.2);
}

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

.doubao-shell {
  background: transparent;
}

.sidebar {
  gap: 18px;
  min-height: 100vh;
  padding: 20px 16px 16px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
}

.search-box {
  grid-template-columns: 18px minmax(0, 1fr) auto;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #7a8699;
}

.search-box:focus-within {
  border-color: rgba(31, 94, 255, 0.4);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 94, 255, 0.12);
}

.search-box input::placeholder {
  color: #918b99;
}

kbd {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #857f8e;
  background: rgba(255, 255, 255, 0.72);
  font-size: 10px;
}

.assistant-entry {
  display: grid;
  justify-items: start;
  gap: 8px;
  min-height: 0;
  padding: 8px 6px 12px;
}

.sidebar-wordmark {
  display: block;
  width: min(100%, 148px);
  height: auto;
  object-fit: contain;
  background: transparent;
}

.sidebar-tagline {
  display: block;
  padding-left: 2px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.assistant-entry > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.assistant-entry strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.assistant-entry div span {
  color: var(--muted);
  font-size: 13px;
}

.avatar,
.toolbox-brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.side-nav {
  gap: 5px;
}

.side-action {
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  min-height: 42px;
  padding: 0 11px;
  border-radius: 12px;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
}

.side-action:hover {
  background: rgba(31, 94, 255, 0.08);
  color: var(--ink);
}

.side-action.active {
  border-left: 3px solid var(--accent);
  padding-left: 8px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-weight: 600;
}

.history-section {
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.sidebar-title {
  padding: 14px 10px 2px;
  color: #8a8491;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.project-list {
  gap: 5px;
}

.project-item {
  gap: 4px;
  padding: 10px 11px;
  border-radius: 10px;
  color: #4b4651;
}

.project-item:hover {
  border-color: transparent;
  background: rgba(24, 0, 72, 0.05);
}

.project-item[hidden] {
  display: none;
}

.project-meta {
  font-size: 11px;
}

.user-entry {
  gap: 10px;
  min-height: 52px;
  margin-top: auto;
  padding: 8px 9px;
  border-top: 1px solid var(--line);
}

.user-dot {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: #176e71;
  background: rgba(46, 117, 182, 0.13);
}

.user-entry > span:last-child {
  display: grid;
  gap: 2px;
}

.user-entry strong {
  font-size: 12px;
  font-weight: 600;
}

.user-entry small {
  color: var(--muted);
  font-size: 10px;
}

.workspace {
  min-width: 0;
  background: transparent;
}

.toolbox-page,
.prompt-library-page {
  min-height: 100vh;
  padding: 22px 48px 56px;
  background: transparent;
}

.toolbox-inner,
.prompt-library-content {
  width: min(100%, 1180px);
}

.toolbox-inner {
  gap: 0;
  padding: 0;
}

.toolbox-homebar {
  min-height: 64px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.toolbox-brand {
  gap: 11px;
}

.toolbox-brand > div {
  display: grid;
  gap: 1px;
}

.toolbox-brand strong {
  color: var(--ink);
  font-size: 15px;
}

.toolbox-brand div span {
  color: var(--muted);
  font-size: 11px;
}

.workspace-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(46, 117, 182, 0.18);
  border-radius: 999px;
  color: #266f71;
  background: rgba(46, 117, 182, 0.08);
  font-size: 11px;
}

.workspace-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(46, 117, 182, 0.12);
}

.toolbox-home-heading {
  gap: 10px;
  max-width: 680px;
  margin: 70px 0 38px;
}

.toolbox-heading p {
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.toolbox-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.toolbox-heading-sub {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 500;
}

.toolbox-home-heading h1 {
  color: var(--ink);
  font-size: 40px;
  line-height: 1.18;
  font-weight: 600;
}

.toolbox-home-heading > span {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.toolbox-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tool-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  column-gap: 16px;
  row-gap: 12px;
  min-height: 310px;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.tool-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
  content: "";
}

.tool-card:nth-child(1),
.tool-card:nth-child(2) {
  background: #fff;
}

.tool-card:nth-child(2)::before {
  background: var(--teal);
}

.tool-card:hover,
.tool-card:nth-child(2):hover {
  border-color: rgba(36, 56, 230, 0.26);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.tool-card:nth-child(2):hover {
  border-color: rgba(46, 117, 182, 0.3);
}

.tool-card-icon {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, var(--indigo), var(--accent));
  box-shadow: 0 10px 20px rgba(36, 56, 230, 0.2);
}

.tool-card:nth-child(2) .tool-card-icon {
  background: linear-gradient(145deg, #59a1dd, var(--teal));
  box-shadow: 0 10px 20px rgba(46, 117, 182, 0.18);
}

.tool-card-icon .icon {
  width: 23px;
  height: 23px;
}

.tool-card-index {
  align-self: end;
  color: #837b8d;
  font-size: 10px;
  font-weight: 700;
}

.tool-card:nth-child(2) .tool-card-index,
.tool-card:nth-child(2) .tool-card-action {
  color: #245f94 !important;
}

.tool-card > strong,
.tool-card > span:not(.tool-card-icon) {
  grid-column: 1 / -1;
}

.tool-card > strong {
  margin-top: 16px;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.35;
}

.tool-card > strong + span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.tool-card-meta,
.workflow-preview {
  grid-column: 1 / -1;
  gap: 7px;
}

.tool-card-meta span,
.workflow-preview span {
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 7px;
  color: #655f6d;
  background: rgba(24, 0, 72, 0.05);
}

.tool-card:nth-child(2) .workflow-preview span {
  color: #245f94;
  background: rgba(46, 117, 182, 0.09);
}

.workflow-preview i {
  color: #a29ba9;
}

.tool-card-action {
  grid-column: 1 / -1;
  min-height: 42px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--accent-strong) !important;
  font-size: 13px;
}

.tool-card-action .icon {
  width: 17px;
  height: 17px;
  transition: transform 160ms ease;
}

.tool-card:hover .tool-card-action .icon {
  transform: translateX(3px);
}

.prompt-library-layout {
  gap: 20px;
}

.prompt-library-layout .toolbox-heading {
  margin-top: 34px;
  gap: 12px;
}

.toolbox-heading h1 {
  color: var(--ink);
  font-size: clamp(30px, 3.8vw, 42px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.toolbox-heading p {
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.back-link {
  min-height: 36px;
  border-radius: 9px;
  color: var(--accent-strong);
}

.prompt-search {
  min-height: 52px;
  border-color: var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.prompt-filter {
  gap: 10px;
}

.prompt-filter-option {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #334155;
  background: #eef2f6;
  font-size: 14px;
  font-weight: 600;
}

.prompt-filter-option:hover,
.prompt-filter-option.active {
  border-color: rgba(31, 94, 255, 0.28);
  color: #fff;
  background: var(--accent);
}

.prompt-grid {
  gap: 18px;
}

.prompt-card {
  gap: 14px;
  padding: 22px;
  border-color: var(--line);
  border-radius: 16px;
  background: #f4f7fa;
  box-shadow: var(--shadow-soft);
}

.prompt-card:hover {
  border-color: rgba(31, 94, 255, 0.28);
  background: #edf3f9;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.prompt-category {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.prompt-copy-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #475569;
  background: #f1f5f9;
}

.prompt-copy-icon:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.prompt-card h2 {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.prompt-fields i,
.prompt-text {
  border-radius: 999px;
  color: #334155;
  background: #eef2f6;
}

.prompt-text {
  border-radius: 12px;
  background: #f8fafc;
}

.prompt-start,
.prompt-details summary {
  color: var(--accent);
  font-weight: 700;
}

.prompt-start {
  color: #fff;
  background: var(--accent);
}

.chat-stage {
  background: transparent;
}

.conversation-scroll {
  padding: 48px 40px 170px;
}

.welcome-screen {
  inset: 0 0 142px;
  padding: 52px 32px 28px;
  pointer-events: auto;
}

.welcome-inner {
  gap: 18px;
  width: min(100%, 820px);
}

.welcome-mark {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  margin-bottom: 8px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.welcome-inner h1 {
  color: var(--ink);
  font-size: clamp(28px, 3.5vw, 38px);
  line-height: 1.3;
  font-weight: 800;
}

.welcome-inner > p {
  max-width: 560px;
  margin: -4px 0 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}

.example-list {
  gap: 8px;
}

.example-line {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #55505b;
  background: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.example-line:hover {
  border-color: rgba(36, 56, 230, 0.25);
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.messages,
.dynamic-panel {
  width: min(100%, 920px);
}

.message {
  padding: 14px 16px;
  border-color: var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-size: 16px;
  line-height: 1.7;
}

.message.user {
  border-color: rgba(31, 94, 255, 0.2);
  color: #152238;
  background: var(--accent-soft);
}

.message.assistant {
  border-color: var(--line);
  background: #fff;
}

.panel {
  padding: 20px;
  border-color: var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.panel h2,
.panel h3 {
  color: var(--ink);
}

.workflow-stage,
.workflow-version,
.workflow-revision button {
  border-radius: 8px;
  color: #69636f;
  background: rgba(24, 0, 72, 0.05);
}

.workflow-stage.active,
.workflow-version.active {
  border-color: rgba(36, 56, 230, 0.24);
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.workflow-quality {
  border-left-color: var(--warn);
  border-radius: 0 8px 8px 0;
  color: #765021;
  background: #fff7ea;
}

.choice-option,
.intent-option {
  border-color: var(--line);
  border-radius: 10px;
  background: rgba(24, 0, 72, 0.035);
}

.choice-option:hover,
.choice-option.selected,
.intent-option:hover {
  border-color: rgba(36, 56, 230, 0.3);
  background: var(--accent-soft);
}

.choice-key {
  color: var(--accent-strong);
  background: rgba(36, 56, 230, 0.13);
}

.intent-option strong,
.question-heading {
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  min-height: 42px;
  border-color: var(--line);
  border-radius: 10px;
  background: #fcfbfd;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(36, 56, 230, 0.38);
  background: #fff;
}

.requirement-summary div {
  border-color: var(--line);
  border-radius: 10px;
  background: rgba(24, 0, 72, 0.035);
}

.actions button {
  min-height: 38px;
  border-radius: 9px;
  color: #544661;
  background: var(--chip-bg);
}

.actions button:hover {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.primary {
  border-color: var(--accent);
  background: var(--accent) !important;
}

.primary:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong) !important;
}

.composer-dock {
  padding: 12px 28px 18px;
  background: rgba(248, 247, 250, 0.9);
  backdrop-filter: blur(16px);
}

.composer-card {
  width: min(100%, 920px);
  min-height: 108px;
  padding: 15px 16px 11px;
  border-color: rgba(36, 56, 230, 0.24);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 25px -5px rgba(14, 0, 41, 0.1), 0 12px 10px -6px rgba(14, 0, 41, 0.08);
}

#messageInput {
  color: var(--ink);
}

.send-button {
  width: 42px;
  min-height: 42px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 8px 16px rgba(31, 94, 255, 0.28);
}

.send-button:hover {
  background: var(--accent-strong);
}

.send-button .icon {
  width: 18px;
  height: 18px;
}

.result {
  border-color: var(--line);
  border-radius: 12px;
  color: #1f2937;
  background: #fcfdff;
  font-size: 16px;
  line-height: 1.7;
}

.result h2,
.result th {
  color: var(--ink);
}

.result th {
  background: var(--accent-soft);
}

.version-pill {
  border-radius: 8px;
}

.version-pill.active {
  border-color: rgba(36, 56, 230, 0.35);
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.diagram-figure {
  border-radius: 10px;
  background: #fcfbfd;
}

.mobile-projects-button {
  gap: 7px;
}

/* Fusion component enrichment: desktop surfaces, states, and controls */
.app-shell.home-mode .workspace,
.toolbox-page {
  background: #f7f8fb;
}

.toolbox-home-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-icon-button,
.header-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 10px;
}

.header-icon-button {
  width: 38px;
  padding: 0;
  border-color: var(--line);
  color: #5f5868;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0.75px 0.5px rgba(14, 0, 41, 0.04);
}

.header-icon-button:hover {
  border-color: rgba(36, 56, 230, 0.26);
  color: var(--accent-strong);
  background: #fff;
  box-shadow: 0 10px 15px -3px rgba(14, 0, 41, 0.08), 0 4px 6px -4px rgba(14, 0, 41, 0.08);
}

.header-primary-button {
  gap: 8px;
  padding: 0 14px;
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
  box-shadow: 0 1px 2px -1px rgba(14, 0, 41, 0.08), 0 1px 4px -1px rgba(14, 0, 41, 0.08);
}

.header-primary-button:hover {
  border-color: var(--accent-strong);
  color: #fff;
  background: var(--accent-strong);
  box-shadow: 0 10px 15px -3px rgba(14, 0, 41, 0.12), 0 4px 6px -4px rgba(14, 0, 41, 0.1);
}

.header-icon-button .icon,
.header-primary-button .icon,
.section-action .icon {
  width: 17px;
  height: 17px;
}

.tool-card {
  min-height: 382px;
  border-color: #e0dfe2;
  border-radius: 12px;
  box-shadow: 0 0.75px 0.5px rgba(14, 0, 41, 0.04);
}

.tool-card:nth-child(1),
.tool-card:nth-child(2) {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
}

.tool-card:hover,
.tool-card:nth-child(2):hover {
  background: rgba(255, 255, 255, 0.96);
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(14, 0, 41, 0.05), 0 12px 10px -6px rgba(14, 0, 41, 0.05);
}

.tool-card:focus-visible,
.recent-project-card:focus-visible,
.example-line:focus-visible,
.header-icon-button:focus-visible,
.header-primary-button:focus-visible,
.section-action:focus-visible,
.composer-card:focus-within {
  outline: 2px solid #fff;
  outline-offset: 1px;
  box-shadow: 0 0 0 4px rgba(36, 56, 230, 0.38), 0 10px 15px -3px rgba(14, 0, 41, 0.08),
    0 4px 6px -4px rgba(14, 0, 41, 0.08);
}

.prompt-preview {
  grid-column: 1 / -1;
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(24, 0, 72, 0.09);
  border-radius: 10px;
  background: rgba(24, 0, 72, 0.08);
}

.prompt-preview > span {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 10px;
  color: #4f4858;
  background: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  text-align: left;
}

.prompt-preview i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.prompt-preview b {
  color: #857d8e;
  font-size: 10px;
  font-weight: 500;
}

.recent-projects-section {
  margin-top: 38px;
  padding-bottom: 44px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.section-header > div {
  display: grid;
  gap: 3px;
}

.section-header span {
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 700;
}

.section-header h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.section-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 11px;
  border-color: var(--line);
  border-radius: 9px;
  color: #5f5868;
  background: rgba(255, 255, 255, 0.72);
}

.section-action:hover {
  border-color: rgba(36, 56, 230, 0.24);
  color: var(--accent-strong);
  background: #fff;
}

.recent-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.recent-project-card {
  display: grid;
  align-content: space-between;
  gap: 16px;
  min-height: 142px;
  padding: 18px;
  border: 1px solid #e0dfe2;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0.75px 0.5px rgba(14, 0, 41, 0.04);
  text-align: left;
}

.recent-project-card:hover {
  border-color: rgba(36, 56, 230, 0.25);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(14, 0, 41, 0.08), 0 4px 6px -4px rgba(14, 0, 41, 0.08);
}

.recent-project-top,
.recent-project-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.recent-project-top i {
  color: #9b93a4;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.recent-project-top em {
  padding: 4px 7px;
  border-radius: 7px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 10px;
  font-style: normal;
}

.recent-project-card.tone-2 .recent-project-top em {
  color: #245f94;
  background: rgba(46, 117, 182, 0.1);
}

.recent-project-card.tone-3 .recent-project-top em {
  color: #9b3962;
  background: rgba(215, 75, 129, 0.1);
}

.recent-project-card > strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-project-foot small {
  color: #857e8d;
  font-size: 10px;
}

.recent-project-foot b,
.recent-project-empty > b {
  color: var(--accent-strong);
  font-size: 16px;
}

.recent-project-empty {
  grid-column: 1 / -1;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  align-content: center;
  min-height: 104px;
}

.recent-project-empty > span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.recent-project-empty small {
  color: var(--muted);
}

.recent-project-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #fff;
  background: var(--accent);
  font-size: 21px;
}

.welcome-flow {
  display: grid;
  grid-template-columns: auto minmax(18px, 1fr) auto minmax(18px, 1fr) auto minmax(18px, 1fr) auto;
  align-items: center;
  width: min(100%, 760px);
  margin: 2px 0 8px;
  padding: 13px 16px;
  border: 1px solid #e0dfe2;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 0.75px 0.5px rgba(14, 0, 41, 0.04);
}

.welcome-flow span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #77707f;
  font-size: 11px;
  white-space: nowrap;
}

.welcome-flow span b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: #746d7d;
  background: rgba(24, 0, 72, 0.06);
  font-size: 9px;
}

.welcome-flow span.active {
  color: var(--accent-strong);
  font-weight: 600;
}

.welcome-flow span.active b {
  color: #fff;
  background: var(--accent);
}

.welcome-flow > i {
  height: 1px;
  margin: 0 9px;
  background: #ddd8e2;
}

.example-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 760px);
}

.example-line {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  min-height: 74px;
  padding: 12px;
  border-color: #e0dfe2;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 0.75px 0.5px rgba(14, 0, 41, 0.04);
}

.example-line .icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.example-line span {
  line-height: 1.45;
}

.example-line b {
  color: #aaa3b1;
  font-size: 16px;
  transition: transform 160ms ease;
}

.example-line:hover {
  background: #fff;
  box-shadow: 0 10px 15px -3px rgba(14, 0, 41, 0.08), 0 4px 6px -4px rgba(14, 0, 41, 0.08);
}

.example-line:hover b {
  color: var(--accent-strong);
  transform: translateX(2px);
}

.composer-card {
  border-color: #e0dfe2;
  border-radius: 24px;
  box-shadow: 0 20px 25px -5px rgba(14, 0, 41, 0.04), 0 12px 10px -6px rgba(14, 0, 41, 0.04);
}

.composer-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(36, 56, 230, 0.16);
  border-radius: 999px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 11px;
}

.composer-mode .icon {
  width: 14px;
  height: 14px;
}

.message-count {
  color: #928b9a;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: 2;
    max-height: none;
    padding: 18px 14px;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .toolbox-page,
  .prompt-library-page {
    padding: 18px 16px 32px;
  }

  .toolbox-homebar {
    min-height: 58px;
  }

  .workspace-status {
    padding: 0 8px;
  }

  .toolbox-home-heading {
    margin: 46px 0 28px;
  }

  .toolbox-home-heading h1 {
    font-size: 32px;
  }

  .toolbox-grid,
  .prompt-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: 286px;
    padding: 22px;
  }

  .mobile-projects-button {
    top: 12px;
    left: 12px;
    min-height: 38px;
    padding: 0 10px;
    border-color: var(--line);
    border-radius: 10px;
    color: var(--accent-strong);
    background: #fff;
    box-shadow: var(--shadow-soft);
  }

  .conversation-scroll {
    padding: 58px 12px 150px;
  }

  .welcome-screen {
    inset: 42px 0 138px;
    padding: 18px 14px;
  }

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

  .welcome-inner h1 {
    font-size: 28px;
  }

  .welcome-inner > p {
    font-size: 13px;
  }

  .example-list {
    display: grid;
    width: 100%;
  }

  .example-line {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .composer-dock {
    padding: 10px;
  }

  .composer-card {
    min-height: 102px;
    border-radius: 16px;
  }

  .field-grid,
  .requirement-summary,
  .choice-grid {
    grid-template-columns: 1fr;
  }
}
