/* Barcode Rocket studio (the tool): shared by the home page and the dashboard. */
/* muted text at 4.5:1 or better on the studio navy (BR-66) */
.studio{--slate2:#8a9ab2;}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.studio{margin-top:34px;width:100%;max-width:1060px;background:var(--navy);border:1.5px solid var(--border);border-radius:20px;padding:20px;color:var(--text);box-shadow:0 24px 70px rgba(0,0,0,.35);}
.studio .tiles{display:grid;grid-template-columns:repeat(var(--n,4),minmax(0,1fr));gap:10px;}
.studio .tiles[hidden]{display:none;}
.studio .tiles.more-row{margin-top:10px;}
.studio .tile .sm{display:none;}
.studio .tile.more.open{border-color:#2e4266;background:#0d1a2e;}
.studio .tile{background:#0a1424;border:1.5px solid var(--border);border-radius:14px;padding:16px 6px 14px;display:flex;flex-direction:column;align-items:center;gap:8px;cursor:pointer;font:600 13px/1.2 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;color:var(--text);transition:border-color .15s,box-shadow .15s,background .15s;}
.studio .tile:hover{border-color:#2e4266;}
.studio .tile{position:relative;}
.studio .tile .eye{position:absolute;top:6px;right:6px;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:7px;color:#64748b;opacity:0;transition:opacity .15s,background .15s,color .15s;}
.studio .tile .eye svg{width:16px;height:16px;color:currentColor;}
.studio .tile:hover .eye,.studio .tile:focus-within .eye,.studio .tile .eye:focus{opacity:1;}
.studio .tile .eye:hover,.studio .pill .eye:hover{color:#e2e8f0;background:rgba(148,163,184,.18);}
.studio .pill .eye{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;margin:-2px -6px -2px 6px;border-radius:6px;color:#64748b;vertical-align:middle;}
.studio .pill .eye svg{width:14px;height:14px;}
@media (hover:none){.studio .tile .eye{opacity:.75;}}
.studio .tools-bar{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin:-6px 0 10px;font-size:12px;color:#64748b;min-height:26px;}
.studio .showall{background:transparent;border:1px solid #2e4266;border-radius:999px;color:#cbd5e1;font:600 12px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;padding:6px 12px;cursor:pointer;}
.studio .showall:hover{border-color:var(--amber);color:var(--text);}
.studio .withlogo{display:flex;align-items:center;gap:8px;cursor:pointer;color:var(--text);}
.studio .withlogo input{width:auto;margin:0;accent-color:var(--amber);}
@media (max-width:640px){.studio .tile .eye{position:static;order:3;opacity:.75;width:18px;height:18px;margin:0 -4px 0 2px;}.studio .tools-bar{justify-content:space-between;margin-top:0;}}
@media (min-width:641px){.studio .tiles.few{grid-template-columns:repeat(auto-fill,minmax(150px,170px));}}
.studio .tile svg{width:26px;height:26px;color:var(--amber2);}
.studio .tile .sub{font-size:11px;font-weight:500;line-height:1.3;color:var(--slate2);text-align:center;margin-top:-3px;}
.studio .tile.on .sub{color:var(--slate);}
.studio .tile.on{border-color:var(--amber);background:rgba(232,160,32,.08);box-shadow:0 0 0 3px rgba(232,160,32,.15);}
.studio .tile.custom{border-style:dashed;color:var(--slate);}
.studio .tile.custom svg{color:var(--slate);}
.studio .pills{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;background:#0a1424;border:1px solid var(--border);border-radius:12px;padding:10px;margin:14px 0 16px;min-height:52px;}
.studio .pill{border:1px solid #2b3d5c;background:var(--navy);color:var(--text);border-radius:999px;padding:7px 14px;font:600 13px/1.2 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;cursor:pointer;display:inline-flex;gap:6px;align-items:center;}
.studio .pill:hover{border-color:#3d5a85;}
.studio .pill.on{background:var(--amber);color:#1a1206;border-color:var(--amber);}
.studio .pill .lk{font-size:11px;font-weight:600;color:var(--amber2);display:inline-flex;align-items:center;gap:3px;}
.studio .pill.on .lk{color:#1a1206;}
.studio .pill .lk svg{width:11px;height:11px;}
.studio .cols{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:16px;align-items:start;}
.studio .card{background:#0b1628;border:1px solid var(--border);border-radius:16px;padding:18px;}
.studio .seg{display:inline-flex;background:#0a1424;border:1px solid var(--border);border-radius:10px;padding:4px;gap:4px;margin-bottom:16px;}
.studio .seg button{border:0;background:transparent;border-radius:8px;padding:8px 16px;font:600 13px/1.2 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;color:var(--slate);cursor:pointer;}
.studio .seg button.on{background:#1c2c48;color:#fff;}
.studio .seg .seg-note{font-weight:500;font-size:12px;color:var(--slate2);}
.tool .row{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,.8fr);gap:10px;}
.tool .row.np{grid-template-columns:minmax(0,1fr);}
.tool .pricebox{display:flex;gap:6px;}
.tool .pricebox select{flex:none;width:84px;background:#0a1424;border:1.5px solid #2b3d5c;border-radius:10px;color:var(--text);font:600 13px/1 inherit;padding:0 8px;}
.tool .pricebox input{min-width:0;}
.tool input:disabled{opacity:.55;}
.tool .row.tpl{grid-template-columns:minmax(0,.8fr) minmax(0,1.5fr);margin-top:12px;}
.tool label .opt{font-weight:500;color:var(--slate2);}
.tool label{display:block;font-size:12.5px;font-weight:600;color:var(--slate);margin-bottom:6px;}
.tool input,.tool textarea{width:100%;background:#0a1424;border:1.5px solid #2b3d5c;border-radius:10px;color:var(--text);font-size:16px;padding:12px 13px;font-family:inherit;outline:none;}
.tool textarea{font-family:ui-monospace,Consolas,monospace;font-size:14px;line-height:1.6;resize:vertical;min-height:200px;}
.tool input:focus,.tool textarea:focus{border-color:var(--amber);}
.tool input.bad,.tool input.bad:focus{border-color:#f87171;background:rgba(248,113,113,.07);}
.tool .hint{font-size:12.5px;color:var(--slate2);margin-top:8px;line-height:1.5;}
.tool .hint a{color:var(--amber2);}
.studio .ex-try{margin-top:10px;background:transparent;border:1px dashed #2b3d5c;color:var(--slate);border-radius:9px;padding:7px 12px;font:600 12.5px/1 inherit;cursor:pointer;}
.studio .ex-try:hover{border-color:var(--amber);color:var(--amber2);}
.studio .listwrap{position:relative;}
.studio .listwrap textarea{padding-left:52px;white-space:pre;overflow-x:auto;}
.studio .gutter{position:absolute;top:1.5px;left:1.5px;bottom:1.5px;width:42px;padding:12px 9px 12px 0;overflow:hidden;font-family:ui-monospace,Consolas,monospace;font-size:14px;line-height:1.6;color:#475569;text-align:right;border-right:1px solid #1b2942;border-radius:9px 0 0 9px;background:#08111f;pointer-events:none;user-select:none;}
.studio .gutter span{display:block;}
.studio .gutter span.bad{color:#f87171;font-weight:700;}
.studio .list-meta{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12px;color:var(--slate2);margin-top:6px;}
.studio .imp-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px;}
.studio .imp{background:#0a1424;border:1.5px solid #2b3d5c;color:var(--text);border-radius:10px;padding:9px 16px;font:600 13px/1 inherit;cursor:pointer;}
.studio .imp:hover{border-color:var(--amber);color:var(--amber2);}
.studio .imp-note{font-size:12.5px;color:var(--slate2);}
.studio .custom-box{margin-top:6px;}
.studio .custom-box h3{font-size:16px;margin-bottom:6px;}
.studio .custom-box p{font-size:13.5px;color:var(--slate);line-height:1.6;}
.studio .custom-box ul{list-style:none;padding:0;margin:10px 0 0;display:grid;gap:6px;}
.studio .custom-box li{font-size:13.5px;color:var(--slate);display:flex;gap:8px;line-height:1.5;}
.studio .custom-box li::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--amber2);flex:none;margin-top:8px;}
.studio .go-dark{display:inline-block;margin-top:14px;background:var(--amber);color:#1a1206;text-decoration:none;font-weight:700;font-size:14px;padding:11px 20px;border-radius:10px;}
.studio .go-line{display:inline-block;margin:14px 0 0 8px;border:1.5px solid var(--border);color:var(--text);text-decoration:none;font-weight:600;font-size:14px;padding:10px 19px;border-radius:10px;}
.studio .go-line:hover{border-color:#2e4266;}
.studio .rhead{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:800;letter-spacing:.14em;color:var(--slate);margin-bottom:12px;}
.studio .live{font-size:11px;font-weight:700;letter-spacing:0;color:#34d399;background:rgba(52,211,153,.12);border-radius:999px;padding:3px 10px;}
.studio .live.off{color:var(--slate2);background:#13223b;}
.studio .live.ex{color:#0f1b30;background:var(--amber2);letter-spacing:.08em;text-transform:uppercase;}
.tool .stage{position:relative;height:230px;display:flex;align-items:center;justify-content:center;background:#0a1424;border:1.5px dashed #2b3d5c;border-radius:12px;padding:12px;}
.tool .stage.bg-light{background:#cbd5e1;border-color:#94a3b8;}
.tool .stage.bg-white{background:#ffffff;border-color:#94a3b8;}
.tool .stage.bg-light .ph,.tool .stage.bg-white .ph{color:#475569;}
.studio .bgsw{display:inline-flex;gap:4px;margin-left:auto;margin-right:10px;}
.studio .bgsw button{background:transparent;border:1px solid #2b3d5c;border-radius:999px;color:var(--slate2);font:600 11px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;letter-spacing:0;padding:4px 9px;cursor:pointer;}
.studio .bgsw button.on{border-color:var(--amber);color:var(--text);}
.tool .stage img{max-width:100%;max-height:100%;width:auto;height:auto;display:block;border-radius:4px;}
.tool .stage .ph{font-size:13px;color:var(--slate2);text-align:center;line-height:1.6;max-width:340px;}
.tool .stage .ph.err{color:#f87171;font-size:14px;font-weight:600;}
.tool .stage .ph a{color:var(--amber2);}
.studio .checks{list-style:none;margin:14px 0 8px;padding:0;display:grid;gap:6px;}
.studio .checks li{font-size:13px;color:var(--slate2);display:flex;gap:8px;align-items:center;}
.studio .checks li::before{content:"";width:16px;height:16px;border-radius:50%;background:#1c2c48;flex:none;}
.studio .checks li.ok{color:var(--text);}
.studio .checks li.ok::before{background:#10b981 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 0 1 0 1.4l-8 8a1 1 0 0 1-1.4 0l-4-4a1 1 0 1 1 1.4-1.4L8 12.6l7.3-7.3a1 1 0 0 1 1.4 0Z'/%3E%3C/svg%3E") center/12px no-repeat;}
.studio .fmt{font-size:12px;color:var(--slate2);border-top:1px solid var(--border);padding-top:10px;margin-bottom:12px;min-height:26px;}
.tool .dl{width:100%;background:var(--amber);color:#1a1206;border:none;border-radius:12px;font-size:16px;font-weight:800;padding:15px 18px;cursor:pointer;}
.tool .dl:hover:not(:disabled){background:var(--amber2);}
.tool .dl:disabled{opacity:.45;cursor:default;}
.tool .dl.fix{background:#f87171;color:#fff;opacity:1;}
.tool .msg{font-size:13px;margin:0 0 10px;min-height:0;line-height:1.55;color:var(--text);}
.tool .msg:not(:empty){padding:10px 12px;border-radius:10px;background:rgba(52,211,153,.1);border:1px solid rgba(52,211,153,.35);}
.tool .msg.err:not(:empty){color:#fca5a5;background:rgba(248,113,113,.1);border-color:rgba(248,113,113,.4);}
.tool .msg a{color:var(--amber2);font-weight:600;}
.tool .next{margin:0 0 12px;padding:14px 16px;border-radius:12px;background:rgba(52,211,153,.07);border:1.5px solid rgba(52,211,153,.35);}
.tool .next .nh{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px;}
.tool .next .nh b{font-size:14px;color:#34d399;}
.tool .next .nx{background:transparent;border:0;color:var(--slate2);font-size:20px;line-height:1;cursor:pointer;padding:0 4px;}
.tool .next .nf{font-size:12.5px;color:var(--slate);margin-bottom:8px;word-break:break-all;}
.tool .next ol{margin:0 0 8px 18px;padding:0;display:grid;gap:6px;}
.tool .next li{font-size:13px;color:var(--text);line-height:1.5;}
.tool .next .ns{font-size:12.5px;color:var(--slate);line-height:1.5;}
.tool .next .ns a{color:var(--amber2);font-weight:600;}
.tool .left{font-size:12px;color:var(--slate2);margin-top:10px;text-align:center;}
.tool .left a{color:var(--slate);}
.tool .left.maker{margin-top:6px;font-size:11.5px;}
.queue{margin-top:12px;background:rgba(232,160,32,.08);border:1.5px solid rgba(232,160,32,.4);border-radius:12px;padding:14px 16px;display:none;}
.queue .q1{font-size:13.5px;color:var(--amber2);font-weight:700;}
.queue .bar{height:5px;background:#16243d;border-radius:3px;margin:10px 0;overflow:hidden;}
.queue .bar div{height:100%;width:0;background:linear-gradient(90deg,var(--amber),var(--amber2));transition:width 1s linear;}
.queue .q2{font-size:13px;color:var(--slate);line-height:1.55;min-height:40px;}
.queue .q2 a{color:var(--amber2);font-weight:600;}
.studio .foot-hint{text-align:center;margin-top:14px;}
@media (max-width:820px){.studio .cols{grid-template-columns:1fr;}}
@media (max-width:640px){.studio{padding:12px;border-radius:16px;}.studio .tile{padding:12px 4px 10px;font-size:12px;}.studio .tile svg{width:22px;height:22px;}.tool .stage{height:200px;}.tool .row,.tool .row.tpl{grid-template-columns:1fr;}.studio .card{padding:14px;}.studio .go-dark{display:block;text-align:center;}.studio .go-line{display:block;text-align:center;margin-left:0;}.studio .tiles.more-row{margin-top:8px;}.studio .tiles{grid-template-columns:1fr 1fr;gap:8px;}.studio .tile{flex-direction:row;justify-content:center;padding:9px 10px;border-radius:999px;font-size:12.5px;gap:6px;}.studio .tile .lg{display:none;}.studio .tile .sm{display:inline;}.studio .tile svg{width:18px;height:18px;}.studio .pills{padding:8px;gap:6px;}.studio .tile .sub{display:none;}}
/* BR-137: before the studio script draws the tiles, keep their place so nothing below jumps (CLS) */
#tiles:empty{min-height:100px;}#tiles:empty ~ #pills:empty{min-height:70px;}
@media (max-width:1000px){#tiles:empty ~ #pills:empty{min-height:126px;}}
@media (max-width:885px){#tiles:empty{min-height:115px;}}
@media (max-width:640px){#tiles:empty{min-height:84px;}#tiles:empty ~ #pills:empty{min-height:120px;}}
@media (max-width:440px){#tiles:empty ~ #pills:empty{min-height:228px;}}
