/* tool marketplace cards and the compact empty conversation. Load order matters: later files override earlier ones. */
/* Tool marketplace cards (same icons and tones as the CloudForce AI 工作入口). */
.tone-cyan{--tool-color:#008ca9;--tool-bg:#e5f7fb}
.tone-blue{--tool-color:#3c75bc;--tool-bg:#edf3fc}
.tone-amber{--tool-color:#a36a20;--tool-bg:#fff3e4}
.tone-green{--tool-color:#008c86;--tool-bg:#e7f7f3}
.tone-purple{--tool-color:#7261ad;--tool-bg:#f1eef9}
.tone-orange{--tool-color:#c47745;--tool-bg:#fff1e8}
.tone-gold{--tool-color:#b67b24;--tool-bg:#fff5e3}
body.dark [class*="tone-"]{--tool-bg:color-mix(in srgb,var(--tool-color) 22%,var(--fg-surface))}
body.dark .tool-icon{color:color-mix(in srgb,var(--tool-color) 60%,#fff)}
.category-chips { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px; }
.category-chips button { border:1px solid var(--fg-line); background:var(--fg-surface); color:var(--fg-text); border-radius:var(--cf-radius-sm); padding:8px 16px; }
.category-chips button.active { background:var(--fg-accent); border-color:var(--fg-accent); color:#fff; }
.plugin-card { display:flex; flex-direction:column; gap:8px; padding:24px; background:var(--fg-surface); border:1px solid var(--fg-line); border-radius:var(--cf-radius-lg); min-width:0; }
.plugin-card[hidden] { display:none; }
.plugin-card h2 { margin:8px 0 0; font-size:18px; }
.plugin-desc { margin:0; color:var(--fg-muted); flex:1; }
.plugin-top { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.plugin-top .badge { margin-left:auto; }
.tool-icon { display:inline-grid; place-items:center; width:48px; height:48px; border-radius:var(--cf-radius-md); background:var(--tool-bg); color:var(--tool-color); flex:none; }
.tool-icon svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.tool-category { font-size:12px; color:var(--fg-muted); }
.plugin-bottom { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; border-top:1px solid var(--fg-line); padding-top:12px; margin-top:8px; }
.plugin-status { font-size:12px; color:var(--fg-muted); }
.plugin-status::before { content:''; display:inline-block; width:6px; height:6px; border-radius:50%; background:#2f9e6a; margin-right:6px; vertical-align:middle; }
.plugin-status.progress::before { background:#d08a1c; }
.plugin-status:empty { display:none; }
.plugin-actions { display:flex; gap:8px; flex-wrap:wrap; }
.plugin-detail ul { margin:0; padding-left:20px; }
@media(max-width:1000px) { .market-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) {
  .market-grid { grid-template-columns:1fr; }
  .record { grid-template-columns:1fr; gap:4px; }
  .record dd { margin-bottom:12px; }
  .layout.nav-collapsed .sidebar { display:none; }
  .layout { display:block; }
  .layout .sidebar { position:static; width:100%; height:auto; }
  .layout .content { padding:20px 12px; }
  .topbar .brand-copy { display:none; }
  .topbar .vendor-logo { max-width:160px; }
}
.editor .toolbar { flex-wrap:wrap; }
.nav-collapsed .sidebar .account-menu { overflow-wrap:anywhere; }
@media(max-width:370px) { .topbar .vendor-logo { max-width:130px; } .top-actions { gap:4px; } .top-actions button { padding:6px; } }

progress { display:block; width:100%; height:10px; margin:10px 0 20px; accent-color:var(--cf-cyan-dark); }
.task-chips { margin:18px 0; flex-wrap:wrap; }
.plus-menu { margin:12px 0; }
.form-status details { font-weight:normal; }
.form-status pre, .modal pre { white-space:pre-wrap; overflow-wrap:anywhere; }
.editor button.primary { opacity:1; color:var(--cf-surface); background:var(--cf-cyan-dark); }

/* Round 3: compact empty conversation and explicit add button. */
.real-home .thread:empty { display:none; }
.real-home .thread { min-height:0; }
.plus-menu { margin:8px 0; }
.plus-menu > button { font-size:24px; min-width:44px; min-height:44px; }
#plus-options:not([hidden]) { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }

