/* BilzatWeb 推理智能工具箱 · 独立页 /toolbox */
.toolbox-page {
  background: var(--bg, #faf9ff);
}

.toolbox-hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(640px 320px at 88% 12%, rgba(109, 94, 245, 0.1), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--bg, #faf9ff) 100%);
}
.toolbox-hero-inner {
  padding: 44px 16px 36px;
  max-width: 920px;
  text-align: center;
  margin: 0 auto;
}
.toolbox-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(32px, 5vw, 46px);
  letter-spacing: -0.04em;
  line-height: 1.12;
}
.toolbox-hero-lead {
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  max-width: 720px;
}
.toolbox-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.toolbox-main {
  padding: 28px 16px 56px;
}

.toolbox-shell { margin-top: 0; }

.tb-p0-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 16px;
}
.tb-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px 22px;
  box-shadow: var(--shadow);
}
.tb-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.tb-card-head h3 { margin: 0; font-size: 18px; }
.tb-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.tb-badge.p0 { background: var(--accent-soft); color: var(--accent); }
.tb-badge.ceil { background: #fef3e8; color: #c45c26; }
.tb-desc { margin: 0 0 14px; font-size: 13px; color: var(--muted); line-height: 1.55; }
.tb-field { display: grid; gap: 6px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.tb-field .input, .tb-field textarea, .tb-field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.tb-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 10px; }
.tb-checks { display: grid; gap: 8px; margin-bottom: 12px; }
.tb-check { font-size: 13px; color: var(--ink); cursor: pointer; }
.tb-results, .tb-cost-out { margin-top: 14px; }
.tb-bar-row { margin-bottom: 12px; }
.tb-bar-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; margin-bottom: 6px; }
.tb-bar-meta strong { font-size: 13px; color: var(--ink); }
.tb-bar-meta span { color: var(--muted); }
.tb-bar-track { height: 10px; background: #eee; border-radius: 999px; overflow: hidden; }
.tb-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #00c9c9);
}
.tb-report-banner {
  margin-bottom: 18px;
  border: 2px solid #a7f3d0;
  background: linear-gradient(135deg, #ecfdf5 0%, #fff 55%, #eff6ff 100%);
}
.tb-report-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.tb-report-copy h3 { margin: 8px 0 6px; font-size: 18px; }
.tb-report-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tb-badge.report { background: #065f46; color: #fff; }
.tb-inline-actions { margin-top: 10px; }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.tb-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.tb-seg-btn {
  border: 0;
  background: #fff;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.tb-seg-btn.on { background: var(--accent); color: #fff; }
.tb-cost-big { font-size: 28px; font-weight: 800; color: var(--accent); margin: 6px 0; }
.tb-cost-line { font-size: 13px; color: var(--ink); }
.tb-muted { font-size: 12px; color: var(--muted); margin: 8px 0 0; line-height: 1.5; }
.tb-templates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 12px;
  margin-bottom: 18px;
}
.tb-templates-label { font-size: 12px; font-weight: 800; color: var(--accent); }
.tb-tpl-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.tb-tpl-btn:hover { border-color: var(--accent); color: var(--accent); }
.tb-tpl-hint { margin: 0; font-size: 12px; color: var(--muted); flex: 1 1 100%; }
.tb-ceiling-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 16px;
}
.tb-steps, .tb-diag-list { margin: 12px 0 0; padding-left: 20px; font-size: 13px; line-height: 1.65; color: var(--ink); }
.tb-diag-list li.ok { color: #16a34a; list-style: none; margin-left: -20px; }
.tb-path-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.tb-path-node {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  min-width: 120px;
}
.tb-path-node b { display: block; font-size: 13px; margin-bottom: 4px; }
.tb-path-node span { color: var(--muted); }
.tb-path-arr { color: var(--muted); font-weight: 700; }
.tb-roadmap {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}
.tb-road-tag {
  display: inline-block;
  font-weight: 800;
  color: var(--accent);
  margin-right: 6px;
}

.tb-output-compare { margin-bottom: 18px; }
.tb-output-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.tb-output-col {
  background: #faf9ff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.tb-output-col h4 { margin: 0 0 8px; font-size: 13px; color: var(--accent); }
.tb-output-col p { margin: 0; font-size: 12px; line-height: 1.65; color: var(--ink); }

.tb-step2-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  margin-bottom: 16px;
}
.tb-leader-wrap { overflow-x: auto; margin-top: 10px; }
.tb-leader {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.tb-leader th, .tb-leader td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.tb-leader th { color: var(--muted); font-weight: 700; }
.tb-ref-list {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
}

.tb-priority {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 16px;
}
.tb-priority-label { font-size: 12px; font-weight: 800; color: var(--muted); margin-right: 4px; }
.tb-pri {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f3f3f6;
  color: var(--muted);
}
.tb-pri.done { background: #e8f5e9; color: #2e7d32; }
.tb-pri.active { background: var(--accent-soft); color: var(--accent); }
.tb-badge.p1 { background: #e8f0fe; color: #1d4ed8; }
.tb-badge.p2 { background: #fef3e8; color: #c45c26; }
.tb-live-status { font-size: 12px; color: var(--muted); min-height: 18px; margin: 8px 0 0; }
.tb-logs-wrap { margin-top: 12px; max-height: 280px; overflow: auto; }
.tb-logs-mini { font-size: 11px; }
.tb-logs-mini .mono { font-family: ui-monospace, monospace; font-size: 10px; }
.tb-submit-card { margin-bottom: 16px; }
.tb-submit-row { margin-bottom: 0; }
.tb-sub-list { margin: 12px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.65; }
.tb-output-col.tb-output-err { border-color: #fecaca; background: #fff5f5; }
.tb-subsec { font-size: 13px; font-weight: 700; margin: 16px 0 8px; color: #475569; }
.tb-community { font-size: 12px; }

@media (max-width: 1024px) {
  .tb-p0-grid, .tb-ceiling-grid, .tb-step2-grid { grid-template-columns: 1fr; }
  .tb-row { grid-template-columns: 1fr; }
}
