/* BB QR Studio v2.7 — premium, restrained, responsive interface.
   Presentation-only layer; no QR, history, export or analytics behavior is removed. */
#bb-qra-root.bb-premium{
  --primary:#007aff;--primary-dark:#0066db;--bg-body:#f5f5f7;--bg-panel:#ffffff;
  --border:#e5e5ea;--text-main:#1d1d1f;--text-muted:#77777f;--input-bg:#f5f5f7;
  --bb-surface:#fff;--bb-subtle:#f5f5f7;--bb-elevated:#fff;--bb-ring:rgba(0,122,255,.2);
  --bb-hairline:rgba(40,40,50,.09);--bb-softshadow:0 10px 30px rgba(18,26,40,.045);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif!important;
  font-size:13px!important;line-height:1.4!important;letter-spacing:-.01em;
  color-scheme:light;
}
.theme-dark #bb-qra-root.bb-premium,body.dark #bb-qra-root.bb-premium,html.dark #bb-qra-root.bb-premium,#bb-qra-root.bb-premium[data-bb-theme="dark"]{
  --primary:#0a84ff;--primary-dark:#409cff;--bg-body:#101014;--bg-panel:#1c1c20;
  --border:#333338;--text-main:#f5f5f7;--text-muted:#a1a1aa;--input-bg:#27272c;
  --bb-surface:#1c1c20;--bb-subtle:#26262b;--bb-elevated:#222226;--bb-ring:rgba(10,132,255,.26);
  --bb-hairline:rgba(255,255,255,.09);--bb-softshadow:0 10px 32px rgba(0,0,0,.18);
  color-scheme:dark;
}
#bb-qra-root.bb-premium[data-bb-theme="light"]{
  --primary:#007aff;--primary-dark:#0066db;--bg-body:#f5f5f7;--bg-panel:#fff;
  --border:#e5e5ea;--text-main:#1d1d1f;--text-muted:#77777f;--input-bg:#f5f5f7;
  --bb-surface:#fff;--bb-subtle:#f5f5f7;--bb-elevated:#fff;--bb-ring:rgba(0,122,255,.2);
  --bb-hairline:rgba(40,40,50,.09);--bb-softshadow:0 10px 30px rgba(18,26,40,.045);color-scheme:light;
}
#bb-qra-root.bb-premium .wrapper{
  grid-template-columns:minmax(178px,212px) minmax(0,1fr) minmax(280px,326px)!important;
  height:min(920px,calc(100dvh - 24px))!important;min-height:640px!important;
  background:var(--bg-body)!important;border:1px solid var(--bb-hairline)!important;
  border-radius:20px!important;box-shadow:var(--bb-softshadow)!important;overflow:hidden!important;
}
#bb-qra-root.bb-premium .sidebar{
  background:var(--bb-surface)!important;border-right:1px solid var(--bb-hairline)!important;
  padding:0 0 10px!important;scrollbar-width:thin;
}
#bb-qra-root.bb-premium .bb-premium-brand{display:flex;align-items:center;gap:10px;padding:17px 14px 15px;border-bottom:1px solid var(--bb-hairline);min-height:66px}
#bb-qra-root.bb-premium .bb-premium-mark{display:grid;place-items:center;width:35px;height:35px;border-radius:11px;background:#007aff;color:white;font-size:18px;flex-shrink:0}
#bb-qra-root.bb-premium .bb-premium-brand-copy{display:flex;flex-direction:column;line-height:1.22;min-width:0}
#bb-qra-root.bb-premium .bb-premium-brand-copy strong{font-size:14px;letter-spacing:-.025em;color:var(--text-main);font-weight:730}
#bb-qra-root.bb-premium .bb-premium-brand-copy small{font-size:10px;color:var(--text-muted);margin-top:3px}
#bb-qra-root.bb-premium .bb-premium-brand-dot{width:7px;height:7px;background:#30b46b;border-radius:50%;margin-left:auto;flex-shrink:0}
#bb-qra-root.bb-premium .search-box{padding:12px 10px 9px!important;border:0!important}
#bb-qra-root.bb-premium .search-input{height:36px!important;min-height:36px!important;background:var(--bb-subtle)!important;border:1px solid transparent!important;border-radius:10px!important;padding:7px 11px!important;font-size:12px!important;box-shadow:none!important}
#bb-qra-root.bb-premium .search-input:focus{border-color:var(--primary)!important;box-shadow:0 0 0 3px var(--bb-ring)!important}
#bb-qra-root.bb-premium .nav-list{padding:0 7px 16px!important;scrollbar-width:thin}
#bb-qra-root.bb-premium .nav-cat{font-size:9px!important;letter-spacing:.075em!important;font-weight:720!important;padding:16px 10px 6px!important;color:var(--text-muted)!important}
#bb-qra-root.bb-premium .nav-cat .count{font-size:9px!important;padding:1px 5px!important;background:transparent!important;border:0!important}
#bb-qra-root.bb-premium button.nav-btn{padding:8px 10px!important;min-height:35px!important;margin:1px 0!important;border:0!important;border-radius:9px!important;font-size:12px!important;font-weight:520!important;color:var(--text-main)!important;transition:background .14s ease,color .14s ease!important}
#bb-qra-root.bb-premium .nav-btn i{font-size:12px;width:17px!important;color:var(--text-muted)!important}
#bb-qra-root.bb-premium .nav-btn:hover{background:var(--bb-subtle)!important}
#bb-qra-root.bb-premium .nav-btn.active{background:rgba(0,122,255,.10)!important;color:var(--primary)!important;font-weight:690!important}
#bb-qra-root.bb-premium .nav-btn.active i{color:var(--primary)!important}
#bb-qra-root.bb-premium .qr-content{padding:19px clamp(14px,2.1vw,28px)!important;gap:12px!important;background:var(--bg-body)!important;scrollbar-width:thin!important}
#bb-qra-root.bb-premium .qr-content>*{max-width:770px!important}
#bb-qra-root.bb-premium .bb-premium-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:69px;padding:0 0 15px;border-bottom:1px solid var(--bb-hairline);width:100%}
#bb-qra-root.bb-premium .bb-premium-heading{min-width:0}
#bb-qra-root.bb-premium .bb-premium-eyebrow{font-size:9px;font-weight:740;letter-spacing:.105em;color:var(--text-muted)}
#bb-qra-root.bb-premium .bb-premium-title-row{display:flex;align-items:center;gap:9px;min-width:0}
#bb-qra-root.bb-premium .bb-premium-title-row h2{font-size:21px!important;font-weight:760!important;line-height:1.25!important;margin:3px 0!important;color:var(--text-main)!important;letter-spacing:-.04em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#bb-qra-root.bb-premium .bb-premium-heading p{font-size:11px!important;color:var(--text-muted)!important;margin:2px 0 0!important}
#bb-qra-root.bb-premium .bb-premium-live{display:inline-flex;align-items:center;gap:5px;background:var(--bb-surface);border:1px solid var(--bb-hairline);border-radius:999px;padding:3px 7px;font-size:10px;font-weight:620;color:var(--text-muted);flex-shrink:0}
#bb-qra-root.bb-premium .bb-premium-live>span{width:5px;height:5px;border-radius:50%;background:#30b46b}
#bb-qra-root.bb-premium .bb-premium-toolbar-actions{display:flex;gap:6px;flex-shrink:0}
#bb-qra-root.bb-premium .bb-premium-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--border);border-radius:10px;background:var(--bb-surface);color:var(--text-main);min-height:35px;padding:7px 10px;font-size:11px;font-weight:670;cursor:pointer;white-space:nowrap}
#bb-qra-root.bb-premium .bb-premium-action:hover{background:var(--bb-subtle)}
#bb-qra-root.bb-premium .bb-premium-action-primary{background:var(--primary)!important;color:#fff!important;border-color:var(--primary)!important}
#bb-qra-root.bb-premium .bb-premium-action-primary:hover{filter:brightness(.95)}
#bb-qra-root.bb-premium #forms-container{min-height:96px!important;margin:0!important;scroll-margin-top:20px}
#bb-qra-root.bb-premium #forms-container .form:not(.hidden),#bb-qra-root.bb-premium .form-card{background:var(--bb-surface)!important;border:1px solid var(--bb-hairline)!important;border-radius:14px!important;padding:16px!important;margin:0!important;box-shadow:none!important}
#bb-qra-root.bb-premium .form-header{font-size:14px!important;font-weight:720!important;padding:0 0 12px!important;line-height:1.3!important}
#bb-qra-root.bb-premium .bb-premium-style-label,#bb-qra-root.bb-premium .bb-premium-export-label,#bb-qra-root.bb-premium .bb-premium-preview-label{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 12px;font-size:12px;font-weight:730;color:var(--text-main)}
#bb-qra-root.bb-premium .bb-premium-style-label i,#bb-qra-root.bb-premium .bb-premium-export-label i,#bb-qra-root.bb-premium .bb-premium-preview-label i{color:var(--primary);margin-right:5px}
#bb-qra-root.bb-premium .bb-premium-style-label small,#bb-qra-root.bb-premium .bb-premium-export-label small,#bb-qra-root.bb-premium .bb-premium-preview-label small{font-size:10px;font-weight:500;color:var(--text-muted)}
#bb-qra-root.bb-premium .form-group{margin-bottom:10px!important;min-width:0}
#bb-qra-root.bb-premium .label,#bb-qra-root.bb-premium .qr-mini-label{font-size:11px!important;font-weight:620!important;color:var(--text-muted)!important;margin-bottom:5px!important}
#bb-qra-root.bb-premium .input,#bb-qra-root.bb-premium .select,#bb-qra-root.bb-premium .textarea,#bb-qra-root.bb-premium .qr-mini-input,#bb-qra-root.bb-premium .bb-save-name,#bb-qra-root.bb-premium .bb-history-search{
  border:1px solid var(--border)!important;background:var(--bb-subtle)!important;color:var(--text-main)!important;border-radius:9px!important;
  padding:9px 11px!important;font-size:12px!important;min-height:36px!important;box-shadow:none!important;max-width:100%!important;
}
#bb-qra-root.bb-premium .input:focus,#bb-qra-root.bb-premium .select:focus,#bb-qra-root.bb-premium .textarea:focus,#bb-qra-root.bb-premium .qr-mini-input:focus,#bb-qra-root.bb-premium .bb-save-name:focus{border-color:var(--primary)!important;box-shadow:0 0 0 3px var(--bb-ring)!important}
#bb-qra-root.bb-premium .row-help{font-size:10px!important;color:var(--text-muted)!important;line-height:1.45!important;margin-top:5px!important}
#bb-qra-root.bb-premium .tabs{gap:4px!important;background:var(--bb-subtle)!important;border-radius:10px!important;padding:4px!important;margin-bottom:13px!important;border:0!important}
#bb-qra-root.bb-premium .tab-btn{font-size:11px!important;min-height:31px!important;padding:7px 10px!important;border:0!important;border-radius:7px!important;background:transparent!important;color:var(--text-muted)!important;font-weight:610!important}
#bb-qra-root.bb-premium .tab-btn.active{background:var(--bb-elevated)!important;color:var(--text-main)!important;box-shadow:0 1px 4px rgba(0,0,0,.10)!important}
#bb-qra-root.bb-premium .aside-export{background:var(--bg-body)!important;border-left:1px solid var(--bb-hairline)!important;padding:13px!important;gap:11px!important;scrollbar-width:thin!important}
#bb-qra-root.bb-premium .preview,#bb-qra-root.bb-premium .expert-seccc,#bb-qra-root.bb-premium .bb-advanced-tools{border:1px solid var(--bb-hairline)!important;border-radius:14px!important;background:var(--bb-surface)!important;box-shadow:none!important;padding:14px!important}
#bb-qra-root.bb-premium .preview{position:relative!important;top:auto!important;z-index:1!important}
#bb-qra-root.bb-premium .preview-top{position:absolute!important;top:48px!important;right:15px!important;z-index:2!important}
#bb-qra-root.bb-premium .preview-top .icon-btn{border-radius:8px!important;width:30px!important;height:30px!important;background:var(--bb-surface)!important}
#bb-qra-root.bb-premium .canvas-box{background:var(--bb-subtle)!important;border:1px solid var(--bb-hairline)!important;border-radius:12px!important;min-height:240px!important;max-height:285px!important;aspect-ratio:1.14!important;padding:16px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
#bb-qra-root.bb-premium .canvas-box canvas,#bb-qra-root.bb-premium .canvas-box svg{max-width:min(100%,225px)!important;max-height:225px!important;width:auto!important;height:auto!important;border-radius:4px!important}
#bb-qra-root.bb-premium .expert-seccc{padding:14px!important}
#bb-qra-root.bb-premium .expert-seccc .grid-2{gap:8px!important}
#bb-qra-root.bb-premium .expert-seccc .btn{min-height:37px!important;margin:5px 0!important;border-radius:9px!important;font-size:12px!important;font-weight:670!important;box-shadow:none!important}
#bb-qra-root.bb-premium #btn-download{background:var(--primary)!important;color:white!important;border:1px solid var(--primary)!important}
#bb-qra-root.bb-premium #btn-download:hover{filter:brightness(.96)}
#bb-qra-root.bb-premium .btn-outline{background:var(--bb-surface)!important;border-color:var(--border)!important;color:var(--text-main)!important}
#bb-qra-root.bb-premium .btn-outline:hover{background:var(--bb-subtle)!important}
#bb-qra-root.bb-premium .bb-filename-label{font-size:11px!important;color:var(--text-muted)!important;font-weight:610!important}
#bb-qra-root.bb-premium .bb-advanced-tools{padding:0!important;overflow:hidden!important}
#bb-qra-root.bb-premium .bb-advanced-tools>summary{padding:13px 14px!important;font-size:12px!important;font-weight:690!important;min-height:43px!important}
#bb-qra-root.bb-premium .bb-advanced-tools>summary span{font-size:10px!important}
#bb-qra-root.bb-premium .qr-card,#bb-qra-root.bb-premium .history-wrap,#bb-qra-root.bb-premium .bb-history-entry{background:var(--bb-surface)!important;border:1px solid var(--bb-hairline)!important;border-radius:10px!important;box-shadow:none!important}
#bb-qra-root.bb-premium .history-wrap{margin-top:10px!important;padding:10px!important}
#bb-qra-root.bb-premium .history-wrap[hidden]{display:none!important}
#bb-qra-root.bb-premium .bb-history-entry{padding:5px!important}
#bb-qra-root.bb-premium .status-msg{font-size:11px!important;color:var(--text-muted)!important}
#bb-qra-root.bb-premium button:focus-visible,#bb-qra-root.bb-premium summary:focus-visible,#bb-qra-root.bb-premium a:focus-visible{outline:2px solid var(--primary)!important;outline-offset:2px!important}
#bb-qra-root.bb-premium ::-webkit-scrollbar{width:6px;height:6px}
#bb-qra-root.bb-premium ::-webkit-scrollbar-thumb{background:var(--border);border-radius:9px}
@media(max-width:1160px){
  #bb-qra-root.bb-premium .wrapper{grid-template-columns:minmax(0,1fr) minmax(275px,325px)!important}
  #bb-qra-root.bb-premium .sidebar{position:fixed!important;top:0!important;left:0!important;bottom:0!important;z-index:9999!important;width:min(310px,90vw)!important;height:100dvh!important;transform:translateX(-105%)!important;pointer-events:none!important;border-radius:0!important;box-shadow:0 16px 44px rgba(0,0,0,.2)!important;transition:transform .22s ease!important}
  #bb-qra-root.bb-premium .sidebar.active{transform:translateX(0)!important;pointer-events:auto!important}
}
@media(max-width:760px){
  #bb-qra-root.bb-premium .wrapper{display:flex!important;flex-direction:column!important;height:auto!important;min-height:100dvh!important;overflow:visible!important;border-radius:15px!important;padding-bottom:12px!important}
  #bb-qra-root.bb-premium .qr-content{order:1!important;height:auto!important;overflow:visible!important;padding:12px!important;gap:10px!important}
  #bb-qra-root.bb-premium .aside-export{order:2!important;height:auto!important;overflow:visible!important;border-left:0!important;padding:0 12px 14px!important;gap:10px!important}
  #bb-qra-root.bb-premium .bb-premium-toolbar{flex-wrap:wrap!important;min-height:0!important;padding-bottom:12px!important;gap:10px!important}
  #bb-qra-root.bb-premium .bb-premium-title-row h2{font-size:19px!important}
  #bb-qra-root.bb-premium .bb-premium-toolbar-actions{width:100%!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
  #bb-qra-root.bb-premium .bb-premium-action{min-width:0!important;min-height:38px!important}
  #bb-qra-root.bb-premium .qr-content>.preview{position:sticky!important;top:0!important;z-index:15!important;padding:8px 12px!important;display:flex!important;align-items:center!important;gap:10px!important;min-height:106px!important;box-shadow:0 6px 18px rgba(0,0,0,.08)!important}
  #bb-qra-root.bb-premium .qr-content>.preview .bb-premium-preview-label{flex:1!important;margin:0!important;align-items:flex-start!important;flex-direction:column!important;gap:4px!important}
  #bb-qra-root.bb-premium .qr-content>.preview .canvas-box{width:110px!important;flex:0 0 110px!important;min-height:95px!important;max-height:95px!important;aspect-ratio:auto!important;padding:3px!important;margin:0!important;border-radius:8px!important}
  #bb-qra-root.bb-premium .qr-content>.preview .canvas-box canvas,#bb-qra-root.bb-premium .qr-content>.preview .canvas-box svg{max-width:86px!important;max-height:86px!important}
  #bb-qra-root.bb-premium .qr-content>.preview .preview-top{top:5px!important;right:5px!important}
  #bb-qra-root.bb-premium .qr-content>.preview .preview-top .icon-btn{width:22px!important;height:22px!important;font-size:10px!important}
  #bb-qra-root.bb-premium #forms-container .form:not(.hidden),#bb-qra-root.bb-premium .form-card{padding:13px!important}
  #bb-qra-root.bb-premium .tabs{overflow-x:auto!important}
  #bb-qra-root.bb-premium .tab-btn{padding:7px 10px!important}
  #bb-qra-root.bb-premium .sidebar{position:fixed!important;top:0!important;bottom:0!important;left:0!important;right:auto!important;width:min(320px,88vw)!important;height:100dvh!important;max-height:100dvh!important;transform:translateX(-105%)!important;pointer-events:none!important;border-radius:0!important;z-index:9999!important;box-shadow:0 18px 50px rgba(0,0,0,.24)!important;transition:transform .22s ease!important}
  #bb-qra-root.bb-premium .sidebar.active{transform:translateX(0)!important;pointer-events:auto!important}
  #bb-qra-root.bb-premium .sidebar::before{display:none!important}
  #bb-qra-root.bb-premium .sidebar .nav-list{max-height:none!important;overflow-y:auto!important}
  #bb-qra-root.bb-premium .grid-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:430px){
  #bb-qra-root.bb-premium .bb-premium-title-row h2{font-size:18px!important}
  #bb-qra-root.bb-premium .bb-premium-live{display:none!important}
  #bb-qra-root.bb-premium .grid-2{grid-template-columns:1fr!important}
  #bb-qra-root.bb-premium .bb-premium-heading p{font-size:10px!important}
}
@media(prefers-reduced-motion:reduce){#bb-qra-root.bb-premium *{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}

/* v2.8 — remove decorative brand/heading and dedicate the saved space to controls.
   Main editor scrolls independently from the preview/export rail on desktop.
   Mobile uses a fixed compact preview dock above the device safe area. */
#bb-qra-root.bb-premium .bb-premium-brand,
#bb-qra-root.bb-premium .bb-premium-heading,
#bb-qra-root.bb-premium .bb-editor-heading,
#bb-qra-root.bb-premium .form-header{display:none!important}
#bb-qra-root.bb-premium .wrapper{
  display:grid!important;
  grid-template-columns:minmax(164px,194px) minmax(0,1fr) minmax(252px,296px)!important;
  height:calc(100dvh - 16px)!important;
  min-height:min(540px,100dvh)!important;
  max-height:100dvh!important;
  overflow:hidden!important;
  border-radius:14px!important;
}
#bb-qra-root.bb-premium .sidebar{grid-column:1;min-width:0!important;width:auto!important;height:100%!important;overflow-y:auto!important;position:relative!important;top:auto!important}
#bb-qra-root.bb-premium .search-box{padding:9px!important}
#bb-qra-root.bb-premium .search-hint{display:none!important}
#bb-qra-root.bb-premium .qr-content{
  grid-column:2;min-width:0!important;width:auto!important;max-width:none!important;
  height:100%!important;overflow-y:auto!important;overflow-x:hidden!important;
  padding:12px clamp(12px,1.6vw,22px)!important;gap:10px!important;
  align-items:stretch!important;scrollbar-gutter:stable!important;
}
#bb-qra-root.bb-premium .qr-content>*{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}
#bb-qra-root.bb-premium .bb-premium-toolbar{
  display:flex!important;justify-content:space-between!important;align-items:center!important;
  flex-wrap:wrap!important;gap:8px!important;min-height:0!important;
  padding:0 0 10px!important;margin:0!important;border-bottom:1px solid var(--bb-hairline)!important;
}
#bb-qra-root.bb-premium .bb-premium-toolbar-actions{display:flex!important;gap:6px!important;min-width:0!important;width:auto!important}
#bb-qra-root.bb-premium .bb-premium-action{min-height:34px!important;padding:6px 10px!important}
#bb-qra-root.bb-premium .bb-qra-theme-label{margin:0 0 0 auto!important;font-size:11px!important;gap:5px!important}
#bb-qra-root.bb-premium .bb-qra-theme-label select{font-size:11px!important;max-width:115px!important;padding:5px!important}
#bb-qra-root.bb-premium #forms-container{min-height:0!important;margin:0!important}
#bb-qra-root.bb-premium #forms-container .form:not(.hidden),
#bb-qra-root.bb-premium .form-card{padding:12px!important;border-radius:11px!important}
#bb-qra-root.bb-premium .aside-export{
  grid-column:3;display:flex!important;flex-direction:column!important;gap:9px!important;
  min-width:0!important;width:auto!important;max-width:none!important;height:100%!important;
  overflow-y:auto!important;overflow-x:hidden!important;position:relative!important;
  padding:10px!important;scrollbar-gutter:stable!important;
}
#bb-qra-root.bb-premium .aside-export>.preview{
  position:sticky!important;top:0!important;bottom:auto!important;left:auto!important;right:auto!important;
  z-index:12!important;flex:0 0 auto!important;display:flex!important;flex-direction:column!important;
  width:100%!important;max-width:100%!important;margin:0!important;
  padding:10px!important;gap:7px!important;overflow:visible!important;
  border-radius:12px!important;box-shadow:0 7px 22px rgba(0,0,0,.07)!important;
}
#bb-qra-root.bb-premium .bb-premium-preview-label{margin:0!important;font-size:11px!important}
#bb-qra-root.bb-premium .bb-premium-preview-label span{font-weight:700}
#bb-qra-root.bb-premium .preview-top{top:7px!important;right:7px!important;z-index:3!important}
#bb-qra-root.bb-premium .canvas-box{
  width:100%!important;min-height:180px!important;max-height:250px!important;
  aspect-ratio:1.15!important;padding:8px!important;
}
#bb-qra-root.bb-premium .canvas-box canvas,#bb-qra-root.bb-premium .canvas-box svg{
  max-width:min(100%,206px)!important;max-height:206px!important;
}
#bb-qra-root.bb-premium .expert-seccc{padding:11px!important}
@media (min-width:761px) and (max-width:1160px){
  #bb-qra-root.bb-premium .wrapper{grid-template-columns:minmax(0,1fr) minmax(235px,292px)!important}
  #bb-qra-root.bb-premium .sidebar{position:fixed!important;grid-column:auto!important;top:0!important;bottom:0!important;left:0!important;width:min(310px,90vw)!important;height:100dvh!important;z-index:9999!important;transform:translateX(-105%)!important;pointer-events:none!important}
  #bb-qra-root.bb-premium .sidebar.active{transform:translateX(0)!important;pointer-events:auto!important}
  #bb-qra-root.bb-premium .qr-content{grid-column:1!important}
  #bb-qra-root.bb-premium .aside-export{grid-column:2!important}
}
@media (max-width:760px){
  #bb-qra-root.bb-premium{overflow:visible!important}
  #bb-qra-root.bb-premium .wrapper{
    display:flex!important;flex-direction:column!important;gap:0!important;
    height:auto!important;max-height:none!important;min-height:100dvh!important;
    overflow:visible!important;position:relative!important;border-radius:0!important;
    padding-bottom:calc(124px + env(safe-area-inset-bottom,0px))!important;
  }
  #bb-qra-root.bb-premium .qr-content{
    order:1!important;display:flex!important;flex-direction:column!important;
    height:auto!important;max-height:none!important;overflow:visible!important;
    width:100%!important;padding:9px 10px!important;gap:9px!important;
  }
  #bb-qra-root.bb-premium .bb-premium-toolbar{
    display:flex!important;flex-wrap:nowrap!important;gap:6px!important;padding-bottom:9px!important;
  }
  #bb-qra-root.bb-premium .bb-premium-toolbar-actions{
    display:flex!important;flex:1 1 auto!important;grid-template-columns:none!important;
    width:auto!important;min-width:0!important;gap:5px!important;
  }
  #bb-qra-root.bb-premium .bb-premium-action{
    min-width:0!important;min-height:34px!important;padding:6px 8px!important;
    font-size:11px!important;flex:1 1 auto!important;
  }
  #bb-qra-root.bb-premium .bb-qra-theme-label{font-size:0!important;flex:0 0 auto!important}
  #bb-qra-root.bb-premium .bb-qra-theme-label select{max-width:92px!important;font-size:10px!important}
  #bb-qra-root.bb-premium .aside-export{
    order:2!important;display:flex!important;flex-direction:column!important;
    height:auto!important;max-height:none!important;overflow:visible!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    padding:0 10px 12px!important;border:0!important;background:transparent!important;
  }
  #bb-qra-root.bb-premium .aside-export>.preview{
    position:fixed!important;left:8px!important;right:8px!important;
    top:auto!important;bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;
    width:auto!important;max-width:none!important;height:104px!important;min-height:104px!important;
    display:flex!important;flex-direction:row!important;align-items:center!important;
    gap:10px!important;padding:7px 12px!important;margin:0!important;
    border-radius:15px!important;z-index:9997!important;
    background:var(--bb-surface)!important;box-shadow:0 7px 28px rgba(0,0,0,.19)!important;
    overflow:hidden!important;
  }
  #bb-qra-root.bb-premium .aside-export>.preview .bb-premium-preview-label{
    display:flex!important;flex:1 1 auto!important;min-width:0!important;
    flex-direction:column!important;justify-content:center!important;align-items:flex-start!important;
    font-size:12px!important;margin:0!important;
  }
  #bb-qra-root.bb-premium .aside-export>.preview .canvas-box{
    flex:0 0 88px!important;width:88px!important;min-width:88px!important;
    height:88px!important;min-height:88px!important;max-height:88px!important;
    aspect-ratio:1!important;padding:2px!important;margin:0 22px 0 0!important;
    border-radius:9px!important;
  }
  #bb-qra-root.bb-premium .aside-export>.preview .canvas-box canvas,
  #bb-qra-root.bb-premium .aside-export>.preview .canvas-box svg{
    max-width:82px!important;max-height:82px!important;width:auto!important;height:auto!important;
  }
  #bb-qra-root.bb-premium .aside-export>.preview .preview-top{top:8px!important;right:8px!important}
  #bb-qra-root.bb-premium .aside-export>.preview .preview-top .icon-btn{width:24px!important;height:24px!important;font-size:11px!important}
  #bb-qra-root.bb-premium #btn-download,#bb-qra-root.bb-premium #btn-copy{position:static!important;bottom:auto!important}
  #bb-qra-root.bb-premium .grid-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #bb-qra-root.bb-premium #forms-container .form:not(.hidden),
  #bb-qra-root.bb-premium .form-card{padding:11px!important}
  #bb-qra-root.bb-premium .sidebar{position:fixed!important;top:0!important;left:0!important;bottom:0!important;right:auto!important;width:min(310px,90vw)!important;height:100dvh!important;max-height:100dvh!important;transform:translateX(-105%)!important;z-index:9999!important;pointer-events:none!important}
  #bb-qra-root.bb-premium .sidebar.active{transform:translateX(0)!important;pointer-events:auto!important}
}
@media(max-width:390px){
  #bb-qra-root.bb-premium .bb-premium-action{font-size:10px!important;padding:5px 6px!important}
  #bb-qra-root.bb-premium .bb-qra-theme-label select{max-width:80px!important}
  #bb-qra-root.bb-premium .aside-export>.preview{height:96px!important;min-height:96px!important}
  #bb-qra-root.bb-premium .aside-export>.preview .canvas-box{width:80px!important;min-width:80px!important;flex-basis:80px!important;height:80px!important;min-height:80px!important;max-height:80px!important}
  #bb-qra-root.bb-premium .aside-export>.preview .canvas-box canvas,#bb-qra-root.bb-premium .aside-export>.preview .canvas-box svg{max-width:74px!important;max-height:74px!important}
}
/* The category is already shown in navigation; do not repeat it above the inputs. */
#bb-qra-root.bb-premium #forms-container .subheader{display:none!important}
