/* Approved BEARS Bucks card/desktop/mobile references. Existing Home header is retained. */
.bb-page{--bb-green:#005a34;--bb-gold:#ffcc32;--bb-ink:#10251c;display:flex;flex-direction:column;gap:12px;position:relative;background:linear-gradient(#fafcfb,#f5f6f3);color:var(--bb-ink);padding:7px 16px 28px;min-height:70vh;font-family:Arial,sans-serif}
.bb-page *{box-sizing:border-box}.bb-page h1,.bb-page h2,.bb-page p{margin:0}.bb-page button,.bb-page input,.bb-page select{font:inherit}.bb-page button,.bb-page a{touch-action:manipulation}
.bb-back,.bb-visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.bb-back:focus-visible{position:relative!important;width:auto;height:auto;clip-path:none;padding:8px;color:var(--bb-green)}
.bb-page :is(a,button,input,select):focus-visible{outline:3px solid #e6b600;outline-offset:3px}
.bb-hero-exact{position:relative;z-index:1;width:100%;margin-bottom:-2%;pointer-events:none}
.bb-banner-desktop{width:100%;height:auto;display:block;aspect-ratio:1416/288}.bb-banner-mobile,.bb-mobile-heading{display:none}
.bb-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.bb-metrics article{display:flex;align-items:center;gap:15px;min-width:0;padding:10px 17px;background:#fff;border:1px solid #eef0ef;border-radius:11px;box-shadow:0 3px 14px #18302104}
.bb-metric-icon{width:clamp(52px,6.4vw,90px);height:auto;aspect-ratio:1;flex:none}
.bb-metrics small{font-size:clamp(12px,1.05vw,16px);color:#17283c;display:block;line-height:1.25}
.bb-metrics strong{font-size:clamp(25px,2.5vw,38px);line-height:1.2;color:#005536;display:block;margin:5px 0 1px}
.bb-metrics article>div>span{font-size:12px;color:#929ba9;display:block}
.bb-filters{display:grid;grid-template-columns:1fr 1.12fr 1.55fr 1.6fr;gap:20px;align-items:end;padding:10px 18px;background:#fff;border:1px solid #edf0ee;border-radius:10px}
.bb-filters label,.bb-period-field{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#15263e;min-width:0}
.bb-filters select,.bb-filters input{border:1px solid #ccd3dc;border-radius:5px;padding:8px 10px;background:#fdfdfd;min-width:0;width:100%;color:#22314b;height:36px}
.bb-period-buttons{display:flex;background:#f3f3f4;border-radius:6px;overflow:hidden;height:36px}
.bb-period-buttons button{flex:1;border:0;background:transparent;color:#24324b;cursor:pointer;font-size:12px}
.bb-period-buttons button[aria-pressed=true]{background:linear-gradient(110deg,#007544,#004b31);color:#fff;border-radius:5px}
.bb-date-range{display:grid;grid-template-columns:1fr 1fr;gap:7px}.bb-date-range input{font-size:12px;padding:8px 5px}
.bb-panels{display:grid;grid-template-columns:1.18fr 1fr 1.18fr;gap:10px;order:0}
.bb-panels article,.bb-quick{background:#fff;border:1px solid #edf0ee;border-radius:11px;padding:13px 16px;box-shadow:0 3px 16px #162c2005;min-width:0}
.bb-panels article{min-height:295px}.bb-panels h2,.bb-quick h2{font-size:clamp(14px,1.35vw,20px);display:flex;align-items:center;gap:9px;color:#004e35;font-weight:750;line-height:1.2}
.bb-ui-icon{display:inline-block;width:25px;height:25px;flex:none;vertical-align:middle}
.bb-panels header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.bb-panels header>button,.bb-panels header>a{background:none;border:0;color:#00613a;font-size:12px;padding:0;text-decoration:none;white-space:nowrap;cursor:pointer}
.bb-leader-panel h2>.bb-ui-icon{color:#efb700}.bb-grade-panel>h2{margin-bottom:18px}
.bb-chart{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;align-items:end;height:235px;padding:10px 3px 0;border-bottom:1px solid #d4dfd7}
.bb-chart-column{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;position:relative;min-width:0;font-size:12px}
.bb-chart-column strong{font-size:12px;color:#004d32;position:absolute;bottom:calc(26px + (100% - 45px) * var(--unused,0));display:none}
.bb-chart-track{display:flex;align-items:flex-end;width:100%;height:calc(100% - 30px);position:relative;background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),#f0f4ef calc(25% - 1px),#f0f4ef 25%)}
.bb-chart-track i{width:100%;height:var(--bar);min-height:0;background:linear-gradient(90deg,#3da83f,#53c555);border-radius:5px 5px 0 0;position:relative}
.bb-chart-column>span{padding-top:8px;font-size:12px;white-space:nowrap;color:#21374b}.bb-chart-column:before{content:attr(data-points);font-weight:700;color:#005536;font-size:12px}
.bb-page table{border-collapse:collapse;width:100%;font-size:clamp(10px,.95vw,13px);table-layout:auto;color:#334055}
.bb-page th{text-align:left;font-weight:400;color:#546172;border-bottom:1px solid #e3e7e8;padding:3px 3px 6px;white-space:nowrap}
.bb-page td{border-bottom:1px solid #eef0f0;padding:5px 3px;line-height:1.2}.bb-page td:last-child{color:#005536;font-weight:700;text-align:right}
.bb-leader-table td:nth-child(2){font-weight:600}.bb-leader-table td:last-child small{display:none}.bb-event-spent td:last-child{color:#b72423}.bb-event-request td:last-child{color:#696969}
.bb-medal{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#e2e2e2;color:#222;font-weight:700;border:1px solid transparent}
.bb-medal-0{background:linear-gradient(#fff599,#edb61d);border-color:#dca318}.bb-medal-1{background:linear-gradient(#f6f7f8,#b7bcc0);border-color:#aeb4b9}.bb-medal-2{background:linear-gradient(#ffd3a2,#d68b45);border-color:#bf803d}
.bb-empty{display:flex;align-items:center;justify-content:center;min-height:185px;color:#718076;font-size:13px;text-align:center;padding:16px}
.bb-quick{order:1;padding:10px}.bb-quick h2{font-size:18px;margin-bottom:10px;color:#182723}.bb-quick h2>span{font-size:32px;color:#ffc600;line-height:20px}
.bb-actions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.bb-actions a,.bb-actions button{display:flex;align-items:center;justify-content:center;gap:12px;border:0;border-radius:9px;background:linear-gradient(115deg,#087441,#004e35);color:#fff;padding:12px 15px;min-height:67px;text-decoration:none;font-size:clamp(11px,1vw,14px);font-weight:600;cursor:pointer;text-align:left}
.bb-actions .bb-ui-icon{width:35px;height:35px}.bb-actions b{font-size:28px;font-weight:400;margin-left:auto}
.bb-actions a:nth-child(2),.bb-actions button{background:linear-gradient(110deg,#ffe367,#ffca2c);color:#123a28}.bb-actions a:nth-child(4){background:#d7efdc;color:#124c35}
.bb-actions .bb-mobile-action,.bb-small-label,.bb-bottom-nav{display:none}
.bb-sync-row{display:flex;order:2;align-items:center;gap:10px}.bb-status{flex:1;font-size:11px;color:#567164;line-height:1.4;padding:5px 0}.bb-sync-row button{font-size:11px;color:#005a34;background:#fff;border:1px solid #d1e0d6;padding:8px 11px;border-radius:6px;cursor:pointer}.bb-sync-row button:disabled{opacity:.6;cursor:wait}
.bb-footnote{order:3;font-size:11px;color:#647469;line-height:1.5}.bb-page>.bb-bulk,.bb-page>.bb-history,.bb-page>#bb-rewards{order:4}
.bb-page [id^=bb-]{scroll-margin-top:65px}
@media(max-width:1000px) and (min-width:701px){.bb-page{padding:7px 10px 22px;gap:9px}.bb-metrics article{padding:10px;gap:8px}.bb-filters{gap:10px;padding:10px}.bb-panels{grid-template-columns:1.1fr 1fr}.bb-grade-panel{grid-column:1/-1}.bb-chart{height:200px}.bb-actions a,.bb-actions button{gap:6px;padding:9px;font-size:11px}.bb-actions .bb-ui-icon{width:25px;height:25px}.bb-actions b{display:none}}
@media(max-width:700px){
.bb-page{padding:0 10px 90px;gap:10px;background:linear-gradient(#fcfdfb,#f4f5f0)}
.bb-banner-desktop{display:none}.bb-banner-mobile{display:block;width:100%;height:auto;aspect-ratio:864/293}.bb-hero-exact{width:calc(100% + 20px);margin:0 -10px}
.bb-mobile-heading{display:block;text-align:center;margin:-2px -2px 2px}.bb-mobile-heading h1{font-size:clamp(22px,4.4vw,35px);line-height:1.2;color:#080d0b;font-weight:850;letter-spacing:-.03em}.bb-mobile-heading p{font-size:clamp(12px,2.65vw,21px);color:#707684;margin-top:4px}
.bb-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.bb-metrics article{gap:8px;padding:8px 9px;border-radius:12px;min-height:74px;box-shadow:0 6px 18px #182d1210}.bb-metric-icon{width:clamp(42px,11vw,83px)}.bb-metrics small{font-size:clamp(10px,2.35vw,18px);white-space:normal}.bb-metrics strong{font-size:clamp(27px,5.8vw,44px);line-height:1.1;margin:3px 0 0}.bb-metrics article>div>span{display:none}
.bb-quick{order:0;padding:9px;border-radius:12px}.bb-quick h2{font-size:19px;margin-bottom:8px;color:#0e1420}.bb-quick h2>span{font-size:30px}
.bb-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.bb-actions .bb-desktop-action{display:none}.bb-actions .bb-mobile-action{display:flex;background:linear-gradient(110deg,#ffe063,#ffce36);color:#79570b}.bb-actions a:nth-child(4){background:linear-gradient(110deg,#138c45,#005c30);color:#fff}.bb-actions a{min-height:60px;padding:9px 7px;gap:7px;font-size:clamp(10px,2.4vw,17px);border-radius:9px;line-height:1.2;justify-content:flex-start}.bb-actions .bb-ui-icon{width:clamp(22px,5vw,37px);height:clamp(22px,5vw,37px)}.bb-actions b{display:none}
.bb-small-label{display:inline}.bb-wide-label{display:none}
.bb-filters{order:1;grid-template-columns:1fr 1fr;gap:7px;padding:9px;border-radius:10px}.bb-filters label,.bb-period-field{font-size:10px}.bb-filters input,.bb-filters select{height:32px;font-size:11px;padding:5px}.bb-date-range input{font-size:10px}.bb-period-buttons{height:32px}.bb-period-buttons button{font-size:11px}
.bb-panels{order:2;grid-template-columns:1fr 1fr;gap:8px}.bb-panels article{padding:10px 9px;border-radius:12px;min-height:0;box-shadow:0 5px 20px #10241409}.bb-grade-panel{grid-column:1/-1}.bb-panels h2{font-size:clamp(12px,2.7vw,19px);gap:6px;color:#101b20}.bb-panels .bb-ui-icon{width:19px;height:19px}.bb-panels header{gap:5px;flex-wrap:wrap;margin-bottom:6px}.bb-panels header>a,.bb-panels header>button{font-size:10px;margin-left:auto}.bb-grade-panel>h2{margin-bottom:9px}
.bb-chart{height:63px;padding:0;border:0;gap:5px}.bb-chart-column{display:grid;grid-template-columns:minmax(0,1fr);justify-content:stretch;align-items:stretch;grid-template-rows:17px 12px 18px;align-content:center;gap:4px;width:100%;padding:3px;background:#fcfdfb;border:1px solid #f1f3ef;border-radius:7px;box-shadow:0 2px 5px #14271906}.bb-chart-column:before{display:none}.bb-chart-column>span{grid-row:1;padding:0;font-size:10px;text-align:center;line-height:17px;color:#152122}.bb-chart-track{grid-row:2;height:8px;border-radius:3px;background:#e7e8e7;width:100%;align-self:center;overflow:hidden}.bb-chart-track i{height:100%;width:var(--bar);border-radius:3px;background:linear-gradient(90deg,#8bb931,#40c731)}.bb-chart-column strong{display:block;position:static;grid-row:3;font-size:10px;text-align:center;color:#273025;line-height:18px}
.bb-page table{font-size:11px}.bb-page th,.bb-page thead{display:none}.bb-leader-table tbody,.bb-leader-table tr,.bb-activity-table tbody,.bb-activity-table tr{display:grid}.bb-leader-table tr{grid-template-columns:25px minmax(0,1fr) auto;gap:2px 5px;padding:9px 0;border-bottom:1px solid #eff1ee}.bb-page td{padding:0;border:0}.bb-leader-table td:first-child{grid-column:1;grid-row:1/3;align-self:center}.bb-medal{width:24px;height:24px;font-size:14px}.bb-leader-table td:nth-child(2){grid-column:2;grid-row:1;font-size:11px;overflow-wrap:anywhere}.bb-leader-table td:nth-child(3){grid-column:2;grid-row:2;color:#6a7380;font-size:10px}.bb-leader-table td:last-child{grid-column:3;grid-row:1/3;align-self:center}.bb-leader-table td:last-child strong{font-size:16px}.bb-leader-table td:last-child small{display:block;color:#546674;font-size:10px;font-weight:400}
.bb-leader-panel:not(.bb-expanded) tbody tr:nth-child(n+4){display:none}.bb-activity-table tr{grid-template-columns:minmax(0,1fr) auto;gap:3px 5px;padding:8px 0;border-bottom:1px solid #edf1ec}.bb-activity-table td:nth-child(1){grid-column:2;grid-row:1;font-size:9px;color:#838b89;text-align:right}.bb-activity-table td:nth-child(2){grid-column:1;grid-row:1;font-weight:700}.bb-activity-table td:nth-child(3){display:none}.bb-activity-table td:nth-child(4){grid-column:1/-1;grid-row:2;font-size:10px;color:#626e78;overflow-wrap:anywhere}.bb-activity-table td:last-child{grid-column:2;grid-row:3}.bb-activity-table tr:nth-child(n+4){display:none}
.bb-empty{min-height:140px;font-size:11px;padding:12px 2px}.bb-sync-row{order:3}.bb-footnote{order:3;font-size:10px}.bb-status{font-size:10px}.bb-sync-row button{font-size:10px;padding:7px}
.bb-bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:35;align-items:stretch;justify-content:space-around;background:#fff;border-top:1px solid #eef0ed;box-shadow:0 -2px 16px #1830260b;padding:9px 5px calc(7px + env(safe-area-inset-bottom));border-radius:12px 12px 0 0}.bb-bottom-nav a{display:flex;flex:1;flex-direction:column;align-items:center;gap:4px;color:#686d77;font-size:11px;text-decoration:none;padding:0 0 7px;border-bottom:3px solid transparent}.bb-bottom-nav .bb-ui-icon{width:25px;height:25px}.bb-bottom-nav a[aria-current]{color:#00633a;border-color:#00633a}
}
@media print{.bb-page{display:block;padding:0}.bb-filters,.bb-quick,.bb-sync-row,.bb-footnote,.bb-bottom-nav,.bb-page>.bb-bulk,.bb-page>.bb-history,.bb-page>#bb-rewards{display:none!important}.bb-panels{display:block}.bb-panels article{break-inside:avoid;margin-top:12px}.bb-hero-exact{margin:0}.bb-page table{font-size:11px}.bb-leader-panel tbody tr{display:table-row!important}}

.bb-chart-column:before{display:none}.bb-chart-track i b{position:absolute;bottom:100%;left:0;width:100%;text-align:center;color:#004d32;font-size:12px;padding-bottom:4px;font-style:normal;white-space:nowrap}
@media(max-width:700px){.bb-chart-track i b{display:none}}

.bb-metric-mobile{display:none}
@media(max-width:700px){.bb-metric-desktop{display:none}.bb-metric-mobile{display:block}.bb-filters{display:none}.bb-show-tools .bb-filters{display:grid}.bb-show-tools .bb-actions .bb-desktop-action{display:flex}}
/* Credited-point breakdowns at school, grade, class and student scope. */
.bb-breakdown-heading h2{color:#075c37;margin:10px 0}.bb-breakdown-heading nav{display:flex;gap:8px;flex-wrap:wrap}.bb-breakdown-heading button{border:1px solid #b7cfbf;background:#eaf4ed;color:#075c37;border-radius:8px;padding:10px 14px;font-weight:700;cursor:pointer}.bb-breakdown-summary{font-size:14px;line-height:1.5;color:#335744;background:#edf6ef;padding:12px;border-radius:9px;margin:0}.bb-page .bb-filters{grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.bb-horizontal-chart{max-height:380px;overflow-y:auto;padding:8px 5px}.bb-hbar{margin:0 0 16px}.bb-hbar>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:13px;margin-bottom:6px}.bb-hbar span{overflow-wrap:anywhere}.bb-hbar strong{white-space:nowrap;color:#075c37}.bb-hbar-track{height:16px;background:#edf1ee;border-radius:5px;overflow:hidden}.bb-hbar-track i{display:block;height:100%;border-radius:5px}.bb-page .bb-grade-panel .bb-chart{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));height:230px;padding:12px 3px 0;gap:7px;border-bottom:1px solid #cbd9cf}.bb-page .bb-grade-panel .bb-chart-column{display:flex;height:100%;flex-direction:column;justify-content:flex-end;align-items:center;padding:0;background:transparent;border:0;box-shadow:none}.bb-page .bb-grade-panel .bb-chart-column>strong{display:none}.bb-page .bb-grade-panel .bb-chart-track{display:flex;align-items:flex-end;height:calc(100% - 35px);width:100%;overflow:visible;background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),#edf2ed calc(25% - 1px),#edf2ed 25%)}.bb-page .bb-grade-panel .bb-chart-track i{height:var(--bar);width:100%;border-radius:5px 5px 0 0}.bb-page .bb-grade-panel .bb-chart-track i b{display:block;font-size:11px}.bb-page .bb-grade-panel .bb-chart-column>span{font-size:11px;padding-top:9px;line-height:20px}.bb-page .bb-grade-panel .bb-small-label{display:none}.bb-page .bb-grade-panel .bb-wide-label{display:inline}@media(max-width:700px){.bb-breakdown-heading{order:1}.bb-page .bb-filters{order:2;grid-template-columns:1fr 1fr}.bb-breakdown-summary{order:3;font-size:12px}.bb-page .bb-panels{order:4}.bb-reward-panel,.bb-homeroom-panel,.bb-time-panel{grid-column:1/-1}.bb-horizontal-chart{max-height:330px}.bb-page .bb-grade-panel .bb-chart{height:205px}.bb-page .bb-filters select,.bb-page .bb-filters input{height:40px;font-size:12px}.bb-period-field,.bb-date-range{grid-column:1/-1}.bb-page .bb-period-buttons{height:40px}.bb-page .bb-filters label{font-size:12px}}@media print{.bb-breakdown-heading nav{display:none}.bb-horizontal-chart{max-height:none;overflow:visible}.bb-hbar-track,.bb-chart-track i{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

@media(max-width:700px){.bb-actions [data-bb-print]{display:flex;grid-column:1/-1}}



/* Grade colors match the student badges; numbers and labels remain visible. */
.bb-chart-column[data-grade="Pre-K"]{--grade-color:#d4a017}
.bb-chart-column[data-grade="K"]{--grade-color:#8b5cc7}
.bb-chart-column[data-grade="1"]{--grade-color:#2677cf}
.bb-chart-column[data-grade="2"]{--grade-color:#159b9a}
.bb-chart-column[data-grade="3"]{--grade-color:#efc331}
.bb-chart-column[data-grade="4"]{--grade-color:#3dac46}
.bb-chart-column[data-grade="5"]{--grade-color:#c63342}
.bb-page .bb-grade-panel .bb-chart-column[data-grade] .bb-chart-track i{background:var(--grade-color)}

/* Prominent daily earned total, independent of chart/roster filters. */
.bb-metrics>article.bb-daily-total{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px 24px;padding:16px 20px;background:#edf7ef;border:1px solid #b4d4bd;border-left:5px solid #087445}
.bb-metrics>.bb-daily-total>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.bb-metrics>.bb-daily-total small{font-size:15px;font-weight:800;color:#174b38}
.bb-metrics>.bb-daily-total strong{font-size:32px;line-height:1.15;color:#065c38}
.bb-metrics>.bb-daily-total span,.bb-metrics>.bb-daily-total p{font-size:12px;color:#456452}
.bb-metrics>.bb-daily-total p{grid-column:1/-1;margin:2px 0 0}
@media(max-width:600px){.bb-metrics>article.bb-daily-total{grid-template-columns:1fr;padding:13px;gap:12px}.bb-metrics>.bb-daily-total strong{font-size:28px}}
