/* Cell3D — Help / Manual page styles.
   Extracted from Help.html (kept identical); new rules for the
   manual rebuild (specs, availability, placeholder figures, tool grid)
   are appended at the bottom. */


  .cw-wrap{
    max-width: var(--cw-max);
    margin: 0 auto;
    padding: 40px 18px 56px;
  }

  /* Simple, clean hero (no gradients) */
  .cw-hero{
    border-radius: 22px;
    overflow: hidden;
    padding: 26px 22px;
    background: var(--cw-bg);
    border: 1px solid var(--cw-border);
    box-shadow: 0 12px 34px rgba(15, 23, 42, .08);
  }

  .cw-badge{
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(2,6,23,.04);
    border: 1px solid rgba(2,6,23,.08);
    font-size: 12px;
    color: rgba(2,6,23,.82);
  }

  .cw-muted{ color: var(--cw-muted); }

  .cw-grid{
    display: grid;
    gap: 16px;
    margin-top: 18px;
    align-items: start;
    /* minmax(0,1fr): a plain 1fr track has min-width:auto, so wide content
       (the Pipelines <pre> code blocks) forces the track past the container
       and html/body's overflow-x:clip cuts the text off unreachably. */
    grid-template-columns: 260px minmax(0, 1fr);
  }

  /* Grid items default to min-width:auto too — let them shrink. */
  .cw-grid > *{ min-width: 0; }

  .cw-left{
    position: sticky;
    top: 120px;
  }

  .cw-card{
    border-radius: var(--cw-radius) !important;
    border: 1px solid var(--cw-border) !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
  }

  .cw-section{ margin-top: 22px; }

  .cw-kbd{
    padding: 2px 8px;
    border-radius: 8px;
    border: 1px solid rgba(2,6,23,.10);
    background: rgba(2,6,23,.03);
    font-size: 12px;
  }

  @media (max-width: 992px){
    .cw-grid{ grid-template-columns: minmax(0, 1fr); }
    .cw-left{ position: static; }
  }


  .ant-typography{ color: rgba(2,6,23,.92); }
  .ant-divider-inner-text h2{ margin: 0; font-weight: 700; }
  .ant-anchor{ background: transparent; }
  
  /* anchor active highlight */
.cw-left .ant-anchor-link-title{
  border-radius: 10px;
  padding: 6px 10px;
  transition: background .15s ease;
}
.cw-left .ant-anchor-link-active > .ant-anchor-link-title{
  background: rgba(22,119,255,.10);
  color: rgba(2,6,23,.92);
}
  

.cw-feature--wide{
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.06);
  background: linear-gradient(180deg, rgba(24,144,255,.08), rgba(24,144,255,.02));
}
.cw-feature--wide .ant-tag{
  border-color: rgba(24,144,255,.25);
}


.ant-row .ant-col{
  display: block;         
}
.ant-col .cw-feature--eq{
  width: 100%;
  height: 100%;
}


.ant-col:has(.cw-feature--eq){
  display: flex;
}
.ant-col:has(.cw-feature--eq) > .ant-card{
  width: 100%;
  height: 100%;
}


.cw-feature--eq .ant-card-body{
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cw-feature--eq .cw-feature-desc{
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;

  display: -webkit-box;
  -webkit-line-clamp: 3;        
  -webkit-box-orient: vertical;
  overflow: hidden;

  min-height: calc(1.6em * 3);
}


.cw-feature--wide{
  height: auto !important;
}
.cw-feature--wide .ant-card-body{
  height: auto !important;
}


.cw-fig{
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid rgba(2,6,23,.10);
  overflow: hidden;
  background: #fff;
}

.cw-fig .ant-image{
  display: block;
  width: 100%;
}

.cw-fig img{
  width: 100%;
  height: auto;
  display: block;
  transition: transform .25s ease;
  transform-origin: center center;
  cursor: zoom-in;
}

.cw-fig:hover img{
  transform: scale(1.05);
}



/* Better typography for biomedical manual text */
.cw-prose{
  text-align: justify;
  text-justify: inter-word;
  white-space: pre-wrap;   /* 支持 \n 换行 */
  line-height: 1.75;
  word-break: break-word;
}
.cw-prose a{
  color: #1677ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cw-prose a:hover{
  text-decoration-thickness: 2px;
}
ol{
    list-style: none;
}


#compat .ant-table-thead > tr > th{
  background: #fafafa;
  font-weight: 600;
}

.cw-ok{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}

.cw-check{
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: #52c41a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}

.cw-na{
  color: rgba(0,0,0,.45);
  font-variant-numeric: tabular-nums;
}


.cw-figcap{
  padding: 10px 12px;
  border-top: 1px solid rgba(2,6,23,.08);
  background: rgba(2,6,23,.02);
  font-size: 13px;
  line-height: 1.55;
}
.cw-figcap-label{
  font-weight: 600;
  color: rgba(2,6,23,.88);
  margin-right: 6px;
}


.cw-steps{
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.cw-step{
  padding: 10px 12px;
  border: 1px solid rgba(2,6,23,.08);
  border-radius: 12px;
  background: rgba(2,6,23,.015);
  margin-bottom: 10px;
}
.cw-step-title{
  font-weight: 700;
  margin-bottom: 4px;
}
.cw-badge-rec {
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 11px;
  border-radius: 10px;
  background: #e6f4ff;
  color: #1677ff;
}

/* ---- Preset Examples grid ---- */
.cw-ex-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px){
  .cw-ex-grid{ grid-template-columns: 1fr; }
}
.cw-ex-card{
  display: flex;
  flex-direction: column;
}
.cw-ex-card .ant-card-body{
  display: flex;
  flex-direction: column;
  height: 100%;
}
.cw-ex-head{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.cw-ex-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e6f4ff 0%, #f0f5ff 100%);
  border: 1px solid rgba(22, 119, 255, .16);
  box-shadow: 0 4px 10px rgba(22, 119, 255, .10);
}
.cw-ex-icon img{
  width: 24px;
  height: 24px;
  display: block;
}
.cw-ex-card:hover .cw-ex-icon{
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 6px 14px rgba(22, 119, 255, .18);
}
.cw-ex-icon{
  transition: transform .18s ease, box-shadow .18s ease;
}
.cw-ex-badge{
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  background: #e6f4ff;
  color: #1677ff;
}
.cw-ex-title{
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px 0;
}
.cw-ex-card .ant-btn{
  margin-top: auto;
  align-self: flex-start;
}

/* ===== "How to build this view yourself" — numbered click path ===== */
.cw-steps{
  padding: 14px 18px 6px;
  border-radius: 10px;
  background: #f7fafc;
  border: 1px solid rgba(2, 48, 71, .09);
  border-left: 3px solid #219EBC;
}
.cw-steps > h4{ margin-top: 0 !important; }
.cw-steps-list{
  margin: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: cw-step;
}
.cw-steps-list > li{
  counter-increment: cw-step;
  position: relative;
  padding: 0 0 12px 34px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #40525f;
}
.cw-steps-list > li:last-child{ padding-bottom: 4px; }
.cw-steps-list > li::before{
  content: counter(cw-step);
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #e6f4ff;
  color: #0f7f9c;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* connector line between the step bullets */
.cw-steps-list > li:not(:last-child)::after{
  content: "";
  position: absolute;
  left: 10.5px;
  top: 28px;
  bottom: 3px;
  width: 1px;
  background: rgba(33, 158, 188, .28);
}
.cw-steps-list b{ color: #023047; font-weight: 600; }
.cw-steps-list i{ color: #40525f; }
.cw-steps-list code{
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(33, 158, 188, .1);
  color: #0f6f88;
  font-size: 12.5px;
  font-family: Consolas, "Courier New", monospace;
}

/* =====================================================================
   Manual rebuild — specs strip, availability, placeholder figures,
   analysis-tool grid. Appended for the tool-by-tool Help.
   ===================================================================== */

/* ===== Pipelines (code blocks / quick start / dependency / portal shell) ===== */
.api-root { padding: 0; }
.api-header-title { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.api-header-subtitle { color: #666; margin-bottom: 24px; }
.api-code-block { margin-top: 8px; margin-bottom: 16px; border-radius: 8px; background: #0b1020; color: #f8f8f2; padding: 8px 12px 12px; overflow-x: auto; font-size: 13px; font-family: Consolas, "Courier New", monospace; }
.api-code-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.api-code-lang-label { font-size: 11px; color: #aaa; }
.api-copy-btn { font-size: 11px; padding: 2px 10px; border-radius: 999px; border: none; cursor: pointer; background: rgba(255,255,255,0.1); color: #eee; }
.api-copy-btn:hover { background: rgba(255,255,255,0.22); }
.api-code-block code { white-space: pre; }
.api-code-block code .token-comment { color: #6e995a !important; opacity: 0.9; font-style: italic; }
.api-step-desc { margin-bottom: 6px; color: #555; }
.api-quickstart { margin-bottom: 16px; padding: 14px 18px; border-radius: 8px; background: #f5f7ff; border: 1px solid #d9e2ff; }
.api-quickstart-title { font-weight: 600; font-size: 14px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.api-quickstart-title span.icon-dot { width: 8px; height: 8px; border-radius: 999px; background: #597ef7; }
.api-quickstart-body { font-size: 12px; color: #555; }
.api-quickstart-body ul { padding-left: 18px; margin: 4px 0 0; }
.api-steps-toolbar { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 12px; }
.api-steps-toolbar .ant-btn-sm { font-size: 12px; padding: 0 8px; }
.api-deps { }

/* spec chips under each section title */
.cw-specs{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 12px;
}
.cw-spec{
  display: inline-flex;
  align-items: stretch;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(2,6,23,.10);
  font-size: 12px;
  line-height: 1.6;
}
.cw-spec-k{
  padding: 2px 8px;
  background: rgba(22,119,255,.10);
  color: #1677ff;
  font-weight: 600;
}
.cw-spec-v{
  padding: 2px 8px;
  background: rgba(2,6,23,.03);
  color: rgba(2,6,23,.78);
}

/* placeholder figure card (used until a real screenshot is dropped in) */
.cw-fig--ph{
  background: repeating-linear-gradient(
    45deg,
    rgba(22,119,255,.04),
    rgba(22,119,255,.04) 12px,
    rgba(22,119,255,.08) 12px,
    rgba(22,119,255,.08) 24px
  );
}
.cw-ph{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 220px;
  padding: 28px 16px;
  text-align: center;
}
.cw-ph-icon{
  font-size: 34px;
  line-height: 1;
  opacity: .6;
}
.cw-ph-title{
  font-weight: 600;
  color: rgba(2,6,23,.72);
}
.cw-ph-file{
  font-size: 12px;
  color: rgba(2,6,23,.45);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* analysis-tools overview grid */
.cw-tool-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 900px){
  .cw-tool-grid{ grid-template-columns: 1fr; }
}
.cw-tool-card{
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(2,6,23,.10);
  background: rgba(2,6,23,.015);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.cw-tool-card:hover{
  transform: translateY(-2px);
  border-color: rgba(22,119,255,.35);
  box-shadow: 0 8px 20px rgba(22,119,255,.12);
}
.cw-tool-name{
  font-weight: 700;
  color: #1677ff;
  margin-bottom: 4px;
}
.cw-tool-scope{
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(22,119,255,.10);
  color: #1677ff;
  margin-bottom: 6px;
}
.cw-tool-desc{
  font-size: 13px;
  line-height: 1.55;
  color: rgba(2,6,23,.66);
}

/* --- dark-theme overrides (mirror theme-dark.css --cw-* usage) --- */
html[data-theme="dark"] .cw-spec{ border-color: var(--cw-border); }
html[data-theme="dark"] .cw-spec-v{
  background: rgba(255,255,255,.04);
  color: var(--cw-muted);
}
html[data-theme="dark"] .cw-ph-title{ color: #cdd8df; }
html[data-theme="dark"] .cw-ph-file{ color: #7f929c; }
html[data-theme="dark"] .cw-tool-card{
  border-color: var(--cw-border);
  background: rgba(255,255,255,.03);
}
html[data-theme="dark"] .cw-tool-desc{ color: var(--cw-muted); }

html[data-theme="dark"] .cw-steps{
  background: #10202b;
  border-color: rgba(255,255,255,.12);
  border-left-color: #4cc9f0;
}
html[data-theme="dark"] .cw-steps-list > li{ color: #9fb0ba; }
html[data-theme="dark"] .cw-steps-list > li::before{
  background: rgba(76, 201, 240, .16);
  color: #7fe3ff;
}
html[data-theme="dark"] .cw-steps-list > li:not(:last-child)::after{
  background: rgba(76, 201, 240, .26);
}
html[data-theme="dark"] .cw-steps-list b{ color: #e6f1f7; }
html[data-theme="dark"] .cw-steps-list i{ color: #9fb0ba; }
html[data-theme="dark"] .cw-steps-list code{
  background: rgba(76, 201, 240, .12);
  color: #7fe3ff;
}
