:root{--cap-h:38px}
[hidden]{display:none !important}
input[type=text], input[type=search], input[type=number], input[type=email], input[type=password],
input[type=tel], input[type=url], input[type=date], input[type=datetime-local], input[type=time],
input:not([type]), select, button, .btn, a[class*="btn"], label[class*="btn"],
[class^="btn"], [class*=" btn"], [class*="-btn"], .dl-btn, .file-pick-btn {
border-radius: 17px !important;
}
.help-btn, .pv-btn, .cols-close-x, .sheet-x, .thumb-swap { border-radius: 50% !important; }
:is(input[type=text], input[type=search], input[type=number], input[type=email], input[type=password],
input[type=tel], input[type=url], input[type=date], input[type=datetime-local], input[type=time],
input:not([type]), select:not([multiple]):not([size]),
button, input[type=submit], input[type=button], input[type=reset], a[class*="btn"], label[class*="btn"],
summary[class*="btn"]):not(td *, nav.top *, .scan-bar *, .wh-sheet *, #scan-win *, #pv *, #fields-win .fb *, .cap-free, .cap-free *, .rm-menu *,
.help-btn, .pv-btn, .cols-close-x, .sheet-x, .thumb-swap, .x, .fx, .side-btn, .rzk-icon-btn,
.dp-toggle, .cp-toggle, .cp-item, .cols-move *) {
box-sizing: border-box !important;
height: var(--cap-h) !important;
padding-top: 0 !important;
padding-bottom: 0 !important;
}
:is(button, input[type=submit], input[type=button], input[type=reset], a[class*="btn"], label[class*="btn"],
summary[class*="btn"]):not(td *, nav.top *, .scan-bar *, .wh-sheet *, #scan-win *, #pv *, #fields-win .fb *, .cap-free, .cap-free *, .rm-menu *) {
white-space: nowrap;
}
:where(a[class*="btn"], label[class*="btn"], summary[class*="btn"]) { display: inline-flex; align-items: center; justify-content: center; }
:where(a, label, summary):is(.btn, .btn-gray, .btn-green, .btn-blue) {
display: inline-flex; align-items: center; justify-content: center;
}
#copy-toast{position:fixed;left:50%;top:70px;transform:translateX(-50%);max-width:calc(100% - 32px);background:rgba(30,41,59,.92);color:#fff;
padding:8px 16px;border-radius:17px;font-size:13px;font-weight:600;z-index:6000;opacity:0;pointer-events:none;transition:opacity .2s;
white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#copy-toast.show{opacity:1}
.rm{position:relative;display:inline-block}
:where(.rm-btn){background:none;border:1px solid transparent;color:#475569;font-size:18px;line-height:1;cursor:pointer;
min-width:30px;height:28px;padding:0 6px;border-radius:14px !important}
:where(.rm-btn):hover,:where(.rm.open .rm-btn){background:#f1f5f9;border-color:#e2e8f0}
.rm-btn:is(.btn,.dl-btn){font-size:14px;height:var(--cap-h);padding:0 14px}
.rm-menu{position:fixed;z-index:5000;background:#fff;border:1px solid #e2e8f0;border-radius:14px;
box-shadow:0 10px 28px rgba(15,23,42,.18);padding:6px;min-width:190px;max-width:calc(100vw - 16px);box-sizing:border-box;display:flex;flex-direction:column;gap:2px}
.rm-menu a,.rm-menu button{display:block;width:100%;text-align:left;padding:9px 12px;white-space:normal;border-radius:10px !important;
background:none;border:none;color:#1e293b;font-size:13px;font-weight:600;text-decoration:none;cursor:pointer;height:auto !important;margin:0}
.rm-menu a:hover,.rm-menu button:hover{background:#f1f5f9}
.rm-menu .del{color:#b91c1c}
.rm-menu form{margin:0;display:block}
#dvcs-up{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(96px + env(safe-area-inset-bottom));z-index:4500;width:38px;height:38px;
border-radius:50% !important;border:1px solid #cbd5e1;background:rgba(255,255,255,.88);color:#334155;font-size:17px;
line-height:1;padding:0;cursor:pointer;box-shadow:0 2px 8px rgba(15,23,42,.15);opacity:.85;
display:inline-flex;align-items:center;justify-content:center}
#dvcs-up[hidden]{display:none !important}
#dvcs-up:hover{opacity:1}
.sheet-x, .cols-close-x, .hs-x, #help-win .x, #fields-win .fx, #pv-close { font-size: 0 !important; padding: 0 !important; }
.sheet-x, .cols-close-x, .hs-x, #help-win .x, #fields-win .fx { position: relative; width: 32px; height: 32px; flex: none; }
:is(.sheet-x, .cols-close-x, .hs-x, #help-win .x, #fields-win .fx, #pv-close)::before,
:is(.sheet-x, .cols-close-x, .hs-x, #help-win .x, #fields-win .fx, #pv-close)::after {
content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; border-radius: 1px; background: currentColor;
}
:is(.sheet-x, .cols-close-x, .hs-x, #help-win .x, #fields-win .fx, #pv-close)::before { transform: translate(-50%, -50%) rotate(45deg); }
:is(.sheet-x, .cols-close-x, .hs-x, #help-win .x, #fields-win .fx, #pv-close)::after { transform: translate(-50%, -50%) rotate(-45deg); }
#pv-close::before, #pv-close::after { width: 18px; }
