#crr-app { max-width: 100%; overflow-x: hidden; margin: 1rem 0 2rem; }
#crr-app .crr-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
#crr-app .crr-tabs button { font: 500 .85rem 'Source Sans 3', sans-serif; padding: .45rem .8rem; border: 1px solid #0f766e;
  background: transparent; color: #0f766e; border-radius: 999px; cursor: pointer; }
#crr-app .crr-tabs button.on { background: #0f766e; color: #fff; }
#crr-app .crr-ctls { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .6rem 1rem; margin-bottom: .8rem; }
#crr-app .crr-ctl { display: flex; flex-direction: column; font-size: .82rem; gap: .2rem; min-width: 0; }
#crr-app .crr-ctl span { font-weight: 600; }
#crr-app .crr-ctl select, #crr-app .crr-ctl input { width: 100%; }
#crr-app .crr-ctl output { font-family: 'IBM Plex Mono', monospace; font-size: .8rem; }
#crr-app .crr-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem; margin: .6rem 0 1rem; }
#crr-app .crr-card { border: 1px solid rgba(127,127,127,.3); border-radius: 8px; padding: .55rem .7rem; min-width: 0; }
#crr-app .crr-card-l { font-size: .75rem; opacity: .8; }
#crr-app .crr-card-v { font: 600 1.1rem 'IBM Plex Mono', monospace; overflow-wrap: anywhere; }
#crr-app .crr-card-s { font-size: .75rem; opacity: .8; }
#crr-app .crr-chart { position: relative; height: 340px; margin: .5rem 0 1rem; }
#crr-app .crr-note { font-size: .82rem; opacity: .85; }
#crr-app h4 { font-size: .9rem; margin: .9rem 0 .3rem; }
#crr-app .crr-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
#crr-app .crr-table { width: 100%; border-collapse: collapse; font-size: .8rem; display: block; overflow-x: auto; max-height: 520px; overflow-y: auto; margin-bottom: .6rem; }
#crr-app .crr-table th, #crr-app .crr-table td { padding: .3rem .45rem; border-bottom: 1px solid rgba(127,127,127,.25); text-align: right; white-space: nowrap; }
#crr-app .crr-table th { font-weight: 600; white-space: normal; vertical-align: bottom; position: sticky; top: 0; background: var(--bs-body-bg, #fff); }
#crr-app .crr-table th:first-child, #crr-app .crr-table td:first-child { text-align: left; }
#crr-app .crr-table td.wrap { white-space: normal; text-align: left; min-width: 10rem; }
#crr-app .crr-dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; vertical-align: middle; }
#crr-app .g { background: #15803d; } #crr-app .a { background: #d97706; } #crr-app .r { background: #b91c1c; }
@media (max-width: 760px) { #crr-app .crr-split { grid-template-columns: minmax(0, 1fr); } #crr-app .crr-chart { height: 300px; } }
