:root{--qr-ink:#181614;--qr-muted:#74716b;--qr-line:#d9d5cd;--qr-panel:#f1efea;--qr-accent:#73f172}
 .qr-page [hidden],.qr-projects-modal[hidden]{display:none!important}
*{box-sizing:border-box}.qr-page{padding:0 0 40px}.qr-intro{min-height:390px;padding-top:70px;padding-bottom:54px;display:flex;align-items:flex-end;justify-content:space-between;gap:40px}.qr-intro>div{max-width:930px}.qr-eyebrow{display:block;margin-bottom:22px;color:#5f5b54;font-size:13px;font-weight:800;letter-spacing:.16em}.qr-intro h1{margin:0;font-size:clamp(58px,7vw,104px);line-height:.94;letter-spacing:-.055em}.qr-intro p{max-width:780px;margin:34px 0 0;color:var(--qr-muted);font-size:21px;line-height:1.45}.qr-open-projects,.qr-project-bar button{display:inline-flex;align-items:center;justify-content:center;gap:12px;border:2px solid var(--qr-ink);border-radius:999px;background:#fff;padding:17px 25px;color:var(--qr-ink);font:inherit;font-weight:800;white-space:nowrap;cursor:pointer}.qr-open-projects svg,.qr-project-bar button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.qr-editor{padding-bottom:50px}.qr-project-bar{display:grid;grid-template-columns:auto minmax(260px,1fr) auto;align-items:end;gap:24px;border:1px solid var(--qr-line);border-radius:26px 26px 0 0;background:#fff;padding:20px 24px}.qr-project-bar>strong{align-self:center;font-size:22px}.qr-project-bar label span{display:block;margin-bottom:7px;color:var(--qr-muted);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.qr-project-bar input{width:100%;border:1px solid var(--qr-line);border-radius:14px;padding:14px 16px;font:inherit}.qr-project-bar>div{display:flex;gap:10px}.qr-project-bar button{border-width:1px;padding:14px 18px;font-size:13px}.qr-editor-shell{display:grid;grid-template-columns:390px minmax(0,1fr);min-height:690px;border:1px solid var(--qr-line);border-top:0;border-radius:0 0 28px 28px;overflow:hidden;background:#fff;box-shadow:0 24px 55px rgba(32,28,23,.08)}.qr-controls{padding:32px;border-right:1px solid var(--qr-line);background:#fbfaf8}.qr-panel-title{display:block;margin-bottom:18px;color:var(--qr-muted);font-size:13px;font-weight:800;letter-spacing:.13em}.qr-field{display:block;margin-bottom:20px;font-weight:800}.qr-field>span,.qr-colors span{display:block;margin-bottom:8px}.qr-field textarea,.qr-field select{width:100%;border:1px solid var(--qr-line);border-radius:16px;background:#fff;padding:15px;font:inherit;resize:vertical}.qr-field textarea:focus,.qr-field select:focus,.qr-project-bar input:focus{outline:3px solid color-mix(in srgb,var(--qr-accent) 55%,transparent);border-color:#4ed65a}.qr-field small{display:block;min-height:18px;margin-top:7px;color:#d02e26;font-weight:650}.qr-generate{width:100%;border:0;border-radius:999px;background:var(--qr-ink);padding:17px 20px;color:#fff;font:inherit;font-weight:800;cursor:pointer}.qr-divider{height:1px;margin:30px 0;background:var(--qr-line)}.qr-colors{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:20px}.qr-colors label{font-weight:800}.qr-colors input{width:100%;height:55px;border:1px solid var(--qr-line);border-radius:15px;background:#fff;padding:6px;cursor:pointer}.qr-note{margin:26px 0 0;color:var(--qr-muted);font-size:13px;line-height:1.5}.qr-workspace{display:grid;grid-template-rows:1fr auto;min-width:0;background-color:#f7f7f4;background-image:linear-gradient(rgba(24,22,20,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(24,22,20,.055) 1px,transparent 1px);background-size:48px 48px;background-position:-1px -1px}.qr-canvas{display:grid;place-items:center;padding:46px;min-height:590px}.qr-empty,.qr-result{display:flex;flex-direction:column;align-items:center;text-align:center}.qr-empty svg{width:92px;height:92px;margin-bottom:23px;fill:none;stroke:#aaa69f;stroke-width:1.35}.qr-empty strong{font-size:23px}.qr-empty span{margin-top:8px;color:var(--qr-muted)}.qr-result>[data-qr-preview]{display:grid;place-items:center;padding:22px;border:1px solid var(--qr-line);border-radius:24px;background:#fff;box-shadow:0 18px 55px rgba(25,23,20,.13)}.qr-result svg{display:block;width:min(360px,58vw);height:auto}.qr-result a{display:block;max-width:480px;margin-top:22px;color:var(--qr-muted);font-size:13px;overflow-wrap:anywhere}.qr-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--qr-line);background:#fff;padding:18px 24px}.qr-actions>span{color:var(--qr-muted);font-size:13px}.qr-actions>div{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.qr-actions button{border:1px solid var(--qr-line);border-radius:999px;background:#fff;padding:12px 17px;font:inherit;font-size:13px;font-weight:800;cursor:pointer}.qr-actions button.primary{border-color:var(--qr-ink);background:var(--qr-ink);color:#fff}.qr-actions button:disabled{opacity:.38;cursor:not-allowed}
.qr-projects-modal[hidden]{display:none}.qr-projects-modal{position:fixed;z-index:600;inset:0;display:grid;place-items:center;padding:22px}.qr-modal-backdrop{position:absolute;inset:0;border:0;background:rgba(24,22,20,.38);backdrop-filter:blur(7px)}.qr-projects-modal>section{position:relative;width:min(860px,100%);max-height:calc(100vh - 44px);overflow:auto;border:1px solid var(--qr-line);border-radius:28px;background:#fff;padding:40px}.qr-modal-close{position:absolute;right:20px;top:18px;border:0;background:none;font-size:30px;cursor:pointer}.qr-projects-modal h2{margin:0 0 30px;font-size:42px;letter-spacing:-.04em}.qr-project-card{display:grid;grid-template-columns:1fr auto;align-items:center;gap:18px;border-top:1px solid var(--qr-line);padding:18px 0}.qr-project-card small{display:block;margin-top:5px;color:var(--qr-muted);overflow-wrap:anywhere}.qr-project-card div:last-child{display:flex;gap:8px}.qr-project-card button{border:1px solid var(--qr-line);border-radius:999px;background:#fff;padding:10px 14px;font-weight:750;cursor:pointer}.qr-project-card button:last-child{color:#d02e26}.qr-project-empty{color:var(--qr-muted)}.qr-toast{position:fixed;z-index:800;left:50%;bottom:24px;transform:translate(-50%,20px);opacity:0;border-radius:999px;background:var(--qr-ink);padding:13px 20px;color:#fff;font-weight:750;pointer-events:none;transition:.2s}.qr-toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1000px){.qr-intro{min-height:330px}.qr-project-bar{grid-template-columns:1fr}.qr-project-bar>div{justify-content:flex-start}.qr-editor-shell{grid-template-columns:1fr}.qr-controls{border-right:0;border-bottom:1px solid var(--qr-line)}.qr-actions{align-items:flex-start;flex-direction:column}.qr-actions>div{justify-content:flex-start}}
@media(min-width:1001px) and (max-width:1250px){.qr-actions{align-items:flex-start;flex-direction:column}.qr-actions>div{display:grid;grid-template-columns:repeat(2,minmax(160px,1fr));width:100%}}
@media(max-width:620px){.qr-intro{min-height:auto;align-items:flex-start;flex-direction:column;padding-top:48px}.qr-intro h1{font-size:54px}.qr-intro p{font-size:17px;margin-top:23px}.qr-open-projects{width:100%}.qr-editor{width:100%}.qr-project-bar,.qr-editor-shell{border-left:0;border-right:0;border-radius:0}.qr-project-bar{padding:18px 16px}.qr-project-bar>div{display:grid;grid-template-columns:1fr 1fr}.qr-project-bar button{padding:12px 10px;font-size:12px}.qr-controls{padding:25px 18px}.qr-canvas{min-height:420px;padding:26px 16px}.qr-result svg{width:min(300px,75vw)}.qr-actions{padding:16px}.qr-actions>div{display:grid;grid-template-columns:1fr 1fr;width:100%}.qr-actions button{padding:12px 9px}.qr-projects-modal{padding:10px}.qr-projects-modal>section{padding:35px 18px 22px}.qr-project-card{grid-template-columns:1fr}.qr-project-card div:last-child{flex-wrap:wrap}}

/* L’editor QR comparteix el mateix llenguatge funcional que la resta d’eines. */
.qr-project-bar button{border-color:var(--qr-ink);background:var(--qr-ink);color:#fff}.qr-project-input{position:relative;display:block}.qr-project-input input{padding-right:92px}.qr-project-input em{position:absolute;right:8px;top:50%;transform:translateY(-50%);margin:0;border:1px solid #43c84c;border-radius:999px;background:var(--qr-accent);padding:5px 9px;color:var(--qr-ink);font-size:10px;font-style:normal;font-weight:900;letter-spacing:.05em;text-transform:uppercase}.qr-project-bar.is-locked input{background:#efede7;color:#918d85}.qr-project-bar.is-locked button{background:#77736c;border-color:#77736c;cursor:not-allowed}.qr-controls{padding:0}.qr-panel-tabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--qr-line)}.qr-panel-tabs button{min-height:68px;border:0;border-right:1px solid var(--qr-line);background:#f0eee9;color:var(--qr-muted);font-weight:850;cursor:pointer}.qr-panel-tabs button:last-child{border-right:0}.qr-panel-tabs button.active{background:#fff;color:var(--qr-ink);box-shadow:inset 0 -4px 0 var(--qr-accent)}.qr-panel-view{padding:30px 32px}.qr-feature-card{position:relative;display:grid;grid-template-columns:1fr auto;align-items:center;margin-bottom:18px;border:1px solid var(--qr-line);border-radius:20px;background:#fff;padding:22px}.qr-feature-card strong{display:block;font-size:18px}.qr-feature-card small{display:block;margin-top:5px;color:var(--qr-muted);line-height:1.35}.qr-feature-card>em{align-self:start;border:1px solid #43c84c;border-radius:999px;background:var(--qr-accent);padding:7px 11px;font-size:10px;font-style:normal;font-weight:900;letter-spacing:.05em;text-transform:uppercase}.qr-feature-card>em.ultra{border-color:#566067;background:#202426;color:#fff}.qr-feature-card.is-locked{background:#efede7;color:#6f6b64}.qr-feature-card.is-locked input,.qr-feature-card.is-locked button{pointer-events:none;opacity:.42}.qr-colors{grid-column:1/-1;margin-top:20px}.qr-watermark-field{display:flex;grid-column:1/-1;gap:8px;margin-top:20px}.qr-watermark-field input{min-width:0;flex:1;border:1px solid var(--qr-line);border-radius:14px;background:#fff;padding:13px}.qr-watermark-field button{width:45px;border:1px solid var(--qr-line);border-radius:50%;background:#fff;font-size:23px;cursor:pointer}
@media(max-width:620px){.qr-panel-view{padding:25px 18px}.qr-panel-tabs button{min-height:60px}}
.qr-actions button em{display:inline-flex;margin-left:5px;border:1px solid #43c84c;border-radius:999px;background:var(--qr-accent);padding:3px 6px;color:var(--qr-ink);font-size:8px;font-style:normal;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.qr-actions button.primary em{border-color:#70777a;background:#292d2f;color:#fff}

/* Escala transversal: mateixes proporcions que Cartells, Cartes i Tarifes. */
.qr-intro,.qr-editor{width:min(calc(100% - 48px),1180px)}
.qr-intro{min-height:0;align-items:flex-end;padding-top:58px;padding-bottom:38px;gap:32px}
.qr-intro>div{max-width:720px}
.qr-eyebrow{margin-bottom:12px;font-size:11px;letter-spacing:.13em}
.qr-intro h1{font-size:clamp(38px,5vw,65px);line-height:.98;letter-spacing:-.055em}
.qr-intro p{max-width:610px;margin-top:17px;font-size:17px;line-height:1.5}
@media(min-width:1001px){.qr-intro h1{min-height:1.96em}.qr-intro p{min-height:3em}}
.qr-open-projects{max-width:240px;border-width:1.5px;padding:12px 15px 12px 18px;font-size:12px}
.qr-open-projects svg{width:20px;height:20px;stroke-width:2.7}
.qr-project-bar{grid-template-columns:minmax(130px,.7fr) minmax(360px,2fr) auto;gap:22px;min-height:98px;padding:18px 26px;border-radius:24px 24px 0 0}
.qr-project-bar>strong{font-size:36px;font-weight:450;letter-spacing:-.045em}
.qr-project-bar label{display:grid;grid-template-columns:auto minmax(190px,1fr);align-items:center;gap:15px}
.qr-project-bar label>span:first-child{margin:0;color:var(--qr-ink);font-size:9px;letter-spacing:.09em}
.qr-project-bar input{height:48px;border-color:#cbc7bd;border-radius:12px;background:#fafaf8;padding:13px}
.qr-project-bar button{min-width:145px;min-height:48px;padding:10px 18px;font-size:11px}
.qr-editor-shell{grid-template-columns:340px minmax(0,1fr);height:720px;min-height:720px;max-height:720px;border-color:#cbc7bd;border-radius:0 0 24px 24px;box-shadow:0 24px 65px rgba(24,22,20,.1)}
.qr-controls{min-height:0;overflow-y:auto;background:#f7f6f2}
.qr-panel-tabs{position:sticky;z-index:2;top:0;background:#efede7}
.qr-panel-tabs button{min-height:56px;padding:16px 18px}
.qr-panel-view{padding:20px}
.qr-panel-title{margin-bottom:14px;font-size:11px}
.qr-field{margin-bottom:16px;font-size:13px}
.qr-field textarea,.qr-field select{border-radius:11px;padding:12px;font-size:12px}
.qr-generate{padding:13px 18px;font-size:12px}
.qr-correction{margin-top:17px}
.qr-note{margin-top:18px;font-size:11px}
.qr-feature-card{margin-bottom:14px;border-radius:14px;padding:17px}
.qr-feature-card strong{font-size:15px}.qr-feature-card small{font-size:11px}
.qr-colors{gap:10px;margin-top:15px;margin-bottom:0}.qr-colors label{font-size:11px}.qr-colors input{height:47px;border-radius:11px}
.qr-watermark-field{margin-top:15px}.qr-watermark-field input{border-radius:11px;padding:11px;font-size:12px}.qr-watermark-field button{width:41px;height:41px}
.qr-workspace{min-height:0;overflow:hidden}.qr-canvas{min-height:0;padding:32px;overflow:auto}.qr-empty svg{width:72px;height:72px;margin-bottom:18px}.qr-empty strong{font-size:20px}.qr-empty span{font-size:13px}
.qr-result>[data-qr-preview]{padding:18px;border-radius:18px}.qr-result svg{width:min(330px,52vw)}.qr-result a{margin-top:16px;font-size:11px}
.qr-actions{min-height:68px;padding:13px 18px}.qr-actions button{padding:10px 14px;font-size:11px}
@media(max-width:1000px){.qr-intro{min-height:0}.qr-editor-shell{height:auto;min-height:0;max-height:none}.qr-controls{overflow:visible}.qr-project-bar label{grid-template-columns:1fr}.qr-project-bar label>span:first-child{margin-bottom:7px}}
@media(max-width:620px){.qr-intro,.qr-editor{width:min(calc(100% - 28px),1180px)}.qr-intro{padding-top:42px;padding-bottom:25px;gap:18px}.qr-intro h1{min-height:0;font-size:clamp(38px,12vw,52px)}.qr-intro p{min-height:0;margin-top:14px;font-size:15px}.qr-project-bar>strong{font-size:30px}.qr-project-bar{padding:18px;gap:14px}.qr-panel-view{padding:18px}.qr-canvas{padding:24px 14px}.qr-result svg{width:min(280px,76vw)}}

/* Barra mòbil compacta: un únic accés a projectes i accions només amb icona. */
.qr-intro>.qr-open-projects{display:none}
@media(max-width:620px){
  .qr-project-input input{height:42px;border-radius:999px;padding-left:14px}
  .qr-project-bar>div{align-self:center!important}
  .qr-project-bar button{width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;border-radius:50%;padding:0!important;transform:none!important}
  .qr-project-bar button::after{content:none!important}
  .qr-project-bar button svg{width:17px;height:17px;margin:0}
}

/* El subheader QR hereta exactament l'arquitectura dels altres editors. */
body.uncartell-editor-active .qr-project-bar{
  grid-template-columns:auto minmax(24px,1fr) minmax(260px,420px) auto!important;
  align-items:center!important;
  min-height:70px;
  padding:9px 18px!important;
  border-radius:0!important;
}
body.uncartell-editor-active .qr-project-bar>.tool-project-field{
  grid-column:3;
  width:100%;
  min-width:0;
  margin:0;
}
body.uncartell-editor-active .qr-project-bar>.tool-header-actions{
  grid-column:4;
  display:flex;
  width:auto;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  margin:0;
}
body.uncartell-editor-active .qr-project-bar>.tool-header-actions>button{
  width:auto!important;
  min-width:0!important;
  height:46px!important;
  min-height:46px!important;
  padding:0 14px!important;
  border-radius:10px!important;
  font-size:11px!important;
  transform:none!important;
}
body.uncartell-editor-active .qr-project-bar>.tool-header-actions>.qr-download-trigger{
  border-color:var(--qr-accent)!important;
  background:var(--qr-accent)!important;
  color:var(--qr-ink)!important;
}
@media(max-width:1000px){
  body.uncartell-editor-active .qr-project-bar{
    grid-template-columns:auto minmax(0,1fr) auto!important;
  }
  body.uncartell-editor-active .qr-project-bar>.tool-project-field{grid-column:2}
  body.uncartell-editor-active .qr-project-bar>.tool-header-actions{grid-column:3}
}
@media(max-width:620px){
  body.uncartell-editor-active .qr-project-bar{
    grid-template-columns:42px minmax(0,1fr) auto!important;
    gap:7px!important;
    min-height:62px;
    padding:8px 10px!important;
  }
  body.uncartell-editor-active .qr-project-bar>.tool-project-field{display:block!important;height:42px!important}
  body.uncartell-editor-active .qr-project-bar>.tool-header-actions{display:flex!important;width:auto!important;gap:5px!important}
  body.uncartell-editor-active .qr-project-bar>.tool-header-actions>button{
    width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;font-size:0!important
  }
}

/* Phone QR editor: canvas first, controls in a Canva-like bottom sheet. */
@media(max-width:820px){
  body.uncartell-editor-active .qr-editor-shell{
    position:relative!important;
    display:block!important;
    height:100%!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  body.uncartell-editor-active .qr-workspace{
    position:absolute!important;
    inset:0 0 58px!important;
    grid-row:auto!important;
    display:grid!important;
    height:auto!important;
    grid-template-rows:minmax(0,1fr) auto!important;
    overflow:hidden!important;
  }
  body.uncartell-editor-active .qr-canvas{
    height:auto!important;
    min-height:0!important;
    padding:18px 14px!important;
  }
  body.uncartell-editor-active .qr-controls{
    position:absolute!important;
    z-index:30;
    inset:auto 0 0!important;
    grid-row:auto!important;
    display:flex!important;
    height:58px;
    max-height:min(62%,520px);
    flex-direction:column-reverse;
    overflow:hidden!important;
    border:0!important;
    border-top:1px solid var(--qr-line)!important;
    border-radius:16px 16px 0 0!important;
    background:#fff;
    box-shadow:0 -16px 40px rgba(24,22,20,.12);
    transition:height .24s ease;
  }
  body.uncartell-editor-active .qr-controls.qr-mobile-panel-open{height:min(62%,520px)}
  body.uncartell-editor-active .qr-panel-tabs{
    position:relative!important;
    z-index:2;
    top:auto!important;
    order:-1;
    width:100%;
    min-height:58px;
    flex:0 0 58px;
    border-top:1px solid var(--qr-line);
    border-bottom:0;
    background:#fff;
  }
  body.uncartell-editor-active .qr-panel-tabs button{
    min-height:58px!important;
    padding:10px!important;
    background:#fff!important;
    font-size:12px!important;
    color:var(--qr-muted)!important;
    box-shadow:none!important;
  }
  body.uncartell-editor-active .qr-panel-tabs button.active{
    color:var(--qr-ink)!important;
    box-shadow:inset 0 -4px 0 var(--qr-accent)!important;
  }
  body.uncartell-editor-active .qr-panel-view{
    min-height:0;
    padding:22px 18px 28px!important;
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
  body.uncartell-editor-active .qr-actions{
    min-height:54px;
    height:auto!important;
    padding:7px 9px!important;
    overflow-x:auto;
  }
  body.uncartell-editor-active .qr-empty-card{max-width:290px}
}

/* QR mobile workspace: controls remain readable and the preview keeps its own space. */
@media(max-width:820px){
  body.uncartell-editor-active .qr-editor-shell{
    position:relative;
    display:grid!important;
    height:100%!important;
    min-height:0!important;
    grid-template-columns:1fr!important;
    grid-template-rows:minmax(220px,46%) minmax(0,54%)!important;
    overflow:hidden;
    border:0!important;
    border-radius:0!important;
  }
  body.uncartell-editor-active .qr-controls{
    grid-row:1;
    min-height:0;
    overflow-y:auto!important;
    overscroll-behavior:contain;
    border:0;
    border-bottom:1px solid var(--qr-line);
    -webkit-overflow-scrolling:touch;
  }
  body.uncartell-editor-active .qr-panel-tabs{top:0;z-index:4}
  body.uncartell-editor-active .qr-workspace{
    grid-row:2;
    height:100%;
    min-height:0!important;
    overflow:hidden;
  }
  body.uncartell-editor-active .qr-canvas{
    height:calc(100% - 58px);
    min-height:0!important;
    padding:18px 12px!important;
    overflow:auto;
    align-items:center;
    justify-content:center;
    -webkit-overflow-scrolling:touch;
  }
  body.uncartell-editor-active .qr-actions{
    height:58px;
    min-height:58px;
    padding:8px 10px;
    overflow-x:auto;
  }
  body.uncartell-editor-active .qr-actions>span{display:none}
  body.uncartell-editor-active .qr-empty{min-height:0;height:100%}
  body.uncartell-editor-active .qr-result-card{max-width:100%;margin:auto}
}

/* Tipografia i controls exactament a l'escala dels editors Cartes i Tarifes. */
.qr-panel-tabs button{min-height:auto;padding:17px;font-size:12px;font-weight:800}
.qr-panel-tabs button.active{box-shadow:inset 0 -3px var(--qr-accent)}
.qr-panel-view{padding:18px}
.qr-panel-title{margin-bottom:12px;font-size:11px;font-weight:800;letter-spacing:.08em}
.qr-field{margin-bottom:12px;font-size:inherit}
.qr-field>span,.qr-colors label>span{margin-bottom:6px;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.qr-field input[data-qr-url],.qr-field textarea,.qr-field select{width:100%;min-height:42px;border:1px solid var(--qr-line);border-radius:11px;background:#fff;padding:10px 11px;font-size:13px;line-height:1.4}
.qr-field input[data-qr-url]:focus{outline:3px solid color-mix(in srgb,var(--qr-accent) 55%,transparent);border-color:#4ed65a}
.qr-field textarea{height:68px;min-height:64px}
.qr-field small{margin-top:5px;font-size:10px}
.qr-generate{min-height:40px;padding:10px 15px;font-size:11px}
.qr-correction{margin-top:12px}
.qr-note{margin-top:14px;font-size:11px;line-height:1.45}
.qr-divider{margin:20px 0}
.qr-feature-card{margin-bottom:12px;padding:15px}
.qr-feature-card strong{font-size:13px}.qr-feature-card small{font-size:11px}
.qr-colors label{font-size:inherit}.qr-colors input{height:42px}
.qr-project-bar input{font-size:12px}
.qr-actions>span{font-size:11px}
.qr-project-bar{align-items:center}
.qr-project-bar>div{align-self:center;align-items:center}
.qr-project-bar button{align-self:center;height:48px;line-height:1;transform:none}
@media(max-width:1000px){.qr-project-bar button{transform:none}}
.qr-project-bar button svg{width:18px;height:18px;stroke-width:1.8}
.qr-open-projects.is-plan-locked{border-color:#cbc7bd;background:#e7e5df;color:#817d76;box-shadow:none}.qr-open-projects.is-plan-locked:hover{background:#dedbd4;color:#6d6962}
@media(max-width:620px){.qr-panel-tabs button{min-height:auto;padding:17px}.qr-panel-view{padding:18px}}

/* Estat inicial editable: el visor també forma part de l'eina. */
.qr-empty{position:relative;isolation:isolate;width:min(680px,100%);min-height:430px;display:grid;place-items:center;padding:38px}
.qr-empty .qr-empty-watermark{position:absolute;z-index:-1;inset:50% auto auto 50%;width:min(410px,75%);height:min(410px,75%);margin:0;transform:translate(-50%,-53%);fill:none;stroke:#aaa69f;stroke-width:.85;opacity:.14}
.qr-empty-card{width:min(570px,100%);border:1px solid #cbc7bd;border-radius:22px;background:rgba(255,255,255,.94);padding:26px;box-shadow:0 18px 48px rgba(24,22,20,.09);text-align:left;backdrop-filter:blur(8px)}
.qr-empty-card>strong{display:block;margin-bottom:18px;font-size:22px;letter-spacing:-.025em}
.qr-empty-card label>span{display:block;margin-bottom:7px;color:var(--qr-muted);font-size:10px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
.qr-empty-card label>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}
.qr-empty-card input{min-width:0;height:46px;border:1px solid var(--qr-line);border-radius:12px;background:#fff;padding:0 14px;font:inherit;font-size:13px}
.qr-empty-card input:focus{outline:3px solid color-mix(in srgb,var(--qr-accent) 55%,transparent);border-color:#4ed65a}
.qr-empty-card button{height:46px;border:1px solid var(--qr-ink);border-radius:999px;background:var(--qr-ink);padding:0 21px;color:#fff;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.qr-empty-card small{display:block;min-height:15px;margin-top:6px;color:#d02e26;font-size:10px;font-weight:650}
@media(max-width:620px){.qr-empty{min-height:350px;padding:18px}.qr-empty .qr-empty-watermark{width:82%;height:82%;opacity:.11}.qr-empty-card{padding:20px;border-radius:18px}.qr-empty-card label>div{grid-template-columns:1fr}.qr-empty-card button{width:100%}}
.qr-empty{width:min(900px,100%);min-height:300px;padding:24px}
.qr-empty .qr-empty-watermark{display:none}
.qr-empty-card{width:min(720px,100%);padding:22px}
@media(max-width:620px){.qr-empty{min-height:290px;padding:16px}.qr-empty-card{padding:18px}}
.qr-empty{width:min(1050px,100%)}
.qr-empty-card{width:min(900px,100%)}
@media(max-width:620px){.qr-empty,.qr-empty-card{width:100%}}
.qr-dynamic-promo{box-sizing:border-box;display:grid;width:100%;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;margin:18px 0 0;border:1px solid var(--qr-line);border-radius:14px;background:#efede7;padding:17px;color:var(--qr-ink);text-align:left;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,transform .15s ease}
.qr-dynamic-promo:hover{border-color:#bdb8ae;background:#e9e6df;transform:translateY(-1px)}
.qr-dynamic-promo:focus-visible{outline:2px solid var(--qr-accent);outline-offset:2px}
.qr-dynamic-promo>span{min-width:0}
.qr-dynamic-promo strong{display:block;color:var(--qr-ink);font-size:15px;font-weight:800}
.qr-dynamic-promo small{display:block;margin-top:5px;color:var(--qr-muted);font-size:11px;line-height:1.35}
.qr-dynamic-promo>em{display:inline-flex;align-items:center;gap:6px;border:1px solid #43c84c;border-radius:10px;background:var(--qr-accent);padding:9px 13px;color:var(--qr-ink);font-size:10px;font-style:normal;font-weight:900;letter-spacing:.05em;text-transform:uppercase}
.qr-dynamic-promo>em svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.qr-dynamic-promo[hidden]{display:none!important}

/* El reclam de QR dinàmic utilitza el mateix badge Premium compacte que la
   resta de caixetins de funcionalitat. */
.qr-dynamic-promo>em{
  box-sizing:border-box;
  width:72px;
  min-width:72px;
  max-width:72px;
  height:24px;
  min-height:24px;
  justify-content:center;
  gap:4px;
  padding:0 8px;
  border-radius:8px;
  font:900 8px/1 Arial,sans-serif;
}
.qr-dynamic-promo>em svg{width:12px;height:12px;flex:none;stroke-width:2}

/* Barra de projecte compacta en mòbil, coherent amb la resta d'eines. */
@media(max-width:620px){
  .qr-project-bar{grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;min-height:64px;padding:10px 12px!important}
  .qr-project-bar>strong,.qr-project-bar label>span:first-child{display:none}
  .qr-project-bar label{display:block!important;min-width:0}
  .qr-project-input,.qr-project-bar input{width:100%;min-width:0}
  .qr-project-bar input{height:42px;padding-inline:11px;font-size:11px}
  .qr-project-bar>div{display:flex!important;width:auto!important;align-items:center!important;gap:6px!important}
  .qr-project-bar button{display:inline-flex;align-items:center;justify-content:center;gap:5px;width:auto!important;min-width:0;height:42px!important;min-height:42px;padding:8px 10px!important;font-size:0!important;white-space:nowrap!important}
  .qr-project-bar button svg{width:16px;height:16px;flex:none}
  .qr-project-bar button::after{font-size:10px;line-height:1}
  .qr-project-bar [data-save-project]::after{content:"Desa"}
  .qr-project-bar [data-open-projects]::after{content:"Obre"}
  html[lang="es"] .qr-project-bar [data-save-project]::after{content:"Guarda"}
  html[lang="es"] .qr-project-bar [data-open-projects]::after{content:"Abre"}
}

/* Final authority — desktop project bar alignment and Basic download access. */
@media(min-width:1001px){
  body.uncartell-editor-active .qr-project-bar{align-items:center!important}
  body.uncartell-editor-active .qr-project-bar>.tool-project-field,
  body.uncartell-editor-active .qr-project-bar>.tool-header-actions{align-self:center!important;margin-block:0!important}
  body.uncartell-editor-active .qr-project-bar .qr-project-input,
  body.uncartell-editor-active .qr-project-bar [data-project-name],
  body.uncartell-editor-active .qr-project-bar>.tool-header-actions>button{height:48px!important;min-height:48px!important}
  body.uncartell-editor-active .qr-project-bar>.tool-header-actions>button{transform:none!important}
}
.qr-project-bar .tool-project-field.is-locked [data-project-name],
.qr-project-bar .tool-project-field.is-locked [data-project-name]::placeholder{color:#77736c!important;font-weight:400!important;opacity:1!important;-webkit-text-fill-color:#77736c!important}
.qr-project-bar .tool-header-actions>.qr-download-trigger,
.qr-project-bar .tool-header-actions>.qr-download-trigger:hover{border-color:var(--qr-accent)!important;background:var(--qr-accent)!important;color:var(--qr-ink)!important;opacity:1!important;cursor:pointer!important}

/* Autoritat final del subheader QR: camp i accions comparteixen eix i alçada. */
@media(min-width:1001px){
  body.uncartell-editor-active .qr-project-bar{
    align-items:center!important;
  }
  body.uncartell-editor-active .qr-project-bar>.tool-project-field,
  body.uncartell-editor-active .qr-project-bar>.tool-header-actions{
    align-self:center!important;
    margin-block:0!important;
  }
  body.uncartell-editor-active .qr-project-bar .qr-project-input,
  body.uncartell-editor-active .qr-project-bar [data-project-name],
  body.uncartell-editor-active .qr-project-bar>.tool-header-actions>button{
    height:48px!important;
    min-height:48px!important;
  }
  body.uncartell-editor-active .qr-project-bar>.tool-header-actions>button{
    transform:none!important;
  }
}
.qr-project-bar .tool-project-field.is-locked [data-project-name]{
  color:#77736c!important;
  font-weight:400!important;
  opacity:1!important;
  -webkit-text-fill-color:#77736c!important;
}
.qr-project-bar .tool-project-field.is-locked [data-project-name]::placeholder{
  color:#77736c!important;
  font-weight:400!important;
  opacity:1!important;
}
.qr-project-bar .tool-project-field:not(.is-locked) [data-project-name]{
  font-weight:400!important;
}
.qr-project-bar .tool-header-actions>.qr-download-trigger,
.qr-project-bar .tool-header-actions>.qr-download-trigger:hover{
  border-color:var(--qr-accent)!important;
  background:var(--qr-accent)!important;
  color:var(--qr-ink)!important;
  opacity:1!important;
  cursor:pointer!important;
}

/* Autoritat final: subheader QR idèntic al patró transversal dels editors. */
body.uncartell-editor-active .qr-project-bar{
  grid-template-columns:auto minmax(24px,1fr) minmax(260px,420px) auto!important;
  align-items:center!important;gap:14px!important;min-height:70px!important;
  padding:9px 18px!important;border-radius:0!important;
}
body.uncartell-editor-active .qr-project-bar>.editor-app-context{grid-column:1}
body.uncartell-editor-active .qr-project-bar>.tool-project-field{display:grid!important;grid-column:3;grid-template-columns:auto minmax(190px,1fr)!important;width:100%!important;min-width:0;margin:0}
body.uncartell-editor-active .qr-project-bar>.tool-header-actions{display:flex!important;grid-column:4;width:auto!important;min-width:0;align-items:center!important;justify-content:flex-end!important;gap:8px!important;margin:0}
body.uncartell-editor-active .qr-project-bar>.tool-header-actions>button{display:inline-flex!important;width:auto!important;min-width:0!important;height:48px!important;min-height:48px!important;padding:0 14px!important;border-radius:10px!important;font-size:11px!important;transform:translateY(-3.5px)!important}
body.uncartell-editor-active .qr-project-bar>.tool-header-actions>.qr-download-trigger{border-color:var(--qr-accent)!important;background:var(--qr-accent)!important;color:var(--qr-ink)!important}
@media(max-width:1000px){
  body.uncartell-editor-active .qr-project-bar{grid-template-columns:auto minmax(0,1fr) auto!important}
  body.uncartell-editor-active .qr-project-bar>.tool-project-field{grid-column:2}
  body.uncartell-editor-active .qr-project-bar>.tool-header-actions{grid-column:3}
}
@media(max-width:620px){
  body.uncartell-editor-active .qr-project-bar{grid-template-columns:42px minmax(0,1fr) auto!important;gap:7px!important;min-height:62px!important;padding:8px 10px!important}
  body.uncartell-editor-active .qr-project-bar>.tool-project-field{display:block!important;height:42px!important}
  body.uncartell-editor-active .qr-project-bar>.tool-header-actions{display:flex!important;width:auto!important;gap:5px!important}
  body.uncartell-editor-active .qr-project-bar>.tool-header-actions>button{width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;font-size:0!important}
  body.uncartell-editor-active .qr-project-bar>.tool-header-actions>button::after{display:none!important;content:none!important}
}

/* Arquitectura compartida dels editors: rail d'eines + panell contextual. */
@media(min-width:1001px){
  .qr-editor-shell{grid-template-columns:390px minmax(0,1fr)}
  .qr-controls{display:grid;grid-template-columns:72px minmax(0,1fr);min-width:0;overflow:hidden;border-right:1px solid var(--qr-line)}
  .qr-tool-rail{position:relative;top:auto;display:flex;flex-direction:column;align-items:center;gap:8px;overflow-y:auto;border-right:1px solid var(--qr-line);border-bottom:0;background:#fff;padding:12px 8px}
  .qr-tool-rail button{position:relative;display:grid;place-items:center;flex:0 0 auto;width:54px;height:54px;min-height:54px;border:0;border-radius:12px;background:transparent;color:var(--qr-ink);padding:0}
  .qr-tool-rail button:hover{background:#e9e7e1}
  .qr-tool-rail button.active{background:var(--qr-accent);color:var(--qr-ink);box-shadow:none}
  .qr-tool-rail button span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .qr-tool-rail button>em{position:absolute;right:-2px;bottom:2px;border-radius:5px;background:#202426;padding:2px 4px;color:#fff;font-size:7px;font-style:normal;font-weight:900;letter-spacing:.03em;text-transform:uppercase}
  .qr-tool-views{min-width:0;overflow-y:auto;background:#f7f6f2}
}
.qr-tool-rail button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.qr-coming-feature{align-content:start}
.qr-coming-feature>p{grid-column:1/-1;margin:16px 0 0;color:var(--qr-muted);font-size:13px;line-height:1.45}
.qr-project-bar{grid-template-columns:auto minmax(320px,620px) auto!important;justify-content:space-between!important}
.qr-project-bar>label{margin-left:auto}.qr-project-bar>div{margin-left:0}
.qr-back-link{display:inline-flex;min-height:44px;align-items:center;gap:8px;color:var(--qr-ink);font-size:12px;font-weight:800;text-decoration:none}.qr-back-link svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.qr-download-trigger{border-color:var(--qr-accent)!important;background:var(--qr-accent)!important;color:var(--qr-ink)!important}
.qr-logo-upload,.qr-secondary-action{display:flex;min-height:42px;align-items:center;justify-content:center;margin-top:14px;border:1px solid var(--qr-line);border-radius:11px;background:#fff;padding:10px 12px;font-size:11px;font-weight:800;cursor:pointer}.qr-logo-upload input{position:absolute;width:1px;height:1px;opacity:0}.qr-logo-preview{display:grid;min-height:62px;place-items:center;margin-top:10px;border-radius:11px;background:#efede7}.qr-logo-preview:empty{display:none}.qr-logo-preview img{max-width:130px;max-height:52px}.qr-secondary-action[hidden]{display:none}.qr-feature-card>small{display:block;margin-top:10px;color:var(--qr-muted);font-size:10px}
[data-logo-card]{container-type:inline-size}
[data-logo-card]>div:first-child{min-width:0}
[data-logo-card]>.qr-logo-upload{grid-column:1/-1;box-sizing:border-box;width:100%;margin-top:6px;white-space:nowrap}
[data-logo-card]>em[hidden]+.qr-logo-upload{grid-row:1;grid-column:2;width:auto;min-width:132px;margin:0 0 0 16px}
@container(max-width:340px){
  [data-logo-card]>em[hidden]+.qr-logo-upload{grid-row:auto;grid-column:1/-1;width:100%;margin:6px 0 0}
}
.qr-metrics{display:grid;gap:8px;margin-top:15px}.qr-metrics span{display:flex;align-items:baseline;justify-content:space-between;gap:12px;border-bottom:1px solid var(--qr-line);padding-bottom:8px;color:var(--qr-muted);font-size:10px}.qr-metrics b{color:var(--qr-ink);font-size:18px}
.qr-analytics-period{display:grid;grid-template-columns:repeat(3,1fr);grid-column:1/-1;gap:6px;margin-top:15px}.qr-analytics-period button{min-height:34px;border:1px solid var(--qr-line);border-radius:9px;background:#fff;font:inherit;font-size:10px;font-weight:850;cursor:pointer}.qr-analytics-period button.active{border-color:#181614;background:#181614;color:#fff}.qr-analytics-chart{display:flex;grid-column:1/-1;height:112px;align-items:end;gap:2px;margin-top:16px;border-bottom:1px solid var(--qr-line);padding:8px 0 22px}.qr-analytics-chart>span{position:relative;display:flex;height:100%;min-width:2px;flex:1;align-items:end}.qr-analytics-chart i{display:block;width:100%;height:var(--value);min-height:2px;border-radius:2px 2px 0 0;background:var(--qr-accent)}.qr-analytics-chart small{position:absolute;bottom:-20px;left:0;color:var(--qr-muted);font-size:8px;white-space:nowrap}.qr-analytics-chart>span:last-child small{right:0;left:auto}.qr-analytics-destination{grid-column:1/-1;margin:14px 0 0}.qr-analytics-destination span{display:block;margin-bottom:4px;color:var(--qr-muted);font-size:9px;font-weight:800;text-transform:uppercase}.qr-analytics-destination a{display:block;color:var(--qr-ink);font-size:10px;overflow-wrap:anywhere}.qr-confirm-modal section{max-width:560px}.qr-confirm-modal section>p{color:var(--qr-muted);line-height:1.5}.qr-confirm-modal code{display:block;margin:18px 0;border:1px solid var(--qr-line);border-radius:11px;background:#f4f3ef;padding:13px;overflow-wrap:anywhere}.qr-confirm-actions{display:flex;justify-content:flex-end;gap:8px}.qr-confirm-actions button{min-height:42px;border:1px solid var(--qr-line);border-radius:11px;background:#fff;padding:10px 16px;font:inherit;font-weight:800}.qr-confirm-actions button.primary{border-color:#181614;background:#181614;color:#fff}
.qr-download-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:22px}.qr-download-options button{min-height:52px;border:1px solid var(--qr-line);border-radius:12px;background:#fff;font:inherit;font-size:12px;font-weight:850;cursor:pointer}.qr-download-options button:hover{border-color:var(--qr-ink)}.qr-download-options button:disabled{opacity:.4;cursor:not-allowed}.qr-download-options button.is-plan-locked{background:var(--qr-stone);color:var(--qr-muted)}.qr-download-options em{display:block;margin-top:3px;color:var(--qr-muted);font-size:8px;font-style:normal;text-transform:uppercase}.qr-download-options em[hidden]{display:none!important}
@media(max-width:1000px){.qr-project-bar{grid-template-columns:auto minmax(0,1fr) auto!important}.qr-project-bar label{min-width:0}.qr-download-trigger{display:inline-flex!important}}
@media(max-width:620px){.qr-project-bar{grid-template-columns:auto minmax(0,1fr) auto!important}.qr-back-link{width:42px;font-size:0}.qr-back-link svg{width:22px;height:22px}.qr-project-bar>div{gap:5px!important}.qr-project-bar>div button{width:42px!important;min-width:42px!important;padding:0!important;font-size:0!important}.qr-download-options{grid-template-columns:1fr}}
@media(max-width:1000px){
  body.uncartell-editor-active .qr-controls{display:flex!important;flex-direction:column!important;overflow:hidden!important}
  body.uncartell-editor-active .qr-tool-views{order:1;min-width:0;min-height:0;overflow-y:auto;background:#f7f6f2}
  body.uncartell-editor-active .qr-tool-rail{position:relative!important;top:auto!important;order:2;display:flex!important;flex-direction:row!important;flex:0 0 62px;align-items:center;gap:5px;overflow-x:auto;overflow-y:hidden;border-top:1px solid var(--qr-line);border-bottom:0;background:#fff;padding:5px 8px max(5px,env(safe-area-inset-bottom));scrollbar-width:none}
  body.uncartell-editor-active .qr-tool-rail::-webkit-scrollbar{display:none}
  body.uncartell-editor-active .qr-tool-rail button{position:relative;display:grid;place-items:center;flex:0 0 54px;width:54px;height:52px;min-width:54px;min-height:52px;border:0;border-radius:11px;background:transparent;color:var(--qr-ink);padding:0;box-shadow:none}
  body.uncartell-editor-active .qr-tool-rail button.active{background:var(--qr-accent);color:var(--qr-ink)}
  body.uncartell-editor-active .qr-tool-rail button span{display:none}
  body.uncartell-editor-active .qr-tool-rail button>em{position:absolute;right:0;bottom:1px;border-radius:4px;background:#202426;padding:2px 3px;color:#fff;font-size:6px;font-style:normal;font-weight:900;text-transform:uppercase}
  body.uncartell-editor-active .qr-tool-rail button svg{width:22px;height:22px}
}

/* Ajust final de la barra de projecte mòbil. */
.qr-intro>.qr-open-projects{display:none!important}
@media(max-width:620px){
  .qr-project-bar label,.qr-project-input{display:flex!important;align-items:center!important;height:48px!important;line-height:0}
  .qr-project-input input{height:48px!important;border-radius:999px!important;padding-left:14px!important}
  .qr-project-bar>div{align-self:center!important}
  .qr-project-bar button{width:48px!important;min-width:48px!important;height:48px!important;min-height:48px!important;border-radius:50%!important;padding:0!important;gap:0!important;font-size:0!important;line-height:0!important;transform:none!important}
  .qr-project-bar button::after{content:none!important;display:none!important}
  .qr-project-bar button svg{width:17px!important;height:17px!important;margin:0!important}
}
.qr-project-bar.is-locked button,
.qr-project-bar.is-locked button:hover{
  border-color:var(--qr-ink)!important;
  background:var(--qr-ink)!important;
  color:#fff!important;
  opacity:.32!important;
  box-shadow:none!important;
}

/* Mateixa jerarquia tipogràfica que la resta d'editors. */
.qr-panel-title,
.qr-feature-card>div:first-child>strong{
  color:var(--qr-muted);
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

/* Responsive final: cap pista de l'editor pot conservar el mínim d'escriptori. */
@media(max-width:1000px){
  .qr-page,.qr-editor,.qr-project-bar,.qr-editor-shell,.qr-controls,.qr-workspace,.qr-canvas{min-width:0;max-width:100%}
  .qr-project-bar{grid-template-columns:minmax(0,1fr)!important;align-items:stretch}
  .qr-editor-shell{grid-template-columns:minmax(0,1fr)!important}
  .qr-project-bar label{width:100%;min-width:0;grid-template-columns:minmax(0,1fr)!important}
  .qr-project-bar label>span,.qr-project-bar input{width:100%;min-width:0;max-width:100%}
  .qr-project-bar>div{width:100%;min-width:0}
  .qr-project-bar button{min-width:0;transform:none}
}
@media(max-width:620px){
  .qr-page{overflow-x:hidden}
  .qr-intro{width:calc(100% - 28px);padding-top:34px}
  .qr-intro h1{font-size:clamp(36px,11vw,46px);line-height:1}
  .qr-editor{width:calc(100% - 28px)}
  .qr-project-bar,.qr-editor-shell{border-left:1px solid var(--qr-line);border-right:1px solid var(--qr-line)}
  .qr-project-bar{grid-template-columns:minmax(0,1fr)!important;border-radius:20px 20px 0 0;padding:16px}
  .qr-project-bar label{grid-template-columns:minmax(0,1fr)!important}
  .qr-project-bar>strong{font-size:25px}
  .qr-project-bar>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
  .qr-project-bar button{width:100%;height:44px;padding:9px 7px;font-size:10px;white-space:normal}
  .qr-project-bar button svg{flex:0 0 16px;width:16px;height:16px}
  .qr-editor-shell{border-radius:0 0 20px 20px}
  .qr-panel-tabs{grid-template-columns:1fr 1fr}
  .qr-panel-tabs button{min-width:0;padding:15px 8px;font-size:11px}
  .qr-panel-view{padding:16px}
  .qr-feature-card{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:14px}
  [data-logo-card]>.qr-logo-upload,
  [data-logo-card]>em[hidden]+.qr-logo-upload{grid-row:auto;grid-column:1/-1;width:100%;margin:6px 0 0}
  .qr-colors{grid-template-columns:1fr 1fr;min-width:0}
  .qr-canvas{min-height:330px;padding:18px 12px}
  .qr-empty{width:100%;min-height:270px;padding:10px}
  .qr-empty-card{width:100%;padding:16px}
  .qr-actions{padding:14px;gap:12px}
  .qr-actions>div{width:100%;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px}
  .qr-actions button{min-width:0;padding:10px 7px;font-size:10px;white-space:normal}
  .qr-page{padding-bottom:0}
  .qr-editor{padding-bottom:14px}
}

@media(max-width:620px){
  .qr-project-bar{grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;min-height:64px;padding:10px 12px!important}
  .qr-project-bar>strong,.qr-project-bar label>span:first-child{display:none}
  .qr-project-bar label{display:block!important;min-width:0}
  .qr-project-input,.qr-project-bar input{width:100%;min-width:0}
  .qr-project-bar input{height:42px;padding-inline:11px;font-size:11px}
  .qr-project-bar>div{display:flex!important;width:auto!important;align-items:center!important;gap:6px!important}
  .qr-project-bar button{display:inline-flex;align-items:center;justify-content:center;gap:5px;width:auto!important;min-width:0;height:42px!important;min-height:42px;padding:8px 10px!important;font-size:0!important;white-space:nowrap!important}
  .qr-project-bar button svg{width:16px;height:16px;flex:none}
  .qr-project-bar button::after{font-size:10px;line-height:1}
  .qr-project-bar [data-save-project]::after{content:"Desa"}
  .qr-project-bar [data-open-projects]::after{content:"Obre"}
  html[lang="es"] .qr-project-bar [data-save-project]::after{content:"Guarda"}
  html[lang="es"] .qr-project-bar [data-open-projects]::after{content:"Abre"}
}


/* QR mobile controls and wider URL entry — 2026-08-31 */
.qr-empty{width:min(1200px,100%)}
.qr-empty-card{width:min(1080px,100%)}
@media(max-width:620px){
  body.uncartell-editor-active .qr-project-bar{grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important}
  body.uncartell-editor-active .qr-project-bar>.qr-back-link{display:inline-flex!important;box-sizing:border-box;width:auto!important;min-width:54px!important;height:42px!important;min-height:42px!important;align-items:center!important;justify-content:center!important;gap:5px!important;margin:0!important;padding:0 9px!important;font-size:10px!important;line-height:1!important;transform:none!important}
  body.uncartell-editor-active .qr-project-bar>.qr-back-link svg{display:block;width:15px!important;height:15px!important;margin:0!important}
  body.uncartell-editor-active .qr-tool-rail button,body.uncartell-editor-active .qr-tool-rail button:hover,body.uncartell-editor-active .qr-tool-rail button:focus,body.uncartell-editor-active .qr-tool-rail button:focus-visible{border:0!important;outline:0!important;box-shadow:none!important}
  body.uncartell-editor-active .qr-tool-rail button.active{border:0!important;background:var(--qr-accent)!important;color:var(--qr-ink)!important;outline:0!important;box-shadow:none!important}
  .qr-empty,.qr-empty-card{width:100%}
}
@media(hover:none) and (pointer:coarse){body.uncartell-editor-active .qr-tool-rail button:not(.active):hover{background:transparent!important}}
