/* 十年翻倍可行性候选筛选：沿用 common.css 基础样式 */
#app { max-width: 1380px; }
#view { max-width: none; padding: 16px 20px 48px; }
.topbar { position: sticky; top: 0; z-index: 20; }
[hidden] { display: none !important; }

.tb-hero {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #0f766e, #4338ca);
  color: #fff; border-radius: 16px; padding: 17px 20px;
  line-height: 1.75; font-size: 13px; margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(67, 56, 202, .12);
}
.tb-hero b { font-size: 17px; }
.tb-disc { margin-left: auto; font-size: 12px; background: rgba(255,255,255,.18); padding: 5px 12px; border-radius: 12px; white-space: nowrap; }
.tb-warn {
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  border-radius: 12px; padding: 11px 14px; font-size: 12px; line-height: 1.75; margin-bottom: 12px;
}
.tb-warn b { color: #7c2d12; }

.tb-controls { padding: 14px 16px; }
.tb-meta { font-size: 11px; color: #94a3b8; font-weight: 400; }
.tb-controls-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.tb-limit { font-size: 12px; color: #64748b; display: flex; align-items: center; gap: 6px; }
.tb-limit select { border: 1px solid #e2e8f0; border-radius: 8px; padding: 7px 10px; font-size: 13px; background: #fff; color: #1e293b; outline: none; }
.tb-limit select:focus { border-color: #6366f1; }
.tb-controls .status { margin-top: 10px; }
.tb-hint { font-size: 11px; color: #94a3b8; line-height: 1.7; margin: 8px 0 10px; }
.tb-tabs { flex-wrap: wrap; margin: 14px 0 10px; }
.tb-tabs .tab { user-select: none; }
.tb-pane > .panel { margin-bottom: 12px; }
.tb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tb-grid > .panel { margin-bottom: 0; }
.tb-grid { margin-bottom: 12px; }
.tb-list { margin: 0; padding-left: 18px; font-size: 12px; color: #64748b; line-height: 1.85; }
.tb-list li { margin-bottom: 4px; }
.tb-list b { color: #334155; }

.tb-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.tb-kpi { background: linear-gradient(180deg, #fff, #f8fafc); border: 1px solid #eef2f7; border-radius: 12px; padding: 12px 14px; }
.tb-kpi .k { font-size: 11px; color: #64748b; }
.tb-kpi .v { font-size: 20px; font-weight: 750; margin-top: 5px; color: #0f172a; font-variant-numeric: tabular-nums; }
.tb-kpi .s { font-size: 10px; color: #94a3b8; margin-top: 4px; line-height: 1.4; }

.tb-bars { display: flex; flex-direction: column; gap: 9px; max-height: 420px; overflow: auto; padding-right: 4px; }
.tb-bar-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 128px; align-items: center; gap: 10px; font-size: 11px; color: #64748b; }
.tb-bar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-bar { position: relative; height: 16px; background: #f1f5f9; border-radius: 8px; overflow: hidden; }
.tb-bar > span { display: block; height: 100%; border-radius: 8px; background: #10b981; }
.tb-bar > span.miss { background: #f59e0b; }
.tb-bar > i.req { position: absolute; top: 0; bottom: 0; width: 2px; background: #64748b; }
.tb-bar-val { text-align: right; font-variant-numeric: tabular-nums; color: #475569; }
.tb-bar-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: #64748b; margin-top: 10px; }
.tb-bar-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }

.tb-table-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tb-search { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
.tb-search input { width: 220px; border: 1px solid #e2e8f0; border-radius: 8px; padding: 7px 10px; font-size: 12px; color: #1e293b; background: #fff; outline: none; }
.tb-search input:focus { border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99, 102, 241, .12); }
.tb-table th.tb-sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.tb-table th.tb-sortable:hover { background: #eef2ff; color: #4338ca; }
.tb-table th.sorted { color: #4338ca; background: #eef2ff; }
.tb-arrow { display: inline-block; font-size: 9px; margin-left: 4px; color: #cbd5e1; }
.tb-table th.sorted .tb-arrow { color: #4338ca; }
.tb-scroll { max-height: 560px; overflow: auto; border: 1px solid #eef2f7; border-radius: 10px; }
.tb-table { min-width: 1600px; }
.tb-table th { position: sticky; top: 0; z-index: 2; }
.tb-table td { font-variant-numeric: tabular-nums; }
.tb-table tr.miss td:first-child { border-left: 3px solid #f59e0b; }
.tb-ok { color: #047857; font-weight: 650; }
.tb-miss { color: #b45309; font-weight: 650; }
.tb-empty { text-align: center; color: #94a3b8; font-size: 12px; padding: 28px 0; }

#detail-cards { max-height: 760px; overflow: auto; padding-right: 4px; }
.tb-card { border: 1px solid #eef2f7; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.tb-card-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tb-card-head .rk { font-size: 12px; color: #94a3b8; }
.tb-card-head .nm { font-size: 14px; font-weight: 700; color: #0f172a; }
.tb-card-head .cd { font-size: 11px; color: #64748b; }
.tb-card-head .sc { margin-left: auto; font-size: 13px; font-weight: 700; color: #4338ca; }
.tb-card-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 10px 0; }
.tb-card-metrics div { background: #f8fafc; border-radius: 8px; padding: 7px 9px; font-size: 11px; color: #64748b; }
.tb-card-metrics div b { display: block; font-size: 13px; color: #1e293b; margin-top: 3px; font-variant-numeric: tabular-nums; }
.tb-card ul { margin: 6px 0 0; padding-left: 18px; font-size: 11px; color: #64748b; line-height: 1.75; }
.tb-risk { margin-top: 8px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 7px 10px; font-size: 11px; color: #92400e; line-height: 1.7; }

.tb-source { border: 1px solid #eef2f7; border-radius: 10px; padding: 10px 12px; margin-bottom: 9px; }
.tb-source .nm { font-size: 13px; font-weight: 650; }
.tb-source .url { font-size: 11px; color: #4f46e5; word-break: break-all; margin-top: 3px; }
.tb-source .note { font-size: 11px; color: #64748b; line-height: 1.6; margin-top: 5px; }
.tb-ex { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-ex span { background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 20px; padding: 5px 11px; font-size: 11px; color: #475569; }

@media (max-width: 1000px) {
  #view { padding: 12px 12px 40px; }
  .tb-grid { grid-template-columns: 1fr; }
  .tb-hero { flex-direction: column; align-items: flex-start; }
  .tb-disc { margin-left: 0; }
  .tb-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-bar-row { grid-template-columns: 110px minmax(0, 1fr) 100px; }
}
