/* Badge-wall UI: traditional circle honors only. Existing reward assets stay untouched. */
.bw-preview,.bw-page,.bw-dialog{--bw-green:#009b43;--bw-ink:#18211d;--bw-muted:#76818b;--bw-line:#e7ede9;--bw-mint:#e4f8ed;color:var(--bw-ink);font-family:inherit;box-sizing:border-box}
.bw-preview *,.bw-page *,.bw-dialog *{box-sizing:border-box}
.bw-preview button,.bw-page button,.bw-dialog button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.bw-preview button:disabled,.bw-page button:disabled,.bw-dialog button:disabled{cursor:default;opacity:.48}
.bw-preview button:focus-visible,.bw-page button:focus-visible,.bw-dialog button:focus-visible{outline:3px solid #007b35;outline-offset:3px}
.bw-preview img,.bw-page img,.bw-dialog img{display:block;background:transparent!important}
.bw-has-wall .v3-achievements{display:none!important}
.bw-icon{display:block;width:22px;height:22px;flex:0 0 auto}
.bw-preview{margin:22px 0 20px;background:#fff;min-width:0}
.bw-section-head{display:flex;align-items:center;gap:8px;min-height:36px;margin:0 0 10px}
.bw-section-head h2{font-size:17px;line-height:1.4;letter-spacing:-.25px;font-weight:700;margin:0;flex:0 1 auto}
.bw-count-chip{font-size:11px;white-space:nowrap;line-height:20px;padding:1px 8px;background:#dcf8e8;border-radius:20px;color:#008d3c}
.bw-text-button{border:0;background:none;color:var(--bw-muted);padding:6px 0;min-height:44px;font-size:12px!important;line-height:1.4;white-space:nowrap}
.bw-section-head>.bw-text-button{margin-left:auto}
.bw-section-head>.bw-text-button span{font-size:23px;line-height:14px;display:inline-block;vertical-align:-2px;margin-left:3px}
.bw-mini-scene{display:block;position:relative;width:100%;border:0;border-radius:16px 16px 0 0;padding:20px 10px 14px;overflow:hidden;color:var(--bw-ink);background:repeating-linear-gradient(90deg,#def7e9 0,#def7e9 12.5%,#d5f3e3 12.5%,#d5f3e3 25%);isolation:isolate;text-align:center}
.bw-mini-scene:before{content:"";position:absolute;inset:10px 11px -22px;border:1px solid #fff;border-radius:11px;z-index:-1;pointer-events:none}
.bw-mini-scene:after{content:"";position:absolute;inset:10px 50% 0 auto;border-left:1px solid #ffffffb3;z-index:-1;pointer-events:none}
.bw-mini-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:start}
.bw-mini-item{display:block;min-width:0}
.bw-mini-item .bw-badge-art{width:76px;height:76px;max-width:100%;object-fit:contain;margin:0 auto 7px;filter:drop-shadow(0 3px 2px #17372416)}
.bw-mini-item b{display:block;font-size:12px;line-height:18px;font-weight:600;overflow-wrap:anywhere}
.bw-mini-item small{display:block;margin-top:3px;font-size:11px;line-height:15px;color:#6e7d74}
.bw-empty-preview{grid-column:1/-1;min-height:101px;display:grid;place-content:center;gap:7px}
.bw-empty-preview b{display:block;font-size:14px;line-height:20px;font-weight:600}
.bw-empty-preview small{display:block;font-size:11px;line-height:16px;color:#6e7d74}
.bw-mini-item[data-earned=false] .bw-badge-art{filter:grayscale(1);opacity:.47}
.bw-preview-foot{min-height:36px;display:flex;gap:8px;align-items:center;justify-content:space-between;background:#eaf8f0;border-radius:0 0 16px 16px;padding:0 12px}
.bw-preview-foot p{font-size:11px;line-height:16px;color:#6d8277;margin:0;flex:1;min-width:0}
.bw-preview .bw-preview-foot .bw-text-button{color:var(--bw-green)!important;font-weight:600;flex:0 0 auto;min-height:44px}
.bw-page{width:100%;max-width:430px;min-height:100dvh;margin:0 auto;padding:0 0 max(24px,env(safe-area-inset-bottom));background:#fff}
.bw-topbar{position:sticky;top:0;z-index:8;display:grid;grid-template-columns:60px minmax(0,1fr) 60px;align-items:center;min-height:52px;padding:4px 12px;background:#fffffff5;isolation:isolate}
.bw-topbar h1{margin:0;font-size:18px;line-height:25px;text-align:center;font-weight:700}
.bw-icon-button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:10px;border:0;background:none;color:var(--bw-ink)}
.bw-topbar>.bw-icon-button:first-child{justify-self:start}
.bw-topbar>.bw-icon-button:last-child{justify-self:end}
.bw-topbar .bw-share{gap:4px;padding:8px 0;font-size:11px;width:60px;white-space:nowrap}
.bw-topbar .bw-share span{font-size:11px;line-height:16px;white-space:nowrap;flex:0 0 auto}
.bw-topbar .bw-share .bw-icon{width:20px;height:20px}
.bw-person{display:flex;align-items:center;gap:12px;padding:12px 16px 14px}
.bw-avatar{display:flex;align-items:center;justify-content:center;width:48px;height:48px;flex:0 0 48px;background:#d9f8e8;color:#00a84e;border-radius:50%;font-size:27px;overflow:hidden}
.bw-avatar img{width:100%;height:100%;object-fit:cover}
.bw-person-copy{min-width:0}
.bw-person h2{font-size:16px;line-height:22px;margin:0 0 4px;font-weight:650;overflow-wrap:anywhere}
.bw-person p{margin:0;color:var(--bw-muted);font-size:12px;line-height:18px}
.bw-person strong{font-size:17px;color:var(--bw-green)}
.bw-scene{position:relative;width:100%;aspect-ratio:5/4;overflow:hidden;background:#e9f2eb;isolation:isolate}
.bw-scene-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;user-select:none;pointer-events:none}
.bw-scene[data-background=locker]{background:#eef0f1}
.bw-slot{position:absolute;left:var(--bw-x);top:var(--bw-y);transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:23%;aspect-ratio:1;min-width:44px;min-height:44px;padding:0;border:0;background:transparent;z-index:2}
.bw-slot .bw-slot-art{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 2px #18261f40);transition:transform .18s ease}
.bw-slot:hover .bw-slot-art{transform:translateY(-2px)}
.bw-slot-empty{display:flex;align-items:center;justify-content:center;width:76%;height:76%;border:2px dashed #e2f7e5ba;border-radius:20px;color:#effff1}
.bw-slot-empty .bw-icon{width:27px;height:27px}
.bw-scene[data-background=locker] .bw-slot-empty{border-color:#89939ba6;color:#77838b}
.bw-scene-empty{position:absolute;left:8%;right:8%;bottom:5%;margin:0;padding:6px 10px;border-radius:12px;background:#ffffffeb;font-size:12px;line-height:18px;text-align:center;color:#3e5c4b;z-index:3;pointer-events:none}
.bw-scene[data-background=locker] .bw-scene-empty{bottom:1.5%;background:#ffffffed;color:#59646e}
.bw-backgrounds{display:flex;align-items:center;gap:8px;padding:10px 16px 8px;background:#fff}
.bw-background-label{font-size:13px;flex:0 0 auto;color:#354139}
.bw-background-option{position:relative;display:flex;flex:1 1 0;min-width:0;min-height:44px;align-items:center;justify-content:flex-start;gap:8px;border:1px solid #e0e8e4;border-radius:11px;padding:5px 7px;background:#fff;color:#546259;font-size:13px!important;line-height:18px}
.bw-background-option img{width:48px;height:32px;object-fit:cover;border-radius:5px;flex:0 0 48px}
.bw-background-option[aria-pressed=true]{border-color:var(--bw-green);background:#e8faef;color:#006d31;font-weight:600}
.bw-background-option .bw-selected-check{background:var(--bw-green);color:#fff;width:19px;height:19px;border-radius:50%;padding:3px;margin-left:auto}
.bw-primary,.bw-secondary{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;min-width:44px;padding:11px 18px;border-radius:24px;font-size:15px!important;line-height:22px;font-weight:600!important}
.bw-primary{border:1px solid var(--bw-green);background:var(--bw-green);color:#fff}
.bw-secondary{border:1px solid #dfe7e2;background:#fff;color:#39483e}
.bw-primary .bw-icon{width:22px;height:22px}
.bw-wall-actions{padding:3px 16px 16px}
.bw-wall-actions .bw-primary{width:100%}
.bw-collection{padding:16px 16px 24px;border-top:8px solid #f4f8f5;background:#fff}
.bw-collection .bw-section-head{margin-bottom:4px}
.bw-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;border-bottom:1px solid var(--bw-line);margin:0 -2px 18px}
.bw-tabs button{position:relative;border:0;background:none;min-height:44px;padding:10px 0;color:#5f6a73;white-space:nowrap;font-size:12px!important;line-height:20px}
.bw-tabs button[aria-pressed=true]{color:var(--bw-green);font-weight:600}
.bw-tabs button[aria-pressed=true]:after{content:"";position:absolute;height:3px;width:32px;background:var(--bw-green);bottom:-1px;left:50%;transform:translateX(-50%);border-radius:3px}
.bw-badge-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:12px;row-gap:24px;list-style:none;margin:0;padding:0}
.bw-badge-grid>li{min-width:0;list-style:none;margin:0;padding:0}
.bw-badge{width:100%;min-width:0;display:block;border:0;background:none;padding:0;text-align:center;color:var(--bw-ink)}
.bw-badge-image{position:relative;display:block;width:100%;height:94px;margin:0 auto 7px}
.bw-badge-image>.bw-badge-art{width:100%;height:100%;object-fit:contain}
.bw-badge b{font-size:13px;line-height:19px;font-weight:600;display:block;overflow-wrap:anywhere}
.bw-badge small{font-size:11px;line-height:17px;display:flex;gap:3px;align-items:center;justify-content:center;color:var(--bw-muted);margin-top:4px}
.bw-badge small .bw-icon{width:12px;height:12px}
.bw-wall-page .bw-badge[data-earned=true] small{color:var(--bw-green)}
.bw-badge[data-earned=false] .bw-badge-art,.bw-detail[data-earned=false] .bw-badge-art{filter:grayscale(1);opacity:.45}
.bw-badge-lock{position:absolute;right:5px;bottom:0;display:flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:#edf0f3;color:#64717b}
.bw-badge-lock .bw-icon{width:13px;height:13px}
.bw-overview{padding:18px 16px 12px}
.bw-overview>div{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.bw-overview strong{font-size:38px;line-height:44px;color:var(--bw-green);font-weight:700}
.bw-overview span{font-size:15px;font-weight:600;line-height:22px}
.bw-overview p{font-size:12px;line-height:18px;color:var(--bw-muted);margin:6px 0 0}
.bw-overview progress{margin-left:8px;flex:1;min-width:72px;height:8px}
.bw-page progress,.bw-dialog progress{appearance:none;-webkit-appearance:none;overflow:hidden;border:0;border-radius:8px;background:#e8edf0;color:var(--bw-green)}
.bw-page progress::-webkit-progress-bar,.bw-dialog progress::-webkit-progress-bar{background:#e8edf0;border-radius:8px}
.bw-page progress::-webkit-progress-value,.bw-dialog progress::-webkit-progress-value{background:var(--bw-green);border-radius:8px}
.bw-page progress::-moz-progress-bar,.bw-dialog progress::-moz-progress-bar{background:var(--bw-green);border-radius:8px}
.bw-collection-page .bw-collection{border-top:0;padding-top:0}
.bw-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 22px}
.bw-filters button{border:0;background:#f2f4f5;border-radius:20px;min-height:36px;padding:7px 4px;color:#6e7982;font-size:12px!important;white-space:nowrap}
.bw-filters button[aria-pressed=true]{background:#dff8ea;color:#00873c;font-weight:600}
.bw-catalog-foot{display:flex;align-items:center;justify-content:center;gap:8px;margin:28px 0 0;color:#87938b;font-size:11px;line-height:18px}
.bw-catalog-foot:before,.bw-catalog-foot:after{content:"";width:36px;height:1px;background:#e2e8e4}
.bw-state{padding:18px 0;color:var(--bw-muted);font-size:13px;line-height:1.7}
.bw-state p{margin:0 0 12px}
.bw-page-body>.bw-state{margin:12px 16px}
.bw-error{color:#ad3533!important}
.bw-notice,.bw-membership-note{margin:2px 16px 12px;padding:8px 12px;border-radius:8px;background:#f1f8f3;color:#557363;font-size:12px;line-height:18px}
.bw-notice.bw-error{background:#fff2ef}
.bw-editor{margin:8px 16px 20px;padding:14px 0 0;border-top:1px solid var(--bw-line)}
.bw-editor .bw-section-head{margin-bottom:5px}
.bw-editor .bw-section-head>span{margin-left:auto;font-size:11px;color:var(--bw-muted);white-space:nowrap}
.bw-editor-note{color:var(--bw-muted);font-size:12px;line-height:18px;margin:0 0 14px}
.bw-edit-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.bw-edit-option{display:grid;grid-template-columns:44px minmax(0,1fr) 18px;align-items:center;gap:6px;min-height:66px;border:1px solid var(--bw-line);border-radius:10px;background:#fff;padding:8px;color:#37463d;text-align:left}
.bw-edit-option>.bw-badge-art{width:44px;height:44px;object-fit:contain}
.bw-edit-option>span{font-size:12px;line-height:17px}
.bw-edit-option>.bw-icon{width:18px;height:18px;color:var(--bw-green)}
.bw-edit-option[aria-pressed=true]{border-color:var(--bw-green);background:#f0faf4}
.bw-edit-list{list-style:none;margin:16px 0;padding:0}
.bw-edit-row{display:flex;align-items:center;gap:6px;padding:6px 0;border-bottom:1px solid var(--bw-line)}
.bw-edit-row>.bw-position{font-size:11px;width:14px;flex:0 0 14px;color:var(--bw-muted);text-align:center}
.bw-edit-row>.bw-badge-art{width:36px;height:36px;object-fit:contain;flex:0 0 36px}
.bw-edit-row>b{font-size:12px;line-height:18px;font-weight:600;flex:1;min-width:0}
.bw-reorder{display:flex;flex:0 0 auto}
.bw-reorder .bw-icon-button{width:44px;min-width:44px;padding:11px}
.bw-reorder .bw-icon{width:18px;height:18px}
.bw-editor-actions{display:flex;gap:10px;margin-top:16px}
.bw-editor-actions>.bw-secondary{flex:0 0 86px}
.bw-editor-actions>.bw-primary{flex:1}
.bw-dialog{width:min(calc(100% - 32px),390px);max-height:88dvh;overflow:auto;margin:auto;padding:18px;border:1px solid #e5ece7;border-radius:18px;background:#fff;box-shadow:0 16px 64px #14271a30}
.bw-dialog::backdrop{background:#0f21175c}
.bw-dialog>header{display:flex;align-items:center;gap:12px}
.bw-dialog h2{font-size:18px;line-height:24px;flex:1;margin:0}
.bw-dialog p{font-size:13px;line-height:1.7;margin:10px 0;color:#637369}
.bw-dialog .bw-primary{width:100%;margin-top:14px}
.bw-detail{text-align:center}
.bw-detail-art{width:144px;height:144px;object-fit:contain;margin:12px auto}
.bw-detail-status{display:inline-block!important;color:var(--bw-green)!important;background:#edf9f2;border-radius:20px;padding:4px 12px;margin:0 0 4px!important;font-size:12px!important}
.bw-detail[data-earned=false] .bw-detail-status{color:#79828a!important;background:#f1f4f5}
.bw-detail progress{width:100%;height:8px}
.bw-detail-note{font-size:11px!important;color:#89938e!important}
.bw-dialog a{overflow-wrap:anywhere;color:var(--bw-green)}
.bw-dialog input,.bw-dialog textarea{width:100%;font:inherit;border:1px solid var(--bw-line);border-radius:8px;padding:10px;font-size:12px}
@media(max-width:359px){.bw-preview{margin-inline:0}.bw-section-head{gap:5px}.bw-section-head h2{font-size:16px}.bw-count-chip{font-size:10px;padding-inline:6px}.bw-backgrounds{padding-inline:12px;gap:5px}.bw-background-option{gap:5px;padding:5px;font-size:12px!important}.bw-background-option img{width:36px;height:29px;flex-basis:36px}.bw-background-option .bw-selected-check{width:16px;height:16px;padding:2px}.bw-tabs{gap:2px}.bw-tabs button{font-size:11px!important}.bw-badge-image{height:82px}.bw-edit-row>.bw-position{display:none}.bw-edit-option{grid-template-columns:36px minmax(0,1fr) 16px;gap:4px;padding:6px}.bw-edit-option>.bw-badge-art{width:36px;height:36px}}
@media(min-width:768px){.bw-page{border-inline:1px solid #e9efeb}}
@media(prefers-reduced-motion:reduce){.bw-preview *,.bw-page *,.bw-dialog *{transition:none!important;animation:none!important}}


/* Unified 2026 reward wall — layered scene artwork and touch-sized controls. */
.bw-preview,.bw-page,.bw-dialog{--bw-ink:#142034;--bw-muted:#617386;--bw-line:#dcece5;--bw-mint:#eaf8f1;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Noto Sans CJK SC","Microsoft YaHei",sans-serif;line-height:1.5;color:var(--bw-ink);color-scheme:light;caret-color:var(--bw-green);scrollbar-color:#a9c8ba #f4fbf8}
.bw-preview ::selection,.bw-page ::selection,.bw-dialog ::selection{color:#101c33;background:#bcebd2}
.bw-page{max-width:480px;padding-bottom:calc(16px + env(safe-area-inset-bottom));background:#fff;overflow-x:clip}
.bw-page button,.bw-preview button,.bw-dialog button{touch-action:manipulation;transition:background-color .18s ease,border-color .18s ease,color .18s ease}
.bw-page button:hover:not(:disabled),.bw-preview button:hover:not(:disabled),.bw-dialog button:hover:not(:disabled){filter:brightness(.97)}
.bw-page button:active:not(:disabled),.bw-dialog button:active:not(:disabled){transform:translateY(1px)}
.bw-page button:focus-visible,.bw-page input:focus-visible,.bw-page [tabindex]:focus-visible,.bw-dialog button:focus-visible,.bw-preview button:focus-visible{outline:3px solid #066a3a;outline-offset:3px}
.bw-page button:disabled,.bw-dialog button:disabled{opacity:.52;cursor:not-allowed}
.bw-page .bw-topbar{position:relative;min-height:52px;height:52px;padding:0 8px;grid-template-columns:44px minmax(0,1fr) 44px;background:#fff}
.bw-page .bw-topbar h1{font-size:21px;line-height:28px;font-weight:700;letter-spacing:0}
.bw-topbar .bw-share{width:44px;padding:10px}
.bw-topbar .bw-share .bw-icon{width:23px;height:23px}
.bw-person-level{min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 16px 4px}
.bw-person-level p{margin:0;display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600}
.bw-level{font-size:16px;line-height:25px;min-width:48px;padding:0 10px;text-align:center;border-radius:16px;background:#009b43;color:#fff;font-variant-numeric:tabular-nums}
.bw-level-2{background:#168cff}.bw-level-3{background:#8d42f5}.bw-level-4{background:#ed5949}.bw-level-5{background:#ffc928;color:#101c33}
.bw-person-level .bw-text-button{display:flex;gap:4px;align-items:center;color:#49687b;font-size:12px!important}
.bw-person-level .bw-text-button .bw-icon{width:17px;height:17px}
.bw-wall-page .bw-scene{width:calc(100% - 16px);margin:0 8px;border-radius:10px}
.bw-scene{position:relative;aspect-ratio:1.4;overflow:hidden;background:#eaf8f1;isolation:isolate}
.bw-scene-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none;user-select:none;z-index:0}
.bw-scene-theme{position:absolute;inset:0;z-index:1;pointer-events:none;mask-image:var(--bw-layer-mask);-webkit-mask-image:var(--bw-layer-mask);mask-size:100% 100%;-webkit-mask-size:100% 100%;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;mix-blend-mode:normal}
.bw-scene-theme-primary{background:var(--bw-theme-primary)}
.bw-scene-theme-soft{background:var(--bw-theme-soft)}
.bw-scene-theme-deep{background:var(--bw-theme-deep)}
.bw-scene-theme-seat{background:var(--bw-theme-seat)}
.bw-scene-theme-accent{background:var(--bw-theme-accent)}
.bw-slot-grid{position:absolute;inset:9.9% 17.6% 31.3%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:0;align-items:center;justify-items:center;z-index:3;isolation:isolate}
.bw-slot{position:relative;left:auto;top:auto;transform:none!important;width:100%;height:100%;max-width:96px;max-height:96px;min-height:44px;min-width:44px;aspect-ratio:1;display:flex;align-items:center;justify-content:center;padding:0;border:0;background:transparent!important;border-radius:12px}
.bw-slot .bw-slot-art{width:100%;height:100%;padding:2px;object-fit:contain;filter:none;transition:transform .18s ease}
.bw-slot:hover .bw-slot-art{transform:translateY(-2px)}
.bw-slot-empty{width:70%;height:70%;border:1.5px dashed #486b5ca6;border-radius:12px;color:#3c6755;background:#ffffffc7}
.bw-scene[data-background=locker] .bw-slot-empty{border-color:#486b5ca6;color:#3c6755}
.bw-slot-empty .bw-icon{width:22px;height:22px}
.bw-backgrounds{display:flex;margin:12px 16px 16px;padding:0;gap:0;min-height:44px;border-radius:24px;background:#eaf0f3}
.bw-background-option{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 12px;border:0;border-radius:24px;background:transparent;color:#53718a;font-size:15px!important;font-weight:600;line-height:24px}
.bw-background-option[aria-pressed=true]{background:var(--bw-theme-primary);color:var(--bw-theme-ink)}
.bw-background-option .bw-icon{width:23px;height:23px}
.bw-colors{padding:0 16px}
.bw-colors-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:32px;padding:2px 6px;margin:0 0 10px;border-radius:5px;background:#f0f8f6}
.bw-colors-head h2{margin:0;color:#142034;font-size:17px;line-height:26px;font-weight:700}
.bw-colors-head>span{font-size:11px;color:#536c7d;line-height:18px}
.bw-swatches{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;margin:0 -4px 16px}
.bw-swatch{display:flex;min-width:44px;min-height:64px;flex-direction:column;align-items:center;gap:7px;padding:3px 0 0;border:0;border-radius:6px;background:none;color:#40576c;font-size:11px!important;line-height:18px}
.bw-swatch-dot{position:relative;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:var(--bw-swatch);color:#fff;box-shadow:inset 0 0 0 1px #14203408}
.bw-swatch[aria-pressed=true] .bw-swatch-dot{outline:2px solid var(--bw-swatch);outline-offset:3px}
.bw-swatch[aria-pressed=true] .bw-swatch-name{color:#142034;font-weight:700}
.bw-swatch-dot>.bw-icon{width:24px;height:24px;stroke-width:2.8;filter:drop-shadow(0 1px 1px #101c3345)}
.bw-swatch[aria-disabled=true] .bw-swatch-dot{opacity:.55}
.bw-swatch-lock{position:absolute;right:-4px;top:-4px;width:18px;height:18px;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid #dce5ea;border-radius:50%;color:#30495e}
.bw-swatch-lock .bw-icon{width:12px;height:12px}
.bw-swatch-name{white-space:nowrap}
.bw-custom-entry{display:flex;align-items:center;gap:10px;width:100%;min-height:72px;margin:0;padding:10px 12px;text-align:left;background:#f4f8fa;border:1px solid #d8e5ed;border-radius:12px;color:#142034}
.bw-custom-entry>.bw-icon{width:31px;height:31px}
.bw-custom-copy{display:block;flex:1;min-width:0}
.bw-custom-copy b{display:block;font-size:16px;line-height:24px;font-weight:700}
.bw-custom-copy small{display:block;margin-top:1px;font-size:11px;line-height:17px;color:#557084}
.bw-custom-status{display:flex;align-items:center;justify-content:flex-end;gap:4px;flex:0 0 auto;max-width:86px;font-size:11px;font-weight:600;color:#4c687c;white-space:nowrap}
.bw-custom-status>.bw-icon{width:15px;height:15px}
.bw-custom-status>i{width:25px;height:25px;border-radius:50%;display:block;box-shadow:0 0 0 3px #fff,0 0 0 4px #dce4e9;margin:0 4px}
.bw-custom-entry.is-custom{border-color:var(--bw-theme-primary);background:var(--bw-theme-soft)}
.bw-custom-entry.is-custom>.bw-icon{color:var(--bw-theme-deep)}
.bw-color-panel{margin-top:8px;padding:0 10px 12px;background:#fff;border:1px solid #cfdfdf;border-radius:12px}
.bw-color-panel>header{display:flex;align-items:center;justify-content:space-between;height:44px;gap:8px}
.bw-color-panel h3{margin:0;font-size:14px;line-height:22px;font-weight:600}
.bw-color-panel>header .bw-icon-button{margin-right:-6px}
.bw-picker-layout{display:grid;grid-template-columns:minmax(108px,1fr) minmax(0,1.25fr);gap:12px}
.bw-sv{position:relative;align-self:stretch;min-height:152px;max-height:180px;border-radius:6px;background:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,transparent),var(--bw-hue);touch-action:none;cursor:crosshair;isolation:isolate}
.bw-sv-point{position:absolute;width:18px;height:18px;transform:translate(-50%,-50%);border:2px solid #fff;border-radius:50%;box-shadow:0 1px 3px #14203470;pointer-events:none}
.bw-picker-fields{min-width:0;display:flex;flex-direction:column;justify-content:space-between;gap:5px}
.bw-hue-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.bw-page input.bw-hue{display:block;width:100%;height:44px;min-height:44px;margin:0;padding:0;appearance:none;-webkit-appearance:none;border:0;background:transparent;cursor:pointer;touch-action:pan-y;box-shadow:none}
.bw-hue::-webkit-slider-runnable-track{height:12px;background:linear-gradient(to right,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00);border-radius:10px}
.bw-hue::-moz-range-track{height:12px;background:linear-gradient(to right,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00);border-radius:10px}
.bw-hue::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:24px;height:24px;margin-top:-6px;border:3px solid #fff;border-radius:50%;background:#4b5262;box-shadow:0 1px 3px #14203455}
.bw-hue::-moz-range-thumb{width:18px;height:18px;border:3px solid #fff;border-radius:50%;background:#4b5262;box-shadow:0 1px 3px #14203455}
.bw-hex-row{display:flex;align-items:center;gap:6px;min-width:0;font-size:12px;color:#4c687c}
.bw-hex-row label{white-space:nowrap;flex:0 0 auto}
.bw-page .bw-hex-row input{display:block;flex:1;min-width:0;width:100%;min-height:44px;max-width:100%;padding:6px 7px;border:1px solid #ccdce5;border-radius:6px;background:#fff;color:#334d63;font:600 13px/24px -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.02em;text-transform:uppercase;box-shadow:none}
.bw-page .bw-hex-row input[aria-invalid=true]{border-color:#b43340}
.bw-color-sample{display:block;flex:0 0 26px;width:26px;height:30px;border:1px solid #c9d8de;border-radius:5px}
.bw-hex-error{min-height:16px;margin:0;font-size:10px;line-height:16px;color:#a52e3b;overflow-wrap:anywhere}
.bw-picker-actions{display:flex;gap:6px}
.bw-picker-actions>.bw-primary,.bw-picker-actions>.bw-secondary{min-width:0;flex:1;min-height:44px;padding:7px 4px;border-radius:7px;font-size:12px!important;line-height:20px;white-space:nowrap}
.bw-primary,.bw-secondary{min-height:48px;border-radius:12px;font-weight:600!important}
.bw-primary{background:#009b43;border-color:#009b43;color:#fff}
.bw-save-area{padding:20px 16px 0}
.bw-save-area>.bw-primary{width:100%;font-size:17px!important;min-height:48px}
.bw-save-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:44px;color:#617386;font-size:11px}
.bw-save-foot .bw-text-button{display:flex;align-items:center;gap:4px;font-size:11px!important;color:#466c5b}
.bw-save-foot .bw-icon{width:14px;height:14px}
.bw-membership-note,.bw-notice{margin-top:12px;margin-bottom:0;color:#4b6659;font-size:12px;line-height:20px}
.bw-notice .bw-text-button{display:block;min-height:44px;font-size:12px!important;color:#9a2632;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.bw-editor{margin-top:10px;padding-top:16px;scroll-margin-top:12px}
.bw-editor .bw-section-head{gap:6px;margin-bottom:4px}
.bw-editor .bw-section-head>.bw-icon-button{margin-left:0;margin-right:-10px}
.bw-selection-done{width:100%;margin-top:16px}
.bw-edit-option{min-height:70px}
.bw-edit-option>span{color:#334c41}
.bw-edit-row>b{overflow-wrap:anywhere}
.bw-filters button{min-height:44px}
.bw-tabs{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.bw-badge b{color:#142034}
.bw-badge small{color:#617386}
.bw-preview .bw-mini-scene{border:0;padding:0;border-radius:12px 12px 0 0;background:#eaf8f1}
.bw-mini-scene:before,.bw-mini-scene:after{content:none}
.bw-preview .bw-scene{width:100%;max-height:220px;aspect-ratio:1.8;border-radius:12px 12px 0 0}
.bw-preview .bw-scene-bg{object-fit:fill}
.bw-preview .bw-slot-grid{inset:12% 21% 18%;gap:4px}
.bw-preview .bw-slot{max-width:70px;max-height:70px}
.bw-preview .bw-slot-empty{min-height:30px;min-width:30px}
.bw-preview .bw-preview-foot{border-radius:0 0 12px 12px}
.bw-dialog-actions{display:flex;gap:8px;align-items:stretch;margin-top:12px}
.bw-dialog-actions .bw-primary,.bw-dialog-actions .bw-secondary{flex:1;min-width:0;font-size:13px!important;line-height:20px;padding:10px 8px;margin:0}
@media(max-width:359px){
 .bw-page .bw-topbar h1{font-size:20px}.bw-person-level{padding-inline:12px}.bw-backgrounds{margin-inline:12px}.bw-colors{padding-inline:12px}.bw-colors-head{padding-inline:4px}.bw-colors-head>span{font-size:10px}.bw-swatches{margin-inline:-3px;gap:0}.bw-swatch{min-width:44px;font-size:10px!important;gap:6px}.bw-swatch-dot{width:32px;height:32px}.bw-custom-entry{padding:10px 8px;gap:8px}.bw-custom-entry>.bw-icon{width:28px;height:28px}.bw-custom-copy b{font-size:15px}.bw-custom-copy small{font-size:10px;line-height:16px}.bw-custom-status{font-size:10px;max-width:70px;gap:2px}.bw-custom-status>i{width:21px;height:21px}.bw-color-panel{padding:0 8px 10px}.bw-picker-layout{grid-template-columns:minmax(108px,.9fr) minmax(0,1.2fr);gap:10px}.bw-sv{min-height:152px}.bw-hex-row{gap:4px}.bw-hex-row label{font-size:11px}.bw-color-sample{flex-basis:20px;width:20px}.bw-page .bw-hex-row input{font-size:11px;padding-inline:4px}.bw-picker-actions{gap:4px}.bw-picker-actions>.bw-primary,.bw-picker-actions>.bw-secondary{font-size:11px!important}.bw-save-area{padding-inline:12px}.bw-slot-grid{gap:6px}.bw-slot .bw-slot-art{padding:1px}.bw-reorder .bw-icon-button{width:44px}.bw-edit-row>.bw-badge-art{width:30px;height:30px;flex-basis:30px}.bw-edit-row>b{font-size:11px}
}
@media(min-width:768px){.bw-page{border-inline:1px solid #e9efeb}}
@media(prefers-reduced-motion:reduce){.bw-preview *,.bw-page *,.bw-dialog *{animation:none!important;transition:none!important;scroll-behavior:auto!important}.bw-slot:hover .bw-slot-art{transform:none}}

.bw-badge[data-frozen=true] .bw-badge-art,.bw-detail[data-frozen=true] .bw-badge-art{opacity:.5;filter:grayscale(1)}
.bw-badge[data-frozen=true] small,.bw-detail[data-frozen=true] .bw-detail-status{color:#617386!important}

/* Keep all six solid badges aligned with the painted scene panels. */
.bw-scene[data-background=locker] .bw-slot-grid{inset:9.9% 17.6% 31.3%;gap:0}
.bw-scene[data-background=stadium] .bw-slot-grid{inset:35% 17% 21%;gap:0}
.bw-preview .bw-scene{max-height:none;aspect-ratio:1.4}
.bw-scene[data-background=stadium] .bw-slot{height:auto;max-height:none;max-width:86px;aspect-ratio:1}

/* Functional fills preserve AA contrast for small white labels. */
.bw-primary{background:#00883b;border-color:#00883b}
.bw-level{background:#00883b}.bw-level-2{background:#0873db}.bw-level-3{background:#8d42f5}.bw-level-4{background:#ed5949;color:#101c33}.bw-level-5{background:#ffc928;color:#101c33}

/* Generated wall image stays selectable for the App's long-press save menu. */
.bw-share-image{display:block;width:100%;height:auto;max-width:100%;user-select:auto;-webkit-user-select:auto;-webkit-touch-callout:default}
.bw-share-download{display:flex;align-items:center;justify-content:center;text-decoration:none;min-height:44px;box-sizing:border-box}
.bw-dialog [data-bw-image-share][hidden]{display:none}
.bw-image-share-status:empty{display:none}
