/* Scoped additions; inherits RIM's blue / slate interface and native dialog. */
.pb-tool [hidden]{display:none!important}.pb-tool{font-size:14px;min-width:0}.pb-tool .section-head{margin-bottom:12px}.pb-intro{color:#46546d;margin:0 0 20px;line-height:1.6}.pb-tool input[type=file]{max-width:100%;font-size:13px;line-height:1.6;padding:12px;background:#f7f9ff;border:1px dashed #bccaf3}.pb-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:22px;align-items:end}.pb-fields>div{min-width:0}.pb-checkbox{display:flex;align-items:center;gap:10px;line-height:1.6;min-height:44px;margin:0}.pb-checkbox input{width:18px;height:18px;flex:none;accent-color:#254ce7}.pb-tool input[type=color]{height:44px;padding:5px;max-width:120px}.pb-palette-controls{grid-template-columns:160px minmax(0,1fr)}.pb-source{margin:20px 0 0;border:1px solid #e1e6f0;border-radius:12px;overflow:hidden}.pb-source img{display:block;width:100%;height:180px;object-fit:contain}.pb-checker,.pb-result-preview{background-color:#fff;background-image:linear-gradient(45deg,#e8edf4 25%,transparent 25%),linear-gradient(-45deg,#e8edf4 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e8edf4 75%),linear-gradient(-45deg,transparent 75%,#e8edf4 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}.pb-status{font-size:13px;color:#43516b;line-height:1.6;min-height:21px;overflow-wrap:anywhere;margin:18px 0 0}.pb-swatches{list-style:none;padding:0;margin:20px 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.pb-swatch{border:1px solid #e1e6f0;border-radius:10px;overflow:hidden;min-width:0;display:flex;flex-direction:column;background:#fff}.pb-color{height:80px;border-bottom:1px solid #e1e6f0}.pb-swatch .quiet-button{border:0;border-radius:0;padding:12px 5px 8px;font-family:ui-monospace,monospace;white-space:nowrap;font-size:14px}.pb-rgb{border:0;background:#fff;color:#576580;padding:6px 3px 12px;font-size:11px;white-space:nowrap;min-height:38px}.pb-swatch button:hover{background:#f3f6ff}.pb-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.pb-actions .download{padding:13px 18px}.pb-actions .quiet-button{white-space:normal}.pb-warning{padding:12px 14px;background:#fff8e9;border:1px solid #eedeb6;border-radius:9px;color:#76551c;font-size:12px;line-height:1.65;margin-top:20px}.pb-private{font-size:11px;color:#68758e;line-height:1.7;margin:15px 0 0}.pb-queue{padding-left:20px;margin:16px 0 0;font-size:12px;color:#68758e;line-height:1.8;overflow-wrap:anywhere}.pb-queue:empty{display:none}.pb-tool progress{width:100%;height:10px;margin:10px 0;accent-color:#254ce7}.pb-results{list-style:none;padding:0;margin:20px 0 0;display:grid;gap:12px}.pb-result{display:flex;align-items:center;gap:14px;border:1px solid #e1e6f0;border-radius:11px;padding:12px;background:#fff}.pb-result-preview{width:72px;height:72px;object-fit:contain;flex:none;border:1px solid #e1e6f0;border-radius:7px}.pb-result-info{min-width:0;flex:1;overflow-wrap:anywhere}.pb-result-info strong{font-size:12px}.pb-result .hint{font-size:11px;line-height:1.6;margin:6px 0 0}.pb-result .pb-warning{margin:8px 0 0;padding:7px 9px}.pb-tool .error{margin-top:12px}
@media(max-width:650px){.pb-fields{gap:16px;grid-template-columns:1fr}.pb-palette-controls{grid-template-columns:1fr}.pb-palette-controls select{max-width:160px}.pb-swatches{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pb-actions{display:grid;grid-template-columns:1fr 1fr}.pb-actions .download{grid-column:1/-1}.pb-actions button{width:100%;justify-content:center;min-height:44px;font-size:12px}.pb-result{flex-wrap:wrap;gap:10px}.pb-result>button{width:100%;min-height:44px}.pb-result-preview{width:56px;height:56px}.pb-tool input[type=number]{font-size:16px}.pb-tool input[type=file]{font-size:12px}.pb-source img{height:150px}}

.pb-cmyk{border:0;background:#fff;color:#18243c;padding:12px 9px;font-size:13px;font-weight:600;line-height:1.8;min-height:66px;white-space:normal;text-align:center;font-variant-numeric:tabular-nums}.pb-screen-details{border-top:1px solid #e1e6f0;padding:8px;text-align:center}.pb-screen-details summary{font-size:11px;color:#68758e;cursor:pointer;line-height:1.6}.pb-screen-details[open] summary{margin-bottom:6px}.pb-screen-details .pb-rgb{display:block;width:100%;padding:8px 3px;min-height:38px}.pb-screen-details summary:focus-visible{outline:3px solid #91a7ff;outline-offset:3px}
