#gbf-app { max-width: 100%; overflow-x: hidden; margin: 1rem 0 2rem; }
#gbf-app .gbf-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
#gbf-app .gbf-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; }
#gbf-app .gbf-tabs button.on { background: #0f766e; color: #fff; }
#gbf-app .gbf-ctls { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .6rem 1rem; margin-bottom: .8rem; }
#gbf-app .gbf-ctl { display: flex; flex-direction: column; font-size: .82rem; gap: .2rem; min-width: 0; }
#gbf-app .gbf-ctl span { font-weight: 600; }
#gbf-app .gbf-ctl select, #gbf-app .gbf-ctl input { width: 100%; }
#gbf-app .gbf-ctl output { font-family: 'IBM Plex Mono', monospace; font-size: .8rem; }
#gbf-app .gbf-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .6rem; margin: .6rem 0 1rem; }
#gbf-app .gbf-card { border: 1px solid rgba(127,127,127,.3); border-radius: 8px; padding: .55rem .7rem; min-width: 0; }
#gbf-app .gbf-card-l { font-size: .75rem; opacity: .8; }
#gbf-app .gbf-card-v { font: 600 1.1rem 'IBM Plex Mono', monospace; overflow-wrap: anywhere; }
#gbf-app .gbf-card-s { font-size: .75rem; opacity: .8; }
#gbf-app .gbf-chart { position: relative; height: 330px; margin: .5rem 0 1rem; }
#gbf-app .gbf-note { font-size: .82rem; opacity: .85; }
#gbf-app h4 { font-size: .9rem; margin: .9rem 0 .3rem; }
#gbf-app .gbf-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
#gbf-app .gbf-table { width: 100%; border-collapse: collapse; font-size: .8rem; display: block; overflow-x: auto; max-height: 520px; overflow-y: auto; margin-bottom: .6rem; }
#gbf-app .gbf-table th, #gbf-app .gbf-table td { padding: .3rem .45rem; border-bottom: 1px solid rgba(127,127,127,.25); text-align: right; white-space: nowrap; }
#gbf-app .gbf-table th { font-weight: 600; white-space: normal; vertical-align: bottom; position: sticky; top: 0; background: var(--bs-body-bg, #fff); }
#gbf-app .gbf-table th:first-child, #gbf-app .gbf-table td:first-child { text-align: left; }
#gbf-app .gbf-table tr.best td { font-weight: 600; }
#gbf-app textarea { width: 100%; min-height: 9rem; font: .8rem 'IBM Plex Mono', monospace; box-sizing: border-box; }
#gbf-app .gbf-btns { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
#gbf-app .gbf-btns button { font: 500 .82rem 'Source Sans 3', sans-serif; padding: .35rem .7rem; border: 1px solid #0f766e; background: #0f766e; color: #fff; border-radius: 6px; cursor: pointer; }
#gbf-app .gbf-btns button.alt { background: transparent; color: #0f766e; }
#gbf-app .gbf-err { color: #b91c1c; font-size: .82rem; }
@media (max-width: 760px) { #gbf-app .gbf-split { grid-template-columns: minmax(0, 1fr); } #gbf-app .gbf-chart { height: 290px; } }
