/* Official blue photo-tool design. Scoped to tool pages and their payment dialog. */
#toolbox{--accent:#4e85f5;--accent-soft:#eef4ff;--accent-line:#d8e5ff;max-width:1320px;padding:28px 24px 72px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#24334b;font-size:14px}
#toolbox[data-tool]{--accent:#4e85f5;--accent-soft:#eef4ff;--accent-line:#d8e5ff}
#toolbox h1,#toolbox h2,#toolbox h3,#toolbox p,#toolbox label,#toolbox button,#toolbox input,#toolbox select,#toolbox summary,#toolbox table,#toolbox li{font-family:inherit}#toolbox h1,#toolbox h2,#toolbox h3{color:#24334b;letter-spacing:0}
#toolbox .tb-breadcrumb{margin:0 0 20px;font-size:13px;color:#70809a}#toolbox .tb-breadcrumb a{color:#4e85f5}
#toolbox .tb-hero-small{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 20px;padding:26px 28px;border:1px solid #e3eaf6;border-radius:6px;background:#fff;box-shadow:none}
#toolbox .tb-tool-title{grid-column:1;grid-row:1;display:flex;align-items:center;gap:14px;min-width:0}#toolbox .tb-tool-title>.photo-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;flex:none;background:#eef4ff;border-radius:12px;color:#4e85f5;font-size:25px}#toolbox .tb-tool-title h1{margin:0!important;font-size:28px!important;font-weight:700!important;line-height:1.4}
#toolbox .tb-hero-small>p{grid-column:1/-1;grid-row:2;margin:0 0 0 62px;max-width:850px;color:#65758e;font-size:14px;line-height:1.8}#toolbox .tb-hero-small>.tb-badge{grid-column:2;grid-row:1;align-self:center;float:none;margin:0;padding:7px 12px;border:1px solid #d8e5ff;border-radius:999px;background:#eef4ff;color:#3c6cc5;font-size:12px;line-height:1.5;white-space:normal;text-align:center}
#toolbox .tb-page-layout{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:24px;margin-top:24px;align-items:start}#toolbox .tb-main-column{min-width:0}
#toolbox .tb-upload-guide{padding:15px 18px;background:#eef4ff;border:1px solid #d8e5ff;border-radius:12px;margin:0}#toolbox .tb-upload-guide h2{display:none}#toolbox .tb-upload-guide>div{border:0;padding:0;background:none}#toolbox .tb-upload-guide strong{font-size:14px;font-weight:600;color:#34527d}#toolbox .tb-upload-guide strong:before{content:'\f05a';font-family:PhotoIcons;color:#4e85f5;margin-right:8px}#toolbox .tb-upload-guide p{font-size:13px;line-height:1.8;color:#65758e;margin:5px 0 0 22px}
#toolbox .tb-workspace{display:grid;grid-template-columns:300px minmax(0,1fr);gap:20px;margin-top:20px;align-items:stretch}
#toolbox .tb-controls,#toolbox .tb-preview-panel{border:1px solid #e3eaf6;border-radius:6px;background:#fff;box-shadow:none;padding:22px;min-width:0}
#toolbox .tb-control-heading,#toolbox .tb-preview-heading h2{display:flex;align-items:center;gap:9px;font-size:17px!important;font-weight:600!important;line-height:1.5;margin:0!important;color:#24334b!important;padding:0}
#toolbox .tb-control-heading{padding-bottom:18px;margin-bottom:20px!important;border-bottom:1px solid #edf1f7}#toolbox .tb-stage{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;flex:none;background:#eef4ff;border:0;border-radius:50%;color:#4e85f5;font:600 13px/1 Arial}
#toolbox .tb-controls .tb-upload{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:148px;padding:24px 12px;border:1px dashed #a8c5fb;border-radius:10px;background:#f7faff;cursor:pointer;transition:background .15s,border-color .15s}#toolbox .tb-controls .tb-upload:hover{background:#eef4ff;border-color:#4e85f5}#toolbox .tb-upload strong{font-size:14px;font-weight:600;color:#34527d}#toolbox .tb-upload span{font-size:12px;color:#70809a}#toolbox .tb-upload .tb-upload-icon{color:#4e85f5;font-size:27px;margin:0 0 4px}
#toolbox .tb-btn{border-radius:8px;min-height:44px;font-size:14px;font-weight:600;line-height:1.5;padding:11px 18px;transition:background .15s}#toolbox .tb-btn-primary{background:#4e85f5!important;border:1px solid #4e85f5!important;color:#fff!important}#toolbox .tb-btn-primary:hover:not(:disabled){background:#3975e8!important;border-color:#3975e8!important;filter:none}#toolbox .tb-btn-primary:disabled{background:#e8edf5!important;border-color:#e8edf5!important;color:#718099!important;opacity:1;cursor:not-allowed}#toolbox .tb-btn-secondary{background:#fff;color:#4e6a96;border:1px solid #dce5f2}#toolbox .tb-btn-secondary:hover:not(:disabled){background:#f5f8ff;border-color:#a8c5fb}#toolbox .tb-controls #tb-demo{margin-top:12px;width:100%;min-height:39px;padding:8px 12px;font-size:13px;color:#4e6a96}#toolbox .tb-controls #tb-generate{margin-top:18px;width:100%}
#toolbox .tb-original{display:flex;align-items:center;gap:12px;padding:12px;margin-top:16px;border:1px solid #e8edf5;border-radius:8px;background:#fafcff}#toolbox .tb-original img{width:44px;height:58px;object-fit:cover;border-radius:4px;flex:none}#toolbox .tb-original span{font-size:12px;line-height:1.7;color:#65758e;overflow-wrap:anywhere;min-width:0}
#toolbox .tb-controls>label:not(.tb-upload){margin-top:19px;font-size:14px;font-weight:500;color:#405675}#toolbox .tb-field-pair{gap:12px;margin-top:18px;min-width:0}#toolbox .tb-field-pair label{font-size:13px;font-weight:500;color:#405675;min-width:0}#toolbox input[type=number],#toolbox select{min-width:0;width:100%;min-height:42px;padding:10px 12px;font-size:14px;line-height:1.4;border:1px solid #dce5f2;border-radius:8px;color:#24334b;background:#fff}#toolbox input:focus,#toolbox select:focus,#toolbox button:focus-visible,#toolbox a:focus-visible{outline:2px solid #4e85f5;outline-offset:2px}#toolbox input[type=range],#toolbox input[type=checkbox]{accent-color:#4e85f5}#toolbox input[type=range]{margin:12px 0 6px;cursor:pointer}
#toolbox .tb-presets{gap:7px;margin-top:10px}#toolbox .tb-presets button{border:1px solid #dce5f2;border-radius:6px;background:#f7faff;color:#4e6a96;padding:6px 9px;font-size:12px}#toolbox .tb-presets button:hover{border-color:#4e85f5;background:#eef4ff;color:#3975e8}#toolbox .tb-check{font-size:13px!important;font-weight:400!important;line-height:1.6}
#toolbox .tb-color-swatches{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:10px}#toolbox .tb-color-swatches button{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;border:1px solid #dce5f2;border-radius:6px;background:#fff;color:#65758e;padding:8px 3px;font-size:12px;cursor:pointer}#toolbox .tb-color-swatches button i{display:inline-block;width:11px;height:11px;flex:none;border:1px solid #d6deeb;border-radius:50%}#toolbox .tb-color-swatches button[aria-pressed=true]{border-color:#4e85f5;background:#eef4ff;color:#3975e8}
#toolbox .tb-price{padding:14px 16px;margin-top:20px;border:1px solid #e3eaf6;border-radius:10px;background:#f7faff;color:#65758e;font-size:13px}#toolbox .tb-price strong{font-size:25px;font-weight:700;color:#24334b;margin-left:8px}#toolbox .tb-price span{font-size:12px;color:#70809a;line-height:1.7;margin-top:3px}#toolbox .tb-hint,#toolbox .tb-privacy{font-size:12px;color:#70809a;line-height:1.8}#toolbox .tb-privacy{margin:12px 0 0!important}
#toolbox .tb-preview-panel{position:static!important;align-self:stretch;display:flex;flex-direction:column;min-height:560px}#toolbox .tb-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 0 18px;border-bottom:1px solid #edf1f7;margin-bottom:20px}#toolbox .tb-preview-heading>span{font-size:12px;color:#4e6a96;background:#eef4ff;border-radius:6px;padding:5px 9px;white-space:nowrap}#toolbox .tb-preview{display:flex;align-items:center;justify-content:center;min-height:360px;flex:1;overflow:hidden;padding:22px;border:1px solid #e6edf7;border-radius:10px;background:#f5f7fb;background-image:none}#toolbox .tb-preview img,#toolbox .tb-preview canvas{display:block;max-width:100%;max-height:420px;width:auto;height:auto;object-fit:contain;border-radius:4px;box-shadow:0 4px 18px #243a6212}#toolbox .tb-preview #tb-empty{display:flex;flex-direction:column;align-items:center;gap:12px;margin:0;color:#65758e;font-size:14px;text-align:center}#toolbox .tb-empty-icon{display:flex;align-items:center;justify-content:center;width:66px;height:66px;background:#fff;border:1px solid #e3eaf6;border-radius:6px;font-size:28px;color:#9eb9e5}#toolbox .tb-empty-caption{font-size:12px;color:#8492a8}#toolbox .tb-result-info{font-size:12px;color:#70809a;line-height:1.8;overflow-wrap:anywhere;margin:12px 0 0!important}#toolbox .tb-status{font-size:13px;line-height:1.8;color:#4e6a96;margin:9px 0 14px!important;min-height:23px}#toolbox .tb-status.is-error{color:#c14343}#toolbox .tb-download-actions{display:flex;flex-wrap:wrap;gap:10px;padding-top:18px;border-top:1px solid #edf1f7;margin-top:0}#toolbox .tb-download-actions+.tb-hint{margin:10px 0 0;min-height:22px}
#toolbox .tb-sidebar{display:flex;flex-direction:column;gap:18px;align-self:start;position:sticky;top:92px}#toolbox .tb-sidebar-card{border:1px solid #e3eaf6;border-radius:12px;background:#fff;overflow:hidden}#toolbox .tb-sidebar-card h2{font-size:15px!important;font-weight:600!important;color:#405675!important;padding:17px 16px;margin:0;background:#fafcff;border-bottom:1px solid #edf1f7}#toolbox .tb-sidebar-card nav>a{display:flex;align-items:center;gap:10px;padding:15px 14px;font-size:13px;line-height:1.6;color:#405675;border-bottom:1px solid #edf1f7}#toolbox .tb-sidebar-card nav>a:last-child{border-bottom:0}#toolbox .tb-sidebar-card nav>a:hover{background:#f7faff;color:#3975e8}#toolbox .tb-sidebar .tb-side-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;flex:none;background:#eef4ff;color:#4e85f5;border-radius:8px;font-size:16px}#toolbox .tb-sidebar small{display:block;font-size:11px;color:#8492a8;margin-top:2px}#toolbox .tb-sidebar b{font-weight:400;color:#a8b8d0}
#toolbox .tb-main-column>.tb-info{padding:26px 28px!important;margin-top:22px;border:1px solid #e3eaf6;border-radius:6px;background:#fff}#toolbox .tb-info h2{font-size:20px!important;font-weight:600!important;line-height:1.5;margin:0 0 16px}#toolbox .tb-reading p,#toolbox .tb-reading li,#toolbox .tb-steps,#toolbox .tb-faq p{font-size:14px;line-height:1.9;color:#526580}#toolbox .tb-reading p+p{margin-top:14px}#toolbox .tb-reading ul{padding-left:21px;margin:12px 0 0}#toolbox .tb-reading li+li{margin-top:9px}#toolbox .tb-table-wrap{overflow-x:auto}#toolbox .tb-guide-table{width:100%;border-collapse:collapse;font-size:13px;line-height:1.8;text-align:left}#toolbox .tb-guide-table th,#toolbox .tb-guide-table td{padding:13px 15px;border:1px solid #e3eaf6;vertical-align:top;color:#526580}#toolbox .tb-guide-table thead th{background:#eef4ff;color:#405675;font-weight:600}#toolbox .tb-guide-table tbody th{width:24%;min-width:96px;background:#f8faff;color:#405675;font-weight:600}#toolbox .tb-faq{padding:15px 0;border-bottom:1px solid #edf1f7}#toolbox .tb-faq:last-child{border:0}#toolbox .tb-faq summary{font-size:14px;font-weight:500;color:#405675;line-height:1.7;cursor:pointer}#toolbox .tb-faq p{margin:10px 0 0}
/* Keep the tool directory in the same blue design. */
.tb-hub{max-width:1320px;padding:28px 24px 72px}.tb-hub .tb-grid{gap:18px;border:0;background:none;overflow:visible}.tb-hub .tb-card{display:flex;flex-direction:column;gap:0;min-height:240px;border:1px solid #e3eaf6!important;border-radius:6px;padding:24px;position:relative;background:#fff}.tb-hub .tb-card:hover{background:#f7faff;border-color:#b8d0ff!important}.tb-hub .tb-card-top{display:flex;justify-content:space-between;align-items:center}.tb-hub .tb-card .tb-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin:0;background:#eef4ff;color:#4e85f5;border-radius:11px;font-size:23px}.tb-hub .tb-card .tb-badge{position:static;right:auto;bottom:auto;padding:4px 8px;font-size:11px;background:#eef4ff;color:#4e6a96;border-radius:6px}.tb-hub .tb-card h3{margin:16px 0 9px;font-size:18px;font-weight:600;color:#24334b}.tb-hub .tb-card p{font-size:13px;line-height:1.85;color:#65758e;flex:1}.tb-hub .tb-card-link{margin-top:18px;font-size:14px;font-weight:600;color:#4e85f5}.tb-hub .tb-hero h1{font-size:30px;font-weight:700;color:#24334b}.tb-hub .tb-hero p{font-size:15px;line-height:1.85;color:#65758e}.tb-hub .tb-info p{font-size:14px!important;line-height:1.9!important;color:#65758e!important}
/* Payment dialog: brand header, clear amount and a focused QR area. */
#tb-payment{box-sizing:border-box;width:420px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px);overflow:auto;padding:0;border:0;border-radius:6px;background:#fff;color:#24334b;text-align:center;box-shadow:0 28px 100px #102b5540;font:14px/1.7 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}#tb-payment::backdrop{background:#132b4d70;backdrop-filter:none}#tb-payment .pay-heading{display:flex;flex-direction:column;align-items:center;gap:0;padding:27px 30px 21px;background:#fff;border:0}#tb-payment .pay-brand-logo{width:154px;height:50px;object-fit:contain;margin:0 0 12px}#tb-payment .pay-heading h2{font-size:22px;font-weight:700;color:#24334b;margin:0;line-height:1.4}#tb-payment .pay-heading p{font-size:12px;color:#70809a;margin:7px 0 0}#tb-payment .pay-body{padding:0 28px 24px}#tb-payment .pay-caption{font-size:13px;color:#65758e;margin-bottom:8px}#tb-payment .pay-amount{display:flex;align-items:baseline;justify-content:center;gap:11px;margin:0 0 18px}#tb-payment .pay-amount>span{font-size:12px;color:#8492a8}#tb-payment #tb-pay-price{font-size:37px;font-weight:700;color:#3975e8;line-height:1.3;margin:0}#tb-payment .pay-qr-frame{width:224px;height:224px;margin:0 auto 15px;padding:12px;border:1px solid #dce6f5;border-radius:12px;background:#fff;box-shadow:0 4px 20px #243a6207}#tb-payment #tb-qr{display:block;width:198px;height:198px;max-width:100%;object-fit:contain;margin:0;border-radius:0}#tb-payment .pay-scan{display:flex;align-items:center;justify-content:center;gap:8px;width:auto;background:none;color:#526580;font-size:13px;padding:0;margin:0}#tb-payment .pay-scan .photo-icon{color:#22a56b;font-size:19px}#tb-payment .pay-waiting{display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;line-height:1.8;color:#70809a;background:#f7faff;border-radius:8px;padding:10px;margin:19px 0 10px}#tb-payment .pay-waiting i{width:7px;height:7px;border-radius:50%;background:#4e85f5;flex:none}#tb-payment .pay-note{font-size:12px;color:#4e6a96;line-height:1.8;margin:0}#tb-payment .pay-footer{padding:15px 24px;border-top:1px solid #edf1f7;background:#fafcff;border-radius:0 0 20px 20px;font-size:12px;color:#8492a8}#tb-payment .tb-modal-close{position:absolute;top:14px;right:14px;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:#ffffffaa;color:#70809a;font-size:24px;line-height:1;padding:0;cursor:pointer}#tb-payment .tb-modal-close:hover{background:#e8f0ff;color:#3975e8}
@media(max-width:1180px){#toolbox .tb-page-layout{grid-template-columns:minmax(0,1fr) 190px;gap:18px}#toolbox .tb-workspace{grid-template-columns:275px minmax(0,1fr);gap:16px}#toolbox .tb-controls,#toolbox .tb-preview-panel{padding:20px}}
@media(max-width:1000px){#toolbox .tb-page-layout{grid-template-columns:1fr}#toolbox .tb-sidebar{position:static;display:grid;grid-template-columns:1fr 1fr;gap:18px}#toolbox .tb-workspace{grid-template-columns:300px minmax(0,1fr)}.tb-hub .tb-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:720px){#toolbox{padding:20px 16px 48px}#toolbox .tb-hero-small{padding:20px;grid-template-columns:1fr;gap:12px}#toolbox .tb-tool-title{grid-column:1;grid-row:1}#toolbox .tb-tool-title h1{font-size:23px!important}#toolbox .tb-tool-title>.photo-icon{width:42px;height:42px;font-size:22px;border-radius:10px}#toolbox .tb-hero-small>p{grid-column:1;grid-row:2;margin-left:0;font-size:13px}#toolbox .tb-hero-small>.tb-badge{grid-column:1;grid-row:3;justify-self:start}#toolbox .tb-page-layout{margin-top:18px;gap:20px}#toolbox .tb-workspace{grid-template-columns:1fr;gap:18px}#toolbox .tb-preview-panel{min-height:480px}#toolbox .tb-preview{min-height:290px;padding:18px}#toolbox .tb-preview img,#toolbox .tb-preview canvas{max-height:380px}#toolbox .tb-preview-heading h2{font-size:16px!important}#toolbox .tb-download-actions>.tb-btn-primary{flex:1}#toolbox .tb-sidebar{grid-template-columns:1fr}#toolbox .tb-sidebar-card nav{display:grid;grid-template-columns:1fr 1fr}#toolbox .tb-sidebar-card nav>a{border-right:1px solid #edf1f7}#toolbox .tb-main-column>.tb-info{padding:22px 20px!important}#toolbox .tb-info h2{font-size:18px!important}.tb-hub{padding:20px 16px 48px}.tb-hub .tb-card{padding:20px;min-height:260px}.tb-hub .tb-card h3{font-size:16px}.tb-hub .tb-card p{font-size:12px}#tb-payment{width:380px;max-height:calc(100dvh - 24px)}#tb-payment .pay-heading{padding:24px 24px 18px}#tb-payment .pay-heading h2{font-size:21px}#tb-payment .pay-body{padding:0 22px 20px}}
@media(max-width:420px){#toolbox .tb-controls,#toolbox .tb-preview-panel{padding:18px}#toolbox .tb-sidebar-card nav{grid-template-columns:1fr}.tb-hub .tb-card{padding:18px 14px}.tb-hub .tb-card .tb-badge{font-size:10px}}

/* Typography matches the approved home-page tool cards. */
.tb-hub,.tb-hub h1,.tb-hub h2,.tb-hub h3,.tb-hub p,.tb-hub a,.tb-hub span,.tb-hub li,#toolbox,#toolbox h1,#toolbox h2,#toolbox h3,#toolbox p,#toolbox a,#toolbox span,#toolbox label,#toolbox button,#toolbox input,#toolbox select,#toolbox summary,#toolbox table,#toolbox li{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif!important}
.tb-hub h1{font-size:30px!important;font-weight:700!important;color:#172b4d!important}.tb-hub h2{font-size:24px!important;font-weight:700!important;color:#172b4d!important}.tb-hub .tb-card h3{font-size:18px!important;font-weight:600!important;color:#172b4d!important}.tb-hub .tb-card p,.tb-hub .tb-section-head p{font-size:14px!important;line-height:1.8!important;color:#52627a!important}.tb-hub .tb-card-link{font-size:14px!important;font-weight:600!important;color:#4e85f5!important}

/* Category icons use the same colors as the home page. */
#toolbox[data-tool="compress"],.tb-hub .tb-card[href*="/compress.html"],#toolbox .tb-sidebar a[href*="/compress.html"]{--category-color:#ed910b;--category-tint:#fff7e8}
#toolbox[data-tool="dpi"],.tb-hub .tb-card[href*="/dpi.html"],#toolbox .tb-sidebar a[href*="/dpi.html"]{--category-color:#8a50dc;--category-tint:#f7f0ff}
#toolbox[data-tool="crop"],.tb-hub .tb-card[href*="/crop.html"],#toolbox .tb-sidebar a[href*="/crop.html"]{--category-color:#00a68c;--category-tint:#edfbf7}
#toolbox[data-tool="print"],.tb-hub .tb-card[href*="/print.html"],#toolbox .tb-sidebar a[href*="/print.html"]{--category-color:#2982e7;--category-tint:#eef7ff}
#toolbox[data-tool="background"],.tb-hub .tb-card[href*="/background.html"],#toolbox .tb-sidebar a[href*="/background.html"]{--category-color:#f26743;--category-tint:#fff3ed}
#toolbox[data-tool="beauty"],.tb-hub .tb-card[href*="/beauty.html"],#toolbox .tb-sidebar a[href*="/beauty.html"]{--category-color:#e64799;--category-tint:#fff0f7}
#toolbox[data-tool="custom"],.tb-hub .tb-card[href*="/custom.html"],#toolbox .tb-sidebar a[href*="/custom.html"]{--category-color:#20a75b;--category-tint:#eefbf2}
#toolbox .tb-sidebar a[href="/guige.html"]{--category-color:#7c899e;--category-tint:#f3f5f8}#toolbox .tb-sidebar a[href="/"],.tb-hub .tb-card[href*="#toolSection"]{--category-color:#eab01b;--category-tint:#fff9e8}
#toolbox .tb-tool-title>.photo-icon,#toolbox .tb-upload-icon,#toolbox .tb-sidebar .tb-side-icon,.tb-hub .tb-card .tb-icon{color:var(--category-color,#2982e7);background:var(--category-tint,#eef7ff)}
#toolbox .tb-upload .tb-upload-icon{background:none;color:var(--category-color)}#toolbox .tb-stage{color:var(--category-color);background:var(--category-tint)}
#toolbox .tb-hero-small{padding:12px 0 24px;border:0;border-bottom:1px solid #dfe5ee;border-radius:0;background:none;box-shadow:none}#toolbox .tb-tool-title>.photo-icon{width:36px;height:36px;background:none;border-radius:0;font-size:26px}#toolbox .tb-hero-small>p{margin-left:50px}#toolbox .tb-hero-small>.tb-badge{border-radius:4px;background:#fff;border-color:#dfe5ee;color:#65758e}
#toolbox .tb-upload-guide{background:#fff;border-radius:4px;border:1px solid #e0e6ee;border-left:3px solid var(--category-color)}#toolbox .tb-upload-guide strong:before{color:var(--category-color)}#toolbox .tb-controls .tb-upload{border-radius:4px;background:var(--category-tint);border-color:#d7dfeb}#toolbox .tb-controls,#toolbox .tb-preview-panel,#toolbox .tb-sidebar-card{border-radius:4px;box-shadow:none}#toolbox .tb-btn,#toolbox input[type=number],#toolbox select,#toolbox .tb-preview,#toolbox .tb-price,#toolbox .tb-original{border-radius:4px}#toolbox .tb-price{background:#fff;border:0;border-top:1px solid #e0e6ee;padding:16px 0 0}#toolbox .tb-preview img,#toolbox .tb-preview canvas{box-shadow:none;border-radius:0}
#toolbox .tb-main-column>.tb-info{padding:26px 0!important;background:none;border:0;border-top:1px solid #dfe5ee;border-radius:0;margin-top:22px}#toolbox .tb-info h2{font-size:20px!important;color:#172b4d}#toolbox .tb-guide-table thead th{background:#f3f6fa}#toolbox .tb-guide-table tbody th{background:#fafbfc}
.tb-hub .tb-grid{gap:0;border:1px solid #dfe5ee;border-radius:4px;overflow:hidden;background:#fff}.tb-hub .tb-card{border:0!important;border-right:1px solid #e5e9ef!important;border-bottom:1px solid #e5e9ef!important;border-radius:0;min-height:210px;padding:24px}.tb-hub .tb-card:nth-child(4n){border-right:0!important}.tb-hub .tb-card:nth-child(n+5){border-bottom:0!important}.tb-hub .tb-card .tb-icon{background:none;border-radius:0;width:34px;height:34px;font-size:26px}.tb-hub .tb-card h3{margin-top:14px}.tb-hub .tb-card .tb-badge{background:none;border-radius:0}.tb-hub .tb-card .tb-badge-free{color:#147d53}.tb-hub .tb-card .tb-badge-paid{color:#97521d}.tb-hub .tb-card:hover{background:#f9fbfd;box-shadow:none;transform:none}
#tb-payment{border-radius:6px}#tb-payment .pay-heading{border-bottom:1px solid #e5e9ef;padding-bottom:20px;margin-bottom:20px}#tb-payment .pay-footer{border-radius:0}#tb-payment .pay-qr-frame{border-radius:2px;box-shadow:none}#tb-payment .pay-waiting{background:#f5f7fa;border-radius:4px}#tb-payment #tb-pay-price{color:#24334b}
@media(max-width:1000px){.tb-hub .tb-card:nth-child(2n){border-right:0!important}.tb-hub .tb-card:nth-child(n+5){border-bottom:1px solid #e5e9ef!important}.tb-hub .tb-card:nth-last-child(-n+2){border-bottom:0!important}}@media(max-width:720px){#toolbox .tb-hero-small{padding:12px 0 20px}#toolbox .tb-main-column>.tb-info{padding:22px 0!important}.tb-hub .tb-card{min-height:230px;padding:18px}.tb-hub .tb-card .tb-badge{font-size:10px}#toolbox .tb-hero-small>p{margin-left:0}}

/* Show small ID photos at a comfortable size without browser enlargement. */
#toolbox .tb-preview img,#toolbox .tb-preview canvas{max-width:min(100%,240px);max-height:340px}
#toolbox .tb-result-info{font-size:13px;color:#52637d}


/* Shared editing workspace, with the home page type and category colours. */
#toolbox{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei","PingFang SC",Arial,sans-serif;color:#24334b}
#toolbox .tb-workspace{align-items:start}
#toolbox .tb-preview-panel{position:sticky!important;top:92px;align-self:start;min-height:540px}
#toolbox .tb-control-heading,#toolbox .tb-preview-heading h2{font-weight:700!important}
#toolbox .tb-controls>label{font-size:13px;font-weight:500;line-height:1.7;margin-top:17px}
#toolbox input,#toolbox select,#toolbox textarea,#toolbox button{font-family:inherit}
#toolbox input[type=text],#toolbox textarea{box-sizing:border-box;width:100%;border:1px solid #d8e0eb;border-radius:4px;background:#fff;color:#24334b;padding:10px 12px;font-size:14px;line-height:1.6;outline:none}
#toolbox textarea{resize:vertical;min-height:88px}
#toolbox input[type=color]{width:100%;height:38px;box-sizing:border-box;padding:4px;border:1px solid #d8e0eb;border-radius:4px;background:#fff;cursor:pointer}
#toolbox input[type=file]:not(#tb-file){font-size:12px;max-width:100%;padding:7px 0}
#toolbox input:focus-visible,#toolbox select:focus-visible,#toolbox textarea:focus-visible,#toolbox button:focus-visible{outline:2px solid #a9c2ff;outline-offset:2px}
#toolbox .tb-tool-title svg,#toolbox .tb-side-icon svg{width:24px;height:24px;display:block;fill:currentColor}
#toolbox .tb-section-nav{display:flex;gap:24px;flex-wrap:wrap;padding:16px 0 2px;font-size:13px}
#toolbox .tb-section-nav a{color:#61718a;text-decoration:none;padding:5px 0;border-bottom:2px solid transparent}
#toolbox .tb-section-nav a:hover{color:#4d82ff;border-color:#4d82ff}
#toolbox #tb-form,#toolbox .tb-info{scroll-margin-top:100px}
#toolbox .tb-preview-tabs{display:flex;gap:4px;margin:-4px 0 16px;align-items:center;border-bottom:1px solid #e5eaf2}
#toolbox .tb-preview-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;color:#67778f;padding:10px 14px;font-size:13px;cursor:pointer}
#toolbox .tb-preview-tabs button[aria-pressed=true]{color:#3978f4;border-color:#4d82ff;font-weight:600}
#toolbox .tb-preview-tabs button:disabled{color:#a2adbd;cursor:default}
#toolbox .tb-preview{min-height:345px;flex:none}
#toolbox .tb-preview img,#toolbox .tb-preview canvas{max-width:min(100%,240px);max-height:340px;object-fit:contain}
#toolbox[data-tool=print] .tb-preview canvas,#toolbox[data-tool=stitch] .tb-preview canvas{max-width:100%;max-height:420px}
#toolbox .tb-live-note{background:#f7f9fc;border-left:2px solid var(--category-color,#4d82ff);padding:10px 12px;font-size:12px;line-height:1.75;color:#52637d;margin:14px 0}
#toolbox .tb-presets button[aria-pressed=true]{border-color:#93b2ff;color:#3978f4;background:#f0f5ff}
#toolbox .tb-operation-buttons{display:flex;flex-wrap:wrap;gap:7px;margin:18px 0}
#toolbox .tb-operation-buttons button{flex:1;min-width:70px;padding:9px 5px;background:#fff;border:1px solid #d8e0eb;border-radius:4px;color:#344863;font-size:12px;cursor:pointer}
#toolbox .tb-operation-buttons button:hover{border-color:#93b2ff;color:#3978f4}
#toolbox #tb-reset{margin-top:10px;width:100%}
#toolbox .tb-filename{display:flex;align-items:center;gap:12px;font-size:12px;color:#70809a;margin:15px 0 0}
#toolbox .tb-filename input{flex:1;min-width:0;font-size:12px;padding:7px 9px}
#toolbox .tb-file-list{margin:16px 0;display:flex;flex-direction:column;gap:8px}
#toolbox .tb-file-row{display:grid;grid-template-columns:38px minmax(0,1fr);gap:4px 9px;padding:9px;background:#f8fafc;border:1px solid #e5eaf2;border-radius:4px}
#toolbox .tb-file-row img{grid-row:span 2;width:38px;height:50px;object-fit:contain;background:#fff}
#toolbox .tb-file-row>span{font-size:12px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#toolbox .tb-file-row>div{display:flex;gap:10px}
#toolbox .tb-file-row button{padding:3px 0;border:0;background:none;color:#4a7fe6;font-size:11px;cursor:pointer}
#toolbox .tb-file-row button:disabled{color:#b0bac8;cursor:default}
#toolbox .tb-guide-table{font-size:13px;line-height:1.8}
#toolbox .tb-reading p,#toolbox .tb-info li{font-size:14px;line-height:1.95}
#toolbox .tb-sidebar-card nav>a{min-height:62px}
#toolbox [hidden]{display:none!important}
#toolbox[data-tool=convert],#toolbox[data-tool=rotate],#toolbox[data-tool=stitch],#toolbox[data-tool=watermark],#toolbox .tb-sidebar a[href*="/convert.html"],#toolbox .tb-sidebar a[href*="/rotate.html"],#toolbox .tb-sidebar a[href*="/stitch.html"],#toolbox .tb-sidebar a[href*="/watermark.html"]{--category-color:#2982e7;--category-tint:#eff7ff}
@media(max-width:1050px){#toolbox .tb-preview-panel{top:80px}}
@media(max-width:720px){#toolbox .tb-preview-panel{position:static!important;min-height:0}#toolbox .tb-preview{min-height:300px}#toolbox .tb-section-nav{gap:18px;padding-top:12px}#toolbox .tb-controls>label{font-size:14px}#toolbox .tb-filename{align-items:flex-start;flex-direction:column;gap:5px}#toolbox .tb-filename input{width:100%}#toolbox .tb-preview-tabs button{min-height:44px}#toolbox .tb-file-row button{padding:7px 0}}

