.yjb-connection { margin-top: 16px; border-top: 1px solid var(--border, #dde5df); padding-top: 14px; }
.yjb-connection > summary { display: flex; flex-wrap: wrap; gap: 12px; cursor: pointer; }
.yjb-connection > summary span, .yjb-body small { color: var(--muted, #6c7971); }
.yjb-body { display: grid; gap: 14px; padding-top: 14px; }
.yjb-body form, .yjb-fields { display: grid; gap: 12px; }
.yjb-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yjb-body label { display: grid; gap: 6px; }
.yjb-body .yjb-check { display: flex; gap: 8px; align-items: center; }
.yjb-check input { width: auto; margin: 0; }
.yjb-body fieldset { border: 1px solid var(--border, #dde5df); border-radius: 10px; padding: 12px; }
.yjb-extra { border-top: 1px solid var(--border, #dde5df); padding-top: 10px; }
.yjb-extra summary { cursor: pointer; margin-bottom: 10px; }
.yjb-index-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 10px; }
.yjb-index-grid > div { display: grid; gap: 5px; padding: 12px; background: var(--surface, #f5f8f5); border: 1px solid var(--border, #dde5df); border-radius: 10px; }
.yjb-body .panel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#yjbQr img { width: 220px; height: auto; border: 8px solid white; }
#yjbPreview td small { display: block; }
#yjbPreview .table-scroll { overflow-x: auto; }
#yjbPreview table { width: 100%; min-width: 650px; }
.yjb-source-data { max-height: 440px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
@media (max-width: 600px) { .yjb-fields { grid-template-columns: 1fr; } .yjb-connection > summary { gap: 4px; } }

.yjb-index-grid > div { min-width: 0; overflow-wrap: anywhere; }
.yjb-decision-context { margin: 16px 0; }
.yjb-decision-context .table-scroll { overflow-x: auto; }
.yjb-decision-context table { width: 100%; min-width: 650px; }
.yjb-decision-context td small { display: block; }
.yjb-needs { display: grid; gap: 8px; padding-left: 20px; }
.yjb-needs details { font-size: 12px; color: var(--muted, #6c7971); }
.yjb-fund-cards { display: none; }
.yjb-fund-card { padding: 12px; border: 1px solid var(--border, #dde5df); border-radius: 10px; }
.yjb-fund-card > small { display: block; color: var(--muted, #6c7971); }
.yjb-fund-card p { margin: 6px 0; }
@media (max-width: 600px) {
  .yjb-decision-context .yjb-fund-table { display: none; }
  .yjb-fund-cards { display: grid; gap: 10px; }
}
