.jtbd-panel { border: 1px solid #e3e6ea; border-radius: 8px; background: #f7f8f9; padding: 12px 14px; margin: 12px 0 16px; }
.jtbd-panel h2 { font-size: 1.15rem; margin: 0 0 8px; }
.jtbd-panel h3 { font-size: 1rem; margin: 14px 0 8px; }
.jtbd-panel p, .jtbd-note { margin: 0 0 8px; }
.jtbd-panel label, .jtbd-panel select, .jtbd-panel input { display: block; width: 100%; max-width: 460px; margin: 0 0 8px; box-sizing: border-box; }
.jtbd-panel select, .jtbd-panel input, .jtbd-unit { min-height: 36px; }
.jtbd-unit { margin: 0 6px 8px 0; }
.jtbd-unit.is-active { font-weight: 700; }
.jtbd-panel :focus { outline: 2px solid #3d4f63; outline-offset: 1px; }
.jtbd-chart-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px; align-items: center; margin: 4px 0; }
.jtbd-bar { position: relative; height: 10px; background: #e6e8eb; border-radius: 5px; }
.jtbd-bar > span { position: absolute; top: 0; bottom: 0; background: #3d4f63; border-radius: 5px; min-width: 3px; }
.jtbd-result { white-space: pre-line; }
.jtbd-links a { margin-right: 12px; }
@media (max-width: 640px) {
	.jtbd-panel label, .jtbd-panel select, .jtbd-panel input { max-width: none; }
	.jtbd-chart-row { grid-template-columns: 44px minmax(0, 1fr); }
	.jtbd-chart-row strong { grid-column: 1 / -1; }
}

.jtbd-timeline { border-left: 3px solid #d5d9de; margin-left: 8px; padding-left: 16px; }
.jtbd-timeline > li { margin-bottom: 16px; }
#generations { width: 100%; max-width: 460px; min-height: 36px; }

.fuse-diagram img { max-width: 100%; height: auto; }
.fuse-diagram { overflow-x: auto; }
.fuse-diagram table { max-width: 100%; }

.jtbd-shop { container-type: inline-size; }
.jtbd-shop-filters { display: flex; flex-wrap: wrap; gap: 12px 16px; margin: 12px 0 16px; }
.jtbd-shop .jtbd-shop-filters label { display: flex; flex-direction: column; gap: 4px; width: auto; max-width: 280px; margin: 0; font-size: 13px; color: #4d5962; }
.jtbd-shop .jtbd-shop-filters select { display: block; width: auto; min-width: 160px; max-width: 100%; min-height: 36px; }
.jtbd-shop-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.jtbd-shop-grid { grid-template-columns: repeat(auto-fit, minmax(max(200px, 32%), 1fr)); }
.jtbd-shop-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid #d7dee6; border-radius: 8px; padding: 12px; background: #fff; }
.jtbd-shop-photo { display: flex; align-items: center; justify-content: center; height: 160px; margin: 0 0 10px; padding: 8px; border-radius: 6px; background: #f3f5f7; overflow: hidden; }
.jtbd-shop-photo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 160px; object-fit: contain; }
.jtbd-shop-brand { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: #5c6770; }
.jtbd-shop .jtbd-shop-name { margin: 2px 0 6px; font-size: 16px; font-weight: 700; line-height: 1.25; color: #1c1c1c; }
.jtbd-shop-spec { margin: 0 0 4px; font-size: 14px; color: #222; }
.jtbd-shop-cats { margin: 0 0 8px; font-size: 12px; color: #5c6770; }
.jtbd-shop-price { margin: 0 0 10px; font-size: 18px; font-weight: 700; color: #1c1c1c; }
.jtbd-shop a.jtbd-shop-cta { display: block; margin-top: auto; padding: 8px 12px; background: #1f4e79; color: #fff; text-align: center; text-decoration: none; border-radius: 4px; }
@container (max-width: 520px) {
	.jtbd-shop-grid { grid-template-columns: 1fr; }
	.jtbd-shop .jtbd-shop-filters label,
	.jtbd-shop .jtbd-shop-filters select,
	.jtbd-shop a.jtbd-shop-cta { width: 100%; max-width: none; }
}
@media (max-width: 640px) {
	.jtbd-shop-filters { flex-direction: column; }
	.jtbd-shop .jtbd-shop-filters label,
	.jtbd-shop .jtbd-shop-filters select,
	.jtbd-shop a.jtbd-shop-cta { width: 100%; max-width: none; box-sizing: border-box; }
}
