/* Shared Windows, Android and browser presentation. */
.bv-tools-dialog{box-sizing:border-box;inset:0;margin:auto;width:min(1050px,100vw);height:min(900px,100dvh);max-width:100vw;max-height:100dvh;padding:clamp(12px,2vw,24px);border-radius:16px;overflow:auto;background:var(--surface,#fff);color:var(--text,#172d34)}
.bv-tools-dialog::backdrop{background:#132a34aa}
.bv-tools-dialog[open]{display:flex;flex-direction:column;gap:12px}
.bv-tools-dialog [hidden],.bv-tool-panel[hidden]{display:none!important}
.bv-tools-dialog h2,.bv-tools-dialog h3{margin:0;font-size:clamp(1.2rem,3vw,1.8rem)}
.bv-header,.bv-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.bv-header h2{flex:1;min-width:150px}
.bv-tools-dialog button,.bv-tool-panel button{min-height:48px;white-space:normal;overflow-wrap:anywhere;font:inherit}
.bv-tools-dialog button:focus-visible,.bv-tool-panel button:focus-visible{outline:4px solid #0078d4;outline-offset:2px}
.bv-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.bv-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:14px;min-width:0;border:2px solid var(--border,#b4cad0);border-radius:16px;background:var(--surface,#fff);color:inherit;text-align:center}
.bv-card img{width:clamp(48px,8vw,86px);height:clamp(48px,8vw,86px);object-fit:contain}.bv-card strong{font-size:clamp(1rem,2.3vw,1.4rem)}
.bv-body{min-width:0;flex:1}.bv-body>*+*{margin-top:12px}.bv-body input,.bv-body select,.bv-body textarea{box-sizing:border-box;width:100%;max-width:100%;min-height:48px;font:inherit;padding:8px}.bv-body textarea{min-height:90px}
.bv-field{display:block;font-weight:600}.bv-field input,.bv-field select,.bv-field textarea{display:block;margin-top:6px;font-weight:400}
.bv-picture-card .symbol{display:flex;align-items:center;justify-content:center;max-width:100%;height:clamp(72px,16vh,150px);font-size:clamp(3rem,8vw,6rem)}
.bv-picture-card .symbol img,.bv-picture-card .symbol svg{height:100%;width:100%;max-width:180px;object-fit:contain}.bv-picture-card .tile-caption{font-size:clamp(1.3rem,3vw,2rem);overflow-wrap:anywhere}
.bv-step-active{border:4px solid #087b65;box-shadow:inset 0 0 0 2px #fff}.bv-step-done{opacity:.65}.bv-preview{font-size:clamp(1.3rem,3vw,2rem);padding:14px;border:2px solid var(--border,#b4cad0);border-radius:12px;white-space:pre-wrap;overflow-wrap:anywhere}
.bv-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:10px;border:1px solid var(--border,#b4cad0);border-radius:12px}.bv-row>span{flex:1;min-width:100px}
.bv-breathe{display:grid;place-items:center;min-height:160px;border-radius:32px;background:#d1e8e5;color:#173d37;font-size:1.5rem;text-align:center;padding:15px}.bv-breathe.bv-breathing{animation:bv-breathe 8s ease-in-out infinite}.bv-timer{font-size:clamp(2.5rem,8vw,5rem);font-variant-numeric:tabular-nums;text-align:center}.bv-tokens{display:flex;flex-wrap:wrap;gap:10px}.bv-tokens span{font-size:2rem;border:3px solid #527378;border-radius:50%;display:grid;place-items:center;width:48px;height:48px}.bv-tokens .earned{background:#ffd36a;color:#332900}.bv-muted{font-size:.95rem;opacity:.85}
@keyframes bv-breathe{0%,100%{box-shadow:inset 0 0 0 4px #84bab1}50%{box-shadow:inset 0 0 0 24px #84bab1}}
@media(min-width:800px){.bv-hub{grid-template-columns:repeat(4,minmax(0,1fr))}.bv-three{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-height:500px){.bv-tools-dialog{border-radius:0}.bv-picture-card .symbol{height:65px}.bv-breathe{min-height:85px}.bv-timer{font-size:2.5rem}}
@media(prefers-reduced-motion:reduce){.bv-breathe.bv-breathing{animation:none}}

.bv-tools-dialog details,.bv-tools-dialog summary{background:var(--surface,#fff);color:var(--text,#172d34);border-color:var(--border,#8aa2aa)}
.bv-tools-dialog summary{min-height:48px;padding:12px;cursor:pointer;overflow-wrap:anywhere}
.bv-picture-card{width:100%;min-height:180px}
.bv-tools-dialog progress{width:100%;height:22px}
@media(max-height:500px){.bv-picture-card{min-height:110px}}
.bv-tools-dialog[open]{overflow:hidden}
.bv-tools-dialog>.bv-body{min-height:0;overflow:auto;padding:4px;scrollbar-gutter:stable}
.bv-tools-dialog>.bv-header{flex-shrink:0;padding:0;margin:0}
.bv-tools-dialog>#bvToolsStop,.bv-tools-dialog>#bvToolsStatus{flex-shrink:0;margin:0}
.bv-tools-dialog>#bvToolsStatus:empty{display:none}
