/* Badge studies belong to the independent preview; production identity rules are untouched. */
.phone .bm-page{padding:72px 16px 108px;background:#fcfaff;min-height:100%}
.bm-heading{display:flex;align-items:center;gap:10px;margin-bottom:18px;color:#4d385f}
.bm-heading>.icon{width:29px;height:29px;color:#9b76c5}
.bm-heading h1{font-size:22px;font-weight:650;letter-spacing:.4px}
.bm-role-switch{display:flex;padding:4px;background:#eee8f4;border:1px solid #e9e0f0;border-radius:14px;gap:5px}
.bm-role-switch>button{flex:1;min-width:0;min-height:42px;border-radius:10px;color:#8d7a9a;font-size:14px;font-weight:550}
.bm-role-switch>button[aria-pressed=true]{background:#fff;color:#71529a;box-shadow:0 2px 7px #6855820d}
.bm-summary{display:flex;justify-content:space-between;font-size:11px;color:#95839e;margin:16px 1px 12px}
.bm-summary>span{color:#ab9bb4}
.bm-collections{display:flex;flex-direction:column;gap:14px}
.bm-collection{padding:14px 8px 10px;border:1px solid #e9e0f0;border-radius:20px;background:linear-gradient(145deg,#fff,#f6f1fb);box-shadow:0 3px 12px #52386804}
.bm-collection>header{padding:0 7px}
.bm-collection>header>div{display:flex;align-items:center;gap:8px}
.bm-set-number{font-size:10px;font-weight:600;color:var(--bm-accent);font-variant-numeric:tabular-nums;letter-spacing:1px}
.bm-collection h2{font-size:15px;color:#594365;font-weight:600}
.bm-collection header p{font-size:10px;color:#9b88a7;line-height:1.6;margin-top:4px}
.bm-levels{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin-top:6px}
.bm-level{min-width:0;min-height:104px;display:flex;flex-direction:column;align-items:center;padding:4px 1px;border-radius:12px;transition:background .18s}
.bm-level:hover,.bm-level:focus-visible{background:#eee5f6}
.bm-level:focus-visible,.bm-step-switch button:focus-visible,.bm-role-switch button:focus-visible{outline:2px solid #9776be;outline-offset:2px}
.bm-emblem{display:inline-flex;width:62px;height:62px;flex:none;align-items:center;justify-content:center;vertical-align:middle}
.bm-art{display:block;width:100%;height:100%;overflow:visible;flex:none}
.bm-level strong{font-size:10px;font-weight:550;line-height:1.8;color:#695078;white-space:nowrap;max-width:100%}
.bm-level small{font-size:9px;color:#a68db6;line-height:1.5;letter-spacing:.5px}
.bm-originals{margin-top:20px;border-top:1px solid #e9e1ee;padding-top:6px}
.bm-originals>summary{display:flex;align-items:center;gap:8px;list-style:none;min-height:50px;font-size:13px;font-weight:550;color:#776284;cursor:pointer}
.bm-originals summary::-webkit-details-marker{display:none}
.bm-originals summary>span{font-size:10px;font-weight:400;color:#a291ac;margin-left:auto}
.bm-originals summary>.icon{width:15px;height:15px}
.bm-originals[open] summary>.icon{transform:rotate(90deg)}
.bm-originals h2{font-size:12px;color:#8a7697;margin:10px 0}
.bm-previous .bm-collection h2{font-size:15px;color:#594365;margin:0}
.bm-new-collections .bm-collection{background:linear-gradient(150deg,#fff 42%,#f4edf9);border-color:#e4d8ee}
.bm-original-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));row-gap:12px;margin-bottom:19px}
.bm-original-grid button{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;min-height:78px}
.bm-original-grid img{width:49px;height:49px;object-fit:contain}
.bm-original-grid span{font-size:10px;color:#897396;white-space:nowrap}
.phone>.preview-modal-layer>.bm-dialog{width:calc(100% - 32px);max-width:390px;max-height:calc(100% - 64px);padding:0;border:1px solid #eee4f5;border-radius:25px;background:#fffcff;color:#584366;box-shadow:0 20px 60px #36204422;display:flex;flex-direction:column;overflow:hidden}
.bm-dialog>header{display:flex;align-items:center;gap:10px;padding:10px 12px 10px 22px;border-bottom:1px solid #f0e8f4;flex:none}
.bm-dialog>header h2{font-size:16px;font-weight:600;flex:1}
.bm-dialog>header button{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;color:#9a85ab}
.bm-dialog>header button>svg{width:21px;height:21px}
.bm-dialog-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:21px 21px 25px}
.bm-detail-art{display:grid;place-items:center;margin:0 auto;width:152px;height:152px;border-radius:50%;background:radial-gradient(circle,#eee0fa 0%,#f8f0fc88 54%,transparent 72%)}
.bm-detail-art>.bm-emblem,.bm-detail-art>img{width:140px;height:140px;object-fit:contain}
.bm-detail-title{display:flex;align-items:center;justify-content:center;gap:9px;margin:5px 0 19px}
.bm-detail-title h3{font-size:22px;font-weight:600;color:#604774}
.bm-detail-title>span{border-left:1px solid #d6c7e3;padding-left:9px;color:#9e85b0;font-size:11px}
.bm-step-switch{display:flex;gap:5px;padding:4px;border-radius:12px;background:#f4eef8}
.bm-step-switch>button{flex:1;min-width:0;min-height:36px;border-radius:8px;font-size:11px;color:#9b84ac}
.bm-step-switch>button[aria-pressed=true]{background:#fff;color:#72538e;box-shadow:0 2px 5px #583a790c}
.bm-wear-label{font-size:10px;letter-spacing:.5px;color:#a592b0;margin:25px 0 10px}
.bm-wear{display:flex;align-items:center;gap:12px;padding:14px 12px;border-radius:17px;background:#f8f3fb;border:1px solid #ede3f3}
.bm-wear-avatar{width:52px;height:52px;flex:none;aspect-ratio:1}
.bm-wear-avatar>.portrait{width:100%;height:100%;object-fit:cover;border-radius:13px}
.bm-wear-identity{min-width:0;flex:1}
.bm-wear-name{display:flex;align-items:center;gap:7px;min-width:0}
.bm-wear-name>strong{font-size:18px;font-weight:600;color:#4e3b5d;white-space:nowrap;flex:none}
.bm-inline{display:inline-flex;align-items:center;gap:3px;min-width:0;padding:0 5px 0 1px;border:1px solid #e4d7ed;border-radius:6px;background:#fffafc;color:#9370a4;height:26px}
.bm-inline>.bm-emblem,.bm-inline>img{width:26px;height:26px;object-fit:contain;flex:none}
.bm-inline>span:last-child{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.bm-wear-identity>p{font-size:10px;color:#a08eac;margin-top:6px;white-space:nowrap}
.bm-art .bm-glint{animation:bm-sheen 7.8s ease-in-out infinite;animation-play-state:paused;pointer-events:none}
.bm-art .bm-spark{animation:bm-twinkle 5.4s ease-in-out infinite;animation-play-state:paused;transform-box:fill-box;transform-origin:center;pointer-events:none}
.bm-art .bm-pulse{animation:bm-glow 6.6s ease-in-out infinite;animation-play-state:paused;pointer-events:none}
.bm-art .bm-orbit{animation:bm-orbit 32s linear infinite;animation-play-state:paused;transform-origin:60px 60px;pointer-events:none}
.bm-emblem[data-bm-tier="2"] .bm-art *{animation-delay:-1.2s}
.bm-emblem[data-bm-tier="3"] .bm-art *{animation-delay:-2.4s}
.bm-emblem[data-bm-tier="4"] .bm-art *{animation-delay:-3.6s}
.bm-emblem[data-bm-tier="5"] .bm-art *{animation-delay:-4.8s}
.bm-visible .bm-art .bm-glint,.bm-visible .bm-art .bm-spark,.bm-visible .bm-art .bm-pulse,.bm-visible .bm-art .bm-orbit{animation-play-state:running}
.bm-document-paused .bm-art *,.phone.has-preview-modal .bm-page .bm-art *{animation-play-state:paused!important}
@keyframes bm-sheen{0%,68%{transform:translateX(-110px);opacity:0}72%{opacity:.55}88%{transform:translateX(110px);opacity:0}100%{transform:translateX(110px);opacity:0}}
@keyframes bm-twinkle{0%,100%{opacity:.35;scale:.86}50%{opacity:1;scale:1}}
@keyframes bm-glow{0%,100%{opacity:.38}50%{opacity:.8}}
@keyframes bm-orbit{to{transform:rotate(360deg)}}
.phone.canvas-compact .bm-page{padding-left:12px;padding-right:12px}
.phone.canvas-compact .bm-collection{padding-left:4px;padding-right:4px}
.phone.canvas-compact .bm-level>.bm-emblem{width:54px;height:54px}
.phone.canvas-compact .bm-level{min-height:96px}
.phone.canvas-compact .bm-dialog-body{padding-left:15px;padding-right:15px}
.phone.canvas-narrow .bm-level>.bm-emblem{width:45px;height:45px}
.phone.canvas-narrow .bm-level strong{font-size:9px}
.phone.canvas-narrow .bm-collection header p{font-size:9px}
.phone.canvas-narrow .bm-wear{padding:12px 8px;gap:8px}
.phone.canvas-narrow .bm-wear-avatar{width:44px;height:44px}
.phone.canvas-narrow .bm-wear-name{gap:4px}
.phone.canvas-narrow .bm-wear-name>strong{font-size:16px}
.phone.canvas-narrow .bm-inline>span:last-child{display:none}
.phone.canvas-tablet .bm-page{max-width:760px;margin:0 auto}
.phone.canvas-tablet .bm-level>.bm-emblem{width:84px;height:84px}
.phone.canvas-tablet .bm-level strong{font-size:12px}
.phone.canvas-tablet .bm-level small{font-size:10px}
body[data-view=badges] .review-copy{display:none}
@media(prefers-reduced-motion:reduce){.bm-art *{animation:none!important}.bm-level{transition:none}}


/* Lettering and emblem share one drawn silhouette; no separate name pill. */
.phone .bm-plaque-levels{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 4px;margin-top:16px}
.phone .bm-plaque-levels>.bm-level{min-height:80px;padding:6px 2px 8px;justify-content:center;gap:5px}
.phone .bm-plaque-levels>.bm-level:last-child:nth-child(odd){grid-column:1/-1;width:calc((100% - 4px)/2);justify-self:center}
.phone .bm-plaque-levels .bm-level>.bm-plaque{width:100%;max-width:156px;height:auto;aspect-ratio:224/104}
.phone .bm-plaque-levels .bm-level>small{font-size:10px;letter-spacing:2px;color:#8d759d}
.phone .bm-detail-art--plaque{width:100%;height:auto;max-width:224px;aspect-ratio:224/104;background:none;border-radius:0;margin:13px auto 15px}
.phone .bm-detail-art--plaque>.bm-plaque{width:100%;height:100%;aspect-ratio:224/104}
.phone .bm-detail-title--plaque{margin:0 0 20px}
.phone .bm-detail-title--plaque>span{border:0;padding:0;font-size:11px;letter-spacing:2px}
.phone .bm-inline--plaque{height:auto;padding:0;border:0;border-radius:0;background:none;gap:0;flex:none}
.phone .bm-inline--plaque>.bm-plaque{display:inline-flex;width:78px;height:auto;aspect-ratio:224/104;overflow:visible;max-width:none}
.phone.canvas-narrow .bm-inline--plaque>.bm-plaque{display:inline-flex;width:74px;height:auto;overflow:visible}
.phone.canvas-compact .bm-plaque-levels>.bm-level{min-height:70px}
.phone.canvas-tablet .bm-plaque-levels{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.phone.canvas-tablet .bm-plaque-levels>.bm-level:last-child:nth-child(odd){grid-column:auto;width:auto;justify-self:stretch}
