@scope(body:has(.bbd-workspace)){
/* Approved November 4 screens. Static art is clipped from the approved originals;
   every name, balance, state and action is a real, crisp DOM control. */
.bb-phone-dialog{box-sizing:border-box;width:min(580px,calc(100vw - 20px));max-height:92dvh;padding:18px;border:3px solid #fffef8;border-radius:28px;background:#fffcf3 url('/assets/sticker-book/paper.png') center/600px;color:#073c30;box-shadow:0 14px 40px #00392f55;font:16px/1.35 Arial,sans-serif;overflow:auto;overscroll-behavior:contain}
.bb-phone-dialog::backdrop{background:#123c3a88}.bb-phone-dialog:before{content:'';position:absolute;inset:10px;border:1.5px dashed #9dc5b4;border-radius:20px;pointer-events:none}
.bb-phone-dialog>*{position:relative;z-index:1}.bb-phone-dialog .bb-header{display:block;width:100%;height:auto;margin:2px 0 10px}.bb-phone-dialog .bb-header image{image-rendering:auto}
.bb-phone-dialog h2,.bb-phone-dialog h3{color:#053c2e;line-height:1.15}.bb-phone-dialog h3{font-size:22px;margin:12px 0}.bb-phone-dialog p{margin:10px 0}.bb-phone-dialog button,.bb-phone-dialog input,.bb-phone-dialog select{font:inherit;min-height:44px;box-sizing:border-box}
.bb-phone-dialog button{cursor:pointer}.bb-close{display:block;margin:0 0 -2px auto;width:44px;height:44px;border:2px solid #83b9a7;border-radius:50%;background:#fffdf5;color:#064b3b;font-size:30px!important;line-height:1}
.bb-primary,.bb-secondary,.bb-danger,.bb-gold{min-height:48px;padding:10px 15px;border-radius:16px;font-weight:800!important;border:2px solid #fff!important;box-shadow:0 0 0 1px #7baf9e,0 3px 4px #073c3022;background:#fffdf4;color:#07543f}
.bb-primary{color:white;background:#006044 url('/assets/sticker-book/emerald.png') center/cover}.bb-gold{background:linear-gradient(#fff1a2,#ffce3c);color:#083d2a;box-shadow:0 0 0 1px #c69b28,0 3px 4px #073c3022}.bb-danger{background:linear-gradient(#e62442,#b80724);color:white}.bb-phone-dialog button:disabled{opacity:.6;cursor:default;filter:none}.bb-wide{display:block;width:100%;margin-top:16px}
.bb-actions,.bb-tabs,.bb-filters{display:flex;gap:10px;margin:14px 0}.bb-actions>*,.bb-filters>*{flex:1;min-width:0}.bb-tabs{gap:2px;border:1px solid #ddbd7c;border-radius:14px;overflow:hidden;background:#fff0cc}.bb-tabs button{flex:1;border:0;background:transparent;color:#074835;font-weight:700;padding:8px 4px}.bb-tabs button[aria-pressed=true]{color:white;background:#006246;border-radius:12px;box-shadow:inset 0 0 0 2px #edc34e}
.bb-phone-dialog input,.bb-phone-dialog select{background:#fff;border:1px solid #a0b1b5;border-radius:9px;color:#172431;padding:9px;width:100%}.bb-form label{display:grid;grid-template-columns:35% 1fr;gap:10px;align-items:center;margin:10px 0}.bb-form label>span{background:#d5eee3;border-radius:10px;padding:10px;font-weight:700}.bb-note,.bb-group{background:#d5eee3;border-radius:14px;padding:10px;text-align:center}.bb-group{font-size:22px;font-weight:800;width:fit-content;min-width:45%;margin:0 auto}.bb-highlight{background:linear-gradient(#fff0a0,#ffe08a);border:1px solid #dfb946;border-radius:20px;text-align:center;padding:10px;font-size:19px;font-weight:800}
.bb-table{border-collapse:separate;border-spacing:0 6px;width:100%;text-align:left;table-layout:auto}.bb-table th{padding:9px;background:#c9e9d8;font-size:14px}.bb-table td{padding:9px;background:#fffdf4;border-top:1px solid #d0cbbf;border-bottom:1px solid #d0cbbf;overflow-wrap:anywhere}.bb-table td:first-child{border-left:1px solid #d0cbbf;border-radius:13px 0 0 13px}.bb-table td:last-child{border-right:1px solid #d0cbbf;border-radius:0 13px 13px 0;text-align:right;font-weight:800}.bb-table tr[data-you=true] td{background:#cdf0dd;border-color:#008752;border-width:2px}.bb-table .bb-place{display:inline-grid;place-content:center;border:1px solid #479d7c;background:#e1f5e9;width:34px;height:34px;border-radius:50%;font-size:22px;font-weight:800}.bb-table tr:nth-child(-n+3) .bb-place{background:linear-gradient(#fff39d,#f3b40a);border:2px solid #fff;box-shadow:0 0 0 1px #dca229}
.bb-list{display:grid;gap:9px}.bb-row{display:flex;gap:10px;align-items:center;background:linear-gradient(100deg,#fffdf8,#f3f8ee);border:1px solid #b9c8bc;border-radius:14px;padding:10px;box-shadow:0 2px 2px #0c4b3020}.bb-row .bb-grow{flex:1;min-width:0}.bb-row strong{display:block;font-size:18px}.bb-row small{display:block;color:#344d57}.bb-row button{border-radius:10px;border:1px solid #8bbda9;background:#d6f0e5;font-weight:700;padding:6px 10px}.bb-coin{width:45px;height:45px;object-fit:contain;flex:none}.bb-balance{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:18px;border:1px solid #e6c36a;background:linear-gradient(#fff5c4,#ffe59a);color:#124b36;font-size:13px;font-weight:800;line-height:1.2;white-space:normal}.bb-balance:before{content:'';background:url('/assets/sticker-book/impact-coins.png') center/contain no-repeat;width:19px;height:19px;flex:none}.bb-balance[data-stale=true]{background:#f4eee1;color:#635849}
.bb-progress{width:100%;height:28px;accent-color:#edbd17}.bb-milestone{display:grid;grid-template-columns:42% 1fr;gap:10px;align-items:center;border:1px solid #c4cabe;border-radius:16px;padding:10px;background:#fffdf6;margin:7px 0}.bb-milestone[data-reached=true]{background:#e7f4e5}.bb-milestone>strong{display:flex;align-items:center;gap:5px}.bb-milestone p{margin:2px 0;font-size:14px}.bb-status{white-space:pre-line;min-height:1.3em}.bb-status:empty{display:none}.bb-error{color:#a02728}.bb-scanner{aspect-ratio:1/1;background:#123d35;border:5px solid #fff;border-radius:20px;position:relative;overflow:hidden;margin:16px 0}.bb-scanner video{width:100%;height:100%;object-fit:cover}.bb-scanner:after{content:'';position:absolute;inset:10%;border:4px solid #f1c038;border-radius:18px;box-shadow:0 0 0 2px #006744;pointer-events:none}
.bb-success-total{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid #e4bf54;border-radius:20px;background:linear-gradient(100deg,#fff6cc,#fff0b8)}.bb-success-total .bb-coin{width:72px;height:72px}.bb-success-total strong{font-size:25px}.bb-success-total small{font-size:17px}.bb-success-dialog .bb-header{margin-top:-10px}.bb-success-dialog{text-align:center}.bb-success-dialog .bb-success-total{text-align:left}

.bb-op .op-toolbar button[aria-pressed=true]{background:#006747;color:#fff;border-radius:12px}.bb-op .op-toolbar{flex-wrap:wrap}.bb-op .op-toolbar [data-regular],.bb-op .op-toolbar [data-new]{font-size:14px;flex:1;min-width:125px;min-height:44px}.bb-op .op-toolbar [data-back],.bb-op .op-toolbar [data-history]{flex-basis:35%;min-height:44px}
/* Approved Habits artwork; verified live counts replace every sample value. */
.bb-habits-dialog{width:min(600px,calc(100vw - 8px));padding:8px;border-radius:20px;background:#c5f5e8;border:0}.bb-habits-dialog:before{display:none}.bb-habits-dialog>.bb-close{float:right;margin:0}.bb-habit-back{border:0;background:transparent;color:#074d3d;font-weight:800!important}.bb-habit-paper{background:#fffdf6 url('/assets/sticker-book/paper.png') center/600px;border:6px solid #fffdf6;outline:1px solid #c2dacd;outline-offset:-12px;border-radius:24px;padding:10px;margin:10px 0;box-shadow:0 3px 3px #155c4022}.bb-habit-paper>.bb-header{margin:0}.bb-habit-total{position:absolute;left:29%;top:28%;width:47%;height:30%;display:grid;place-content:center;background:linear-gradient(#ffe64c,#ffdf29);border-radius:40%;font-size:clamp(25px,8vw,51px);line-height:1;color:#064a37}.bb-habit-progress{display:flex;height:29px;border:2px solid #075e43;border-radius:22px;background:#fffdf5;padding:3px;gap:2px;overflow:hidden}.bb-habit-progress span{flex:1;transform:skew(-18deg);background:#e0ede3;border-radius:3px;border:1px solid #b5d2c2}.bb-habit-progress span[data-complete=true]{background:linear-gradient(#008854,#005439);border-color:#087e50}.bb-habit-progress>strong{font-size:22px;margin:0 6px;line-height:1}.bb-habit-encourage{background:#c4efdf;border-radius:22px;font-weight:800;text-align:center;padding:7px;font-size:clamp(12px,3.4vw,18px)}.bb-habit-title{display:flex;align-items:center;gap:5px}.bb-habit-title .bb-header{width:48%;margin:0}.bb-habit-title>strong{font-size:clamp(10px,2.6vw,15px);flex:1;background:#006448;color:white;text-align:center;border:2px solid #fff;border-radius:30px;padding:8px 2px}.bb-habit-row{display:flex;align-items:center;background:#cef1e5;margin:4px 0;border-radius:12px;padding-right:7px;gap:3px}.bb-habit-row .bb-header{width:76%;margin:0!important}.bb-habit-value{display:flex;align-items:center;justify-content:space-around;gap:4px;flex:1;min-width:0;font-size:clamp(17px,5vw,28px);font-weight:800;border:2px solid #fff;border-radius:24px;background:linear-gradient(#fff9cb,#ffe99b);color:#063c2d;box-shadow:0 1px 3px #c1ad6a}.bb-habit-value b{background:#e4dba9;color:#587865;border-radius:50%;width:22px;height:22px;display:grid;place-content:center;font-size:18px}.bb-habit-value b[data-reached=true]{background:#00a548;color:white}.bb-habit-additional{display:flex;align-items:center;background:#fff0b4;border-radius:18px;margin-top:12px;padding-right:8px}.bb-habit-additional .bb-header{width:76%;margin:0}.bb-habit-period{text-align:center;font-size:12px;padding:0 10px;color:#225145}

/* Keep the selection tools within the existing cream paper panel. */

/* Override the earlier transparent hit targets with the approved live colors. */

/* Regular Spend uses the approved banner with its own accurate subtitle. */


/* Weekly Tracker & History is separate from the original Habits award screen. */
.bb-open-weekly{margin:8px 0 12px!important;font:800 16px/1.2 Arial,sans-serif!important}
body.bb-approved .bb-habits-dialog.bb-weekly-screen{width:min(600px,calc(100vw - 8px))!important;padding:10px!important;border:0!important;background:#b8f5e6!important;box-shadow:0 0 20px #4abda044!important}
body.bb-approved .bb-weekly-screen>.bb-close{display:none!important}
.bb-week-art{display:block;max-width:100%;height:auto;margin:0 auto}
body.bb-approved .bb-weekly-screen>.bb-week-art{width:96%;margin:0 auto;pointer-events:none}
body.bb-approved .bb-weekly-screen .bb-habit-paper{border:5px solid #fffdf6!important;outline:1px dashed #64bfaa!important;outline-offset:-8px!important;border-radius:23px;padding:12px 9px!important;margin:9px 0;box-shadow:0 4px 5px #11634333;background:#fffdf6 url('/assets/sticker-book/paper.png') center/600px}
.bb-week-current{position:relative;text-align:center}
.bb-week-pill{background:linear-gradient(#fff9d8,#ffe189);border:2px solid #e5b648;box-shadow:0 2px 3px #72551b30;border-radius:24px;color:#043b2a;text-align:center;font:900 16px/1.1 Arial,sans-serif;padding:6px 10px}
body.bb-approved .bb-weekly-screen .bb-week-current h2{width:74%;margin:0;font-size:clamp(12px,3.9vw,23px);text-transform:uppercase;padding:5px 8px}
.bb-week-reset{position:absolute;right:10px;top:14px;width:23%;border:1px solid #75c8b3;border-radius:12px;padding:6px 3px;background:#fffaf0;font:700 clamp(9px,2.8vw,15px)/1.1 Arial,sans-serif;color:#12563f}
.bb-week-score{display:flex;flex-direction:column;margin:12px 0 9px;color:#00482f}
body.bb-approved .bb-weekly-screen .bb-week-score .bb-habit-total{position:static!important;width:auto!important;height:auto!important;margin:0!important;background:none!important;border:0!important;box-shadow:none!important;font:900 clamp(48px,14vw,83px)/1 BearNumbers,Arial,sans-serif!important;color:#00482f}
.bb-week-score>span{font:400 clamp(14px,3.5vw,21px)/1.2 Arial,sans-serif;margin-top:4px}
body.bb-approved .bb-weekly-screen .bb-habit-progress{display:flex;gap:4px;height:38px;margin:4px 6px;padding:0;border:0!important;background:none;overflow:visible}
body.bb-approved .bb-weekly-screen .bb-habit-progress span{flex:1;transform:none;border:2px solid #daa12a;border-radius:9px;background:#fff1cf;box-shadow:inset 0 0 0 2px #fff7d6,0 2px 2px #57482133}
body.bb-approved .bb-weekly-screen .bb-habit-progress span[data-complete=true]{background:#007552 url('/assets/sticker-book/weekly-nov6/paw.webp') center/clamp(13px,3.5vw,22px) no-repeat}
body.bb-approved .bb-weekly-screen .bb-habit-progress>strong{display:none}
.bb-week-covered{font:900 clamp(16px,4.5vw,27px)/1.1 Arial,sans-serif;color:#043e2c;background:#ffedb7;border:3px solid white;border-radius:26px;padding:6px 4px;margin:13px auto 4px;width:88%;box-shadow:0 3px 3px #6c5e3330}
body.bb-approved .bb-weekly-screen .bb-habit-encourage{background:none;font:700 clamp(12px,3.4vw,19px)/1.2 Arial,sans-serif;padding:2px;margin:4px 0 6px}
.bb-week-journey>.bb-week-art,.bb-week-patterns>.bb-week-art{width:80%;margin-bottom:8px}
.bb-week-row{display:grid;grid-template-columns:1.15fr 1.4fr auto;align-items:center;gap:7px;padding:9px 7px;border:3px solid white;border-radius:22px;background:#fff1cc;margin:6px 0;box-shadow:0 2px 3px #77572930;color:#06442f}
.bb-week-row strong{font:800 clamp(12px,3.4vw,21px)/1.1 Arial,sans-serif}.bb-week-row small{display:block;font:italic 12px/1.2 Arial,sans-serif;margin-top:3px}
.bb-week-segments{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:2px;height:20px;padding:2px;border:2px solid #dca93b;border-radius:14px;background:#fff4d3;overflow:hidden}
.bb-week-segments>span{display:block;min-width:0;background:#fff1cf;border:1px solid #e3c47b;border-radius:2px}.bb-week-segments>span[data-complete=true]{background:linear-gradient(#05845a,#00633f);border-color:#005c3f}
.bb-week-patterns>.bb-habit-period{font-size:10px;margin:0 0 5px}
.bb-week-pattern-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;align-items:stretch}
.bb-week-pattern{display:grid;grid-template-columns:25% minmax(0,1fr);align-items:center;gap:4px;min-height:132px;background:#fff1ce;border:3px solid white;border-radius:22px;padding:6px;color:#00442e;min-width:0}
.bb-week-pattern>.bb-week-art{width:100%;margin:0}.bb-week-pattern>div{display:flex;flex-direction:column;gap:6px;min-width:0}
.bb-week-pattern .bb-week-pill{display:block;font:800 clamp(8px,2.2vw,12px)/1.1 Arial,sans-serif;text-transform:uppercase;padding:4px 2px}
.bb-week-pattern-name{display:block;font:800 clamp(13px,3.6vw,21px)/1.1 Arial,sans-serif!important;overflow-wrap:anywhere}
.bb-week-pattern b{display:block;background:#006d49;border:2px solid #e9b43c;border-radius:20px;color:white;text-align:center;padding:4px;font:800 13px/1.1 Arial,sans-serif}
.bb-week-view-ties{border:0;background:transparent;color:#00533b;padding:0;min-height:30px;text-decoration:underline;font:700 11px/1.1 Arial,sans-serif}
.bb-week-all{display:block;width:61%;background:none;border:0;margin:12px auto 0;padding:0;color:#00462e;font-weight:900}.bb-week-all img{width:100%}
.bb-week-ties ul{padding-left:22px}.bb-week-ties li{margin:10px 0;font:700 16px/1.2 Arial,sans-serif}

}
