* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: #f5f7fa; color: #1e4b69; }
.container { max-width: 820px; margin: 0 auto; padding: 16px; }
h2 { text-align: center; font-size: 1.3rem; margin-bottom: 8px; }
.example-bar { display: flex; justify-content: center; gap: 20px; margin-bottom: 16px; font-family: 'Courier New', monospace; font-size: 0.78rem; }
.req-example { color: #3b82f6; } .res-example { color: #22c55e; }
.flow { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding: 8px 0; }
.component { flex: 1; min-width: 120px; background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); overflow: hidden; cursor: pointer; transition: transform 0.2s; }
.component:hover { transform: translateY(-3px); box-shadow: 0 4px 14px rgba(0,0,0,0.1); }
.comp-header { color: #fff; font-weight: 700; font-size: 0.82rem; padding: 8px 12px; text-align: center; }
.comp-body { padding: 10px 12px; font-size: 0.75rem; color: #475569; text-align: center; line-height: 1.5; }
.arrow-col { display: flex; flex-direction: column; justify-content: center; padding: 0 4px; gap: 4px; flex-shrink: 0; }
.arrow-right, .arrow-left { font-size: 1.2rem; cursor: pointer; }
.arrow-right { color: #3b82f6; }
.arrow-left { color: #22c55e; }
.response-bar { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.status-code { padding: 4px 12px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; }
.s2xx { background: #dcfce7; color: #16a34a; }
.s4xx { background: #fef3c7; color: #d97706; }
.s5xx { background: #fee2e2; color: #dc2626; }
.tooltip { position: fixed; padding: 10px 14px; background: #1e293b; color: #f1f5f9; border-radius: 8px; font-size: 0.78rem; max-width: 280px; pointer-events: none; opacity: 0; transition: opacity 0.15s; z-index: 100; line-height: 1.4; }
.tooltip.visible { opacity: 1; }
@media (max-width: 600px) { .flow { flex-direction: column; align-items: center; } .arrow-col { flex-direction: row; } }
