/* RC3.1 Quick Actions — user-controlled, always one toolbar row.
   All five actions are one tap, none requires opening Add/More. */
body.sw63-ready .tools-primary{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;min-width:0;flex:1;scrollbar-width:thin;align-items:center;white-space:nowrap}
body.sw63-ready .tools-primary .tool-btn{flex:0 0 auto;min-width:48px}
body.sw63-ready .tools-primary .sw631-idle-duplicate{display:flex}
body.sw63-ready .sw63-context{scrollbar-width:thin}
.sw631-quick{display:flex;align-items:center;gap:4px;flex:0 0 auto;white-space:nowrap;padding:0 3px;border-left:1px solid #dfe8f3;border-right:1px solid #dfe8f3}
.sw63-context .sw631-action{display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:4px;min-width:39px;height:37px;padding:4px 7px;white-space:nowrap;font-size:11px}
.sw631-icon{font-size:17px;line-height:1}
.sw631-caption{font-size:11px;font-weight:650;line-height:1.2}
.sw631-quick #sw631Paste.sw631-ready-to-paste{border-color:#84b5f7;background:#eaf3ff;color:#185dbb}
.sw631-quick button:focus-visible,.sw631-idle-duplicate:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.sw63-context .sw631-action:disabled{opacity:.40;cursor:not-allowed}
@media(max-width:1260px){
 .sw631-quick{gap:3px;padding-inline:2px}
 .sw63-context .sw631-action{padding:5px 6px}
 .sw631-quick .sw631-caption{display:none}
}
@media(max-width:960px){
 body.sw63-ready .tools-primary .tool-btn{min-width:44px}
 .sw63-context #sw63FontWrap,.sw63-context #sw63SizeWrap,.sw63-context #sw63Bold,.sw63-context #sw63ColorWrap{display:none!important}
 .sw63-context .sw631-action{height:40px;min-height:40px;min-width:44px;padding:5px 7px}
 .sw63-context .sw631-icon{font-size:18px}
 .sw63-context .sw631-quick{gap:2px}
}
@media(max-width:700px){
 /* Mobile already has an Add button in the fixed bottom navigation.
    Don't spend another 45px on its duplicate when an object is selected. */
 body.sw63-has-selection #sw63Add{display:none!important}
 .sw63-context #sw63Selected{display:none!important}
 .sw63-context #sw63Edit,.sw63-context #sw63More{min-width:40px;width:40px;overflow:hidden;font-size:0!important;padding:3px!important}
 .sw63-context #sw63Edit::before{content:'✎';font-size:18px}
 .sw63-context #sw63More::before{content:'☷';font-size:18px}
 .sw63-context .sw631-quick{order:-2;padding:0 2px;border:0;gap:1px}
 .sw63-context #sw63Edit{order:-3}
 .sw63-context #sw63More{order:-4;margin-left:0}
 .sw63-context #sw63Delete{order:-1;min-width:40px;width:40px;display:inline-flex;align-items:center;justify-content:center}
 body.sw63-ready .sw63-context{gap:3px;scrollbar-width:none;touch-action:pan-x}
 body.sw63-ready .sw63-context::-webkit-scrollbar{display:none}
 .sw63-context .sw631-action{min-width:41px;width:41px;height:41px;min-height:41px;padding:3px 1px;flex-direction:column;gap:1px}
 .sw631-quick .sw631-icon{font-size:16px;line-height:18px}
 .sw631-quick .sw631-caption{display:block;font-size:8px;max-width:41px;overflow:hidden;text-overflow:clip;line-height:10px}
 .sw631-quick .sw631-caption{font-size:0}
 .sw631-quick .sw631-caption::after{content:attr(data-short-en);font-size:8.5px}
 html[lang=th] .sw631-quick .sw631-caption::after{content:attr(data-short-th)}
 body.sw63-ready .tools-primary{scrollbar-width:none}
 body.sw63-ready .tools-primary::-webkit-scrollbar{display:none}
}
@media(max-width:359px){
 .sw63-context .sw631-action{min-width:40px;width:40px}
 /* 320px screens can swipe the icon strip; no extra toolbar or menu is used. */
}
@media print{.sw631-quick,.sw631-idle-duplicate{display:none!important}}
