* { box-sizing: border-box; }
body { margin: 0; padding: 20px; background: #f5f7fb; color: #202636; font-family: Arial, sans-serif; }
h2 { margin: 0 0 8px; }
p { line-height: 1.5; }
a { color: #3154d8; }
code { padding: 2px 5px; border-radius: 4px; background: #eef1f7; }
.demo-nav { margin: 0 0 16px; }
.demo-nav a { margin-right: 12px; }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; }
.demo-card { min-width: 0; padding: 14px; border: 1px solid #dce1eb; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(34, 49, 83, .06); }
.demo-card h3 { margin: 0 0 8px; font-size: 16px; }
.demo-chart { width: 100% !important; height: 360px !important; }
.demo-chart.tall { height: 520px !important; }
.stock-layout { display: grid; grid-template-columns: 44px minmax(0, 1fr); min-height: 520px; }
.stock-layout .demo-chart { height: 520px !important; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.demo-actions input, .demo-actions button, .demo-actions select { padding: 7px 10px; }
pre { max-height: 260px; overflow: auto; margin: 12px 0 0; padding: 12px; border-radius: 8px; background: #151a26; color: #d8e2ff; white-space: pre-wrap; }
.catalog { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; padding: 0; list-style: none; }
.catalog a { display: block; height: 100%; padding: 16px; border: 1px solid #dce1eb; border-radius: 10px; background: #fff; text-decoration: none; }
.catalog strong { display: block; margin-bottom: 6px; color: #202636; }
.catalog span { color: #596277; font-size: 14px; line-height: 1.45; }
@media (max-width: 560px) { body { padding: 12px; } .demo-grid { grid-template-columns: 1fr; } }
