:root{--cap-h:38px;
--c-accent:#3b82f6;--c-green:#16a34a;--c-dark:#1e293b;--c-bg:#f0f2f5;--c-text:#333333}
:root{--c-accent-d:color-mix(in srgb,var(--c-accent) 80%,#000);--c-accent-dd:color-mix(in srgb,var(--c-accent) 62%,#000);
--c-green-d:color-mix(in srgb,var(--c-green) 80%,#000)}
[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:var(--c-dark);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, .dcp-x, .hs-x, #help-win .x, #fields-win .fx, #pv-close { font-size: 0 !important; padding: 0 !important; }
.sheet-x, .cols-close-x, .dcp-x, .hs-x, #help-win .x, #fields-win .fx { position: relative; width: 32px; height: 32px; flex: none; }
:is(.sheet-x, .cols-close-x, .dcp-x, .hs-x, #help-win .x, #fields-win .fx, #pv-close)::before,
:is(.sheet-x, .cols-close-x, .dcp-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, .dcp-x, .hs-x, #help-win .x, #fields-win .fx, #pv-close)::before { transform: translate(-50%, -50%) rotate(45deg); }
:is(.sheet-x, .cols-close-x, .dcp-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; }
@media (hover: none) and (pointer: coarse) {
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]),
select, textarea { font-size: 16px !important; }
}
.dvcs-pw { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 7000; display: flex; align-items: center; justify-content: center; padding: 12px; }
.dvcs-pw-win { background: #fff; border-radius: 14px; width: 100%; max-width: 420px; padding: 16px; box-shadow: 0 12px 40px rgba(15,23,42,.3); }
.dvcs-pw-win b { display: block; font-size: 15px; color: var(--c-dark); margin-bottom: 6px; }
.dvcs-pw-win p { margin: 0 0 10px; font-size: 13px; color: #475569; line-height: 1.4; }
.dvcs-pw-in { width: 100%; box-sizing: border-box; height: 38px; border: 1px solid #cbd5e1; border-radius: 17px; padding: 0 14px; font-size: 14px; }
.dvcs-pw-b { display: flex; gap: 8px; margin-top: 12px; }
.dvcs-pw-b button { height: 38px; padding: 0 16px; border: none; border-radius: 17px; font-size: 13px; font-weight: 600; cursor: pointer; }
.dvcs-pw-b .btn-del { background: #dc2626; color: #fff; }
.dvcs-pw-b .btn-gray { background: #e2e8f0; color: #334155; }
